Ejemplo n.º 1
0
def template_fields_get(oauth_request, template_id, extension, is_public):

  Field_ = Field()
  Field_.current_user = oauth_request.user
  these_fields = Field_.template_fields_get(template_id, is_public)

  if type(these_fields) is tuple:
    return these_fields

  arguments = {
    'the_content': these_fields,
    'list_name': 'fields',
    'extension': extension
  }

  return Field_.endpoint_response(**arguments)