[web2py] Re: Simple question for registrations to filter bots

2014-04-03 Thread Rob Mayhue
Lately I've been taking the opposite approach. I add a field that should always be empty and use CSS to set the field to `display: none; `. When the form is submitted if that field contains a value, its probably spam. Usually a bot will POST values for all the fields that were found. -- Resour

[web2py] Re: parse_as_rest combined with accessible_query

2014-03-01 Thread Rob Mayhue
I've been looking at parse_as_rest(...) myself lately for use as a REST api for AngularJS and after studying the code in DAL I've discovered there are some undocumented features to the parse_as_rest method(...). I'm guessing they are undocumented because it is still considered as experimental an

[web2py] Re: iframe without iframe

2014-01-13 Thread Rob Mayhue
Have a look at jQuery.load() http://api.jquery.com/load/ You should be able to do something like $( '#element').load( "//web2py/a/f/c/view.html" ); On Sunday, January 12, 2014 6:30:40 PM UTC-5, Kenneth wrote: > > Hello, > > is there a way of integration data from an web2py site into an other

[web2py] Re: Crash on SQLFORM submission

2014-01-13 Thread Rob Mayhue
Have a look at the request vars on the ticket page and see what was actually submitted. That might provide you a clue. On Monday, January 13, 2014 1:10:43 PM UTC-5, Neil wrote: > > This doesn't seem to be the case: > >- I looked at the database, and the types match the definition in the >

Re: [web2py] syntax error in code

2014-01-09 Thread Rob Mayhue
It looks like you are missing the closing ')' on the entered.update_record line. If that doesn't fix it please include the error message that you are getting. On Thursday, January 9, 2014 6:00:52 AM UTC-5, Federico Ferraro wrote: > > form.process().accepted: > El ene 9, 2014 7:00 a.m., "kart

Re: [web2py] Re: Proposal - use the value of an environment variable as a path_prefix

2013-12-21 Thread Rob Mayhue
ith the only caveat being if `prefix_match` is set, then it overrides any `path_prefix` that happens to be set. Thoughts? @Massimo I haven't created a ticket yet as I was reworking the original idea. On Saturday, December 14, 2013 6:02:22 PM UTC-5, Rob Mayhue wrote: > > I like thi

Re: [web2py] Re: Proposal - use the value of an environment variable as a path_prefix

2013-12-14 Thread Rob Mayhue
for > example have URLs of the form http://domain.com/web2py/app/.... > > > On Saturday, 14 December 2013 15:07:02 UTC-6, Rob Mayhue wrote: >> >> Proposal - use the value of an environment variable as a path_prefix >> >> When using the parametric router there is a

[web2py] Proposal - use the value of an environment variable as a path_prefix

2013-12-14 Thread Rob Mayhue
Proposal - use the value of an environment variable as a path_prefix When using the parametric router there is an option called `path_prefix` that's described as "a path fragment that is prefixed to all outgoing URLs and stripped from all incoming URLs". I'm not sure what the original use case

[web2py] Re: Session variables disappearing

2013-05-26 Thread Rob Mayhue
> You say your app users were logged in but after a given time the > _load_settings function stopped working (stopped storing data)? > The _load_settings() function is only called once, right after the user logs in using auth.settings.login_onaccept.append(). The idea was to store certain r

[web2py] Re: Session variables disappearing

2013-05-25 Thread Rob Mayhue
Its been a few days so I'm just giving this a bump... Does anyone have any insight as to what could be happening to the session variables? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving

[web2py] Session variables disappearing

2013-05-21 Thread Rob Mayhue
Hi everyone, Long time lurker... first question I've had to ask. I usually find answers here without having to ask. I'm having a problem with session variables I've added when a user logs in disappearing after a while and throwing exceptions when attempting to access them later on and I'm tryi