[web2py] Re: are expired session files deleted automatically?

2014-11-29 Thread Dmitry Ermolaev
but folders not deleted (( I make .bat file for WIN === set sleep=7200 set /a sleep3=%sleep%/3 :rep c:\python27\python ..\..\web2py.py -S ipay -M -R scripts/sessions2trash.py -A -o -x %sleep% -f -v timeout /t %sleep3% rem restart walets if it crash rem start "reload wallet

[web2py] jQuery - Examples from book not working.

2014-11-29 Thread Jeremiah Peterson
Here's the example from the book, which isn't working for me. Hello World jQuery(document).ready(function(){ jQuery('.one').click(function(){jQuery('.two').slideToggle()}); }); This code does work, just removing the ready. Hello World jQuery('.one').click(function(){jQuery('.two').s

[web2py] Re: grid selectable only select 1 row

2014-11-29 Thread 黄祥
On Saturday, November 29, 2014 9:38:28 PM UTC+7, Anthony wrote: > > When only a single record is selected, in your sale_order_detail_checkout > function, request.vars.ids will just be a single number (represented as a > string) rather than a list. Because strings are iterable, when you iterate

Re: [web2py] Re: add task and wait the result

2014-11-29 Thread Manuele Pesenti
Il 28/11/14 18:30, Niphlod ha scritto: > | > deftest(): > newid =sched.queue_task(,immediate=True) > db.commit()#the db instance where the scheduler is > whileTrue: > rtn =sched.task_status(newid) > ifrtn.status =='COMPLETED': >...blablabla >

[web2py] Dynamic Upload Uploadfolder

2014-11-29 Thread James Burke
How do you create a dynamic uploadfolder for an upload Field? I tried using: uploadfolder= lambda r: db.repository(r.repository_id).directory but i get the error message, I guess it doesn't have the same functionality as compute: cannot concatenate 'str' and 'function' objects I'm also using c

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-29 Thread weheh
You're right, it's 1.8 miles. ~25 minute walk. I will offer to drive attendees from/to the North Berkeley Bart station. So far, only one trip. Pickup at the station will be 5:45PM. It's about a 5 minute car ride to the meeting room. Anybody need a ride, please contact me privately. On Saturday,

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-29 Thread dlypka
Hi. I am not clear about the Location. 1125 jackson street albany ca 94706 does not seem to be anywhere near North Berkeley Station 1750 Sacramento Street / Berkeley, CA 94702 Please clarify the Meetup location and closest BART station. On Thursday, November 6, 2014 1:48:14 AM UTC-6, weheh wrote

[web2py] Re: grid selectable only select 1 row

2014-11-29 Thread Anthony
When only a single record is selected, in your sale_order_detail_checkout function, request.vars.ids will just be a single number (represented as a string) rather than a list. Because strings are iterable, when you iterate over the string representation of a multi-digit number, you end up gettin

[web2py] Dal select column sort order

2014-11-29 Thread Anthony
The order of the columns in each Row object will be the same as the order in which the fields are listed in the table definition. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] grid selectable only select 1 row

2014-11-29 Thread 黄祥
hi, is it possible grid selectable only select 1 row? i've tested it but with no luck, e.g. *controllers/order.py* def sale_order_detail(): selectable = lambda ids : redirect(URL('sale_order_detail_checkout', vars = dict(ids = ids) ) ) #selectable = lambda ids: sale_order_detail_checkout(ids) gri