Quick fix to fix user profile creation
This change will be obsolete when User refactoring is finished, but
it will fix the build untill then.
--- a/app/soc/views/models/base.py Mon Nov 03 18:20:53 2008 +0000
+++ b/app/soc/views/models/base.py Mon Nov 03 19:04:04 2008 +0000
@@ -292,7 +292,7 @@
entity = None
try:
- key_fields = self._logic.getKeyFieldsFromKwargs(kwargs)
+ key_fields = self._logic.getKeyFieldsFromDict(kwargs)
entity = self._logic.getIfFields(key_fields)
except soc.logic.out_of_band.ErrorResponse, error:
template = self._params['edit_template']
--- a/app/soc/views/user/profile.py Mon Nov 03 18:20:53 2008 +0000
+++ b/app/soc/views/user/profile.py Mon Nov 03 19:04:04 2008 +0000
@@ -145,7 +145,7 @@
'id': id,
}
- key_fields = models.user.logic.getKeyFieldsFromDict(properties)
+ key_fields = {'email': id.email()}
user = models.user.logic.updateOrCreateFromFields(properties,
key_fields)