On Sat, Mar 28, 2009 at 01:02:58PM +0100, Jakob Schou Jensen wrote:
> Hi Paul,
> 
> Doing a
> 
>    some_image._p_changed = 1
> 
> gives me an error:
> 
>    "_p_changed" is an invalid attribute name because it starts with "_".
> 
> Do you know what I am doing wrong?

Ah, I didn't realize you are doing this in "untrusted" code.
http://docs.zope.org/zope2/zope2book/source/ScriptingZope.html#script-security

Another approach would be to just change any (small) attribute of the
object.  Something like: some_image.title = some_image.title


-- 

Paul Winkler
http://www.slinkp.com
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to