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
- 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
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
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
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
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
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
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]
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?
9 matches
Mail list logo