Hi,
In order to implement SpacePreferencesConfigurationSource I need
access to the current space.
Hence I'm proposing to add String
DocumentAccessBridge.getCurrentSpace()
Here's my +1
Thanks
-Vincent
Hi,
I would like to start a vote to move the ratings and collections plugins
out of the sandbox, as a first step to make them available in the
default XE bundle.
We now have some clients that are using these plugins in production, so
it is time to make them real plugins.
Some history about the ratings and collections plugins.
RATINGS:
This plugin allows to record ratings about any item, an particular
documents. It stores ratings in separate spaces and records the
calculated average rating in the document itself.
It includes java and groovy hooks to write custom rating calculation.
This can be usefull to not calculate a single average but to include the
"rating" of the users in the calculation.
A skin extension allows to include the ratings selection mecanism in the
UI (it's a separate module).
As a second step the Ratings plugin and application can be bundled in
standard XWiki.
COLLECTION:
The collection plugin allows to manipulate collections of XWiki documents. The plugin is the basis for the MultiPage Export feature allowing to make a PDF or a XAR of multiple pages.
The collection plugin also includes a special activity stream allowing to record changes of a document and all it's childs. The changes are recorded only for documents that match a specific class set in xwiki.cfg.
As a second step an application can be published for MultiPage Export on code.xwiki.org . Some changes are still necessary for that to not depend on skin modifications for this to work so it will be done later.
Here is my +1 for both.
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax
gives :
Error number 4001 in 4: Error while parsing velocity page Main.XWikiSyntax
Wrapped Exception: Failed to evaluate content with id XWiki Syntax
<http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax>
...
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'fromXML' in class com.xpn.xwiki.doc.XWikiDocument threw
exception com.xpn.xwiki.XWikiException: Error number 2002 in 2: Error
parsing xml
Wrapped Exception: Error on line -1 of document : Premature end of
file. Nested exception: Premature end of file. @ Main.XWikiSyntax6,16?
<http://platform.xwiki.org/xwiki/bin/edit/Main/6%2C16?parent=Main.XWikiSyntax>
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:490)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:454)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
regards
Pascal
Hi,
XWiki has evolved a lot in the past year and new client apps were created.
Our current Xml-Rpc API is aligned to the Confluence 1.0 API
specification and hasn't been really enriched in a long time.
Since we have some distinct features like 'polyglot wiki' I propose to
create a new "xwiki2" method set to handle XWiki 2.0 method calls.
The new handler will be added to the Apache Xml-Rpc servlet properties file.
Proposed new xml-rpc methods(mostly needed for XEclipse, XOffice and XOO):
- parseFromHtml(String html, String syntax) : String
- render(String source, String syntaxId) : String
- cleanHtml(String dirtyHtml) : String
- add class ( http://jira.xwiki.org/jira/browse/XWIKI-3499 )
- getConfiguredSyntaxes
- getVirtualWikisNames
- getMacros, etc.
Proposed Xml-Rpc model extensions:
- Page
- syntaxId;
- ServerInfo/Wiki:
- isMultiWiki
- defaultSyntax
- encoding
WDYT?
Thanks,
Florin Ciubotaru
* one for the API: xwiki-configuration-api
* one for the default implementation: xwiki-configuration-default
The reason is that I'd like to implement
- XWikiPreferencesConfigurationSource
- SpacePreferencesConfigurationSource
- UserPreferencesConfigurationSource
And they'll need access to the DocumentAccessBridge
And I don't think it's a good idea to have that dep in the API.
WDYT?
Thanks
-Vincent
Hi Guys
I am able not able to instaal xwiki. I am using tomcat 6 on
ubuntu intrepid. Error I am gettting is
*exception*
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Hibernate Dialect must be explicitly set
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
*root cause*
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Hibernate Dialect must be explicitly set
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:327)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:388)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
Please help me to getover from this error.
-arvind
On Fri, Jun 26, 2009 at 21:41, Sergiu Dumitriu<sergiu(a)xwiki.com> wrote:
> tmortagne (SVN) wrote:
>> Author: tmortagne
>> Date: 2009-06-22 15:07:18 +0200 (Mon, 22 Jun 2009)
>> New Revision: 21405
>>
>> Added:
>> platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-velocity/src/main/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilter.java
>> platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-velocity/src/test/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilterTest.java
>> Log:
>> XWIKI-4018: Create an indentation velocity macro filter
>>
>> Added: platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-velocity/src/main/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilter.java
>> ===================================================================
>> --- platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-velocity/src/main/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilter.java (rev 0)
>> +++ platform/core/trunk/xwiki-rendering/xwiki-rendering-macros/xwiki-rendering-macro-velocity/src/main/java/org/xwiki/rendering/internal/macro/velocity/filter/IndentVelocityMacroFilter.java 2009-06-22 13:07:18 UTC (rev 21405)
>
>> + /**
>> + * Match indentation spaces.
>> + */
>> + private static final Pattern INDENT_PATTERN = Pattern.compile("^[ \t]*", Pattern.MULTILINE);
>
> Replace with "^[ \t]++":
> - * means that it matches all line starts, doing a useless replace for
> the empty string. Thus the first +.
> - The second + is not that useful, since there's no backtracking to
> perform, but just to be explicit, it might save some ifs and elses.
Yes it's better, i did this regexp too quickly.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne