Re: API for introspecting models

2011-09-26 Thread Mathieu AGOPIAN
Hello (again), seems my previous message got eaten up, so I'll try a repost : I've done a small app that I use to inspect models, it lives here: https://github.com/magopian/django-inspect-model I'm afraid this isn't rocket science, and is probably very ugly. I'm using the "inspect" module from

Re: API for introspecting models

2011-09-26 Thread Mathieu AGOPIAN
(That's when somebody jumps into the conversation and feel as if he's half naked wearing dirty underwear) Hello, just FYI, I've hacked a few lines of code that I use to have a simple way to access all the fields on a model (including m2m): https://github.com/magopian/django-inspect-model

Re: API for introspecting models

2011-09-24 Thread Simon Charette
It might be worth it to look at this existing effort to document _meta: http://readthedocs.org/projects/django-model-_meta-reference/. Simon -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https:/

Re: API for introspecting models

2011-09-24 Thread sebastien piquemal
Ok :) Honestly, I don't have that much time, so I can't promise to look actively into that (but I guess that's no big deal). Of course, if Justin helps it sounds like a more reasonable task :) Anyways, I could perfectly start with the first step : > a rough cut at documenting everything that is t

Re: API for introspecting models

2011-09-24 Thread Justin Holmes
Very interesting / exciting. I'm definitely +1 on this project - I definitely have some of the "break hard" projects that Russell is talking about and I'd love to have a more straightforward and sustainable way to do introspection. Let me know how I can help. On Fri, Sep 23, 2011 at 10:47 PM, Ru

Re: API for introspecting models

2011-09-23 Thread Russell Keith-Magee
On Fri, Sep 23, 2011 at 6:10 PM, sebastien piquemal wrote: >> So - it's one of those things that *should* be documented and >> fomalized; it's just waiting on someone with the spare time to do the >> job. > > Sounds good ! Any estimation on how big is the cleaning task ? I know > documentation tas

Re: API for introspecting models

2011-09-23 Thread sebastien piquemal
all ! > > > So this might be a stupid idea, or it might have been answered > > before ... actually it seems so obvious to me that you have probably > > thought of it before and rejected it !!! But let's try ... > > > I was wondering, why isn't there a user API

Re: API for introspecting models

2011-09-23 Thread Russell Keith-Magee
> I was wondering, why isn't there a user API for introspecting models ? > > OK, there is an API, through '_meta', which is not documented (unless > you read the source), which is not addressed to users, and is > therefore likely to change, and therefore unreliable. See

API for introspecting models

2011-09-23 Thread sebastien piquemal
Hi all ! So this might be a stupid idea, or it might have been answered before ... actually it seems so obvious to me that you have probably thought of it before and rejected it !!! But let's try ... I was wondering, why isn't there a user API for introspecting models ? OK, there