choice of sex is m/f instead of 0/1
This commit is contained in:
parent
b6821b0567
commit
4f2a01816b
1 changed files with 2 additions and 2 deletions
|
|
@ -412,7 +412,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
ACCOUNT_REGISTER_PROPERTIES = ValuesDict(
|
ACCOUNT_REGISTER_PROPERTIES = ValuesDict(
|
||||||
Value('username', label='Email address', regexp='^[^ ]+@[^ ]+\.[^ ]+$'),
|
Value('username', label='Email address', regexp='^[^ ]+@[^ ]+\.[^ ]+$'),
|
||||||
Value('password', label='Password', regexp='^[^ ]+$', masked=True),
|
Value('password', label='Password', regexp='^[^ ]+$', masked=True),
|
||||||
Value('sex', label='Sex', choices={'0': 'Male', '1': 'Female'}),
|
Value('sex', label='Sex', choices={'m': 'Male', 'f': 'Female'}),
|
||||||
Value('birthday', label='Birthday (dd/mm/yyyy)', regexp='^\d+/\d+/\d+$'),
|
Value('birthday', label='Birthday (dd/mm/yyyy)', regexp='^\d+/\d+/\d+$'),
|
||||||
Value('zipcode', label='Zipcode'),
|
Value('zipcode', label='Zipcode'),
|
||||||
Value('country', label='Country', choices={'fr': 'France', 'be': 'Belgique', 'ch': 'Suisse', 'ca': 'Canada'}, default='fr'),
|
Value('country', label='Country', choices={'fr': 'France', 'be': 'Belgique', 'ch': 'Suisse', 'ca': 'Canada'}, default='fr'),
|
||||||
|
|
@ -435,7 +435,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
try:
|
try:
|
||||||
browser = klass.BROWSER(account.properties['username'].value)
|
browser = klass.BROWSER(account.properties['username'].value)
|
||||||
browser.register(password= account.properties['password'].value,
|
browser.register(password= account.properties['password'].value,
|
||||||
sex= int(account.properties['sex'].value),
|
sex= (0 if account.properties['sex'].value == 'm' else 1),
|
||||||
birthday_d= int(bday),
|
birthday_d= int(bday),
|
||||||
birthday_m= int(bmonth),
|
birthday_m= int(bmonth),
|
||||||
birthday_y= int(byear),
|
birthday_y= int(byear),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue