Package CMFCore :: Module FSPageTemplate :: Class FSPageTemplate
[show private | hide private]
[frames | no frames]

Type FSPageTemplate

                  Cacheable --+    
                              |    
             object --+       |    
                      |       |    
                   Base --+   |    
                          |   |    
         object --+       |   |    
                  |       |   |    
               Base --+   |   |    
                      |   |   |    
             CopySource --+   |    
                          |   |    
               Node --+   |   |    
                      |   |   |    
                Element --+   |    
                          |   |    
         object --+       |   |    
                  |       |   |    
               Base --+   |   |    
                      |   |   |    
                  Owned --+   |    
                          |   |    
         object --+       |   |    
                  |       |   |    
               Base --+   |   |    
                      |   |   |    
    EtagSupport --+   |   |   |    
                  |   |   |   |    
       LockableItem --+   |   |    
                      |   |   |    
               Resource --+   |    
                          |   |    
         object --+       |   |    
                  |       |   |    
               Base --+   |   |    
                      |   |   |    
                   Tabs --+   |    
                          |   |    
            Traversable --+   |    
                          |   |    
         object --+       |   |    
                  |       |   |    
               Base --+   |   |    
                      |   |   |    
            UndoSupport --+   |    
                          |   |    
                       Item --+    
                              |    
             object --+       |    
                      |       |    
                   Base --+   |    
                          |   |    
            RoleManager --+   |    
                          |   |    
                RoleManager --+    
                              |    
             object --+       |    
                      |       |    
                   Base --+   |    
                          |   |    
                   Acquirer --+    
                              |    
                       FSObject --+
                                  |
                 object --+       |
                          |       |
                       Base --+   |
                              |   |
                   PageTemplate --+
                                  |
               Bindings --+       |
                          |       |
                 BindingsUI --+   |
                              |   |
         object --+           |   |
                  |           |   |
               Base --+       |   |
                      |       |   |
     object --+       |       |   |
              |       |       |   |
           Base --+   |       |   |
                  |   |       |   |
         CopySource --+       |   |
                      |       |   |
           Node --+   |       |   |
                  |   |       |   |
            Element --+       |   |
                      |       |   |
     object --+       |       |   |
              |       |       |   |
           Base --+   |       |   |
                  |   |       |   |
              Owned --+       |   |
                      |       |   |
     object --+       |       |   |
              |       |       |   |
           Base --+   |       |   |
                  |   |       |   |
EtagSupport --+   |   |       |   |
              |   |   |       |   |
   LockableItem --+   |       |   |
                  |   |       |   |
           Resource --+       |   |
                      |       |   |
     object --+       |       |   |
              |       |       |   |
           Base --+   |       |   |
                  |   |       |   |
               Tabs --+       |   |
                      |       |   |
        Traversable --+       |   |
                      |       |   |
     object --+       |       |   |
              |       |       |   |
           Base --+   |       |   |
                  |   |       |   |
        UndoSupport --+       |   |
                      |       |   |
                   Item --+   |   |
                          |   |   |
         object --+       |   |   |
                  |       |   |   |
               Base --+   |   |   |
                      |   |   |   |
         object --+   |   |   |   |
                  |   |   |   |   |
         Persistent --+   |   |   |
                      |   |   |   |
             Persistent --+   |   |
                          |   |   |
         object --+       |   |   |
                  |       |   |   |
               Base --+   |   |   |
                      |   |   |   |
        RoleManager --+   |   |   |
                      |   |   |   |
            RoleManager --+   |   |
                          |   |   |
         object --+       |   |   |
                  |       |   |   |
               Base --+   |   |   |
                      |   |   |   |
               Acquirer --+   |   |
                          |   |   |
                 SimpleItem --+   |
                              |   |
                         Script --+
                                  |
                                 FSPageTemplate


Wrapper for Page Template
Method Summary
  __init__(self, id, filepath, fullname, properties)
  document_src(self, REQUEST, RESPONSE)
Return expanded document source.
  get_size(self)
  getSize(self)
  manage_FTPget(self)
Get source for FTP download
  PrincipiaSearchSource(self)
Support for searching - the document's contents are searched.
  pt_getContext(self)
  pt_macros(self)
  pt_render(self, source, extra_context)
Render this Page Template
  pt_source_file(self)
Return a file name to be compiled into the TAL code.
  read(self)
  ZScriptHTML_tryParams(self)
Parameters to test the script with.
  _createZODBClone(self)
Create a ZODB (editable) equivalent of this object.
  _exec(self, bound_names, args, kw)
Call a FSPageTemplate
  _readFile(self, reparse)
Read the data from the filesystem.
  _ZPT_exec(self, bound_names, args, kw)
Call a Page Template
    Inherited from FSObject
  getModTime(self)
Return the last_modified date of the file we represent.
  getObjectFSPath(self)
Return the path of the file we represent
  manage_doCustomize(self, folder_path, RESPONSE)
Makes a ZODB Based clone with the same data.
  _updateFromFS(self)
    Inherited from Acquirer
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __of__(context)
__of__(context) -- return the object in a context
    Inherited from Item
  __len__(self)
  __repr__(self)
Show the physical path of the object and its context if available.
  analyseDocumentation(self, object, type, filter)
  getId(self)
Return the id of the object as a string.
  manage(self, URL1)
  manage_afterAdd(self, item, container)
  manage_afterClone(self, item)
  manage_beforeDelete(self, item, container)
  manage_editedDialog(self, REQUEST, **args)
  manage_FTPlist(self, REQUEST)
Directory listing for FTP.
  manage_FTPstat(self, REQUEST)
Psuedo stat, used by FTP for directory listings.
  objectIds(self, spec)
  objectItems(self, spec)
  objectValues(self, spec)
  raise_standardErrorMessage(self, client, REQUEST, error_type, error_value, tb, error_tb, error_message, tagSearch, error_log_url)
  this(self)
  title_and_id(self)
Return the title if it is not blank and the id otherwise.
  title_or_id(self)
Return the title if it is not blank and the id otherwise.
  tpURL(self)
  tpValues(self)
    Inherited from Resource
  COPY(self, REQUEST, RESPONSE)
Create a duplicate of the source resource whose state and behavior match that of the source resource as closely as possible.
  dav__init(self, request, response)
  dav__simpleifhandler(self, request, response, method, col, url, refresh)
  dav__validate(self, object, methodname, REQUEST)
  DELETE(self, REQUEST, RESPONSE)
Delete a resource.
  HEAD(self, REQUEST, RESPONSE)
Retrieve resource information without a response body.
  listDAVObjects(self)
  LOCK(self, REQUEST, RESPONSE)
Lock a resource
  manage_DAVget(self)
Gets the document source
  MKCOL(self, REQUEST, RESPONSE)
Create a new collection resource.
  MOVE(self, REQUEST, RESPONSE)
Move a resource to a new location.
  OPTIONS(self, REQUEST, RESPONSE)
Retrieve communication options.
  PROPFIND(self, REQUEST, RESPONSE)
Retrieve properties defined on the resource.
  PROPPATCH(self, REQUEST, RESPONSE)
Set and/or remove properties defined on the resource.
  PUT(self, REQUEST, RESPONSE)
Replace the GET response entity of an existing resource.
  TRACE(self, REQUEST, RESPONSE)
Return the HTTP message received back to the client as the entity-body of a 200 (OK) response.
  UNLOCK(self, REQUEST, RESPONSE)
Remove an existing lock on a resource.
    Inherited from LockableItem
  wl_clearLocks(self)
  wl_delLock(self, locktoken)
  wl_getLock(self, locktoken)
  wl_hasLock(self, token, killinvalids)
  wl_isLocked(self)
  wl_lockItems(self, killinvalids)
  wl_lockmapping(self, killinvalids, create)
if 'killinvalids' is 1, locks who are no longer valid will be deleted
  wl_lockTokens(self, killinvalids)
  wl_lockValues(self, killinvalids)
  wl_setLock(self, locktoken, lock)
    Inherited from EtagSupport
  http__etag(self, readonly)
  http__parseMatchList(self, REQUEST, header)
  http__processMatchHeaders(self, REQUEST)
  http__refreshEtag(self)
    Inherited from CopySource
  cb_isCopyable(self)
  cb_isMoveable(self)
  cb_userHasCopyOrMovePermission(self)
  _canCopy(self, op)
Called to make sure this object is copyable.
  _getCopy(self, container)
  _notifyOfCopyTo(self, container, op)
Overide this to be pickly about where you go!
  _postCopy(self, container, op)
  _setId(self, id)
    Inherited from Tabs
  _old_filtered_manage_options(self, REQUEST)
  class_manage_path(self)
  filtered_manage_options(self, REQUEST)
  manage_workspace(self, REQUEST)
Dispatch to first interface in manage_options
  tabs_path_default(self, REQUEST, unquote)
  tabs_path_info(self, script, path, quote)
    Inherited from Traversable
  absolute_url(self, relative)
Return the absolute URL of the object.
  absolute_url_path(self)
Return the path portion of the absolute URL of the object.
  getPhysicalPath(self)
Get the physical path of the object.
  restrictedTraverse(self, path, default)
  unrestrictedTraverse(self, path, default, restricted)
Lookup an object by path.
  virtual_url_path(self)
Return a URL for the object, relative to the site root.
    Inherited from Element
  getAttribute(self, name)
Retrieves an attribute value by name.
  getAttributeNode(self, name)
Retrieves an Attr node by name or None if there is no such attribute.
  getChildNodes(self)
Returns a NodeList that contains all children of this node.
  getElementsByTagName(self, tagname)
Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree.
  getFirstChild(self)
The first child of this node.
  getLastChild(self)
The last child of this node.
  getNextSibling(self)
The node immediately preceding this node.
  getNodeName(self)
The name of this node, depending on its type
  getNodeType(self)
A code representing the type of the node.
  getParentNode(self)
The parent of this node.
  getPreviousSibling(self)
The node immediately preceding this node.
  getTagName(self)
The name of the element
    Inherited from Node
  getAttributes(self)
Returns a NamedNodeMap containing the attributes of this node (if it is an element) or None otherwise.
  getNodeValue(self)
The value of this node, depending on its type
  getOwnerDocument(self)
The Document object associated with this node.
  hasChildNodes(self)
Returns true if the node has any children, false if it doesn't.
    Inherited from Owned
  changeOwnership(self, user, recursive)
Change the ownership to the given user.
  getOwner(self, info, aq_get, UnownableOwner, getSecurityManager)
Get the owner
  getOwnerTuple(self)
Return a tuple, (userdb_path, user_id) for the owner.
  getWrappedOwner(self)
Get the owner, modestly wrapped in the user folder.
  manage_changeOwnershipType(self, explicit, RESPONSE, REQUEST)
Change the type (implicit or explicit) of ownership.
  manage_fixupOwnershipAfterAdd(self)
  manage_takeOwnership(self, REQUEST, RESPONSE, recursive)
Take ownership (responsibility) for an object.
  owner_info(self)
Get ownership info for display
  userCanTakeOwnership(self)
  _deleteOwnershipAfterAdd(self)
    Inherited from UndoSupport
  get_request_var_or_attr(self, name, default)
  manage_undo_transactions(self, transaction_info, REQUEST)
  undoable_transactions(self, first_transaction, last_transaction, PrincipiaUndoBatchSize)
    Inherited from RoleManager
  ac_inherited_permissions(self, all)
  access_debug_info(self)
Return debug info.
  acquiredRolesAreUsedBy(self, permission)
Used by management screen.
  get_local_roles(self)
  get_local_roles_for_userid(self, userid)
  get_valid_userids(self)
  has_local_roles(self)
  manage_access(self, REQUEST, **kw)
Return an interface for making permissions settings.
  manage_acquiredPermissions(self, permissions, REQUEST)
Change the permissions that acquire.
  manage_addLocalRoles(self, userid, roles, REQUEST)
Set local roles for a user.
  manage_changePermissions(self, REQUEST)
Change all permissions settings, called by management screen.
  manage_defined_roles(self, submit, REQUEST)
Called by management screen.
  manage_delLocalRoles(self, userids, REQUEST)
Remove all local roles for a user.
  manage_editRoles(self, REQUEST, acl_type, acl_roles)
  manage_permission(self, permission_to_manage, roles, acquire, REQUEST)
Change the settings for the given permission.
  manage_role(self, role_to_manage, permissions, REQUEST)
Change the permissions given to the given role.
  manage_setLocalRoles(self, userid, roles, REQUEST)
Set local roles for a user.
  permission_settings(self, permission)
Return user-role permission settings.
  permissionsOfRole(self, role)
Used by management screen.
  possible_permissions(self)
  rolesOfPermission(self, permission)
Used by management screen.
  userdefined_roles(self)
Return list of user-defined roles.
  users_with_local_role(self, role)
  valid_roles(self)
Return list of valid roles.
  validate_roles(self, roles)
Return true if all given roles are valid.
  validRoles(self)
Return list of valid roles.
  _addRole(self, role, REQUEST)
  _delRoles(self, roles, REQUEST)
  _has_user_defined_role(self, role)
  _setRoles(self, acl_type, acl_roles)
    Inherited from RoleManager
  manage_getPermissionMapping(self)
Return the permission mapping for the object This is a list of dictionaries with: permission_name -- The name of the native object permission class_permission -- The class permission the permission is mapped to.
  manage_setPermissionMapping(self, permission_names, class_permissions, REQUEST)
Change the permission mapping
  _isBeingAccessedAsZClassDefinedInstanceMethod(self)
  _isBeingUsedAsAMethod(self, REQUEST, wannaBe)
    Inherited from Cacheable
  ZCacheable_configHTML(self)
Override to provide configuration of caching behavior that can only be specific to the cacheable object.
  ZCacheable_enabled(self)
Returns true if caching is enabled for this object or method.
  ZCacheable_get(self, view_name, keywords, mtime_func, default)
Retrieves the cached view for the object under the conditions specified by keywords.
  ZCacheable_getCache(self)
Gets the cache associated with this object.
  ZCacheable_getManager(self)
Returns the currently associated cache manager.
  ZCacheable_getManagerId(self)
Returns the id of the current ZCacheManager.
  ZCacheable_getManagerIds(self)
Returns a list of mappings containing the id and title of the available ZCacheManagers.
  ZCacheable_getManagerURL(self)
Returns the URL of the current ZCacheManager.
  ZCacheable_getModTime(self, mtime_func)
Returns the highest of the last mod times.
  ZCacheable_getObAndView(self, view_name)
If this object is a method of a ZClass and we're working with the primary view, uses the ZClass instance as ob and our own ID as the view_name.
  ZCacheable_invalidate(self, view_name, REQUEST)
Called after a cacheable object is edited.
  ZCacheable_isAMethod(self)
Returns 1 when this object is a ZClass method.
  ZCacheable_isCachingEnabled(self)
Returns true only if associated with a cache manager and caching of this method is enabled.
  ZCacheable_set(self, data, view_name, keywords, mtime_func)
Cacheable views should call this method after generating cacheable results.
  ZCacheable_setEnabled(self, enabled, REQUEST)
Changes the enabled flag.
  ZCacheable_setManagerId(self, manager_id, REQUEST)
Changes the manager_id for this object.
    Inherited from Script
  ZScriptHTML_tryAction(self, REQUEST, argvars)
Apply the test parameters.
  _setFuncSignature(self, defaults, varnames, argcount)
    Inherited from Persistent
  __class_init__(self)
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  bobobase_modification_time(self)
  locked_in_version(self)
Was the object modified in any version?
  modified_in_version(self)
Was the object modified in this version?
    Inherited from Persistent
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getstate__(...)
Get the object serialization state
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setstate__(...)
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state.
  _p_activate()
_p_activate() -- Activate the object
  _p_deactivate()
_p_deactivate() -- Deactivate the object
  _p_delattr(name)
This method should be called by subclass __delattr__ implementations before doing anything else.
  _p_getattr(name)
The method unghostifies the object, if necessary.
  _p_invalidate()
_p_invalidate() -- Invalidate the object
  _p_setattr(name, value)
This method should be called by subclass __setattr__ implementations before doing anything else.
    Inherited from BindingsUI
  ZBindingsHTML_editAction(self, REQUEST)
Changes binding names.
    Inherited from Bindings
  __before_publishing_traverse__(self, self2, request)
  __call__(self, *args, **kw)
Calls the script.
  __render_with_namespace__(self, namespace)
Calls the script with the specified namespace.
  getBindingAssignments(self)
  render(self, *args, **kw)
Calls the script.
  ZBindings_edit(self, mapping)
  ZBindings_setClient(self, clientname)
Name the binding to be used as the "client".
  _bindAndExec(self, args, kw, caller_namespace)
Prepares the bound information and calls _exec(), possibly with a namespace.
  _createBindCode(self, names)
  _editedBindings(self)
  _getBindCount(self)
  _getContainer(self)
  _getContext(self)
  _getNamespace(self, caller_namespace, kw)
  _getTraverseSubpath(self)
  _prepareBindCode(self)
  _setupBindings(self, names)
    Inherited from PageTemplate
  html(self)
  pt_edit(self, text, content_type)
  pt_errors(self)
  pt_warnings(self)
  StringIO(self)
  write(self, text)
  _cook(self)
Compile the TAL and METAL statments.
  _cook_check(self)
    Inherited from Base
  __getnewargs__(...)
Get arguments to be passed to __new__
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
tuple __ac_permissions__ = (('FTP access', ('manage_FTPget',))...
PermissionRole __call____roles__ = <PermissionRole object at 0xb58e6398...
PermissionRole __roles__ = <PermissionRole object at 0xb58e6398>
tuple _exec__roles__ = ()
tuple _ZPT_exec__roles__ = ()
PermissionRole document_src__roles__ = <PermissionRole object at 0xb58e...
int expand = 0                                                                     
FuncCode func_code = <Shared.DC.Scripts.Signature.FuncCode instan...
NoneType func_defaults = None                                                                  
PermissionRole get_size__roles__ = <PermissionRole object at 0xb58e6398...
PermissionRole manage_FTPget__roles__ = <PermissionRole object at 0xb58...
DTMLFile manage_main = <App.special_dtml.DTMLFile object at 0xb58...
PermissionRole manage_main__roles__ = <PermissionRole object at 0xb58e6...
tuple manage_options = ({'action': 'manage_main', 'label': 'Cu...
str meta_type = 'Filesystem Page Template'
PermissionRole PrincipiaSearchSource__roles__ = <PermissionRole object ...
tuple pt_edit__roles__ = ()
PermissionRole pt_source_file__roles__ = <PermissionRole object at 0xb5...
tuple read__roles__ = ()
Src source.html = <Products.PageTemplates.ZopePageTemplate.S...
Src source.xml = <Products.PageTemplates.ZopePageTemplate.Sr...
Src source_dot_xml = <Products.PageTemplates.ZopePageTemplat...
tuple write__roles__ = ()
dict _default_bindings = {'name_subpath': 'traverse_subpath'}
NoneType _owner = None                                                                  
    Inherited from FSObject
PermissionRole getModTime__roles__ = <PermissionRole object at 0xb59376...
PermissionRole getObjectFSPath__roles__ = <PermissionRole object at 0xb...
PermissionRole manage_doCustomize__roles__ = <PermissionRole object at ...
str title = ''
int _file_mod_time = 0                                                                     
int _parsed = 0                                                                     
    Inherited from Item
int __allow_access_to_unprotected_subobjects__ = 1                                                                     
Implements __implemented__ = <implementedBy OFS.SimpleItem.Item>
str __name__ = 'Item'
tuple __propsets__ = ()
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
PermissionRole analyseDocumentation__roles__ = <PermissionRole object a...
NoneType getId__roles__ = None                                                                  
str icon = ''
str id = ''
int isPrincipiaFolderish = 0                                                                     
int isTopLevelPrincipiaApplicationObject = 0                                                                     
tuple manage__roles__ = ('Manager',)
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
tuple manage_editedDialog__roles__ = ('Manager',)
tuple manage_FTPlist__roles__ = ('Manager',)
tuple manage_FTPstat__roles__ = ('Manager',)
str REQUEST = '<Special Object Used to Force Acquisition>'
ClassicHTMLFile showDocumentation = <App.special_dtml.ClassicHTMLFile ob...
PermissionRole showDocumentation__roles__ = <PermissionRole object at 0...
DTMLFile _manage_editedDialog = <App.special_dtml.DTMLFile object...
    Inherited from Resource
int __dav_resource__ = 1                                                                     
tuple __http_methods__ = ('GET', 'HEAD', 'POST', 'PUT', 'DELET...
tuple COPY__roles__ = ('Anonymous',)
PermissionRole DELETE__roles__ = <PermissionRole object at 0xb7457188>
PermissionRole HEAD__roles__ = <PermissionRole object at 0xb7457140>
PermissionRole listDAVObjects__roles__ = <PermissionRole object at 0xb7...
PermissionRole LOCK__roles__ = <PermissionRole object at 0xb74571a0>
PermissionRole manage_DAVget__roles__ = <PermissionRole object at 0xb74...
tuple MOVE__roles__ = ('Anonymous',)
NoneType OPTIONS__roles__ = None                                                                  
PermissionRole PROPFIND__roles__ = <PermissionRole object at 0xb7457158...
PermissionRole PROPPATCH__roles__ = <PermissionRole object at 0xb745717...
NoneType TRACE__roles__ = None