How to make weblocks-demo persistent with prevalence?

46 views
Skip to first unread message

Mikael Andersson

unread,
Apr 4, 2012, 5:29:32 AM4/4/12
to webl...@googlegroups.com
I have not been able to make it persistent and would much appreciate some help with this.

The README says:

"To see the demo be persistent across different runs of the server,
comment out every reference to the sandbox store, and in cases where
simply commenting them out won't work (i.e. (find-persistent-objects
(sandbox-store) ...)) replace (sandbox-store) with
*prevalence-store*"

Should it not be enough to make the following changes?

Comment out (init-sandbox-store) in:
init-session.lisp

Replaced sandbox-store with *prevalence-store* in:
src/model/company.lisp

Thanks,

Mikael

Mikael Andersson

unread,
Apr 9, 2012, 5:49:36 AM4/9/12
to webl...@googlegroups.com
Can someone please help point me in the right direction? I suspect that the answer to my question is quite easy, i.e. entails small changes to get it work, provided you know how to do.

Thanks in advance.

Mikael

Mikael Andersson

unread,
Apr 12, 2012, 8:41:59 AM4/12/12
to webl...@googlegroups.com
Ok, I think I solved it. Apart from removing everything that has to do with the sandbox-store, I had to remove (defstore *scratch-store* :memory) in stores.lisp. For me it was not obvious that I had to do that. Moreover it says in stores.lisp that the last defstore is the standard one. I interpret that as the one which will be the selected one. Consequently, the scratch-store should be ignored since it comes before the prevalence-store. Can you please add that to the README file?

Another thing that is strange is that I have to restart slime in order for the change, i.e. commenting out the scratch-store, to have any effect. Should it not be enough by invoking (asdf:operate 'asdf:load-op :weblocks-demo)?

Thanks,

Mikael
Reply all
Reply to author
Forward
0 new messages