[web2py] A question about ajax function (passing a string parameter over)

2019-05-16 Thread Vlad
I have the following javascript in the view: var id = $('#CurrentCartId').text(); var description = $(this).text(); var url='{{=URL('cart','description')}}'; url += '/' + id + '/'; url += description; ajax(url,[],':eval'); t

[web2py] A Question about Performance of web2py

2016-04-05 Thread jTony
- I want my web2py application to contact a second web server and get some information from it .This will be needed for most of the requests I get from my clients . I can use any python HTTP libraries to get info from others servers but is concerned if it affects the performanc

Re: [web2py] a question about _before_delete.append

2013-06-09 Thread Marin Pranjić
You can set it in model or controller, doesn't matter (as long as you don't make database queries inside models, which you probably don't do). Yes, you can append multiple callbacks. Web2py can use these lists for internal stuff, so you should only append to it. Marin On Sun, Jun 9, 2013 at 2:1

[web2py] a question about _before_delete.append

2013-06-09 Thread Tim Richardson
What does "append" hint at in the naming of the hooks for data base events? I want to do something when a record is deleted from a grid. Is there any harm if I call _before_delete.append in the controller function, or should the callback be set in the model? I guess it doesn't matter since both

Re: [web2py] A question on sitepoint

2011-04-21 Thread Martín Mulone
Powerpack http://martin.tecnodoc.com.ar/default/post/2011/04/18/12_powerpack-intro and http://martin.tecnodoc.com.ar/default/post/2011/04/21/14_installing-powerpack-from-zero 2011/4/21 luckysmack > Thought some other more experienced devs might want to chime in: > > > http://www.sitepoint.com

[web2py] A question on sitepoint

2011-04-21 Thread luckysmack
Thought some other more experienced devs might want to chime in: http://www.sitepoint.com/forums/perl-python-other-languages-36/writing-blog-using-web2py-django-752190.html

[web2py] A question from a web2py newcomer

2011-03-08 Thread Tom
Hi,I am a newcomer of web2py, I am learning it by following this guide The Official (3rd Ed.)web2py Book(http://web2py.com/book/default/ chapter/03) At the step of creating db, after I created db.py, In this page http://127.0.0.1:8000/ImageBlog/appadmin/index, I couldn't see my tables:image and co

Re: [web2py] a question

2010-07-16 Thread Vasile Ermicioi
in some cases that would be nice, but web2py comes with 2 terms : arguments and variables, and how can framework know you want x, y = request.vars.x, request.vars.y or x,y = request.args[:2]

[web2py] a question

2010-07-16 Thread VP
I'm a newbie. >From the documentation, url mapping is done like this URL: default/f/a/b Controller: def f(): x = request.argument(0) ## a y = request.argument(1) ## b Why can we simplify it with this: def f ( x, y ): ... such that a and b are automatically assigned to x and y?