You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/07/23 04:52:52 UTC

[9/9] git commit: [#6456] Removed hard-coded reference to SourceForge

[#6456] Removed hard-coded reference to SourceForge

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/788e9e41
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/788e9e41
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/788e9e41

Branch: refs/heads/master
Commit: 788e9e41bdcffa9f9bdd2e64a252b33a835b202d
Parents: 138f431
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Mon Jul 22 21:58:50 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue Jul 23 02:45:42 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/project.py            | 4 ++--
 Allura/development.ini                          | 1 +
 Allura/test.ini                                 | 1 +
 ForgeImporters/forgeimporters/google/project.py | 6 +++---
 4 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/788e9e41/Allura/allura/controllers/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index 24bba79..a407bba 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -225,8 +225,8 @@ class NeighborhoodController(object):
             for i, tool in enumerate(tools):
                 if (tool.lower() not in anchored_tools.keys()) and (c.project.app_instance(tool) is None):
                     c.project.install_app(tool, ordinal=i + offset)
-        flash('Welcome to the SourceForge Project System! '
-              'To get started, fill out some information about your project.')
+        flash('Welcome to the %s Project System! '
+              'To get started, fill out some information about your project.' % config['site_name'])
         redirect(c.project.script_name + 'admin/overview')
 
     @expose()

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/788e9e41/Allura/development.ini
----------------------------------------------------------------------
diff --git a/Allura/development.ini b/Allura/development.ini
index ab0877c..338b8ee 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -46,6 +46,7 @@ next=main
 use = egg:Allura
 full_stack = true
 use_queue = true
+site_name = Allura
 
 base_url = http://localhost:8080
 

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/788e9e41/Allura/test.ini
----------------------------------------------------------------------
diff --git a/Allura/test.ini b/Allura/test.ini
index f1bd5f2..7394359 100644
--- a/Allura/test.ini
+++ b/Allura/test.ini
@@ -37,6 +37,7 @@ port = 5000
 use = config:development.ini#tool_test
 db_prefix = test_
 
+site_name = Allura
 base_url = http://localhost
 
 # Use test MongoDB DB server

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/788e9e41/ForgeImporters/forgeimporters/google/project.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/project.py b/ForgeImporters/forgeimporters/google/project.py
index caf1346..057115f 100644
--- a/ForgeImporters/forgeimporters/google/project.py
+++ b/ForgeImporters/forgeimporters/google/project.py
@@ -15,7 +15,7 @@
 #       specific language governing permissions and limitations
 #       under the License.
 
-from tg import expose, validate, flash, redirect
+from tg import expose, validate, flash, redirect, config
 from tg.decorators import with_trailing_slash
 from pylons import tmpl_context as c
 from formencode import validators as fev, schema
@@ -74,8 +74,8 @@ class GoogleCodeProjectImporter(base.ProjectImporter):
         for importer_name in tools:
             tasks.import_tool.post(importer_name)
 
-        flash('Welcome to the SourceForge Project System! '
-              'Your project data will be imported and should show up here shortly.')
+        flash('Welcome to the %s Project System! '
+              'Your project data will be imported and should show up here shortly.' % config['site_name'])
         redirect(c.project.script_name + 'admin/overview')
 
     @expose('json:')