[web2py] Re: put function on models or modules

2017-03-27 Thread Anthony
On Monday, March 27, 2017 at 12:39:43 AM UTC-4, 黄祥 wrote: > > a, i c, my assumption is whatever showed in snakeviz result, is all the > python files that executed, btw, there still odd for me, why login_onfail > callback function is not showed snakeviz, wheter it's executed or defined? > Just to

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-27 Thread Happy Rob
> > OK,I'm down to just this now: def pay(): from gluon.contrib.stripe import StripeForm form = StripeForm( pk='pk_test_xx', sk='sk_test_xx', amount=1000, description="Example charge").process() if form.accepted:

[web2py] Delete confirmation popup

2017-03-27 Thread Winter Kryz
Hello Everybody, I hope someone can help me, I have a table full of records from a data base, each row has a delete button so what I want to do is to show a "Yes/No" Javascript popup to confirm the delete action. So far what I did is: *** controller *** def Person(): person = db(db.Person

[web2py] cache.redis in module

2017-03-27 Thread Pierre
Hi everyone, I have a *cache.redis* defined in a db.py file like so: from gluon.contrib.redis_utils import RConn from gluon.contrib.redis_cache import RedisCache rconn = RConn('localhost', 6379) cache.redis = RedisCache(redis_conn=rconn, debug=True) now i'd like to perform caching in a module

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-27 Thread Happy Rob
Oops, it would be $1000, and I also need to put in a proper description, but that's not the tricky bit. Thanks Rob -- 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 Is

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-27 Thread Happy Rob
Hi Mathieu I used Stripes submit form and put that in a form, and that seems to work ok - https://robstestinglab.pythonanywhere.com/c/e/b1 https://checkout.stripe.com/checkout.js"; class="stripe-button" data-key="pk_test_X" data-amount="999" data-name="XXX"

Re: [web2py] Re: web2pyslices

2017-03-27 Thread Richard Vézina
Notice nothing prevent somebody to use githud either way... Richard On Mon, Mar 27, 2017 at 2:55 PM, Richard Vézina wrote: > To my understanding issue with web2py slice is that it is base on Mucova ( > https://github.com/rochacbruno/Movuca) which is a web2py based CMS not > maintain anymore. To

Re: [web2py] Re: web2pyslices

2017-03-27 Thread Richard Vézina
To my understanding issue with web2py slice is that it is base on Mucova ( https://github.com/rochacbruno/Movuca) which is a web2py based CMS not maintain anymore. To me, the problem is that web2py slice was more an effort of social network then a web2py showcase... I can understand the reluctance

[web2py] how to get the id of the first row in sqlform.grid when it is loaded?

2017-03-27 Thread A3
I am using sqlform.grid, with links that show details in a div when clicked. here are some fragments of the code: def view_report(): qry.reportnr.represent = render_FIELD(qry.reportnr) fields = (qry.id,qry.detail, qry.reportnr,) grid = SQLFORM.grid(qr,fields =fields,

[web2py] Re: RestApi

2017-03-27 Thread Marlysson Silva
Which problem are you having? Em sexta-feira, 24 de março de 2017 15:20:31 UTC-3, PK escreveu: > > @request.restful() > def api(): > response.view = 'generic.json' > def GET(*args,**vars): > patterns = [ > "/wishBoxes[wishBoxes]", > "/wishBoxes[wishBoxes]/{w

[web2py] Re: How to import google-api-python-client in web2py?

2017-03-27 Thread Marlysson Silva
So you try install by pip? Em segunda-feira, 20 de março de 2017 10:38:12 UTC-3, Peter Weicher escreveu: > > Hello, > > I am trying to use web2py to build an application that requests data from > various google APIs. > > Using my local install of Python 3 or Python 2, I am able to import the >

[web2py] Re: Web2py multiple request variables to filter database output

2017-03-27 Thread Marlysson Silva
You want select many images , highlight them and search at database by ids's images highlighted ? Real-time? Em segunda-feira, 20 de março de 2017 10:40:13 UTC-3, Scorpa escreveu: > > Hello folks! > > I'm struggling with one idea: > I want to make visual filter such as - you can click on any ima

[web2py] Re: web2pyslices

2017-03-27 Thread Marlysson Silva
And the stackoverflow documentation? http://stackoverflow.com/documentation/web2py/topics Em terça-feira, 21 de março de 2017 16:53:16 UTC-3, Massimo Di Pierro escreveu: > > web2pyslices is becoming hard to maintain. Right now the best solution is > to create a github repo and move all the rec

Re: [web2py] Re: Open a new window and continue

2017-03-27 Thread Marvix
Hello, is it changed something about this topic since the time of the discussion? Which is the best method now to achieve this function? Thanks, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c