What dos the second parameter of manage_addPropertySheet means?
I found this: manage_addPropertySheet(id, ns) What does 'ns' means?! Thanks in advance, Rares
From: "Rares Vernica" <verni0@hotmail.com>
manage_addPropertySheet(id, ns) What does 'ns' means?!
Namespace. Although I'm not 100% sure what it actually does at the moment. :-) You don't need it for normal use, though.
At 13:40 2002-12-09 +0100, Lennart Regebro said:
From: "Rares Vernica" <verni0@hotmail.com>
manage_addPropertySheet(id, ns) What does 'ns' means?!
Namespace. Although I'm not 100% sure what it actually does at the moment. :-) You don't need it for normal use, though.
Correct. It's the xml_namespace of the propertysheet. For example the webdav propertysheet (usually hidden from mortal users ;-) has the name space {'xmlns': 'DAV:'}, it would be the equivalent to pass ns='DAV:' to manage_addPropertySheet. I don't know what it's use for or if it's used at all except from WebDAV (if even that, can't find any code that call xml_namespace on propertysheets). Regards, Johan Carlsson Tips. Read the source, Luck ;-) -- Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se
From: "Rares Vernica" <verni0@hotmail.com>
manage_addPropertySheet(id, ns) What does 'ns' means?!
Namespace. Although I'm not 100% sure what it actually does at the moment. :-) You don't need it for normal use, though.
Correct. It's the xml_namespace of the propertysheet.
For example the webdav propertysheet (usually hidden from mortal users ;-) has the name space {'xmlns': 'DAV:'}, it would be the equivalent to pass ns='DAV:' to manage_addPropertySheet.
I don't know what it's use for or if it's used at all except from WebDAV (if even that, can't find any code that call xml_namespace on propertysheets).
It is mostly for the benefit of DAV tools, which may set arbitrary namespace-based properties on resources. In practice, relatively few DAV-aware tools do this though. :( Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
At 09:24 2002-12-09 -0500, Brian Lloyd said:
It is mostly for the benefit of DAV tools, which may set arbitrary namespace-based properties on resources. In practice, relatively few DAV-aware tools do this though. :(
I know. It's a shame. I can't find the property setter method. Which one is used? _updateProperty, manage_editProperties, manage_changeProperties? The call is probably implemented some where else I guess? Regards, Johan Carlsson -- Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se
It is mostly for the benefit of DAV tools, which may set arbitrary namespace-based properties on resources. In practice, relatively few DAV-aware tools do this though. :(
I know. It's a shame.
I can't find the property setter method. Which one is used?
_updateProperty, manage_editProperties, manage_changeProperties?
The call is probably implemented some where else I guess?
Regards, Johan Carlsson
The web-scriptable wrappers (manage_*) are defined in OFS.PropertyManager. The docstrings describe the usage. Generally you will want to use manage_changeProperties. Brian Lloyd brian@zope.com V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com
participants (4)
-
Brian Lloyd -
Johan Carlsson [EasyPublisher] -
Lennart Regebro -
Rares Vernica