On Mon, 19 Mar 2007 at 21:00, Jorge Godoy wrote:
> Using SQL Object:
>
>    data = model.Class.select(model.Class.q.user == identity.current.user)
>
> So, when you retrieve something it will be filtered by the user_id column on
> your database.

Thanks, that pointer saves me some time :)

> You'll have to have a filter as the above.  There's no way to avoid that.
>
> After fetching data you just have to pass it as the value to your *Grid.

Yeah, I just got finished eyeballing DataController, and I see I can't
use it without getting myself into all sorts of security headaches.
So I guess guess I get to write my own CRUD :)  Which I would probably
have needed to do anyway, for at least some of the model objects.

--David

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