jo wrote:
wavydavy wrote:
On Dec 23, 11:39 am, jose <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm playing with the following AutoCompletingFKLookupField widget,
which
> gives me the error message:
[snip]
> @turbogears.expose(format = "json")
> def search(self, code=None, description=None):
> matches = []
> if description:ยท
> for matches in listtable:
^^^^^^^^^ is overriding previous definition!
Not sure what else may be broken, but this is certainly not helping :)
Can you post a full traceback?
--
wavydavy
Hi Wavydavy,
you can download it from:
http://www.allevatori.com/download/autocompl.tgz
Thanks to Claudio Martinez the author I solved my problem.
I quote his words:
"On the search method you have to expect a parameter named "_",
it's a bug on the prototype library and I guess it will get corrected on
the next release.
def search(self, code=None, description=None, _=None):
"
jo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---