[Zope] Addendum on: Why isn't my Python script updating my properties? (code included)
Laurie Nason
lnason@bcm.tmc.edu
Thu, 21 Mar 2002 12:30:10 -0600
Have you tried inserting the name of your property sheet into the line as
so...
context.your_property_sheet_name.manage_changeProperties(NewMenuSection=REQU
EST['NewMenuSection'])
hth
Laurie
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of A M
Thomas
Sent: Thursday, March 21, 2002 12:21 PM
To: zope@zope.org
Subject: [Zope] Addendum on: Why isn't my Python script updating my
properties? (code included)
I wrote:
> In its current form (more below on that), the script
> doesn't give an error, but neither does it update any of the other
> properties.
I didn't expand on that. Basically, the manage_changeProperties are
being excuted without error, but if I try to do that with the
NewMenuSection property, for some reason I do get an error from Zope.
For that reason, the NewMenuSection line is commented out in my script,
although my e-mailer is wrapping right after the # that comments it out
in the code. The pertinent section is below:
=========== excerpt from SiteSection_edit_general ==============
# ----- NewMenuSection
# why is it failing here?
# commented out but wrapping -
context.manage_changeProperties(NewMenuSection=request['NewMenuSection'])
===================== end excerpt ============================
Many thanks,
Am Thomas
---
Virtue of the Small
http://virtueofthesmall.com
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )