[Zope-dev] RestrictedDTMLMixin.__new__(Rtd) is not safe, use TemplateDict.__new__()
Andreas Jung
lists at zopyx.com
Wed Jan 4 13:56:29 CET 2017
I am currently porting a Zope 2.7 application to Zope 2.13.
I receive the following error while rendering some persistent ZPTs... how to deal with that?
2017-01-04 13:15:13 ERROR Zope.SiteErrorLog 1483532113.350.552179133409 http://10.162.62.85:12080/error_log/manage_main
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: manage_main
- Line 1, Column 0
- Expression: <PathExpr standard:'context/manage_page_header'>
- Names:
{'container': <SiteErrorLog at /error_log>,
'context': <SiteErrorLog at /error_log>,
'default': <object object at 0x30026b58>,
'here': <SiteErrorLog at /error_log>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x315f5dc4>,
'request': <HTTPRequest, URL=http://10.162.62.85:12080/error_log/manage_main>,
'root': <Application at >,
'template': <PageTemplateFile at /error_log/main>,
'user': <User 'aj'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 155, in _eval
Module Products.PageTemplates.Expressions, line 105, in render
Module Products.PageTemplates.ZRPythonExpr, line 67, in call_with_ns
TypeError: RestrictedDTMLMixin.__new__(Rtd) is not safe, use TemplateDict.__new__()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: OpenPGP digital signature
URL: <http://mail.zope.org/pipermail/zope-dev/attachments/20170104/248ec212/attachment.sig>
More information about the Zope-Dev
mailing list