app/soc/logic/document.py
changeset 143 b419121f7b3e
parent 141 e120c24b89e2
child 206 832335761384
equal deleted inserted replaced
142:d88c7dbea0e8 143:b419121f7b3e
    28 
    28 
    29 def getDocumentFromPath(path):
    29 def getDocumentFromPath(path):
    30   """Returns Document entity for a given path, or None if not found.  
    30   """Returns Document entity for a given path, or None if not found.  
    31     
    31     
    32   Args:
    32   Args:
    33     id: a Google Account (users.User) object
    33     path: a request path of the Document that uniquely identifies it
    34   """
    34   """
    35   # lookup by Doc:path key name
    35   # lookup by Doc:path key name
    36   key_name = getDocumentKeyNameForPath(path)
    36   key_name = getDocumentKeyNameForPath(path)
    37   
    37   
    38   if key_name:
    38   if key_name: