Greetings,
Following http://sprox.org/tutorials/table.html I wanted to change
TableFiller's query following example:
def _do_get_provider_count_and_objs(self, director=None, **kw):
movies = DBSession.query(Movie).filter(Movie.directors.contains
(director)).all()
return len(movies), movies
It worked great, but I wanted to be able to use dojo with it.
When I tried to implement I followed code to be found here:
http://pythontutorials.googlecode.com/svn/tutorials/moviedemo/trunk/moviedemo/controllers/sproxdemo.py
I have a controller for it with two following methods:
list
and listdata.
First allows me to supply the id of record to be fetched, second one
is to supply table with data using json.
As written in the sprox documentation two requests are made.
As a result of the first one the second one is made, but the only
attribute that is passed is the name of second function, thus I end up
with having director not as director object but string listdata.
Am I missing some crucial piece of information or this is some known
open issue.
Thanks for previous help!
Best,
wAnt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---