diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-12 22:26:09 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-12 22:26:09 +0200 |
commit | 287b4354401dac8a83f54aa769bec2f30c53e05a (patch) | |
tree | 2b8b2845139d2e7f7554343d80d320509a1cebfd /src/meetingtools/apps | |
parent | 6b262d57097bfe503e025fbe9804a204eb99a680 (diff) |
RSS validity
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r-- | src/meetingtools/apps/room/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 327e1ca..8163400 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -395,7 +395,7 @@ def widget(request,tn): tags = tn.split('+') rooms = TaggedItem.objects.get_by_model(Room, tags) title = 'Rooms tagged with %s' % " and ".join(tags) - now = timeAsrfc822 ( datetime . datetime . now ( ) ) + now = timeAsrfc822 ( datetime.now() ) return respond_to(request, {'text/html':'apps/room/widget-test.html', 'application/json': json_response([_room2dict(room) for room in rooms]), @@ -408,13 +408,13 @@ def list_by_tag(request,tn): tags = tn.split('+') rooms = TaggedItem.objects.get_by_model(Room, tags) title = 'Rooms tagged with %s' % " and ".join(tags) - now = timeAsrfc822 ( datetime . datetime . now ( ) ) + now = timeAsrfc822 ( datetime.now() ) return respond_to(request, {'text/html':'apps/room/list.html', 'application/json': json_response([_room2dict(room) for room in rooms]), 'application/rss+xml': 'apps/room/rss2.xml', 'text/rss': 'apps/room/rss2.xml'}, - {'title':title,'description':title ,'edit':False,'date': now,'tags': tn,'rooms':rooms.all()}) + {'title':title,'description':title ,'edit':False,'baseurl': BASE_URL,'date': now,'tags': tn,'rooms':rooms.all()}) def _can_tag(request,tag): if tag in ('selfcleaning','public','private'): |