Mercurial > kallithea
comparison rhodecode/model/db.py @ 2058:fb51a6fc10ae beta
updated CONTRIBUTORS
- code garden
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 Feb 2012 05:25:16 +0200 |
parents | 6020e3884a58 |
children | bf8ed0adbc66 |
comparison
equal
deleted
inserted
replaced
2057:766696ee9487 | 2058:fb51a6fc10ae |
---|---|
1036 """ | 1036 """ |
1037 import rhodecode | 1037 import rhodecode |
1038 prefix = '' | 1038 prefix = '' |
1039 iid = rhodecode.CONFIG.get('instance_id') | 1039 iid = rhodecode.CONFIG.get('instance_id') |
1040 if iid: | 1040 if iid: |
1041 prefix = iid | 1041 prefix = iid |
1042 return "%s%s" % (prefix, key) | 1042 return "%s%s" % (prefix, key) |
1043 | 1043 |
1044 @classmethod | 1044 @classmethod |
1045 def get_by_key(cls, key): | 1045 def get_by_key(cls, key): |
1046 return cls.query().filter(cls.cache_key == key).scalar() | 1046 return cls.query().filter(cls.cache_key == key).scalar() |