[Zope] attribute-less object(assign or del)

Dieter Maurer dieter at handshake.de
Sun Dec 17 04:24:46 EST 2006


Kate Legere wrote at 2006-12-11 09:31 -0500:
>This is the full trackback:
>
>      				
>Site Error Log Site Error Log at  /error_log
>Exception traceback
>
>Time 	2006/12/11 09:26:04.451 US/Eastern
>User Name (User Id) 	klegere at kfpl.ca (klegere at kfpl.ca)
>Request URL
>http://staffnet.kfpl.ca:8080/kfplStaff/statsTracker/display/copy_of_stats_ou
>tput_branch
>Exception Type 	TypeError
>Exception Value 	attribute-less object (assign or del)
> ....
>      <PythonScript at
>/kfplStaff/statsTracker/display/copy_of_stats_output_branch>
>      Line 45
>    * Module RestrictedPython.Guards, line 96, in handler
>
>TypeError: attribute-less object (assign or del)

This gives us another two potential problem causes.

  * It is likely that you cannot change 'Record' attributes
    in restricted code (such as in 'PythonScript').

    Try in trusted code (e.g. an "ExternalMethod").

  * Maybe, you try to change not a "Record" instance
    (a single hit) but the "Result" instance (representing
    the complete result list). "Result" instances do not have
    any writable attributes.



-- 
Dieter


More information about the Zope mailing list