本文整理汇总了Python中pxStats.lib.StatsDateLib.StatsDateLib.getDayOfTheWeek方法的典型用法代码示例。如果您正苦于以下问题:Python StatsDateLib.getDayOfTheWeek方法的具体用法?Python StatsDateLib.getDayOfTheWeek怎么用?Python StatsDateLib.getDayOfTheWeek使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pxStats.lib.StatsDateLib.StatsDateLib
的用法示例。
在下文中一共展示了StatsDateLib.getDayOfTheWeek方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: printWebPage
# 需要导入模块: from pxStats.lib.StatsDateLib import StatsDateLib [as 别名]
# 或者: from pxStats.lib.StatsDateLib.StatsDateLib import getDayOfTheWeek [as 别名]
#.........这里部分代码省略.........
</thead>
<tbody>
""")
for rxName in rxNamesArray :
if rxNames[rxName] == "" :
fileHandle.write( """<tr> <td bgcolor="#99FF99"> %s</td> """ %(rxName))
fileHandle.write( """<td bgcolor="#66CCFF"> """ + _("Days") + """ : """ )
else:
machineName = self.getMachineNameFromDescription( rxNames[rxName] )
fileHandle.write( """<tr> <td bgcolor="#99FF99"><div class="left"> %s</div><div class="right"><a href="#" onClick="descriptionWindow.load('inline', '%s', 'Description');descriptionWindow.show(); return false"><font color="black">?</font></a></div><br>(%s)</td> """ %(rxName, rxNames[rxName].replace("'","").replace('"','').replace( ",", ", "), machineName ) )
fileHandle.write( """<td bgcolor="#66CCFF"> """ + _("Days") + """ : """ )
for day in self.days:
currentYear, currentMonth, currentDay = StatsDateLib.getYearMonthDayInStrfTime( day )
_ = self.getTranslatorForModule( CURRENT_MODULE_ABS_PATH, self.filesLanguage)
file = file = self.pathsTowardsGraphics.STATSGRAPHSARCHIVES + _("daily/rx/%s/")%( rxName ) + str(currentYear) + "/" + str(currentMonth) + "/" + str(currentDay) + ".png"
webLink = _("archives/daily/rx/%s/")%( rxName ) + str(currentYear) + "/" + str(currentMonth) + "/" + str(currentDay) + ".png"
_ = self.getTranslatorForModule( CURRENT_MODULE_ABS_PATH, self.displayedLanguage )
if os.path.isfile( file ):
fileHandle.write( """<a target ="%s" href="%s">"""%( rxName, webLink) + "%s" %StatsDateLib.getDayOfTheWeek(day) + """ </a>""" )
else :
pass
fileHandle.write( """</td></tr>""" )
fileHandle.write( """
</tbody>
</table>
</div>
<h2>""" + _("Daily graphics for TX clients from MetPx.") + """ <font size = "2">""" +_("*updated hourly") + """</font></h2>
<div class="tableContainer">
<table>
<thead>
<tr>
<td bgcolor="#006699">
<div class = "txTableEntry">
<font color = "white">
<center>
Clients
<br>
<a target ="popup" href="#" onClick="showClientHelpPage(); return false;">
?
</a>
<center>
</font>
</div>
</td>