Python scripts raise attributeerror after customization

Bug #341132 reported by morphex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Low
Unassigned

Bug Description

This is on Plone 3.2.1. When customizing a python script (and not editing it after pressing customize), I get a following traceback

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
  Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
  Module Products.PageTemplates.PageTemplate, line 89, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 891, in do_useMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 957, in do_defineSlot
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 861, in do_defineMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 957, in do_defineSlot
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 534, in do_optTag_tal
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 949, in do_defineSlot
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 855, in do_condition
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: /plone/netaxept_fulfill_transaction
   - Line 15, Column 1
   - Expression: <PathExpr standard:u'here/netaxept_confirmation'>
   - Names:
      {'container': <PloneSite at /plone>,
       'context': <NetaxeptSetup at /plone/gaver>,
       'default': <object object at 0xb7cfb528>,
       'here': <NetaxeptSetup at /plone/gaver>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xb2e2ebac>,
       'request': <HTTPRequest, URL=http://lions.nidelven-it.no/gaver/netaxept_fulfill_transaction>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /plone/netaxept_fulfill_transaction used for /plone/gaver>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 161, in _eval
  Module Products.PageTemplates.Expressions, line 111, in render
  Module Products.PageTemplates.ZRPythonExpr, line 79, in call_with_ns
  Module Shared.DC.Scripts.Bindings, line 327, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 312, in _exec
AttributeError: _v_ft

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [Bug 341132] [NEW] Python scripts raise attributeerror after customization
Download full text (5.2 KiB)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

morphex wrote:
> Public bug reported:
>
> This is on Plone 3.2.1. When customizing a python script (and not
> editing it after pressing customize), I get a following traceback
>
> Traceback (innermost last):
> Module ZPublisher.Publish, line 119, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 42, in call_object
> Module Shared.DC.Scripts.Bindings, line 313, in __call__
> Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> Module Products.PageTemplates.PageTemplate, line 89, in pt_render
> Module zope.pagetemplate.pagetemplate, line 117, in pt_render
> Module zope.tal.talinterpreter, line 271, in __call__
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 891, in do_useMacro
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 536, in do_optTag_tal
> Module zope.tal.talinterpreter, line 521, in do_optTag
> Module zope.tal.talinterpreter, line 516, in no_tag
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 957, in do_defineSlot
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 536, in do_optTag_tal
> Module zope.tal.talinterpreter, line 521, in do_optTag
> Module zope.tal.talinterpreter, line 516, in no_tag
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 861, in do_defineMacro
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 957, in do_defineSlot
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 536, in do_optTag_tal
> Module zope.tal.talinterpreter, line 521, in do_optTag
> Module zope.tal.talinterpreter, line 516, in no_tag
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 534, in do_optTag_tal
> Module zope.tal.talinterpreter, line 516, in no_tag
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 949, in do_defineSlot
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 855, in do_condition
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 536, in do_optTag_tal
> Module zope.tal.talinterpreter, line 521, in do_optTag
> Module zope.tal.talinterpreter, line 516, in no_tag
> Module zope.tal.talinterpreter, line 346, in interpret
> Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
> Module zope.tales.tales, line 696, in evaluate
> - URL: /plone/netaxept_fulfill_transaction
> - Line 15, Column 1
> - Expression: <PathExpr standard:u'here/netaxept_confirmation'>
> - Names:
> {'container': <PloneSite at /plone>,
> 'context': <NetaxeptSetup at /plone/gaver>,
> 'default': <object object ...

Read more...

Changed in zope2:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.