/[gli]/trunk/src/GLIClientConfiguration.py
Gentoo

Diff of /trunk/src/GLIClientConfiguration.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 614 Revision 615
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIClientConfiguration.py,v 1.29 2005/05/28 01:57:43 codeman Exp $ 4$Id: GLIClientConfiguration.py,v 1.30 2005/06/01 00:17:24 agaffney Exp $
5Copyright 2004 Gentoo Technologies Inc. 5Copyright 2004 Gentoo Technologies Inc.
6 6
7The GLIClientConfiguration module contains the ClientConfiguration class 7The GLIClientConfiguration module contains the ClientConfiguration class
8which is a singleton class that represents configuration data that is 8which is a singleton class that represents configuration data that is
9used by the installer client during installation. Data that is part of 9used by the installer client during installation. Data that is part of
120 'profile-uri': self.get_profile_uri, 120 'profile-uri': self.get_profile_uri,
121 'root-mount-point': self.get_root_mount_point, 121 'root-mount-point': self.get_root_mount_point,
122 'root-passwd': self.get_root_passwd, 122 'root-passwd': self.get_root_passwd,
123 'rsync-proxy': self.get_rsync_proxy, 123 'rsync-proxy': self.get_rsync_proxy,
124 } 124 }
125 data = "<client-configuration>" 125 self.data = "<client-configuration>"
126 126
127 for key in fntable.keys(): 127 for key in fntable.keys():
128 data += "<%s>%s</%s>" % (key, fntable[key](), key) 128 self.data += "<%s>%s</%s>" % (key, fntable[key](), key)
129 129
130 # Serialize the special cases. 130 # Serialize the special cases.
131 self.serialize_kernel_modules() 131 self.serialize_kernel_modules()
132 132
133 #Finish by putting it all in nice XML. 133 #Finish by putting it all in nice XML.
134 dom = xml.dom.minidom.parseString(data) 134 dom = xml.dom.minidom.parseString(self.data)
135 return dom.toprettyxml() 135 return dom.toprettyxml()
136 136
137 ############################################################################ 137 ############################################################################
138 #### Architecture Template 138 #### Architecture Template
139 139
274 274
275 ## 275 ##
276 # Serialization for the kernel module list. joins together the modules. 276 # Serialization for the kernel module list. joins together the modules.
277 def serialize_kernel_modules(self): 277 def serialize_kernel_modules(self):
278 # Special Case the kernel modules 278 # Special Case the kernel modules
279 data += "<kernel-modules>%s</kernel-modules>" % string.join(self.get_kernel_modules()) 279 self.data += "<kernel-modules>%s</kernel-modules>" % string.join(self.get_kernel_modules())
280 data += "</client-configuration>" 280 self.data += "</client-configuration>"
281 281
282 ############################################################################ 282 ############################################################################
283 #### Log File Location 283 #### Log File Location
284 284
285 ## 285 ##

Legend:
Removed from v.614  
changed lines
  Added in v.615

  ViewVC Help
Powered by ViewVC 1.1.20