Diff of /Allura/allura/lib/plugin.py [c4f76a] .. [9d8474]  Maximize  Restore

Switch to side-by-side view

--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -323,6 +323,7 @@
                     homepage_title = '# ' + name,
                     database_uri=database_uri,
                     last_updated = datetime.utcnow(),
+                    is_nbhd_project=True,
                     is_root=True)
         try:
             p.configure_project(
@@ -355,7 +356,7 @@
         pq = M.Project.query.find(dict(
                 neighborhood_id=neighborhood._id,
                 deleted=False,
-                shortname={'$ne':'--init--'}
+                is_nbhd_project=False,
                 ))
         count = pq.count()
         nb_max_projects = neighborhood.get_max_projects()
@@ -379,6 +380,7 @@
                         homepage_title=shortname,
                         database_uri=M.Project.default_database_uri(shortname),
                         last_updated = datetime.utcnow(),
+                        is_nbhd_project=False,
                         is_root=True)
             p.configure_project(
                 users=[user],

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks