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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/e/r/erp5-HEAD/product/ERP5/Document/ImmobilisableItem.py   erp5(Download)
 
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.DateUtils import addToDate, getClosestDate, roundDate
from Products.ERP5Type.DateUtils import getRoundedMonthBetween, millis
from Products.ERP5Type.DateUtils import getAccountableYearFraction
        for property in ('start_date', 'stop_date', 'initial_date',):
          if immo_period.has_key(property):
            immo_period[property] = roundDate(immo_period[property])
      immo_cache_dict['period'][ (self.getRelativeUrl(), from_date, to_date) +
            tuple([(key,kw[key]) for key in kw_key_list]) ] = immo_period_list