Beispiel #1
0
 def set_creation(self, obj, create_time):
     if not create_time:
         return
     if not isinstance(create_time, datetime):
         create_time = datetime(*create_time.timetuple()[:3])
     create_time = make_naive(create_time)
     self.scope.ems.convert_creation_change(obj.pid, c_time=create_time)
Beispiel #2
0
 def set_creation (self, obj, create_time) :
     if not create_time :
         return
     if not isinstance (create_time, datetime) :
         create_time = datetime (* create_time.timetuple () [:3])
     create_time = make_naive (create_time)
     self.scope.ems.convert_creation_change (obj.pid, c_time = create_time)
Beispiel #3
0
 def set_creation (self, obj, create_time) :
     create_time = make_naive (create_time)
     self.scope.ems.convert_creation_change (obj.pid, c_time = create_time)
Beispiel #4
0
 def set_last_change (self, obj, change_time, create_time) :
     change_time = make_naive (change_time)
     create_time = make_naive (create_time)
     self.scope.ems.convert_creation_change \
         (obj.pid, c_time = create_time, time = change_time or create_time)
Beispiel #5
0
 def set_last_change(self, obj, change_time, create_time):
     change_time = make_naive(change_time)
     create_time = make_naive(create_time)
     self.scope.ems.convert_creation_change \
         (obj.pid, c_time = create_time, time = change_time or create_time)
Beispiel #6
0
 def set_creation(self, obj, create_time):
     create_time = make_naive(create_time)
     self.scope.ems.convert_creation_change(obj.pid, c_time=create_time)