[web2py] Philosophical help with REST

2014-08-29 Thread Joe Barnhart
I'm using the restful pattern with my web2py app today, and I find it to be a very powerful concept. I think I'm having a conceptual difficulty, tho, with the different levels at which web2py helpers operate to make my life easier. In one specific case, I have a swimmer record that, along with

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-29 Thread Joe Barnhart
7;t know which is more "correct" but it does mean I need to change my code in numerous places to accommodate the change in usage. -- Joe On Saturday, August 9, 2014 12:13:38 AM UTC-7, Massimo Di Pierro wrote: > > Bootstrap 3 is in trunk now. Please help us test it. > Also h

[web2py] Re: Philosophical help with REST

2014-09-01 Thread Joe Barnhart
at "purer" rest (or even HATEOAS <http://en.wikipedia.org/wiki/HATEOAS>)? If I'm using this to make a table, it has the advantage of allowing each club to be a link that shows you all of the club's data. But it seem harder on the javascript side to build or fill in t

[web2py] Re: web2py 2.9.6 is out!

2014-09-02 Thread Joe Barnhart
So does LIKE default to case-sensitive now? Will it stay that way? https://code.google.com/p/web2py/issues/detail?id=1973 -- Joe On Monday, September 1, 2014 7:08:25 PM UTC-7, Massimo Di Pierro wrote: > > This is a much improved revision. Lots of the changes are internal > re

[web2py] Version 2.9.6 indeed breaks backward compat for some users

2014-09-03 Thread Joe Barnhart
soapbox = True Version 2.9.6 does indeed make LIKE case-sensitive -- at least for Postgres and perhaps other databases. The change is that case sensitivity now mimics the underlying database that you are using at the moment. So if you're a MySql user you'll probably keep case-insensitive as y

[web2py] Re: web2py list of dictionaries

2014-09-03 Thread Joe Barnhart
Or, you could just move the line "d = {}" into the first "while" block. That will get you a new dictionary object for each pass. -- Joe On Wednesday, September 3, 2014 4:45:40 AM UTC-7, trr wrote: > > In controller I create a list of dictionaries from an uploaded exce

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-05 Thread Joe Barnhart
me databases which were not forced by web2py? Is that why the devs changed it? If there is some deep underlying flaw in the previous release of web2py, please tell me so I can feel better about this! -- Joe On Thursday, September 4, 2014 11:05:39 PM UTC-7, Massimo Di Pierro wrote: >

[web2py] Re: web2py list of dictionaries

2014-09-05 Thread Joe Barnhart
ave a second variable "J" point to him too. They're all pointing to exactly the same dictionary David. Anything David picks up or drops is the same everywhere. You just added David to the same list a bunch of times. On Thursday, September 4, 2014 10:03:35 PM UTC-7, trr wrote:

[web2py] "validate_and_insert" my new best friend

2014-09-06 Thread Joe Barnhart
unno if it is marginally faster or slower than me doing it by hand, but I can tell you its a whole lot more maintainable, and that is the real winner long term. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: a proposal for form improvement

2014-09-08 Thread Joe Barnhart
from server-side to client-side forms. -- Joe On Thursday, September 4, 2014 10:56:23 PM UTC-7, Massimo Di Pierro wrote: > > Please find attached a welcome4.zip with contains the following files: > > controllers/default.py > views/layout.html > vides/default/index.html

[web2py] IS_INT_IN_RANGE() weirdness

2014-09-09 Thread Joe Barnhart
ll fail every time, for all time. Because '1' satisfies the lower limit (min <= val) bur it fails the high limit (value < max). Not a problem if you're looking for it, just seems a weird definition... -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Strange but useful THEAD trick!

2014-09-10 Thread Joe Barnhart
ttern works perfectly to wrap its members in TH instead of TD: THEAD( [ ('head1', 'head2', etc...) ] ) So if I create a TUPLE (not a list), wrap it in a LIST, and then hand it to THEAD, it creates TH elements inside the THEAD. Every other construction I've tried retu

[web2py] Re: "validate_and_insert" my new best friend

2014-09-10 Thread Joe Barnhart
osen represents fields in strange ways, like the example I gave of dates having 8 digits and no separators. In this case the validator is really helpful to parse the date format for me on the fly. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: Strange but useful THEAD trick!

2014-09-10 Thread Joe Barnhart
I dunno. If a bug turns out to be useful, does that make it a feature? On Wednesday, September 10, 2014 12:54:11 AM UTC-7, Cliff Kachinske wrote: > > Are you sure that's a feature and not a bug? > > On Wednesday, September 10, 2014 3:32:24 AM UTC-4, Joe Barnhart wrote: >

[web2py] Re: Strange but useful THEAD trick!

2014-09-10 Thread Joe Barnhart
side a list: > > print THEAD([['a', 'b']]) > > ab > > > Anthony > > On Wednesday, September 10, 2014 3:32:24 AM UTC-4, Joe Barnhart wrote: >> >> I often use the web2py helpers to build my tables on the fly. I've >> always thought it

[web2py] Re: web2py meetup Bay Area

2014-09-10 Thread Joe Barnhart
I'm in! I live in Santa Clara, or as most people know it ... Silicon Valley! On Wednesday, September 10, 2014 12:12:14 PM UTC-7, weheh wrote: > > I've moved back to the Bay Area and was surprised to find there is no > web2py meetup group. Massimo, how did your web2py meetup in San Fran go > ma

[web2py] Re: Strange but useful THEAD trick!

2014-09-10 Thread Joe Barnhart
x27;Term')]) But (no surprise) these do not: head = THEAD(['Date','Name','Amount','Term']) # need another wrapper of list head = THEAD([[('Date','Name','Amount','Term')]]) # too many wrappers So y

[web2py] Re: Version 2.9.6 indeed breaks backward compat for some users

2014-09-11 Thread Joe Barnhart
Just set case_sensitive=False and it will work exactly the way you want regardless of the convention chosen. I now set the case on my queries since it seems prudent to do so. After all, I may change from Postgres to MySql or something and I don't want to be surprised. -- Joe On Thu

[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-10 Thread Joe Barnhart
I'll be there with bells on. I also offered to drive Massimo to the event as he usually camps out on the peninsula and doesn't rent a car. -- Joe P.S. I don't have an official presentation but I can show a bit about the commercial web site I'm developing using web2py. -

[web2py] Why all traffic forwarded to https and how to stop this ?

2014-11-19 Thread joe black :)
Hi, Just deployed a new web2py using deployment script on Ubuntu.* Problem is all the traffic is forwarded to https. giving certificate error to users.* It was not like this before. How to stop this automatic forward to https? Also where is the routes.py . Is it depreciated ? Then how to achie

[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-21 Thread Joe Barnhart
Has anyone notified the BayPiggies list of our event? Should we? -- Joe On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: > > Hi Bay Area web2py'ers. Get excited! > > *Massimo will attend our very own Bay Area* *web2py meetup* to meet, > greet and present.

[web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2015-03-03 Thread Joe Barnhart
By strange coincidence, I got the same error tonight, using web2py v.2.9.12-stable on the latest version of pypy (python written in python). In my case, I'm pretty sure it is a file handle leak caused by my code which handles scheduled insertion of files into the database. If pypy were dramat

[web2py] Weird problems with scheduler on OSX

2015-03-06 Thread Joe Barnhart
problem. (I will miss mercurial, tho.) Any quick suggestions? I'd love to use multiple cores on my website if possible... -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/iss

[web2py] OT: I'm stunned how bad MySql is after using Postgres

2015-03-06 Thread Joe Barnhart
popular choice instead of MySql! (Apologies in advance to any MySql partisans. I'm sure you are highly offended by my dismissal of your One Chosen Database, but I have to call it as I see it.) -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Weird problems with scheduler on OSX

2015-03-06 Thread Joe Barnhart
any current or previous version of web2py. Honestly I don't know how I got anything done before mercurial! -- Joe On Friday, March 6, 2015 at 12:05:25 PM UTC-8, Niphlod wrote: > > add yourself to the bandwagon and help us see what's going wrong > https://github.com/web2p

[web2py] Re: OT: I'm stunned how bad MySql is after using Postgres

2015-03-06 Thread Joe Barnhart
Hi Jim -- Since I'm just starting with MySql, I'm using the latest and greatest 5.6. The newer 5.7 is still "testing" so I have not tried it. My site needs to be on official versions of stuff. On Friday, March 6, 2015 at 2:15:43 PM UTC-8, Jim S wrote: > > What version of MySQL? We had simila

[web2py] Re: OT: I'm stunned how bad MySql is after using Postgres

2015-03-06 Thread Joe Barnhart
MySql. It just goes to demonstrate how it's not always the best product that wins the popularity contest. (But then, as a voter in elections here, I'm used to that... ) -- Joe On Friday, March 6, 2015 at 2:47:01 PM UTC-8, Niphlod wrote: > > BTW, you just joined two groups I&#x

[web2py] Re: Weird problems with scheduler on OSX

2015-03-06 Thread Joe Barnhart
Hi Jack -- I found that post and checked, but my web2py (v.2.9.12-stable) did not use urllib to begin with. Too bad, I thought I'd found a workaround! Now I'll have to do some heavy lifting and help Niphlod find the problem... -- Joe On Friday, March 6, 2015 at 6:12:30 PM UTC-8,

[web2py] Re: OT: I'm stunned how bad MySql is after using Postgres

2015-03-06 Thread Joe Barnhart
Hi Jim -- Please, whatever you do, DO NOT ever try Postgres! You will be ruined for MySql... :-P -- Joe On Friday, March 6, 2015 at 3:00:22 PM UTC-8, Jim S wrote: > > Shoot, I was hoping that information would help you out. Certainly made > drastic improvements in my case.

[web2py] Re: IMPORTANT - DROPPING SUPPORT FOR PYTHON 2.5?

2015-03-07 Thread Joe Barnhart
th my site. -- Joe On Saturday, March 7, 2015 at 1:01:50 PM UTC-8, Ron Chatterjee wrote: > > I use the source code version. So it doesn't really matter for me. > > On Saturday, March 7, 2015 at 2:18:17 PM UTC-5, Massimo Di Pierro wrote: >> >> Who is opposed? Why? &

[web2py] Web2py: Using images in HTML data

2015-04-16 Thread Joe Magaro
Hello, I have an application that uses a rich textbox to insert images into a field saved in a table. So for the image URL, I would have to put "/MySiteName/static/images/image.gif" as an example, then save to the database. I really don't like hardcoding the site name, if I copy the project t

[web2py] Cant install via git repo

2015-04-16 Thread Joe Magaro
Hi, on my web2py install I tried to install some applications via a git repo. I have tried several but keep receiving the error below. Any idea what is causing this? Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted exec ccode in

[web2py] Re: Web2py: Using images in HTML data

2015-04-17 Thread Joe Magaro
Thanks Annet: I am aware of web2py URL helpers. I use them inside of my views. However in this case, they wont work for me as the data is stored in a table and output to a web page, I require another method. On Friday, April 17, 2015 at 3:01:17 AM UTC-4, Annet wrote: > > Hi Joe, >

[web2py] Re: Web2py: Using images in HTML data

2015-04-18 Thread Joe Magaro
Does anyone have a method for this? On Friday, April 17, 2015 at 9:14:59 AM UTC-4, Joe Magaro wrote: > > Thanks Annet: I am aware of web2py URL helpers. I use them inside of my > views. > > However in this case, they wont work for me as the data is stored in a > table and ou

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2017-02-10 Thread Joe Barnhart
my own site to get social auth working, or course. Anyway, happy to get any tips you may share. I think I've gotten social-auth-core loaded on my mac so it should all be clear sailing now... heh heh... -- Joe On Wednesday, January 11, 2017 at 2:27:59 PM UTC-8, Donald McClymont

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2017-02-12 Thread Joe Barnhart
ay for "business" class internet service to get a static IP and better SLA. I can just deploy to it and make sure it's reachable thru DNS and I'm golden. Joe On Saturday, February 11, 2017 at 9:35:53 AM UTC-8, Donald McClymont wrote: > > Hi Joe > > The repo is

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2017-02-16 Thread Joe Barnhart
oogleusercontent.com/-wfp7IjUMZCI/WKZcsa2KECI/AnM/E2QugZa2ytc6QAi60ylxnpm9Jy5iszp5gCLcB/s1600/Login.tiff> What are your thoughts? -- Joe On Saturday, February 11, 2017 at 9:35:53 AM UTC-8, Donald McClymont wrote: > > Hi Joe > > The repo is a minimum Web2py app with most of

[web2py] Re: plugins

2017-02-19 Thread Joe Barnhart
One would think a wiki might be useful to collect plugin information ;-) Joe On Friday, March 11, 2011 at 6:48:26 AM UTC-8, Massimo Di Pierro wrote: > > I did a very poor job at keeping track of community created plugins. > > If you are aware of a plugin for web2py that is n

[web2py] What is the path for the file where I can edit SQLFORM.grid.

2017-03-20 Thread Joe Dunst
I need to put some jQuery on the source file of the SQL.grid so I can have an autocomplete feature in the search bar of tthe grid. If somebody could provide me with the code for this, it will be deeply appreciated. I tried searching the net like Whoosh, web2py apps, stackoverflow, web2py slices;

[web2py] UnboundLocalError: local variable 'books' referenced before assignment

2017-03-20 Thread Joe Dunst
I'm trying to make a "vote up" and "vote down" feature in my program, like the one in reddit.com. But I've been receiving tickets from 2 different errors. (I solved the first one but I want to First, I received a "UnboundLocalError: local variable 'books' referenced before assignment" This was

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

2017-03-23 Thread Joe Barnhart
ng it before the stripe.py contrib, so I haven't used the contrib library very much. I'll look over the question here and post later when I have a minute. --- Joe B. On Tuesday, March 21, 2017 at 8:19:21 PM UTC-7, Scott Hunter wrote: > > Has anyone been able to use Stripe's Ch

[web2py] Customizing Fields the lazy way

2017-03-23 Thread Joe Barnhart
t;,"string",length=20,label=T("Cell phone"),**phone_fld), Now the field is created exactly as I want. I keep a list of these "helpers" in a module which I can call out when creating tables. It really saves the typing and allow me to control how my fields are rendere

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

2017-03-23 Thread Joe Barnhart
able creation in modules. If that isn't enough, I'll worry about that when I have a problem. Swim downstream. It's the only way! -- Joe On Monday, March 13, 2017 at 11:03:46 AM UTC-7, Richard wrote: > > Hello, > > I am analysing my app and found that many tables tha

[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

[web2py] Re: Customizing Fields the lazy way

2017-03-26 Thread Joe Barnhart
That's kinda clever. I may think of that! -- Joe On Thursday, March 23, 2017 at 4:19:05 PM UTC-7, Anthony wrote: > > Note, you might as well also add 'type': 'string' to your dictionary, and > maybe 'length': 20. You can also give yourself some fl

[web2py] Forms with readonly fields

2017-03-31 Thread Joe Barnhart
On this view the expire date, the season, the age, and the US Swim ID are all non-editable fields. But the season is an example of an option list which causes the form processing to throw an error and fail. Just looking for some ideas. Joe <https://lh3.googleusercontent.com/-BqVuGZtmcZ

[web2py] Re: Forms with readonly fields

2017-03-31 Thread Joe Barnhart
urning, so when the > form is processed, those fields will not be included in the database write. > > Anthony > > On Friday, March 31, 2017 at 5:25:59 AM UTC-4, Joe Barnhart wrote: >> >> I'm going a little nuts with forms that have readonly fields. Examples >>

[web2py] Re: Forms with readonly fields

2017-03-31 Thread Joe Barnhart
and the check fails. The above solution is working very well! -- Joe On Friday, March 31, 2017 at 8:49:51 AM UTC-7, Anthony wrote: > > We should probably make what you are doing a built-in option (maybe even > the default), but for now, you can try something like this: >

[web2py] "Show_if" and Field Validation

2017-04-06 Thread Joe Barnhart
or if it should fail validation! This might be as simple as emptying out the "requires" attribute if the "show_if" causes the field to be visible. But I don't change core code -- I don't want the hassle of departing from the stock distro of web2py. Other ideas?

[web2py] Re: "Show_if" and Field Validation

2017-04-10 Thread Joe Barnhart
nd: retval,reterr = ea(value) if reterr is not None: break return (retval, reterr) Not as general case as I'd like. Mostly because I see no graceful way to automatically generate the IS_EXPR() from the argument supplied to show_if. I

[web2py] Re: "Show_if" and Field Validation

2017-04-10 Thread Joe Barnhart
stuff after the fact, but that's too kludgy for even me! -- Joe On Monday, April 10, 2017 at 8:05:12 AM UTC-7, Marcelo Huerta wrote: > > Maybe creating a validation function which checks the different values and > depending on them fills the form.errors values when a validation e

[web2py] Re: "Show_if" and Field Validation

2017-04-10 Thread Joe Barnhart
a(value) if reterr is not None: break if reterr is not None: for ea in self.second: retval,reterr = ea(value) if reterr is not None: break return (retval, reterr) On Monday, April 10,

Re: [web2py] Re: Making application looks better.

2017-04-19 Thread Joe Barnhart
Something's wrong! The text came out garbled on the screen shots. I can't read a thing! ;-) On Sunday, April 16, 2017 at 11:16:27 AM UTC-7, Ramos wrote: > > My humble doc management app still in testing, with workflows... > I have email templates looking very nice > > 2017-04-16 15:37 GM

[web2py] Re: Forms with readonly fields

2017-04-23 Thread Joe Barnhart
change is definitely essential for SELECT objects. Now, it could be limited to only SELECT objects, but there is no harm in broadening it to all widgets. Warm regards, Joe On Saturday, April 1, 2017 at 12:51:55 PM UTC-7, Anthony wrote: > > On Friday, March 31, 2017 at 5:41:49 PM UTC-4

[web2py] Re: UPDATE BOOTSTRAP VERSION FROM 3 TO 4

2017-04-23 Thread Joe Barnhart
But are you sure that's the right approach? I force problems with lightweight clients (i.e. phones) doing complicated layout generation. -- Joe On Friday, April 21, 2017 at 8:19:15 AM UTC-7, Massimo Di Pierro wrote: > > Which is why I hate bootstrap and we have to move to

[web2py] Manual error regarding "hidden" fields

2017-05-08 Thread Joe Barnhart
"onvalidation" method because the accepts() logic specifically looks for fields which are in the request.vars and excludes them from the saved fields. I've been tracing thru "validate" and "accept" in FORM and SQLFORM most of the day looking for a crack in the

[web2py] Validate_and_insert fails because "id" has no value

2017-05-08 Thread Joe Barnhart
first test, but "or" requires both arguments be evaluated if the first test fails, so it goes on to the second test, which gives an exception. I'm not sure how this ever worked, but I'm sure it did at one point. Maybe there was a regression. This was done in web2py 2.14

[web2py] Re: Validate_and_insert fails because "id" has no value

2017-05-09 Thread Joe Barnhart
etting the "requires=None" for the three reference fields. -- Joe On Tuesday, May 9, 2017 at 7:34:15 AM UTC-7, Anthony wrote: > > id fields do not get any validators by default, and if they did, it > certainly would not be an IS_IN_DB validator (if anything, it would be >

[web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Joe Barnhart
who cut his teeth on cvs. -- Joe On Tuesday, May 9, 2017 at 7:35:08 AM UTC-7, Anthony wrote: > > Good point. Maybe submit a PR to the book repo. > > On Monday, May 8, 2017 at 5:07:01 PM UTC-4, Joe Barnhart wrote: >> >> In the section about SQLFORM, the description of h

[web2py] Re: Manual error regarding "hidden" fields

2017-05-10 Thread Joe Barnhart
he logic in the "validate" and "accept" functions effectively block that. So just swap the lines and the manual is back to being perfect! -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:/

[web2py] Re: Manual error regarding "hidden" fields

2017-05-10 Thread Joe Barnhart
"Invalidate".was supposed to be "onvalidation" before autospell worked its wonder... -- 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 me

[web2py] Re: cpython and web2py

2017-05-18 Thread Joe Barnhart
oblem, you carefully profile the system to find out exactly where the problem lies. Then you determine the best way to fix the problem. I'll give you a peek in the back of the book -- born from 40+ years of programming experience. The problem is never where you thought it would be. -- Joe

[web2py] Error in handling long ints in gluon.serializers json()

2017-05-26 Thread Joe Barnhart
ce of 110 and it returns 110L every time. Javascript responds with "SyntaxError: No identifiers allowed directly after numeric literal" every time. Where am I going wrong? -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Error in handling long ints in gluon.serializers json()

2017-05-26 Thread Joe Barnhart
s the direct parent, it does not check up the "tree". And all of the helpers are subclasses of DIV, which itself is a subclass of XmlComponent. Just askin'... On Friday, May 26, 2017 at 12:05:25 PM UTC-7, Joe Barnhart wrote: > > I dunno how this affects me and not everyone else

[web2py] Re: cpython and web2py

2017-06-17 Thread Joe Barnhart
No. On Sunday, May 28, 2017 at 8:50:15 AM UTC-7, Ron Chatterjee wrote: > > I understand that. No one is disputing better coding better performance. > But the question is: > > Cython wrapper ( > > Default. Py > > ) > Is it possible. If so how? > > -- Resources: - http://web2py.com - http://web

[web2py] Re: cpython and web2py

2017-06-25 Thread Joe Barnhart
ngle "magic bullet" which just speeds up all web2py websites for all occasions. -- Joe On Sunday, June 18, 2017 at 3:27:19 PM UTC-7, Ron Chatterjee wrote: > > Have anyone tried this? Wondering if this is a way to gain some speed. > > > https://micropyramid.com/

[web2py] Re: cpython and web2py

2017-06-27 Thread Joe Barnhart
x27;ll be. And clever caching and other techniques can fix just about anything. -- Joe On Sunday, June 25, 2017 at 12:10:56 PM UTC-7, Ron Chatterjee wrote: > > Ok. I buy that. > > Speed is always a plus. > > Whats are the calls to run web2py with pypy? Can you share a link or a

[web2py] Re: DAL sqlite vs postgresql: Row Orders are different?

2017-07-03 Thread Joe Barnhart
join). Which table would you "default" the order-by clause to? -- Joe On Friday, June 30, 2017 at 3:53:17 PM UTC-7, lyn2py wrote: > > I ran my app on *sqlite* and things are working well, so I ported it over > to *postgresql*... however I noticed one glaring difference

[web2py] ValueError: Field is already bound to a table <-- need a fix for this

2017-07-15 Thread Joe Barnhart
essing this is the binding in the driver immediately before a query.) Why can this binding only happen once? Is it happening because I do the heavy lifting in modules instead of controllers? I often use the same tables more than once in a function, so this could be problematic (read: fatal) in my ad

[web2py] Re: Grails for web2py - anyone interested ?

2017-07-15 Thread Joe Barnhart
But Grails borrowed heavily from Rails. And you, Massimo, mentioned that Rails also provided some "inspiration" for web2py So by the commutative property of web platforms, web2py and Grails share some family similarities. -- Joe On Thursday, July 13, 2017 at 10:05:54 AM UTC-7,

[web2py] Re: Web2py like clone in Java?

2017-07-15 Thread Joe Barnhart
As long as we're adding interesting but obscure and little-used web platforms, I'd like to submit Seaside, the Smalltalk web platform. Just... well... because Smalltalk! -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-15 Thread Joe Barnhart
;ll never be able to use 2.15.1 or later versions. I'm weeks away from deploying the biggest site I've ever done. As of this second, my best short-term option is to revert to the previous version of web2py and finish. But that has severe long-term repercussions if I can't upd

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
d=False, title=H4("Editing Event Settings", _class="center”)) . . . Cloning the fields before using them in SQLFORM.factory avoids the error. -- Joe On Sunday, July 16, 2017 at 10:15:18 AM UTC-7, Leonel Câmara wrote: > > Joe can you show us some code? I&#x

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Found the issue and a workaround see below. -- 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 th

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
I think I tried your fix but it didn't work. None of my fields were "common". Massimo had pointed out the fix on Github. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
You are correct. By using the SQLFORM.factory function the table was, indeed, different. I blame the lapse on the inability of neurons to function in the 106 degree heat we're having in the Sacramento area today. -- Joe On Sunday, July 16, 2017 at 2:53:10 PM UTC-7, Anthony wrote: &g

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-16 Thread Joe Barnhart
Yes that fix looks exactly on point. -- Joe On Sunday, July 16, 2017 at 3:28:22 PM UTC-7, Leonel Câmara wrote: > > Joe the fix on the DAL wasn't for your problem, Your problem was fixed in > web2py here: > > https://github.com/web2py/web2

[web2py] Re: Sacramento-area web2py programmers?

2017-07-17 Thread Joe Barnhart
ather that indoor programming jobs would be highly preferred... -- Joe On Monday, July 17, 2017 at 8:45:36 AM UTC-7, Alex Glaros wrote: > > who else lives around Sacramento besides Joe? > > You're invited for dinner and talk some weekend at my house in Winters, CA > (near Davis

[web2py] Re: ValueError: Field is already bound to a table <-- need a fix for this

2017-07-21 Thread Joe Barnhart
Yes. I just tested with 2.15.2 and all works perfectly as expected. -- Joe On Thursday, July 20, 2017 at 2:58:08 PM UTC-7, Massimo Di Pierro wrote: > > Can you confirm all is good now with 2.15.2? > Thanks to you and Leonel for looking into this so quickly. > > On Sunday, 16 Jul

[web2py] How to use HTML escapes in Field titles

2017-07-24 Thread Joe Barnhart
t;SCM >")), elapsed_time_field("scm_le",label=T("SCM ≤")), elapsed_time_field("scy_gt",label=T("SCY >")), elapsed_time_field("scy_le",label=T("SCY ≤")), Field("nt_ok", "boolean", label

[web2py] Re: How to use HTML escapes in Field titles

2017-07-24 Thread Joe Barnhart
Ugh. Replace the word "title" with "label" everywhere. Global search and replace. -- 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 mes

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
sanitization. When it goes wrong, it goes very wrong. And you need to spend hours with the source trying to figure out where it went wrong and if there's an easy fix without modifying the distro. -- Joe -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
&xx; character escapes get printed literally in the form label instead of creating the symbol I intended. So I got around the problem with CAT(). Still, an awful amount of work and hassle to reverse-engineer and make a work around for something that just should have worked. I'm not sur

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
("scm_gt",label=XML(T("SCM %s",(">",, elapsed_time_field("scm_le",label=XML(T("SCM %s",("≤",)))), elapsed_time_field("scy_gt",label=XML(T("SCY %s",(">",, elapsed_time_field("scy_le",label=X

[web2py] Re: How to use HTML escapes in Field titles

2017-07-26 Thread Joe Barnhart
Thank you for your help, Anthony. -- Joe -- 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

[web2py] Optimize js, css seems to compute minify over and over

2015-04-30 Thread Joe Barnhart
I haven't used response.optimize_js and css very much, but I just enabled them on my test site. As I expected, it took a long time to load my page the first time (around 15 seconds) as web2py concatenated and minimized the files into the temp directory. But strangely enough, the site only work

[web2py] Interesting new Python<-->Javascript builder

2015-05-02 Thread Joe Barnhart
Saw this yesterday... https://github.com/timothycrosley/jiphy It translates Python to Javascript and Javascript to Python. I could see it as an enhancement to the {{}} functionality in web2py to help write javascript code in python syntax. C'mon, you know you already think in python -- just

[web2py] Who wants to append collections to html helpers?

2015-05-03 Thread Joe Barnhart
Here's the handiest hack I've come up with in quite awhile. This should go into a "module" so it is compiled once and added to the DIV class: from gluon.html import DIV def extend(self,coll): self._setnode(coll) ret = self.components.extend(coll) self._fixup() return ret DIV.ex

[web2py] Singletons Save Memory and Time

2015-05-05 Thread Joe Barnhart
I'm doing a lot of web2py programming lately, and much of my time is spent building helper classes that act as "factories" for high-powered web gadgets. i have a class that builds jQuery DataTables, for example, and another that builds "widgets" as defined in my templating system (each of whic

[web2py] Re: Singletons Save Memory and Time

2015-05-05 Thread Joe Barnhart
The jQuery Datatables library is very impressive. It handles sorting, filtering, displaying of data in all forms. Its really worth a look at http://datatables.net My application is very data-centric and I use a LOT of tables, so I built some datatable factory methods to help me. On Tuesday,

[web2py] Re: Singletons Save Memory and Time

2015-05-05 Thread Joe Barnhart
I don't want to cache the entire output of the function. If I do that, the cache will include the data in the table. I just want to save the object that generates the table and apply new data to it for each user / swimmer / whatever. Had I used cache.ram on this table, it would have made Na

[web2py] Re: great system login

2015-05-28 Thread Joe Barnhart
+1 On Sunday, May 24, 2015 at 5:43:34 PM UTC-7, villas wrote: > > This looks like an excellent project. > Replace Janrain? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Re: My son made a new web2py logo

2015-06-08 Thread Joe Barnhart
ecognize those whose shoulders you are standing on. Very prominently and up front. -- Joe On Thursday, June 4, 2015 at 9:53:47 AM UTC-7, Richard wrote: > > OT, I guess it why it ended... If you want information on weppy, ask > Giovanni it creator and maintener of pyDal project : >

[web2py] Re: My son made a new web2py logo

2015-06-08 Thread Joe Barnhart
+1000 On Friday, June 5, 2015 at 2:24:32 AM UTC-7, weheh wrote: > > Commendable effort! But I second the folks who don't want any logo or name > changes for the time being. Thanks. > > On Monday, June 1, 2015 at 11:06:16 AM UTC-7, Massimo Di Pierro wrote: >> >> Time to revamp the web site? >> >>

[web2py] Modifying web2py JS files -- best practices?

2015-08-05 Thread Joe Barnhart
and still keep current with its evolution? Is there an accepted "best practice" in this area? -- Joe -- 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 Issue

[web2py] Re: Grails for web2py - anyone interested ?

2015-09-23 Thread Joe Barnhart
elves. Look forward to seeing your version of web2grails! (Grails is, of course "groovy on rails" which borrows from Rails, which web2py ALSO borrows from. So. The parentage is getting pretty mixed!) -- Joe On Monday, September 21, 2015 at 12:20:11 PM UTC-7, Graham Ranson wr

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
at really sucks for a larger deployment. -- Joe On Monday, April 1, 2019 at 11:31:10 PM UTC-7, Massimo Di Pierro wrote: > > we could change True/False with 1/0 but a better approach would be to > remove the value within the redis adapter. The value of locked does not do > anything

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
YES. This seems to work fine in my case. It permits me to save both sessions and cache data to redis using Python3. Maybe we can get it accepted and blessed for the next release. Joe On Monday, September 9, 2019 at 1:03:51 PM UTC-7, rastafarien wrote: > > Hello > > I have als

Re: [web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
o create a test bench for this. If someone else has a Python2/redis site already they may be able to test it quicker. -- Joe On Monday, September 9, 2019 at 3:00:50 PM UTC-7, Jim S wrote: > > Is it backward compatible as well? > > -Jim > > On Mon, Sep 9, 2019 at 4:54 PM Joe

[web2py] Re: Redis and Python3?

2019-09-09 Thread Joe Barnhart
ROFL! I don't think it's quite ready for my prime-time cash-producing website yet. I'll definitely keep an eye on it and start playing around with it. I need to keep you from making any decisions I don't like, after all! -- Joe On Monday, September 9, 2019 at 8:48:54

<    3   4   5   6   7   8   9   >