Beispiel #1
0
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))
Beispiel #2
0
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))
Beispiel #3
0
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)
Beispiel #4
0
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)
Beispiel #5
0
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))
Beispiel #6
0
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))
Beispiel #7
0
 def test_event_info(self):
     util = MeetupUtil()
     params = "group_id=" + util.get_group_id()
     results = util.call_remote("events", params)
     self.assertTrue(results)
Beispiel #8
0
 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)