16 Jan
2003
16 Jan
'03
3:49 p.m.
What am I missing when importing and using methods like dollars_and_cents() in python scripts? What works for me in ZPT Tal... tal:define="pss modules/Products/PythonScripts/standard; value 47.5" tal:content="python:pss.dollars_and_cents(value)" Isn't working in PythonScripts. from Products.PythonScripts.Standard import dollars_and_cents value = 47.5 print "Value:", dollars_and_cents(value) return printed I've also tried this line in GlobalScripts\__init__.py: allow_module('Products.PythonScript.Standard') but I still can't import from Standard. Any ideas? Is this a security design decision, that TAL has access to Standard, but scripts do not, or is it just a technical import mistake I'm makeing? Thanks.