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

2017-03-21 Thread lyn2py
You might need to be more detailed describing your issue. On Wednesday, March 22, 2017 at 11:19:21 AM UTC+8, Scott Hunter wrote: > > Has anyone been able to use Stripe's Checkout with web2py? If so, how did > you do it? I'm having trouble getting the token it generates back. > > - Scott > --

[web2py] Re: web2pyslices

2017-03-21 Thread Kiran Subbaraman
I agree that the managing web2pyslices as issues may be one way to go.A couple of options that I have in mind *Option 1 / bl.ocks.org* But there is another idea that I have been considering for sometime... I follow the d3js community once in a while, and they have this nice way to contribute

[web2py] Using Stripe's Checkout w/ web2py

2017-03-21 Thread Scott Hunter
Has anyone been able to use Stripe's Checkout with web2py? If so, how did you do it? I'm having trouble getting the token it generates back. - Scott -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

{Disarmed} Re: [web2py] Re: web2pyslices

2017-03-21 Thread Carlos Cesar Caballero Díaz
Hi Massimo, I have a base CMS that I have not published because has been very difficult to convert it into modules/plugins (right now is used in the www.daxslab.com site), if someone else have not any better option I can give a try, but I can't start working to make a proposal until next

{Disarmed} Re: [web2py] web2pyslices

2017-03-21 Thread Carlos Cesar Caballero Díaz
What is the main problem with the actual web2py slices? is the old unmaintainable movuca code or something else? I think that web2py needs a facelift, a new modern-look main site and a new web2pyslices site is needed, but I think that the github idea is a step back... Some time ago I did an

[web2py] Re: web2pyslices

2017-03-21 Thread Massimo Di Pierro
The problem is that web2pyslices is based on Movuca and I do not believe Movuca is supported any more. If anybody wants to "adopt" web2pyslices as is, the code is available. If anybody wants to develop a new CMS for web2pyslices, the data can be converted. On Tuesday, 21 March 2017 15:33:55

[web2py] Re: edit or delete child or detail table on SQLFORM.grid with left join

2017-03-21 Thread Massimo Di Pierro
The A helper also has a A(..., callback=URL()) that posts to the callback. But I think _onclick is more explicit. On Tuesday, 21 March 2017 16:00:05 UTC-5, 黄祥 wrote: > > a, i c, thank you so much for your example massimo, that's why my old code > not work because i'm using _href > e.g. > def

Re: [web2py] web2pyslices

2017-03-21 Thread Ovidio Marinho
It It would be very important that you stay in a job with web2py, since we are using the tool to make systems and we do not have a repository developed with web2py. be very important that you stay in a web2py job, because we are using the tool to make systems and we do not have a repository

[web2py] Re: edit or delete child or detail table on SQLFORM.grid with left join

2017-03-21 Thread 黄祥
a, i c, thank you so much for your example massimo, that's why my old code not work because i'm using _href e.g. def index(): grid = SQLFORM.grid(db.thing, links=[lambda row: A('check',_onclick="jQuery.post('%s')" % URL('check',args=row.id))]) #grid = SQLFORM.grid(db.thing, links=[lambda row:

[web2py] Re: web2pyslices

2017-03-21 Thread Relsi Maron
Hi Massimo, what is the major difficult to maintenance? How we can help? 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 recipes into

[web2py] web2pyslices

2017-03-21 Thread Massimo Di Pierro
web2pyslices is becoming hard to maintain. Right now the best solution is to create a github repo and move all the recipes into issues. We will deprecate by closing them. People with gihub accounts can post and comment issues/recipes. Unless you have a better solution, this will be done within

Re: [web2py] Re: Trying to use Field.represent for 'blob' type in SQLFORM.grid (works in appadmin?)

2017-03-21 Thread Massimo Di Pierro
You should be able to donwload the zip version and unzip over the existing one (assuming you are running from source). I plan a new release within less then 1 month. It is long overdue. On Tuesday, 21 March 2017 14:17:41 UTC-5, Jordan Myers wrote: > > Thanks for the quick fix! Do you know when

Re: [web2py] Re: Trying to use Field.represent for 'blob' type in SQLFORM.grid (works in appadmin?)

2017-03-21 Thread Jordan Myers
Thanks for the quick fix! Do you know when the next scheduled release will be for web2py? If it's not soon, what is the best practice for cloning the repository into an existing web2py source-download? On Mon, Mar 20, 2017 at 4:16 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > It

[web2py] Re: DAL executesql and escaping apostrophe/single quote

2017-03-21 Thread Anthony
> > I have other, pre-existing tables I need to query data from, so using the > db.table1 syntax won't work without re-creating them entirely (I think). > What do you mean by "re-creating them entirely?" You certainly don't have to re-create the actual tables in the database. Though you would

[web2py] Re: Is there any benefit from linking these 3 different ways?

2017-03-21 Thread Massimo Di Pierro
This is wrong: The reason is that it would break if the path_info.count('/')!=2 in the current page. These two produce the same net effect: I would use args if 'lookup' GETs a persistent object that resides inDB and I would use vars if it GETs the result of a computation and you are

[web2py] Re: DAL executesql and escaping apostrophe/single quote

2017-03-21 Thread Massimo Di Pierro
rows = db(db.table1.name=="Single ' Quote").select(limitby=(0,1)) web2py exists so that you do not have to use raw SQL. it is dangerous. On Tuesday, 21 March 2017 06:13:32 UTC-5, Travis Smith wrote: > > Hi guys, > > I can't seem to find anything anywhere because everything just says "it >

[web2py] Re: Extracting values of a list from the database and using them individually in a javascript array

2017-03-21 Thread Massimo Di Pierro
def form1Details(): form = db.compForm(request.args(0)) forms = db(db.compFormPages.formName==form.id).select(db.compFormPages.ALL) images = [{'link':URL('download',args=form.formImage), 'title':form.formTitle} for form in forms] return dict(images=images) the images are in

[web2py] Re: edit or delete child or detail table on SQLFORM.grid with left join

2017-03-21 Thread Massimo Di Pierro
For example: db.define_table('thing',Field('name'),Field('checked','boolean',readable=False)) def index(): grid = SQLFORM.grid(db.thing, links=[lambda row: A('check',_onclick="jQuery.post('%s')" % URL('check',args=row.id))]) return dict(grid=grid) def check():

[web2py] Is there any benefit from linking these 3 different ways?

2017-03-21 Thread r
result: /lookup?item=1 result: /lookup/1 result: /lookup?item=1 Just wondering, is there any benefit from using one method over the others? I plan on retrieving the URL args/vars on the webpage. For me the 1st one

[web2py] Re: request.folder

2017-03-21 Thread Anthony
How does this cause problems for you? Note, because starting the shell or scheduler involves calling web2py.py in the /web2py folder, the Python working directory will be /web2py, so request.folder will be relative to the /web2py folder from the perspective of the Python interpreter. If you

[web2py] scheduler error: column "worker_stats__tmp" is of type json

2017-03-21 Thread António Ramos
any ideas ? 2017-03-20 12:54 GMT+00:00 António Ramos : > any help? I´m hosting with webfaction and they moved my app to another > server > column "worker_stats__tmp" is of type > json but expression is of type text LINE 1: UPDATE scheduler_worker SET >

Re: [web2py] Re: Regarding "registration needs verification"

2017-03-21 Thread bk Coc
auth.settings.login_after_registration = False or remove it -- 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

[web2py] DAL executesql and escaping apostrophe/single quote

2017-03-21 Thread Travis Smith
Hi guys, I can't seem to find anything anywhere because everything just says "it works". I'm using the latest version of web2py and mysql (maria) as my db, and I'm trying to run executesql with the following query: db.executesql("SELECT * FROM table1 WHERE name = %s LIMIT 1", ("Single'

[web2py] Extracting values of a list from the database and using them individually in a javascript array

2017-03-21 Thread Cypher
Hi guys i need help, please someone out there coz I'm pulling out my hairs at this point: I want to extract pictures from within a list extracted from the database and store them inside a JavaScript array for a slide show. *CONTROLLER:* *def form1Details():

[web2py] Re: request.folder

2017-03-21 Thread Oliver Holmes
Yes, this behavior just annoyed the hell out of me too. When referenced in the application itself request.folder behaves as documented her: http://web2py.com/books/default/chapter/29/04/the-core#request ( (i.e. full absolute path). But as soon as it is used in a module called as scheduled task