View | Details | Raw Unified | Return to bug 25203
Collapse All | Expand All

(-)modules/univention/admin/syntax.py (-3 / +3 lines)
Lines 427-433 Link Here
427
	def parse(self, text):
427
	def parse(self, text):
428
		if isinstance( text, bool ):
428
		if isinstance( text, bool ):
429
			return text and '1' or '0'
429
			return text and '1' or '0'
430
		return simple.parse( text )
430
		return super( boolean, self ).parse( text )
431
431
432
class filesize(simple):
432
class filesize(simple):
433
	"""
433
	"""
Lines 742-748 Link Here
742
			if re.match("(^/%s$)|(^/%s/)" % (path, path), os.path.realpath(text)):
742
			if re.match("(^/%s$)|(^/%s/)" % (path, path), os.path.realpath(text)):
743
				raise univention.admin.uexceptions.valueError, _('Path may not start with "%s" !') % path
743
				raise univention.admin.uexceptions.valueError, _('Path may not start with "%s" !') % path
744
744
745
		return simple.parse( text )
745
		return super( sharePath, self ).parse( text )
746
746
747
class passwd(simple):
747
class passwd(simple):
748
	min_length=8
748
	min_length=8
Lines 1087-1093 Link Here
1087
1087
1088
	@classmethod
1088
	@classmethod
1089
	def parse( self, text ):
1089
	def parse( self, text ):
1090
		simple.parse( text )
1090
		super( MAC_Address, self ).parse( text )
1091
		return text.replace( '-', ':' ).lower()
1091
		return text.replace( '-', ':' ).lower()
1092
1092
1093
class DHCP_HardwareAddress( complex ):
1093
class DHCP_HardwareAddress( complex ):

Return to bug 25203