Is there any way to define a simple class somewhere and call it using the 
template language to do this?
Something like how validators are made? 

On Thursday, April 20, 2017 at 12:27:29 AM UTC-7, Roberto Rosario wrote:
>
> Allowing interpreted Python code was later considered a security risk. 
> These fields now use the template language of Django (
> https://docs.djangoproject.com/en/1.10/ref/templates/language/ 
> <https://www.google.com/url?q=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.10%2Fref%2Ftemplates%2Flanguage%2F&sa=D&sntz=1&usg=AFQjCNGH5bfzqqQg_T5-xttrWYt1G7EIhg>)
>  
> and expect a comma delimited output. So the years example would now be:
>
> '1990', '1991', '1992', '1993', '1994', '1995', '1996', '1997', '1998', 
> '1999', '2000'
>
> without the brackets.
>
> The second example cannot be done as the template language doesn't support 
> range generators. This is some of the reasons switching to the Jinja2 
> template language is being considered. It is more secure than Python code, 
> is a superset of Django's template language but add many Pythonistic tags 
> line range().
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to