Re: [web2py] hidden fields ignored in form=crud.update()?

2012-11-24 Thread Annet
Hi Marco, Thanks for your reply. This line here: ('ERROR','23502', 'null value in column aboutid violates not-null constraint') it seems that you have set a validator to one of the hidden fields, and since it doesn't seem to a have a default value either, then it's value on submit

[web2py] Re: web2py shell window problem

2012-11-24 Thread Nico Zanferrari
Il giorno domenica 21 ottobre 2012 02:15:16 UTC+2, Jscriptor09 ha scritto: Hi I am trying to learn web2py using the online book. Page 45 provide instruction on how to use the interactive shell However, the coomands are not getting executed. Hello, I have also the same problem

[web2py] Re: datetime delta with Sqlite - how to?

2012-11-24 Thread Paolo Caruccio
As a reference, you can see the example given by Massimo Di Pierro in this post https://groups.google.com/forum/#!msg/web2py/NXhu8PmvHOs/aO-oum4m0NgJ Il giorno sabato 24 novembre 2012 05:36:48 UTC+1, apps in tables ha scritto: I am using web2py 2.2.1 . I did import time in db.py still the

[web2py] Re: web2py shell window problem

2012-11-24 Thread Nico Zanferrari
About the second problem (no output at all) I've found that it happens everywhere, but only inside specific applications! I was able to spot the bug: it always shows up when you've the command: request.requires_https() in the specific application db.py (even if you're using https!). I've

[web2py] Re: Integrated Development Environment with web2py

2012-11-24 Thread Chris
Since my original post, I've found a way to use Wing IDE reliably for remote servers. If anyone has need of this, write back and I will post the details. On Friday, June 8, 2012 11:44:33 AM UTC-4, Chris wrote: Wing is indeed a great tool. I use it for local-machine debugging all the time

Re: [web2py] Re: Has anyone configured web2py on the Basic Amazon Linux AMI?

2012-11-24 Thread Chris
Thanks, that works really well. On Saturday, August 27, 2011 2:55:01 PM UTC-4, nils wrote: Hi Chris, I do this ssh -i key.pem -L 8000:localhost:8000 root@amazon-Ec2-VPS I then run on the amazon instance ./web2py -a password You can then access web2py via http://localhost:8000

Re: [web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-11-24 Thread palomar
so, with web2py 2.2.1 and powertable: db.acquisti.id_p.represent=lambda id: db.prodotti[id].nomeb #SQLFORM.grid: doesn't work; powertable: works db.acquisti.id_p.represent=lambda id, row: db.prodotti[id].nomeb #SQLFORM.grid: work; powertable: doesn't work Massimo, aiutaci tu! ;)

[web2py] Administrator Password Field not shown

2012-11-24 Thread pumplerod
I am wrestling with trying to get into the admin site for web2py. After following several examples on line to no avail I finally decided to just disable the security so I could at least see what it looks like. I was able to get to the admin login page, however, there is no form field showing

Re: [web2py] Database table prefix

2012-11-24 Thread Chr_M
That, but even the same app using different tables in the same db (but for different cliƫnts)... Regards, Chris On Friday, November 23, 2012 7:00:28 PM UTC+1, Richard wrote: Why exactly you change prefix? Installing differents apps dbs in the same db? Richard On Fri, Nov 23, 2012 at

[web2py] Re: How to get register_next to move on to the desired URL

2012-11-24 Thread Daniele
Yes I have that already. I'm starting to think that the problem is with my controller, not with the db.py settings. Maybe my controller is not actually registering the users? Here's the controller for the signup: def signup(): if auth.is_logged_in(): redirect

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-24 Thread Julian Sanchez
Are there any specific things I need to do to enable logging under GAE? This is what I did: - renamed the logging.example.conf file to logging.conf - added an entry for the test app I created above - removed all references to all handlers except consoleHandler Any page I request gives

[web2py] Re: datetime delta with Sqlite - how to?

2012-11-24 Thread dederocks
Hi, I've used the following query successfuly: query = (db.mesures.date.epoch()-db.lots.date_fabrication.epoch()) = (critere.valeur_inf*86400) And then db(query).select(...) mesures.date and lots.date_fabrication are datetime fields. Hope this helps! Le jeudi 22 novembre

[web2py] Re: Virtual Fields on auth_user

2012-11-24 Thread Massimo Di Pierro
Please open a ticket about this. On Friday, 23 November 2012 12:59:37 UTC-6, Alex Benfica wrote: Hi! I found this... https://groups.google.com/forum/?fromgroups=#!topic/web2py/77ei0yBbuhw Wil this feature be included again some day? Web2py is fine... and it is getting better each day!

[web2py] Re: web2py shell window problem

2012-11-24 Thread Massimo Di Pierro
Please open a ticket about this. On Saturday, 24 November 2012 04:38:06 UTC-6, Nico Zanferrari wrote: About the second problem (no output at all) I've found that it happens everywhere, but only inside specific applications! I was able to spot the bug: it always shows up when you've the

[web2py] Re: Integrated Development Environment with web2py

2012-11-24 Thread Massimo Di Pierro
Please post the details. :-) On Saturday, 24 November 2012 05:14:52 UTC-6, Chris wrote: Since my original post, I've found a way to use Wing IDE reliably for remote servers. If anyone has need of this, write back and I will post the details. On Friday, June 8, 2012 11:44:33 AM UTC-4,

[web2py] Maintenance Mode

2012-11-24 Thread Martin Weissenboeck
Hi, I know there is a maintenance mode, but I need a liitle bit more: (1) If the maintenance mode is switched on the user sees Temporarily down for maintenance But it would be nice to have a page with the same layout as the original page. (2) If the maintenance mode is switched on it is

[web2py] Re: How to get register_next to move on to the desired URL

2012-11-24 Thread Anthony
Yes I have that already. Note, your code shows auth.settings.login_after_registration = False. I'm starting to think that the problem is with my controller, not with the db.py settings. Maybe my controller is not actually registering the users? Here's the controller for the signup:

[web2py] Playgound

2012-11-24 Thread Martin Weissenboeck
Hi, another question: I have an application app with its own database and a scheduler. Let's say it sends emails. Users have different rights. Now I want to have a second application play with should allow to do all things like app. The user can try the controllers and functions. But it does not

Re: [web2py] Playgound

2012-11-24 Thread Bruno Rocha
Yes it works. just ensure that both databases has the same scheme (same models) Bruno Rocha http://rochacbruno.com.br mobile Em 24/11/2012 14:25, Martin Weissenboeck mweis...@gmail.com escreveu: Hi, another question: I have an application app with its own database and a scheduler. Let's say

[web2py] Upload fields does not use Bootstrap

2012-11-24 Thread Joe Barnhart
I was just playing with automatically-generated form with an upload field and noticed that the button created with that field does not use the btn class to invoke the styling of the Bootstrap layer. Was this deliberate or an accident? Is it easily fixed by a novice CSS/JS programmer? --

[web2py] Re: SQLFORM.factory unexpectedly sets id datatype to str

2012-11-24 Thread Mark Kirkwood
In additon, adding a second IS_INT_IN_RANGE validation condition is sufficient to coerce the field back to int. form=SQLFORM.factory( Field('dogid', 'integer', requires=[IS_IN_DB(db(db.dog), 'dog.id'), IS_INT_IN_RANGE(0, 1000)]) ) So it looks like IS_IN_DB is somehow getting

[web2py] Re: datetime delta with Sqlite - how to?

2012-11-24 Thread apps in tables
Thank you... The best feature in web2py is its community... On Saturday, November 24, 2012 5:01:32 PM UTC+3, dederocks wrote: Hi, I've used the following query successfuly: query = (db.mesures.date.epoch()-db.lots.date_fabrication.epoch()) =

[web2py] Re: admin interface + GAE

2012-11-24 Thread dlypka
Yes, not a bug but these are issues which come up when messing with the admin interface on GAE. NOTE that the issues occur when running locally using the GAE SDK as well. So I assume the correct approach is to run it once as a normal web2py app i.e. python web2py.py to get those special files

[web2py] Re: Placing form into table with jQuery?

2012-11-24 Thread Joe Barnhart
Hi Niphlod -- Yep, that jQuery plug-in definitely seems to have the capability I mentioned. It seems rather a heavyweight component, however, for my use. my tables are fairly small and I do not need the extensive capabilities of Datatables other than this form drop-down idea. I think I'll

[web2py] Re: Maintenance Mode

2012-11-24 Thread howesc
Martin, 1. i didn't know about maintenance modehow do you trigger it? i suspect there is a way to route it to use a particular set of view(s) 2. there is a request.is_local i believe that is set if the request is from the same server as the process serving the request. that should be

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-24 Thread howesc
honestly, i'm not smart enough to use logging.conf. i'm not sure how much of it is GAE overriding things, and how much of it is my inability to read the docs and understand how it works! anyhow, i don't have a logging.conf in my GAE setups, but i use logging extensively and it all seems to