allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [06/16] git commit: [#1687] ticket:582 Add if_missing to OAuthConsumerToken.description
Date Wed, 04 Jun 2014 20:52:05 GMT
[#1687] ticket:582 Add if_missing to OAuthConsumerToken.description

Prevents /auth/oauth/ from raising errors about markdown_html being
absent (may happen when token created without description, e.g. in trac
importer)


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

Branch: refs/heads/master
Commit: c102aa909a3000d93cbfdb60b0dbbab617eeec1c
Parents: 66753dd
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue May 6 15:10:08 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Jun 3 15:27:22 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/c102aa90/Allura/allura/model/oauth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/oauth.py b/Allura/allura/model/oauth.py
index fd250bb..86dcb42 100644
--- a/Allura/allura/model/oauth.py
+++ b/Allura/allura/model/oauth.py
@@ -65,7 +65,7 @@ class OAuthConsumerToken(OAuthToken):
     type = FieldProperty(str, if_missing='consumer')
     user_id = AlluraUserProperty(if_missing=lambda: c.user._id)
     name = FieldProperty(str)
-    description = FieldProperty(str)
+    description = FieldProperty(str, if_missing='')
     description_cache = FieldProperty(MarkdownCache)
 
     user = RelationProperty('User')


Mime
View raw message