allura
リビジョン | 0e43247ef0940f6865e12af168f080b45fb53606 (tree) |
---|---|
日時 | 2012-05-17 04:06:46 |
作者 | Eugene “Stilgar“ Gilewski <developer@gile...> |
コミッター | Cory Johns |
ticket:42: Fixed mount point regexp and removed odd to_name generation.
@@ -74,7 +74,7 @@ class RepoRootController(BaseController): | ||
74 | 74 | mount_label = mount_label or '%s - Code' % c.project.name |
75 | 75 | try: |
76 | 76 | to_name = (to_name or |
77 | - re.search('\w+$', from_project.shortname).group(0)) | |
77 | + re.search('[a-z]+$', from_project.shortname).group(0)) | |
78 | 78 | except AttributeError: |
79 | 79 | to_name = '' |
80 | 80 | if request.method != 'POST' or not to_name: |
@@ -87,7 +87,6 @@ class RepoRootController(BaseController): | ||
87 | 87 | if not to_project.database_configured: |
88 | 88 | to_project.configure_project(is_user_project=True) |
89 | 89 | security.require(security.has_access(to_project, 'admin')) |
90 | - to_name = from_project.shortname | |
91 | 90 | try: |
92 | 91 | to_project.install_app( |
93 | 92 | ep_name=from_repo.tool_name, |