Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore IfExp CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore IfExp CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad attr Str NameLoad NameLoad Assign NameStore IfExp CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore IfExp CompareEq Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Str NameLoad NameLoad Assign NameStore IfExp CompareEq Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore IfExp CompareEq Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Num Str orelse Raise Call AttributeLoad NameLoad attr Num Str If CompareNotEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Dict Str NameLoad orelse Raise Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Num Str orelse Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore IfExp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str ListLoad Index Num NameLoad If BoolOpAnd NameLoad BoolOpOr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str NameLoad orelse Raise Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Num Str orelse Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore IfExp CompareNotEq NameLoad NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad If BoolOpAnd NameLoad BoolOpOr NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call AttributeLoad NameLoad attr Num Str If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad
N/A tornado web tornado auth tornado httpclient tornado escape N/A json N/A urllib N/A urlparse N/A string N/A hashlib N/A random N/A time N/A mimetypes main.helper * main.db * GetEntityList N/A myRequestHandler Entity N/A N/A 
    API search for entities based on keywords,entity type and dataproperty.


    search?[full_info=$full_info][&search=$search][&entity_definition_keyname=$entity_definition_keyname]

    [&dataproperty=$dataproperty][&limit=$limit][&full_definition=$full_definition][&only_public=$only_public]

    [session_key=$session_key]


    $full_info = [(true)|(false)]
    $search = (string)
    $entity_definition_keyname = (string)
    $dataproperty = (string)
    $limit = (int)
    $full_definition = [(true)|(false)]
    $only_public = [(true)|(false)]
    $session_key = (string)

    Parameters:

        full_info - if 'true', returns all available visible data regarding the queried entities,
                    otherwise ('false') returns minimalistic descriptive data:
                        * entity_id
                        * displayname
                        * displayinfo
                        * displaypicture
                        * displaytable

                   DEFAULT = false


        search  -   filters returned entities by returning only those entities which property has
                    one of the 'search' phrases as 'value_string' attribute

                    e.g. ?search=name%20title%20author%20creator


        entity_definition_keyname - returns entities which are of specified type

                    e.g. ?entity_definition_keyname=book


        dataproperty -


        limit - maximum number of entities returned

                    e.g. ?limit=5

                    DEFAULT = unlimited


        full_definition - if 'true', returns empty fields, otherwise 'false'

                    e.g. ?full_definition=true

                    DEFAULT = false


        only_public - if 'true', returns only public entities with public properties

                    e.g. ?only_public=true

                    DEFAULT = false


        session_key - string identifying user session, can be gained via get_session,
                      if missing then behaves as only_public=true

                    e.g. ?session_key=asJGas236jsagHaj6Dahaf


    Returns:

        No results:

            HTTP status code 404

        full_info = false:

            [{'id':val1,'displayname':val2,'displayinfo':val3,'displaypicture':val4,'displaytable':val5},
             ...,
            {'id':valx,'displayname':valy,'displayinfo':valz,'displaypicture':valv,'displaytable':valw}]

        otherwise:

            [{visible_entity1_fields},...,{visible_entityN_fields}]


     get N/A N/A self N/A N/A N/A full_info N/A N/A N/A N/A N/A N/A self get_argument full_info default strip True lower true True False N/A keywords N/A N/A self get_argument search default None strip True N/A entity_definition N/A N/A self get_argument entity_definition_keyname default None strip True N/A dataproperty N/A N/A self get_argument dataproperty default None strip True N/A limit N/A N/A self get_argument limit default None strip True N/A full_definition N/A N/A N/A N/A N/A N/A self get_argument full_definition default strip True lower true True False N/A only_public N/A N/A N/A N/A N/A N/A self get_argument only_public default strip True lower true True False N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A user_id N/A N/A user get id N/A N/A user_id N/A N/A only_public True N/A N/A only_public True N/A result N/A N/A self get_entities ids_only False search keywords entity_definition_keyname entity_definition dataproperty dataproperty limit limit full_definition full_definition only_public only_public N/A N/A result N/A N/A N/A N/A self missing N/A N/A full_info N/A N/A entities N/A N/A entity result N/A N/A entity_obj N/A N/A N/A entity_obj N/A id N/A entity N/A id N/A N/A entity_obj N/A displayname N/A entity N/A displayname N/A N/A entity_obj N/A displayinfo N/A entity N/A displayinfo N/A N/A entity_obj N/A displaypicture N/A entity N/A displaypicture N/A N/A entity_obj N/A displaytable N/A entity N/A displaytable N/A N/A N/A entities append entity_obj N/A N/A N/A self write N/A N/A json dumps entities cls JSONDateFix N/A N/A N/A N/A self write N/A N/A json dumps result cls JSONDateFix N/A N/A GetEntity N/A myRequestHandler Entity N/A N/A 
    Returns entity by entity_id.

    view?entity_id=$entity_id[&only_public=$only_public][&full_definition=$full_definition][session_key=$session_key]

    $entity_id = (int)
    $only_public = [(true)|(false)]
    $full_definition = [(true)|(false)]
    $session_key = (string)

    Parameters:

        entity_id (REQUIRED) - ID of the queried entity


        only_public - if 'true', searches among entities which are public and have public property

                DEFAULT = false


        full_definition - if 'true', includes properties that have empty values

                DEFAULT = false


        session_key - string identifying user session, can be gained via get_session,
                      if missing then behaves as only_public=true

                    e.g. ?session_key=asJGas236jsagHaj6Dahaf


    Returns:

        No matching visible entity:

            HTTP status code 404

        entity_id parameter missing:

            HTTP status code 400

        otherwise:

            {entity_fields}

     get N/A N/A self N/A N/A N/A entity_id N/A N/A self get_argument entity_id default None strip True N/A N/A entity_id N/A N/A N/A N/A web HTTPError 400 Entity ID required. N/A only_public N/A N/A N/A N/A self get_argument only_public default None strip True 1 True False N/A full_definition N/A N/A N/A N/A self get_argument full_definition default None strip True true True False N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A user_id N/A N/A user get id N/A N/A user_id N/A N/A only_public True N/A N/A only_public True N/A result N/A N/A self get_entities entity_id entity_id limit 1 full_definition full_definition only_public only_public N/A N/A result N/A N/A N/A N/A self missing N/A N/A N/A self write N/A N/A json dumps result cls JSONDateFix N/A N/A GetEntityDefinition N/A myRequestHandler Entity N/A N/A 
    Returns all the properties as templates that an entity with a specified definition_keyname can possess.

    get_entity_properties?entity_definition_keyname=$entity_definition_keyname

    $entity_definition_keyname = (string)

    Parameters:

        entity_definition_keyname (REQUIRED) - entity type under scrutiny

        e.g. ?entity_definition_keyname=library


    Returns:

        entity_definition_keyname missing:

            HTTP status 400

        no properties for given entity_definition_keyname

            HTTP status 404

        otherwise:

            [{property1_fields},...,{propertyN_fields}]

     get N/A N/A self N/A N/A N/A entity_definition_keyname N/A N/A self get_argument entity_definition_keyname default None strip True N/A N/A entity_definition_keyname N/A N/A N/A N/A web HTTPError 400 entity_definition_keyname required. N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A user_id N/A N/A user get id N/A N/A user_id N/A N/A only_public True N/A N/A only_public True N/A result N/A N/A entity get_definition entity_definition_keyname N/A N/A result N/A N/A N/A N/A self missing N/A N/A N/A self write N/A N/A json dumps result cls JSONDateFix N/A N/A GetAllowedChildren N/A myRequestHandler Entity N/A N/A 
    Returns allowed child-entity definitions, when entity_id is provided

    get_allowed_children?entity_id=$entity_id

    $entity_id = (int)

    Parameters:

        entity_id (REQUIRED) - entity type

        e.g. ?entity_id=35

    Returns:

        entity_id parameter missing:

            HTTP status code 400

        given entity_id has no allowed children:

            HTTP status code 404

        otherwise:

            [{"keyname":$keyname,"label":$label,"label_plural":$label_plural,"description":$description,"menugroup":$menugroup},...]

            $keyname = (string)

                entity_definition_keyname that can be used to create a new entity

            $label = (string)

                title for displaying

            $label_plural = (string)

                title in plural for displaying

            $description = (string)

                optional description of the entity type

            $menugroup = (string)

                suggests a name for the menu title

     get N/A N/A self N/A N/A N/A entity_id N/A N/A self get_argument entity_id default None strip True N/A N/A entity_id N/A N/A N/A N/A web HTTPError 400 entity_id required N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A user_id N/A N/A user get id N/A N/A user_id N/A N/A only_public True N/A N/A only_public True N/A result N/A N/A entity get_allowed_childs entity_id N/A N/A result N/A N/A N/A N/A self missing N/A N/A N/A self write N/A N/A json dumps result cls JSONDateFix N/A N/A SaveEntity N/A myRequestHandler Entity N/A N/A 
    API save entity function.
    Needs entity ID and optionally parent ID.
    Return Entity ID.

    save_entity?entity_definition_keyname=$entity_definition_keyname&session_key=$session_key

    [&parent_entity_id=$parent_entity_id][&public=$public]


    $entity_definition_keyname = (string)
    $session_key = (string)
    $parent_entity_id = (int)
    $public = [(true)|(false)]


    Parameters:

        entity_definition_keyname (REQUIRED) - type of the created entity

                e.g. ?entity_definition_keyname=book


        session_key (REQUIRED) - verifies that user is authenticated via get_session and links created entity

                                 to the given user allowing the user to query it later on

                e.g. ?session_key=asJGas236jsagHaj6Dahaf


        parent_entity_id - propagates rights from the parent and sets a parent-child relationship

                e.g. ?parent_entity_definition=514


        public - allows entity to be seen without authentication

                e.g. ?public=true


    Returns:

        entity_definition_keyname missing:

            HTTP status 400

        user with given session_key missing:

            HTTP status 401

        otherwise:

            {'entity_id':$entity_id}

            $entity_id = (int)

     get N/A N/A self N/A N/A N/A parent_entity_id N/A N/A self get_argument parent_entity_id default None strip True N/A entity_definition_keyname N/A N/A self get_argument entity_definition_keyname default None strip True N/A public N/A N/A N/A N/A self get_argument public default None strip True true True False N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A N/A N/A N/A user get id N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A N/A entity_definition_keyname None N/A N/A entity_id N/A N/A entity create_entity entity_definition_keyname entity_definition_keyname parent_entity_id parent_entity_id N/A public N/A N/A N/A N/A entity set_public entity_id is_public public N/A N/A N/A self write N/A entity_id entity_id N/A N/A N/A N/A web HTTPError 400 To create a new Entity entity_definition_keyname is required. N/A N/A SaveProperty N/A myRequestHandler Entity N/A N/A 
    Add or edit property value.
    Creates new one if property_id = None, otherwise changes existing.
    Returns property ID.

    #1  save_property?entity_id=$entity_id&session_key=$session_key

        [&property_definition_keyname=$property_definition_keyname]

        [&property_id=$property_id][&value=$value]


    #2 save_property?properties=$properties&session_key=$session_key

        $properties = [
                        {
                          'entity_id':$entity_id#1,
                          'property_definition_keyname':$property_definition_keyname#1
                          [,'property_id':$property_id#1]
                          [,'value':$value#1]
                          [,'file':$file#1]
                        }
                        ,...,
                        {
                          'entity_id':$entity_id#N,
                          'property_definition_keyname':$property_definition_keyname#N
                          [,'property_id':$property_id#N]
                          [,'value':$value#N]
                          [,'file':$file#N]
                        }
                      ]

    $session_key = (string)
    $entity_id = (int)
    $property_definition_keyname = (string)
    $property_id = (int)
    $value = *
    $file = (string)

    Parameters:

        session_key (REQUIRED) - verifies that user is authenticated via get_session and links property

                                 to the given user by recording its last modifier


        entity_id (REQUIRED) - ID of the entity that the given property belongs to


        property_definition_keyname - type of property
         |
         |  e.g. ?property_definition_keyname=textbook-picture
         |
         |-- 1 REQUIRED
         |
        property_id - ID of an existing property to be changed


        value - value for the given property


        file (ONLY IN JSON) - name of the uploaded file


    Uploading file:

        In order to upload file, property_definition_keyname must map to property_definition which datatype is 'file'.

        Also, if non-json format is used (aka not using 'properties' parameter), file should be uploaded under 'file' name.
        If json format is used, each property's 'file' field must map to uploaded file's name.

        Uploaded file's name can be set, using, for example, simple html form:

            <form action="http://address.to.entu.api/save_property" method="post" enctype="multipart/form-data">
                <label for="file">Filename:</label>
                <input type="file" name="UPLOADED_FILE_NAME" id="file" />
                <br />
                <input type="submit" name="submit" value="Submit" />
            </form>


    Returns:

        user with given session_key missing:

            HTTP status 401

        JSON format (#2 with properties parameter):

            properties missing:

                HTTP status 400

            entity_id or property_definition_keyname and property_id missing in any of json objects:

                HTTP status 400

            no properties were added/changed:

                HTTP status 404

            otherwise:

                [$property_id1,...,$property_idN]

                $property_id = (int)

        normal:

            entity_id or property_definition_keyname and property_id missing:

                HTTP status 400

            property was not added/changed:

                HTTP status 404

            otherwise:

                {'property_id':$property_id}

                $property_id = (int)

     get N/A N/A self N/A N/A N/A entity_id N/A N/A self get_argument entity_id default None strip True N/A property_definition_keyname N/A N/A self get_argument property_definition_keyname default None strip True N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A N/A N/A N/A user get id N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A property_id N/A N/A self get_argument property_id default None strip True N/A value N/A N/A self get_argument value default None strip True N/A uploaded_file N/A N/A N/A N/A N/A self request files get file None N/A N/A N/A N/A N/A self request files get file N/A N/A 0 None N/A N/A entity_id N/A property_definition_keyname property_id N/A N/A property_id N/A N/A entity set_property entity_id entity_id property_definition_keyname property_definition_keyname value value old_property_id property_id uploaded_file uploaded_file N/A N/A property_id N/A N/A N/A N/A self missing N/A N/A N/A self write N/A property_id property_id N/A N/A N/A N/A web HTTPError 400 Entity ID and one of [property_definition_keyname,property_id] required N/A N/A SaveProperties N/A myRequestHandler Entity N/A get N/A N/A self N/A N/A N/A user N/A N/A self get_user_by_session_key N/A N/A self get_argument session_key default None strip True N/A user_id None N/A user N/A N/A N/A N/A N/A user get id N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A N/A N/A N/A web HTTPError 401 Unauthorized N/A properties N/A N/A self get_argument properties default None strip True N/A N/A properties N/A N/A N/A N/A web HTTPError 400 Invalid data passed N/A properties N/A N/A json loads properties N/A N/A N/A isinstance properties list N/A N/A properties N/A properties N/A property_id_list N/A N/A property properties N/A N/A entity_id N/A N/A property setdefault entity_id None N/A property_definition_keyname N/A N/A property setdefault property_definition_keyname None N/A property_id N/A N/A property setdefault property_id None N/A value N/A N/A property setdefault value None N/A uploaded_file_name N/A N/A property setdefault file None N/A uploaded_file N/A N/A uploaded_file_name None N/A N/A N/A N/A self request files get uploaded_file_name None None N/A N/A entity_id N/A property_definition_keyname property_id value N/A N/A N/A N/A property_id_list append N/A N/A entity set_property entity_id entity_id property_definition_keyname property_definition_keyname value value old_property_id property_id uploaded_file uploaded_file N/A N/A N/A N/A web HTTPError 400 entity_id and (property_definition_keyname or property_id) and value required N/A N/A property_id_list N/A N/A N/A N/A self missing N/A N/A N/A self write N/A N/A json dumps property_id_list cls JSONDateFix N/A N/A GetSession N/A myRequestHandler Entity N/A N/A 

    Creates new session for authenticated user.

    Returns:

        {'session_key':$session_key}

     get N/A N/A self N/A N/A N/A N/A N/A self write N/A N/A json dumps N/A session_key N/A N/A N/A self current_user get session_key cls JSONDateFix N/A N/A web authenticated N/A Logout N/A myRequestHandler Entity N/A N/A 
    Log out.

     get N/A N/A self N/A N/A N/A N/A N/A self redirect /exit N/A N/A N/A handlers N/A N/A /api/auth GetSession N/A /api/exit Logout N/A /api/get_entity GetEntity N/A /api/get_entity_list GetEntityList N/A /api/get_entity_definition GetEntityDefinition N/A /api/get_allowed_chils GetAllowedChildren N/A /api/save_properties SaveProperties N/A /api/save_entity SaveEntity