Changeset 4316:7e0c6cb40936 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/03/11 18:02:19 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use Utils.isoparse() for date objects.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/misc.py

    r4314 r4316  
    522522        return u'"{}"'.format(u"".join(v)) 
    523523    elif isinstance(obj, (datetime.date, datetime.datetime)): 
    524         return "com.livinglogic.ul4.Utils.isoDateFormatter.parse({})".format(javaexpr(obj.isoformat())) 
     524        return "com.livinglogic.ul4.Utils.isoparse({})".format(javaexpr(obj.isoformat())) 
    525525    elif isinstance(obj, color.Color): 
    526526        return "new com.livinglogic.ul4.Color({}, {}, {}, {})".format(*obj)