Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread tifosi
Thanks for your quick answser ! I join #django-fr and #django. Are you on these channels ? About the solution, I subclass Collection and Entry. Perhaps we can pass the nested Collection to the master Collection ? But we must also pass the reg exp of nested Collection. Bonne soirée Clément

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread David Larlet
Salut Clément, Le 19 juin 08 à 16:15, tifosi a écrit : > > Hi David, > > Thank for your code and the repository, I use the django-rest- > interface and > it's good news, that someone continue the job. > > I would like to get nested resources (e.g.: /articles/1/comments/ or >

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread [EMAIL PROTECTED]
Hi Clement, Have a look in the django-rest-interface examples [1] they cover this exactly. You can do what you want by sub-classing Collection. [1] http://code.google.com/p/django-rest-interface/source/browse/trunk/django_restapi_tests/examples/custom_urls.py regards Matthew On Jun 20,

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-19 Thread tifosi
Hi David, Thank for your code and the repository, I use the django-rest-interface and it's good news, that someone continue the job. I would like to get nested resources (e.g.: /articles/1/comments/ or /user/username/jobs/) and the problem is that you have to pass statically the queryset. I

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-12 Thread David Larlet
Le 9 juin 08 à 13:52, David Larlet a écrit : > > Le 8 juin 08 à 16:11, Ivan Sagalaev a écrit : >> >> David Larlet wrote: >>> This is not a secret that I'm interested in both Django and Semantic >>> Web. I'm following discussion about Django+REST for more than two >>> years and when I realize

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-09 Thread David Larlet
Le 8 juin 08 à 16:11, Ivan Sagalaev a écrit : > > David Larlet wrote: >> This is not a secret that I'm interested in both Django and Semantic >> Web. I'm following discussion about Django+REST for more than two >> years and when I realize that newforms-admin branch will use class- >> based

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-08 Thread Ivan Sagalaev
David Larlet wrote: > This is not a secret that I'm interested in both Django and Semantic > Web. I'm following discussion about Django+REST for more than two > years and when I realize that newforms-admin branch will use class- > based generic views [1], I decided that it's probably the

Introducing ModelView, a RESTful class-based view of your resources

2008-06-08 Thread David Larlet
Hello, This is not a secret that I'm interested in both Django and Semantic Web. I'm following discussion about Django+REST for more than two years and when I realize that newforms-admin branch will use class- based generic views [1], I decided that it's probably the right moment to do