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

Class ORMProcedure

source code

                OFS.SimpleItem.Item --+
                                      |
               Acquisition.Implicit --+
                                      |
                OFS.Cache.Cacheable --+
                                      |
             Persistence.Persistent --+
                                      |
OFS.PropertyManager.PropertyManager --+
                                      |
                                     ORMProcedure

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, class_name, db_connection_name, session_on, REQUEST=None)
  manage_edit(self, model_name, procedures_name, class_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.
  class_name(self)
Return the class name
  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.
  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"
  manage_form = PageTemplateFile("www/ORMProcedure.pt", globals())
  manage_options = {"label": "Edit", "action": "manage_form"},+ Item.ma...
  ZopeTime
  HelpSys
  security = ClassSecurityInfo()

Method Details [hide private]

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

source code 
None

manage_edit(self, model_name, procedures_name, class_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.

class_name(self)

source code 
Return the class name

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.

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"                                                        
      

manage_form

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

manage_options

None
Value:
{"label": "Edit", "action": "manage_form"},+ Item.manage_options+ Cach
eable.manage_options+ RoleManager.manage_options+ PropertyManager.mana
ge_options                                                             
      

ZopeTime

HelpSys

security

None
Value:
ClassSecurityInfo()