You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by pe...@apache.org on 2013/05/10 20:17:00 UTC

[1/3] git commit: [#3905] Remove unused helper along with unportable test

Updated Branches:
  refs/heads/ph/3905 [created] 53e4225ec


[#3905] Remove unused helper along with unportable test

Signed-off-by: Peter Hartmann <pe...@apache.org>

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

Branch: refs/heads/ph/3905
Commit: 7f08327d7d9e7ac402f42b04ab35752d5729b582
Parents: 4ac36f9
Author: Peter Hartmann <pe...@apache.org>
Authored: Wed Apr 24 21:06:07 2013 +0200
Committer: Peter Hartmann <pe...@apache.org>
Committed: Wed Apr 24 21:06:07 2013 +0200

----------------------------------------------------------------------
 Allura/allura/lib/helpers.py        |    7 -------
 Allura/allura/tests/test_helpers.py |    3 ---
 2 files changed, 0 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7f08327d/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index c6b144f..5c4db5b 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -138,13 +138,6 @@ def find_project(url_path):
         length -= 1
     return None, url_path.split('/')
 
-def find_executable(exe_name):
-    '''Find the abspath of a given executable (which
-    must be on the PATH)'''
-    for dirname in os.environ['PATH'].split(os.pathsep):
-        path = os.path.join(dirname, exe_name)
-        if os.access(path, os.X_OK): return path
-
 def make_neighborhoods(ids):
     return _make_xs('Neighborhood', ids)
 

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7f08327d/Allura/allura/tests/test_helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_helpers.py b/Allura/allura/tests/test_helpers.py
index 2b8e179..631e7d3 100644
--- a/Allura/allura/tests/test_helpers.py
+++ b/Allura/allura/tests/test_helpers.py
@@ -67,9 +67,6 @@ def test_find_project():
     proj, rest = h.find_project('/p/testable/foo')
     assert proj is None
 
-def test_find_executable():
-    assert h.find_executable('bash') == '/bin/bash'
-
 def test_make_users():
     r = h.make_users([None]).next()
     assert r.username == '*anonymous', r


[2/3] git commit: [#3905] Fix UnicodeEncodeError when system locale is not english

Posted by pe...@apache.org.
[#3905] Fix UnicodeEncodeError when system locale is not english

Signed-off-by: Peter Hartmann <pe...@apache.org>

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

Branch: refs/heads/ph/3905
Commit: 09b8e762cfb8fe7194440afecd5f55edd763f4b6
Parents: 7f08327
Author: Peter Hartmann <pe...@apache.org>
Authored: Tue Apr 30 01:08:51 2013 +0200
Committer: Peter Hartmann <pe...@apache.org>
Committed: Tue Apr 30 01:08:51 2013 +0200

----------------------------------------------------------------------
 Allura/allura/config/middleware.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/09b8e762/Allura/allura/config/middleware.py
----------------------------------------------------------------------
diff --git a/Allura/allura/config/middleware.py b/Allura/allura/config/middleware.py
index 9cadf6b..e5caead 100644
--- a/Allura/allura/config/middleware.py
+++ b/Allura/allura/config/middleware.py
@@ -33,6 +33,7 @@ from pylons.middleware import StatusCodeRedirect
 
 import activitystream
 import ew
+import formencode
 import ming
 from ming.orm.middleware import MingMiddleware
 
@@ -93,6 +94,9 @@ def _make_core_app(root, global_conf, full_stack=True, **app_conf):
 
     # Configure EW variable provider
     ew.render.TemplateEngine.register_variable_provider(get_tg_vars)
+    
+    # Set FormEncode language to english, as we don't support any other locales
+    formencode.api.set_stdtranslation(domain='FormEncode', languages=['en'])
 
     # Create base app
     base_config = ForgeConfig(root)


[3/3] git commit: [#3905] Limit tools expected in testing to a bare minimum

Posted by pe...@apache.org.
[#3905] Limit tools expected in testing to a bare minimum

Signed-off-by: Peter Hartmann <pe...@apache.org>

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

Branch: refs/heads/ph/3905
Commit: 53e4225ec50cc41f3bde6ee359ec8bb4712b2ece
Parents: 09b8e76
Author: Peter Hartmann <pe...@apache.org>
Authored: Wed May 1 20:29:37 2013 +0200
Committer: Peter Hartmann <pe...@apache.org>
Committed: Wed May 1 20:29:37 2013 +0200

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_admin.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/53e4225e/Allura/allura/tests/functional/test_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_admin.py b/Allura/allura/tests/functional/test_admin.py
index ac63ffe..d94a5f7 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -181,11 +181,9 @@ class TestProjectAdmin(TestController):
         new_ep_opts = r.html.findAll('a',{'class':"install_trig"})
         tool_strings = [ ' '.join(opt.find('span').string.strip().split()) for opt in new_ep_opts ]
         expected_tools = [
-            'External Link',
             'Wiki',
             'Tickets',
             'Discussion',
-            'Chat (alpha)',
             'Blog',
             'Subproject']
         # check using sets, because their may be more tools installed by default