|
|
|
view(self)
Returns the default view even if index_html is overridden. |
source code
|
|
|
|
string
>>> dmd.Devices.prepId('ab^*cd')
'ab__cd'
>>> dmd.Devices.prepId('ab^*cd', subchar='Z')
'abZZcd'
>>> dmd.Devices.prepId('/boot')
'boot'
>>> dmd.Devices.prepId('/')
'-'
|
|
boolean
>>> dmd.Devices.checkValidId('^*')
'The id "^*" contains characters illegal in URLs.'
>>> dmd.Devices.checkValidId('Server')
'The id "Server" is invalid - it is already in use.'
>>> dmd.Devices.checkValidId('ZenTestId')
True
|
|
string
>>> id1 = dmd.Devices.getUnusedId('devices', 'dev')
>>> id1
'dev'
>>> dmd.Devices.createInstance(id1)
<Device at /zport/dmd/Devices/devices/dev>
>>> id2 = dmd.Devices.getUnusedId('devices', 'dev')
>>> id2
'dev2'
|
getUnusedId(self,
relName,
baseKey,
extensionIter=None)
Return a new id that is not already in use in the
relationship. |
source code
|
|
string
>>> dmd.Devices.getIdLink()
'<a href="/zport/dmd/Devices">/</a>'
|
|
|
callZenScreen(self,
REQUEST,
redirect=False)
Call and return screen specified by zenScreenName value of
REQUEST. |
source code
|
|
string
|
|
string
|
urlLink(self,
text=None,
url=None,
attrs={ } )
Return an anchor tag if the user has access to the remote
object. |
source code
|
|
string
>>> dmd.Devices.getBreadCrumbUrlPath()
'/zport/dmd/Devices'
>>> rc = dmd.Reports._getOb('Graph Reports')
>>> rc.manage_addGraphReport('test').getBreadCrumbUrlPath()
'/zport/dmd/Reports/Graph%20Reports/test/editGraphReport'
|
|
list
>>> dmd.Devices.Server.breadCrumbs()
[('/zport/dmd/Devices', 'Devices'),
('/zport/dmd/Devices/Server', 'Server')]
|
breadCrumbs(self,
terminator=' dmd ' )
Return the data to create the breadcrumb links for this
object. |
source code
|
|
|
getZ(self,
zpropname)
Return the value of a zProperty on this object. |
source code
|
|
boolean
|
|
|
|
|
|
string
|
|
|
|
|
zenpathsplit(self,
path)
DEPRECATED Split a path on its '/'. |
source code
|
|
|
createHierarchyObj(self,
root,
name,
factory,
relpath='
' ,
log=None)
DEPRECATED this is only seems to be used in
Organizer.createOrganizer - Create an object from its path we use
relpath to skip down any missing relations in the path and factory is
the constructor for this object. |
source code
|
|
|
getHierarchyObj(self,
root,
name,
relpath)
DEPRECATED this doesn't seem to be used anywere don't use
it!!! |
source code
|
|
|
getDmd(self)
DEPRECATED Return the dmd root object with unwraped acquisition
path. |
source code
|
|
|
|
|
|
|
|
string
|
getNowString(self)
Return the current time as a string in the format '2007/09/27
14:09:53'. |
source code
|
|
string
|
todayDate(self)
Return today's date as a string in the format 'mm/dd/yyyy'. |
source code
|
|
string
|
yesterdayDate(self)
Return yesterday's date as a string in the format
'mm/dd/yyyy'. |
source code
|
|
|
all_meta_types(self,
interfaces=None)
DEPRECATED Override the ObjectManager method that is used to
control the items available in the add drop down in the ZMI. |
source code
|
|
|
manage_deleteObjects(self,
ids=( ) ,
REQUEST=None)
Delete objects by id from this object and return to the current
template as defined by callZenScreen. |
source code
|
|
|
|
[{'id':'cName','label':'Name', 'type':'string'},]
|
custPropertyMap(self)
Return custom property definitions. |
source code
|
|
[{'id':'cName','label':'Name', 'type':'string'},]
|
|
|
|
|
|
boolean
>>> dmd.isLocalName('Devices')
True
>>> dmd.Devices.Server.isLocalName('Devices')
False
|
isLocalName(self,
name)
Check to see if a name is local to our current context or if it
comes from our acquisition chain. |
source code
|
|
|
|
string
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|