Hi Michael,

Michael Ralston schrieb:

[...]

> I've got it working to the point that "Import example pages" works,
> but publishing a page to the live area does not. I've come across a
> problem with the DocumentManagerImpl which I think is caused by it
> assuming that all content is a Byte Stream.
> 
> copy(SourceResolver resolver, InputStream sourceInputStream, Document
> destination)
> copyContent(Document sourceDocument, Document destinationDocument)

You could probably extend the DocumentManagerImpl and override
these methods.


> These two methods both use ByteArrayOutputStream to copy the contents
> of documents. My implementation based on a lenya snapshot from 6
> months ago, used Object.clone() to copy the content of a page, and
> then left it up to the implementation of that content to decide how to
> best clone its data. What do you think of this approach?

What would be the benefits in comparison with streams?
I guess you need the input and output streams anyway, or am I
missing something?

> Once again, I'd like to contribute my code as soon as possible. Should
> I wait until after the 1.4 release candidate? Or would it be
> appropriate to include it in modules-optional?

I think both options are OK.

Thanks for sharing your code and ideas!

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to