Exemple #1
0
		def __init__(self, *args, **kwargs):
			super(HdfsForm, self).__init__(*args, **kwargs)
			hdfssite=ConfigurationData().getInitConf("hadoop2.2.0", "0", "hdfs-site.xml")
			for s in hdfssite:
				self.fields[s.name]=forms.CharField(widget=forms.TextInput(attrs={'value':s.value,'style':'margin:5px;',}))
				self.fields[s.name].help_text=s.description
				self.fields[s.name].value=s.value
Exemple #2
0
	def __init__(self, *args, **kwargs):
		super(Hadoop2Form, self).__init__(*args, **kwargs)	
		hadoopconf=ConfigurationData().getComConf("hadoop2.2.0", "0")
		for s in hadoopconf:
			self.fields[s.name]=forms.CharField(widget=forms.TextInput(attrs={'value':s.value,'style':'margin:5px;',}))