[web2py] Re: xml() error when BEAUTIFY globals()

2017-03-24 Thread Lars
I went for something even simpler : I bypass BEAUTIFUL.. I just wanted a view with everything named : def my_beautify(component): t = TABLE() if isinstance(component, dict): for k, v in component.iteritems(): if v is None or isinstance(v, (bool, str)):

Re: [web2py] Re: xml() error when BEAUTIFY globals()

2017-03-24 Thread Richard Vézina
Thanks Anthony, clearer than my explanation. Richard On Thu, Mar 23, 2017 at 7:08 PM, Anthony wrote: > BEAUTIFY is not designed to take the entire global environment. The > problem is that globals() includes all of the web2py HTML helper classes. > Because BEAUTIFY is

[web2py] Re: xml() error when BEAUTIFY globals()

2017-03-23 Thread Anthony
BEAUTIFY is not designed to take the entire global environment. The problem is that globals() includes all of the web2py HTML helper classes. Because BEAUTIFY is itself an HTML helper, it is serialized by recursively processing its components. The serialization process checks whether a given