equal
deleted
inserted
replaced
65 Error if path is "False" (None, empty string, etc.) |
65 Error if path is "False" (None, empty string, etc.) |
66 """ |
66 """ |
67 if not path: |
67 if not path: |
68 raise Error('"path" must be non-False: "%s"' % path) |
68 raise Error('"path" must be non-False: "%s"' % path) |
69 |
69 |
70 return 'SiteSettings:%s' % path |
70 return nameHomeSettings(path, entity_type='SiteSettings') |
71 |
71 |
72 |
72 |
73 def nameHomeSettings(path): |
73 def nameHomeSettings(path, entity_type='HomeSettings'): |
74 """Returns a HomeSettings key name constructed from a supplied path. |
74 """Returns a HomeSettings key name constructed from a supplied path. |
75 |
75 |
76 Raises: |
76 Raises: |
77 Error if path is "False" (None, empty string, etc.) |
77 Error if path is "False" (None, empty string, etc.) |
78 """ |
78 """ |
79 if not path: |
79 if not path: |
80 raise Error('"path" must be non-False: "%s"' % path) |
80 raise Error('"path" must be non-False: "%s"' % path) |
81 |
81 |
82 return 'HomeSettings:%s' % path |
82 return '%s:%s' % (entity_type, path) |
83 |
83 |
84 |
84 |
85 def nameUser(email): |
85 def nameUser(email): |
86 """Returns a User key name constructed from a supplied email address. |
86 """Returns a User key name constructed from a supplied email address. |
87 |
87 |