def parseClass(cls_, chunk): """ """ curItem = Class() lines = chunk.splitlines() for line in lines: if not len(line) or line[0] == '\n' or \ line.startswith(TYPE_HEADER + 'Class'): continue elif line[0] == 'N': curItem.name = line[1:] elif line[0] == 'D': curItem.description = line[1:] return curItem
def parseClass(cls_, chunk): """ """ curItem = Class() lines = chunk.split('\n') for line in lines: if not len(line) or line[0] == '\n' or \ line.startswith('!Type:Class'): continue elif line[0] == 'N': curItem.name = line[1:] elif line[0] == 'D': curItem.description = line[1:] return curItem
def parseSecurity(cls_, chunk): """ """ curItem = Class() lines = chunk.split('\n') for line in lines: if not len(line) or line[0] == '\n' or \ line.startswith('!Type:Security'): continue elif line[0] == 'N': curItem.name = line[1:] elif line[0] == 'T': curItem.account_type = line[1:] return curItem
def parseClass(cls_, chunk, date_format=DEFAULT_DATE_FORMAT, decimal_sep=DEFAULT_DECIMAL_SEP, thousands_sep=DEFAULT_THOUSANDS_SEP): curItem = Class() lines = chunk.split('\n') for line in lines: if not len(line) or line[0] == '\n' or \ line.startswith('!Type:Class'): continue elif line[0] == 'N': curItem.name = line[1:] elif line[0] == 'D': curItem.description = line[1:] return curItem