Show More
@@ -138,7 +138,9 b' def ValidRepoName(edit=False):' | |||
|
138 | 138 | |
|
139 | 139 | def to_python(self, value, state): |
|
140 | 140 | slug = h.repo_name_slug(value) |
|
141 | ||
|
141 | if slug in ['_admin']: | |
|
142 | raise formencode.Invalid(_('This repository name is disallowed'), | |
|
143 | value, state) | |
|
142 | 144 | sa = meta.Session |
|
143 | 145 | if sa.query(Repository).get(slug) and not edit: |
|
144 | 146 | raise formencode.Invalid(_('This repository already exists'), |
General Comments 0
You need to be logged in to leave comments.
Login now