Re: [xwiki-users] can't program on virtual wiki
I'm still thinking what I'm going to do with this issue (local users/global users). So currently I'm just programming using Superadmin user. Thanks for the help again! This was very usefull! 2010/9/3 Thomas Mortagne thomas.morta...@xwiki.com On Thu, Sep 2, 2010 at 19:14, Erica Usui erica87...@gmail.com wrote: Main wiki: true - should print true XWiki.eusui - should be prefixed with xwiki:XWiki. in the local wiki Local wiki: false - should print true XWiki.eusui - should be prefixed with xwiki:XWiki. in the local wiki This last line means than you are not using a user from main wiki when you are on your local wiki so you don't get programming rights. Go to your local wiki administration and see if you have a eusui there. You could also check where the link to your profile goes, if it stays on local wiki then it mean that you have a duplicate of eusui on both main and local wiki which make it two totally different users even if they have the same short name. Qre you using LDAP ? In that case you might want to make sure all users and only created on main wiki, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HI27minmultiwikienvironmentandIwantmyLDAPuserstoregisteredonlyonmainwiki I have admin rights in all wikis. On the local wiki there isn't the option to set programming rights. 2010/9/1 Sergiu Dumitriu ser...@xwiki.com On 09/02/2010 12:32 AM, Vincent Massol wrote: On Sep 1, 2010, at 8:00 PM, Erica Usui wrote: When i save with my user, who has all possible rights, i get no outcome. But when saving the page as superadmin, i get the expected result. Are you 100% sure your user is a user of the main wiki and that is has programming rights on the main wiki? To test, just put this in a page from the main wiki, and in a page from the virtual wiki, and save it using your user: {{velocity}} $context.hasProgrammingRights() - should print true $context.user - should be prefixed with xwiki:XWiki. in the local wiki {{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Atenciosamente, Erica Usui. ___ 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 -- Atenciosamente, Erica Usui. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] can't program on virtual wiki
Main wiki: true - should print true XWiki.eusui - should be prefixed with xwiki:XWiki. in the local wiki Local wiki: false - should print true XWiki.eusui - should be prefixed with xwiki:XWiki. in the local wiki I have admin rights in all wikis. On the local wiki there isn't the option to set programming rights. 2010/9/1 Sergiu Dumitriu ser...@xwiki.com On 09/02/2010 12:32 AM, Vincent Massol wrote: On Sep 1, 2010, at 8:00 PM, Erica Usui wrote: When i save with my user, who has all possible rights, i get no outcome. But when saving the page as superadmin, i get the expected result. Are you 100% sure your user is a user of the main wiki and that is has programming rights on the main wiki? To test, just put this in a page from the main wiki, and in a page from the virtual wiki, and save it using your user: {{velocity}} $context.hasProgrammingRights() - should print true $context.user - should be prefixed with xwiki:XWiki. in the local wiki {{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Atenciosamente, Erica Usui. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] can't program on virtual wiki
Hi Erica, On Aug 12, 2010, at 8:20 PM, Erica Usui wrote: Hello! :) I'm trying some velocity code on a farm, but it just works for superadmin user, even though my user is registred on the main wiki, and have all possible rights. That's strange. If the code requires programming rights and the page was saved with a user having programming rights on the main wiki of the farm then any user should get the code executed correctly. Could you show us more about the code you have? And i'm also trying to import Space explorer application, it didn't work on the farm; i've imported it on the main wiki... This application works in all wikis, but not farms. I cannot comment on this one since I haven't tried it on a farm. Thanks -Vincent Can anyone help me? :( ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] can't program on virtual wiki
The code i'm using is: 1.1 Grupo ITO {table} Usuário|NOME|Empresa #set($sql = select obj.name,prop.value from BaseObject obj, StringProperty prop where obj.className='XWiki.XWikiGroups' and obj.name!='XWiki.XWikiGroupTemplate' and prop.name='member' and obj.id=prop.id.id) #foreach ($row in $xwiki.search($sql)) #foreach ($item in $row) #if ($velocityCount==1) #set($group=$item) #elseif ($velocityCount==2) #set($member=$item) #end #end #set($memberDoc=$xwiki.getDocument($member)) #if ($member != $group==XWiki.ITO) [$member] | $!memberDoc.get(first_name) $!memberDoc.get(last_name) |$!memberDoc.get(company) #end #end {table} 1.1 Grupo de administradores desta wiki {table} Usuário|NOME|Empresa #set($sql = select obj.name,prop.value from BaseObject obj, StringProperty prop where obj.className='XWiki.XWikiGroups' and obj.name!='XWiki.XWikiGroupTemplate' and prop.name='member' and obj.id=prop.id.id) #foreach ($row in $xwiki.search($sql)) #foreach ($item in $row) #if ($velocityCount==1) #set($group=$item) #elseif ($velocityCount==2) #set($member=$item) #end #end #set($memberDoc=$xwiki.getDocument($member)) #if ($member != $group==XWiki.XWikiAdminGroup) [$member] | $!memberDoc.get(first_name) $!memberDoc.get(last_name) |$!memberDoc.get(company) #end #end {table} When i save with my user, who has all possible rights, i get no outcome. But when saving the page as superadmin, i get the expected result. 2010/9/1 Vincent Massol vinc...@massol.net Hi Erica, On Aug 12, 2010, at 8:20 PM, Erica Usui wrote: Hello! :) I'm trying some velocity code on a farm, but it just works for superadmin user, even though my user is registred on the main wiki, and have all possible rights. That's strange. If the code requires programming rights and the page was saved with a user having programming rights on the main wiki of the farm then any user should get the code executed correctly. Could you show us more about the code you have? And i'm also trying to import Space explorer application, it didn't work on the farm; i've imported it on the main wiki... This application works in all wikis, but not farms. I cannot comment on this one since I haven't tried it on a farm. Thanks -Vincent Can anyone help me? :( ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Atenciosamente, Erica Usui. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] can't program on virtual wiki
On Sep 1, 2010, at 8:00 PM, Erica Usui wrote: The code i'm using is: 1.1 Grupo ITO {table} Usuário|NOME|Empresa #set($sql = select obj.name,prop.value from BaseObject obj, StringProperty prop where obj.className='XWiki.XWikiGroups' and obj.name!='XWiki.XWikiGroupTemplate' and prop.name='member' and obj.id=prop.id.id) #foreach ($row in $xwiki.search($sql)) #foreach ($item in $row) #if ($velocityCount==1) #set($group=$item) #elseif ($velocityCount==2) #set($member=$item) #end #end #set($memberDoc=$xwiki.getDocument($member)) #if ($member != $group==XWiki.ITO) [$member] | $!memberDoc.get(first_name) $!memberDoc.get(last_name) |$!memberDoc.get(company) #end #end {table} 1.1 Grupo de administradores desta wiki {table} Usuário|NOME|Empresa #set($sql = select obj.name,prop.value from BaseObject obj, StringProperty prop where obj.className='XWiki.XWikiGroups' and obj.name!='XWiki.XWikiGroupTemplate' and prop.name='member' and obj.id=prop.id.id) #foreach ($row in $xwiki.search($sql)) #foreach ($item in $row) #if ($velocityCount==1) #set($group=$item) #elseif ($velocityCount==2) #set($member=$item) #end #end #set($memberDoc=$xwiki.getDocument($member)) #if ($member != $group==XWiki.XWikiAdminGroup) [$member] | $!memberDoc.get(first_name) $!memberDoc.get(last_name) |$!memberDoc.get(company) #end #end {table} When i save with my user, who has all possible rights, i get no outcome. But when saving the page as superadmin, i get the expected result. Are you 100% sure your user is a user of the main wiki and that is has programming rights on the main wiki? Thanks -Vincent 2010/9/1 Vincent Massol vinc...@massol.net Hi Erica, On Aug 12, 2010, at 8:20 PM, Erica Usui wrote: Hello! :) I'm trying some velocity code on a farm, but it just works for superadmin user, even though my user is registred on the main wiki, and have all possible rights. That's strange. If the code requires programming rights and the page was saved with a user having programming rights on the main wiki of the farm then any user should get the code executed correctly. Could you show us more about the code you have? And i'm also trying to import Space explorer application, it didn't work on the farm; i've imported it on the main wiki... This application works in all wikis, but not farms. I cannot comment on this one since I haven't tried it on a farm. Thanks -Vincent Can anyone help me? :( ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] can't program on virtual wiki
On 09/02/2010 12:32 AM, Vincent Massol wrote: On Sep 1, 2010, at 8:00 PM, Erica Usui wrote: When i save with my user, who has all possible rights, i get no outcome. But when saving the page as superadmin, i get the expected result. Are you 100% sure your user is a user of the main wiki and that is has programming rights on the main wiki? To test, just put this in a page from the main wiki, and in a page from the virtual wiki, and save it using your user: {{velocity}} $context.hasProgrammingRights() - should print true $context.user - should be prefixed with xwiki:XWiki. in the local wiki {{/velocity}} -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] can't program on virtual wiki
Hello! :) I'm trying some velocity code on a farm, but it just works for superadmin user, even though my user is registred on the main wiki, and have all possible rights. And i'm also trying to import Space explorer application, it didn't work on the farm; i've imported it on the main wiki... This application works in all wikis, but not farms. Can anyone help me? :( ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users