>
>> I think a lot of people have come unstuck trying to follow that
>> tutorial, and in general I think TG2 documentation is very poor. I
>> have everything working here, but I still don't fully understand
>> aspects of it like what __url__ actually does.
>
> Maybe you could you provide an example?
>
What I mean is that when I installed from svn, the
SproxMovieController 'just worked' I didn't have to do anything special.
Whereas I seem to remember that following the code on the site, or
installing from the tarball didn't work for me, but that was a couple
of months ago, so maybe it's been updated now.
>> Anyhow, ranting aside, I found the most useful approach to learning
>> was to unpick the working examples found in svn here:
>
> Tried to install the examples, hit an error. Reported as a bug...
What was the error?
Jamie
>
>
> 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()
Ah, that makes sense. It's a real shame that all this 'magic' isn't
documented properly somewhere. It would save people banging their
heads to figure it out.
best,
Jamie
I've been thinking about this for a while now.
Although the devs are really putting a lot of effort into the
documentation, there's a fundamental problem. Let me try to describe
it.
Because of the wide range of interchangeable pieces in TG2. It all
needs to be covered in documentation, and it is, most of the time.
But the problem I often find is the lack of _depth_ in the
documentation. The examples look elegant and easy, they work, those
were the code snippets that made me enthusiastic about TG.
But just when you want to build a reald world application, you need
something a bit more powerful and all you're left with is the TG
source. That's the feeling I get sometimes. I've got no idea if
anybody feels the same way.