[Zope] Touching an object / updating the modification time
Paul Winkler
slinkp at gmail.com
Mon Mar 30 11:50:40 EDT 2009
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
More information about the Zope
mailing list