I am building a web framework, kind of like Pylons, but which has a
concept called "supporting applications."  That means I can create a
base application (lets call it "basapp") and then I can setup custom
applications based on baseapp.  Inherent in the concept of "supporting
applications" is being able to use and/or inherit (from a python
object perspective) the model defined in the supporting application.
I am currently using Elixir, but am running into the following problem
with this setup.

So, lets say that my baseapp defines a User Entity (UE).  My main
application (lets call it "app1") needs a UE and uses the UE from
baseapp (a simple python import).  When app1 is first initialized, my
framework recognizes that app1 uses baseapp, so it initializes all of
baseapp's entities (including UE) and uses app1's metadata to do so.
Therefore, app1 can use the UE and everything works fine.

However, like Pylons, I want to support running multiple web
applications in the same process and this is where I run into nothing
but headaches.  When I initialize the second application ("app2"), the
python modules where UE is defined have already been compiled/loaded
by the app1 initialization routine.  Therefore, the metadata for app2
is empty, because the UE entity has already been created and doesn't
get created a second time.

I think what I would like is for UE to not be bound to metadata/
session at run time but be bound later (i.e. on each request to a web
application).

Am I thinking about this correctly?  I would appreciate any input on
helping me think through the correct way to implement this.
--~--~---------~--~----~------------~-------~--~----~
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