Re: [web2py] Re: session2trash over ssh

2014-03-31 Thread Johann Spies
On 31 March 2014 19:58, Derek wrote: You have to start web2py on a certain IP address, because it checks that IP > address. For example, if you start it on 0.0.0.0, if he request to the site > is not 0.0.0.0/admin then it will give you that message "Admin is > disabled because insecure channel".

[web2py] Re: Remove query db field

2014-03-31 Thread xgp . latino
Hi all. Right now i have made this: In controller i select rows: detalleusuario = db(db.hcpacientes.noid==form.vars.noid).select('hcpacientes.tid', 'hcpacientes.noid', 'hcpacientes.nombre').first() Then in views, i display same variable with identifier fields: {{=detalleusuario.tid}} {{=deta

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Massimo Di Pierro
No credit card payment processor is free. They all charge more or less 3%. On Monday, 31 March 2014 16:13:51 UTC-5, Matheus Cardoso wrote: > > For sure, using Stripe is way more easier than I ever seen or used. > However, it seems that it is a paid service. So you can do with Requests, > for ins

[web2py] Re: Web Editor Blank Screen

2014-03-31 Thread James Ryan
Thanks Derek. Tried multiple browsers and machines, using incognito/no extensions etc with no luck. I haven't been able to successfully edit any files at all. I couldn't see any errors in the apache log on the Raspberry Pi but I'll add that line to the config file and try again. Cheers. On Tu

Re: [web2py] for the experts among us

2014-03-31 Thread Alvaro Mantilla Gimenez
+1 2014-03-31 11:06 GMT-06:00 Massimo Di Pierro : > https://www.youtube.com/watch?v=BKorP55Aqvg&app=desktop > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: New Merchant service -- WePay.com

2014-03-31 Thread Massimo Di Pierro
Nice. we should have integration with web2py. On Monday, 31 March 2014 16:31:57 UTC-5, Joe Barnhart wrote: > > These guys look very much like Stripe.com as credit-card merchant service > providers -- that is to say, VERY good! > > Two differences stand out -- WePay can process electronic checks a

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Christopher Steel
Freshbooks reoccurring invoices + Stripe AND/OR Paypal is hard to beat. C. On Monday, March 31, 2014 5:57:14 AM UTC-4, Mika Sjöman wrote: > > Hi > > I wonder if anyone here has implemented recurring payments with Paypal > here with Web2py? Any experience with this and how to implement it? > > We

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
I updated the example in the book. On Monday, March 31, 2014 6:09:11 PM UTC-4, Anthony wrote: > > Yes, that should be fixed. > > On Monday, March 31, 2014 3:47:54 PM UTC-4, backseat wrote: >> >> Really helpful, thanks Anthony. >> >> One suggestion: Chapter 11 of the book, heading "The ajax functi

[web2py] Re: for the experts among us

2014-03-31 Thread samuel bonill
thanks for sharing it massimo... -- 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 Group

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
Yes, that should be fixed. On Monday, March 31, 2014 3:47:54 PM UTC-4, backseat wrote: > > Really helpful, thanks Anthony. > > One suggestion: Chapter 11 of the book, heading "The ajax function", has > exactly the code I used (that's where I got it from): > > > > > > May I suggest that

[web2py] New Merchant service -- WePay.com

2014-03-31 Thread Joe Barnhart
These guys look very much like Stripe.com as credit-card merchant service providers -- that is to say, VERY good! Two differences stand out -- WePay can process electronic checks as well as credit cards, an advantage not shared by Stripe. Also, the WePay API is based on OAuth2, which seems lik

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Matheus Cardoso
For sure, using Stripe is way more easier than I ever seen or used. However, it seems that it is a paid service. So you can do with Requests, for instance, and for free (at least the development part). I did something like that

Re: [web2py] Init Script in Web2Py

2014-03-31 Thread Jay Martin
I'm confused as to why this scenario needs caching. Isn't it true that for an empty user table: if cache.ram('init',lambda:db(db.auth_user).isempty(),None): arbitrary_function() will only cache the boolean value True and keep that value (True) in cache forever (until the app is restarted), a

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Keith Edmunds
Really helpful, thanks Anthony. One suggestion: Chapter 11 of the book, heading "The ajax function", has exactly the code I used (that's where I got it from): May I suggest that your comment about URLs be included in that documentation? Appreciate the help, thanks. Keith -- Blog: http:/

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
> > > Ajax request gets sent to the server. > > Yes - but I knew that because I get a change in the display. It just > isn't the change expected. To reiterate, when the Add form is displayed - > in other words, while the grid is *not* displayed - typing in the form > displays the whole grid in

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Keith Edmunds
Thanks Anthony. > First, take grid out of BEAUTIFY -- not necessary. Thanks, done. > Does db.t_dogs happen to have a field called "name"? If so, change the > name of your extra input element to something other than "name". No, it doesn't. > Also, when typing in your input field, open the brows

[web2py] Re: Alternative to reCaptcha?

2014-03-31 Thread Anthony
Also, doesn't seem to work with touch. On Monday, March 31, 2014 2:38:21 PM UTC-4, Derek wrote: > > Why would you want to? All you'd have to do to bypass that captcha is to > call a line of javascript. The validation is all client side. > > On Tuesday, March 25, 2014 11:58:18 PM UTC-7, marco mans

[web2py] Re: Web Editor Blank Screen

2014-03-31 Thread Derek
also, make sure you have this line in your apache config... Header always append X-Frame-Options SAMEORIGIN On Monday, March 31, 2014 11:25:23 AM UTC-7, Derek wrote: > > The 'canceled' message can be caused by a few different routes, either a > navigation away to a different page, a user clicki

[web2py] Re: Alternative to reCaptcha?

2014-03-31 Thread Derek
Why would you want to? All you'd have to do to bypass that captcha is to call a line of javascript. The validation is all client side. On Tuesday, March 25, 2014 11:58:18 PM UTC-7, marco mansilla wrote: > > Hi, I've been looking for some alternative to *Captcha, and so far I > haven't found some

Re: [web2py] Re: I'd like to know what is a suitable tool to generate document templates.

2014-03-31 Thread Derek
Word can make clean HTML if you choose to save as "Web Page Filtered". It's default is to add a bunch of office specific tags so that you can load it back into office and it will retain all the properties not supported by the HTML exporter. On Wednesday, March 26, 2014 10:30:05 AM UTC-7, Omar

[web2py] Re: Web Editor Blank Screen

2014-03-31 Thread Derek
The 'canceled' message can be caused by a few different routes, either a navigation away to a different page, a user clicking the 'stop' button, or an ad blocker... you should look at your network data to get better answers. http://dev.chromium.org/for-testers/providing-network-details There

Re: [web2py] Re: displaying count and groupby

2014-03-31 Thread Dave S
On Thursday, March 27, 2014 6:27:17 AM UTC-7, Johann Spies wrote: > > On 27 March 2014 10:21, Dave S > wrote >> >> >> >> Except for one tiny detail. I don't want to print the results from the >> controller, I want the view to display them. >> >> > What about > > rows = SQLTABLE( db(db.table.i

[web2py] Re: displaying count and groupby

2014-03-31 Thread Dave S
On Thursday, March 27, 2014 9:23:14 AM UTC-7, Niphlod wrote: (My apologies for the delayed reaction ... I held off replying until I tried the changes.) > > . > return dict(rows=rows, count=count, groupby=groupby) > > > Thank you! I can now show the peak in February (for the current list o

[web2py] Re: session2trash over ssh

2014-03-31 Thread Derek
You have to start web2py on a certain IP address, because it checks that IP address. For example, if you start it on 0.0.0.0, if he request to the site is not 0.0.0.0/admin then it will give you that message "Admin is disabled because insecure channel". You should start it on the external IP add

Re: [web2py] Re: GAE deployment problem with gluon.settings

2014-03-31 Thread Francisco García Claramonte
Hello all, The problem persists. But I fixed it upgrading to python 2.7. With app.yaml parameters: runtime: python27 threadsafe: true# true for WSGI & concurrent requests (Python 2.7 only) default_expiration: "24h" # for static files - url: .* script: gaehandler.wsgiapp# WSGI (Pytho

[web2py] for the experts among us

2014-03-31 Thread Massimo Di Pierro
https://www.youtube.com/watch?v=BKorP55Aqvg&app=desktop -- 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 subscrib

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Massimo Di Pierro
Using stripe is very easy. You register and you ask web2py to give you a stripe payment form: def pay(): from gluon.contrib.stripe import StripeForm

[web2py] Re: Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Greg Vaughan
Check out Stripe... https://stripe (dot) com/ Massimo has a library created here and there is some support in the docs... On Monday, 31 March 2014 19:57:14 UTC+10, Mika Sjöman wrote: > > Hi > > I wonder if anyone here has implemented recurring payments with Paypal > here with Web2py? Any experi

[web2py] Re: We need a whats new section in the Web2py Admin page.

2014-03-31 Thread Niphlod
correction. The update is ALWAYS worth doing. It doesn't bring just new features, but also bug fixes. On Monday, March 31, 2014 3:16:50 PM UTC+2, Encompass solutions wrote: > > It would be nice to have a way that you give your version to a server > and it responds with what is new both security,

[web2py] Re: Multiple AJAX POST requests get serially serviced

2014-03-31 Thread Anthony
And note that this is only an issue with file based sessions (the default), as the session file is locked for each request (unless explicitly unlocked). Database and cookie based sessions don't involve any locking. Note, in some cases, the locking is desirable, as it prevents race conditions if

Re: [web2py] Re: Dynamically Creating a Form

2014-03-31 Thread horridohobbyist
Wow, thanks! Python is pretty amazing. (I come from a largely C background.) On Monday, 31 March 2014 01:06:11 UTC-4, Anthony wrote: > > Yes, that will do it. form.vars (as well as request.vars and many other > web2py objects) is a gluon.storage.Storage object, which is much like a > dictionary

[web2py] Re: More than one field on POST with ReST

2014-03-31 Thread Massimo Di Pierro
I need the complete traceback but I think the error is here: r = request.post(" http://127.0.0.1:8000/webpricer/default/api/algorithm.json";, data=payload, auth=('user', 'pass')) there is no request.post, unless you imported something that overrides the default request object and you should no

[web2py] Re: Multiple AJAX POST requests get serially serviced

2014-03-31 Thread Massimo Di Pierro
It is a feature to ensure consistency of the data. You can serialize them by doing this at the top of your models: if request.ajax: session._unlock(response) On Monday, 31 March 2014 02:52:28 UTC-5, Sandeep Gupta wrote: > > Hi All > > I've a setup on Amazon AWS, nginx -> uwsgi -> web2py. The db

[web2py] Re: Cannot unzip the downloaded files from http://www.web2py.com/init/default/download

2014-03-31 Thread Antonis Loumiotis
On Friday, March 28, 2014 8:47:30 PM UTC+2, Dave S wrote: > > > > On Thursday, March 27, 2014 11:56:50 PM UTC-7, Antonis Loumiotis wrote: >> >> >> On Thursday, March 27, 2014 8:12:42 PM UTC+2, Dave S wrote: >>> >>> >>> >>> On Thursday, March 27, 2014 4:00:43 AM UTC-7, Antonis Loumiotis wrote: >>>

[web2py] More than one field on POST with ReST

2014-03-31 Thread Carolina Nogueira
Hi guys! I was trying to execute a POST using ReST inside a function. This post has two fields. When I try to do it with a curl, it works fine, but when I do exactly the same POST inside a function, it gives me an error. On my model: db.define_table('algorithm', Field('name', 's

[web2py] Re: Keep menu floating on top

2014-03-31 Thread Tom Clerckx
Fantastic! Thanks for the responses! Best regards, Tom. On Thursday, March 27, 2014 4:50:29 PM UTC+1, Tom Clerckx wrote: > > Is there an easy way to keep the menu 'floating' on top. > I.e. when a user scrolls down that the menu stays visible at the top of > the page > > Best regards, > Tom. >

[web2py] Multiple AJAX POST requests get serially serviced

2014-03-31 Thread Sandeep Gupta
Hi All I've a setup on Amazon AWS, nginx -> uwsgi -> web2py. The db backend is mysql on Amazon RDB (earlier it was sqlite with same problem). On opening dashboard of the web2py application, it fires around 20 AJAX POST requests. However, the response is received serially in the browser. Also, i

[web2py] We need a whats new section in the Web2py Admin page.

2014-03-31 Thread Jason Brower
It would be nice to have a way that you give your version to a server and it responds with what is new both security, stability, and features. It's a little annoying to see an update and have to check the features to see if it is worth it to do the update. BR, Jason Brower -- Resources: - http:/

[web2py] session2trash over ssh

2014-03-31 Thread Johann Spies
On my localhost there is no problem but on the server where I am logged in through ssh I get raise HTTP(200, T('Admin is disabled because insecure channel')) when trying nohup python web2py.py -S nkb -M -R scripts/sessions2trash.py & So how am I supposed to run it on the server? Regards Johan

[web2py] Paypal Recurring Payments? Any experience? Any alternatives?

2014-03-31 Thread Mika Sjöman
Hi I wonder if anyone here has implemented recurring payments with Paypal here with Web2py? Any experience with this and how to implement it? We currently charge people for lessons with our teachers, but we would like to go over to a payment model where we automatically charge the customers ev