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)
        # Last resort to today
        if not year:
            year = current.year()
        if not month:
            month = current.month()
        current = DateTime()
 
        if (current.year() == year and
            current.month() == month and
            current.day() == int(day)):

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/browser/datecomponents.py   Products.Archetypes(Download)
            else:
                future_years = int(future_years or 5)
            max_year = int(future_years) + now.year()
        else:
            max_year = int(ending_year)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/browser/datecomponents.py   Products.Archetypes(Download)
            else:
                future_years = int(future_years or 5)
            max_year = int(future_years) + now.year()
        else:
            max_year = int(ending_year)

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())
        self.layer['request'].form['sdq1_year'] = str(now.year())