Switch to unified view

a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
...
...
321
                    short_description='',
321
                    short_description='',
322
                    description=('You can edit this description in the admin page'),
322
                    description=('You can edit this description in the admin page'),
323
                    homepage_title = '# ' + name,
323
                    homepage_title = '# ' + name,
324
                    database_uri=database_uri,
324
                    database_uri=database_uri,
325
                    last_updated = datetime.utcnow(),
325
                    last_updated = datetime.utcnow(),
326
                    is_nbhd_project=True,
326
                    is_root=True)
327
                    is_root=True)
327
        try:
328
        try:
328
            p.configure_project(
329
            p.configure_project(
329
                users=users,
330
                users=users,
330
                is_user_project=False,
331
                is_user_project=False,
...
...
353
354
354
        # Check for project limit creation
355
        # Check for project limit creation
355
        pq = M.Project.query.find(dict(
356
        pq = M.Project.query.find(dict(
356
                neighborhood_id=neighborhood._id,
357
                neighborhood_id=neighborhood._id,
357
                deleted=False,
358
                deleted=False,
358
                shortname={'$ne':'--init--'}
359
                is_nbhd_project=False,
359
                ))
360
                ))
360
        count = pq.count()
361
        count = pq.count()
361
        nb_max_projects = neighborhood.get_max_projects()
362
        nb_max_projects = neighborhood.get_max_projects()
362
363
363
        if nb_max_projects is not None and count >= nb_max_projects:
364
        if nb_max_projects is not None and count >= nb_max_projects:
...
...
377
                        short_description='',
378
                        short_description='',
378
                        description=('You can edit this description in the admin page'),
379
                        description=('You can edit this description in the admin page'),
379
                        homepage_title=shortname,
380
                        homepage_title=shortname,
380
                        database_uri=M.Project.default_database_uri(shortname),
381
                        database_uri=M.Project.default_database_uri(shortname),
381
                        last_updated = datetime.utcnow(),
382
                        last_updated = datetime.utcnow(),
383
                        is_nbhd_project=False,
382
                        is_root=True)
384
                        is_root=True)
383
            p.configure_project(
385
            p.configure_project(
384
                users=[user],
386
                users=[user],
385
                is_user_project=user_project,
387
                is_user_project=user_project,
386
                is_private_project=private_project or project_template.get('private', False),
388
                is_private_project=private_project or project_template.get('private', False),