Exemple #1
0
def GetWhen(objRequest):
    strMonth = GetParameter(objRequest, 'Month')
    strYear = GetParameter(objRequest, 'Year')
    strDate = GetParameter(objRequest, 'Date')

    if strMonth and strYear and strMonth.isdigit() and strYear.isdigit():
        intMonth = int(strMonth)
        intYear = int(strYear)
        if strDate:
            intDate = int(strDate)
        else:
            intDate = 0
    else:
        intMonth = 0
        intYear = 0
        intDate = 0
    return (intYear, intMonth, intDate)
Exemple #2
0
def ShopAt(objHere):
    # http://www.MentorCoaches.com/ShopAt?BookId=....&ShopId=1
    strLink = "http://www.MentorCoaches.com/"
    strBookId = GetParameter(objHere.REQUEST, 'Id')
    strShopId = GetParameter(objHere.REQUEST, 'ShopId')
    if strShopId.isdigit():
        intShopId = int(strShopId)
    else:
        intShopId = 0
    if strBookId and intShopId:
        LogShopAt(objHere, strBookId, intShopId)
        strLink = GetShopLink(objHere, strBookId, intShopId)
        
    return strLink