Package orm2 :: Package ui :: Package ORMProcedureModule :: Module ORMProcedureModule :: Class ORMProcedureModule
[hide private]
[frames] | no frames]

Class ORMProcedureModule

source code

     OFS.Folder.Folder --+
                         |
  Acquisition.Implicit --+
                         |
   OFS.Cache.Cacheable --+
                         |
Persistence.Persistent --+
                         |
                        ORMProcedureModule

This object type allows you to call ORM 'mode' functions from within your Zope application.

Instance Methods [hide private]
  __init__(self, id, model_name, procedures_name, db_connection_name, session_on, REQUEST=None)
  manage_edit(self, model_name, procedures_name, db_connection_name, session_on, REQUEST=None)
Modify the ORMMode object.
  __call__(self, *args, **kw)
Call the mode function and do cache management.
  om_exec(self, *args, **kw)
  _procedure_class(self, formdata)
  session_on(self)
Return True if this adapter provied the mode functions with a session object
  model_name(self)
Accessor.
  model_error(self)
Return the exception text of the last error loading the model module, otherwise an empty string.
  procedures_name(self)
Accessor.
  procedures_error(self)
Return the exception text of the last error loading the procedures module, otherwise an empty string.
  db_connection_name(self)
Return the name of the databse connection used for this mode.
  _ds(self)
Return an ORM datasource object or None if self._db_connection_name is not set.
  _module_mtime(self, module)
Return the modification time of the module's source(!) file.
  __before_publishing_traverse__(self, object, REQUEST)
  index_html(self, *args, **kw)
Just call self
  procedure_url(self, procedure_name, **kw)
Return an absolute_url to this object + procedure_name + params in kw

Class Variables [hide private]
  meta_type = "ORM Procedure Module"
  manage_form = PageTemplateFile("www/ORMProcedureModule.pt", global...
  manage_options = Folder.manage_options [0], {"label": "Edit", "action...
  __ac_permissions__ = 'View management screens', ('manage_form',), ('Chang...
  ZopeTime
  HelpSys
  security = ClassSecurityInfo()

Method Details [hide private]

__init__(self, id, model_name, procedures_name, db_connection_name, session_on, REQUEST=None)
(Constructor)

source code 
None

manage_edit(self, model_name, procedures_name, db_connection_name, session_on, REQUEST=None)

source code 
Modify the ORMMode object.

__call__(self, *args, **kw)
(Call operator)

source code 
Call the mode function and do cache management.

om_exec(self, *args, **kw)

source code 
None

_procedure_class(self, formdata)

source code 
None

session_on(self)

source code 
Return True if this adapter provied the mode functions with a session object

model_name(self)

source code 
Accessor. Return the name of the Python module where the mode function resides.

model_error(self)

source code 
Return the exception text of the last error loading the model module, otherwise an empty string.

procedures_name(self)

source code 
Accessor. Return the name of the Python module with the procedures in it.

procedures_error(self)

source code 
Return the exception text of the last error loading the procedures module, otherwise an empty string.

db_connection_name(self)

source code 
Return the name of the databse connection used for this mode.

_ds(self)

source code 
Return an ORM datasource object or None if self._db_connection_name is not set.

_module_mtime(self, module)

source code 
Return the modification time of the module's source(!) file. The time is returned as the number of seconds since the epoch.

__before_publishing_traverse__(self, object, REQUEST)

source code 
None

index_html(self, *args, **kw)

source code 
Just call self

procedure_url(self, procedure_name, **kw)

source code 
Return an absolute_url to this object + procedure_name + params in kw

Class Variable Details [hide private]

meta_type

None
Value:
"ORM Procedure Module"                                                 
      

manage_form

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

manage_options

None
Value:
Folder.manage_options [0], {"label": "Edit", "action": "manage_form"},
+ Folder.manage_options [1:]+ Cacheable.manage_options                 
      

__ac_permissions__

None
Value:
'View management screens', ('manage_form',), ('Change External Methods
', ('manage_edit',)), ('Call ORM mode function', ('__call__',)),       
      

ZopeTime

HelpSys

security

None
Value:
ClassSecurityInfo()