Hotfix for MARKMIN(T()) is bellow.
gluon/html.py +empty string in 1st line of MARKMIN constructor. But no idea what is broken with such stupid fix (py3,..) class MARKMIN(XmlComponent): """ For documentation: http://web2py.com/examples/static/markmin.html """ def __init__(self, text, extra=None, allowed=None, sep='p', url=None, environment=None, latex='google', autolinks='default', protolinks='default', class_prefix='', id_prefix='markmin_', **kwargs): self.text = to_bytes(text + '') # hotfix 2.13.5: + '' Dne čtvrtek 17. srpna 2017 15:44:07 UTC+2 Mirek Zvolský napsal(a): > > For me today, with 2.15.3: > > 1) > I had no file applications/admin/private/hosts.deny -> when manually > created (empty file), admin works. > > 2) > This doesn't work for me in templates (was Ok in version from 2016): > {{=MARKMIN(T("**something bold** something more"))}} > This works: > {{=T("**something** something")}} > Error for the 1st case is > File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted > exec(ccode, environment) > File "<string>", line 113, in <module> > File "/home/www-data/web2py/gluon/html.py", line 2791, in __init__ > self.text = to_bytes(text) > File "/home/www-data/web2py/gluon/_compat.py", line 68, in to_bytes > raise TypeError('Expected bytes') > TypeError: Expected bytes > -- 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.