-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in Lars Eggert's changes to the search page, and Henrik's left…
…hand-menu addition - Legacy-Id: 1255
- Loading branch information
Showing
68 changed files
with
1,053 additions
and
768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
/*.swp | ||
/*.pyc | ||
/settings_local.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/*.pyc | ||
/settings_local.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/*.pyc | ||
/settings_local.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/*.pyc | ||
/settings_local.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import re | ||
from django.contrib.syndication.feeds import Feed | ||
from django.utils.feedgenerator import Atom1Feed | ||
from ietf.proceedings.models import WgProceedingsActivities | ||
from ietf.proceedings.models import Slide, WgAgenda, Proceeding | ||
from datetime import datetime, time | ||
from django.db import connection | ||
|
||
class LatestWgProceedingsActivity(Feed): | ||
feed_type = Atom1Feed | ||
link = "/foo" | ||
description = "foobar" | ||
language = "en" | ||
feed_url = "/feed/ipr/" | ||
base_url = "http://www3.ietf.org/proceedings/" | ||
|
||
def items(self): | ||
objs = [] | ||
for act in WgProceedingsActivities.objects.order_by('-act_date')[:60]: | ||
obj = {} | ||
|
||
m = re.match("^slide, '(.*)', was uploaded$", act.activity) | ||
if m: | ||
obj['title'] = m.group(1) | ||
obj['title'] = re.sub("[^ -~]+", "", obj['title']) | ||
slides = Slide.objects.filter(meeting=act.meeting).filter(slide_name=m.group(1)).filter(group_acronym_id=act.group_acronym_id) | ||
if len(slides) == 1: | ||
obj['link'] = self.base_url + slides[0].file_loc() | ||
|
||
m = re.match("^agenda was uploaded$", act.activity) | ||
if m: | ||
obj['title'] = "agenda"; | ||
agendas = WgAgenda.objects.filter(meeting=act.meeting).filter(group_acronym_id=act.group_acronym_id) | ||
if len(agendas) == 1: | ||
dir = Proceeding.objects.get(meeting_num=act.meeting).dir_name | ||
obj['link'] = self.base_url + dir + "/agenda/" + agendas[0].filename | ||
|
||
if len(obj) > 0: | ||
try: | ||
act.irtf = False | ||
obj['group_acronym'] = act.acronym() | ||
except: | ||
act.irtf = True | ||
try: | ||
obj['group_acronym'] = act.acronym() | ||
except: | ||
obj['group_acronym'] = "?" | ||
obj['date'] = datetime.combine(act.act_date, time(int(act.act_time[0:2]), int(act.act_time[3:5]), int(act.act_time[6:8]))) | ||
obj['author'] = str(act.act_by) | ||
objs.append(obj) | ||
|
||
return objs | ||
|
||
def get_object(self, bits): | ||
obj = {} | ||
obj['title'] = "This is the title"; | ||
return obj | ||
|
||
def title(self, obj): | ||
return "Meeting Materials Activity" | ||
|
||
def item_link(self, item): | ||
if 'link' in item: | ||
return item['link'] | ||
else: | ||
return "" | ||
|
||
def item_pubdate(self, item): | ||
return item['date'] | ||
|
||
def item_author_name(self, item): | ||
return item['author'] | ||
|
||
def item_author_email(self, item): | ||
return None; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.