Switch to unified view

a/Allura/allura/model/project.py b/Allura/allura/model/project.py
...
...
513
    def app_config(self, mount_point):
513
    def app_config(self, mount_point):
514
        return AppConfig.query.find({
514
        return AppConfig.query.find({
515
                'project_id':self._id,
515
                'project_id':self._id,
516
                'options.mount_point':mount_point}).first()
516
                'options.mount_point':mount_point}).first()
517
517
518
    def app_config_by_tool_type(self, tool_type):
519
        for ac in self.app_configs:
520
            if ac.tool_name == tool_type:
521
                return ac
522
518
    def new_subproject(self, name, install_apps=True, user=None):
523
    def new_subproject(self, name, install_apps=True, user=None):
519
        if not h.re_path_portion.match(name):
524
        if not h.re_path_portion.match(name):
520
            raise exceptions.ToolError, 'Mount point "%s" is invalid' % name
525
            raise exceptions.ToolError, 'Mount point "%s" is invalid' % name
521
        provider = plugin.ProjectRegistrationProvider.get()
526
        provider = plugin.ProjectRegistrationProvider.get()
522
        return provider.register_subproject(self, name, user or c.user, install_apps)
527
        return provider.register_subproject(self, name, user or c.user, install_apps)