gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] test-area/sjtan


From: Ian Haywood
Subject: Re: [Gnumed-devel] test-area/sjtan
Date: Sun, 5 Oct 2003 08:17:31 +1000
User-agent: Mutt/1.5.4i

On Sat, Oct 04, 2003 at 04:55:19PM +0200, Karsten Hilbert wrote:
> Also consider this complex example (which, however, does not
[snip]
> use of the function-hook API in those cases that warrant that.
Fair enough, we *do* need MatchProvider subclasses for this sort of
thing instead of the GuessXXX functions I was writing, to provide
extra hooks for inserting new entries, learning and so on.

How should match providers know the context of their matching?
(for street names, we need to know the postcode, urb, etc.) 

One solution is to provide a dictionary of <widget name>:<widget contents>
problem is, we need to know the context when searching, not at widget setup.
So the dictionary could be an object implementing __getitem__, so we
always get the "current" values of widgets.

Ian

------
PGP public key E750652E at wwwkeys.pgp.net
9BF0 67B7 F84F F7EE 0C42  C063 28FC BC52 E750 652E




reply via email to

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