Re: [web2py] if form accepts, add variable to session throws 504 error

2015-09-28 Thread Vinicius Assef
I suppose your `session.mycli` doesn’t support the `extend()` method.

What the ticket generated by this error says?

—
Vinicius.




> On 28 Sep 2015, at 09:35, Mark Billion  wrote:
> 
> 504 Error:
> if form.accepts(request,session):
> session.mycli.extend(form.vars.id)
> redirect(URL('client_edit', vars={'cli':form.vars.id}))
> 
> No Error:
> if form.accepts(request,session):
> #session.mycli.extend(form.vars.id)
> redirect(URL('client_edit', vars={'cli':form.vars.id}))
> 
> I have used this session var previously, so I know it exists and is 
> populated.Thoughts?
> 
> -- 
> 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 
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to web2py+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] if form accepts, add variable to session throws 504 error

2015-09-28 Thread Mark Billion
504 Error:
if form.accepts(request,session):
session.mycli.extend(form.vars.id)
redirect(URL('client_edit', vars={'cli':form.vars.id}))

No Error:
if form.accepts(request,session):
#session.mycli.extend(form.vars.id)
redirect(URL('client_edit', vars={'cli':form.vars.id}))

I have used this session var previously, so I know it exists and is 
populated.Thoughts?

-- 
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 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.