;ò
ådê@c           @   s\   e  a d  k l Z d   Z d k l Z d e f d     YZ d k	 Td Z
 d Z d Z d	 S(
   (   s   logc           C   s"   t  t j o t   a  n t  Sd  S(   N(   s   _devFacs   Nones   DeviceFactory(    (    (    sb   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/NCDeviceFactory.pys   getDeviceFactory   s     (   s   Devices   DeviceFactoryc           B   s    t  Z e d  Z e d  Z RS(   Nc         C   s  t  i  d d t |  t |  f  t | t  o t d  n | oC |  i	 |  o t  i  d d |  d  Sqh  d | <|  | <nt |  i	 |  o |  | i	 |  o" t  i  d d | | f  d  Sn. |  i	 |  o h  |  | <n | |  | | <d  S(   Ni   s   Register %s %ss-   first argument has to be a subclass of Devicei   s"   KeyError, %s is already registeredi    s%   KeyError, %s.%s is already registered(
   s   logs   strs   theclasss   devtypes
   issubclasss   Devices
   ValueErrors   subtypes   selfs   has_key(   s   selfs   theclasss   devtypes   subtype(    (    sb   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/NCDeviceFactory.pys   register#   s    &$c         C   sh   |  i |  o t i d d |  t Sn | o |  | i |  o |  | | Sn |  | d Sd  S(   Ni   s   Error: %s not in DeviceFactory!i    (   s   selfs   has_keys   devtypes   logs   Devices   subtype(   s   selfs   devtypes   subtype(    (    sb   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/NCDeviceFactory.pys   getDeviceClass;   s    (   s   __name__s
   __module__s   Nones   registers   getDeviceClass(    (    (    sb   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/NCDeviceFactory.pys   DeviceFactory"   s   (   s   *s    Harald Hoyer <harald@redhat.com>s   $Date: 2004/07/06 08:09:09 $s   $Revision: 1.9.4.1 $N(   s   Nones   _devFacs   netconfpkg.NC_functionss   logs   getDeviceFactorys   netconfpkg.NCDevices   Devices   dicts   DeviceFactorys   netconfpkg.pluginss
   __author__s   __date__s   __version__(   s   logs   DeviceFactorys
   __author__s   __date__s   Devices   getDeviceFactorys   __version__(    (    sb   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/NCDeviceFactory.pys   ?   s   		#