Commits

zuroc  committed f40a811

fix

  • Participants
  • Parent commits e6103cf

Comments (0)

Files changed (1)

File zorm/redis.py

 
     def __getattr__(self, attr):
         def _(name=''):
-            self(name)
+            self(attr, name)
         return _
 
-    def __call__(self, name):
+    def __call__(self, attr, name):
+        key = attr+name
         redis = self.redis
-        key = attr+name
         if key in _EXIST:
             raise Exception('redis key is already defined %s'%key)
         _EXIST.add(key)