--- a/server/sources/native.py Fri Apr 23 17:54:34 2010 +0200
+++ b/server/sources/native.py Fri Apr 23 17:55:46 2010 +0200
@@ -328,6 +328,14 @@
del self._storages[etype]
self.unmap_attribute(etype, attr)
+ def storage(self, etype, attr):
+ """return the storage for the given entity type / attribute
+ """
+ try:
+ return self._storages[etype][attr]
+ except KeyError:
+ raise Exception('no custom storage set for %s.%s' % (etype, attr))
+
# ISource interface #######################################################
def compile_rql(self, rql, sols):