[web2py] Re: info: bootstrap3 compact form

2016-05-30 Thread Mirek Zvolský
This one is better for form.add_button() [see col_class_rest] +uses smaller buttons [see btn-group-sm] *def formstyle_bootstrap3_compact_factory(col_label_size=2, col_help_size=6,** input_class='input-sm', control_label='control-label-sm'):* *

[web2py] Re: Notification similar to django-notification

2016-05-30 Thread eric cuver
you can use api notification html 5 or other APIs such as notification http://docs.localytics.com/index.html Le lundi 30 mai 2016 06:33:23 UTC+2, billmac...@gmail.com a écrit : > > You can look at facebook notification, basically an interface where user > pick how they want to receive their not

[web2py] bug web2py ticket json

2016-05-30 Thread Alessio Varalta
Hi, I notice a big problem with the ticket report when you use json. I have a controller where i take from the body the json with simple json and after parsing the body. The problem is that if there is an error the ticket reporting an error of decoding json in any cases...For example in my case

[web2py] Re: auth_user boolean extrafield odd behavior

2016-05-30 Thread Pierre
oups.this was a bad idea. I will never do it again I didn't know auth_user was so "ticklish" (especially under the arms)it probably depends on the current user... thanks Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] web2py scheduler service dead - how to prevent it?

2016-05-30 Thread Mirek Zvolský
Please help Debian Jessie, postgres, web2py-scheduler How can I prevent following crash - inactive scheduler? Or how can I be sure that the scheduler is running and restart it if needed? /etc/systemd/system/web2py-scheduler.service - [Unit] D

[web2py] Re: web2py scheduler service dead - how to prevent it?

2016-05-30 Thread Mirek Zvolský
I have found this https://www.digitalocean.com/community/tutorials/how-to-configure-a-linux-service-to-start-automatically-after-a-crash-or-reboot-part-1-practical-examples Service section should contain following: [Service] Restart=always It looks like it works, so I hope it will be well. Dn

[web2py] Re: auth_user boolean extrafield odd behavior

2016-05-30 Thread Pierre
Does *session.forget() *affects the way users login/logout/signup..etc ? should *session.forget() * be placed in every controller function or is there a way to apply it globally ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Problem with Scheduler on pythonanywhere

2016-05-30 Thread Scott Hunter
I have an appliance hosted on pythonanywhere which uses the Scheduler (invoked using a separate web2py process with the -K switch). This setup in my test environment (OS X at home) works fine, but on pythonanywhere, the scheduler process generates a stream of errors like: ERROR:web2py.scheduler

[web2py] Re: Problem with Scheduler on pythonanywhere

2016-05-30 Thread Niphlod
that error comes only on two codepaths: tables that are missing columns (and/or have different column types) and database locks. try dropping tables, letting scheduler recreate them and see what happens. On Monday, May 30, 2016 at 1:53:04 PM UTC+2, Scott Hunter wrote: > > I have an appliance host

[web2py] Re: web2py 2.14.4 is OUT

2016-05-30 Thread Adam Filić
I isolated the problem in gluon/dal.py (line: 79) and with this change it works fine in postgresql. if (field.notnull or field.unique) and not field_type in excluded_fields : requires.insert(0, validators.IS_NOT_EMPTY()) elif not field.notnull and not field.unique and requires:

[web2py] Re: web2py 2.14.4 is OUT

2016-05-30 Thread Leonel Câmara
That doesn't make any sense Adam. You say your field is an integer, so null='' if field in ('string', 'text', 'password') else None is the same as null=None Which is the default value for null in IS_EMPTY_OR() So your change shouldn't have many any difference whatsoever, note that by changing

[web2py] validate_and_update : I don't know what's going on ?

2016-05-30 Thread Pierre
Hi, here it is : the cruel reality as is :( (1) the table: db.define_table('uperson', Field('auth_user','reference auth_user',unique=True,requires = IS_NOT_IN_DB(db,'uperson.auth_user')), Field('country'), Field('age','integer')) (2) t

[web2py] Re: web2py 2.14.4 is OUT

2016-05-30 Thread Adam Filić
You are right. I have a problem with strings now, but empty field for integer is inserted as null at least. So I reverted this piece of code to version 2.13.4 like this and now is everything like it was, and shoud be. """ if field.unique: requires.insert(0, validators.IS_NOT_IN_D

[web2py] Re: validate_and_update : I don't know what's going on ?

2016-05-30 Thread Niphlod
npe! validate_and_update is a method of a Query, not of a Table! (you may have scrambled it with validate_and_insert()...) What you need to do is db(db.uperson.auth_user==1).validate_and_update(age=101) On Monday, May 30, 2016 at 3:34:48 PM UTC+2, Pierre wrote: > > Hi, > > here it is : t

[web2py] Re: auth_user boolean extrafield odd behavior

2016-05-30 Thread Anthony
On Monday, May 30, 2016 at 6:56:30 AM UTC-4, Pierre wrote: > > Does *session.forget() *affects the way users > login/logout/signup..etc ? > > should *session.forget() * be placed in every controller function or is > there a way to apply it globally ? > Not sure what you're getting at with r

Re: [web2py] Re: web2py 1.89.5

2016-05-30 Thread Richard Vézina
I will have it in my old VM pretty sure of that... As soon as I have time to reboot, will have a look, sadly I can't have 2 VMs side by side :( Richard On Sun, May 29, 2016 at 7:39 PM, Leonel Câmara wrote: > It should be on the code.google.com archive but I can't access it. An > alternative f

[web2py] Re: web2py 2.14.4 is OUT

2016-05-30 Thread Leonel Câmara
Humm this requires[0] = validators.IS_EMPTY_OR(requires[0], null='' if field in ('string', 'text', 'password') else None) Should be requires[0] = validators.IS_EMPTY_OR(requires[0], null='' if field_type in ('string', 'text', 'password') else None) -- Resources: - http://web2py.com - http://

[web2py] Re: validate_and_update : I don't know what's going on ?

2016-05-30 Thread Pierre
great !!! works now I can validate all userseven the old ones:) thanks Niphlod -- 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

[web2py] Re: Append fields within form, iteratively add fields inside form, List:string append, custom forms

2016-05-30 Thread Ron Chatterjee
If I do this inside the action "create_table" db.Project.insert( added_term = ('English: 0 to 6 years', 'Math: 0 to 2 years', 'History', 'over 5 years','science: never tought')) It works. But how to save a list like this inside the controller every time someone hits "add" button? I am wonderi

[web2py] Re: web2py scheduler service dead - how to prevent it?

2016-05-30 Thread Dave S
On Monday, May 30, 2016 at 3:15:18 AM UTC-7, Mirek Zvolský wrote: > > Please help > > Debian Jessie, postgres, web2py-scheduler > > How can I prevent following crash - inactive scheduler? > Is the real problem that you're using pg8000? I think there's been a lot of discussion of that drive