Show More
@@ -35,7 +35,7 b' class CeleryCommand(BasePasterCommand):' | |||
|
35 | 35 | except KeyError: |
|
36 | 36 | CELERY_ON = False |
|
37 | 37 | |
|
38 |
if CELERY_ON |
|
|
38 | if not CELERY_ON: | |
|
39 | 39 | raise Exception('Please enable celery_on in .ini config ' |
|
40 | 40 | 'file before running celeryd') |
|
41 | 41 | rhodecode.CELERY_ON = CELERY_ON |
@@ -90,7 +90,7 b' class Collection(pathed.Pathed):' | |||
|
90 | 90 | return max([VerNum(0)] + self.versions.keys()) |
|
91 | 91 | |
|
92 | 92 | def _next_ver_num(self, use_timestamp_numbering): |
|
93 |
if use_timestamp_numbering |
|
|
93 | if use_timestamp_numbering: | |
|
94 | 94 | return VerNum(int(datetime.utcnow().strftime('%Y%m%d%H%M%S'))) |
|
95 | 95 | else: |
|
96 | 96 | return self.latest + 1 |
@@ -555,7 +555,7 b' def load_rcextensions(root_path):' | |||
|
555 | 555 | |
|
556 | 556 | #OVERRIDE OUR EXTENSIONS FROM RC-EXTENSIONS (if present) |
|
557 | 557 | |
|
558 |
if getattr(EXT, 'INDEX_EXTENSIONS', []) |
|
|
558 | if getattr(EXT, 'INDEX_EXTENSIONS', []): | |
|
559 | 559 | log.debug('settings custom INDEX_EXTENSIONS') |
|
560 | 560 | conf.INDEX_EXTENSIONS = getattr(EXT, 'INDEX_EXTENSIONS', []) |
|
561 | 561 |
@@ -123,7 +123,7 b' class PermissionModel(BaseModel):' | |||
|
123 | 123 | self.sa.add(p) |
|
124 | 124 | |
|
125 | 125 | #stage 3 update all default permissions for repos if checked |
|
126 |
if form_result['overwrite_default_repo'] |
|
|
126 | if form_result['overwrite_default_repo']: | |
|
127 | 127 | _def_name = form_result['default_repo_perm'].split('repository.')[-1] |
|
128 | 128 | _def = Permission.get_by_key('repository.' + _def_name) |
|
129 | 129 | # repos |
@@ -136,7 +136,7 b' class PermissionModel(BaseModel):' | |||
|
136 | 136 | r2p.permission = _def |
|
137 | 137 | self.sa.add(r2p) |
|
138 | 138 | |
|
139 |
if form_result['overwrite_default_group'] |
|
|
139 | if form_result['overwrite_default_group']: | |
|
140 | 140 | _def_name = form_result['default_group_perm'].split('group.')[-1] |
|
141 | 141 | # groups |
|
142 | 142 | _def = Permission.get_by_key('group.' + _def_name) |
@@ -146,7 +146,7 b' class PermissionModel(BaseModel):' | |||
|
146 | 146 | g2p.permission = _def |
|
147 | 147 | self.sa.add(g2p) |
|
148 | 148 | |
|
149 |
if form_result['overwrite_default_user_group'] |
|
|
149 | if form_result['overwrite_default_user_group']: | |
|
150 | 150 | _def_name = form_result['default_user_group_perm'].split('usergroup.')[-1] |
|
151 | 151 | # groups |
|
152 | 152 | _def = Permission.get_by_key('usergroup.' + _def_name) |
General Comments 0
You need to be logged in to leave comments.
Login now