##// END OF EJS Templates
typo fix + code garden
marcink -
r2356:2da7b598 beta
parent child Browse files
Show More
@@ -27,6 +27,7 b' import os'
27 27 import logging
28 28 import datetime
29 29 import traceback
30 import hashlib
30 31 from collections import defaultdict
31 32
32 33 from sqlalchemy import *
@@ -43,9 +44,8 b' from rhodecode.lib.utils2 import str2boo'
43 44 safe_unicode
44 45 from rhodecode.lib.compat import json
45 46 from rhodecode.lib.caching_query import FromCache
47 from rhodecode.model.meta import Base, Session
46 48
47 from rhodecode.model.meta import Base, Session
48 import hashlib
49 49
50 50 URL_SEP = '/'
51 51 log = logging.getLogger(__name__)
@@ -152,6 +152,7 b' class BaseModel(object):'
152 152 return safe_str(self.__unicode__())
153 153 return '<DB:%s>' % (self.__class__.__name__)
154 154
155
155 156 class RhodeCodeSetting(Base, BaseModel):
156 157 __tablename__ = 'rhodecode_settings'
157 158 __table_args__ = (
@@ -1128,7 +1129,7 b' class CacheInvalidation(Base, BaseModel)'
1128 1129 try:
1129 1130 inv_obj = CacheInvalidation(key, org_key)
1130 1131 Session.add(inv_obj)
1131 #Session.commit()
1132 Session.commit()
1132 1133 except Exception:
1133 1134 log.error(traceback.format_exc())
1134 1135 Session.rollback()
General Comments 0
You need to be logged in to leave comments. Login now