##// END OF EJS Templates
auto white-space removal
marcink -
r1818:cf51bbfb beta
parent child Browse files
Show More
@@ -226,5 +226,3 class ReposGroupsController(BaseControll
226 226 encoding="UTF-8",
227 227 force_defaults=False
228 228 )
229
230
@@ -259,4 +259,3 class JSONRPCController(WSGIController):
259 259 return func
260 260 else:
261 261 raise AttributeError("No such method: %s" % self._req_method)
262
@@ -139,4 +139,3 class ChangelogController(BaseRepoContro
139 139 data.append(['', vtx, edges])
140 140
141 141 c.jsdata = json.dumps(data)
142
@@ -490,4 +490,3 class FilesController(BaseRepoController
490 490 _d, _f = ScmModel().get_nodes(repo_name, cs.raw_id, f_path,
491 491 flat=False)
492 492 return _d + _f
493
@@ -66,4 +66,3 class HomeController(BaseController):
66 66 return render('/switch_to_list.html')
67 67 else:
68 68 return HTTPBadRequest()
69
@@ -233,4 +233,3 class SummaryController(BaseRepoControll
233 233 download_l.append(tags_group)
234 234
235 235 return download_l
236
@@ -696,4 +696,3 class HasPermissionAnyMiddleware(object)
696 696 return True
697 697 log.debug('permission denied')
698 698 return False
699
@@ -175,4 +175,3 class BaseRepoController(BaseController)
175 175
176 176 c.repository_followers = self.scm_model.get_followers(c.repo_name)
177 177 c.repository_forks = self.scm_model.get_forks(c.repo_name)
178
@@ -8,4 +8,4
8 8 from rhodecode.lib.dbmigrate.migrate.versioning import *
9 9 from rhodecode.lib.dbmigrate.migrate.changeset import *
10 10
11 __version__ = '0.7.3.dev' No newline at end of file
11 __version__ = '0.7.3.dev'
@@ -282,4 +282,3 class ModelGenerator(object):
282 282 except:
283 283 trans.rollback()
284 284 raise
285
@@ -91,4 +91,4 class CacheInvalidation(Base, BaseModel)
91 91 self.cache_active = False
92 92
93 93 def __repr__(self):
94 return "<CacheInvalidation('%s:%s')>" % (self.cache_id, self.cache_key) No newline at end of file
94 return "<CacheInvalidation('%s:%s')>" % (self.cache_id, self.cache_key)
@@ -1095,4 +1095,3 class DbMigrateVersion(Base, BaseModel):
1095 1095 repository_id = Column('repository_id', String(250), primary_key=True)
1096 1096 repository_path = Column('repository_path', Text)
1097 1097 version = Column('version', Integer)
1098
@@ -21,4 +21,4
21 21 # GNU General Public License for more details.
22 22 #
23 23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>. No newline at end of file
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -136,4 +136,3 class MarkupRenderer(object):
136 136 return ' **@%(uname)s** ' % {'uname':uname}
137 137 mention_hl = mention_pat.sub(wrapp, source).strip()
138 138 return cls.rst(mention_hl)
139
@@ -249,4 +249,3 class SimpleHg(BaseVCSController):
249 249 for section in ui_sections:
250 250 for k, v in repoui.configitems(section):
251 251 baseui.setconfig(section, k, v)
252
@@ -178,5 +178,3 class Message(object):
178 178 """
179 179
180 180 self.attachments.append(attachment)
181
182
@@ -597,4 +597,4 class BasePasterCommand(Command):
597 597
598 598 path_to_ini_file = os.path.realpath(conf)
599 599 conf = paste.deploy.appconfig('config:' + path_to_ini_file)
600 pylonsconfig.init_app(conf.global_conf, conf.local_conf) No newline at end of file
600 pylonsconfig.init_app(conf.global_conf, conf.local_conf)
@@ -1120,4 +1120,3 class DbMigrateVersion(Base, BaseModel):
1120 1120 repository_id = Column('repository_id', String(250), primary_key=True)
1121 1121 repository_path = Column('repository_path', Text)
1122 1122 version = Column('version', Integer)
1123
@@ -217,5 +217,3 class EmailNotificationModel(BaseModel):
217 217 _kwargs.update(kwargs)
218 218 log.debug('rendering tmpl %s with kwargs %s' % (base, _kwargs))
219 219 return email_template.render(**_kwargs)
220
221
@@ -427,4 +427,3 class RepoModel(BaseModel):
427 427 % (datetime.today()\
428 428 .strftime('%Y%m%d_%H%M%S_%f'),
429 429 repo.repo_name)))
430
@@ -94,4 +94,4 class RepositoryPermissionModel(BaseMode
94 94 self.update_users_group_permission(repository, user_group,
95 95 permission)
96 96 else:
97 self.delete_users_group_permission(repository, user_group) No newline at end of file
97 self.delete_users_group_permission(repository, user_group)
@@ -148,5 +148,3 class UsersGroupModel(BaseModel):
148 148 .filter(UsersGroupToPerm.users_group == users_group)\
149 149 .filter(UsersGroupToPerm.permission == perm).one()
150 150 self.sa.delete(obj)
151
152
@@ -107,4 +107,3 class TestController(TestCase):
107 107 def checkSessionFlash(self, response, msg):
108 108 self.assertTrue('flash' in response.session)
109 109 self.assertTrue(msg in response.session['flash'][0][1])
110
@@ -85,7 +85,3 class TestAdminUsersGroupsController(Tes
85 85
86 86 def test_revoke_members(self):
87 87 pass
88
89
90
91
@@ -9,9 +9,3 class TestBranchesController(TestControl
9 9 response.mustcontain("""<a href="/%s/files/27cd5cce30c96924232dffcd24178a07ffeb5dfc/">default</a>""" % HG_REPO)
10 10 response.mustcontain("""<a href="/%s/files/97e8b885c04894463c51898e14387d80c30ed1ee/">git</a>""" % HG_REPO)
11 11 response.mustcontain("""<a href="/%s/files/2e6a2bf9356ca56df08807f4ad86d480da72a8f4/">web</a>""" % HG_REPO)
12
13
14
15
16
17
@@ -137,7 +137,3 class TestChangeSetCommentrController(Te
137 137 repo_name=HG_REPO, revision=rev))
138 138 self.assertTrue('''<div class="comments-number">0 comment(s)'''
139 139 ''' (0 inline)</div>''' in response.body)
140
141
142
143
@@ -321,6 +321,3 removed extra unicode conversion in diff
321 321 extra_environ={'HTTP_X_PARTIAL_XHR':'1'},
322 322 )
323 323 self.assertTrue("vcs/web/simplevcs/views/repository.py" in response.body)
324
325
326
@@ -10,4 +10,3 class TestTagsController(TestController)
10 10 response.mustcontain("""<a href="/%s/files/17544fbfcd33ffb439e2b728b5d526b1ef30bfcf/">0.1.3</a>""" % HG_REPO)
11 11 response.mustcontain("""<a href="/%s/files/a7e60bff65d57ac3a1a1ce3b12a70f8a9e8a7720/">0.1.2</a>""" % HG_REPO)
12 12 response.mustcontain("""<a href="/%s/files/eb3a60fc964309c1a318b8dfe26aa2d1586c85ae/">0.1.1</a>""" % HG_REPO)
13
@@ -112,5 +112,3 class TestLibs(unittest.TestCase):
112 112 s = ['2one_more22', 'D', 'MARCIN', 'first', 'lukaszb',
113 113 'maRCiN', 'marcink', 'one']
114 114 self.assertEqual(s, extract_mentioned_users(sample))
115
116
@@ -402,9 +402,3 class TestUsers(unittest.TestCase):
402 402 UserModel().revoke_perm(self.u1, perm)
403 403 Session.commit()
404 404 self.assertEqual(UserModel().has_perm(self.u1, perm),False)
405
406
407
408
409
410
General Comments 0
You need to be logged in to leave comments. Login now