equal
deleted
inserted
replaced
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: |