Package Products :: Package ZenModel :: Module ZenModelBase :: Class ZenModelBase
[show private | hide private]
[frames | no frames]

Type ZenModelBase

object --+
         |
        ZenModelBase

Known Subclasses:
ZenModelItem, ZenModelRM

All ZenModel Persistent classes inherit from this class. It provides some screen management functionality, and general utility methods.
Method Summary
  __call__(self)
Invokes the default view.
  __hash__(self)
  all_meta_types(self, interfaces)
Control what types of objects can be created within classification
  breadCrumbs(self, terminator)
Return the breadcrumb links for this object.
  callZenScreen(self, REQUEST, redirect)
Call and return screen specified by zenScreenName value of REQUEST.
  checkValidId(self, id, prep_id)
Checks a valid id
  createHierarchyObj(self, root, name, factory, relpath, log)
  custPropertyIds(self)
List custom properties that are defined at root node.
  custPropertyMap(self)
List custom property definitions [{'id':'cName','label':'Name', 'type':'string'},]
  getDmd(self)
return the dmd root object
  getDmdObj(self, path)
get object from path that starts at dmd ie.
  getDmdRoot(self, name)
return an organizer object by its name
  getHierarchyObj(self, root, name, relpath)
  getIdLink(self)
Return an A link to this object with its id as the name.
  getNowString(self)
return the current time as a string
  getObjByPath(self, path)
  getPrimaryDmdId(self, rootName, subrel)
get the full dmd id of this object strip off everything before dmd
  getZopeObj(self, path)
get object from path tat starts at zope root ie.
  helpLink(self)
return a link to the objects help file
  isLocalName(self, name)
Check to see if a name is local to our current context.
  manage_deleteObjects(self, ids, REQUEST)
Delete object by id from this object.
  prepId(self, id, subchar)
  saveCustProperties(self, REQUEST)
Save custom properties from REQUEST.form.
  todayDate(self)
Return today's date as a string in the format 'mm/dd/yyyy'.
  view(self)
Returns the default view even if index_html is overridden.
  visibleCustPropertyMap(self)
List custom property definitions that should be visible [{'id':'cName','label':'Name', 'type':'string'},]
  yesterdayDate(self)
Return yesterday's date as a string in the format 'mm/dd/yyyy'.
  zenpathjoin(self, path)
  zenpathsplit(self, path)
  zenScreenUrl(self)
Return the url for the current screen as defined by zenScreenName.
  zentinelTabs(self, templateName)
Return a list of hashs that define the screen tabs for this object.
  zmanage_editProperties(self, REQUEST)
Edit a ZenModel object and return its proper page template
Inherited from object: __init__, __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('Delete objects', ('manage_delete...
PermissionRole breadCrumbs__roles__ = <PermissionRole object at 0x10bf1...
PermissionRole getPrimaryDmdId__roles__ = <PermissionRole object at 0x1...
PermissionRole helpLink__roles__ = <PermissionRole object at 0x10bf1b8>
NoneType index_html = None                                                                  
PermissionRole manage_deleteObjects__roles__ = <PermissionRole object a...
tuple sub_meta_types = ()
PermissionRole view__roles__ = <PermissionRole object at 0x10bf1b8>
PermissionRole zentinelTabs__roles__ = <PermissionRole object at 0x10bf...
PermissionRole zmanage_editProperties__roles__ = <PermissionRole object...

Method Details

__call__(self)
(Call operator)

Invokes the default view.

all_meta_types(self, interfaces=None)

Control what types of objects can be created within classification

breadCrumbs(self, terminator='dmd')

Return the breadcrumb links for this object. [('url','id'), ...]

callZenScreen(self, REQUEST, redirect=False)

Call and return screen specified by zenScreenName value of REQUEST. If zenScreenName is not present call the default screen. This is used in functions that are called from forms to get back to the correct screen with the correct context.

checkValidId(self, id, prep_id=False)

Checks a valid id

custPropertyIds(self)

List custom properties that are defined at root node.

custPropertyMap(self)

List custom property definitions [{'id':'cName','label':'Name', 'type':'string'},]

getDmd(self)

return the dmd root object

getDmdObj(self, path)

get object from path that starts at dmd ie. /Devices/Servers/box

getDmdRoot(self, name)

return an organizer object by its name

getIdLink(self)

Return an A link to this object with its id as the name.

getNowString(self)

return the current time as a string

getPrimaryDmdId(self, rootName='dmd', subrel='')

get the full dmd id of this object strip off everything before dmd

getZopeObj(self, path)

get object from path tat starts at zope root ie. /zport/dmd/Devices

helpLink(self)

return a link to the objects help file

isLocalName(self, name)

Check to see if a name is local to our current context.

manage_deleteObjects(self, ids=(), REQUEST=None)

Delete object by id from this object.

saveCustProperties(self, REQUEST)

Save custom properties from REQUEST.form.

todayDate(self)

Return today's date as a string in the format 'mm/dd/yyyy'.

view(self)

Returns the default view even if index_html is overridden.

visibleCustPropertyMap(self)

List custom property definitions that should be visible [{'id':'cName','label':'Name', 'type':'string'},]

yesterdayDate(self)

Return yesterday's date as a string in the format 'mm/dd/yyyy'.

zenScreenUrl(self)

Return the url for the current screen as defined by zenScreenName. If zenScreenName is not found in the request the request url is used.

zentinelTabs(self, templateName)

Return a list of hashs that define the screen tabs for this object. [{'name':'Name','action':'template','selected':False},...]

zmanage_editProperties(self, REQUEST=None)

Edit a ZenModel object and return its proper page template

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Delete objects', ('manage_deleteObjects',)),
 ('Manage DMD', ('zmanage_editProperties',)),
 ('View',
  ('helpLink', 'zentinelTabs', 'breadCrumbs', 'getPrimaryDmdId', 'view\
')))                                                                   

breadCrumbs__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf1b8>                                   

getPrimaryDmdId__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf1b8>                                   

helpLink__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf1b8>                                   

index_html

Type:
NoneType
Value:
None                                                                  

manage_deleteObjects__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf680>                                   

sub_meta_types

Type:
tuple
Value:
()                                                                     

view__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf1b8>                                   

zentinelTabs__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf1b8>                                   

zmanage_editProperties__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf920>                                   

Generated by Epydoc 2.1 on Thu Aug 16 09:55:14 2007 http://epydoc.sf.net