Changeset - 2da7b5984ae5
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-05-28 23:31:17
marcin@python-works.com
typo fix + code garden
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -27,6 +27,7 @@ import os
 
import logging
 
import datetime
 
import traceback
 
import hashlib
 
from collections import defaultdict
 

	
 
from sqlalchemy import *
 
@@ -43,9 +44,8 @@ from rhodecode.lib.utils2 import str2boo
 
    safe_unicode
 
from rhodecode.lib.compat import json
 
from rhodecode.lib.caching_query import FromCache
 
from rhodecode.model.meta import Base, Session
 

	
 
from rhodecode.model.meta import Base, Session
 
import hashlib
 

	
 
URL_SEP = '/'
 
log = logging.getLogger(__name__)
 
@@ -152,6 +152,7 @@ class BaseModel(object):
 
            return safe_str(self.__unicode__())
 
        return '<DB:%s>' % (self.__class__.__name__)
 

	
 

	
 
class RhodeCodeSetting(Base, BaseModel):
 
    __tablename__ = 'rhodecode_settings'
 
    __table_args__ = (
 
@@ -1128,7 +1129,7 @@ class CacheInvalidation(Base, BaseModel)
 
            try:
 
                inv_obj = CacheInvalidation(key, org_key)
 
                Session.add(inv_obj)
 
                #Session.commit()
 
                Session.commit()
 
            except Exception:
 
                log.error(traceback.format_exc())
 
                Session.rollback()
0 comments (0 inline, 0 general)