Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Stefan Bachert

Hi,

I am sorry, but I am working very intensive on xwiki (7 days a week).
However, I am still a beginner as I started two weeks before.

And it is very hard to reply on a digest mailing list.
I  changed this in spite of the ugly gui.

Stefan Bachert
-- 
View this message in context: 
http://n2.nabble.com/Macro-in-html-macro-tp4611361p4617688.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Autoincrement value in class

2010-02-23 Thread Hernández Cuchí , Francisco Ricardo
Hello,

 

I would like to create a class, with a number property that will be 
autoincrement. Is it posible? How can I do it?

 

Thanks

 

Francisco

 

--

Francisco Hernández Cuchí

Jefe de Servicios Sistemas de Información 

OFICINA ESPAÑOLA DE PATENTES Y MARCAS

 

**
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
está dirigido únicamente 
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su 
administrador de correo o con el 
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] macros and lists

2010-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2010 at 09:07, Stefan Bachert stefanbach...@yahoo.de wrote:

 Ok, let's go into details.

 I want to create a macro which build a select with its option tag.
 Let call them {{buildSelect values=.. /}}
 For the option items I need a list of string values
 calling
 {{buildSelect values=[a,b,c] /}}
 does not work. Display values in the macro just shows [.

You need to escape  because it's part of the macro parameter syntax.

{{buildSelect values=[~a~,~b~,~c~] /}}

But are you sure you need  characters ?

{{buildSelect values=a,b,c /}} should be enough

Unless you want to interpret this string as velocity code in a wiki
macro but it seems very dangerous (a user could put any velocity he
wants as parameter of your macro).


 OK, there is a workaround. Passing a string

 {{buildSelect values=[a|b|c] /}}
 and applying $util.split works

 I guess this is a bug.
 --
 View this message in context: 
 http://n2.nabble.com/macros-and-lists-tp469p4617554.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


Re: [xwiki-users] macros and lists

2010-02-23 Thread Vincent Massol

On Feb 23, 2010, at 10:07 AM, Thomas Mortagne wrote:

 On Tue, Feb 23, 2010 at 09:07, Stefan Bachert stefanbach...@yahoo.de wrote:
 
 Ok, let's go into details.
 
 I want to create a macro which build a select with its option tag.
 Let call them {{buildSelect values=.. /}}
 For the option items I need a list of string values
 calling
 {{buildSelect values=[a,b,c] /}}
 does not work. Display values in the macro just shows [.
 
 You need to escape  because it's part of the macro parameter syntax.
 
 {{buildSelect values=[~a~,~b~,~c~] /}}
 
 But are you sure you need  characters ?
 
 {{buildSelect values=a,b,c /}} should be enough

The normalized syntax is {{buildSelect values=a,b,c/}}

If you don't put the quotes around parameter values they are added 
automatically for you. That's why you'd get the following:
{{buildSelect values=[a,b,c]/}}
And this explains why you need to escape the quotes if you use them inside a 
parameter value.

Right now AFAIK only strings are supported as parameter type when the macro is 
used in wiki syntax.

Thanks
-Vincent

 
 Unless you want to interpret this string as velocity code in a wiki
 macro but it seems very dangerous (a user could put any velocity he
 wants as parameter of your macro).
 
 
 OK, there is a workaround. Passing a string
 
 {{buildSelect values=[a|b|c] /}}
 and applying $util.split works
 
 I guess this is a bug.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] macros and lists

2010-02-23 Thread Stefan Bachert

Hi Thomas,

For me it looks that ALL parameter will be converted to STRING
Let's go into concrete

 How to be defined -
{{velocity}}
#set($list = $xcontext.macro.params.listX)
list = $list
#foreach($x in $list)
item = $x
#end
{{/velocity}}
 How to apply -
{{velocity}}

#set($list =[aha,oho])
{{passList listX=$list /}}

#set($list =[aha,oho])
{{passList listX=list /}}

#set($list =aha oho)
{{passList listX=$list /}}

{{passList listX=aha|oho /}}
{{passList listX=[aha,oho] /}}
{{passList listX=aha,oho /}}
{{passList listX=[aha,oho] /}}
{{passList listX=aha,oho /}}

{{/velocity}}
 this is the output --
list = [aha,

list = list

list = aha

list = aha|oho

list = [

list = aha

list = [aha,oho]

list = aha,oho
---

Stefan Bachert

-- 
View this message in context: 
http://n2.nabble.com/macros-and-lists-tp469p4617869.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rights

2010-02-23 Thread Stefan Bachert

Hi,

found out what went me wrong.

I allowed viewing in the assigned user group, but I disabled viewing in the
WikiAllGroup.

It is surprising to me that the more general WikiAllGroup wins over the more
specific assigned user group.

However, when the more specific user group is no more able to change the
value when defined at WikiAllGroup, the checkbox should either be invisible
or readonly to reflect the current state

Stefan Bachert
-- 
View this message in context: http://n2.nabble.com/Rights-tp4608372p4617937.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Suppress DocTitle

2010-02-23 Thread Stefan Bachert

Hi,

I figured it out.
The easiest solution was to output a style in my page
 
style#document-title {visibiliy:collapse;height:0px;}/style

I put it into a macro to reuse this feature at different places


Stefan Bachert

-- 
View this message in context: 
http://n2.nabble.com/Suppress-DocTitle-tp4584920p4617959.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Create notifications (watchlist jobs) for other users

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 09:25 AM, Jean-Vincent Drean wrote:
 Hi,

 This is not possible for the moment and it's a known limitation.
 You can vote for  watch the following issue:
 http://jira.xwiki.org/jira/browse/XPWATCHLIST-102

Actually you can, using the object editor. It's not a nice UI, but it 
accomplishes the goal.

 Thanks,
 JV.

 On Tue, Feb 23, 2010 at 9:00 AM, Colesnicov Eugenecolesni...@gmail.com  
 wrote:

 In XWiki it is very easy to create notifications for current user, but how I
 can create notifications (watchlist jobs) for other users? For example, I,
 as admin, want to create watchlist job for user test?


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Stefan Bachert

Hi,

I figured it out now.

{{html wiki=true}}
{{warning}}Warning{{/warning}}
{{/html}}

setting wiki=true will enable included macros, too.
This is somewhat crude and not documented
-- 
View this message in context: 
http://n2.nabble.com/Macro-in-html-macro-tp4611361p4617987.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Vincent Massol

On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:

 
 Hi,
 
 I figured it out now.
 
 {{html wiki=true}}
 {{warning}}Warning{{/warning}}
 {{/html}}
 
 setting wiki=true will enable included macros, too.
 This is somewhat crude and not documented

How can you say it's not documented?
http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

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


Re: [xwiki-users] macros and lists

2010-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2010 at 10:33, Stefan Bachert stefanbach...@yahoo.de wrote:

 Hi Thomas,

 For me it looks that ALL parameter will be converted to STRING
 Let's go into concrete

  How to be defined -
 {{velocity}}
 #set($list = $xcontext.macro.params.listX)
 list = $list
 #foreach($x in $list)
 item = $x
 #end
 {{/velocity}}
  How to apply -
 {{velocity}}

 #set($list =[aha,oho])
 {{passList listX=$list /}}

 #set($list =[aha,oho])
 {{passList listX=list /}}

 #set($list =aha oho)
 {{passList listX=$list /}}

 {{passList listX=aha|oho /}}
 {{passList listX=[aha,oho] /}}
 {{passList listX=aha,oho /}}
 {{passList listX=[aha,oho] /}}
 {{passList listX=aha,oho /}}

 {{/velocity}}
  this is the output --
 list = [aha,

 list = list

 list = aha

 list = aha|oho

 list = [

 list = aha

 list = [aha,oho]

 list = aha,oho
 ---

 Stefan Bachert

 --
 View this message in context: 
 http://n2.nabble.com/macros-and-lists-tp469p4617869.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


Ok i see what is the issue here. xwiki/2.0 macro does not in any way
support velocity/java objects. It's only wiki syntax which is parsed
after the velocity block is interpreted so the only thing you can do
is put a proper string in it it's then the macro itself job to parse
each parameter value.

The only ting you can do with velocity here is to generate the proper
macro you could have written without velocity. A good trick to know
what you are doing is to use wiki=false in the velocity macro, that
way you can see what has been exactly generated after velocity
interpretation and before wiki syntax parsing.

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


Re: [xwiki-users] Rights

2010-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2010 at 10:54, Stefan Bachert stefanbach...@yahoo.de wrote:

 Hi,

 found out what went me wrong.

 I allowed viewing in the assigned user group, but I disabled viewing in the
 WikiAllGroup.

 It is surprising to me that the more general WikiAllGroup wins over the more
 specific assigned user group.

Actually it's more the deny that wins other the allow.


 However, when the more specific user group is no more able to change the
 value when defined at WikiAllGroup, the checkbox should either be invisible
 or readonly to reflect the current state

Yes but currently the right manager UI does not resolve rights it just
show the configuration of the current context. That's an improvement
we want to do but that not on the top of the TODO list.


 Stefan Bachert
 --
 View this message in context: 
 http://n2.nabble.com/Rights-tp4608372p4617937.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] macros and lists

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 10:33 AM, Stefan Bachert wrote:

 Hi Thomas,

 For me it looks that ALL parameter will be converted to STRING
 Let's go into concrete

  How to be defined -
 {{velocity}}
 #set($list = $xcontext.macro.params.listX)
 list = $list
 #foreach($x in $list)
 item = $x
 #end
 {{/velocity}}
  How to apply -
 {{velocity}}

 #set($list =[aha,oho])
 {{passList listX=$list /}}

Macros don't speak Velocity. This should never work as you expect it to.

First, velocity is executed, and $list is printed, resulting in:

{{passList listX=[aha, oho] /}}

Then the parameters are normalized, resulting in

{{passList listX=[aha, oho]= /}}

Thus the actual result, listX = aha[.

 #set($list =[aha,oho])
 {{passList listX=list /}}

Here velocity does not affect the macro in any way, since it does not 
contain any velocity code. It's important to understand that Velocity is 
not a central dogma in the wiki syntax anymore, it's just a scripting 
language that can be executed inside a {{velocity}} marker. Macros don't 
natively know about velocity, they don't use velocity variables in any way.

So, again, velocity is executed, but this time nothing is printed, 
resulting in just the macro line:

{{passList listX=list /}}

which is normalized to

{{passList listX=list /}}

and thus the list result.

 #set($list =aha oho)
 {{passList listX=$list /}}

After executing velocity, this becomes:

{{passList listX=aha oho /}}

normalized as:

{{passList listX=aha oho= /}}

thus listX = aha

 {{passList listX=aha|oho /}}

Nothing special, listX is the string aha|oho

 {{passList listX=[aha,oho] /}}

I don't know how exactly this gets normalized, but it starts as:

{{passList listX=[

 {{passList listX=aha,oho /}}

{{passList listX=aha oho= /}}

 {{passList listX=[aha,oho] /}}

Normalized as

{{passList listX=[aha,oho] /}}

 {{passList listX=aha,oho /}}

Normalized as

{{passList listX=aha,oho /}}

So, in conclusion, it's impossible to pass lists as macro parameter 
values, but not because it's a bug (macro parameters don't know 
velocity, and they don't use the same syntax), but because this is how 
we defined the behavior. The only workaround is to pass a string and 
split it in the macro code.

If you think that this is an important requirement, you can propose it 
as an improvement of the upcoming xwiki/2.1 syntax.


 {{/velocity}}
  this is the output --
 list = [aha,

 list = list

 list = aha

 list = aha|oho

 list = [

 list = aha

 list = [aha,oho]

 list = aha,oho


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rights

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 10:54 AM, Stefan Bachert wrote:

 Hi,

 found out what went me wrong.

 I allowed viewing in the assigned user group, but I disabled viewing in the
 WikiAllGroup.

 It is surprising to me that the more general WikiAllGroup wins over the more
 specific assigned user group.

Deny rights are always stronger than allow rights. There is no group 
ordering, no notion of a more specific group.

 However, when the more specific user group is no more able to change the
 value when defined at WikiAllGroup, the checkbox should either be invisible
 or readonly to reflect the current state

No, that is not right, since there is no known relationship between two 
groups. XWikiAllGroup could be much larger than the smaller group, thus 
the allow right is not always ignored, it correctly applies for all the 
users that are in XWikiAllGroup and not in your specific group.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Stefan Bachert

Hi,

Ok, I see it now, too.

However, the attribute name wiki is very misleading.
I still get no link for wiki syntax to macro.
Maybe with internal knowledge this may brighten up.

Stefan Bachert






Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
An: Stefan Bachert stefanbach...@yahoo.de
Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
Betreff: Re: Macro in html-macro

 
On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 


 
 Hi, 
 
 I figured it out now. 
 
 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 
 
 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
How can you say it's not documented? 
http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

Thanks 
-Vincent 
___ 
users mailing list 
[hidden email] 
http://lists.xwiki.org/mailman/listinfo/users



 
View message @ http://n2.nabble.com/Macro-in-html-macro-tp4611361p4618020.html 
To unsubscribe from Re: Macro in html-macro, click here. 


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com
-- 
View this message in context: 
http://n2.nabble.com/Macro-in-html-macro-tp4611361p4618078.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Vincent Massol

On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:

 
 Hi,
 
 Ok, I see it now, too.
 
 However, the attribute name wiki is very misleading.

It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd never 
be able to use macros when you write wiki syntax!

-Vincent

 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.
 
 Stefan Bachert
 
 
 
 
 
 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro
 
 
 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 
 
 
 
 Hi, 
 
 I figured it out now. 
 
 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 
 
 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
 How can you say it's not documented? 
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
 
 Thanks 
 -Vincent 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rights

2010-02-23 Thread stefan bachert
Hi,

 However, when the more specific user group is no more able to change the
 value when defined at WikiAllGroup, the checkbox should either be invisible
 or readonly to reflect the current state

No, that is not right, since there is no known relationship between two 
groups. XWikiAllGroup could be much larger than the smaller group, thus 
the allow right is not always ignored, it correctly applies for all the 
users that are in XWikiAllGroup and not in your specific group.


 There is no relationship?? From the name any user is part of XWikiAllGroup (I 
don't know what is implemented).
 That is the relationship.
 I consider this as a design bug when the more general wins over the more 
specific.
This approach means I have to set ALL specific values right, I could NOT use 
the general for common setting overwriting it at some exceptions.
This leads to unmangable situation when have more than a few groups.

Stefan Bachert


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2010 at 11:31, Stefan Bachert stefanbach...@yahoo.de wrote:

 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.
 I still get no link for wiki syntax to macro.

{{macro param=value}} only mean something in xwiki/2.0 syntax,
that's how this syntax interpret a macro. Other syntaxes will do it
another way ({macro} in confluence for example, etc...). So it's
impossible to write a macro not linked to a wiki syntax because no
syntax mean that you only have plain text and in this case you don't
have syntax for macro either.

 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:



 Hi,

 I figured it out now.

 {{html wiki=true}}
 {{warning}}Warning{{/warning}}
 {{/html}}

 setting wiki=true will enable included macros, too.
 This is somewhat crude and not documented
 How can you say it's not documented?
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

 Thanks
 -Vincent
 ___
 users mailing list
 [hidden email]
 http://lists.xwiki.org/mailman/listinfo/users


 

 View message @ http://n2.nabble.com/Macro-in-html-macro-tp4611361p4618020.html
 To unsubscribe from Re: Macro in html-macro, click here.


 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.com
 --
 View this message in context: 
 http://n2.nabble.com/Macro-in-html-macro-tp4611361p4618078.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


[xwiki-users] international characters in space names

2010-02-23 Thread Axel Zuzek
hello,

I have several spaces starting with a special charakter ÖGroup etc.

xwiki search doesn't find any attachements that are attached to groups
starting with Ö

when I try to search attachements limiting the search to ÖGroup I get the
following error:

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content
[$xwiki.jsfx.use(uicomponents/search/search.js, false)##
$xwiki.ssfx.use(uicomponents/search/search.css, true)##

## Disable the document extra data: comments, attachments, history...
#set($docextras = [])
#set ($rssmode = ($!request.xpage == 'plain'))
## ---
## Space filtering
## ---

#set($spaces = $xwiki.spaces)
#set($selectedSpace = $!request.space)
## ---
## Space macros
## ---
#macro(spaceoption $space $selectedSpace)
  option value=${space} #if($selectedSpace ==
$space)selected=selected#end$space/option

#end
#macro(spaceselect $selectedSpace $spaces)
  select name=space title=$msg.get('xe.search.bar.spaces.title')
option value= #if($selectedSpace ==
'')selected=selected#end$msg.get('xe.search.bar.spaces.all')/option

#foreach($space in $spaces)
  #if (!$blacklistedSpaces.contains($space))
#spaceoption($space $selectedSpace)
  #end
#end
  /select
#end
##
##
#set($text = $!request.getParameter('text'))

#set($utext = $util.encodeURI($text))
##
{{html}}
form action= id=searchBar
div class=centered
  input type=text name=text class=searchQuery #if($text ==
'') defaultText#end #if($text == '')
value=$msg.get('xe.search.bar.query.tip') #else
value=$xwiki.getXMLEncoded(${text}) #end
title=$msg.get('xe.search.bar.query.title')/

  #spaceselect($selectedSpace $spaces)
  input type=submit class=searchButton
value=$msg.get('xe.search.bar.submit')
title=$msg.get('xe.search.bar.submit.title')/

/div
/form
{{/html}}
##
#set($space = $selectedSpace)
#set($datedlist = $util.arrayList)
#if($!text == '')
  ## No search
#else
  #set($text = $text.replaceAll(', '').replaceAll(%, \\%))

  #set($nbitems = 50)
  ## --
  ## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
  ## Also exclude WebPreferences.
  ## --

  #set ($webClause = '')
  #foreach ($blacklistedSpace in $blacklistedSpaces)
#set ($webClause = ${webClause} doc.space  '$blacklistedSpace' and)
  #end
  #if(!$hasAdmin  !$isAdvancedUser)

#set ($webClause = ${webClause} doc.name'WebPreferences' and)
  #end
  ## ---
  ## Display only a given space if $request.space is defined

  ## ---
  #if($!space != '')
#set ($webClause = ${webClause} doc.space='$space' and)
  #end
  #macro(addelement $item $list)

#if($xwiki.hasAccessLevel('view', $context.user,
${context.database}:${item}))
  #set($itemdoc = $xwiki.getDocument($item))
  ## All items will be sorted by the date; since the list is
obtained from several queries, we can't order in the HQL.

  ## Prefix all item names with the date for sorting the combined results.
  #set($sdate = $xwiki.formatDate($itemdoc.date, 'MMddHHmmss'))
  #set($sitem = ${sdate}${item})
  #if(!$list.contains($sitem))

#set($discard = $list.add($sitem))
  #end
#end
  #end
  ## ---
  ## Search in the page names
  ## ---

  #set ($sql = where $webClause upper(doc.fullName) like
upper('%$!text%') order by doc.date desc)
  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)

  #end
  ## ---
  ## Search in page content
  ## ---
  #set ($sql = where $webClause upper(doc.content) like
upper('%$!text%') order by doc.date desc)

  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
  #end
  ## ---
  ## Search in text fields (simple String properties)

  ## ---
  #set($sql= , BaseObject as obj, StringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%'))

  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
  #end
  ## ---
  ## Search in big text fields (textarea properties)

  ## ---
  #set($sql= , BaseObject as obj, LargeStringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like 

[xwiki-users] international charakters in space names

2010-02-23 Thread Axel Zuzek
hello,

I have several spaces starting with a special charakter ÖGroup etc.

xwiki search doesn't find any attachements that are attached to groups
starting with Ö

when I try to search attachements limiting the search to ÖGroup I get the
following error:

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content
[$xwiki.jsfx.use(uicomponents/search/search.js, false)##
$xwiki.ssfx.use(uicomponents/search/search.css, true)##
## Disable the document extra data: comments, attachments, history...
#set($docextras = [])
#set ($rssmode = ($!request.xpage == 'plain'))
## ---
## Space filtering
## ---
#set($spaces = $xwiki.spaces)
#set($selectedSpace = $!request.space)
## ---
## Space macros
## ---
#macro(spaceoption $space $selectedSpace)
  option value=${space} #if($selectedSpace ==
$space)selected=selected#end$space/option
#end
#macro(spaceselect $selectedSpace $spaces)
  select name=space title=$msg.get('xe.search.bar.spaces.title')
option value= #if($selectedSpace ==
'')selected=selected#end$msg.get('xe.search.bar.spaces.all')/option
#foreach($space in $spaces)
  #if (!$blacklistedSpaces.contains($space))
#spaceoption($space $selectedSpace)
  #end
#end
  /select
#end
##
##
#set($text = $!request.getParameter('text'))
#set($utext = $util.encodeURI($text))
##
{{html}}
form action= id=searchBar
div class=centered
  input type=text name=text class=searchQuery #if($text ==
'') defaultText#end #if($text == '')
value=$msg.get('xe.search.bar.query.tip') #else
value=$xwiki.getXMLEncoded(${text}) #end
title=$msg.get('xe.search.bar.query.title')/
  #spaceselect($selectedSpace $spaces)
  input type=submit class=searchButton
value=$msg.get('xe.search.bar.submit')
title=$msg.get('xe.search.bar.submit.title')/
/div
/form
{{/html}}
##
#set($space = $selectedSpace)
#set($datedlist = $util.arrayList)
#if($!text == '')
  ## No search
#else
  #set($text = $text.replaceAll(', '').replaceAll(%, \\%))
  #set($nbitems = 50)
  ## --
  ## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
  ## Also exclude WebPreferences.
  ## --
  #set ($webClause = '')
  #foreach ($blacklistedSpace in $blacklistedSpaces)
#set ($webClause = ${webClause} doc.space  '$blacklistedSpace' and)
  #end
  #if(!$hasAdmin  !$isAdvancedUser)
#set ($webClause = ${webClause} doc.name'WebPreferences' and)
  #end
  ## ---
  ## Display only a given space if $request.space is defined
  ## ---
  #if($!space != '')
#set ($webClause = ${webClause} doc.space='$space' and)
  #end
  #macro(addelement $item $list)
#if($xwiki.hasAccessLevel('view', $context.user,
${context.database}:${item}))
  #set($itemdoc = $xwiki.getDocument($item))
  ## All items will be sorted by the date; since the list is
obtained from several queries, we can't order in the HQL.
  ## Prefix all item names with the date for sorting the combined results.
  #set($sdate = $xwiki.formatDate($itemdoc.date, 'MMddHHmmss'))
  #set($sitem = ${sdate}${item})
  #if(!$list.contains($sitem))
#set($discard = $list.add($sitem))
  #end
#end
  #end
  ## ---
  ## Search in the page names
  ## ---
  #set ($sql = where $webClause upper(doc.fullName) like
upper('%$!text%') order by doc.date desc)
  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
  #end
  ## ---
  ## Search in page content
  ## ---
  #set ($sql = where $webClause upper(doc.content) like
upper('%$!text%') order by doc.date desc)
  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
  #end
  ## ---
  ## Search in text fields (simple String properties)
  ## ---
  #set($sql= , BaseObject as obj, StringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%'))
  #foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
  #end
  ## ---
  ## Search in big text fields (textarea properties)
  ## ---
  #set($sql= , BaseObject as obj, LargeStringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%'))
  

Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread stefan bachert
Hi Vincent,

Technical you are surely totally right in the context of xwiki
But try to see that stuff from an users point of view, not from a developers 
one.
An user want to use xwiki not to analyse it.

Look what the german wikipedia thinks about wiki syntax. No macros at all.
http://de.wikipedia.org/wiki/Hilfe:Textgestaltung

And the french version, discusses something which looks like xwiki macros but 
they arent.
http://fr.wikipedia.org/wiki/Aide:Syntaxe


There is no common sense what Wiki syntax means.
So a better term would be helpful. However, it is not easy to find something 
better, all I am thinking of are rather a sentence than a word.


Stefan Bachert




Von: Vincent Massol vinc...@massol.net
An: XWiki Users users@xwiki.org
Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
Betreff: Re: [xwiki-users] Macro in html-macro


On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:

 
 Hi,
 
 Ok, I see it now, too.
 
 However, the attribute name wiki is very misleading.

It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd never 
be able to use macros when you write wiki syntax!

-Vincent

 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.
 
 Stefan Bachert
 
 
 
 
 
 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro
 
 
 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 
 
 
 
 Hi, 
 
 I figured it out now. 
 
 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 
 
 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
 How can you say it's not documented? 
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
 
 Thanks 
 -Vincent 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Vincent Massol

On Feb 23, 2010, at 12:48 PM, stefan bachert wrote:

 Hi Vincent,
 
 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.

End users should use the wysiwyg editor and the add macro dialog box from there 
(which has a description).

 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung
 
 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe

Almost all wikis have the notion of macros (sometimes called extensions or 
plugin too) so this is no different from any other wiki.

 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.

Sure, we couldn't find a better name to explain that the wiki syntax is 
evaluated or not. I initially wanted wikiSyntax=true|false but in order to have 
a short and concise name we agreed on wiki.

Note that we wouldn't be able to change it in XWiki syntax 2.0 (since it would 
break backward compat). The only window of opportunity to change it would be 
XWiki Syntax 2.1.

Thanks
-Vincent

 Stefan Bachert
 
 
 
 
 Von: Vincent Massol vinc...@massol.net
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro
 
 
 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:
 
 
 Hi,
 
 Ok, I see it now, too.
 
 However, the attribute name wiki is very misleading.
 
 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!
 
 -Vincent
 
 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.
 
 Stefan Bachert
 
 
 
 
 
 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro
 
 
 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 
 
 
 
 Hi, 
 
 I figured it out now. 
 
 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 
 
 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
 How can you say it's not documented? 
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
 
 Thanks 
 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Caleb James DeLisle
XWiki 2.0 syntax is defined here:
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros
Calling macros not syntax would be a big change in the way XWiki
is documented, and it makes no sense to me since macros are handled
by the syntax parser and they are not any external script language.

Caleb James DeLisle

stefan bachert wrote:
 Hi Vincent,
 
 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.
 
 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung
 
 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe
 
 
 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.
 
 
 Stefan Bachert
 
 
 
 
 Von: Vincent Massol vinc...@massol.net
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro
 
 
 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:
 
 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.
 
 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!
 
 -Vincent
 
 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 


 Hi, 

 I figured it out now. 

 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 

 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
 How can you say it's not documented? 
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

 Thanks 
 -Vincent 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails. 
 http://mail.yahoo.com 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 

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


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread stefan bachert
Hi,

http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros
following the link I found
-
In XWiki Syntax 2.0, by default the HTML macro understands wiki syntax. To 
prevent this, use {{html wiki=false}}.

-

Looking in
http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
states
-
wikiyestrue/false(Default) falseIndicate if the wiki syntax 
(including other macros) inside the macro is evaluated or not.
-

Both pages contradict each other. Due to tests the first page is wrong, the 
latter is true.
To allow wiki syntax the attribute wiki has to be EXPLICITELY set to true
{{html wiki=true}}


Stefan Bachert




Von: Caleb James DeLisle calebdeli...@lavabit.com
An: XWiki Users users@xwiki.org
Gesendet: Dienstag, den 23. Februar 2010, 13:19:37 Uhr
Betreff: Re: [xwiki-users] Macro in html-macro

XWiki 2.0 syntax is defined here:
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros
Calling macros not syntax would be a big change in the way XWiki
is documented, and it makes no sense to me since macros are handled
by the syntax parser and they are not any external script language.

Caleb James DeLisle

stefan bachert wrote:
 Hi Vincent,
 
 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.
 
 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung
 
 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe
 
 
 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.
 
 
 Stefan Bachert
 
 
 
 
 Von: Vincent Massol vinc...@massol.net
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro
 
 
 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:
 
 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.
 
 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!
 
 -Vincent
 
 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote: 


 Hi, 

 I figured it out now. 

 {{html wiki=true}} 
 {{warning}}Warning{{/warning}} 
 {{/html}} 

 setting wiki=true will enable included macros, too. 
 This is somewhat crude and not documented 
 How can you say it's not documented? 
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

 Thanks 
 -Vincent 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails. 
 http://mail.yahoo.com 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 

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


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Thomas Mortagne
XWikiSyntax page is wrong, fixing it. For all macros the reference
documentation is the one on code.xwiki.org.

On Tue, Feb 23, 2010 at 13:54, stefan bachert stefanbach...@yahoo.de wrote:
 Hi,

 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros
 following the link I found
 -
 In XWiki Syntax 2.0, by default the HTML macro understands wiki syntax. To 
 prevent this, use {{html wiki=false}}.

 -

 Looking in
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
 states
 -
 wiki    yes    true/false    (Default) false    Indicate if the wiki syntax 
 (including other macros) inside the macro is evaluated or not.
 -

 Both pages contradict each other. Due to tests the first page is wrong, the 
 latter is true.
 To allow wiki syntax the attribute wiki has to be EXPLICITELY set to true
 {{html wiki=true}}


 Stefan Bachert



 
 Von: Caleb James DeLisle calebdeli...@lavabit.com
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 13:19:37 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro

 XWiki 2.0 syntax is defined here:
 http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HMacros
 Calling macros not syntax would be a big change in the way XWiki
 is documented, and it makes no sense to me since macros are handled
 by the syntax parser and they are not any external script language.

 Caleb James DeLisle

 stefan bachert wrote:
 Hi Vincent,

 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.

 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung

 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe


 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.


 Stefan Bachert



 
 Von: Vincent Massol vinc...@massol.net
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro


 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:

 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.

 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!

 -Vincent

 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki] ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachert stefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:


 Hi,

 I figured it out now.

 {{html wiki=true}}
 {{warning}}Warning{{/warning}}
 {{/html}}

 setting wiki=true will enable included macros, too.
 This is somewhat crude and not documented
 How can you say it's not documented?
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

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


 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 12:48 PM, stefan bachert wrote:
 Hi Vincent,

 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.

And a USER would expect a macro to understand Velocity? I doubt that any 
regular user knows Velocity at all. I doubt that a regular user expects 
macros to be executed at a different level than the other wiki markup.

 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung

 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe

Comparing the XWiki wiki syntax with the one on wikipedia is not right. 
These are completely different wikis, with completely different purposes.

 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.


 Stefan Bachert



 
 Von: Vincent Massolvinc...@massol.net
 An: XWiki Usersusers@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro


 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:


 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.

 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!

 -Vincent

 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki]ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachertstefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:



 Hi,

 I figured it out now.

 {{html wiki=true}}
 {{warning}}Warning{{/warning}}
 {{/html}}

 setting wiki=true will enable included macros, too.
 This is somewhat crude and not documented
 How can you say it's not documented?
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

 Thanks
 -Vincent


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread stefan bachert
Hi,

I am an user of xwiki and I understand velocity.

Maybe my users of my Wiki, which is an application of xwiki, won't understand 
velocity.
However, they won't see it all. They will not even see (x)wiki syntax

Stefan Bachert





Von: Sergiu Dumitriu ser...@xwiki.com
An: XWiki Users users@xwiki.org
Gesendet: Dienstag, den 23. Februar 2010, 14:12:36 Uhr
Betreff: Re: [xwiki-users] Macro in html-macro

On 02/23/2010 12:48 PM, stefan bachert wrote:
 Hi Vincent,

 Technical you are surely totally right in the context of xwiki
 But try to see that stuff from an users point of view, not from a developers 
 one.
 An user want to use xwiki not to analyse it.

And a USER would expect a macro to understand Velocity? I doubt that any 
regular user knows Velocity at all. I doubt that a regular user expects 
macros to be executed at a different level than the other wiki markup.

 Look what the german wikipedia thinks about wiki syntax. No macros at all.
 http://de.wikipedia.org/wiki/Hilfe:Textgestaltung

 And the french version, discusses something which looks like xwiki macros 
 but they arent.
 http://fr.wikipedia.org/wiki/Aide:Syntaxe

Comparing the XWiki wiki syntax with the one on wikipedia is not right. 
These are completely different wikis, with completely different purposes.

 There is no common sense what Wiki syntax means.
 So a better term would be helpful. However, it is not easy to find something 
 better, all I am thinking of are rather a sentence than a word.


 Stefan Bachert



 
 Von: Vincent Massolvinc...@massol.net
 An: XWiki Usersusers@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro


 On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:


 Hi,

 Ok, I see it now, too.

 However, the attribute name wiki is very misleading.

 It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd 
 never be able to use macros when you write wiki syntax!

 -Vincent

 I still get no link for wiki syntax to macro.
 Maybe with internal knowledge this may brighten up.

 Stefan Bachert





 
 Von: vmassol [via XWiki]ml-node+4618020-1742651533-433...@n2.nabble.com
 An: Stefan Bachertstefanbach...@yahoo.de
 Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
 Betreff: Re: Macro in html-macro


 On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:



 Hi,

 I figured it out now.

 {{html wiki=true}}
 {{warning}}Warning{{/warning}}
 {{/html}}

 setting wiki=true will enable included macros, too.
 This is somewhat crude and not documented
 How can you say it's not documented?
 http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro

 Thanks
 -Vincent


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Simon Glet
Hi,

In order to debug my connection too XE 2.2 from Word and because it is
impossible to tcpdump 127.0.0.1 on Windows I installed a proxy in
order to see what is wrong with my connection string.

Now that I want to reinstall XOffice_1_1_M2.exe I get the following message :

Name:
From: 
http://xoffice.xwiki.org/xwiki/bin/download/Repository/WebHome/XWord1.1.zip/XWord.vsto

The required version of the .NET Framework is not installed on this computer.

** Exception Text **
Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException:
The required version of the .NET Framework is not installed on this
computer.
   at 
Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
   at 
Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.c__DisplayClass7.Installb__0()

As I have .Net v1.0.3705, v1.1.4322, v2.0.50727, v3.0 and v3.5 which
version do I need to register (how would be nice too) to get XOffice
running ?

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


[xwiki-users] rights management 1 user in several groups

2010-02-23 Thread Axel Zuzek
hi list,

when a user is member of several groups which group-permissions/rights are
used to access eg a site, the best one, or worst one, I can't see a system
here.

thx for your help
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Florin Ciubotaru
Hi Simon,

XOffice runs on .net 3.5.
If .net 3.5 is not found on your computer then it is automatically 
downloaded and installed by the XOffice installer. There's definitely 
something wrong there, since you should never get that message.
I never had this problem but I think this is probably an wrong error 
message of the installer. From what I understand you already had XOffice 
on the machine, so in this case there shouldn't be anything wrong with 
your .net install.
First thing to do is to make sure you uninstalled XOffice 1.0 before 
installing 1.1 M2 and that your firewall doesn't stop the installer from 
accessing xwiki.org and the Microsoft sites.
I'm not sure how the installer and XOffice itself handle the proxy, 
there could be issues with it. This can be easily implemented but I 
didn't get the time to do it yet.

Florin Ciubotaru

On 2/23/2010 4:01 PM, Simon Glet wrote:
 Hi,

 In order to debug my connection too XE 2.2 from Word and because it is
 impossible to tcpdump 127.0.0.1 on Windows I installed a proxy in
 order to see what is wrong with my connection string.

 Now that I want to reinstall XOffice_1_1_M2.exe I get the following message :

 Name:
 From: 
 http://xoffice.xwiki.org/xwiki/bin/download/Repository/WebHome/XWord1.1.zip/XWord.vsto

 The required version of the .NET Framework is not installed on this 
 computer.

 ** Exception Text **
 Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException:
 The required version of the .NET Framework is not installed on this
 computer.
 at 
 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
 at 
 Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.c__DisplayClass7.Installb__0()

 As I have .Net v1.0.3705, v1.1.4322, v2.0.50727, v3.0 and v3.5 which
 version do I need to register (how would be nice too) to get XOffice
 running ?

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



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


Re: [xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 04:04 PM, Florin Ciubotaru wrote:
 Hi Simon,

 XOffice runs on .net 3.5.
 If .net 3.5 is not found on your computer then it is automatically
 downloaded and installed by the XOffice installer. There's definitely
 something wrong there, since you should never get that message.
 I never had this problem but I think this is probably an wrong error
 message of the installer. From what I understand you already had XOffice
 on the machine, so in this case there shouldn't be anything wrong with
 your .net install.
 First thing to do is to make sure you uninstalled XOffice 1.0 before
 installing 1.1 M2 and that your firewall doesn't stop the installer from
 accessing xwiki.org and the Microsoft sites.
 I'm not sure how the installer and XOffice itself handle the proxy,
 there could be issues with it. This can be easily implemented but I
 didn't get the time to do it yet.

Another user reported this problem sometime ago on IRC, and he pointed 
to some help page from MS which indicated that there's a bug in the VS 
compiler, present in one of their beta versions. I don't remember the 
exact details, but the problem is a missing configuration file inside 
the installer.


 On 2/23/2010 4:01 PM, Simon Glet wrote:
 Hi,

 In order to debug my connection too XE 2.2 from Word and because it is
 impossible to tcpdump 127.0.0.1 on Windows I installed a proxy in
 order to see what is wrong with my connection string.

 Now that I want to reinstall XOffice_1_1_M2.exe I get the following message :

 Name:
 From: 
 http://xoffice.xwiki.org/xwiki/bin/download/Repository/WebHome/XWord1.1.zip/XWord.vsto

 The required version of the .NET Framework is not installed on this 
 computer.

 ** Exception Text **
 Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException:
 The required version of the .NET Framework is not installed on this
 computer.
  at 
 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
  at 
 Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.c__DisplayClass7.Installb__0()

 As I have .Net v1.0.3705, v1.1.4322, v2.0.50727, v3.0 and v3.5 which
 version do I need to register (how would be nice too) to get XOffice
 running ?


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] rights management 1 user in several groups

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 03:53 PM, Axel Zuzek wrote:
 hi list,

 when a user is member of several groups which group-permissions/rights are
 used to access eg a site, the best one, or worst one, I can't see a system
 here.

Deny rules are stringer than allow rules.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Simon Glet
Hi Florin,

The proxy is not used by XOffice's installer but just in case I shut
it down and the problem remains. The major change on my machine is
that since the last time I tested XOffice, I installed Visual Studio
2008 Pro and it's SP1.

From this 
http://blogs.msdn.com/vsto/archive/2009/05/07/issues-with-installing-vsto-projects-that-were-published-from-visual-studio-2008-on-windows-7-rc-saurabh-bhatia.aspx
it seems to be a known problem. In my case the FrameworkList.xml file
doesn't have the right size so something is obviously missing.

Thanks
Simon Glet

On Tue, Feb 23, 2010 at 10:04 AM, Florin Ciubotaru
florin.ciubot...@xwiki.com wrote:
 Hi Simon,

 XOffice runs on .net 3.5.
 If .net 3.5 is not found on your computer then it is automatically
 downloaded and installed by the XOffice installer. There's definitely
 something wrong there, since you should never get that message.
 I never had this problem but I think this is probably an wrong error
 message of the installer. From what I understand you already had XOffice
 on the machine, so in this case there shouldn't be anything wrong with
 your .net install.
 First thing to do is to make sure you uninstalled XOffice 1.0 before
 installing 1.1 M2 and that your firewall doesn't stop the installer from
 accessing xwiki.org and the Microsoft sites.
 I'm not sure how the installer and XOffice itself handle the proxy,
 there could be issues with it. This can be easily implemented but I
 didn't get the time to do it yet.

 Florin Ciubotaru

 On 2/23/2010 4:01 PM, Simon Glet wrote:
 Hi,

 In order to debug my connection too XE 2.2 from Word and because it is
 impossible to tcpdump 127.0.0.1 on Windows I installed a proxy in
 order to see what is wrong with my connection string.

 Now that I want to reinstall XOffice_1_1_M2.exe I get the following message :

 Name:
 From: 
 http://xoffice.xwiki.org/xwiki/bin/download/Repository/WebHome/XWord1.1.zip/XWord.vsto

 The required version of the .NET Framework is not installed on this 
 computer.

 ** Exception Text **
 Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException:
 The required version of the .NET Framework is not installed on this
 computer.
     at 
 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
     at 
 Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.c__DisplayClass7.Installb__0()

 As I have .Net v1.0.3705, v1.1.4322, v2.0.50727, v3.0 and v3.5 which
 version do I need to register (how would be nice too) to get XOffice
 running ?

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



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

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


Re: [xwiki-users] international charakters in space names

2010-02-23 Thread hel-o

Theres also a problem with international characters in tags.

The tag is created ans assigned to the page but when when you look at the
tag pages there are no pages listed. Seems to me xwiki search has a problem
with international characters.

hel.

-
semantic-web.hel.at
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/international-charakters-in-space-names-tp4618371p4619878.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Translations

2010-02-23 Thread stefan bachert
Hi,

to translate texts into a more correct german I extracted 
ApplicationResources_de.properties to WEB_INF/lib.
This seems to work. I am willing to share this with others, however, it would 
took days when I am using the i10n.xwiki.org facility.


However, some translation I did not found. One of them comes up when trying to 
login.
In the last line of the dialog the texts are still in english Forgot your 
username or password.
This text is NOT part of the property file.
Where is the place to translate this texts?

Stefan Bachert


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Getting a user preference as a list

2010-02-23 Thread Rieken, Joshua
Hello,

I'm trying to get the value of a property in XWikiPreferences of type Database 
List that has mutiple-select capability. When I do 
$xwiki.getUserPreference(property_name), it returns a string that is a 
representation of the value, so something like:

[Value1, Value2, Value4]

However, I need this to be a list so I can check if 
property.contains(Value4). Is there an easy way to get a list from a 
preference, or do I need to go into the XWikiPreferences page, grab the object 
and get the value from there?

Thanks,

Joshua Rieken
System Software Developer

Reynolds and Reynolds
6700 Hollister | Houston, Texas 77040
office 713.718.1800 ext. 72459 | mobile 806.584.3004
joshua_rie...@reyrey.com

MAKING BUSINESS BETTER.

NOTE: The information contained in this e-mail is personal and confidential and 
may be protected by the attorney-client privilege and/or the work product 
doctrine. It is for the sole use of the intended recipient. Any review, 
reliance, or distribution by others or forwarding without express permission is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.



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


Re: [xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Florin Ciubotaru

Hi,

Just found that msdn page too after seeing Sergiu's tip. Looks that the
problem is on my side since I published the binaries from a Win7 RC machine.
I'll republish them tomorrow morning from another machine.

In order to avoid this, the publishing should be done by hudson. This is
just another reason to ping the community infrastructure admins for:
http://jira.xwiki.org/jira/browse/XWPLT-174
-- 
View this message in context: 
http://n2.nabble.com/XOffice-Which-how-Net-version-tp4619189p4620150.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting a user preference as a list

2010-02-23 Thread Valdis Vītoliņš
Method to get chosen list is .getListValue('value')

Valdis

 Hello,
 
 I'm trying to get the value of a property in XWikiPreferences of type 
 Database List that has mutiple-select capability. When I do 
 $xwiki.getUserPreference(property_name), it returns a string that is a 
 representation of the value, so something like:
 
 [Value1, Value2, Value4]
 
 However, I need this to be a list so I can check if 
 property.contains(Value4). Is there an easy way to get a list from a 
 preference, or do I need to go into the XWikiPreferences page, grab the 
 object and get the value from there?
 
 Thanks,
 
 Joshua Rieken
 System Software Developer
 
 Reynolds and Reynolds
 6700 Hollister | Houston, Texas 77040
 office 713.718.1800 ext. 72459 | mobile 806.584.3004
 joshua_rie...@reyrey.com
 
 MAKING BUSINESS BETTER.
 
 NOTE: The information contained in this e-mail is personal and confidential 
 and may be protected by the attorney-client privilege and/or the work product 
 doctrine. It is for the sole use of the intended recipient. Any review, 
 reliance, or distribution by others or forwarding without express permission 
 is strictly prohibited. If you are not the intended recipient, please contact 
 the sender and delete all copies.
 
 
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] Problems with links

2010-02-23 Thread Marius Dumitru Florea
Hi Claudio,

ccoreggioli wrote:
 Hi Marius,
 
 i prepared a test environment where i can always reproduce the problem, if
 you want to try it.
 
 You can edit this page:
 
 https://www.gidi.it/xwiki/bin/view/Claudio/ProvaLink

I managed to reproduce the issue on a virtual machine with IE7. Sorry 
for not letting you know. I've been busy all day debugging. It seems 
IE7's implementation of cloneNode and removeAttribute is buggy. For 
instance the following code crashes the browser:

{{html}}
script type=text/javascript
function testRemoveAttribute(element, attributeName) {
   var clone = element.cloneNode();
   clone.removeAttribute(attributeName);
   var attrNode = element.getAttributeNode(attributeName);
   return !!attrNode ? attrNode.specified : 'missing';
}
function action(hook) {
   var attrName = 'foobar';
   var element = document.createElement('span');
   element.setAttribute(attrName, 'xwiki');
   alert(testRemoveAttribute(element, attrName));
   alert(testRemoveAttribute(element, attrName));
   alert(testRemoveAttribute(element, attrName));
}
/script
button onclick=action(this)Action/button
{{/html}}

The behavior is really strange. I'm just cloning an element and removing 
an attribute from the clone. The first time the original element still 
has the attribute, the second time the attribute appears as unspecified, 
and the third time the browser crashes.

I rely on cloneNode and removeAttribute for serializing the content 
before submitting it. I still don't understand why the serialization 
doesn't fail all the time but just when you edit the text around the 
link. I'm still investigating. I'll try to fix this issue asap.

 
 since i made you admin of Claudio space. The site is quite slow, due to a
 couple of bounces before the real server (proxying  mod_jk), but i assure
 you that i face the same behaviour going directly to it. Site is in https,
 but after logon you'll be redirected to the http version, that doesn't work
 from outside my company (public site cannot be touched). Simply change the
 protocol back to https and you'll be in again. 
 
 You can use marius for both username and password.

Thanks again for your support. I hope to have a fix asap. I'll continue 
debugging on my virtual machine.

Thanks,
Marius

 
 As said, the issue is with IE7. I got version 7.0.5730.13 running on XP sp3.
 Every other browsers work fine.
 
 Thanks again,
 claudio
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XOffice : Which (how) .Net version ?

2010-02-23 Thread Simon Glet
I am looking forward to the next release !

Thanks
Simon Glet

On Tue, Feb 23, 2010 at 11:58 AM, Florin Ciubotaru
florin.ciubot...@xwiki.com wrote:

 Hi,

 Just found that msdn page too after seeing Sergiu's tip. Looks that the
 problem is on my side since I published the binaries from a Win7 RC machine.
 I'll republish them tomorrow morning from another machine.

 In order to avoid this, the publishing should be done by hudson. This is
 just another reason to ping the community infrastructure admins for:
 http://jira.xwiki.org/jira/browse/XWPLT-174
 --
 View this message in context: 
 http://n2.nabble.com/XOffice-Which-how-Net-version-tp4619189p4620150.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 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] restore page, recycle bin

2010-02-23 Thread matt5574
Hi community,

today I deleted a bunch of pages by accident by running buggy (self
written) code. Well, that can happen. What I found to be frustrating
was something else.

1) I had to be an administrator to restore a previously deleted page
from the recycle bin. I didn't find a way to give an ordinary user the
right to restore apart from granting admin privileges. Theres a
delete-right so the restore-right should just belong to that, I think.

2) If there's another (wrong) page in place you cannot easily restore
a formerly deleted page. You have to delete the current page first
before you get the recycle bin of that particular page - were you can
roll back to the correct (deleted) version. That's very unhandy since
I'll have to restore app. 30 pages by open page - delete page -
restore correct version.

So probably, I did something the wrong way but in case I was right the
way restoring works isn't pretty and can be further improved.

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


Re: [xwiki-users] Macro in html-macro

2010-02-23 Thread Jeremie BOUSQUET
Hi,

I don't quite agree ... Developers might see velocity, would they be end
user or not, of course.

But they might see wiki syntax even if they are not developers, because this
is what wiki syntax was created in first place : easy editing in place
with very simple syntax to learn (** for bold and such). Well I affirm that
without being really sure, but I always thought it was what wiki syntax was
about :-)

Of course wikis are more and more powerful, and some (not much) come with
nice wysiwyg like xwiki, so wiki syntax can be a bit more complex now as it
is more hidden to end users. And XWiki pushes this very far beeing also a
true applicative platform through macros velocity, groovy, etc. But I still
think that there should be some separation between heavily programmatic
and scripted content, and just plain or wiki formatted text.

To be clearer, you could have a home page with some descriptive text
(formatted text), and then the list of last pages updated in the wiki
(velocity). It would be clearer for end users if the call to velocity was
done through a macro call, or a page inclusion with {{include}} macro. This
way you can edit the page wysiwyg or wiki mode, and understand it pretty
well even if you're not a programmer, and modify the descriptive text if
you're authorized with little chance to break everything ...

Of course, if your wiki is read-only for everyone but you, it means there
will be no other end-users than you, and if you program you're supposed to
... learn wiki a bit more than regular users ;-)

BR,
Jeremie

2010/2/23 stefan bachert stefanbach...@yahoo.de

 Hi,

 I am an user of xwiki and I understand velocity.

 Maybe my users of my Wiki, which is an application of xwiki, won't
 understand velocity.
 However, they won't see it all. They will not even see (x)wiki syntax

 Stefan Bachert




 
 Von: Sergiu Dumitriu ser...@xwiki.com
 An: XWiki Users users@xwiki.org
 Gesendet: Dienstag, den 23. Februar 2010, 14:12:36 Uhr
 Betreff: Re: [xwiki-users] Macro in html-macro

 On 02/23/2010 12:48 PM, stefan bachert wrote:
  Hi Vincent,
 
  Technical you are surely totally right in the context of xwiki
  But try to see that stuff from an users point of view, not from a
 developers one.
  An user want to use xwiki not to analyse it.

 And a USER would expect a macro to understand Velocity? I doubt that any
 regular user knows Velocity at all. I doubt that a regular user expects
 macros to be executed at a different level than the other wiki markup.

  Look what the german wikipedia thinks about wiki syntax. No macros at
 all.
  http://de.wikipedia.org/wiki/Hilfe:Textgestaltung
 
  And the french version, discusses something which looks like xwiki
 macros but they arent.
  http://fr.wikipedia.org/wiki/Aide:Syntaxe

 Comparing the XWiki wiki syntax with the one on wikipedia is not right.
 These are completely different wikis, with completely different purposes.

  There is no common sense what Wiki syntax means.
  So a better term would be helpful. However, it is not easy to find
 something better, all I am thinking of are rather a sentence than a word.
 
 
  Stefan Bachert
 
 
 
  
  Von: Vincent Massolvinc...@massol.net
  An: XWiki Usersusers@xwiki.org
  Gesendet: Dienstag, den 23. Februar 2010, 11:43:49 Uhr
  Betreff: Re: [xwiki-users] Macro in html-macro
 
 
  On Feb 23, 2010, at 11:31 AM, Stefan Bachert wrote:
 
 
  Hi,
 
  Ok, I see it now, too.
 
  However, the attribute name wiki is very misleading.
 
  It's wiki as in wiki syntax. Macros **are** wiki syntax, otherwise you'd
 never be able to use macros when you write wiki syntax!
 
  -Vincent
 
  I still get no link for wiki syntax to macro.
  Maybe with internal knowledge this may brighten up.
 
  Stefan Bachert
 
 
 
 
 
  
  Von: vmassol [via XWiki]
 ml-node+4618020-1742651533-433...@n2.nabble.comml-node%2b4618020-1742651533-433...@n2.nabble.com
 
  An: Stefan Bachertstefanbach...@yahoo.de
  Gesendet: Dienstag, den 23. Februar 2010, 11:17:17 Uhr
  Betreff: Re: Macro in html-macro
 
 
  On Feb 23, 2010, at 11:09 AM, Stefan Bachert wrote:
 
 
 
  Hi,
 
  I figured it out now.
 
  {{html wiki=true}}
  {{warning}}Warning{{/warning}}
  {{/html}}
 
  setting wiki=true will enable included macros, too.
  This is somewhat crude and not documented
  How can you say it's not documented?
  http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
 
  Thanks
  -Vincent


 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
 gegen Massenmails.
 http://mail.yahoo.com
 ___
 users mailing list
 users@xwiki.org
 

[xwiki-users] self defined macros OR include

2010-02-23 Thread stefan bachert
Hi,

in generell self defined are more flexible than to use an {{include}}

Are there circumstances were {{include}} offers advantages?

Stefan Bachert

__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] self defined macros OR include

2010-02-23 Thread Meng Wu
Stefan,

When you want to duplicate one macro over several pages. For example, if you 
look closely at the document index page source, it's actually including three 
different types of tables: tableview, treeview, etc. I believe you can 
implement dynamic ajax indexes using the include macro, just like the document 
index livetable, but you'll have to look more into that. Basically, having 
three separate self defined instances of those tables would create a lot of 
clutter, but using the include macro may remove much of that.

The include method is a great scripting technique and way to remove clutter, 
thus improving usability and allowing easier code upgrades. 


Felix



- Original Message 
From: stefan bachert stefanbach...@yahoo.de
To: users@xwiki.org
Sent: Tue, February 23, 2010 2:23:39 PM
Subject: [xwiki-users] self defined macros OR include

Hi,

in generell self defined are more flexible than to use an {{include}}

Are there circumstances were {{include}} offers advantages?

Stefan Bachert

__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
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] [myxwiki] new wiki request

2010-02-23 Thread david laure
Hi !

I am working for www.planetemer.org as a webmaster and I would like to
present my coleagues the tool.
We are often working on projects documents, and 'several-hands-writting'
tool would be useful.
Is it possible in this npo version to have different profiles and co-edit a
dozen of documents ?

Thanks in advance for your help !

Sincerely,

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


Re: [xwiki-users] Translations

2010-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2010 at 17:30, stefan bachert stefanbach...@yahoo.de wrote:
 Hi,

 to translate texts into a more correct german I extracted 
 ApplicationResources_de.properties to WEB_INF/lib.
 This seems to work. I am willing to share this with others, however, it would 
 took days when I am using the i10n.xwiki.org facility.


 However, some translation I did not found. One of them comes up when trying 
 to login.
 In the last line of the dialog the texts are still in english Forgot your 
 username or password.
 This text is NOT part of the property file.
 Where is the place to translate this texts?

You don't have it in the ApplicationResources_de.properties because no
translation has been provided for it. The place to translate any text
in always http://l10n.xwiki.org, i doubt you can't find the right keys
in it.


 Stefan Bachert


 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
 gegen Massenmails.
 http://mail.yahoo.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


Re: [xwiki-users] self defined macros OR include

2010-02-23 Thread Jeremie BOUSQUET
Hi,

In syntax 1.0 you could use include to declare global velocity macros for
example (including a page containing these macros where you want to use
them).

In syntax 2.0 as far as I understand you don't need to use {{include}} to
create or include macros, you'd better use {{macro}} wich allows clear
parameters. Include is used for what it is, including a page in another
page, for example for templating, or splitting a complex page in sub-pages.
I believe you can still use {{include}} if you want to include a large
number of utility methods (kind of library), defined as velocity macros or
as a groovy class. It would be easier maybe than to write all the
corresponding {{macro}}s.

Jeremie


2010/2/23 Meng Wu meng...@yahoo.com

 Stefan,

 When you want to duplicate one macro over several pages. For example, if
 you look closely at the document index page source, it's actually including
 three different types of tables: tableview, treeview, etc. I believe you can
 implement dynamic ajax indexes using the include macro, just like the
 document index livetable, but you'll have to look more into that. Basically,
 having three separate self defined instances of those tables would create a
 lot of clutter, but using the include macro may remove much of that.

 The include method is a great scripting technique and way to remove
 clutter, thus improving usability and allowing easier code upgrades.


 Felix



 - Original Message 
 From: stefan bachert stefanbach...@yahoo.de
 To: users@xwiki.org
 Sent: Tue, February 23, 2010 2:23:39 PM
 Subject: [xwiki-users] self defined macros OR include

 Hi,

 in generell self defined are more flexible than to use an {{include}}

 Are there circumstances were {{include}} offers advantages?

 Stefan Bachert

 __
 Do You Yahoo!?
 Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
 gegen Massenmails.
 http://mail.yahoo.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users





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

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


Re: [xwiki-users] [myxwiki] new wiki request

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 10:43 PM, david laure wrote:
 Hi !

 I am working for www.planetemer.org as a webmaster and I would like to
 present my coleagues the tool.
 We are often working on projects documents, and 'several-hands-writting'
 tool would be useful.
 Is it possible in this npo version to have different profiles and co-edit a
 dozen of documents ?

This wiki is fully functional, there are no limits, but it doesn't have 
an uptime guarantee.

It is possible to co-edit, but only by taking turns, there is no 
realtime synchronization like in Google Docs yet (but it will come soon).

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Ampersands in livetable filtering column bug

2010-02-23 Thread Radek Rekas
Hi Vincent,

I've just checked and this problem still exists in XE 2.2.

I've managed to fix it on my local XE 2.2 setup by changing line 189 of the 
resources/js/xwiki/table/livetable.js file from:
for(key in 
this.filters){if(!existing[key]this.filters[key]!=){filterString+=+key+=+this.filters[key]

to:
for(key in 
this.filters){if(!existing[key]this.filters[key]!=){filterString+=+key+=+this.filters[key].gsub('','%26')

This seems to have fixed it for select lists, input boxes etc.


Radek Rekas


- Original Message -
From: Vincent Massol vinc...@massol.net
Sent: Tue, 23/2/2010 6:33pm
To: XWiki Users users@xwiki.org
Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug

Hi,

On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:

 We're using xwiki 2.03 and text with ampersands in it breaks the livetable 
 filtering feature.
 
 Is there any fix to properly escape the text that gets entered into the 
 filtering fields on livetables or can anyone give me a pointer on where to 
 start looking in order to fix this?

AFAIK this was fixed in XE 2.2

Thanks
-Vincent

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


Re: [xwiki-users] international characters in space names

2010-02-23 Thread Sergiu Dumitriu
On 02/23/2010 12:39 PM, Axel Zuzek wrote:
 hello,

 I have several spaces starting with a special charakter ÖGroup etc.

 xwiki search doesn't find any attachements that are attached to groups
 starting with Ö

This should work fine. Make sure that your database is properly 
configured. This applies mostly to mysql databases, which by default use 
the latin1 encoding, which can't handle the full UTF-8 range.

I just tried it locally, and the default web search correctly finds a 
space/page starting with Ö.

 when I try to search attachements limiting the search to ÖGroup I get the
 following error:

 org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
 Velocity Macro for content
 [$xwiki.jsfx.use(uicomponents/search/search.js, false)##
 $xwiki.ssfx.use(uicomponents/search/search.css, true)##

 ## Disable the document extra data: comments, attachments, history...
 #set($docextras = [])
 #set ($rssmode = ($!request.xpage == 'plain'))
 ## ---
 ## Space filtering
 ## ---

 #set($spaces = $xwiki.spaces)
 #set($selectedSpace = $!request.space)
 ## ---
 ## Space macros
 ## ---
 #macro(spaceoption $space $selectedSpace)
option value=${space} #if($selectedSpace ==
 $space)selected=selected#end$space/option

 #end
 #macro(spaceselect $selectedSpace $spaces)
select name=space title=$msg.get('xe.search.bar.spaces.title')
  option value= #if($selectedSpace ==
 '')selected=selected#end$msg.get('xe.search.bar.spaces.all')/option

  #foreach($space in $spaces)
#if (!$blacklistedSpaces.contains($space))
  #spaceoption($space $selectedSpace)
#end
  #end
/select
 #end
 ##
 ##
 #set($text = $!request.getParameter('text'))

 #set($utext = $util.encodeURI($text))
 ##
 {{html}}
 form action= id=searchBar
  div class=centered
input type=text name=text class=searchQuery #if($text ==
 '') defaultText#end #if($text == '')
 value=$msg.get('xe.search.bar.query.tip') #else
 value=$xwiki.getXMLEncoded(${text}) #end
 title=$msg.get('xe.search.bar.query.title')/

#spaceselect($selectedSpace $spaces)
input type=submit class=searchButton
 value=$msg.get('xe.search.bar.submit')
 title=$msg.get('xe.search.bar.submit.title')/

  /div
 /form
 {{/html}}
 ##
 #set($space = $selectedSpace)
 #set($datedlist = $util.arrayList)
 #if($!text == '')
## No search
 #else
#set($text = $text.replaceAll(', '').replaceAll(%, \\%))

#set($nbitems = 50)
## --
## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
## Also exclude WebPreferences.
## --

#set ($webClause = '')
#foreach ($blacklistedSpace in $blacklistedSpaces)
  #set ($webClause = ${webClause} doc.space  '$blacklistedSpace' and)
#end
#if(!$hasAdmin  !$isAdvancedUser)

  #set ($webClause = ${webClause} doc.name'WebPreferences' and)
#end
## ---
## Display only a given space if $request.space is defined

## ---
#if($!space != '')
  #set ($webClause = ${webClause} doc.space='$space' and)
#end
#macro(addelement $item $list)

  #if($xwiki.hasAccessLevel('view', $context.user,
 ${context.database}:${item}))
#set($itemdoc = $xwiki.getDocument($item))
## All items will be sorted by the date; since the list is
 obtained from several queries, we can't order in the HQL.

## Prefix all item names with the date for sorting the combined 
 results.
#set($sdate = $xwiki.formatDate($itemdoc.date, 'MMddHHmmss'))
#set($sitem = ${sdate}${item})
#if(!$list.contains($sitem))

  #set($discard = $list.add($sitem))
#end
  #end
#end
## ---
## Search in the page names
## ---

#set ($sql = where $webClause upper(doc.fullName) like
 upper('%$!text%') order by doc.date desc)
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
  #addelement($item $datedlist)

#end
## ---
## Search in page content
## ---
#set ($sql = where $webClause upper(doc.content) like
 upper('%$!text%') order by doc.date desc)

#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
  #addelement($item $datedlist)
#end
## ---
## Search in text fields (simple String properties)

## ---
#set($sql= , BaseObject as obj, StringProperty as prop where
 $webClause 

[xwiki-users] Fwd: Ampersands in livetable filtering column bug

2010-02-23 Thread Vincent Massol
forwarding to the list

-Vincent

Begin forwarded message:

 From: Radek Rekas radek.re...@evalua.com.au
 Date: February 24, 2010 1:19:38 AM GMT+01:00
 To: Vincent Massol vinc...@massol.net
 Subject: RE: [xwiki-users] Ampersands in livetable filtering column bug
 
 Hi Vincent,
 
 I've just tested this and it still occurs in XE 2.2
 
 I've used firebug to check what requests are made when filtering and the 
 problem appears to be caused by ampersands not getting correctly url encoded. 
 Below is the get request made to LiveTableResults when I use a filter of 
 test  test on the council row in the live table. The spaces get url 
 encoded along with other characters but ampersands do not.
 
 http://localhost:8080/xwiki/bin/view/XWiki/LiveTableResults?xpage=plainoutputSyntax=plaintransprefix=viclg.upcomingopportunities.classname=UpcomingOpportunities.OppClasscollist=council,region,title_of_project,project_reference_no,purchasing_category,estimated_project_cost,possible_tender_datecouncil_class=$%7BpropClassName%7Dregion_class=$%7BpropClassName%7Dtitle_of_project_class=$%7BpropClassName%7Dproject_reference_no_class=$%7BpropClassName%7Dpurchasing_category_class=$%7BpropClassName%7Destimated_project_cost_class=$%7BpropClassName%7Dpossible_tender_date_class=$%7BpropClassName%7Doffset=1limit=10reqNo=39council=test%20%20testsort=councildir=asc
 
 Radek Rekas
 
 
 
 
 - Original Message -
 From: Vincent Massol vinc...@massol.net
 Sent: Tue, 23/2/2010 6:33pm
 To: XWiki Users users@xwiki.org
 Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug
 
 Hi,
 
 On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:
 
 We're using xwiki 2.03 and text with ampersands in it breaks the livetable 
 filtering feature.
 
 Is there any fix to properly escape the text that gets entered into the 
 filtering fields on livetables or can anyone give me a pointer on where to 
 start looking in order to fix this?
 
 AFAIK this was fixed in XE 2.2
 
 Thanks
 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2010-02-23 Thread Vincent Massol

On Feb 24, 2010, at 2:06 AM, Sergiu Dumitriu wrote:

 On 02/23/2010 10:43 PM, david laure wrote:
 Hi !
 
 I am working for www.planetemer.org as a webmaster and I would like to
 present my coleagues the tool.
 We are often working on projects documents, and 'several-hands-writting'
 tool would be useful.
 Is it possible in this npo version to have different profiles and co-edit a
 dozen of documents ?
 
 This wiki is fully functional, there are no limits, but it doesn't have 
 an uptime guarantee.

The rules are defined on this page:
http://myxwiki.org/
 
 It is possible to co-edit, but only by taking turns, there is no 
 realtime synchronization like in Google Docs yet (but it will come soon).

I wouldn't say soon, especially since we promised it soon already about 1.5 
years ago... Let's be prudent this time and if it comes soon then we'll exceed 
people's expectations :)

Thanks
-Vincent

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