ZenWidgets :: ZenTableManager :: ZenTableManager :: Class ZenTableManager
[hide private]
[frames] | no frames]

Class ZenTableManager

source code

                        ExtensionClass.Base --+        
                                              |        
                    ExtensionClass.Base --+   |        
                                          |   |        
     webdav.EtagSupport.EtagSupport --+   |   |        
                                      |   |   |        
           webdav.Lockable.LockableItem --+   |        
                                          |   |        
                   webdav.Resource.Resource --+        
                                              |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                 OFS.CopySupport.CopySource --+        
                                              |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                        App.Management.Tabs --+        
                                              |        
                OFS.Traversable.Traversable --+        
                                              |        
                          OFS.ZDOM.Node --+   |        
                                          |   |        
                           OFS.ZDOM.Element --+        
                                              |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                  AccessControl.Owned.Owned --+        
                                              |        
                    ExtensionClass.Base --+   |        
                                          |   |        
                       App.Undo.UndoSupport --+        
                                              |        
                            OFS.SimpleItem.Item --+    
                                                  |    
                             Globals.Persistent --+    
                                                  |    
                           Acquisition.Implicit --+    
                                                  |    
                        ExtensionClass.Base --+   |    
                                              |   |    
AccessControl.PermissionMapping.RoleManager --+   |    
                                              |   |    
                 AccessControl.Role.RoleManager --+    
                                                  |    
                          OFS.SimpleItem.SimpleItem --+
                                                      |
                            ExtensionClass.Base --+   |
                                                  |   |
                          OFS.ZDOM.Node --+       |   |
                                          |       |   |
                           OFS.ZDOM.Element --+   |   |
                                              |   |   |
                 OFS.ZDOM.ElementWithAttributes --+   |
                                                  |   |
                OFS.PropertyManager.PropertyManager --+
                                                      |
                                                     ZenTableManager

ZenTableManager manages display of tabular data

Instance Methods [hide private]
 
__init__(self, id) source code
 
getDefaultBatchSize(self) source code
 
setupTableState(self, tableName, **keys)
initialize or setup the session variable to track table state
source code
 
getTableState(self, tableName, attrname=None, default=None, **keys)
return an existing table state or a single value from the state
source code
 
getReqTableState(self, tableName, attrname)
Return attrname from request if present if not return from tableState.
source code
 
setTableState(self, tableName, attrname, value)
Set the value of a table state attribute and return it.
source code
 
setReqTableState(self, tableName, attrname, default=None, reset=False)
set the a value in the table state from the request
source code
 
getBatch(self, tableName, objects, **keys)
Filter, sort and batch objects and pass return set.
source code
 
getBatchForm(self, objects, request)
Create batch based on objects no sorting for filter applied.
source code
 
filterObjects(self, objects, regex, filterFields)
filter objects base on a regex in regex and list of fields in filterFields.
source code
 
sortObjects(self, objects, request)
Sort objects.
source code
 
getTableHeader(self, tableName, fieldName, fieldTitle, sortRule='cmp', style='tableheader', attributes="")
generate a <th></th> tag that allows column sorting
source code
 
getTableHeaderHref(self, tableName, fieldName, sortRule='cmp', params="")
build the href attribute for the table table headers
source code
 
getTableHeaderStyle(self, tableName, fieldName, style)
apends "selected" onto the CSS style if this field is selected
source code
 
getTableStates(self) source code
 
tableStatesHasTable(self, tableName) source code
 
getNavData(self, objects, batchSize, sortedHeader) source code
 
_buildTextLabel(self, item, sortedHeader) source code
 
initTableManagerSkins(self)
setup the skins that come with ZenTableManager
source code

Inherited from OFS.SimpleItem.Item: __len__, __repr__, getId, manage, manage_FTPlist, manage_FTPstat, manage_afterAdd, manage_afterClone, manage_beforeDelete, manage_editedDialog, objectIds, objectItems, objectValues, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL, tpValues

Inherited from webdav.Resource.Resource: COPY, DELETE, HEAD, LOCK, MKCOL, MOVE, OPTIONS, PROPFIND, PROPPATCH, PUT, TRACE, UNLOCK, dav__init, dav__simpleifhandler, dav__validate, listDAVObjects, manage_DAVget

Inherited from webdav.Lockable.LockableItem: wl_clearLocks, wl_delLock, wl_getLock, wl_hasLock, wl_isLocked, wl_lockItems, wl_lockTokens, wl_lockValues, wl_lockmapping, wl_setLock

Inherited from webdav.EtagSupport.EtagSupport: http__etag, http__parseMatchList, http__processMatchHeaders, http__refreshEtag

Inherited from OFS.CopySupport.CopySource: cb_isCopyable, cb_isMoveable, cb_userHasCopyOrMovePermission

Inherited from OFS.CopySupport.CopySource (private): _canCopy, _getCopy, _notifyOfCopyTo, _postCopy, _setId

Inherited from App.Management.Tabs: class_manage_path, filtered_manage_options, manage_workspace, tabs_path_default, tabs_path_info

Inherited from OFS.Traversable.Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path

Inherited from OFS.ZDOM.Element: getAttribute, getAttributeNode, getChildNodes, getElementsByTagName, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getParentNode, getPreviousSibling, getTagName

Inherited from OFS.ZDOM.Node: getAttributes, getNodeValue, getOwnerDocument, hasChildNodes

Inherited from AccessControl.Owned.Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_changeOwnershipType, manage_fixupOwnershipAfterAdd, manage_takeOwnership, owner_info, userCanTakeOwnership

Inherited from AccessControl.Owned.Owned (private): _deleteOwnershipAfterAdd

Inherited from App.Undo.UndoSupport: get_request_var_or_attr, manage_undo_transactions, undoable_transactions

Inherited from AccessControl.Role.RoleManager: ac_inherited_permissions, access_debug_info, acquiredRolesAreUsedBy, get_local_roles, get_local_roles_for_userid, get_valid_userids, has_local_roles, manage_access, manage_acquiredPermissions, manage_addLocalRoles, manage_changePermissions, manage_defined_roles, manage_delLocalRoles, manage_editRoles, manage_permission, manage_role, manage_setLocalRoles, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, validRoles, valid_roles, validate_roles

Inherited from AccessControl.Role.RoleManager (private): _addRole, _delRoles, _has_user_defined_role, _setRoles

Inherited from AccessControl.PermissionMapping.RoleManager: manage_getPermissionMapping, manage_setPermissionMapping

Inherited from AccessControl.PermissionMapping.RoleManager (private): _isBeingAccessedAsZClassDefinedInstanceMethod, _isBeingUsedAsAMethod

Inherited from OFS.PropertyManager.PropertyManager: getProperty, getPropertyType, hasProperty, manage_addProperty, manage_changeProperties, manage_changePropertyTypes, manage_delProperties, manage_editProperties, propdict, propertyIds, propertyItems, propertyLabel, propertyMap, propertyValues, valid_property_id

Inherited from OFS.PropertyManager.PropertyManager (private): _delPropValue, _delProperty, _propertyMap, _setPropValue, _setProperty, _updateProperty, _wrapperCheck

Class Variables [hide private]
  meta_type = 'ZenTableManager'
  portal_type = 'ZenTableManager'
  _properties = {'id': 'defaultBatchSize', 'type': 'int', 'mode'...
  manage_options = PropertyManager.manage_options+ SimpleItem.ma...

Inherited from OFS.SimpleItem.SimpleItem: __ac_permissions__

Inherited from OFS.SimpleItem.Item: REQUEST, __allow_access_to_unprotected_subobjects__, __name__, __propsets__, icon, id, isPrincipiaFolderish, isTopLevelPrincipiaApplicationObject, title

Inherited from OFS.SimpleItem.Item (private): _manage_editedDialog

Inherited from webdav.Resource.Resource: __dav_resource__, __http_methods__

Inherited from webdav.Lockable.LockableItem: security

Inherited from webdav.EtagSupport.EtagSupport: __implements__

Inherited from App.Management.Tabs: manage_tabs

Inherited from OFS.Traversable.Traversable: getPhysicalRoot

Inherited from AccessControl.Owned.Owned: manage_owner

Inherited from App.Undo.UndoSupport: manage_UndoForm

Inherited from AccessControl.Role.RoleManager: __ac_local_roles__, __ac_roles__, aclAChecked, aclEChecked, aclPChecked, manage_acquiredForm, manage_editLocalRoles, manage_listLocalRoles, manage_permissionForm, manage_roleForm, permissionMappingPossibleValues, selectedRoles, smallRolesWidget

Inherited from AccessControl.Role.RoleManager (private): _method_manage_access, _normal_manage_access

Inherited from OFS.PropertyManager.PropertyManager: manage_propertiesForm, manage_propertyTypeForm, propertysheets

Inherited from OFS.PropertyManager.PropertyManager (private): _reserved_names

Class Variable Details [hide private]

_properties

Value:
{'id': 'defaultBatchSize', 'type': 'int', 'mode': 'w'}, {'id': 'abbrSt\
artLabel', 'type': 'int', 'mode': 'w'}, {'id': 'abbrEndLabel', 'type':\
 'int', 'mode': 'w'}, {'id': 'abbrPadding', 'type': 'int', 'mode': 'w'\
}, {'id': 'abbrSeparator', 'type': 'string', 'mode': 'w'},

manage_options

Value:
PropertyManager.manage_options+ SimpleItem.manage_options