Re: [xwiki-users] [xwiki-devs] [ANN] XWiki Enterprise and XWiki Enterprise Manager 4.1 released

2012-06-18 Thread Vincent Massol

On Jun 18, 2012, at 9:04 PM, Caleb James DeLisle wrote:

> The XWiki Development team is proud to announce the second release of the 4.x 
> cycle.
> This release brings Extension Manager improvements such as merging of 
> configuration documents during extension upgrade, a more gentle learning 
> curve by hiding internal documents from non-technical users, and lots of 
> goodies for the developers such as easy sharing of variables between scripts 
> in different languages.
> 
> Download it hot off the press: 
> http://www.xwiki.org/xwiki/bin/view/Main/Download
> 
> Other new and notable features include:
> 
> * Message sender macro for allowing users to send to the activity stream from 
> any location.
> * Global and per-user timezone settings
> * Script access to load dependencies from the core using the Component Manager
> * Smarter velocity interpretation converts allows strings to be passed to 
> methods which take enums
> * Stop run-away scripts after a configurable timeout
> * Shorthand HQL queries in the Query Manager

Even more important than all this IMO:

* Ability to resolve merge conflicts when upgrading/installing an extension
* Hiding of technical content by default

> For a full list with examples and explanations, check out the release notes:
> 
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise41
> 
> 
> Thanks everyone who contributed to make the 4.1 cycle a success.

Thanks to you Caleb for being the Release Manager for XWiki 4.1! :)

-Vincent

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


[xwiki-users] [ANN] XWiki Enterprise and XWiki Enterprise Manager 4.1 released

2012-06-18 Thread Caleb James DeLisle
The XWiki Development team is proud to announce the second release of the 4.x 
cycle.
This release brings Extension Manager improvements such as merging of 
configuration documents during extension upgrade, a more gentle learning curve 
by hiding internal documents from non-technical users, and lots of goodies for 
the developers such as easy sharing of variables between scripts in different 
languages.

Download it hot off the press: http://www.xwiki.org/xwiki/bin/view/Main/Download

Other new and notable features include:

* Message sender macro for allowing users to send to the activity stream from 
any location.
* Global and per-user timezone settings
* Script access to load dependencies from the core using the Component Manager
* Smarter velocity interpretation converts allows strings to be passed to 
methods which take enums
* Stop run-away scripts after a configurable timeout
* Shorthand HQL queries in the Query Manager

For a full list with examples and explanations, check out the release notes:

http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise41


Thanks everyone who contributed to make the 4.1 cycle a success.

Caleb

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


Re: [xwiki-users] Retrieve all users of a given group

2012-06-18 Thread Stéphanie Roulland
I find my answer, and maybe it can help some people.

It's not : #if($user.isUserInGroup('Gestionnaires'))
But, it's : #if($xwiki.getUser($user).isUserInGroup("XWiki.Gestionnaires"))

Hope it can be useful for someone else ^^

Thanks,
Stéphanie

2012/6/18 Stéphanie Roulland 

> I've already tried that too but it doesn't work too.
>
>  2012/6/18 Jeremie BOUSQUET 
>
>> Maybe $user.isUserInGroup('XWiki.Gestionnaires') ?
>>
>> 2012/6/18 Stéphanie :
>> > Hello,
>> >
>> > I'm trying to retrieve all users of a given group, but maybe there is a
>> > problem with my code.
>> >
>> > First, this is my code :
>> >
>> > {{velocity}}
>> >
>> > #set($users = $xwiki.rightsmanager.usersApi.allUsersNames)
>> > #foreach($user in $users)
>> >  $user
>> >  #if($user.isUserInGroup('Gestionnaires'))
>> >$user
>> >  #end
>> > #end
>> >
>> > {{/velocity}}
>> >
>> > I have 6 users in my group "Gestionnaires" but none of these users is
>> > displayed with this code.
>> >
>> > Do you have an idea of why it doesn't work ? Do I forget something ?
>> >
>> > Thank you very much in advance for everyone who will answer me ^^
>> >
>> > Thanks,
>> > Stéphanie
>> >
>> > --
>> > View this message in context:
>> http://xwiki.475771.n2.nabble.com/Retrieve-all-users-of-a-given-group-tp7579699.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
>>
>
>
>
> --
> Stéphanie ROULLAND
> 06.77.99.36.41
> -
> Contrat de professionnalisation DCNS
> Ingénieur domaine collaboratif
> 02.29.05.42.23
>
>


-- 
Stéphanie ROULLAND
06.77.99.36.41
-
Contrat de professionnalisation DCNS
Ingénieur domaine collaboratif
02.29.05.42.23
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Retrieve all users of a given group

2012-06-18 Thread Stéphanie Roulland
I've already tried that too but it doesn't work too.

2012/6/18 Jeremie BOUSQUET 

> Maybe $user.isUserInGroup('XWiki.Gestionnaires') ?
>
> 2012/6/18 Stéphanie :
> > Hello,
> >
> > I'm trying to retrieve all users of a given group, but maybe there is a
> > problem with my code.
> >
> > First, this is my code :
> >
> > {{velocity}}
> >
> > #set($users = $xwiki.rightsmanager.usersApi.allUsersNames)
> > #foreach($user in $users)
> >  $user
> >  #if($user.isUserInGroup('Gestionnaires'))
> >$user
> >  #end
> > #end
> >
> > {{/velocity}}
> >
> > I have 6 users in my group "Gestionnaires" but none of these users is
> > displayed with this code.
> >
> > Do you have an idea of why it doesn't work ? Do I forget something ?
> >
> > Thank you very much in advance for everyone who will answer me ^^
> >
> > Thanks,
> > Stéphanie
> >
> > --
> > View this message in context:
> http://xwiki.475771.n2.nabble.com/Retrieve-all-users-of-a-given-group-tp7579699.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
>



-- 
Stéphanie ROULLAND
06.77.99.36.41
-
Contrat de professionnalisation DCNS
Ingénieur domaine collaboratif
02.29.05.42.23
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Retrieve all users of a given group

2012-06-18 Thread Jeremie BOUSQUET
Maybe $user.isUserInGroup('XWiki.Gestionnaires') ?

2012/6/18 Stéphanie :
> Hello,
>
> I'm trying to retrieve all users of a given group, but maybe there is a
> problem with my code.
>
> First, this is my code :
>
> {{velocity}}
>
> #set($users = $xwiki.rightsmanager.usersApi.allUsersNames)
> #foreach($user in $users)
>  $user
>  #if($user.isUserInGroup('Gestionnaires'))
>    $user
>  #end
> #end
>
> {{/velocity}}
>
> I have 6 users in my group "Gestionnaires" but none of these users is
> displayed with this code.
>
> Do you have an idea of why it doesn't work ? Do I forget something ?
>
> Thank you very much in advance for everyone who will answer me ^^
>
> Thanks,
> Stéphanie
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Retrieve-all-users-of-a-given-group-tp7579699.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] Retrieve all users of a given group

2012-06-18 Thread Stéphanie
Hello,

I'm trying to retrieve all users of a given group, but maybe there is a
problem with my code.

First, this is my code :

{{velocity}}

#set($users = $xwiki.rightsmanager.usersApi.allUsersNames)
#foreach($user in $users)
  $user
  #if($user.isUserInGroup('Gestionnaires'))
$user
  #end
#end

{{/velocity}}

I have 6 users in my group "Gestionnaires" but none of these users is
displayed with this code.

Do you have an idea of why it doesn't work ? Do I forget something ?

Thank you very much in advance for everyone who will answer me ^^

Thanks,
Stéphanie

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Retrieve-all-users-of-a-given-group-tp7579699.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] How to disable the workspace menu ?

2012-06-18 Thread Maxime Sinclair
I deleted the WorkspaceManager.WebHome page of the main wiki.
May I restore it in the futur, if it is useful...

2012/6/18 Maxime Sinclair :
> Hello XWiki admins,
>
> I just upgraded a wiki farm from 2.7 to 3.5. No particular problem 
> encountered.
>
> The only annoyance is the MAIN new menu that appears on the top menu
> bar. I prefer to hide it, the time to understand what is "Workspace"
> and how it works in a XEM context.
> What is the easiest way to disable this extra menu ? Thank for your help.
>
> Maxime
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to disable the workspace menu ?

2012-06-18 Thread Maxime Sinclair
Hello XWiki admins,

I just upgraded a wiki farm from 2.7 to 3.5. No particular problem encountered.

The only annoyance is the MAIN new menu that appears on the top menu
bar. I prefer to hide it, the time to understand what is "Workspace"
and how it works in a XEM context.
What is the easiest way to disable this extra menu ? Thank for your help.

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


Re: [xwiki-users] Error -You are not allowed to view this document or perform this action.

2012-06-18 Thread Gerritjan Koekkoek

Op 18 jun. 2012, om 08:51 heeft Marius Dumitru Florea het volgende geschreven:

> On Sat, Jun 16, 2012 at 1:05 PM, Gerritjan Koekkoek
>  wrote:
>> 
>> Op 14 jun. 2012, om 15:37 heeft Marius Dumitru Florea het volgende 
>> geschreven:
>> 
>>> On Thu, Jun 14, 2012 at 4:02 PM, Gerritjan Koekkoek
>>>  wrote:
 
 Op 14 jun. 2012, om 13:58 heeft Marius Dumitru Florea het volgende 
 geschreven:
 
> On Wed, Jun 13, 2012 at 8:02 PM, Gerritjan Koekkoek
>  wrote:
>> I've created an app with app within minutes.
>> 
>> A normal user gets the following error:
>> Error
>> You are not allowed to view this document or perform this action.
> 
> On which page and which action? URL? (you can strip the domain part).
 xwiki/bin/view/CdLSATEPrivat/WebHome
> 
>> 
>> What can cause this error, the space has the right rights set. (View, 
>> Comment and Edit; no Delete or Admin)
>> No document level security. Other documents in the space can be seen…
>> 
>> The page CdLSATEPrivat/WebHome is generated by app within minutes, but I 
>> have modified the documentsheetbinding
>> The LiveTableViewSheet has been copied from app within minutes space 
>> into CdLSATEPrivat space
>> 
> 
>> Is there any groovy scripts that can not be used by normal users?
> 
> If the Groovy script is in the sheet and the last sheet content author
> has programming rights then a simple user shouldn't have any problem
> viewing the page with that sheet applied. But, afaik, the message you
> get is not related to programming rights.
> 
> If the document on which you get this message has a sheet you can try
> to bind the document to itself, sheet='', and see if the message
> remains.
 Still the same error:
 Content of page:
 {{velocity}}
 #set($originalMsg = $msg)
 #set($msg = 
 $services.dynamicMessageToolFactory.createDynamicMessageTool($msg, {
  'cdlsateprivat.livetable.doc.date': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocDateColumnName'),
  'cdlsateprivat.livetable.doc.author': 
 $msg.get('platform.appwithinminutes.liveTableEditorDocAuthorColumnName'),
  'cdlsateprivat.livetable._actions.edit': 
 $msg.get('platform.appwithinminutes.appLiveTableEditEntryActionName'),
  'cdlsateprivat.livetable._actions.delete': 
 $msg.get('platform.appwithinminutes.appLiveTableDeleteEntryActionName'),
  'cdlsateprivat.livetable._actions': 
 $msg.get('platform.appwithinminutes.liveTableEditorActionsColumnName')
 }))
 #set($columnsProperties = {
  'squestioner': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'emailQuestioner': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'subject': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': 
 true, 'sortable': true, 'html': false},
  'cdlsPerson': {'type': 'text', 'size': 10, 'filterable': true, 
 'sortable': true, 'html': false},
  'status': {'type': 'list', 'size': 10, 'filterable': true, 'sortable': 
 true, 'html': false},
  'doc.date': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': 
 true, 'sortable': true},
  'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 
 'filterable': true, 'sortable': true},
  '_actions': {'html': true, 'sortable': false, 'actions': ['edit', 
 'delete']}
 })
 #set($options = {
  'className': 'CdLSATEPrivat.CdLSATEPrivatClass',
  'resultPage' : 'CdLSATEPrivat.LiveTableGenerator',
  'translationPrefix': 'cdlsateprivat.livetable.',
  'tagCloud': true,
  'rowCount': 15,
  'maxPages': 10,
  'selectedColumn': 'doc.author',
  'defaultOrder': 'asc'
 })
 #set($columns = ['squestioner', 'emailQuestioner', 'subject', 
 'cdlsPerson', 'status', 'doc.date', 'doc.author', '_actions'])
 #livetable('cdlsateprivat' $columns $columnsProperties $options)
 #set($msg = $originalMsg)
 {{/velocity}}
 
 It is having three objects:
 LiveTableClass 0: CdLSATEPrivat.CdLSATEPrivatClass
 DocumentSheetBinding 0: CdLSATEPrivat.LiveTableEditSheet
 XWikiRights 0: XWiki.User
>>> 
>>> Then it's clearly a rights setting issue. I'd double check the rights
>>> set on the app home page, and app space (WebPreferences page). I don't
>>> have other ideas.
>> Hi Marius,
>> Thanks, indeed it was a rights setting! It works now.
>> But I have a different challenge now.
>> 
> 
>> THe rights are now that USERS can add a document (because they have EDIT 
>> rights in the space)
>> But if USER A will add a document USER B should not be able to CHANGE (is 
>> also EDIT) the document. This is only allowed for the creator and users in 
>> GROUP MODERATOR.
> 
> AWM doesn't execute any code when a new application entry is created.
> It just builds the URL for the Inline Form edit mod