[web2py] passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-05 Thread Rahul
Hi All, I am visiting this group after a long time. I have a question perhaps a simple one - I want to check for user rights for my application and I want to code it in plugin layout (any_layout_installed.html ) file. I am trying to verify parameters passed to this file. I can pass ses

[web2py] Re: passing variables to plugin_layout view - plugin_layouts\layouts\

2018-06-05 Thread Anthony
On Tuesday, June 5, 2018 at 7:34:38 AM UTC-4, Rahul wrote: > > Hi All, > I am visiting this group after a long time. I have a question > perhaps a simple one - I want to check for user rights for my application > and I want to code it in plugin layout (any_layout_installed.html ) file.

[web2py] ADD TO CART BUTTON

2018-06-05 Thread elisha bere
Hie , i am a new developer from Zimbabwe and the logic i used for my add to cart is giving me an error how can i handle this? MODEL CODE: db.define_table('products', Field('product_name'), Field('current_price', 'float'), Field('image', 'upload'), Field('description', type='tex

[web2py] Field represent not working in rows.render

2018-06-05 Thread kakella
Need some insights into the below issue. The functionality is working correctly in the SQLForm.grid but doesn't work when returning data as json under certain circumstances as mentioned below. When using the rows.render and passing multiple fields as argument there is an exception "web2py.app.

[web2py] Making my custom layouts

2018-06-05 Thread elisha bere
how can i make my own layouts on web2py? please help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] Re: Making my custom layouts

2018-06-05 Thread Anthony
I would recommend reading http://web2py.com/books/default/chapter/29/05/the-views#Page-layout and coming back with specific questions. On Tuesday, June 5, 2018 at 9:53:01 AM UTC-4, elisha bere wrote: > > how can i make my own layouts on web2py? > please help > -- Resources: - http://web2py.com

[web2py] Re: ADD TO CART BUTTON

2018-06-05 Thread Anthony
> > db.define_table('products', > Field('product_name'), > Field('current_price', 'float'), > Field('image', 'upload'), > Field('description', type='text'), > Field('product_availability', requires = IS_IN_SET(['Available','Not > Available'])), > auth.signature, > ) >

[web2py] Re: Field represent not working in rows.render

2018-06-05 Thread Anthony
Please show the full traceback. On Tuesday, June 5, 2018 at 9:52:52 AM UTC-4, kakella wrote: > > Need some insights into the below issue. The functionality is working > correctly in the SQLForm.grid but doesn't work when returning data as json > under certain circumstances as mentioned below. >

[web2py] requires_verification = False not working with custom auth table

2018-06-05 Thread b.l. masters
Hi I've created a custom auth table to hide unwanted fields, and add validators in the db.py file to better manage the registration process. As part of this, within the db.py, I also include lines to *not* require verification or approval. When I use .../default/user/register this feature wor

[web2py] 'auth_user' not recognized in IS_IN_DB validator

2018-06-05 Thread b.l. masters
Hi I am using a validator (that previously worked) in a db model, and which now will not recognize the 'auth_user' table in the IS_IN_DB validator: db.tablenamehere.username.requires = [IS_IN_DB(db, 'auth_user.username', error_message=T('User must already exist to associate with these services