orm2 :: ui :: ORMMode :: ORMFSPageTemplate :: ORMFSPageTemplate :: Class ORMFSPageTemplate
[hide private]
[frames] | no frames]

Class ORMFSPageTemplate

source code

                            Acquisition.Implicit --+
                                                   |
                        Acquisition.Explicit --+   |
                                               |   |
                         OFS.SimpleItem.Item --+   |
                                               |   |
                      Persistence.Persistent --+   |
                                               |   |
              AccessControl.Role.RoleManager --+   |
                                               |   |
                   App.Management.Navigation --+   |
                                               |   |
                         OFS.Cache.Cacheable --+   |
                                               |   |
                                 ORMMode.ORMMode --+
                                                   |
Products.PageTemplates.PageTemplate.PageTemplate --+
                                                   |
                                                  ORMFSPageTemplate

This object type combines ORMMode and Zope's PageTemplates. The mode functions's return falue is made available within the page template as rt ('return value') and can be used in any tal expression.

Instance Methods [hide private]
  __init__(self, id, module_name, mode_function_name, db_connection_name, db_charset, session_on, path_variables_on, path_variables, file_path, path_origin, REQUEST=None)
  manage_edit(self, module_name, mode_function_name, db_connection_name, db_charset, file_path, path_origin, session_on=False, path_variables_on=False, path_variables="", REQUEST=None)
Edit the current object.
  file_path(self)
Accessor.
  path_origin(self)
Accessor.
  base_dir(self)
Return the beginning of the source file path determined by the path_origin (including a trailing path seperator).
  source(self)
Return the contents of the file pointed to by file_path and path_origin
  __call__(self)
Call the mode function and do cache management.
  pt_getContext(self)

Inherited from ORMMode.ORMMode: PUT, __before_publishing_traverse__, db_charset, db_connection_name, index_html, mode_function, mode_function_name, module, module_name, om_exec, path_variables, path_variables_on, session_on

Inherited from ORMMode.ORMMode (private): _ds, _module_mtime


Class Variables [hide private]
  security = ClassSecurityInfo()
  meta_type = "ORM Filesystem Page Template"
  manage_main = PageTemplateFile("www/ORMFSPageTemplate.pt", globals())
  manage_options = {"label": "Edit", "action": "manage_main"}, {"label"...
  __ac_permissions__ = 'View management screens', ('manage_main',), ('Chang...

Inherited from ORMMode.ORMMode: HelpSys, ZopeTime


Method Details [hide private]

__init__(self, id, module_name, mode_function_name, db_connection_name, db_charset, session_on, path_variables_on, path_variables, file_path, path_origin, REQUEST=None)
(Constructor)

source code 
None
Overrides: ORMMode.ORMMode.__init__

manage_edit(self, module_name, mode_function_name, db_connection_name, db_charset, file_path, path_origin, session_on=False, path_variables_on=False, path_variables="", REQUEST=None)

source code 
Edit the current object.
Overrides: ORMMode.ORMMode.manage_edit

file_path(self)

source code 
Accessor.

path_origin(self)

source code 
Accessor.

base_dir(self)

source code 

Return the beginning of the source file path determined by the path_origin (including a trailing path seperator).

If path_origin is 'root' it returns '', because the file_path is supposed to be absolute.

If the file_path() is absolute already it will return '', too.

source(self)

source code 
Return the contents of the file pointed to by file_path and path_origin

__call__(self)
(Call operator)

source code 
Call the mode function and do cache management.
Overrides: ORMMode.ORMMode.__call__
(inherited documentation)

pt_getContext(self)

source code 
None

Class Variable Details [hide private]

security

None
Value:
ClassSecurityInfo()                                                    
      

meta_type

None
Value:
"ORM Filesystem Page Template"                                         
      

manage_main

None
Value:
PageTemplateFile("www/ORMFSPageTemplate.pt", globals())                
      

manage_options

None
Value:
{"label": "Edit", "action": "manage_main"}, {"label": "Security", "act
ion": "manage_access"}+ Item.manage_options+ Cacheable.manage_options  
      

__ac_permissions__

None
Value:
'View management screens', ('manage_main',), ('Change Page Templates',
 ('manage_edit',)), ('View', ('__call__', '')),