Hi,

I try to use an AutoComplete widget in one of my form, and all seems
well, except that the name on the list which is selected. is not
visible, as if it where written white on white.
Where can I change that?

I start with quickstart and did not modify css or master.kid.

In case it could be a code error, here is part of it:

the template (colle.kid):

    <div id="main_content">
    <p py:content="form.display()">Formulaire</p>
    </div>


the controller:

class ColleForm(widgets.WidgetsList):

    Nom = widgets.AutoCompleteField(
        search_controller = "search_eleve",
        search_param = "input_eleve",
        result_name = "match_eleve"
        )

colleformulaire = widgets.TableForm(
    'Colle',
    fields = ColleForm()
    )


and in the root class:

    @expose(allow_json=True)
    def search_eleve(self, input_eleve):
       
        match = Eleve.select(Eleve.q.nom.startswith(input_eleve))
        match_eleve = [eleve.nom for eleve in match ]
        return dict(match_eleve=match_eleve)

    @expose(template="cahier_texte.templates.colle")
    def colle(self, tg_errors=None):
        if tg_errors:
            flash('il y a un probleme dans le formulaire')
        return dict(form=colleformulaire)



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to