[Zope] What dos the second parameter of manage_addPropertySheet means?

Brian Lloyd brian@zope.com
Mon, 9 Dec 2002 09:24:39 -0500


> >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