> autoField = AutoCompleteField(
> id='myFieldName',
> completionURL = 'fetch_states',
> fetchJSON = True,
> minChars = 1)
>
silly but obvious, have you a 'fetch_states' method in your
controller ?
is it @expose('json') decorated ?
have you tried to insert a debug breakpoint in it ?
import pdb; pdb.set_trace()
try to reach your template with a terminating / (I've had trouble with
this)
maybe something like this might help
from tg.decorators import with_trailing_slash
@with_trailing_slash
@expose('mypackage.templates.myformtemplate')
def entry(self, **kw):
.....
HTH
--
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.