allura
Révision | d599cc5dc5c3167068b415cfa44d9a4c05738b75 (tree) |
---|---|
l'heure | 2010-05-23 02:22:05 |
Auteur | Rick Copeland <rcopeland@corp...> |
Commiter | Rick Copeland |
Set sfx_userid on user creation, prior to user project registration, so the sfx project registration doesn't fail
@@ -41,7 +41,10 @@ class SFXUserApi(object): | ||
41 | 41 | user_data = self.user_data(username) |
42 | 42 | u = M.User.query.get(username=username) |
43 | 43 | 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']) | |
45 | 48 | n = M.Neighborhood.query.get(name='Users') |
46 | 49 | n.register_project('u/' + u.username, u, user_project=True) |
47 | 50 | if u.display_name != user_data['name']: |