lib/generators/Generator.py
def addStyleToClass(self, classname=u'', style=u''):
		"""Applies a style to a given class name.

		@param classname: The classname to apply to
		@param style: The style string
		"""

		classes = []
		for oneclass in classname.split():
			valid = re.match(r'^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$', oneclass)
			if valid:
				classes.append('.' + oneclass)

		self.styles[', '.join(classes)] = self.parseStyle(style)
Applies a style to a given class name.

		@param classname: The classname to apply to
		@param style: The style string
		
Applies a style to a given class name.
Applies a style to a given class name .
def addStyleToClass(self, classname=u'', style=u''):
		classes = []
		for oneclass in classname.split():
			valid = re.match(r'^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$', oneclass)
			if valid:
				classes.append('.' + oneclass)
		self.styles[', '.join(classes)] = self.parseStyle(style)
def addStyleToClass ( self , classname = u'' , style = u'' ) : classes = [ ] for oneclass in classname . split ( ) : valid = re . match ( r'^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$' , oneclass ) if valid : classes . append ( '.' + oneclass ) self . styles [ ', ' . join ( classes ) ] = self . parseStyle ( style )
Applies a style to a given class name.
Applies a style to a given class name .
"""Applies a style to a given class name.

		@param classname: The classname to apply to
		@param style: The style string
		"""
self
classname
The classname to apply to
The classname to apply to
style
The style string
The style string