incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [1/5] git commit: [#6941] Don't break on svn commit _id, which contains ':'
Date Thu, 05 Dec 2013 22:21:09 GMT
Updated Branches:
  refs/heads/tv/6829 0221e3e67 -> dcd27597d (forced update)


[#6941] Don't break on svn commit _id, which contains ':'

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.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/83bb21c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/83bb21c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/83bb21c3

Branch: refs/heads/tv/6829
Commit: 83bb21c3d2b42fa788ed1b444626bd660cd008eb
Parents: 1edeb4a
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Wed Dec 4 01:18:57 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Dec 5 21:03:28 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/timeline.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/83bb21c3/Allura/allura/model/timeline.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/timeline.py b/Allura/allura/model/timeline.py
index 38550b8..a80e5ba 100644
--- a/Allura/allura/model/timeline.py
+++ b/Allura/allura/model/timeline.py
@@ -67,7 +67,7 @@ def perm_check(user):
         if not extras_dict: return True
         allura_id = extras_dict.get('allura_id')
         if not allura_id: return True
-        classname, _id = allura_id.split(':')
+        classname, _id = allura_id.split(':', 1)
         cls = Mapper.by_classname(classname).mapped_class
         try:
             _id = bson.ObjectId(_id)


Mime
View raw message