• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisiond599cc5dc5c3167068b415cfa44d9a4c05738b75 (tree)
Zeit2010-05-23 02:22:05
AutorRick Copeland <rcopeland@corp...>
CommiterRick Copeland

Log Message

Set sfx_userid on user creation, prior to user project registration, so the sfx project registration doesn't fail

Ändern Zusammenfassung

Diff

--- a/pyforge/pyforge/ext/sfx/lib/sfx_api.py
+++ b/pyforge/pyforge/ext/sfx/lib/sfx_api.py
@@ -41,7 +41,10 @@ class SFXUserApi(object):
4141 user_data = self.user_data(username)
4242 u = M.User.query.get(username=username)
4343 if u is None:
44- u = M.User(username=username)
44+ u = M.User(
45+ username=username,
46+ display_name=user_data['name'],
47+ sfx_userid=user_data['id'])
4548 n = M.Neighborhood.query.get(name='Users')
4649 n.register_project('u/' + u.username, u, user_project=True)
4750 if u.display_name != user_data['name']: