[xwiki-users] How do I apply monospace wiki markup in a velocity script?

2012-11-11 Thread crocket
{{velocity}}
##hello##
{{/velocity}}

Just prints nothing.

Since ## means the beginning of a comment in velocity, I can't use ## and
## as monospace wiki markup.

What can I do?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?

2012-11-11 Thread crocket
I just referred to
http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but
there is no mention of H.
However, it works.

Where can I find the documentation about it?


On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.frwrote:

 On 11/11/2012 05:28 PM, crocket wrote:

 {{velocity}}
 ##hello##
 {{/velocity}}

 Just prints nothing.

 Since ## means the beginning of a comment in velocity, I can't use ## and
 ## as monospace wiki markup.


 This should work :

 ${escapetool.H}#hello${**escapetool.H}#

 Jerome


 What can I do?
 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users


 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?

2012-11-11 Thread crocket
OK. I found the documentation on
http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/EscapeTool.html?is-external=true

What does velocity do with the second # in ${escapetool.H}#?
Does it do nothing about it?

On Mon, Nov 12, 2012 at 4:44 AM, crocket crockabisc...@gmail.com wrote:

 I just referred to
 http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , but
 there is no mention of H.
 However, it works.

 Where can I find the documentation about it?



 On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.frwrote:

 On 11/11/2012 05:28 PM, crocket wrote:

 {{velocity}}
 ##hello##
 {{/velocity}}

 Just prints nothing.

 Since ## means the beginning of a comment in velocity, I can't use ## and
 ## as monospace wiki markup.


 This should work :

 ${escapetool.H}#hello${**escapetool.H}#

 Jerome


 What can I do?
 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users


 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How do I apply monospace wiki markup in a velocity script?

2012-11-11 Thread Jerome Velociter

On 11/11/2012 08:44 PM, crocket wrote:
I just referred to 
http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed , 
but there is no mention of H.

However, it works.

Where can I find the documentation about it?


Strangely the documentation doesn't seem to show inherited methods from 
org.apache.velocity.tools.generic.EscapeTool, but if you click the 
parent link on the escapetool, you'll see getH()


Jerome




On Mon, Nov 12, 2012 at 1:42 AM, Jerome Velociter jer...@velociter.fr 
mailto:jer...@velociter.fr wrote:


On 11/11/2012 05:28 PM, crocket wrote:

{{velocity}}
##hello##
{{/velocity}}

Just prints nothing.

Since ## means the beginning of a comment in velocity, I can't
use ## and
## as monospace wiki markup.


This should work :

${escapetool.H}#hello${escapetool.H}#

Jerome


What can I do?
___
users mailing list
users@xwiki.org mailto:users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org mailto:users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] chart macro is not accessible as an anonymous user.

2012-11-11 Thread crocket
I enabled view permission on wiki, space, and page levels for unregistered
users, but anonymous users see the below errors instead of a chart.

org.xwiki.rendering.macro.MacroExecutionException: You do not have
permission to view the document. at
org.xwiki.rendering.internal.macro.chart.source.table.DocumentTableBlockDataSource.validateParameters(DocumentTableBlockDataSource.java:194)
at
org.xwiki.rendering.internal.macro.chart.source.AbstractDataSource.validateParameters(AbstractDataSource.java:115)
at
org.xwiki.rendering.internal.macro.chart.source.table.AbstractTableBlockDataSource.buildDataset(AbstractTableBlockDataSource.java:137)
at
org.xwiki.rendering.internal.macro.chart.ChartMacro.generateChart(ChartMacro.java:154)
at
org.xwiki.rendering.internal.macro.chart.ChartMacro.execute(ChartMacro.java:110)
at
org.xwiki.rendering.internal.macro.chart.ChartMacro.execute(ChartMacro.java:56)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:189)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:136)
at
org.xwiki.rendering.internal.macro.html.HTMLMacro.renderWikiSyntax(HTMLMacro.java:263)
at
org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:146)
at
org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:71)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:189)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:136)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:250)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:990)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:953)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:926)
at
com.xpn.xwiki.objects.classes.TextAreaClass.displayView(TextAreaClass.java:220)
at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2760) at
com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2721) at
com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2670) at
com.xpn.xwiki.api.Document.display(Document.java:1507) at
sun.reflect.GeneratedMethodAccessor1048.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601) at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
at

[xwiki-users] control the size of the attachments temp storage?

2012-11-11 Thread Paul Libbrecht
Hello XWiki experts,

at www.curriki.org, our two server-nodes are reaching limits in terms of 
storage.
One of the things that take a lot of space are the logs, we have a clue how to 
manage that.

Another thing that takes a lot of space is /var/tmp/ which contains temporary 
storages for the attachment deliveries. 

On one of the nodes, it's made of 14Gb and 12538 files.
On the other, 23Gb and 29402 files.

What are the risk of deleting the old files there?
Is the server touching the files when it has served them so that files older 
than a day could be deleted if we need?
(I think I know that it takes more time to deliver from the DB and create 
temp-storage than to use the temp storage)

thanks in advance

Paul
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users