faqts : Computers : Internet : Web Servers : Zope : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

57 of 62 people (92%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

What's the difference between manage_changeProperties and manage_editProperties?

Aug 13th, 2000 13:55
unknown unknown, Loren Stafford


Quoting from the source ../lib/python/OFS/PropertyManager.py:
    def manage_editProperties(self, REQUEST):
        """Edit object properties via the web.
        The purpose of this method is to change all property values,
        even those not listed in REQUEST; otherwise checkboxes that
        get turned off will be ignored.  Use manage_changeProperties()
        instead for most situations.
        """
    def manage_changeProperties(self, REQUEST=None, **kw):
        """Change existing object properties.
        Change object properties by passing either a mapping object
        of name:value pairs {'foo':6} or passing name=value parameters
        """