Package Products :: Package ZenModel :: Module RRDTemplate |
[hide private]
[frames] | no frames]

# Module RRDTemplate

source code

Classes | [hide private]
| RRDTemplate

Functions | [hide private]
CreateRRDTemplatesCatalog(dmd, rebuild=False) Create the searchRRDTemplates catalog if it does not already exist. | source code
YieldAllRRDTemplates(root, criteria=None) Yield all templates in the searchRRDTemplates catalog which fall under the given root and match the given criteria. | source code
manage_addRRDTemplate(context, id, REQUEST=None) make a RRDTemplate | source code
crumbspath(templ, crumbs, idx=-1) Create the crumbs path for sub objects of an RRDTemplate. | source code

Variables | [hide private]
| log = `logging.getLogger('zen.RRDTemplate')`
| RRDTEMPLATE_CATALOG = `'searchRRDTemplates'`
| addRRDTemplate = `DTMLFile('dtml/addRRDTemplate', globals())`

Function Details | [hide private]

### CreateRRDTemplatesCatalog(dmd, rebuild=False) | source code
Create the searchRRDTemplates catalog if it does not already exist. Return the catalog.

### YieldAllRRDTemplates(root, criteria=None) | source code
Yield all templates in the searchRRDTemplates catalog which fall under the given root and match the given criteria. To get all RRDTemplates pass dmd in as root. If criteria contains a value for getPhysicalRoot then the root parameter will be ignored. If the searchRRDTemplates catalog is not present then fall back to using DeviceClass.getAllRRDTemplatesPainfully(). In this case root must be a DeviceClass and criteria is ignored. (This is compatible with previous DeviceClass.getAllRRDTemplates usage.) The searchRRDTemplates catalog was added in 2.2