[FIX] website_forum: use other attr than value to init select2
[odoo/odoo.git] / addons / auth_openid / utils.py
1 ##############################################################################
2 #
3 #    OpenERP, Open Source Management Solution
4 #    Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
5 #
6 #    This program is free software: you can redistribute it and/or modify
7 #    it under the terms of the GNU Affero General Public License as
8 #    published by the Free Software Foundation, either version 3 of the
9 #    License, or (at your option) any later version.
10 #
11 #    This program is distributed in the hope that it will be useful,
12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #    GNU Affero General Public License for more details.
15 #
16 #    You should have received a copy of the GNU Affero General Public License
17 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19 ##############################################################################
20
21 KEY_LENGTH = 16
22
23 SREG2AX = {     # from http://www.axschema.org/types/#sreg
24     'nickname': 'http://axschema.org/namePerson/friendly',
25     'email': 'http://axschema.org/contact/email',
26     'fullname': 'http://axschema.org/namePerson',
27     'dob': 'http://axschema.org/birthDate',
28     'gender': 'http://axschema.org/person/gender',
29     'postcode': 'http://axschema.org/contact/postalCode/home',
30     'country': 'http://axschema.org/contact/country/home',
31     'language': 'http://axschema.org/pref/language',
32     'timezone': 'http://axschema.org/pref/timezone',
33 }
34
35 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: