Menu

format_ms missing in TCtimes.py's gDate

Chai Ang
2007-01-03
2013-05-02
  • Chai Ang

    Chai Ang - 2007-01-03

    As far as I can make out, is this attribute missing from this file?

    There is reference to it but no definition.

    It is in the others (gDateTime etc...).

    If it is, what should it be?

    Thanks,
    Chai

     
    • Chai Ang

      Chai Ang - 2007-01-03

      Ahhh...  I was looking at the API docs, http://pywebsvcs.sourceforge.net/apidocs/ZSI/TCtimes.html#gDate and saw the format there.
      So when I added
      format_ms = '%(Y)04d-%(M)02d-%(D)02dZ'
      to TCtimes.py, my problems went away.

      I was using RC3 and when I was sending back dates I was getting
      error messages like
      """
      gDate instance has no attribute 'format_ms'
      """

      And just for completeness, I was assigning the dates like the following
      today_date = date.today().timetuple()
      where today_date is an xsd:date

      Thanks for the ZSI library. It's saved me a lot of time.

       

Log in to post a comment.