[web2py] Highlighting the fields that user can't leave blank

2017-04-11 Thread akshay055kumar
Suppose i create a table: db.define_table('device', Field('name',unique=True,notnull=True), Field('alias_name',requires=IS_NOT_EMPTY(error_message='field can not be empty')), Field('devicetype')) and i am creating a form as: form = crud.create(db.testbed) >From table definition it is clear that

Re: [web2py] Re: use memcache

2017-04-11 Thread Paolo Valleri
Regarding the PR, online there are many tips to help you, in short: - fork web2py - create a new branch (called for example: 'fix_memcache_appadmin') - apply the change we discussed - commit the change with a clear message - push only the new branch - on github, click Pull request and compare web2p

[web2py] Re: auth_user email rename name to data attribute

2017-04-11 Thread Leonel Câmara
It's kind of a lost battle because browsers decided they don't want websites to control autocomplete, which is really annoying sometimes, right now my technique to avoid autocomplete includes hidden fields and stupid values for the autocomplete attribute. Anyway you're not getting the element y

[web2py] auth_user email rename name to data attribute

2017-04-11 Thread lucas
hello one and all, I'm not sure of the mechanism here. using SQLFORM on auth_user table and I tried to form.element().update(_name=None, _id=None, _data="field_name") so that the browser won't auto fill the values with the user's email and password. but it doesn't seem to work. it is still s

Re: [web2py] Re: use memcache

2017-04-11 Thread 黄祥
*whole traceback :* Traceback (most recent call last): File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/Users/MacBookPro/site/web2py/applications/a/controllers/appadmin.py"

[web2py] testing applications

2017-04-11 Thread Carlos Cesar Caballero Díaz
Hi, is there a recommended way for implementing test on web2py apps? Greetings. -- 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

Re: [web2py] Re: use memcache

2017-04-11 Thread Paolo Valleri
Glad the change fixed the first issue, would you submit a PR https://github.com/web2py/web2py/pulls? Regarding the second error, post the whole traceback here Paolo 2017-04-11 0:11 GMT+02:00 黄祥 : > *change gluon/contrib/memcache/__init__.py* > class MemcacheClientObj(Client): > def initial

[web2py] Re: Can't import plugin module

2017-04-11 Thread Johann Spies
On Wednesday, 21 December 2016 15:45:12 UTC+2, Anthony wrote: > > There is no __init__.py file in your /modules folder, nor in the app > folder (should also be one in the /applications folder). > > Anthony > > On Wednesday, December 21, 2016 at 8:29:25 AM UTC-5, Jurgis Pralgauskis > wrote: >> >

[web2py] Re: Deploying Web2py with nginx on FreeBSD

2017-04-11 Thread Felix Penetrante
I have the followed this post and discovered that I have to install py-sqlite and do several steps to make a working FreeBSD+web2py development platform. I have posted here the modified procedure. Please be aware that the /admin should be removed/disabled when deploying a production server.

Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-11 Thread Anthony
On Tuesday, April 11, 2017 at 9:01:09 AM UTC-4, Anthony wrote: > > On Tuesday, April 11, 2017 at 8:55:20 AM UTC-4, Carlos Cesar Caballero > wrote: >> >> Hi guys, I think he is talking about the web2py api, and there are some >> undocumented features, by example, when you authenticate against an l

Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-11 Thread Anthony
On Tuesday, April 11, 2017 at 8:55:20 AM UTC-4, Carlos Cesar Caballero wrote: > > Hi guys, I think he is talking about the web2py api, and there are some > undocumented features, by example, when you authenticate against an ldap > you can map ldap groups against web2py groups, but this is not do

{Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-11 Thread Carlos Cesar Caballero Díaz
Hi guys, I think he is talking about the web2py api, and there are some undocumented features, by example, when you authenticate against an ldap you can map ldap groups against web2py groups, but this is not documented, and there are some undocumented features like that. Greetings. El 10/04/

[web2py] Cockroach DB

2017-04-11 Thread mcm
This seems a real bargain (postgresql dialect and protocol). https://www.cockroachlabs.com/ Sorry for the others... ;-) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] Re: Customize grid ondelete warning message

2017-04-11 Thread Manuele Pesenti
Il 08/04/17 09:43, Manuele Pesenti ha scritto: > What if I want a customization for a specific grid and not for all the > application? I solved changing the value of the js variable in the header of the page where the message has to be different from the others defining again the variable and over