Re: ppp support
- From: "Vitja Makarov" <vitja makarov gmail com>
- To: "Dan Williams" <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: ppp support
- Date: Mon, 3 Mar 2008 22:53:43 +0300
Yeah I understand this, I mean something like this:
class PPP(Model):
options...
class PPPoE(PPP):
options....
class PPPDaemon(Controller):
def start(self, model):
pass
class PPPoE(PPPDaemon):
def start(self, model):
....busy
super(PPPDaemon, self).start(model)
But nm-ppp-manager implementation now lacks subclassing. For example
create_pppd_cmd_line() should be virtual. Please take a look at my
realization, and say where I'm wrong? I was witting it like widgets so
all the property are inside object at the service side, so they could
be simply pushed via dict/hash. Models are generated automatically
from the classes. Client should use them as a hit, while service
should always verify. One more thing we can call serial device not by
unix name but by the HAL udi.
vitja.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]