Re: Accessing legacy DBs with table-less models

2007-11-13 Thread Tomek
Bugger, the view approach won't work as the SQL query takes parameters. On Nov 14, 3:59 pm, Tomek <[EMAIL PROTECTED]> wrote: > Thanks for that. You just gave me a good idea. I could simply replace > that crazy SQL code with an equivalent view! This way I don't have to > write any nasty code to de

Re: Accessing legacy DBs with table-less models

2007-11-13 Thread Tomek
Thanks for that. You just gave me a good idea. I could simply replace that crazy SQL code with an equivalent view! This way I don't have to write any nasty code to deal with old craziness. In the last 10 minutes I have looked again at django_restapi code and I have discovered an example for deali

Re: Accessing legacy DBs with table-less models

2007-11-13 Thread Malcolm Tredinnick
On Wed, 2007-11-14 at 02:36 +, Tomek wrote: > Wow, what a quick reply! Thanks Malcolm. > > I'm pretty new to Django so excuse my inability to express myself in > Django terms. > > I agree with your comments regarding taking the right approach to > solving the problem (how very Pythonic of y

Re: Accessing legacy DBs with table-less models

2007-11-13 Thread Tomek
Wow, what a quick reply! Thanks Malcolm. I'm pretty new to Django so excuse my inability to express myself in Django terms. I agree with your comments regarding taking the right approach to solving the problem (how very Pythonic of you :-) I tried django_restapi because it offered a quick starti

Re: Accessing legacy DBs with table-less models

2007-11-13 Thread Malcolm Tredinnick
On Wed, 2007-11-14 at 02:07 +, Tomek wrote: > Hi All, > > I am using "django_restapi" (http://code.google.com/p/django-rest- > interface/) to quickly gain access in a RESTful way to some tables in > a legacy database. I am only really interested in reading the records > and sending them back