Hi Marc,
I have eventually gotten around to work on the OOo
interaction again. Here's some details re this report of
yours of
"On Sat, Feb 27, 2010 at 12:29:26PM +0100, Slappinjohn wrote"
:-)==
the update changed nothing, but got it working in a clean Debian Lenny
environment with OOo 2.4.
:-)
Yet another problem occured. The placeholders aren't properly
substituted. See log and letter_template in appendix
See inline:
2010-02-27 12:13:15 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #154): invalid
placeholder layout:<$firstname$>
Should be "$<firstname>$".
2010-02-27 12:13:15 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #154): invalid
placeholder layout: Betreff
Probably follow on from the above.
2010-02-27 12:13:15 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #154): invalid
placeholder layout: $lastname$
Should be "$<lastname>$".
2010-02-27 12:15:31 ERROR gm.forms
(/usr/share/gnumed/Gnumed/business/gmForms.py::substitute_placeholders() #642):
1930 Januar 01
Traceback (most recent call last):
File "/usr/share/gnumed/Gnumed/business/gmForms.py", line 640, in
substitute_placeholders
val = data_source[placeholder]
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 127, in __getitem__
return getattr(self, placeholder)
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 243, in
_get_allergy_state
allg_state['last_confirmed'].strftime('%Y %B
%d').decode(gmI18N.get_encoding())
AttributeError: 'NoneType' object has no attribute 'strftime'
While value (1930 Januar 01) and error ('NoneType' object
has no attribute 'strftime') don't fit the error can be real.
Fixed.
2010-02-27 12:20:17 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #154): invalid
placeholder layout:<$firstname$>
Should be "$<firstname>$".
2010-02-27 12:20:17 ERROR gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #151): placeholder
length definition error:<$adr_street::home::30$>, discarding length
Traceback (most recent call last):
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 149, in __getitem__
lng = int(lng)
ValueError: invalid literal for int() with base 10: '30$>'
2010-02-27 12:20:17 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #161): no
handler<_get_variant_<$adr_street> for placeholder<$adr_street::home::30$>
Should be "$<adr_street::home::30>$"
2010-02-27 12:20:18 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #154): invalid
placeholder layout:<$lastname$>
see above
2010-02-27 12:22:34 ERROR gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #136): placeholder
handling error:<$firstname::::$>
Traceback (most recent call last):
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 134, in __getitem__
return getattr(self, name)[:int(lng)]
AttributeError: 'gmPlaceholderHandler' object has no attribute '<$firstname'
see above
2010-02-27 12:22:34 ERROR gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #151): placeholder
length definition error:<$adr_street::home::30$>, discarding length
Traceback (most recent call last):
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 149, in __getitem__
lng = int(lng)
ValueError: invalid literal for int() with base 10: '30$>'
2010-02-27 12:22:34 WARNING gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #161): no
handler<_get_variant_<$adr_street> for placeholder<$adr_street::home::30$>
see above
2010-02-27 12:22:34 ERROR gm.scripting
(/usr/share/gnumed/Gnumed/wxpython/gmMacro.py::__getitem__() #136): placeholder
handling error:<$lastname::::$>
Traceback (most recent call last):
File "/usr/share/gnumed/Gnumed/wxpython/gmMacro.py", line 134, in __getitem__
return getattr(self, name)[:int(lng)]
AttributeError: 'gmPlaceholderHandler' object has no attribute '<$lastname'
see above
Karsten