De: Paul McNett <[EMAIL PROTECTED]>
Data: Quinta-Feira, 3 de Maio de 2007, 3:19
> Ed Leafe wrote:
> > 
> >     I've been meaning to get to this all day, but I've been 
> > swamped. I just wanted to let you know that I'll take a look at this as 
> > soon as I can.
> 
> Me too. For now, let me just offer a comment on the VirtualFields. 
> The 
> way you have it:
> 

Many thanks for all your help.

> self.VirtualFields = {...}
> would overwrite any previously-defined VirtualFields.

> Better 
> (IMO) to do:
> 
> self.VirtualFields["field_name"] = func
> 
> and then any previously-defined ones wouldn't get overwritten. 
> This 
> principle applies to all properties that are mutable, such as 
> dicts and lists.
> 
Very true. That one as bitten me before (thought it's a small price to pay for 
Python's dynamic capabilities :-)
Txs,
Miguel

_______________________________________________________________________________________
10 000 Euros sem precisar de trazer a vida toda atras
Saiba mais em http://www.iol.pt/correio/rodape.php?dst=0701162



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/%(messageid)s

Reply via email to