Switch to unified view

a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
...
...
26
from allura.lib.decorators import require_post
26
from allura.lib.decorators import require_post
27
from allura.controllers.error import ErrorController
27
from allura.controllers.error import ErrorController
28
from allura.lib.security import require_access, has_access
28
from allura.lib.security import require_access, has_access
29
from allura.lib.security import RoleCache
29
from allura.lib.security import RoleCache
30
from allura.lib.widgets import form_fields as ffw
30
from allura.lib.widgets import form_fields as ffw
31
from allura.lib.widgets import forms as forms
32
from allura.lib.widgets import project_list as plw
31
from allura.lib.widgets import project_list as plw
33
from allura.lib import plugin
32
from allura.lib import plugin
34
from allura.lib import exceptions as forge_exc
33
from allura.lib import exceptions as forge_exc
35
from .auth import AuthController
34
from .auth import AuthController
36
from .search import SearchController, ProjectBrowseController
35
from .search import SearchController, ProjectBrowseController
...
...
41
log = logging.getLogger(__name__)
40
log = logging.getLogger(__name__)
42
41
43
class W:
42
class W:
44
    resize_editor = ffw.AutoResizeTextarea()
43
    resize_editor = ffw.AutoResizeTextarea()
45
    project_summary = plw.ProjectSummary()
44
    project_summary = plw.ProjectSummary()
46
    add_project = forms.NeighborhoodAddProjectForm(antispam=True)
45
    add_project = plugin.ProjectRegistrationProvider.get().add_project_widget(antispam=True)
47
    page_list = ffw.PageList()
46
    page_list = ffw.PageList()
48
    page_size = ffw.PageSize()
47
    page_size = ffw.PageSize()
49
48
50
class NeighborhoodController(object):
49
class NeighborhoodController(object):
51
    '''Manages a neighborhood of projects.
50
    '''Manages a neighborhood of projects.