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
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 **
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
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.*
--
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
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
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
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
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
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
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
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
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',
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
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.
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:
-
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
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
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
19 matches
Mail list logo