def index(request): util = MeetupUtil() params = "group_id=" + util.get_group_id() results = util.call_remote("events", params) t = loader.get_template("events/index.html") c = Context({"event_info": results["results"]}) return HttpResponse(t.render(c))
def index(request): util = MeetupUtil() params = "group_id=" + util.get_group_id() results = util.call_remote('events', params) t = loader.get_template('events/index.html') c = Context({'event_info': results['results']}) return HttpResponse(t.render(c))
def _getMeetupData(): ''' Returns a stringified json object suitable for the browser to load and use. ''' util = MeetupUtil() params = "group_id=" + util.get_group_id() wrapper = util.call_remote('members', params) results = wrapper['results'] return json.dumps(results)
def index(request): util = MeetupUtil() params = "id=" + util.get_group_id() results = util.call_remote('groups',params) info = results['results'] info = info[0] info = info['description'] t = loader.get_template('about/index.html') c = Context({ 'info': info}) return HttpResponse(t.render(c))
def index(request): util = MeetupUtil() params = "id=" + util.get_group_id() results = util.call_remote('groups', params) info = results['results'] info = info[0] info = info['description'] t = loader.get_template('about/index.html') c = Context({'info': info}) return HttpResponse(t.render(c))
def test_event_info(self): util = MeetupUtil() params = "group_id=" + util.get_group_id() results = util.call_remote("events", params) self.assertTrue(results)
def test_group_info(self): util = MeetupUtil() # Make a remote call. params = "id=" + util.get_group_id() results = util.call_remote("groups", params) self.assertTrue(results)