Re: [web2py] Re: Using validate_and_insert with a computed field

2017-04-18 Thread Christopher L
Thanks for the info Anthony! I'll try one of those approaches. Why is validation run before compute? On Apr 18, 2017 2:50 PM, "Anthony" wrote: You should not set "requires" on a computed field -- when you use validate_and_insert, the validation will be run before the computed value is generated

Re: [web2py] Re: Using validate_and_insert with a computed field

2017-04-18 Thread Christopher L
Hi Alfonso, I think the original reason was that sometimes I would end up with a computed field without a value. Inserts should automatically compute rows, but for some reason that wasn't happening here. On Apr 18, 2017 8:04 AM, "Alfonso Serra" wrote: Hi Chris, why do you use requires IS_NOT_EM

Re: [web2py] Re: How to include session data in error tickets

2015-09-30 Thread Christopher L
Interesting - that's what I was worried about. Does anyone know how web2py decides when to include useful info/when it's able to? On Wed, Sep 30, 2015 at 4:25 PM, Dave S wrote: > > > On Wednesday, September 30, 2015 at 8:31:47 AM UTC-7, Chris wrote: >> >> Hi Stifan, >> >> Yes, that's exactly the

Re: [web2py] Re: How to include session data in error tickets

2015-09-30 Thread Christopher L
Hi Stifan, Yes, that's exactly the part I used to see (locals, request, session, response) that I'm not seeing anymore! Very odd. Here's what the ticket looks like to me: http://imgur.com/kowN8eg Thanks! -C On Tue, Sep 29, 2015 at 7:57 PM, 黄祥 wrote: > not sure, i got about your question, if

Re: [web2py] Re: How to add CSS classes to auth.login custom?

2014-04-18 Thread Christopher L
I'll leave this to someone who's played with it more recently, since it's been maybe a year since I looked... On Fri, Apr 18, 2014 at 4:55 PM, Anthony wrote: > It's been a long time since I was working on this, but it seems that in >> general, the web2py form shortcuts only go partway. If you a

Re: [web2py] Re: How to add CSS classes to auth.login custom?

2014-04-18 Thread Christopher L
Indeed, that answers my question. It's been a long time since I was working on this, but it seems that in general, the web2py form shortcuts only go partway. If you are doing one of the things they support, everything works great, but once you go past that, you can't really "break out" and continu

Re: [web2py] Re: How to add CSS classes to auth.login custom?

2014-04-18 Thread Christopher L
That could work. Seems a bit uncouth, not to mention if jQuery isn't loaded that class wouldn't be added, and also that this would attach that class to every form on the page. I could hack around those things but it would be just that - a hack - and I'd prefer to do things in a robust manner. On