gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] re: "context" for gmMatchProvider


From: syan tan
Subject: [Gnumed-devel] re: "context" for gmMatchProvider
Date: Mon, 06 Oct 2003 20:39:28 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

in the test-area/sjtan modification of gmPhraseWheel.cSQL_MatchListProvider , I used the source_defs parameter to pass in an "extraConditions" function with a "extraConditionsParam" (a list for numbered parameters) to add additional selection clauses
e.g.
extra_sql = " and %s" % source_defs['extraConditions']( *source_defs['extraConditionsParams'] )

and used it to join the _getNarrowings( for_table) function in gmEditArea3 to gmPhraseWheel's match provider.

so that's one way of doing it.





reply via email to

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