示例#1
0
 def __del__(self):
     # delete object references manually
     if self.connectionWrapper is not None:
         object.__delattr__(self, 'connectionWrapper')
     Decorator.__del__(self)
示例#2
0
 def __init__(self, obj, expiration=3600, prefix="auth_"):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "connectionWrapper", None)
     object.__setattr__(self, "prefix", prefix)
     object.__setattr__(self, "expiration", expiration)
示例#3
0
文件: base.py 项目: sahwar/attachix
 def __del__(self):
     # delete object references manually
     object.__delattr__(self, 'redis')
     Decorator.__del__(self)
示例#4
0
文件: base.py 项目: sahwar/attachix
 def __init__(self, obj, expiration=86400, prefix='active_record_'):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "redis", Redis.ConnectionPool().get())
     object.__setattr__(self, "expiration", expiration)
     prefix += "%s" % obj._table
     object.__setattr__(self, "prefix", prefix)
示例#5
0
文件: base.py 项目: slaff/attachix
 def __del__(self):
     # delete object references manually
     object.__delattr__(self, "redis")
     Decorator.__del__(self)
示例#6
0
文件: base.py 项目: slaff/attachix
 def __init__(self, obj, expiration=86400, prefix="active_record_"):
     Decorator.__init__(self, obj)
     object.__setattr__(self, "redis", Redis.ConnectionPool().get())
     object.__setattr__(self, "expiration", expiration)
     prefix += "%s" % obj._table
     object.__setattr__(self, "prefix", prefix)
示例#7
0
文件: storage.py 项目: slaff/attachix
    def __init__(self, obj, expiration=86400, prefix='storage_meta_'):
        Decorator.__init__(self, obj)
        object.__setattr__(self, "redis", Redis.ConnectionPool().get())
	object.__setattr__(self, "expiration", expiration)
        object.__setattr__(self, "prefix", prefix)