Forum OpenACS Development: Re: Creating CrClass revisions without setting as live revision

Calling save -live_p from a subtype of ::Generic::Form doesn't work because the object is a CrCache::Item.

Class CrCache::Item
CrCache::Item instproc save {} {
set r [next]
#my log "--CACHE saving [self] in cache"
ns_cache set xotcl_object_cache [self] \
[::Serializer deepSerialize [self]]
return $r
}

and the save method does not take any args.

I am not sure what is going on there, or how to fix it. I see that save_new takes args and passes them to "next".

I changed
Class CrCache::Item
CrCache::Item instproc save {} {
set r [next]

to

Class CrCache::Item
CrCache::Item instproc save {args} {
set r [next]

And not it works as expected?

Shall I check this in? I don't know enough about the cache and serializer code to understand if I changed anything else.

you are correct, this needed an update. Changed in cvs head, see as well other posting...