From: <rom...@ya...> - 2007-11-08 14:47:32
|
>>> try src/date_test.py >> >> $ cd src >> $ python date_test.py modified_file.py sorry, do not need to add modified_file.py, just : $ python date_test.py on /src directory, this will make some tests on the DateHandler used by gramps according to your locale. >> try src/date_test.py > > $ cd src > $ python date_test.py modified_file.py > > > > Jérôme a écrit : >> Hi, >> >> >>> Can anyone think of problems this might cause? >> try src/date_test.py with your modified file (or test/dates.sh) >> >> >> >> Also, for what is "self._text" used ? >> >> Is it for span or range period (first text and second text) >> Maybe we just need them after an import but could be a display issue >> (text is text = no date format like iso, numeric, etc ...): >> >> If we have a different "self._text2" on our local date handler (date_de, >> date_nl, date_pl, date_fr) , maybe we should have a different >> "self._text" too, no ? >> >> >> >> >> Gerald Britton a écrit : >>> I plan to change: >>> >>> self._text = >>> re.compile('%s\s+(\d+)?\s*,?\s*((\d+)(/\d+)?)?\s*$' % self._mon_str, >>> re.IGNORECASE) >>> >>> to >>> >>> self._text = >>> re.compile('%s\.?\s+(\d+)?\s*,?\s*((\d+)(/\d+)?)?\s*$' % >>> self._mon_str, >>> re.IGNORECASE) >>> >>> in order to handle dates like "Jan. 5, 1901" >>> >>> Can anyone think of problems this might cause? >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Gramps-devel mailing list >>> Gra...@li... >>> https://lists.sourceforge.net/lists/listinfo/gramps-devel >>> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel |