cruzjoey0507 / pyfilemaker

Automatically exported from code.google.com/p/pyfilemaker
0 stars 0 forks source link

Text partially taken as a date #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a text field
2. populate that field with anything, but starting with a date, like i.e.: 
19/12/2012
3. try to read that record either with doFind or doFindAll

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/opt/odoo/v8/makwin/test.py", line 8, in <module>
    recordSet = fmObj.doFind(_refClient='0411')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMServer.py", line 315, in doFind
    return self._doAction( '-find' )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMServer.py", line 528, in _doAction
    result = FMResultset.FMResultset( result )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMResultset.py", line 37, in __init__
    self.doParseResultset()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMResultset.py", line 132, in doParseResultset
    self.resultset.append( makeFMData( recordDict ) )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMData.py", line 169, in makeFMData
    return FMData( locked )
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyFileMaker/FMData.py", line 71, in __init__
    setattr(self, key, Date(int(ye), int(mo), int(da)))
ValueError: month must be in 1..12

What version of the product are you using? On what operating system?
2.6, on 10.8.5 client with fms 13 v5

Please provide any additional information below.
I am connecting to Filemaker server from an Odoo V8.0 (OpenERP) module.
Seems like PyFilemaker is trying to interprete the text box as a date, when in 
fact it only starts with a date.
By the way, the system is spanish based one, meaning the dates are in the "day 
/ month / year" format.

Original issue reported on code.google.com by makwin...@gmail.com on 23 Mar 2015 at 1:07