Personal tools
Skip to content. | Skip to navigation
.. image::
Diazo - We Write XSLT, So You Don't Have To Diazo allows you to apply a theme contained in a static HTML web page to a dynamic website created using any server-side technology. With Diazo, you can take an HTML wireframe created by a web designer and turn it into a theme for your favourite CMS, redesign the user interface of a legacy web application without even having access to the original...
dm.incrementalsearch dm.incrementalsearch is an efficient low level search execution engine. Its primary purpose is to incrementally perform searches involving and, or and not queries over ZODB.BTrees.Incrementally means here that hits are determined one at a time: the first hit, then the second hit, then the third hit, etc. Therefore, the first few hits can be determined extremely fast. But...
Small package to allow the use of Products.AdvancedQuery (version 4+) in Plone 5.2+.It provides a (required) adapter for Plone's CatalogTool and an (optional) adapter for Plone's ExtendedPathIndex.You must ensure that its configure.zcml is "executed" at startup. This usually is ensured by extending the buildout definition zcml with dm.plone.advancedquery.
Utilities to reuse (slightly modified) objects in new contexts.Currently, there is are two utilities: rebindFunction and OverridingProxy.rebindFunction ++++++++++++++++++rebindFunction allows to reuse the code of a function while changing name, globals, default arguments, properties and/or names used.Lets look at a trivial example. Function f accesses global variables i and j.Examples >>> i 1;...
The package allows the profiling of Zope applications. It is the successor of Products.ZopeProfiler for Zope>4. It uses Python's standard profiling support from its runtime library modules cProfile and pstats and integrates it with Zope. Read the corresponding documentation to learn how to interact with and interpret the collected profiling information. Profiling When you start a Zope instance, profiling is disabled. You can enable the collection of profiling data via the page @@profile. This page also allows you to configure the profiling and present the collected data in various alternative ways. The configuration is split into 2 parts: the Profiler part controls the collection of profiling base data, the Statistics part controls how this information is presented. The Profiler configuration allows you to specify which timer (real time or CPU time) is used for profiling and which requests should be profiled. For the latter task, you can define 2 collections of regular expressions: include and exclude. A request is not profiled if any regular expression in exclude matches; if include is not empty, then a request is only profiled if it matches at least one of those. Matching is always performed in search mode on the request’s PATH_INFO. When you change the timer, the collected profiling data is cleared. The Statistics configuration essentially provides parameters for Python’s pstats. Especially, you can select various views (stats, caller, callee), sort according to various criteria (e.g. cumulative, internal, …), strip directory information and control the amount of data shown. Read the Python documentation for pstats to get details. Note that profiling usually does not see thread switches. This is always the case when you use a real time timer and can also be the case with a CPU time timer (e.g. for Python 2 or on Windows). In those cases, time spend in a foreign thread may be wrongly accounted for a profiled request. You may consider configuring Zope to use a single worker thread to reduce this problem. Note that both configuration and collected profiling data is maintained in process memory; i.e. in a multi instance Zope installation, each instance has its own private data. Note that profiling reveals important implementation details. You should take appropriate measures to avoid that it can be accessed by a hacker. One option is to make it only available in development installations behind a firewall. Configuration dm.zope.profile maintains its configuration in RAM. As a consequence, configuration changes are lost when the process is shut down. You can define the initial configuration on start up via ZCML. For this purpose, the package’s meta.zcml defines the directive config in namespace http://namespaces.zope.org/dm.zope.profile. The configuration uses options with either simple values (timer, type and strip_dirs) or collection values (include, exclude, sort_by, restrictions). Options with simple values are specified via attributes of the config directive. Individual elements of collection values are specified via element subdirectives. Those subdirectives specify the option they provide a partial value for via their name attribute and their contribution via their value attribute. example_config.zcml contains an example. It recreates the code defined default conflguration (and thus serves only as an a demontration). Note: Currently, you cannot omit options in order to inherit them from the the code defined default configuration: if the config directive is used, then the code defined default configuration becomes completely irrelevant. This might change in the future.
:alt: Supported Python versions
.. contents::Introduction Various base classes and methods ecreall uses to test and debug projects.Contributors Note: place names and roles of the people who contribute to this package in this file, one to a line, like so:- Thomas DesvenainChangelog 1.7 (2014-02-17) -- Added status and header methods on FakeResponse and getURL method on FakeRequest. [thomasdesvenain]- When we get a key from...
.. contents::Introduction A set of helpful helpers for upgrade steps.IUpgradeTool adapts a plone site, a site setup tool or a directory import context, and provides method to make common upgrade configuration and data upgrades.Read the interfaces.py file for more information. Contributors - Thomas Desvenain thomas.desvenain@gmail.com - Vincent FretinChangelog 1.4 (2018-01-04) --...
EEA Faceted Vocabularies Overview Zope 3 vocabularies to be used within eea.facetednavigation.. contents::Installation