[Cuis-dev] [RFC] Proxy, reference stream ?

Gerald Klix cuis.01 at klix.ch
Thu Nov 21 03:24:02 PST 2024


On 11/21/24 11:22 AM, Hilaire Fernandes via Cuis-dev wrote:
> Hi,
>
> I am requesting some comments and design ideas.
>
> For the Dybo document[1], the ones annotating PDF pages, see [2], I 
> want the document to be saved on disk as reference stream, but I don't 
> want its PDF part (a PageModel morph, in fact a Form, preview of a PDF 
> page) to be included in the reference stream as it already exists on 
> disk.
>
> I have some idea on how to persist a Document between reference steam 
> and regular files, but I am interested to read other design ideas.
>
> Thanks
>
> [1] A Dybo document is a collection of pages, each page is in essence 
> an aggregate of a background (one morph from the hierarchy of 
> PageModels) and paper morph.
>
> [2] https://mamot.fr/@drgeo/113492207107062018
>
>
>
As I mentioned several times, I implemented my on persistence solution 
for Haver,
which supports proxy objects and classes that have custom records that 
are stored in the database.
(https://hg.sr.ht/~cy-de-fect/HaverOnCuis/browse/haver/db/PlanF.pck.st)

Using for proxy objects to store morphs in a (smart) reference stream is 
a bit dangerous,
because Morph>>#copy uses those to copy a whole tree of morphs.
In other words: This will break the assumption, that the aforementioned 
method
produces a complete copy.


HTH,

Gerald


More information about the Cuis-dev mailing list