14 years, 12 months ago
(2010-04-29 06:26:03 UTC)
#2
http://codereview.appspot.com/962047/diff/1/2
File res.py (right):
http://codereview.appspot.com/962047/diff/1/2#newcode151
res.py:151: lang_obj = self.pool.get('ir.lang')
On 2010/04/28 20:20:22, udono wrote:
> Objekte werden üblicherweise am Anfang einer Methode instanziert. Ich würde
> Zeile 151 hinter Zeile 124 einfügen.
ist das instanzieren hier lazy? möchte nicht unnötige arbeit provozieren. hatte
es auch erst oben.
http://codereview.appspot.com/962047/diff/1/2#newcode154
res.py:154: [login])[0]), ], context=context)
On 2010/04/28 20:20:22, udono wrote:
> Versteh ich nicht. wieso ist [login] der default Wert wenn 'preferredLanguage'
> nicht existiert?
>
> D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
stimmt. macht keinen sinn.
http://codereview.appspot.com/962047/diff/5001/6001 File res.py (left): http://codereview.appspot.com/962047/diff/5001/6001#oldcode147 res.py:147: 'name': attrs.get(str(connection.auth_uid), [login])[0], wieso die auth_uid? ich bin der ...
14 years, 12 months ago
(2010-04-29 06:46:08 UTC)
#3
Issue 962047: additional attributes from ldap: mail, preferredLanguage for initial creation
Created 14 years, 12 months ago by paepke
Modified 12 years ago
Reviewers: udono
Base URL:
Comments: 8