Andreas Hartmann wrote:
Hi Jörn,
thanks for your ideas!
Joern Nettingsmeier schrieb:
[...]
moreover, we would need to change image references from
lenya-document:... to some valid local file link before passing them to
the editor, so that it can do proper wysiwyg, and change them back upon
saving. which can be a little tricky.
This already happens for BXE and Kupu (for internal links and images).
neat. i need to steal that code for tiny :)
andreas, where should the actual saving be implemented? my gut feeling
says that our editor code should just throw an xml tree somewhere and
not be concerned with file operations or streams.
What do you mean with "throw somewhere"?
sorry for the sloppy language. i mean that an editor handler should not
be concerned with the gory details of storing the edited document. all
it should have to do is pass the final, validated and post-processed XML
DOM tree to someone who takes care of it.
that means that the saveXML method should vanish from
FooEditorUsecase.java altogether. the question is: who will do the job?
what is the correct method of saving a previously checked-out document?
and while we're at it: what is the correct way of checking out a
document? we currently have an action to do that, but i think it's quite
unintuitive to do the checkout in a sitemap, and almost everything else
in a usecase handler.
but which lenya
component should handle that xml tree and store it? i'm not too familiar
with the DAV upload handler - can we simply use it for all editors?
I guess WebDAV would be the easiest and a quite generic way.
The major problem is the different behaviour of the editors,
and the large amount of customization.
i did not mean to suggest to use webdav for the actual upload, since
most editors don't know about webdav - only to maybe steal the handler code.
I guess the Neutron protocol (http://neutron.wyona.org/) is the most
promising step in this direction, but of course it depends on the
acceptance by editor vendors.
yes, unfortunately.
--
jörn nettingsmeier
home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
phone://+49/201/491621
if you are a free (as in "free speech") software developer
and you happen to be travelling near my home, drop me a line
and come round for a free (as in "free beer") beer. :-D
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]