本文整理汇总了Python中com.jythonui.server.holder.Holder.getiServer方法的典型用法代码示例。如果您正苦于以下问题:Python Holder.getiServer方法的具体用法?Python Holder.getiServer怎么用?Python Holder.getiServer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jythonui.server.holder.Holder
的用法示例。
在下文中一共展示了Holder.getiServer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from com.jythonui.server.holder import Holder [as 别名]
# 或者: from com.jythonui.server.holder.Holder import getiServer [as 别名]
def __init__(self, var, list=None) :
iServer = Holder.getiServer()
r = Holder.getRequest()
self.__d = iServer.findDialog(r, var["J_DIALOGNAME"])
self.iN = Holder.getResolveName()
if list == None : return
self.fList = self.__d.getDialog().findList(list)
assert self.fList != None, "Cannot find list " + list + " in the dialog " + var["J_DIALOGNAME"]
示例2: getMapFieldList
# 需要导入模块: from com.jythonui.server.holder import Holder [as 别名]
# 或者: from com.jythonui.server.holder.Holder import getiServer [as 别名]
def getMapFieldList(dialogName,list=None):
""" Extract list of fields (columns) name from dialog
Args:
dialogName : dialog
list : if None list of fields from dialog
if not None list of columns from list
"""
i = Holder.getiServer()
dInfo = i.findDialog(Holder.getRequest(), dialogName)
assert dInfo != None
dFormat = dInfo.getDialog()
if list == None :
flist = dFormat.getFieldList()
else :
lform = dFormat.findList(list)
assert lform != None
flist = lform.getColumns()
l = []
for f in flist :
name = f.getId()
l.append(name)
return l
示例3: getDialogFormat
# 需要导入模块: from com.jythonui.server.holder import Holder [as 别名]
# 或者: from com.jythonui.server.holder.Holder import getiServer [as 别名]
def getDialogFormat(dialname):
i = Holder.getiServer()
dInfo = i.findDialog(Holder.getRequest(), dialname)
assert dInfo != None
return dInfo.getDialog()