--- a/app/soc/logic/document.py Wed Oct 01 20:48:58 2008 +0000
+++ b/app/soc/logic/document.py Wed Oct 01 20:52:39 2008 +0000
@@ -19,6 +19,7 @@
__authors__ = [
'"Pawel Solyga" <pawel.solyga@gmail.com>',
+ '"Todd Larsen" <tlarsen@google.com>',
]
@@ -36,24 +37,6 @@
import soc.models.work
-WORK_PATH_LINKNAME_REGEX = re.compile(key_name.WORK_PATH_LINKNAME_PATTERN)
-
-def getPartsFromPath(path):
- """Splits path string into partial_path and link_name.
-
- Returns:
- {'partial_path': 'everything/but',
- 'link_name': 'link_name'}
- or {} (empty dict) if string did not match WORK_PATH_LINKNAME_PATTERN.
- """
- path_linkname_match = WORK_PATH_LINKNAME_REGEX.match(path)
-
- if not path_linkname_match:
- return {}
-
- return path_linkname_match.groupdict()
-
-
def getDocument(path, link_name=None):
"""Returns Document entity for a given path, or None if not found.