Chris Hallwright wrote:

> Probably me being daft instead, but the sandbox variant relies on a
> macro to access a hunchentoot session value at run-time in place of
> *default-store* in overriding the class-store method in sandbox.lisp,
> and also in all-companies in the company model.  I would want a way to
> only have code in stores.lisp to have the same effects in order to
> merge the memory/session-state version with persistent object
> versions.  I wouldn't want to have references to sandbox-store at all
> (except maybe in stores.lisp), if the persistent object and memory
> versions of the demo were to be combined.  Not sure how to do that.
> It would mean *default-store* acting like the macro-expansion of
> (sandbox-store) as defined in weblocks-demo.lisp somehow.

Alright, I took a look at the code so I'm now in a position
to grasp what's going on. Sorry for not doing so earlier.

I haven't used the memory store much far but if it requires trickery
like that then we should fix it so the demo is able to act more like
other stores.

How about passing two functions to the memory store at initialization
time, one setter and one getter? Would that be possible? Of course
the memory store would then have to return a CLOS object to record
those parameters.

After that we could merge sandbox/memory and the other stores.


> Yes, my issue is with the underlying RDBMS, not with CLSQL or
> Elephant.  MySQL doesn't support inheritance, as far as I can tell.
> PostgreSQL does.    Without inheritance you have very different
> models, so I thought that warranted different versions of the demo.
> PostgreSQL could be used with or without inheritance, MySQL only
> without it.

How about adding a new store backend for Postgres' object facilities
then?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" 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/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to