[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2017-06-23 Thread kesh
> > hi guys sorry to intrude, i have a problem here > db.define_table('stock_status', Field('Date', 'datetime', default=request.now, writable=False), Field('SN'), Field('item_description'), Field('Quantity','integer'), Field('UOM'), Field('stockIN','integer'), Field('st

Re: [web2py] Re: we2admin tables

2017-06-23 Thread Maurice Waka
I I'll give it a try @ron On Jun 23, 2017 06:20, "Ron Chatterjee" wrote: > Does this help? > > http://www.web2pyslices.com/slice/show/2018/plugin-manage-groups > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) >

Re: [web2py] Re: we2admin tables

2017-06-23 Thread Maurice Waka
I find wrb2admin easier to understand and use. Is there a simplified way/explanation on how to use after installing. e.g. Www.vimeo.com/60895953 Regards On Jun 23, 2017 06:20, "Ron Chatterjee" wrote: Does this help? http://www.web2pyslices.com/slice/show/2018/plugin-manage-groups -- Resources:

[web2py] Re: web2py 2.15.1

2017-06-23 Thread Oasis Agano
i think this guy is working on the flatpickr datepicker but could use some help https://github.com/web2py/web2py/issues/1646 On Monday, June 5, 2017 at 10:39:11 AM UTC+2, Karoly Kantor wrote: > > Dear Massimo, > > I saw your question in the developers group where I cannot post, therefore > i d

[web2py] Some row questions

2017-06-23 Thread Dave S
I have a fairly straight forward table, and a fairly easy db query: db(db.segment.parent == request.vars.id).select() For my use case, this returns a Rows object of 3 to 10 Row objects, and I do some simple calculations. for row in rows: if row.x: term1 = row.term if row.y: term2 =

[web2py] Error message customization

2017-06-23 Thread Simona Chovancová
So I have a form with field which looks like this. I want the error message to display in red though, how do I do it? Thanks. edit_user_form= SQLFORM.factory ( Field('name', 'string', requires=IS_NOT_EMPTY(error_message='Enter your name')) ) -- Resources: - http://web2py.com - http://w

[web2py] Re: web2py 2.15.1

2017-06-23 Thread Oasis Agano
It can be cool to have best practices documentations too; Unit testing(with auth,decorated methods...), Continuous Integration(Either travis-ci or jenkins...), because web2py may have many features but the documentation is still very poor. kr, Oasis On Monday, June 5, 2017 at 10:39:11 AM UTC

[web2py] Re: web2py 2.15.1

2017-06-23 Thread Jim S
For what it's worth, I disagree with the last statement completely. I've used other frameworks and feel the documentation for web2py is far superior. Some best practices docs would be nice but that hardly qualifies as poor documentation. -Jim On Friday, June 23, 2017 at 3:04:11 PM UTC-5, Oas

[web2py] Scaling web2py

2017-06-23 Thread briannd81
I'm planning to have 2 servers hosting web2py for load balancing and high availability. Will sessions be persistent across both servers? If not, then I need to make sure the load balancer always direct the same user session to the same server? Is my understanding correct? -- Resources: - http:

[web2py] Re: Error message customization

2017-06-23 Thread Anthony
That is best handled via CSS. The error div will have class "error", so you can use that to specify a CSS rule. Anthony On Friday, June 23, 2017 at 3:44:38 PM UTC-4, Simona Chovancová wrote: > > So I have a form with field which looks like this. I want the error > message to display in red thou

[web2py] Re: Scaling web2py

2017-06-23 Thread Anthony
Either store sessions in the database or use stick sessions. See http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-and-scalability. Anthony On Friday, June 23, 2017 at 4:12:37 PM UTC-4, briann...@gmail.com wrote: > > I'm planning to have 2 servers hosting web2py for loa

[web2py] Re: Some row questions

2017-06-23 Thread villas
Hi Dave, Open your app on the commandline: python web2py.py -S yourapp -M Experiment a little... 1. for i, row in enumerate(rows) 2. rows[0].test = 'whatever' On Friday, 23 June 2017 17:29:00 UTC+1, Dave S wrote: > > I have a fairly straight forward table, and a fairly easy db query: > db

Re: [web2py] Re: Scaling web2py

2017-06-23 Thread Chinh Dang
How to decide which method to used - shared folder or database? On Jun 23, 2017 4:21 PM, "Anthony" wrote: > Either store sessions in the database or use stick sessions. See > http://web2py.com/books/default/chapter/29/13/ > deployment-recipes#Efficiency-and-scalability. > > Anthony > > On Friday

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2017-06-23 Thread Anthony
On Friday, June 23, 2017 at 4:01:05 AM UTC-4, kesh wrote: > > hi guys sorry to intrude, i have a problem here >> > db.define_table('stock_status', > Field('Date', 'datetime', default=request.now, writable=False), > Field('SN'), > Field('item_description'), > Field('Quantity','intege

[web2py] Re: smartgrid tampering with url in browser

2017-06-23 Thread Anthony
On Friday, June 23, 2017 at 1:35:23 AM UTC-4, T.R.Rajkumar wrote: > > Anthony, When I comment out auth and in model amc/amc.py I add this > from gluon.storage import Storage > from gluon.utils import web2py_uuid > if not 'auth' in session: > session.auth = Storage(hmac_key=web2py_uuid()) > Try

[web2py] Implementing Token Based authentication JWT

2017-06-23 Thread Oasis Agano
Hello, How can someone implement a token based authentication in web2py; Both token generation and authorization? kr, Oasis -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Implementing Token Based authentication JWT

2017-06-23 Thread Dave S
On Friday, June 23, 2017 at 1:49:17 PM UTC-7, Oasis Agano wrote: > > Hello, > > How can someone implement a token based authentication in web2py; > Both token generation and authorization? > > gluon/tools.py line 1132 covers the JWT support Niphlod added. (line 1132 in version 2.14.6, that is) No

[web2py] Re: Some row questions

2017-06-23 Thread Dave S
On Friday, June 23, 2017 at 1:24:30 PM UTC-7, villas wrote: > > Hi Dave, > > Open your app on the commandline: > > python web2py.py -S yourapp -M > > Experiment a little... > > 1. for i, row in enumerate(rows) > 2. rows[0].test = 'whatever' > I've kinda already done that. No tee-shirt appeare

[web2py] Re: smartgrid tampering with url in browser

2017-06-23 Thread T.R.Rajkumar
Yes, perfect Anthony. Thanks a lot for forbearing with me. Anyway it is my pleasure to learn from the group. I put the above code in my login action as below. It is working perfectly. from gluon.storage import Storage from gluon.utils import web2py_uuid def login(): form = FORM(TABLE(