示例#1
0
 def getVars(self):
     vars = WJSBase.getVars(self)
     vars["AllowedStartMinutes"] = self._EVOOptions["allowedPastMinutes"].getValue()
     vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf))
     vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf))
     vars["ExtraMinutesBefore"] = self._EVOOptions["extraMinutesBefore"].getValue()
     vars["ExtraMinutesAfter"] = self._EVOOptions["extraMinutesAfter"].getValue()
     vars["PossibleToCreateOrModify"] = getAdjustedDate(nowutc(), self._conf) < getMaxEndDate(self._conf)
     vars["GeneralSettingsURL"] = urlHandlers.UHConferenceModification.getURL(self._conf)
     return vars
示例#2
0
 def getVars(self):
     vars = WJSBase.getVars(self)
     vars["AllowedStartMinutes"] = self._EVOOptions[
         "allowedPastMinutes"].getValue()
     vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf))
     vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf))
     vars["ExtraMinutesBefore"] = self._EVOOptions[
         "extraMinutesBefore"].getValue()
     vars["ExtraMinutesAfter"] = self._EVOOptions[
         "extraMinutesAfter"].getValue()
     vars["PossibleToCreateOrModify"] = getAdjustedDate(
         nowutc(), self._conf) < getMaxEndDate(self._conf)
     vars[
         "GeneralSettingsURL"] = urlHandlers.UHConferenceModification.getURL(
             self._conf)
     return vars
示例#3
0
 def getVars(self):
     vars = WJSBase.getVars( self )
     
     vars["AllowedStartMinutes"] = self._EVOOptions["allowedPastMinutes"].getValue()
     vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf))
     vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf))
     vars["AllowedMarginMinutes"] = self._EVOOptions["allowedMinutes"].getValue()
     
     return vars
示例#4
0
    def getVars(self):
        vars = WJSBase.getVars(self)

        vars["AllowedStartMinutes"] = self._EVOOptions[
            "allowedPastMinutes"].getValue()
        vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf))
        vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf))
        vars["AllowedMarginMinutes"] = self._EVOOptions[
            "allowedMinutes"].getValue()

        return vars
示例#5
0
文件: pages.py 项目: bubbas/indico
    def getVars(self):
        vars = WJSBase.getVars( self )

        vars["AllowedStartMinutes"] = self._EVOOptions["allowedPastMinutes"].getValue()
        if self._conf:
            vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf), format = "EEE d/M H:mm")
            vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf), format = "EEE d/M H:mm")
        else:
            vars["MinStartDate"] = ''
            vars["MaxEndDate"] = ''

        return vars
示例#6
0
    def getVars(self):
        vars = WJSBase.getVars(self)

        vars["AllowedStartMinutes"] = self._EVOOptions[
            "allowedPastMinutes"].getValue()
        if self._conf:
            vars["MinStartDate"] = formatDateTime(getMinStartDate(self._conf),
                                                  format="EEE d/M H:mm")
            vars["MaxEndDate"] = formatDateTime(getMaxEndDate(self._conf),
                                                format="EEE d/M H:mm")
        else:
            vars["MinStartDate"] = ''
            vars["MaxEndDate"] = ''

        return vars