[web2py] Re: ckeditor in appadmin

2014-01-09 Thread Michel Hayek
Thanks Steve Worked well. -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **not copy, disseminate, distribute or disclose any information contained therein.* -- Res

[web2py] ckeditor in appadmin

2014-01-07 Thread Michel Hayek
hi guys, is there any way to implement the ckeditor in the appadmin page when adding or editing records? Thanks -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **

[web2py] Re: Drop down not showing

2013-12-27 Thread Michel Hayek
Please any help guys? -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **not copy, disseminate, distribute or disclose any information contained therein.* -- Resourc

[web2py] Re: hide error messages is returning NONE value for messages

2013-12-20 Thread Michel Hayek
Thanks Anthony, works great. -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **not copy, disseminate, distribute or disclose any information contained therein.* --

[web2py] hide error messages is returning NONE value for messages

2013-12-19 Thread Michel Hayek
hi folks, i have created custom error messages for each of my fields, the good news is that i don't see system error message and once the user submit my custom errors appear. the problem is one i load the page, i see all custom errors set to the value of "*None*". is there any workaround? i tri

[web2py] Re: Drop down not showing

2013-12-19 Thread Michel Hayek
Please any help on this issue?? Thanks -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **not copy, disseminate, distribute or disclose any information contained ther

[web2py] Re: Drop down not showing

2013-12-16 Thread Michel Hayek
I got another error now invalid literal for long() with base 10: 'user_company' *def dupe_check(form):if db((db.company_user.user_id==request.args(-1)) & (db.company_user.company_id==form.vars.company_id)).count(): form.errors['company_id'] = 'Company already associated with this

[web2py] Re: Drop down not showing

2013-12-16 Thread Michel Hayek
I'm getting an error on this (*the error is " process() takes exactly 1 argument (2 given)" **on if form.process(dupe_check).accepted:*). here is what my files looks like *db.py:* *db.define_table('user_company',* * Field('user_id', 'reference auth_user'),* * Field('company_id', 'reference t

[web2py] Re: Drop down not showing

2013-12-16 Thread Michel Hayek
Guys, i changed the way of implementing the composite key, now i'm concatenating both fields into 1. *db.define_table('t_user_has_companies',* *Field('unikey', notnull=True,required=True, compute=lambda r: str(r.USER_ID) + str(r.COMP_ID)),* *Field('USER_ID','refe

[web2py] Re: Drop down not showing

2013-12-14 Thread Michel Hayek
Hi Massimo, Here is the table def i'm using for this db.define_table('t_user_has_companies', Field('USER_ID', 'reference auth_user', label='User', writable=True, readable=True, notnull=True, required=True, ondelete='NO ACTION'), Field('COMP_ID', 'reference t_com

[web2py] Re: Drop down not showing

2013-12-14 Thread Michel Hayek
No luck Stifan, i tried a bunch of stuff nothing worked with me. Any ideas? what you think are my other options? Thanks for your help -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from yo

[web2py] Re: Drop down not showing

2013-12-13 Thread Michel Hayek
Ok here is the new table def. db.define_table('t_user_has_companies1', Field('USER_ID', 'reference auth_user', label='User', writable=True, readable=True, notnull=True, requires=IS_IN_DB(db, db.auth_user, '%(id)s %(first_name)s %(last_name)s')), Field('COMP_ID', 'reference t_c

[web2py] Drop down not showing

2013-12-13 Thread Michel Hayek
Hi guys, I have 2 tables defined Auth_User(PK=id) and Companies(PK=ID) I also defined User_Has_Companies which has 2 columns USER_ID and COMP_ID together should form a PK. *db.py:* *db.define_table('t_user_has_companies',* *Field('first_name', 'reference auth_user', label='User',

[web2py] Re: Show / Hide buttons

2013-12-13 Thread Michel Hayek
Thanks Steve awesome. On Thursday, December 12, 2013 12:24:21 PM UTC-6, Michel Hayek wrote: > > Hey guys, > > *I have this in the db.py* > > *db.define_table('t_usertypes',* > *Field('f_usertype',label='User Type :', required

[web2py] Show / Hide buttons

2013-12-12 Thread Michel Hayek
Hey guys, *I have this in the db.py* *db.define_table('t_usertypes',* *Field('f_usertype',label='User Type :', required=True, notnull=True),* *format='%(f_usertype)s')* *I have this in default.py* *def usertypes():* * form=SQLFORM(db.t_usertypes)* * if form.

[web2py] Re: redirect after user approval

2013-12-12 Thread Michel Hayek
Thanks Massimo. -- *This e-mail is confidential and may also be privileged. If you are not the intended **recipient, please notify the sender immediately, delete it from your system and do **not copy, disseminate, distribute or disclose any information contained therein.* -- Resources: -

[web2py] Re: redirect after user approval

2013-12-09 Thread Michel Hayek
onday, December 9, 2013 1:51:39 PM UTC-6, Michel Hayek wrote: > > I'm fairly new to web2py and i'm using the register & login forms from > Web2PY. I was able to enable approval and send email for the admin. but i > need to do 2 things > > >1. Upon user s

[web2py] redirect after user approval

2013-12-09 Thread Michel Hayek
I'm fairly new to web2py and i'm using the register & login forms from Web2PY. I was able to enable approval and send email for the admin. but i need to do 2 things 1. Upon user successful register i need to insert into another table (Users) 2. After the Admin approve the User (appadm

[web2py] web2py help

2013-12-09 Thread Michel Hayek
Hey guys, i need your help i'm new to web2py and trying to use all its features. i need help in 2 things 1. When the user perform a successful register process, i need to perform an insert of that user in a new table. Not sure where i can embed this process 2. After the admin appr