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 2014/06/04 22:52:05 UTC

[06/16] git commit: [#1687] ticket:582 Add if_missing to OAuthConsumerToken.description

[#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 <je...@gmail.com>
Authored: Tue May 6 15:10:08 2014 +0300
Committer: Dave Brondsema <db...@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')