Пример #1
0
 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
Пример #2
0
def _dsystext(_key, _name, **args):
	"""
	提取语言配置中的文本,并转换为系统编码
	"""
	return script2sys(Local().formatLocalText(_key, _name, **args))
Пример #3
0
def dtext(_key, _name, **args):
	"""
	提取语言配置中的文本
	"""
	return Local().formatLocalText(_key, _name, **args)
Пример #4
0
	def __init__(self, tag, **args):
		msg = Local().formatLocalText("explain", tag, **args)
		ExplainException.__init__(self, msg)
Пример #5
0
	def __init__(self, msg):
		title = Local().formatLocalText("explain", "errTitle")
		BaseException.__init__(self, title, msg)
Пример #6
0
 def __init__(self, tagName, **args):
     title = Local().formatLocalText("encoding", "errTitle")
     msg = Local().formatLocalText("encoding", tagName, **args)
     BaseException.__init__(self, title, msg)
Пример #7
0
	def __init__(self, tagName, **args):
		msg = Local().formatLocalText("export", tagName, **args)
		ExportException.__init__(self, msg)
Пример #8
0
	def __init__(self, tagName, **args):
		msg = Local().formatLocalText("excelApp", tagName, **args)
		DataSourceException.__init__(self, msg)
Пример #9
0
	def __init__(self, errInfos):
		msg = Local().formatLocalText("excelApp", 'errInEdit')
		if type(errInfos) is tuple: errInfos += (msg, )
		else: errInfos = (errInfos, msg)
		ExcelComException.__init__(self, errInfos)
Пример #10
0
	def __init__(self, tagName, **args):
		msg = Local().formatLocalText("csvApp", tagName, **args)
		CSVException.__init__(self, msg)
Пример #11
0
	def __init__(self, msg):
		title = Local().formatLocalText("dataSource", 'errTitle')
		BaseException.__init__(self, title, msg)