Package Modeling :: Module dynamic
[show private | hide private]
[frames | no frames]

Module Modeling.dynamic

Documentation not written yet --see doc/README.dynamic.txt for details.
Classes
CustomObjectMeta  

Exceptions
EntityNotFound  

Function Summary
  add_entityName(aClass, entity)
Adds to the new class the method entityName() suitable for entity
  add_getter(aClass, prop)
Builds and adds to aClass the getter for property prop
  add_getters(aClass, entity)
Adds getters to aClass, one for each entity.classProperties()
  add_init(aClass, entity)
Adds to the class the method __init__() suitable for entity
  add_properties(aClass, entity)
  add_setter(aClass, prop)
Builds and adds to aClass the setter for property prop
  add_setters(aClass, entity)
Adds setters to aClass, one for each entity.classProperties()
  addCustomObject(bases)
  build(model, define_properties)
Takes a model and builds the corresponding package and modules
  build_with_metaclass(model, define_properties, verbose)
  check_oldinit(classname, oldinit, entity)
Check that the already defined __init__ can be called without any arguments
  checkEntityName(classname, bases, classdict)
  define_entityName(aClass, entity)
  define_getter(prop, classdict)
  define_getters(entity, classname, classdict)
  define_init(entity, classname, classdict)
  define_properties(entity, classname, classdict)
  define_setter(prop, classdict)
  define_setters(entity, classname, classdict)
  function_for_code(c, func_name)
  getter_code(prop)
  info(classdict, msg)
  init_code(entity, init)
init: the original __init__, if available
  instance_method(aClass, c, func_name)
  setters_code(prop)
returns: ( (name, code_string), ...

Function Details

add_entityName(aClass, entity)

Adds to the new class the method entityName() suitable for entity

add_getter(aClass, prop)

Builds and adds to aClass the getter for property prop

add_getters(aClass, entity)

Adds getters to aClass, one for each entity.classProperties()

add_init(aClass, entity)

Adds to the class the method __init__() suitable for entity

add_setter(aClass, prop)

Builds and adds to aClass the setter for property prop

add_setters(aClass, entity)

Adds setters to aClass, one for each entity.classProperties()

build(model, define_properties=0)

Takes a model and builds the corresponding package and modules

Parameters:
model - either a Modeling.Model.Model or a Modeling.PyModel.Model. Please note that if it is a pymodel, its method build() is called
define_properties -

check_oldinit(classname, oldinit, entity)

Check that the already defined __init__ can be called without any arguments

init_code(entity, init=None)

init: the original __init__, if available

setters_code(prop)

returns: ( (name, code_string), ... )

Generated by Epydoc 2.1 on Sat Mar 4 13:36:26 2006 http://epydoc.sf.net