[REF] correct some space
bzr revid: mva@openerp.com-20120202135501-mx4n5a857mimx1q5
This commit is contained in:
parent
0009e6b63f
commit
6e0ce679d5
|
@ -25,7 +25,6 @@ import string
|
|||
import random
|
||||
from random import sample
|
||||
|
||||
|
||||
class event_moodle(osv.osv):
|
||||
""" Event Type """
|
||||
_name = 'event.moodle'
|
||||
|
@ -83,7 +82,6 @@ class event_moodle(osv.osv):
|
|||
passwd = passwd+'+'
|
||||
return passwd
|
||||
# create a random password
|
||||
|
||||
def check_email(self,email):
|
||||
if (email.count('@')!=1 and email.count('.')<1):
|
||||
raise osv.except_osv(_('Error!'),_("Your email '%s' is wrong") % (email))
|
||||
|
@ -172,7 +170,6 @@ class event_registration(osv.osv):
|
|||
response_user = moodle_pool.create_moodle_user(dic_users)
|
||||
self.pool.get('event.registration').write(cr,uid,ids,{'moodle_user_password':passwd,'moodle_users':name_user})
|
||||
#write in database the password and the username
|
||||
|
||||
enrolled=[{
|
||||
'roleid' :'5',
|
||||
'userid' :response_user[0]['id'],#use the response of the create user
|
||||
|
|
Loading…
Reference in New Issue