imip-agent

Change of imiptools/data.py

625:55a628712e6f
imiptools/data.py
     1.1 --- a/imiptools/data.py	Thu Jul 30 22:30:26 2015 +0200
     1.2 +++ b/imiptools/data.py	Fri Jul 31 18:50:33 2015 +0200
     1.3 @@ -22,7 +22,9 @@
     1.4  from bisect import bisect_left
     1.5  from datetime import date, datetime, timedelta
     1.6  from email.mime.text import MIMEText
     1.7 -from imiptools.dates import format_datetime, get_datetime, get_datetime_tzid, \
     1.8 +from imiptools.dates import format_datetime, get_datetime, \
     1.9 +                            get_datetime_item as get_item_from_datetime, \
    1.10 +                            get_datetime_tzid, \
    1.11                              get_duration, get_period, \
    1.12                              get_tzid, to_timezone, to_utc_datetime
    1.13  from imiptools.period import Period, RecurringPeriod, period_overlaps
    1.14 @@ -101,7 +103,7 @@
    1.15  
    1.16          if dt:
    1.17              old_value = self.get_value(name)
    1.18 -            self[name] = [get_datetime_item(dt, tzid)]
    1.19 +            self[name] = [get_item_from_datetime(dt, tzid)]
    1.20              return format_datetime(dt) != old_value
    1.21  
    1.22          return False