Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.tests.timeBreadCrumbs Namespace Reference

Functions

def setup
def catalog
def physical

Variables

tuple app = makerequest(app)
tuple site = setup(app, sys.argv[1])
 request = site.REQUEST
tuple obj = site.unrestrictedTraverse('folder2/folder22/folder222/doc2222')
tuple times = int(sys.argv[2])
tuple timer = timeit.Timer('catalog()', 'from __main__ import catalog')

Function Documentation

Definition at line 30 of file timeBreadCrumbs.py.

00030 
00031     def catalog():
00032         return navigation.CatalogNavigationBreadcrumbs(
00033             obj, request).breadcrumbs()

Definition at line 34 of file timeBreadCrumbs.py.

00034 
00035     def physical():
00036         return navigation.PhysicalNavigationBreadcrumbs(
00037             obj, request).breadcrumbs()

def CMFPlone.tests.timeBreadCrumbs.setup (   app,
  path 
)

Definition at line 12 of file timeBreadCrumbs.py.

00012 
00013 def setup(app, path):
00014     _policy = PermissiveSecurityPolicy()
00015     _oldpolicy = setSecurityPolicy(_policy)
00016     newSecurityManager(None, OmnipotentUser().__of__(app.acl_users))
00017     site = app.unrestrictedTraverse(path)
00018     populateFolder(site, 'Folder', 'Document')
00019     return site

Here is the call graph for this function:


Variable Documentation

Definition at line 24 of file timeBreadCrumbs.py.

tuple CMFPlone.tests.timeBreadCrumbs.obj = site.unrestrictedTraverse('folder2/folder22/folder222/doc2222')

Definition at line 28 of file timeBreadCrumbs.py.

Definition at line 26 of file timeBreadCrumbs.py.

Definition at line 25 of file timeBreadCrumbs.py.

tuple CMFPlone.tests.timeBreadCrumbs.timer = timeit.Timer('catalog()', 'from __main__ import catalog')

Definition at line 40 of file timeBreadCrumbs.py.

tuple CMFPlone.tests.timeBreadCrumbs.times = int(sys.argv[2])

Definition at line 38 of file timeBreadCrumbs.py.