[web2py] Re: web2py 2.14.4 is OUT

2016-04-25 Thread Ben Lawrence
Does the shell still work or is it just me who cannot work it? Whenever I place anything in the .../admin/shell/index/welcome, it just prints "None" On Tuesday, April 12, 2016 at 2:29:26 PM UTC-7, Massimo Di Pierro wrote: > > web2py 2.14.4 is out. > > It fixes some a problem with CAS and some

Re: [web2py] Re: web2py slices down

2016-04-25 Thread Ovidio Marinho
again this is terrible [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falcao Neto* ovidio...@gmail.com Brasil 2016-04-25 22:40 GMT-03:00

[web2py] Re: Ajax Form Update (and thank you for all the help)

2016-04-25 Thread Massimo Di Pierro
Can you show up some more code. On Monday, 25 April 2016 08:51:14 UTC-5, Mark Billion wrote: > > I have a form that is accessed through ajax and displayed in a > modalRight now, on success, the modal clears and the parent page is > reloaded, which then shows the data that was entered in the

[web2py] Re: web2py slices down

2016-04-25 Thread Massimo Di Pierro
will contact the maintainers and will move it. On Sunday, 24 April 2016 18:30:55 UTC-5, Henk huisman wrote: > > Yes already 3 days down. > Anybody home? > > > Op zondag 24 april 2016 11:29:57 UTC-4 schreef luis.va...@metamaxzone.com: >> >> Web2py slices (http://www.web2pyslices.com/home) is down,

[web2py] Re: Multiple selection dropdown widget, UI

2016-04-25 Thread Carlos Zenteno
Thank for asking and answering yourself. I am sure somebody will find it useful. -- 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: Multiple selection dropdown widget, UI

2016-04-25 Thread Carlos Zenteno
Thank for asking and answering yourself. I am sure somebody will find it useful. -- 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

Re: [web2py] new Starter app (alternative to Welcome app)

2016-04-25 Thread Michael Beller
Yes - thanks. I knew about that bug, just fixed it. The background and font were both white. Can you check now? On Mon, Apr 25, 2016 at 6:07 PM, Ron Chatterjee wrote: > Have you tested this starter app on mobile. When I hover over "log in" > from a 9 inch tablet or

[web2py] db bulk_insert issue

2016-04-25 Thread 'Laer Cius' via web2py-users
Hi, I try to insert some demo data in my db using this : for fav_record in range(1, 1): object_type = choice(range(1, 5)) if object_type == 1: object_id = choice(range(1, 504)) elif object_type == 2: object_id = choice(range(1, 7)) elif object_type == 3: object_id =

[web2py] Re: Component within component

2016-04-25 Thread webmaster
Note: This may also have something to do with fancybox, which is what I use for the modal. On Monday, April 25, 2016 at 3:35:09 PM UTC-7, webm...@trytha.com wrote: > > I have the following general setup: > > Main Page - basically just a container that holds the... > > ...Infinite Pagination

[web2py] Component within component

2016-04-25 Thread webmaster
I have the following general setup: Main Page - basically just a container that holds the... ...Infinite Pagination Pictures Component - loads 10 pictures and my comment() component (one for each picture), which when clicked, opens the... ...Picture Modal - a component that loads in a modal on

Re: [web2py] new Starter app (alternative to Welcome app)

2016-04-25 Thread Ron Chatterjee
Have you tested this starter app on mobile. When I hover over "log in" from a 9 inch tablet or small phone, I see a blank white screen for log in till I start scrolling, I see the other menu one by one. On Friday, March 25, 2016 at 12:39:53 PM UTC-4, Alessio Varalta wrote: > > Is great! I

[web2py] Re: running app from command line with no server startup window

2016-04-25 Thread Jacob Thoennes
Yes, I packed it with the new version, same as the one I installed it in. -- 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

[web2py] Re: caching questions

2016-04-25 Thread Anthony
On Monday, April 25, 2016 at 2:37:01 PM UTC-4, Pierre wrote: > > suppose I would allow every user to cache some of its individualized > selects. wouldn't that be too expensive in terms of consumed > cache.disk/cache.ram ? > Perhaps. Caching highly individualized selects also won't have much

[web2py] Re: running app from command line with no server startup window

2016-04-25 Thread Niphlod
you should pack the app in the same version it'll be executed ... did you copy the source and then packed on 2.14.5 and then executed on 2.14.5 or you kept the packed version of 2.13.x ? On Friday, April 22, 2016 at 9:29:05 PM UTC+2, Jacob Thoennes wrote: > > I was initially on 2.13, I just

[web2py] Re: Multi language database query

2016-04-25 Thread Niphlod
that query is largely inefficient though. use response.toolbar() to see how many queries that statement generates. I really don't get how the data is stored into the model. example records of each table and of the resultset would be beneficial to craft the needed query On Friday, April 22,

[web2py] Re: caching questions

2016-04-25 Thread Pierre
suppose I would allow every user to cache some of its individualized selects. wouldn't that be too expensive in terms of consumed cache.disk/cache.ram ? Perhaps caching is more suitable for shared data ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to add payment integration in web2py?

2016-04-25 Thread Dave S
On Monday, April 25, 2016 at 7:57:43 AM UTC-7, pbreit wrote: > > I'd say go review the documentation of Stripe or PayMill. You put some > JavaScript on your payment page. The form submits a "token" to your server > which you POST to Stripe/Paymill to process the payment. It's all pretty >

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-25 Thread Richard Vézina
I think it comes from here : https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/helpers/rest.py#L70 As RestParse is used here : https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/base.py#L538 By parse_as_rest() RestParse don't

[web2py] Re: Multiple selection dropdown widget, UI

2016-04-25 Thread Ron Chatterjee
I guess this is all I had to do. http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js";> http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css; rel="stylesheet" type="text/css" />

[web2py] Re: caching questions

2016-04-25 Thread Anthony
On Monday, April 25, 2016 at 10:09:38 AM UTC-4, Pierre wrote: > > > what I was wondering is the type of data of a dynamic app demanding > caching ? > what typically needs caching in such a context ? > It depends on the nature of the data. It can be beneficial to cache any data that changes

[web2py] Re: How to add payment integration in web2py?

2016-04-25 Thread pbreit
I'd say go review the documentation of Stripe or PayMill. You put some JavaScript on your payment page. The form submits a "token" to your server which you POST to Stripe/Paymill to process the payment. It's all pretty easy. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Multiple selection dropdown widget, UI

2016-04-25 Thread Ron Chatterjee
I guess, I can do something similar to this: https://groups.google.com/forum/#!topic/web2py/miYi2aHXo6A But doesn't do multiple selection. On Sunday, April 24, 2016 at 5:16:36 PM UTC-4, Ron Chatterjee wrote: > > duration_str = ('Month or less', '6 months', '1 year') > > Field('duration',

[web2py] Re: caching questions

2016-04-25 Thread Pierre
what I was wondering is the type of data of a dynamic app demanding caching ? what typically needs caching in such a context ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: _after_delete callback function

2016-04-25 Thread Pierre
thanks Anthony, I had retrieved your older post I opted for a "dentist extraction": p = re.compile(r'[1-9]\d*') searchObj = p.search(str(Set)) You are right that what's deleted is gone. Howewer without ondelete=cascade some other table may still reference the deleted record --

Re: [web2py] Invalid view even created it before

2016-04-25 Thread Morganti
No! I saved the view in the .../view folder, no I moved it to .../view/default Thanks a lot your support! Best regards Morganti Em segunda-feira, 25 de abril de 2016 09:08:34 UTC-3, Anthony escreveu: > > And the path to the view is /views/default/novo_cliente.html? > > On Monday, April 25,

[web2py] Ajax Form Update (and thank you for all the help)

2016-04-25 Thread Mark Billion
I have a form that is accessed through ajax and displayed in a modalRight now, on success, the modal clears and the parent page is reloaded, which then shows the data that was entered in the table. i.e., ajax_form = SQLFORM(...).process(next = URL('default', page_name)) {{for x in y:}}

[web2py] SQLForm.factory Pre-Submit Processing Using JavaScript

2016-04-25 Thread Eliot Simcoe
I have a component that has a payment form that uses the Authorize.net gateway. I want to be able to display a bootstrap modal dialog with payment confirmation information before the form is actually submitted, but after the user clicks the submit button. single_payment_form = SQLFORM.factory(

[web2py] Re: caching questions

2016-04-25 Thread Anthony
On Monday, April 25, 2016 at 5:38:19 AM UTC-4, Pierre wrote: > > Hi everyone, > > I discovered this in the book: > > > "The select method has an optional cacheable argument, normally set to > False. When cacheable=True the resulting Rows is serializable but The Rows > lack update_record and

[web2py] Re: _after_delete callback function

2016-04-25 Thread Anthony
Although the Set object is passed to the after_delete callback, you cannot retrieve the deleted records (or their IDs) because, well, they have been deleted. If you need to know which records will be deleted, you should use the before_delete callback. Note, from the Set object, you can obtain

Re: [web2py] Invalid view even created it before

2016-04-25 Thread Anthony
And the path to the view is /views/default/novo_cliente.html? On Monday, April 25, 2016 at 6:32:43 AM UTC-4, Morganti wrote: > > Hi, thanks your answer. > > I had created the controller inside default.py, see below: > def novo_cliente(): > db.cliente.salao.default = auth.user.id >

[web2py] How to add payment integration in web2py?

2016-04-25 Thread Emmanuel Dsouza
-- 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-users" group. To

Re: [web2py] Invalid view even created it before

2016-04-25 Thread Morganti
Hi, thanks your answer. I had created the controller inside default.py, see below: def novo_cliente(): db.cliente.salao.default = auth.user.id db.cliente.salao.writable = db.cliente.salao.readable = False form = SQLFORM(db.cliente) if form.process().accepted:

[web2py] _after_delete callback function

2016-04-25 Thread Pierre
Hi, as stated in the book the function takes a single Set argument which is a Lazy Set >>> db.person._after_delete.append(lambda s: pprint(s)) The deleted record's id is probably contained in the Set but how to extract it from there ?. I need this id to perform the subsequent actions --

[web2py] Re: Scheduler not finding module

2016-04-25 Thread peter
I am afraid I have one of those horrible intermittent problems. The system used to work fine, and then this problem arose when it was moved from one node to another. I have rebooted and the system remained. I tried your two tests and it passed both. I rebooted, and the problem has disappeared.

Re: [web2py] Invalid view even created it before

2016-04-25 Thread Johann Spies
Hallo André On 25 April 2016 at 11:49, Morganti wrote: > Hello, > > I am started to learn web2py some weeks ago. After created some > controllers and models using the generic view. I tried to deploy to > PythonAnywhere to test it and, of course, I know or use disable

[web2py] Re: Helping with dropdown list using query

2016-04-25 Thread Morganti
Hi, Thanks your helping. I got it running as expected. BR Morganti Em sexta-feira, 22 de abril de 2016 15:45:53 UTC-3, 黄祥 escreveu: > > pls try : > db.servicos_feitos.servico_feito.requires = > IS_IN_DB(db((db.servico_oficina.id_salao == auth.user_id) & > (db.servico_oficina.servico_salao ==

[web2py] Invalid view even created it before

2016-04-25 Thread Morganti
Hello, I am started to learn web2py some weeks ago. After created some controllers and models using the generic view. I tried to deploy to PythonAnywhere to test it and, of course, I know or use disable generic only localhost or create the specific views. First I tried to disable the

[web2py] caching questions

2016-04-25 Thread Pierre
Hi everyone, I discovered this in the book: "The select method has an optional cacheable argument, normally set to False. When cacheable=True the resulting Rows is serializable but The Rows lack update_record and delete_record methods. If you do not need these methods you can speed up