On 11/30/06, che <[EMAIL PROTECTED]> wrote:
>
> hello.
>
> Some rambling on the ORM-layer.
>
> We have our own self-awareness framework (e.g. active-record-like
> metadata-keeping - attributes, types, validation, ...), it's called
> StaticType as it does just that - structures defined through it are
> staticly-typed; no dynamic attributes, and no __dict__ at all. They
> form the model, and everything after that is derived from/around
> them - dialogs, db, etc. All is implemented with metaclasses /
> descriptors.

Well, trying to get SA to work with something like that is definitely
a square peg / round hole kind of thing.  SA follows the Python
paradigm of not trying to restrict what you do unnecessarily.
(__slots__ is intended to be a performance optimization; using it to
restrict attribute creation is weird.  Just use Java if that's what
you want.)

I would advise throwing away your existing framework and just using SA
the way it's meant to be used, as painful as that sounds.

-- 
Jonathan Ellis
http://spyced.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to