Hello everyone,

I have some problems with figuring out how to use Elixir with custom
classes.  I hope someone can point me in the right direction.

What I'm attempting to do is create a class that knows how to store
itself using elixir and knows how to present itself over the web (I use
web.py at the moment).  

For this purpose, I have tried the following:

I created a custom class to use instead of Entities following the
recipe.  This class takes a "spec" (a list of custom field classes) and
creates a web form object (intended to be a class property set at
module import).  The spec uses custom field classes that know about the
right elixir (alchemy) field to use, the right web form field, and how
to marshal between web (string) and python types.  

I haven't figures out how to programmatically use entities has_field
from this custom base class and therefore loop over my "spec" to use
has_field programatically at module load time.  I had also tried to
subclass elixir field types but that didn't seem to work...

It seems that the extra properties of my base class disappear when I
load an instance from the db via an elixir query.  Is the problem that
just assigning the property doesn't make it a proper class property?
Can you point me to a cleaner way of "extending" elixir entities?

many thanks in advance for your help and advice!

-bud

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

Reply via email to