Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/r/Products.CMFCalendar-2.3.0-beta/Products/CMFCalendar/browser/calendartool.py   Products.CMFCalendar(Download)
            year = current.year()
        if not month:
            month = current.month()
 
        # Then store the results in the session for next time
 
        if (current.year() == year and
            current.month() == month and
            current.day() == int(day)):
            if event:

src/p/r/Products.PloneSurvey-1.4.6/Products/PloneSurvey/tests/testDateQuestion.py   Products.PloneSurvey(Download)
        sdq1.setRequired(True)
        now = DateTime()
        now_value = str(now.year()) + '/' + str(now.month()) + '/' + str(now.day()) + ' ' + str(now.hour()) + ':' + str(now.minute()) + ':00 GMT'
        self.layer['request'].form['sdq1_ampm'] = ''
        self.layer['request'].form['sdq1_day'] = str(now.day())
        self.layer['request'].form['sdq1_hour'] = str(now.hour())
        self.layer['request'].form['sdq1_minute'] = str(now.minute())
        self.layer['request'].form['sdq1_month'] = str(now.month())