Tryton - Issues

 

Message46835

Author prakharb
Recipients ced
Date 2019-02-07.12:02:41
Content
I had to put line (http://hg.tryton.org/tryton/file/5.0/tryton/common/datetime_.py#l89) out of try-except block to get the traceback

ERROR:tryton.common.common:  File "/home/prakhar/workspace/tryton/tryton50/src/tryton/tryton/common/datetime_.py", line 159, in focus_out
    self.parse()
  File "/home/prakhar/workspace/tryton/tryton50/src/tryton/tryton/common/datetime_.py", line 94, in parse
    date = date_parse(text, self.__format).date()
  File "/home/prakhar/workspace/tryton/tryton50/src/tryton/tryton/common/datetime_.py", line 23, in date_parse
    monthfirst = formatted_date.index('7') <= 1

substring not found


To add further to it, the locale here is en_IN. See the following output from python prompt.

>>> locale.getlocale()
('en_IN', 'ISO8859-1')
>>> datetime.today().strftime('%x')
'Thursday 07 February 2019'
History
Date User Action Args
2019-02-07 12:02:41prakharbsetmessageid: <1549537361.34.0.606798166137.issue8087@tryton.org>
2019-02-07 12:02:41prakharbsetrecipients: + ced
2019-02-07 12:02:41prakharblinkissue8087 messages
2019-02-07 12:02:41prakharbcreate

Showing 10 items. Show all history (warning: this could be VERY long)