annot-server/webapp/admin.py
changeset 62 b1f7ab026ddb
parent 61 511bff609c3d
child 63 289049253263
equal deleted inserted replaced
61:511bff609c3d 62:b1f7ab026ddb
    51     url_query_params = {'project_id': model.project_id, 
    51     url_query_params = {'project_id': model.project_id, 
    52                         'polemic': 'all', 
    52                         'polemic': 'all', 
    53                         'polemic__max_elements': 200, 
    53                         'polemic__max_elements': 200, 
    54                         'createannotation': True,
    54                         'createannotation': True,
    55                         'createannotation_polemics': False,
    55                         'createannotation_polemics': False,
    56                         'tag_titles': ""
    56                         'tag_titles': "",
    57                         'polemics_list': json.dumps(output, separators=(',',':'))}
    57                         'polemics_list': json.dumps(output, separators=(',',':'))}
    58 
    58 
    59     url = base_url + urllib.urlencode(url_query_params)
    59     url = base_url + urllib.urlencode(url_query_params)
    60 
    60 
    61     embed = "<iframe src=&quot;%s&quot; width=&quot;570&quot; height=&quot;711&quot; seamless=&quot;seamless&quot;></iframe>" % url
    61     embed = "<iframe src=&quot;%s&quot; width=&quot;570&quot; height=&quot;711&quot; seamless=&quot;seamless&quot;></iframe>" % url