def __initHeads(self, headRow): for col, cname in enumerate(self.iterRowText(headRow)): cname = cname.strip() if cname == "": continue c = self.name2col_.get(cname) if c is not None: # 列明重复 Listener().cbWarning(Local().formatLocalText("dataSource", "warnDBHeadName", \ col1=self.col2mark(c), col2=self.col2mark(col), name=cname)) self.name2col_[cname] = col
def _dsystext(_key, _name, **args): """ 提取语言配置中的文本,并转换为系统编码 """ return script2sys(Local().formatLocalText(_key, _name, **args))
def dtext(_key, _name, **args): """ 提取语言配置中的文本 """ return Local().formatLocalText(_key, _name, **args)
def __init__(self, tag, **args): msg = Local().formatLocalText("explain", tag, **args) ExplainException.__init__(self, msg)
def __init__(self, msg): title = Local().formatLocalText("explain", "errTitle") BaseException.__init__(self, title, msg)
def __init__(self, tagName, **args): title = Local().formatLocalText("encoding", "errTitle") msg = Local().formatLocalText("encoding", tagName, **args) BaseException.__init__(self, title, msg)
def __init__(self, tagName, **args): msg = Local().formatLocalText("export", tagName, **args) ExportException.__init__(self, msg)
def __init__(self, tagName, **args): msg = Local().formatLocalText("excelApp", tagName, **args) DataSourceException.__init__(self, msg)
def __init__(self, errInfos): msg = Local().formatLocalText("excelApp", 'errInEdit') if type(errInfos) is tuple: errInfos += (msg, ) else: errInfos = (errInfos, msg) ExcelComException.__init__(self, errInfos)
def __init__(self, tagName, **args): msg = Local().formatLocalText("csvApp", tagName, **args) CSVException.__init__(self, msg)
def __init__(self, msg): title = Local().formatLocalText("dataSource", 'errTitle') BaseException.__init__(self, title, msg)