On Nov 18, 2008, at 6:27 PM, Asiri Rathnayake wrote:
Hi Guillaume L,
How do you handle cases when the target document already exists? Right now I
only receive an unhelpful error message ("you are not authorized to perform this action").
Yes, I didn't update this code yet. We need to provide a descent error message.
Sample document imported (styles filtered) : http://91.121.237.216/xwiki/bin/view/Import/NoStyles
(% align="JUSTIFY" class="western" %) is still present even though it does not seem to bring useful information (since added text should follow the wiki conventions regarding text alignement and font: those shoulmd be the same on every page for the wiki, thus the wiki's default should prevail on those from the original file when converting to wiki wyntax with no styles).
This should be done now (for 1.7) and not wait for later. It's very easy to filter class="western" elements. Thanks -Vincent
Sample document imported (styles preserved) : http://91.121.237.216/xwiki/bin/view/Import/WithStyles
I have a small bug here: a text element that has underlined + bold + italics + color + background color is rendered as bold + italics + underlined in no styles (so far so good) but the same element is rendered italics + bold + background color but without color and underlined in withstyles mode.
Both of these issues will be handled when we introduce strict style filtering.
Thank you very much for testing office-importer. :)
- Asiri