Hi,
Some comments:
* I don't think the Import space name is a good one for the office
importer. I'd rather not create a new space and move the 2 pages in
the XWiki space (my preference right now, otherwise users will be able
to edit the pages by default unless we provide a WebPreferences and it
makes securing the wiki harder) or use something like OfficeImporter
(less good IMO).
* Navigating to the Importer page shows error messages. I think that
page should not be shown and be hidden so that users don't navigate to
it. It could also be moved to the XWiki space for now.
* We need a link from the top menu. It think that should be real quick
to add for 1.8M1
* it's a little buggy right now but I have commented why in the jira
issue: http://jira.xwiki.org/jira/browse/XWIKI-3083
WDYT?
Thanks
-Vincent
http://xwiki.comhttp://xwiki.orghttp://massol.net
On Sat, Jan 10, 2009 at 4:45 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
> tmortagne (SVN) wrote:
>
>> Added: platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java
>> ===================================================================
>> --- platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java (rev 0)
>> +++ platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java 2008-12-27 15:58:45 UTC (rev 14929)
>> @@ -0,0 +1,69 @@
>> +/*
>> + * See the NOTICE file distributed with this work for additional
>> + * information regarding copyright ownership.
>> + *
>> + * This is free software; you can redistribute it and/or modify it
>> + * under the terms of the GNU Lesser General Public License as
>> + * published by the Free Software Foundation; either version 2.1 of
>> + * the License, or (at your option) any later version.
>> + *
>> + * This software is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>> + * Lesser General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU Lesser General Public
>> + * License along with this software; if not, write to the Free
>> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
>> + */
>> +package org.xwiki.rendering.listener;
>> +
>> +/**
>> + * Default implementation of {@link Attachment}.
>> + *
>> + * @version $Id$
>> + * @since 1.7.1
>> + */
>> +public class DefaultAttachement implements Attachment
>> +{
>> + /**
>> + * The name of the document containing the attachment.
>> + */
>> + private String documentName;
>> +
>> + /**
>> + * The name of the attachment.
>> + */
>> + private String attachmentName;
>> +
>> + /**
>> + * @param documentName the name of the document containing the attachment.
>> + * @param attachmentName the name of the attachment.
>> + */
>> + public DefaultAttachement(String documentName, String attachmentName)
>> + {
>> + this.documentName = documentName;
>> + this.attachmentName = attachmentName;
>> + }
>> +
>> + /**
>> + * {@inheritDoc}
>> + *
>> + * @see org.xwiki.rendering.listener.Attachment#getDocumentName()
>> + */
>> + public String getDocumentName()
>> + {
>> + return this.documentName;
>> + }
>> +
>> + /**
>> + * {@inheritDoc}
>> + *
>> + * @see org.xwiki.rendering.listener.Attachment#getAttachmentName()
>> + */
>> + public String getAttachmentName()
>> + {
>> + return this.attachmentName;
>> + }
>> +}
>
> Shouldn't this one be in an internal package, like the
> DefaultAttachmentParser?
DefaultAttachement is not a component so you need to know it to be
able to use it and it's more the default implementation anyone could
use to represent an attachment. It's here as a toolkit and not just
the implementation used by DefaultAttachmentParser.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
tmortagne (SVN) wrote:
> Added: platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java
> ===================================================================
> --- platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java (rev 0)
> +++ platform/core/branches/xwiki-core-1.7/xwiki-rendering/src/main/java/org/xwiki/rendering/listener/DefaultAttachement.java 2008-12-27 15:58:45 UTC (rev 14929)
> @@ -0,0 +1,69 @@
> +/*
> + * See the NOTICE file distributed with this work for additional
> + * information regarding copyright ownership.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package org.xwiki.rendering.listener;
> +
> +/**
> + * Default implementation of {@link Attachment}.
> + *
> + * @version $Id$
> + * @since 1.7.1
> + */
> +public class DefaultAttachement implements Attachment
> +{
> + /**
> + * The name of the document containing the attachment.
> + */
> + private String documentName;
> +
> + /**
> + * The name of the attachment.
> + */
> + private String attachmentName;
> +
> + /**
> + * @param documentName the name of the document containing the attachment.
> + * @param attachmentName the name of the attachment.
> + */
> + public DefaultAttachement(String documentName, String attachmentName)
> + {
> + this.documentName = documentName;
> + this.attachmentName = attachmentName;
> + }
> +
> + /**
> + * {@inheritDoc}
> + *
> + * @see org.xwiki.rendering.listener.Attachment#getDocumentName()
> + */
> + public String getDocumentName()
> + {
> + return this.documentName;
> + }
> +
> + /**
> + * {@inheritDoc}
> + *
> + * @see org.xwiki.rendering.listener.Attachment#getAttachmentName()
> + */
> + public String getAttachmentName()
> + {
> + return this.attachmentName;
> + }
> +}
Shouldn't this one be in an internal package, like the
DefaultAttachmentParser?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hi xwikiers,
I need to commit the 1.0->2.0 converter which contains some classes
used only for this purpose. So I would prefer to to add it directly in
xwiki-core-rendering module, plus I don't like to have anything about
xwiki 1.0 in the core-rendering module.
But if we have XWiki 1.0 parser in it's own module, it would be
cleaner to have all parsers extracted from the core-rendering module.
So I propose to reorg a bit rendering to have:
- xwiki-core-rendering
- xwiki-core-rendering-api
- xwiki-core-rendering-macros
- xwiki-core-rendering-macro-toc
- ...
- xwiki-core-rendering-parsers
- xwiki-core-rendering-parser-xwiki10
- xwiki-core-rendering-parser-wikimodel
- xwiki-core-rendering-parser-doxia
Also having everything under the same maven parent is better in the
context of making xwiki rendering framework an independent open source
project latter. And better sooner than latter.
Here is my +1.
--
Thomas Mortagne
To implement the wiki configuration source in the configuration
component, we need to retrieve the list of properties of the
XWiki.XWikiPreferences class.
For this, I would like to add the following method in the
DocumentAccessBridge :
List<String> getPropertyNames(String className) throws Exception;
My +1,
Jerome