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

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

src/e/r/erp5-HEAD/product/ERP5/TargetSolver/CopyToTarget.py   erp5(Download)
 
from TargetSolver import TargetSolver
from Products.ERP5Type.DateUtils import createDateTimeFromMillis
 
class CopyToTarget(TargetSolver):
    start_date = simulation_movement.getStartDate()
    if start_date is not None:
      value_dict['start_date'] = createDateTimeFromMillis(start_date.millis() + start_date_delta)
    stop_date = simulation_movement.getStopDate()
    if stop_date is not None:
      value_dict['stop_date'] = createDateTimeFromMillis(stop_date.millis() + stop_date_delta)