Home | Trees | Index | Help |
|
---|
Package dopal ::
Module scripting ::
Class ScriptEnvironment
|
|
Method Summary | |
---|---|
Note - this is a module-private constructor. | |
alert(self,
message,
alert_type,
repeatable)
| |
get_data_dir(self,
create_dir)
| |
get_data_file_path(self,
create_dir)
| |
get_log_config_path(self,
create_dir)
| |
get_log_file_path(self,
create_dir)
| |
load_data(self)
| |
save_data(self,
data)
|
Instance Variable Summary | |
---|---|
connection : The AzureusObjectConnection to work with. | |
default_repeatable_alerts : Indicates whether alerts are repeatable or not by default. | |
filename : The filename (no directory information included) of where persistent
data for this object should be stored - default is
data.dpl . | |
_lazyattr |
log_channel : The logger channel object to send messages to. |
logger : The logger instance to log data to. | |
name : The name of the script. |
Method Details |
---|
__init__(self,
name,
data_file='data.dpl')
Note - this is a module-private constructor. The method
signature for this class may change without notice.
|
Instance Variable Details |
---|
connectionThe AzureusObjectConnection to work with. The connection should already be in an established state. connection may be None if ext_run is configured that way. |
default_repeatable_alertsIndicates whether alerts are repeatable or not by default. This can be set explicitly on the object, but it can also be overridden when calling thealert method. In most cases, this value
will be None when instantiated, and will be automatically
determined the first time the alert method is called.
|
log_channelThe logger channel object to send messages to. May beNone . For convenience the alert method is available on
ScriptEnvironment messages.
|
loggerThe logger instance to log data to. May beNone .
|
nameThe name of the script. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 03 14:22:33 2006 | http://epydoc.sf.net |