[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-05-01 Thread Marty Jones
how would I import the scheduler into a module to do that? On Sunday, May 1, 2016 at 12:00:44 PM UTC-4, Niphlod wrote: > > why don't you use queue_task() ? > > On Friday, April 29, 2016 at 9:17:37 PM UTC+2, Marty Jones wrote: >> >> I seem to have resolved it by switching "db = current.db" to "db

[web2py] How can i implement this with web2py?

2016-05-01 Thread teld dlet
I have a python program where I prompt the user for two files, and I do some programming and output a new file... How can I make this work with web2py? I was thinking having a form with 2 upload fields, and a text field so they can give a name to the file that will be generated from the code.

[web2py] Re: A basic problem about threading and time consuming function...

2016-05-01 Thread Niphlod
the statement "I don't need to use the scheduler, because I want to start it as soon as possible" is flaky at best. If your "fetching" varies from 2 to 20 seconds and COULD extend further to 60 seconds, waiting a few seconds for the scheduler to start the process is uhm... debatable. Of

[web2py] Re: How to get rows in right format

2016-05-01 Thread Marko Seppälä
It works, thanks! I forgot the whole thing. When I started with web2py, one expert recommended me not to use list references but do all intermediary tables yourself. Is there any drawbacks to use list reference instead of doing those intermediary tables yourself? lauantai 30. huhtikuuta 2016

[web2py] Re: A basic problem about threading and time consuming function...

2016-05-01 Thread Mirek Zvolský
Thanks for info and tips, 6 years later. What I try to do is a form with single input, where user gives a query string and then data about (usually ~300) books will be retrieved via z39 and marc protocol/format, parsed and saved into local database. Of course this will take a time (2? 5? 20?

Re: [web2py] Re: django type adding or append fields using plus sign to your table

2016-05-01 Thread Niphlod
the answer is pretty easythere is no list:datetime Field type. On Friday, April 29, 2016 at 3:58:48 PM UTC+2, billmac...@gmail.com wrote: > > works: > Field("something", 'list:string'), > Field("someting2", 'list:integer'), > > But no such thing as: > Field("something3", 'list:datetime') > >

[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-05-01 Thread Niphlod
why don't you use queue_task() ? On Friday, April 29, 2016 at 9:17:37 PM UTC+2, Marty Jones wrote: > > I seem to have resolved it by switching "db = current.db" to "db = > current.globalenv['db']" > > On Friday, April 29, 2016 at 12:05:34 PM UTC-4, Marty Jones wrote: >> >> I'm defining some

[web2py] Which payment gateway works best with web2py for india based website?

2016-05-01 Thread Steve Joe
how much does it cost? -- 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] I removed navbar from layout and implemented in view like this but I don't get toggle in mobile view

2016-05-01 Thread Steve Joe
I want toggle navigation button when opened from mobile and not like this. My code in index.html: {{if response.menu:}} {{=response.logo or ''}} {{=MENU(response.menu, _class='nav navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}}