equal
deleted
inserted
replaced
18 except KeyError: |
18 except KeyError: |
19 key = Key.from_path('CWGroup', 'key_' + groupname, parent=None) |
19 key = Key.from_path('CWGroup', 'key_' + groupname, parent=None) |
20 try: |
20 try: |
21 group = Get(key) |
21 group = Get(key) |
22 except datastore_errors.EntityNotFoundError: |
22 except datastore_errors.EntityNotFoundError: |
23 raise Exception('can\'t find required group %s, is your application ' |
23 raise Exception('can\'t find required group %s, is your instance ' |
24 'correctly initialized (eg did you run the ' |
24 'correctly initialized (eg did you run the ' |
25 'initialization script) ?' % groupname) |
25 'initialization script) ?' % groupname) |
26 _GROUP_CACHE[groupname] = group |
26 _GROUP_CACHE[groupname] = group |
27 return group |
27 return group |
28 |
28 |