[rucksack-devel] rucksack-map-class

Aycan iRiCAN aycan.irican at core.gen.tr
Sat May 27 01:07:15 UTC 2006


Hi,

First of all, thank you all for this great project. Your approach is
similar to elephant project that I was using but lots of nice and new
features that I'm waiting for. I believe a persistence mechanism is
needed by all CL developers and rucksack is going to serve this
important purpose.

I'm new to rucksack's internals and I have a little question.

I created a persistent class and added it to rucksack root.

CDB> (with-coredb
	 (rucksack-roots ru))
T
(#<META-CORETAL #0 in #<STANDARD-CACHE of size 10000, heap #P"/tmp/heap" and 1 objects in memory.>>)

After that, I tried to describe all the instances of this class.

(WITH-RUCKSACK (RU *DB-LOCATION*)
                (WITH-TRANSACTION NIL
                                  (RUCKSACK-MAP-CLASS RU
                                                      (FIND-CLASS
                                                       'META-CORETAL)
                                                      (LAMBDA (X)
                                                        (DESCRIBE X)))))
But I'm getting an error:
There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION RUCKSACK (6)>
when called with arguments
  (#<STANDARD-RUCKSACK in #P"/tmp/coredb" with 1 root {B3CAD01}>).
   [Condition of type SIMPLE-ERROR]

I think this is due to rucksack-map-class tries to cache a
standard-rucksack instead of getting the cache that belongs to the
standard-rucksack.

Here is a tiny patch.

Index: rucksack.lisp
===================================================================
RCS file: /project/rucksack/cvsroot/rucksack/rucksack.lisp,v
retrieving revision 1.6
diff -r1.6 rucksack.lisp
552c552
<         (cache (cache rucksack)))
---
>         (cache (rucksack-cache rucksack)))

Kind Regards.

-- 
Aycan iRiCAN
C0R3 Computer Security Group
http://www.core.gen.tr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/rucksack-devel/attachments/20060527/e4abf492/attachment.sig>


More information about the rucksack-devel mailing list