community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r1693017 - in /comdev/tools/events_list: templates/events/importMeetups.html views.py
Date Tue, 28 Jul 2015 08:00:05 GMT
Author: rgardler
Date: Tue Jul 28 08:00:05 2015
New Revision: 1693017

URL: http://svn.apache.org/r1693017
Log:
move intermediate page on importing meetups

Removed:
    comdev/tools/events_list/templates/events/importMeetups.html
Modified:
    comdev/tools/events_list/views.py

Modified: comdev/tools/events_list/views.py
URL: http://svn.apache.org/viewvc/comdev/tools/events_list/views.py?rev=1693017&r1=1693016&r2=1693017&view=diff
==============================================================================
--- comdev/tools/events_list/views.py (original)
+++ comdev/tools/events_list/views.py Tue Jul 28 08:00:05 2015
@@ -31,6 +31,8 @@ def index(request):
 def viewEvent(request, event_id):
     event = get_object_or_404(Event, pk = event_id)
 
+    return redirect('events_list.views.index')
+
     template = loader.get_template('events/view.html')
     context = RequestContext(request, {
                              'event': event
@@ -120,7 +122,6 @@ def importMembers(request, group_id):
         except:
             print('Unable to save Person object: '), sys.exc_info()[0], sys.exc_info()[1]
 
-
     return redirect('groupIndex')
 
 def importMeetups(request):
@@ -137,9 +138,7 @@ def importMeetups(request):
     for hashtag in hashtags:
       _callMeetupsCom(hashtag)
 
-    template = loader.get_template('events/importMeetups.html')
-    context = RequestContext(request)
-    return HttpResponse(template.render(context))
+    return redirect('eventIndex')
 
 def _callMeetupsCom(hashtag):
     print "searching meetups.com for " + hashtag.name



Mime
View raw message