[web2py] Re: how to store values into args or vars from loop

2014-12-31 Thread Dave S
On Wednesday, December 31, 2014 11:21:53 AM UTC-8, Alex Glaros wrote: > > Thanks Dave, works great. > > Glad to help ... and it helps me by reinforcing the lessons I've learned. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Re: Content Security Policy (CSP) settings and calender.js

2014-12-31 Thread Dave S
On Wednesday, December 31, 2014 12:39:44 AM UTC-8, Niphlod wrote: > > Everyone can...the question is, did anybody try before looking into > pre-baked solutions or any app MUST come from a general cut&paste of the > internet :-P ? This carries a different widget that is compatible with bs3 > ht

[web2py] Re: Validator for Unix path

2014-12-31 Thread Tito Garrido
I could figure out :) *import osclass IS_PATH(object):def __init__(self, error_message='use a valid unix path'):self.error_message = error_messagedef __call__(self, value):try:if not os.path.isabs(value):raise Exception("Invalid Path"

[web2py] Validator for Unix path

2014-12-31 Thread Tito Garrido
Hi Folks! Anybody has built a custom validator for unix paths? I need to validate if a path is valid even if the directory/file doesn't exist. Thanks! Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ -- Resources: - http://web2py.com - h

[web2py] 2.9.11 migration from 2.9.5

2014-12-31 Thread lucas
hey one and all, i am migrating from 2.9.5 to 2.9.11 onto a new centos 6.5 server. i haven't installed any apps yet, but going to admin does return: Not Found The requested URL /admin/default was not found on this server. -- Apache/2.2.15 (CentOS) Server at mydomain.

[web2py] Re: how to store values into args or vars from loop

2014-12-31 Thread Alex Glaros
Thanks Dave, works great. syntax for my specific functions: arglist=[] for row in suggestionAgencyRows: ## suggestionAgencyRows is query result arglist.append(row.suggestion_to_agency.superObjectID) vardict = dict() for row in suggestionAgencyRows: vardict[row] = row.suggestion_to_age

Re: [web2py] Re: Changing delimiters not working

2014-12-31 Thread António Ramos
Ops i missed it . Thank u Em 31/12/2014 15:55, "Cássio Botaro" escreveu: > inside layout.html we have {{include 'web2py_ajax.html'}}. > > you have to do the same in this file. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py

[web2py] Re: Changing delimiters not working

2014-12-31 Thread Cássio Botaro
inside layout.html we have {{include 'web2py_ajax.html'}}. you have to do the same in this file. -- 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 rec

Re: [web2py] Re: Changing delimiters not working

2014-12-31 Thread António Ramos
find and replace in my layout.html from {{}} to for ex {% %} does not work! i get this {{ response.files.insert(0,URL('static','js/jquery.js')) response.files.insert(1,URL('static','css/calendar.css')) response.files.insert(2,URL('static','js/calendar.js')) response.files.insert(3,URL('static',

Re: [web2py] Re: Changing delimiters not working

2014-12-31 Thread António Ramos
Im trying to use polymer inside web2py Polymer so far does not allow to change the delimiters so i have to change web2py's delimiters. I will find and replace as Anthony said. Thank you 2014-12-31 13:32 GMT+00:00 Cássio Botaro : > Explain more about your problem. >> > Maybe change delimite

[web2py] Re: Changing delimiters not working

2014-12-31 Thread Cássio Botaro
> > Explain more about your problem. > Maybe change delimiters is not the right choice. -- 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 thi

Re: [web2py] Re: Changing delimiters not working

2014-12-31 Thread Anthony
On Wednesday, December 31, 2014 6:54:44 AM UTC-5, Ramos wrote: > > This way i have to change all my layout to the new delimiter. > > Is there any better way? > Can't you just do a find-and-replace? It's just a one-time operation. Anthony -- Resources: - http://web2py.com - http://web2py.com/bo

Re: [web2py] Re: Changing delimiters not working

2014-12-31 Thread António Ramos
This way i have to change all my layout to the new delimiter. Is there any better way? 2014-12-31 11:33 GMT+00:00 Cássio Botaro : > If you change delimiters at controller, when you extend layout, extend >> html should have the same delimiter. >> > example: > {%='auth' in globals() and auth.navb

[web2py] Re: Changing delimiters not working

2014-12-31 Thread Cássio Botaro
> > If you change delimiters at controller, when you extend layout, extend > html should have the same delimiter. > example: {%='auth' in globals() and auth.navbar(mode="dropdown") or ''%} just change in layout.html and it works! -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Changing delimiters not working

2014-12-31 Thread António Ramos
hello i have this in my controller response.delimiters = ('{%', '%}') and in my view {% extend 'layout.html' %} but this way all i get is this mess in my browser {{ response.files.insert(0,URL('static','css/web2py.css')) response.files.insert(1,URL('static','css/bootstrap.min.css')) respon

[web2py] Re: Content Security Policy (CSP) settings and calender.js

2014-12-31 Thread Niphlod
> >> > Is there a lesser setting that allows eval without allowing too much of > other "threats"? Could changing to that setting > be justified to management (aside from the IE defense: "The normal user > has a working visit if we do it that way"). > > no, there isn't. either you allow eval

[web2py] Re: how to store values into args or vars from loop

2014-12-31 Thread Dave S
On Tuesday, December 30, 2014 2:58:59 PM UTC-8, Alex Glaros wrote: > > for the var list, I get an "invalid syntax" error with an arrow under the > "=" sign > > are parenthesis symbols supposed to be used instead of brackets? > > the arg list works well > I'm not sure what problem you're having