Module Import alias Assign NameStore Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad Str Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str TryExcept body Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Return Call NameLoad Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Pass Expr Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Return Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs Call NameLoad NameLoad NameLoad body Return Call NameLoad Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Assign NameStore Call NameLoad NameLoad keyword Call NameLoad Str keyword NameLoad For NameStore NameLoad body Delete SubscriptDel NameLoad Index Str Print NameLoad If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str orelse Return Call NameLoad keyword ListLoad keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Call NameLoad Str keyword NameLoad For NameStore NameLoad body Delete SubscriptDel NameLoad Index Str Print NameLoad If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str orelse Return Call NameLoad keyword ListLoad keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str If CompareIs NameLoad NameLoad body Return Call NameLoad Str If CompareNotEq AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Return Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Return Call NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str
N/A N/A copy N/A __author__ Aran flask Blueprint N/A json GithubAPI.GithubAPI GitHubAPI_Keys google.appengine.ext db N/A requests N/A datetime operator itemgetter flask Flask request render_template redirect abort Response flask.ext.github GitHub flask.ext.cors CORS cross_origin flask.ext.autodoc Autodoc models.Course Course models.Project Project models.Message Message SE_API.Validation_Utils * SE_API.Respones_Utils * N/A message_routes N/A Blueprint message_routes __name__ N/A auto N/A Autodoc createMessage N/A N/A token N/A N/A N/A 
    <span class="card-title">This call will create a new Message in the DB</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'
    <br>
    <br>
    <b>Payload</b><br>
     - JSON Object, Example: <br>
    {<br>
        'groupId' : 123456789,<br>
        'message' : 'Class is canceled',<br>
        'isProject' : true<br>
    }<br>
    <br>
    <br>
    <b>Response</b>
    <br>
    201 - Created
    <br>
    400 - Bad Request
    <br>
    403 - Invalid token or not a lecturer
     N/A N/A N/A request data N/A N/A N/A bad_request no data N/A user N/A get_user_by_token token N/A N/A N/A payload N/A N/A json loads N/A request data N/A N/A N/A Exception N/A e N/A N/A N/A bad_request here N/A N/A N/A msg N/A Message groupId N/A payload N/A groupId message N/A payload N/A message msgDate N/A N/A N/A datetime datetime now master_id N/A N/A N/A N/A user key id N/A N/A N/A Exception N/A e N/A N/A e N/A N/A bad_request there N/A N/A N/A N/A msg isProject N/A payload N/A isProject N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A db put msg N/A N/A db save N/A N/A Response response N/A N/A msg to_JSON status 200 mimetype application/json N/A N/A N/A message_routes route /api/messages/create/<string:token> methods N/A POST N/A N/A auto doc getMessagesByGroup N/A N/A token groupId N/A N/A N/A 
    <span class="card-title">>This Call will return an array of all messages (sorted by date),<br>
                                for a given group (course or project)</span>
    <br>
    <b>Route Parameters</b><br>
        - SeToken: token <br>
        - groupId: 1234567890
    <br>
    <br>
    <b>Payload</b><br>
     - NONE
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Example:<br>
    <code>
        {<br>
            'groupId' : 1234567890,<br>
            'message' : 'hello all',<br>
            'date' : {<br>
                'year': 2015,<br>
                'month': 5,<br>
                'day': 5,<br>
                'hour': 5,<br>
                'minute': 5<br>
            },<br>
            'id' : 1234567890,<br>
            'master_id' : 1234567890,<br>
            'isProject' : false,<br>
            'user': {<br>
        'username': 'DarkLord',<br>
        'name': 'Darth Vader',<br>
        'email': 'darkLord@death.planet,<br>
        'isLecturer': 'True',<br>
        'seToken': 'xxxxxx-xxxxx-xxxxx-xxxxxx',<br>
        'avatar_url': 'http://location.git.com/somthing'<br>
        'isFirstLogin': False,<br>
        'campuses_id_list': [43243532532,5325325325,532532342],<br>
        'courses_id_list': [53523,43432423,432432432432]<br>
        'id': 1234567890 <br>
        },<br>
        'group': {The Group Object Project OR Campus (according to isProject)}<br><br>

        }<br>
    </code>
    <br>
     N/A N/A N/A get_user_by_token token None N/A N/A N/A bad_request No such User N/A arr N/A N/A query N/A N/A Message all N/A N/A N/A N/A N/A query filter groupId = N/A int groupId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A m N/A N/A query run N/A N/A msgDic N/A dict N/A N/A json loads N/A N/A m to_JSON N/A msgTime N/A N/A datetime datetime N/A N/A msgDic N/A date N/A year N/A N/A msgDic N/A date N/A month N/A N/A msgDic N/A date N/A day N/A N/A msgDic N/A date N/A hour N/A N/A msgDic N/A date N/A minute N/A N/A msgDic N/A forSortDate msgTime N/A N/A N/A arr append msgDic N/A arr N/A arr N/A sorted arr key N/A itemgetter forSortDate reverse True N/A i arr N/A N/A N/A i N/A forSortDate N/A arr N/A N/A N/A len arr 0 N/A N/A N/A Response response N/A N/A json dumps arr status 200 mimetype application/json N/A N/A N/A Response response N/A status 200 mimetype application/json N/A N/A N/A message_routes route /api/messages/getMessagesByGroup/<string:token>/<string:groupId> methods N/A GET N/A N/A auto doc getAllUserMessages N/A N/A token N/A N/A N/A 
    <span class="card-title">>This Call will return an array of all messages (sorted by date),<br>
                                </span>
    <br>
    <b>Route Parameters</b><br>
        - SeToken: token <br>
        - groupId: 1234567890
    <br>
    <br>
    <b>Payload</b><br>
     - NONE
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Example:<br>
    <code>[<br>
        {<br>
            'groupId' : 1234567890,<br>
            'message' : 'hello all',<br>
            'date' : {<br>
                'year': 2015,<br>
                'month': 5,<br>
                'day': 5,<br>
                'hour': 5,<br>
                'minute': 5<br>
            },<br>
            'id' : 1234567890,<br>
            'master_id' : 1234567890,<br>
            'isProject' : false,<br>
            'user': {<br>
        'username': 'DarkLord',<br>
        'name': 'Darth Vader',<br>
        'email': 'darkLord@death.planet,<br>
        'isLecturer': 'True',<br>
        'seToken': 'xxxxxx-xxxxx-xxxxx-xxxxxx',<br>
        'avatar_url': 'http://location.git.com/somthing'<br>
        'isFirstLogin': False,<br>
        'campuses_id_list': [43243532532,5325325325,532532342],<br>
        'courses_id_list': [53523,43432423,432432432432]<br>
        'id': 1234567890 <br>
        },<br>
        'group': {The Group Object Project OR Campus (according to isProject)}<br><br>

        }<br>
        ]<br>
    </code>
    <br>
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request No such User N/A arr N/A N/A allMsgs N/A N/A Message all N/A projectMsgs N/A N/A copy deepcopy allMsgs N/A N/A N/A projectMsgs filter isProject = False N/A m N/A N/A projectMsgs run N/A N/A N/A N/A str N/A m groupId N/A user courses_id_list N/A N/A msgDic N/A dict N/A N/A json loads N/A N/A m to_JSON N/A msgTime N/A N/A datetime datetime N/A N/A msgDic N/A date N/A year N/A N/A msgDic N/A date N/A month N/A N/A msgDic N/A date N/A day N/A N/A msgDic N/A date N/A hour N/A N/A msgDic N/A date N/A minute N/A N/A msgDic N/A forSortDate msgTime N/A N/A N/A arr append msgDic N/A N/A N/A allMsgs filter isProject = True N/A m N/A N/A allMsgs run N/A N/A N/A N/A str N/A m groupId N/A user projects_id_list N/A N/A msgDic N/A dict N/A N/A json loads N/A N/A m to_JSON N/A msgTime N/A N/A datetime datetime N/A N/A msgDic N/A date N/A year N/A N/A msgDic N/A date N/A month N/A N/A msgDic N/A date N/A day N/A N/A msgDic N/A date N/A hour N/A N/A msgDic N/A date N/A minute N/A N/A msgDic N/A forSortDate msgTime N/A N/A N/A arr append msgDic N/A arr N/A sorted arr key N/A itemgetter forSortDate reverse True N/A i arr N/A N/A N/A i N/A forSortDate N/A arr N/A N/A N/A len arr 0 N/A N/A N/A Response response N/A N/A json dumps arr status 200 mimetype application/json N/A N/A N/A Response response N/A status 200 mimetype application/json N/A N/A N/A message_routes route /api/messages/getAllUserMessages/<string:token> methods N/A GET N/A N/A auto doc deleteMessage N/A N/A token msgId N/A N/A N/A 
    <span class="card-title">>This Call will delete a message by owner token</span>
    <br>
    <b>Route Parameters</b><br>
        - SeToken: token
        - msgId: 1234567890
    <br>
    <br>
    <b>Payload</b><br>
     - NONE
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Example:<br>
    <code>
        {<br>
            'groupId' : 1234567890,<br>
            'message' : 'hello all',<br>
            'date' : {<br>
                'year': 2015,<br>
                'month': 5,<br>
                'day': 5,<br>
                'hour': 5,<br>
                'minute': 5<br>
            },<br>
            'id' : 1234567890,<br>
            'master_id' : 1234567890,<br>
            'isProject' : false<br>
        }<br>
    </code>
    <br>
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request No such User N/A N/A N/A msg N/A N/A Message get_by_id N/A int msgId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A N/A msg None N/A N/A N/A bad_request No such Message N/A N/A N/A msg master_id N/A N/A N/A N/A user key id N/A N/A N/A forbidden User is not the Creator of the message N/A N/A N/A db delete msg N/A N/A db save N/A N/A no_content N/A N/A N/A message_routes route /api/messages/deleteMessage/<string:token>/<string:msgId> methods N/A DELETE N/A N/A auto doc documentation N/A N/A N/A N/A N/A N/A N/A auto html N/A N/A N/A message_routes route /api/messages/help