def admin():
 series_id = None
 get_vars_new = Storage()
 try:
  series_id = int(request.args[0])
 except:
  try:
   (dummy, series_id) = get_vars['viewing'].split('.')
   series_id = int(series_id)
  except:
   pass
 if series_id:
  get_vars_new.viewing = ('survey_complete.%s' % series_id)
 return dict(series_id=series_id, vars=get_vars_new)

def admin ( ) : series_id = None get_vars_new = Storage ( ) try : series_id = int ( request . args [ 0 ] ) except : try : ( dummy , series_id ) = get_vars [ 'viewing' ] . split ( '.' ) series_id = int ( series_id ) except : pass if series_id : get_vars_new . viewing = ( 'survey_complete.%s' % series_id ) return dict ( series_id = series_id , vars = get_vars_new )
require the admin user .