> > Tried to install the examples, hit an error. Reported as a bug...
>
> What was the error?

http://code.google.com/p/pythontutorials/issues/detail?id=2

Anyway, I figured out my earlier issue.
I got the CrudRestController mounted as:

categories = CategoryController()

Inside the CategoryController, I used this definition a couple of
times:
 __model__ = Category

The Crud controller constructs a JSON data request that is (seemingly)
generated from the lowercase name of the model plus an extra 's'.
So the JSON request becomes categorys.json.
I tried to guide the CrudRestController (as it works with the
RestController) by specifying __url__, but that parameter was ignored
by de CrudRestController.
What 'fixed' it was defining the CrudRestController as:

categorys = CategoryController()

Of course, in the Movie example, this is not an issue, class Movie
becomes movies.

Cheers,
Kees

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