[web2py] Re: web2py using "foreign" form

2017-03-23 Thread Scott Hunter
There is no `request.post_vars`, and thus no `request.post_vars.stripeToken`, when the controller the form was submitted to executes. I cannot see any such hidden field in the DOM, but there not being one would explain why it isn't getting back to me. Further poking around, I found a section (

[web2py] Re: Customizing Fields the lazy way

2017-03-23 Thread Anthony
Note, you might as well also add 'type': 'string' to your dictionary, and maybe 'length': 20. You can also give yourself some flexibility by creating a function: def phone_field(name, **kwargs): defaults = {'type': 'string', 'length': 20, 'requires': IS_EMPTY_

[web2py] Re: xml() error when BEAUTIFY globals()

2017-03-23 Thread Anthony
BEAUTIFY is not designed to take the entire global environment. The problem is that globals() includes all of the web2py HTML helper classes. Because BEAUTIFY is itself an HTML helper, it is serialized by recursively processing its components. The serialization process checks whether a given co

[web2py] Re: Discussion: SQLITE for large applications

2017-03-23 Thread Dave S
On Thursday, March 23, 2017 at 5:35:30 AM UTC-7, Áureo Dias Neto wrote: > > Friends, I run information systems and always my teachers say that sqlite > is not reliable to use as a database for production environment .. > The problem with this statement is that they can not give me a good > argu

[web2py] Re: REGULAR TASK EVERY DAY

2017-03-23 Thread Dave S
On Thursday, March 23, 2017 at 4:32:40 AM UTC-7, Áureo Dias Neto wrote: > > Hello guy's, i have a function in controller thats calcule values of all > the database everytime an user access the index page.. > but now, i want to run this in server side, every hour or day.. how to do > it? use sc

Re: [web2py] lazy_tables + 'reference tablename' = referenced table not lazy

2017-03-23 Thread Anthony
> > In this case, for instance, you want to instantiate one table but NOT > another table which is linked to this table. That seems like a logic error > to me. > Generally good thoughts, though in this particular case, the issue is the the linked table would be fully defined even if the linki

Re: [web2py] Re: web2pyslices

2017-03-23 Thread Anthony
> > There is also another things that could be done, as we had discussed that > in the pass I mean move away from google group... Recently there is gitter ( > https://gitter.im/) that have been open sourced, so we could, if gitter > sufficient for proper web2py community communications, use it i

[web2py] Re: web2py using "foreign" form

2017-03-23 Thread Anthony
On Thursday, March 23, 2017 at 10:20:29 AM UTC-4, Scott Hunter wrote: > > That's what I would have thought, but if I have the following in my view: > > "POST"> >src="https://checkout.stripe.com/checkout.js"; class="stri

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

2017-03-23 Thread Joe Barnhart
I'm not sure what you're doing with a single-quote table name (?) but I observed your statements have different results after string substitution. In the first case, substituting the "Single' Quote" string results in: "SELECT * FROM table1 WHERE name = Single' Quote LIMIT 1" Whereas in your "re

Re: [web2py] lazy_tables + 'reference tablename' = referenced table not lazy

2017-03-23 Thread Joe Barnhart
Just a couple of philosophical comments... Whenever I find that the web2py platform is "forcing" me to code in large volumes and produce ugly, quirky code which I *know* will be hard to maintain, I stop myself and take another look at how I'm trying to accomplish my task. I have this philosoph

Re: [web2py] xml() error when BEAUTIFY globals()

2017-03-23 Thread Richard Vézina
Maybe because .xml() method of various web2py class in gluon.html and is intent to be used over markup type languages not python language : https://github.com/web2py/web2py/blob/master/gluon/html.py#L548 You can search for "def xml(" on this page to see all the differents implementation... Richa

[web2py] Customizing Fields the lazy way

2017-03-23 Thread Joe Barnhart
Here is a bit of syntactic sugar I use for creating fields with less typing. And better consistency, of course -- there always has to be a good reason for my lazy keyboard-saving shortcuts! I have a number of fields which are for specific data types, such as phone numbers. I gather the "commo

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

2017-03-23 Thread Joe Barnhart
I use Stripe all the time. My sites (web2py and rails) have charged over $10M thru stripe so I'd have to say it works pretty well. My favorite way to use it is to use their Javascript pop-up box, which prevents any CC info from even getting into my server logs. I actually started using it bef

[web2py] xml() error when BEAUTIFY globals()

2017-03-23 Thread Lars
Hi, Everything is in the title : I try to have a BEAUTIFY look at copy.copy(globals()) and I get an xml error line 131 in html.py : data is empty for : return data.xml() Why can't we beautify globals() ? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

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

2017-03-23 Thread Happy Rob
I'd be very interested too! -- 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 Groups "we

[web2py] Custom Login View

2017-03-23 Thread Happy Rob
Hi guys I'm trying to make a membership site but I'm struggling a little and would love a little help # 1. How can I select where go if login fails? Can I add something next to the 'next=URL' that's similar? # 2. How can I select so uses c/b/b3 to login instead of c/default/user/login? # 3. Whe

[web2py] Re: web2py using "foreign" form

2017-03-23 Thread Scott Hunter
That's what I would have thought, but if I have the following in my view: https://checkout.stripe.com/checkout.js"; class="stripe-button" data-email="{{=auth.user.email}}" data-key="{{=pk}}" data-amount="{{=amount}}" data-name="UKI TMS" data-description="{{=description}}

Re: [web2py] Re: web2pyslices

2017-03-23 Thread Richard Vézina
If this is possible without headache it would be wonderful to me... There is also another things that could be done, as we had discussed that in the pass I mean move away from google group... Recently there is gitter ( https://gitter.im/) that have been open sourced, so we could, if gitter suffici

[web2py] Re: how to iterate IS_IN_DB validator with multiple option set to True

2017-03-23 Thread Anthony
What exactly do you want to iterate? Can you show some code? Is the field a list:-type field? On Wednesday, March 22, 2017 at 7:24:48 PM UTC-4, Áureo Dias Neto wrote: > > i have an field with the IS_IN_DB validator with multiple option set to > True, i want to iterate it to show the results > >

[web2py] Re: request.folder

2017-03-23 Thread Anthony
Feel free to open a Github issue? It looks like it is something that can be corrected. On Thursday, March 23, 2017 at 8:21:09 AM UTC-4, Oliver Holmes wrote: > > I know I can work around a lot of issues. I just thought it might interest > anyone, that the documentation is at least incomplete. Plu

[web2py] Re: web2py using "foreign" form

2017-03-23 Thread Anthony
If the form is submitted via a POST request, everything will be in request.post_vars (request.post_vars is not specific to web2py-generated forms -- it is simply where posted data are made available). Anthony On Thursday, March 23, 2017 at 4:52:56 AM UTC-4, Scott Hunter wrote: > > Suppose I hav

Re: [web2py] Discussion: SQLITE for large applications

2017-03-23 Thread Áureo Dias Neto
Antonio, I get it with cron? -- 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 Groups "

Re: [web2py] Discussion: SQLITE for large applications

2017-03-23 Thread António Ramos
If you use the scheduler, FORGET SQLITE!! "database locked" will be your worst enemy! 2017-03-23 12:35 GMT+00:00 Áureo Dias Neto : > Friends, I run information systems and always my teachers say that sqlite > is not reliable to use as a database for production environment .. > The problem with th

[web2py] Discussion: SQLITE for large applications

2017-03-23 Thread Áureo Dias Neto
Friends, I run information systems and always my teachers say that sqlite is not reliable to use as a database for production environment .. The problem with this statement is that they can not give me a good argument to support this idea, and also, I've done several tests with a few thousand re

[web2py] Re: request.folder

2017-03-23 Thread Oliver Holmes
I know I can work around a lot of issues. I just thought it might interest anyone, that the documentation is at least incomplete. Plus after a recent update of my system (not my source code, just the libs and debian itself), relative paths did not work (for os.path.exists at least). Otherwise I

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

2017-03-23 Thread Scott Hunter
I'd be very interested to see how you manage the Checkout form within the web2py framework. - Scott On Thursday, March 23, 2017 at 4:11:02 AM UTC-4, Mathieu Clabaut wrote: > > I have a working stripe integration in web2py which is closely based to > what the gluon/contrib/stripe.py provides. >

Re: [web2py] Re: ProgrammingError: column "worker_stats__tmp" is of type json but expression is of type text

2017-03-23 Thread António Ramos
Solved. I asked for help from Webfaction and those guys just know a "litle" about web2y... Thanks 2017-03-23 8:38 GMT+00:00 Niphlod : > you didn't let migration happen after dropping both the .table files and > the underlying tables on the database. > > > On Wednesday, March 22, 2017 at 6:20:12

[web2py] REGULAR TASK EVERY DAY

2017-03-23 Thread Áureo Dias Neto
Hello guy's, i have a function in controller thats calcule values of all the database everytime an user access the index page.. but now, i want to run this in server side, every hour or day.. how to do it? use schedular or cron? -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] web2py using "foreign" form

2017-03-23 Thread Scott Hunter
Suppose I have a form whose contents are generated by a script, and I do not know what those contents are; in particular, I may not know what the fields are within that form, but I certainly have no control over them. I can specify the controller that I want that form to submit to (via the `ac

[web2py] Re: ProgrammingError: column "worker_stats__tmp" is of type json but expression is of type text

2017-03-23 Thread Niphlod
you didn't let migration happen after dropping both the .table files and the underlying tables on the database. On Wednesday, March 22, 2017 at 6:20:12 PM UTC+1, Ramos wrote: > > I had the same problem this week and did all > > > *Please drop the scheduler_worker table from the database and remo

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

2017-03-23 Thread Mathieu Clabaut
I have a working stripe integration in web2py which is closely based to what the gluon/contrib/stripe.py provides. I'll try to provide more information this evening. On Thu, Mar 23, 2017 at 2:47 AM Dave S wrote: > > > On Wednesday, March 22, 2017 at 6:42:42 PM UTC-7, Dave S wrote: > > > > On Wed