astro.main.DiaConfig (version @(#)$Revision: 1.4 $)
index
/astro-wise/AWEHOME/AWBASE/astro/main/DiaConfig.py

 
Classes
       
astro.main.Config.Config(common.database.DBMain.DBObject)
DiaAgaConfig
DiaGetpsfConfig
DiaGetvarConfig
DiaMstackConfig
DiaPhotConfig

 
class DiaAgaConfig(astro.main.Config.Config)
    
Method resolution order:
DiaAgaConfig
astro.main.Config.Config
common.database.DBMain.DBObject
__builtin__.object

Data descriptors defined here:
BAD_GROWRAD1
[None]
BAD_GROWRAD2
[None]
BAD_VALUE
[None]
BKG_DEG
[None]
DEG_1
[None]
DEG_INC
[None]
DOMAIN_MODE
[None]
DOM_HW
[None]
DOM_THRESH
[None]
GAIN
[None]
KER_HW
[None]
MAX_CHI2
[None]
MAX_NITER
[None]
MIN_AREA
[None]
MIN_AREA_DOM
[None]
MIN_LEVEL
[None]
MIN_NKEEP
[None]
MOHW
[None]
NDOM_X
[None]
NDOM_Y
[None]
NX
[None]
NX_0
[None]
NY
[None]
NY_0
[None]
N_COMP
[None]
N_ITER_DOM
[None]
N_SIG
[None]
N_SIG_DOM
[None]
SAT_LEVEL
[None]
SIG_GAUSS_1
[None]
SIG_GAUSS_INC
[None]
VERBOSE
[None]
WDEG_SPATIAL
[None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established

Data and other attributes defined here:
program_name = 'DIA.AGA'

Methods inherited from astro.main.Config.Config:
__init__(self, filename=None)
filename: name of file to save configuration to
clone(self)
get_defaults(self)
Return a list of tuples (keyword, value)
get_kw_dict(self)
Return a dictionary of parameters and their values.
get_kw_list(self)
Return a list of (parameters, value) tuples.
is_config(self)
Test for being a configuration.
remove(self, filename=None)
Delete the settings file.
 
filename: name of file to delete
 
NOTE: If filename is given, it is used instead of self.filename.
      If filename is None or if it doesn't exist, nothing will be
      done.
save(self, filename=None)
Save the settings to a file.
 
filename: name of file to write settings to
 
NOTE: If filename is given, it is used instead of self.filename.
      If neither are given, an error results.
set_defaults(self)
Set object attributes to their default values.
 
NOTE: Default values are defined in the Config module.
set_from_dict(self, config)
Set object attributes from a dictionary.
 
config: a dictionary containing the keywords as keys and values as
        key values
set_from_keys(self, **config)
Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
set_from_list(self, config_list)
Set object attributes from a list of tuples.
 
config_list: a list of tuples (keyword, value)
show(self)
Show the settings as they will be written to the file.
update_dict(self, class_parameter_dict)
Method for setting class specific parameters and updating the class
parameter dictionary.
 
class_parameter_dict: the class parameter dictionary, with class
                      specific parameter values
 
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
pickle_id = None

 
class DiaGetpsfConfig(astro.main.Config.Config)
    
Method resolution order:
DiaGetpsfConfig
astro.main.Config.Config
common.database.DBMain.DBObject
__builtin__.object

Data descriptors defined here:
ANRAD1
[None]
ANRAD2
[None]
APRAD
[None]
BKG_FRAC
[None]
CONTRAST
[None]
FITRAD
[None]
GAIN
[None]
ISOHW
[None]
ISO_OFF
[None]
ISO_SLO
[None]
MAXHW
[None]
MAX_THRESH
[None]
MIN_FLUX
[None]
MIN_LEVEL
[None]
MIN_NBOX
[None]
NBOX_X
[None]
NBOX_Y
[None]
NDEG_LOCAL
[None]
NDEG_SPAT
[None]
NGAUSS
[None]
NITER
[None]
NITER_INIT
[None]
NOBJ_INIT
[None]
NPSF_MAX
[None]
NSIG_CLIP
[None]
NSIG_DETECT
[None]
NSIG_RAT
[None]
PEAKHW
[None]
PSFHW
[None]
PSF_AX
[None]
PSF_AY
[None]
PSF_COS
[None]
PSF_SIN
[None]
RAT_THRESH
[None]
RECENTER
[None]
SAT_LEVEL
[None]
SIGMA_INC
[None]
SIGMA_MSCALE
[None]
VERBOSE
[None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established

Data and other attributes defined here:
program_name = 'DIA.GetPSF'

Methods inherited from astro.main.Config.Config:
__init__(self, filename=None)
filename: name of file to save configuration to
clone(self)
get_defaults(self)
Return a list of tuples (keyword, value)
get_kw_dict(self)
Return a dictionary of parameters and their values.
get_kw_list(self)
Return a list of (parameters, value) tuples.
is_config(self)
Test for being a configuration.
remove(self, filename=None)
Delete the settings file.
 
filename: name of file to delete
 
NOTE: If filename is given, it is used instead of self.filename.
      If filename is None or if it doesn't exist, nothing will be
      done.
save(self, filename=None)
Save the settings to a file.
 
filename: name of file to write settings to
 
NOTE: If filename is given, it is used instead of self.filename.
      If neither are given, an error results.
set_defaults(self)
Set object attributes to their default values.
 
NOTE: Default values are defined in the Config module.
set_from_dict(self, config)
Set object attributes from a dictionary.
 
config: a dictionary containing the keywords as keys and values as
        key values
set_from_keys(self, **config)
Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
set_from_list(self, config_list)
Set object attributes from a list of tuples.
 
config_list: a list of tuples (keyword, value)
show(self)
Show the settings as they will be written to the file.
update_dict(self, class_parameter_dict)
Method for setting class specific parameters and updating the class
parameter dictionary.
 
class_parameter_dict: the class parameter dictionary, with class
                      specific parameter values
 
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
pickle_id = None

 
class DiaGetvarConfig(astro.main.Config.Config)
    
Method resolution order:
DiaGetvarConfig
astro.main.Config.Config
common.database.DBMain.DBObject
__builtin__.object

Data descriptors defined here:
ANRAD1
[None]
ANRAD2
[None]
APRAD
[None]
BAD_MARGIN
[None]
BAD_VALUE
[None]
BKG_MODE
[None]
CENTER_HW
[None]
C_MIN
[None]
ERR_CODE
[None]
EXPTIME
[None]
FILTER_HW
[None]
FITRAD
[None]
FWHM_FRAC
[None]
GAIN
[None]
ID_RAD
[None]
ISOHW
[None]
ISO_OFF
[None]
ISO_SLO
[None]
LIM_RATIO
[None]
MIN_LEVEL
[None]
MOHW
[None]
NCONS_VAR1
[None]
NOBJ_INIT
[None]
NORMRAD
[None]
NPTS_VAR2
[None]
NSIG_BKG
[None]
NSIG_VAR1
[None]
NSIG_VAR2
[None]
SAT_LEVEL
[None]
SMHW
[None]
TMP_FILE
[None]
VERBOSE
[None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established

Data and other attributes defined here:
program_name = 'DIA.GetVar'

Methods inherited from astro.main.Config.Config:
__init__(self, filename=None)
filename: name of file to save configuration to
clone(self)
get_defaults(self)
Return a list of tuples (keyword, value)
get_kw_dict(self)
Return a dictionary of parameters and their values.
get_kw_list(self)
Return a list of (parameters, value) tuples.
is_config(self)
Test for being a configuration.
remove(self, filename=None)
Delete the settings file.
 
filename: name of file to delete
 
NOTE: If filename is given, it is used instead of self.filename.
      If filename is None or if it doesn't exist, nothing will be
      done.
save(self, filename=None)
Save the settings to a file.
 
filename: name of file to write settings to
 
NOTE: If filename is given, it is used instead of self.filename.
      If neither are given, an error results.
set_defaults(self)
Set object attributes to their default values.
 
NOTE: Default values are defined in the Config module.
set_from_dict(self, config)
Set object attributes from a dictionary.
 
config: a dictionary containing the keywords as keys and values as
        key values
set_from_keys(self, **config)
Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
set_from_list(self, config_list)
Set object attributes from a list of tuples.
 
config_list: a list of tuples (keyword, value)
show(self)
Show the settings as they will be written to the file.
update_dict(self, class_parameter_dict)
Method for setting class specific parameters and updating the class
parameter dictionary.
 
class_parameter_dict: the class parameter dictionary, with class
                      specific parameter values
 
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
pickle_id = None

 
class DiaMstackConfig(astro.main.Config.Config)
    
Method resolution order:
DiaMstackConfig
astro.main.Config.Config
common.database.DBMain.DBObject
__builtin__.object

Data descriptors defined here:
BAD_VALUE
[None]
BKG_FRAC
[None]
HIST_HIGH
[None]
HIST_LOW
[None]
HIST_NBIN
[None]
MAX_SCALE
[None]
MEDIAN
[None]
MIN_LEVEL
[None]
MIN_NGOOD
[None]
MIN_SCALE
[None]
NBIN_SMOOTH
[None]
NSIG
[None]
NX0
[None]
NY
[None]
NY0
[None]
SAT_LEVEL
[None]
THRESHOLD
[None]
VERBOSE
[None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established

Data and other attributes defined here:
program_name = 'DIA.MStack'

Methods inherited from astro.main.Config.Config:
__init__(self, filename=None)
filename: name of file to save configuration to
clone(self)
get_defaults(self)
Return a list of tuples (keyword, value)
get_kw_dict(self)
Return a dictionary of parameters and their values.
get_kw_list(self)
Return a list of (parameters, value) tuples.
is_config(self)
Test for being a configuration.
remove(self, filename=None)
Delete the settings file.
 
filename: name of file to delete
 
NOTE: If filename is given, it is used instead of self.filename.
      If filename is None or if it doesn't exist, nothing will be
      done.
save(self, filename=None)
Save the settings to a file.
 
filename: name of file to write settings to
 
NOTE: If filename is given, it is used instead of self.filename.
      If neither are given, an error results.
set_defaults(self)
Set object attributes to their default values.
 
NOTE: Default values are defined in the Config module.
set_from_dict(self, config)
Set object attributes from a dictionary.
 
config: a dictionary containing the keywords as keys and values as
        key values
set_from_keys(self, **config)
Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
set_from_list(self, config_list)
Set object attributes from a list of tuples.
 
config_list: a list of tuples (keyword, value)
show(self)
Show the settings as they will be written to the file.
update_dict(self, class_parameter_dict)
Method for setting class specific parameters and updating the class
parameter dictionary.
 
class_parameter_dict: the class parameter dictionary, with class
                      specific parameter values
 
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
pickle_id = None

 
class DiaPhotConfig(astro.main.Config.Config)
    
Method resolution order:
DiaPhotConfig
astro.main.Config.Config
common.database.DBMain.DBObject
__builtin__.object

Data descriptors defined here:
ANRAD1
[None]
ANRAD2
[None]
APRAD
[None]
BAD_VALUE
[None]
BKG_MODE
[None]
ERR_CODE
[None]
EXPTIME
[None]
FITRAD
[None]
GAIN
[None]
MIN_LEVEL
[None]
NORMRAD
[None]
NSIG_BKG
[None]
READ_NOISE
[None]
SAT_LEVEL
[None]
VERBOSE
[None]
object_id
The object identifier
 
The object identifier is an attribute shared by all persistent
instances. It is the prime key, by which object identity is established

Data and other attributes defined here:
program_name = 'DIA.Phot'

Methods inherited from astro.main.Config.Config:
__init__(self, filename=None)
filename: name of file to save configuration to
clone(self)
get_defaults(self)
Return a list of tuples (keyword, value)
get_kw_dict(self)
Return a dictionary of parameters and their values.
get_kw_list(self)
Return a list of (parameters, value) tuples.
is_config(self)
Test for being a configuration.
remove(self, filename=None)
Delete the settings file.
 
filename: name of file to delete
 
NOTE: If filename is given, it is used instead of self.filename.
      If filename is None or if it doesn't exist, nothing will be
      done.
save(self, filename=None)
Save the settings to a file.
 
filename: name of file to write settings to
 
NOTE: If filename is given, it is used instead of self.filename.
      If neither are given, an error results.
set_defaults(self)
Set object attributes to their default values.
 
NOTE: Default values are defined in the Config module.
set_from_dict(self, config)
Set object attributes from a dictionary.
 
config: a dictionary containing the keywords as keys and values as
        key values
set_from_keys(self, **config)
Set object attributes from keyword arguments (e.g., keyword0=value0,
keyword1=value1, etc.).
set_from_list(self, config_list)
Set object attributes from a list of tuples.
 
config_list: a list of tuples (keyword, value)
show(self)
Show the settings as they will be written to the file.
update_dict(self, class_parameter_dict)
Method for setting class specific parameters and updating the class
parameter dictionary.
 
class_parameter_dict: the class parameter dictionary, with class
                      specific parameter values
 
A parameter in the class_parameter_dict can be a plain value
or a callable, which will be called for the value.

Methods inherited from common.database.DBMain.DBObject:
__del__(self)
Destructor for the DBObject
 
This destructor is called by the garbage collector for the transient
part of the DBObject. When it is called it calls the gc_transient()
method of the DBProxy implementation. The implementation of the
gc_transient() method can then decide what to do with the persistent
counterpart.
E.g. the database can be synchronized with its transient counterpart.
Another possibility is that the gc_transient() implementation checks
whether any attributes of a read-only object have changed since an
object was fetched from the database. If there are differences an
exception can be raised.
__reduce__(self)
Method necessary to create picklable objects
 
This mehod return a tuple containg a function object used for
unpickling and a picklable state tuple, to be used as argument
to the unpickle function. If necessary this object is registered
in the pickle cache
as_dict(self, seqnr=1, dependency_name='', dictionary={}, allow_lazy_typed_list=False)
Method much like the info method, but returns a dictionary.
 
Dictionary looks like:
  {'<classname>.<property1_name>.<property2_name>': value,
   '<classname>.<property2_name>.<property3_name>': value}
 
Problem: infinite loops for cold/flat dependencies. It seems a maximum
recursion depth limits the problem.
commit(self)
Commits object including objects that are referenced and have been changed.
 
If this object refers to other persistent object a commit() ensures that
 
1. ALL changes to the object and referred objects are made persistent.
2. NONE of the changed object and referred objects are made persistent.
Under normal circumstances only the first thing should ever happen.
If the second case occurs it is almost certainly because of some bug in
the routine that implements the DBProxy interface.
get_creator(self)
Returns the name of the user who created this object.
get_persistent(self)
get_project(self)
Returns the name of the project to which this object belongs.
info(self, level=0, doc=False, _indent=0, _printclass=True)
Print the values of all persistent properties of the object.
 
level       : level of introspection
doc         : display docstrings for attributes
_indent     : internal parameter used for formatting
_printclass : internal parameter used for formatting
inverse_objects(self, max_results=100)
Iterate through and return all objects that use the current object
max_results     The maximum number of objects returned per query
inverse_query(self)
go through all inverse properties to see if this object is used
persists(self)
Returns whether an object is already made persistent or transient.
recommit(self)
Commits changes to an object, without following links.

Class methods inherited from common.database.DBMain.DBObject:
get_inverse_properties(cls, props=None) from common.database.DBMeta.DBObjectMeta
return all inverse properties 
that are all the properties that point to this class

Data descriptors inherited from common.database.DBMain.DBObject:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from common.database.DBMain.DBObject:
__metaclass__ = <class 'common.database.DBMeta.DBObjectMeta'>
This is the metaclass for persistent classes
 
Provides:
  __new__ -- manages class construction
  __call__ -- manages object instantiation
database = <common.database.DBOracle.DBProxy instance at 0xfd9a70>
pickle_id = None

 
Functions
       
create_config(config_key, filename=None, class_defaults={})
Factory function for configurations.
 
All configurations should be created from here.
 
    config_key: key corresponding to a particular Config class (see
                config_dict)
      filename: optional filename the configuration can be written to
class_defaults: dictionary of {parameter_name: parameter_value, ...}

 
Data
        __version__ = '@(#)$Revision: 1.4 $'
config_dict = {'diaaga': <class 'astro.main.DiaConfig.DiaAgaConfig'>, 'diagetpsf': <class 'astro.main.DiaConfig.DiaGetpsfConfig'>, 'diagetvar': <class 'astro.main.DiaConfig.DiaGetvarConfig'>, 'diamstack': <class 'astro.main.DiaConfig.DiaMstackConfig'>, 'diaphot': <class 'astro.main.DiaConfig.DiaPhotConfig'>}