gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Open Office templates


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Open Office templates
Date: Tue, 2 Sep 2008 23:07:05 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Sep 02, 2008 at 10:43:25PM +0200, Jerzy Luszawski wrote:

> > > placeholders_data = {
> > >                   'operation_diagnosis': node_data['operation_diagnosis'],
> > >                   'lastname': 
> > > self.__patient.get_active_name()['lastnames'],
> > >                   'firstname': 
> > > self.__patient.get_active_name()['firstnames']
> > >                   }
> > > doc.replace_placeholders(handler = placeholders_data)
> >
> > However, you ain't passing "fixed data" ;-)  although you
> > don't know that ...  The get_active_name() stuff isn't
> > immutable ...
> Of course. But at the moment of calling replace_placeholders it is fixed.

OK, that much is true. So then again it needs RAM for *all*
the placeholders of this template at aonce. Now, that may
not amount to much.

> Now I'm happy with this what I discovered. 

Good :-)

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]