本文整理汇总了Python中API.getAllUserName方法的典型用法代码示例。如果您正苦于以下问题:Python API.getAllUserName方法的具体用法?Python API.getAllUserName怎么用?Python API.getAllUserName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类API
的用法示例。
在下文中一共展示了API.getAllUserName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: index
# 需要导入模块: import API [as 别名]
# 或者: from API import getAllUserName [as 别名]
def index(self, **rest):
users = API.getAllUserName()
html = """<html><body><h2>CrabServer Tasks: internal server logging</h2>\n """
html += "<table>\n"
html += "<i>Filling the field with the string resulting from 'crab -printId' allow to check both staus and logging: </i><br/><br/>"
html += '<form action="../%s"\ method="get">' % (self.visualize)
html += "Task unique name "
html += ' <input type="text" name="taskname" size=50> '
html += (
' <select name="logtype" style="width:80px"><option>Status</option><option>Logging</option></select> '
)
html += '<input type="submit" value="Show"/>'
html += "</form>"
html += "</table>\n"
html += "<br><br><table>\n"
html += "<i>Select the user name to see all his tasks on the server</i><br/><br/>"
html += '<form action="../%s"\ method="get" >' % (self.usertasks)
html += "User "
html += ' <select name="username" style="width:150px"><option>All</option>%s</select> ' % (
self.__prepareSelect(users)
)
html += " status of "
html += ' <select name="tasktype" style="width:120px"><option>All</option><option>Archived</option><option>NotArchived</option></select> '
html += " tasks for last "
html += '<input type="text" name="length" size=4 value=0> '
html += '<select name="span" style="width:80px"><option>hours</option><option>days</option></select> '
html += '<input type="submit" value="Show Tasks"/>'
html += "</select>"
html += "</form>"
html += "</table>\n"
html += """</body></html>"""
return html