[web2py] how to render a widget using a class?

2014-04-25 Thread aleonserra
Hi, Im having troubles defining widgets as classes. When widgets are defined as functions it all works well, the function returns a html object(DIV, UL, ...) and the view renders the markup correctly, but im trying to define the widget as a class to handle static files requirements for that wi

[web2py] Re: problem with form=SQLFORM.factory(field ("your_name"))

2014-04-25 Thread Massimo Di Pierro
Field with capital F On Friday, 25 April 2014 19:18:31 UTC-5, maxximo wrote: > > form=SQLFORM.factory(field ("your_name")) > > > when i make form i found this error > > form=SQLFORM.factory(field ("your_name")) > NameError: global name 'field' is not defined > > > > > -- Resources: - http://w

[web2py] Re: web2py conference, next week!

2014-04-25 Thread Massimo Di Pierro
Please register only if you plan to attend in person. We will record the talks and post them. On Friday, 25 April 2014 16:29:28 UTC-5, David Rager wrote: > > Is there an online option (if you don't tick the "will attend in person")? > > On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pie

[web2py] Re: Newbie - SQLFORM ordering of reference fields

2014-04-25 Thread M Bailey
On Thursday, 24 April 2014 14:05:45 UTC+1, Massimo Di Pierro wrote: > > db.search_form.pet_type_ref.requires = > IS_IN_DB(db,'pet_type',orderby=db.pet_type.description) > > OR this may work too: > > db.search_form.pet_type_ref.requires.orderby = db.pet_type.description > >> >> Massimo thank you

[web2py] wher is my question

2014-04-25 Thread maxximo
wher is my question -- 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 to the Google Groups "web2py-u

[web2py] how to add web2py app into a hosted web2py in command line

2014-04-25 Thread Aby Thachet Jose
hello i have developed a web2py web app in my local system how can i host that into the server web2py ,it has web2y and is running a app i am not getting the user interface to just upload this -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] problem with form=SQLFORM.factory(field ("your_name"))

2014-04-25 Thread maxximo
form=SQLFORM.factory(field ("your_name")) when i make form i found this error form=SQLFORM.factory(field ("your_name")) NameError: global name 'field' is not defined -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Update table2 after posting form which make record in table1

2014-04-25 Thread paweblik
Hallo, yes it is newbie question..., but I am new in coding. I am creating signing form to school events. School event is defined in table 'schol_event' and signed users to scholl events is defined in table 'event_registration'. When user send form 'signing_form()' (which add record to table 'ev

[web2py] how to get all records from sqlform.grid

2014-04-25 Thread Ariya Owam-aram
Dear all I need to make a summary from all records that return from sqlform.grid (grid.rows) but grid.rows is contain records only for 1 page (default = 20 records display). Anyone know, how to get all records from SQLFORM.grid. Thank you in advance Ariya code == q0 = db.production_mc_shu

[web2py] Re: web2py conference, next week!

2014-04-25 Thread David Rager
Is there an online option (if you don't tick the "will attend in person")? On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pierro wrote: > > There is one more to the first web2py conference > > http://www.experts4solutions.com/web2py_conference > > We got a bigger room and we can take 10-

[web2py] s-cubism's plugin_jstree

2014-04-25 Thread Bushwood Gopher
Has anybody used s-cubism's jstree plugin? It seems to work fine on their site, but when I try to use it in my web2py application I keep getting the following: unsupported type for timedelta seconds component: NoneType Here is the traceback: Traceback

[web2py] Re: Is there a way to use query in autocomplete with SQLFORM.factory?

2014-04-25 Thread Leonardo Tada
Now this WORK! I tested today in version 2.9.5 and worked good. simple: form = SQLFORM.factory( Field('name', widget=SQLFORM.widgets.autocomplete(request, db.client .name, limitby=(0, 10), min_length=1)))

[web2py] Auto increment id back to zero

2014-04-25 Thread Flavio Santos
How to set an auto increment id back to zero (automatically) table auth_user? -- 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 b

[web2py] A couple question on the scheduler

2014-04-25 Thread David Rager
I'm just a tad confused about the scheduler - just 3 items I haven't been able to figure out and handle: 1. When a scheduler_task times out I see the status of TIMEOUT. It appears the task will not run again for the next scheduled run. Is this the expected behavior or am I misinterpreting?

Re: [web2py] API Rest authenticatio

2014-04-25 Thread Samuel Marks
Sure, take a look at x509 at http://web2py.com/books/default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill wrote: > is there an example of API Rest authentication based in private/public key > with web2py?? > i don'

[web2py] API Rest authenticatio

2014-04-25 Thread samuel bonill
is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] Re: i am trying send email using web2py with gmail and using smtp setting i have attached all code

2014-04-25 Thread NeoToren
Problem is gmail... See solution here https://groups.google.com/forum/#!msg/web2py/CU_1qWYixjI/YYczniWQ1mMJ or at SO: http://stackoverflow.com/questions/19085738/i-am-trying-send-email-using- web2py-with-gmail-and-using-smtp-setting-i-have-att/21269760#21269760 On Wednesday, April 23, 2014 3:59:4

Re: [web2py] parallel shell cause portal block

2014-04-25 Thread Michele Comitini
I suggest not to keep open transactions for days in any case. Keeping the state of the application in an uncommitted transaction is usually sign of a bug easy to fix. Some ORM users do it without understanding the implications. (I have experience of such bad designs in Hibernate applications I ha

Re: [web2py] parallel shell cause portal block

2014-04-25 Thread Niphlod
let's clear things up. a) as a general rule of thumb, one should commit() as soon as the modifications issued to the backend are atomic and leave the state of the database as consistent with the data model and the app code b) the web2py "web" part commit()s at every end of a successful reque

Re: [web2py] Re: Change button to "loading" after clicked

2014-04-25 Thread Niphlod
no, it's not. come on, update! 2.3.2 was released in december 2012! On Thursday, April 24, 2014 9:25:38 PM UTC+2, LoveWeb2py wrote: > > Thanks for the update Niphlod! > > I'm using 2.3.2. Do you know if its available in that version? I tried > using data={'loading-text':'loading} in the control

Re: [web2py] Re: Best way to migrate from sqlite to postgresql (or other db)

2014-04-25 Thread Michele Comitini
You are not wrong, but you can fix it by instructing pgloader to ignore what you want to ignore in the source (sqlite) db. The standard migration requires almost no setup, if you dig into the manual you will see you can do anything like renaming fields and columns, manage the schema in many ways or

Re: [web2py] Re: Best way to migrate from sqlite to postgresql (or other db)

2014-04-25 Thread Rene Dohmen
That's a nice tool. I'm going to try it. The only problem seems that it will copy all stuff on DB level. Correct me if i'm wrong: So if you had a couple of sqlite table_name changes or column drops while developing -> then they are copied into the new Postgres DB. (In most cases that would mean

[web2py] Re: init.js Images not Loading initially

2014-04-25 Thread LoveWeb2py
That fixed it! I had to reload my web2py instance on pythonanywhere. Thank you so much! On Friday, April 25, 2014 6:32:06 AM UTC-4, Leonel Câmara wrote: > > The images don't seem to be there.I'm getting. > > >1. GET http://www.syntheticturfdrs.com/css/style.css 400 (BAD REQUEST) >skel.mi

[web2py] Re: init.js Images not Loading initially

2014-04-25 Thread LoveWeb2py
default_application = "syntheticdr" default_controller = "default" default_function = "intro" is my current setup (I've since put in yours) and here is my index function in default.py def index(): return redirect(URL('intro')) Could it be creating some type of loop? On Friday, April 25, 20

Re: [web2py] Re: Is anyone working on a two-step login for auth? (Sometimes called two factor authentication)

2014-04-25 Thread Pallav Negi
Definitely. I'll try to do it today - it will be great to have the code reviewed. pal...@fielddiagnostics.com | 215-359-3918 | FD Engineering On Fri, Apr 25, 2014 at 6:16 AM, Michele Comitini < michele.comit...@gmail.com> wrote: > @PN can you make a fork on git

[web2py] Re: init.js Images not Loading initially

2014-04-25 Thread Leonel Câmara
The images don't seem to be there.I'm getting. 1. GET http://www.syntheticturfdrs.com/css/style.css 400 (BAD REQUEST) skel.min.js:1 1. GET http://www.syntheticturfdrs.com/css/style-desktop.css 400 (BAD REQUEST) skel.min.js:1 1. GET http://www.syntheticturfdrs.com/static/image

Re: [web2py] Migrating from sqlite to postgres?

2014-04-25 Thread Michele Comitini
Use this: http://pgloader.org/howto/pgloader.1.html 2014-04-24 14:39 GMT+02:00 Rene Dohmen : > Hi Web2py users, > > we are struggling, for some time now, with a migration of our apps from > sqlite to postgres. We tried a couple of approaches: first we tried doing > it with cp_db.py but that ha

Re: [web2py] Re: Best way to migrate from sqlite to postgresql (or other db)

2014-04-25 Thread Michele Comitini
If you were to migrate to postgresql I would suggest pgloader http://pgloader.org/howto/pgloader.1.html. An amazing piece of code: fast, smart and robust. Once you have moved the database to postgresql you need only to change the connection string in db.py to connect to your new postgresql copy.

Re: [web2py] Re: Is anyone working on a two-step login for auth? (Sometimes called two factor authentication)

2014-04-25 Thread Michele Comitini
@PN can you make a fork on github and create a pull request with your modifications? I agree with Massimo that it is very useful for web2py! 2014-04-25 4:01 GMT+02:00 Massimo Di Pierro : > Very much useful. Is should go in web2py > > -- > Resources: > - http://web2py.com > - http://web2py.com/bo

Re: [web2py] parallel shell cause portal block

2014-04-25 Thread Michele Comitini
you *shall* commit or rollback as frequently as possibile in your parallel task. Otherwise you keep an open transaction that is likely to lock the whole database. 2014-04-24 23:03 GMT+02:00 Manuele Pesenti : > Il 24/04/14 21:03, Marin Pranjić ha scritto: >> It might be that database is blocking b