hooks/storages.py
branchstable
changeset 4719 aaed3f813ef8
parent 4716 55b6a3262071
child 4721 8f63691ccb7f
--- a/hooks/storages.py	Fri Feb 26 13:12:01 2010 +0100
+++ b/hooks/storages.py	Fri Feb 26 13:19:14 2010 +0100
@@ -1,7 +1,5 @@
 """hooks to handle attributes mapped to a custom storage
 """
-from os import unlink
-
 from cubicweb.server.hook import Hook
 from cubicweb.server.sources.storages import ETYPE_ATTR_STORAGE
 
@@ -16,7 +14,6 @@
     """"""
     __regid__ = 'bfss_add_entity'
     events = ('before_add_entity', )
-    #__select__ = Hook.__select__ & implements('Repository')
 
     def __call__(self):
         etype = self.entity.__regid__
@@ -27,7 +24,6 @@
     """"""
     __regid__ = 'bfss_update_entity'
     events = ('before_update_entity', )
-    #__select__ = Hook.__select__ & implements('Repository')
 
     def __call__(self):
         for attr in ETYPE_ATTR_STORAGE.get(self.entity.__regid__, ()):
@@ -37,7 +33,6 @@
     """"""
     __regid__ = 'bfss_delete_entity'
     events = ('before_delete_entity', )
-    #__select__ = Hook.__select__ & implements('Repository')
 
     def __call__(self):
         for attr in ETYPE_ATTR_STORAGE.get(self.entity.__regid__, ()):