Skip to main content

z3c.noop provides traverser that simply skips a path element, so /foo/++noop++qux/bar is equivalent to /foo/bar.

Project description

z3c.noop

z3c.noop provides traverser that simply skips a path element, so /foo/++noop++qux/bar is equivalent to /foo/bar.

This is useful for example to generate varying URLs to work around browser caches[#test-setup]_.

>>> dummy = object()
>>> root['foo'] = dummy
>>> traverse('/foo') == dummy
True
>>> traverse('/++noop++12345/foo') == dummy
True
[1]
>>> import zope.traversing.api
>>> import zope.publisher.browser
>>> root = getRootFolder()
>>> request = zope.publisher.browser.TestRequest()
>>> def traverse(path):
...     return zope.traversing.api.traverse(root, path, request=request)

CHANGES

1.0 (2009-06-15)

  • first released version

Project details


Release history Release notifications

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for z3c.noop, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size z3c.noop-1.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page