NamespacesΒΆ
URL Namespace Implementations
URL namespaces are an extensible mechanism to provide additional
control over traversal (for example, disambiguating item
versus attribute
access) or access to an
additional set of traversable names (such as registered views
or path adapters
). This mechanism is used
for path segments that look like ++ns++name
. (It is also used for
segments like @@name
, which is a shortcut for ++view++name
.
See nsParse()
for details.)
ns
is the name of the namespace (a named, registered adapter that
implements ITraversable
) and name
is the name to traverse to in
that namespace.
The function namespaceLookup()
handles this process.
If you configure this package by loading its configure.zcml
using
zope.configuration.xmlconfig
, several namespaces are
registered. They are registered both as single adapters for any
object, and as multi-adapters (views) for any object together with a
zope.publisher.interfaces.IRequest
. Those namespaces are:
- etc
Implemented in
etc
- attribute
Implemented in
attr
- adapter
Implemented in
adapter
- item
Implemented in
item
- acquire
Implemented in
acquire
- view
Implemented in
view
- resource
Implemented in
resource
- lang
Implemented in
lang
- skin
Implemented in
skin
- vh
Implemented in
vh
- debug
Implemented in
debug
(only if the ZCML featuredevmode
is enabled) and only registered as a multi-adapter.