changeset 4512 | e7ac20bf3629 |
parent 4349 | 48dadeeacfa5 |
child 4721 | 8f63691ccb7f |
--- a/server/sources/storages.py Mon Feb 08 21:29:59 2010 +0100 +++ b/server/sources/storages.py Mon Feb 08 22:41:07 2010 +0100 @@ -10,6 +10,10 @@ ETYPE_ATTR_STORAGE.setdefault(etype, {})[attr] = storage repo.system_source.map_attribute(etype, attr, storage.sqlgen_callback) +def unset_attribute_storage(repo, etype, attr): + ETYPE_ATTR_STORAGE.setdefault(etype, {}).pop(attr, None) + repo.system_source.unmap_attribute(etype, attr) + class Storage(object): """abstract storage"""