Class w.c.o._.LinuxPlugin(UnixPlugin):

Part of wader.common.oses View In Hierarchy

OSPlugin for Linux-based distros
Method __init__ Undocumented
Method check_dialer_assumptions Returns a message with whatever error happened configuring the dialer
Method check_permissions Undocumented
Method get_connection_args Returns the args necessary to start the dialer
Method get_disconnection_args Returns the args necessary to stop the dialer
Method get_iface_stats Returns a list with bits recv, sent for iface
Method is_valid Returns True if we are on the given OS/Distro

Inherited from UnixPlugin:

Method get_timezone Returns the timezone of the OS
Method get_doc_dir Returns the path where documentation is stored at

Inherited from OSPlugin (via UnixPlugin):

Method are_privileges_needed Sets self.privileges_needed to True if pppd is suid
Method get_tzinfo Returns a tzinfo instance relative to the timezone
Method initialize Undocumented
def __init__(self):
Undocumented
def check_dialer_assumptions(self):

Returns a message with whatever error happened configuring the dialer

It returns a tuple of message, detail if something went wrong and returns None if every dialer assumption is met
def check_permissions(self):
Undocumented
def get_connection_args(self, dialer):

Returns the args necessary to start the dialer

Some distributions ship with a setuid pppd, others don't. Thus what we return here will mainly depend on each distribution.
def get_disconnection_args(self, dialer):
Returns the args necessary to stop the dialer
def get_iface_stats(self, iface='ppp0'):
Returns a list with bits recv, sent for iface
def is_valid(self, os_info=lsb_info):
Returns True if we are on the given OS/Distro
API Documentation for wader-core, generated by pydoctor at 2008-08-27 16:53:37.