##// END OF EJS Templates
settings: optimized improts
super-admin -
r4945:6451f5b2 default
parent child Browse files
Show More
@@ -23,9 +23,10 b' import re'
23 import hashlib
23 import hashlib
24 import logging
24 import logging
25 import time
25 import time
26 import functools
27 import bleach
26 from collections import namedtuple
28 from collections import namedtuple
27 from functools import wraps
29
28 import bleach
29 from pyramid.threadlocal import get_current_request, get_current_registry
30 from pyramid.threadlocal import get_current_request, get_current_registry
30
31
31 from rhodecode.lib import rc_cache
32 from rhodecode.lib import rc_cache
@@ -325,7 +326,7 b' class SettingsModel(BaseModel):'
325
326
326
327
327 def assert_repo_settings(func):
328 def assert_repo_settings(func):
328 @wraps(func)
329 @functools.wraps(func)
329 def _wrapper(self, *args, **kwargs):
330 def _wrapper(self, *args, **kwargs):
330 if not self.repo_settings:
331 if not self.repo_settings:
331 raise Exception('Repository is not specified')
332 raise Exception('Repository is not specified')
General Comments 0
You need to be logged in to leave comments. Login now