~nacl/wicd/aqua-curses

« back to all changes in this revision

Viewing changes to plugins/dhcpcd/__init__.py

  • Committer: Adam Blackburn
  • Date: 2009-07-04 23:27:35 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: compwiz18@gmail.com-20090704232735-8ho5040eyhseb8ur
moved dhcp service and config service to wicd.services

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
class Dhcpcd(object):
10
10
    name = 'Dhcpcd'
11
11
 
12
 
def __enable(type, wicd, *args):
13
 
    event.remove_callback(__enable, 'dhcp-service-loaded')
 
12
def enable(wicd):
14
13
    providers.register('dhcp', Dhcpcd)
15
14
 
16
 
def enable(wicd):
17
 
    event.add_callback(__enable, 'dhcp-service-loaded')
18
 
 
19
15
def disable(wicd):
20
16
    providers.unregister('dhcp', Dhcpcd)