lib/generators/Generator.py
def parseStyle(self, style=''):
		"""Parses a style string into its constituent key:value pairs.

		@param style: The style string to parse
		"""

		styles = style.split(';')
		styledict = {}
		for pair in styles:
			if len(pair) > 0:
				key, value = pair.split(':')
				styledict[key.strip()] = value.strip()

		return styledict
Parses a style string into its constituent key:value pairs.

		@param style: The style string to parse
		
Parses a style string into its constituent key:value pairs.
Parses a style string into its constituent key : value pairs .
def parseStyle(self, style=''):
		styles = style.split(';')
		styledict = {}
		for pair in styles:
			if len(pair) > 0:
				key, value = pair.split(':')
				styledict[key.strip()] = value.strip()
		return styledict
def parseStyle ( self , style = '' ) : styles = style . split ( ';' ) styledict = { } for pair in styles : if len ( pair ) > 0 : key , value = pair . split ( ':' ) styledict [ key . strip ( ) ] = value . strip ( ) return styledict
Parses a style string into its constituent key:value pairs.
Parses a style string into its constituent key : value pairs .
"""Parses a style string into its constituent key:value pairs.

		@param style: The style string to parse
		"""
self
style
The style string to parse
The style string to parse