Re: How to implement Django-like models?

2007-07-21 Thread theju
[snipped] > Unfortunately, I do not really understand the code > that does all the magic in the django.db.models module. I don't think > it is possible to use Django models without a database. Therefore, > can anybody point me to some tutorial/documentation on how to do this > kind of meta progra

Re: How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
Russ, 2007/7/21, Russell Keith-Magee <[EMAIL PROTECTED]>: > > Therefore, > > can anybody point me to some tutorial/documentation on how to do this > > kind of meta programming in Python? > > Google is your friend. Well, that friend is sometimes too unspecific or too helpful and overwhelming. Yo

Re: How to implement Django-like models?

2007-07-21 Thread Russell Keith-Magee
On 7/21/07, Stefan Matthias Aust <[EMAIL PROTECTED]> wrote: > > Therefore, > can anybody point me to some tutorial/documentation on how to do this > kind of meta programming in Python? Google is your friend. Guido wrote a decent introduction to the topic when types and classes were unified in Pyt

How to implement Django-like models?

2007-07-21 Thread Stefan Matthias Aust
This request is slightly off topic. I like the way attributes of Django models are defined. I'd like to use a similar approach for a pure Python, too. Unfortunately, I do not really understand the code that does all the magic in the django.db.models module. I don't think it is possible to use Dja