Re: [xwiki-users] Group Access Rights, File Retrieve, and Livetable Options
There is another macro #gridresultwithfilter() similar to live table, but with query options. http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiGridComponentTutorial http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable Though it is not documented and I cannot prepare working examples. For search criteria testing probably will help http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet Keep notified about your investigations. Valdis Hey, I have a few questions on a variety of topics 1. Is there a method that returns the access rights for a given group? I tried to use method hasAccessLevel to return the access rights (at the group level) but it seems that the method only applies for users and not groups. To expand on this thought, where are all the group names stored? I've been using hasAccessLevel using XWiki.{groupname} as the parameter, so I am not sure whether I am calling it right. 2. It seems that no one has addressed Mike Davis's question, but since I also need to do something similar to what he brought up, I'd like to bring it up again: Mike Davis said: 2) Is there a way to remotely access a sql 2005 database from an xwiki script? A groovy wrapper for java jdbc or something. I want to query the database and put the results in a livetable, but the db lives on a completely separate server. I understand that accessing files depends on the web server you are running xwiki on, but I am almost clueless on how to access information on another server from a web server. I'm not sure if I am asking the right people, but if someone would like to enlighten me, I'd greatly appreciate it. 3. Regarding Livetable, I need to create a (huge) table that includes the User field and well as the AllDocs field. What I am trying to do is create a table that will display the access rights for a given user and given document. Livetable is obviously the best option for this kind of task because of its organization, but it seems that I can only use one classname and either display AllDocs or Users on the livetable, not both. Thank you, Felix ___ 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] ERROR lucene.AttachmentData - NullPointerException
Hello, I tried XE 2.2-SNAPSHOT.27143 and have noticed one new error message in xwiki.log, that was not in XE 2.2 stable release. Deploy xwiki-enterprise-web-2.2-20100218.061341-347.war - OK The message appears on importing default .xar Archive (xwiki-enterprise-wiki-2.2-20100218.061341-348.xar). I tried also snapshot 2749 - with the same effect. 2010-02-19 11:43:54,328 [Lucene Index Updater] ERROR lucene.AttachmentData - error getting content of attachment java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:145) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:145) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:80) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Unknown Source) is it critical? It didn't occur before. === One more warning in log - it seems to be not very important... 2010-02-19 11:44:06,515 [http://localhost:8080/xwiki/bin/import/XWiki/XWikiPreferences] WARN interwiki.InterWiki - Unable to read conf/intermap.txt == We are working on XE 2.2 + jdk1.6.0_17 + Tomcat + Oracle 10g Best Regards, Alla http://n2.nabble.com/file/n4597247/xwiki.log xwiki.log -- View this message in context: http://n2.nabble.com/ERROR-lucene-AttachmentData-NullPointerException-tp4597247p4597247.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] ERROR lucene.AttachmentData - NullPointerException
Hello, I don't think it's critical, I also have errors or warnings coming from lucene index updater, when it can't parse a doc or file. Of course it could be useful to know wich attachment it couldn't read, because it could be corrupted in some way. BR, Jeremie 2010/2/19 adoro spb...@gmail.com Hello, I tried XE 2.2-SNAPSHOT.27143 and have noticed one new error message in xwiki.log, that was not in XE 2.2 stable release. Deploy xwiki-enterprise-web-2.2-20100218.061341-347.war - OK The message appears on importing default .xar Archive (xwiki-enterprise-wiki-2.2-20100218.061341-348.xar). I tried also snapshot 2749 - with the same effect. 2010-02-19 11:43:54,328 [Lucene Index Updater] ERROR lucene.AttachmentData - error getting content of attachment java.lang.NullPointerException at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:162) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:145) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:145) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:80) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Unknown Source) is it critical? It didn't occur before. === One more warning in log - it seems to be not very important... 2010-02-19 11:44:06,515 [http://localhost:8080/xwiki/bin/import/XWiki/XWikiPreferences] WARN interwiki.InterWiki - Unable to read conf/intermap.txt == We are working on XE 2.2 + jdk1.6.0_17 + Tomcat + Oracle 10g Best Regards, Alla http://n2.nabble.com/file/n4597247/xwiki.log xwiki.log -- View this message in context: http://n2.nabble.com/ERROR-lucene-AttachmentData-NullPointerException-tp4597247p4597247.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
Re: [xwiki-users] Editing goes to WYSIWIG instead of inline
Thank you Guillaume. It works. I did not search well enought ... -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Guillaume Lerouge Envoyé : vendredi 19 février 2010 14:43 À : XWiki Users Objet : Re: [xwiki-users] Editing goes to WYSIWIG instead of inline Hi Christophe, I guess your problem and the way to fix it is described on: http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial - Click the first button (CREATE THE DOCUMENT SHEET) to create the document sheet (the Page Design Sheet). This sheet determines how your page's objects will be rendered to the user. The document is automatically created. - Click on View the sheet document - Edit that page in Object edition mode - Using the menu on the right, add a XWiki.SheetClass object to the page - *Adding the XWiki.SheetClass object is important. It's because of this object that users will be sent to form edition mode when editing FAQ entries* - Click Save View Guillaume On Fri, Feb 19, 2010 at 2:34 PM, PERINAUD Christophe christophe.perin...@kbl-bank.com wrote: Hi all, I created few pages (class, sheet, template, etc) to let me have a template for incidents management. My problem is that when i click on Edit it opens the WYSIWIG editor and i would like to have the Inline Editor by default. If i force the inline editor from the edit menu it works great. I have the same problem for the user's edition Christophe Périnaud Hub Banking Support Application KBL European Private Bankers S.A. -- -- This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Wiki admin
Hi Stefan, Programming rights is a special kind of right that allows users to use protected APIs Groovy code in wiki pages. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights On Thu, Feb 18, 2010 at 20:02, stefan bachert stefanbach...@yahoo.dewrote: Hi, the xwiki admin contains a category named programming. All entries are empty. I do not have any idea what this page is good for. What could I configure here? 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
Re: [xwiki-users] Verification Step
Hi Stefan, There is no direct way to do this, but this could be a solution: - for your registered users (XWikiAllGroup) give them Edit rights just for a special Space, lets call it Sandbox. This means they can create pages just there. For the Wiki, let just View right (and Comment if you like). - you make a users Group, lets call it Editors, that has Edit rights for your Wiki. - After you seen the quality of their work, you can add that user to the Editors group. Hope this helps, Caty On Mon, Feb 15, 2010 at 21:42, stefan bachert stefanbach...@yahoo.dewrote: Is there a way to very new pages before they go online? I would like to check the first few pages/pages of self registered user before allowing them to go online directly 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] rights
Hi, I am about to protect the xwiki as much as possible. I disabled the xwiki space for unregistered users. One effect is that text search in the search field no more disappears when it get focus. The code for that functionality is in resources/js/xwiki.js This file will not delivered to an unregistered user anymore. On the other hand I do still see sandbox offered in the space selection of the search page. Even when I disabled unregistered from view the sandbox space. What is wrong with my approach? 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] rights
On Feb 19, 2010, at 3:55 PM, stefan bachert wrote: Hi, I am about to protect the xwiki as much as possible. I disabled the xwiki space for unregistered users. One effect is that text search in the search field no more disappears when it get focus. The code for that functionality is in resources/js/xwiki.js This file will not delivered to an unregistered user anymore. On the other hand I do still see sandbox offered in the space selection of the search page. Even when I disabled unregistered from view the sandbox space. What is wrong with my approach? All users must have at least view rights on the XWiki space. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LiveTable column titles
On 18/02/10 15:04, Josh wrote: Guillaume Lerouge wrote: Hi Joshua, On Thu, Feb 18, 2010 at 12:04 AM, Rieken, Joshua joshua_rie...@reyrey.comwrote: I am using the LiveTable macro to build a table similar to the one in XWiki.Tableview. I have custom columns and I want to display a column's pretty name as its header, but I can't find a way to pass a column pretty name in the column properties or otherwise set the column header. The only way I've found to set this column header pretty name is to pass a translationPrefix option in the table options. Is there any way to set the column headers to a pretty name without changing / creating translation keys in the core? Yes. - Create a page named something like Space.LivetableTranslations - In this page, add your keys in the following way: prefix_columntitle=Column title nice translation - Go to the administration, in the Programming section, and add Space.LivetableTranslations in the internationalization document bundles field save Ah, excellent. Thanks. I do agree with Vincent that this should not be mandatory. It would be nice to have a name parameter or something similar in the column options. Done. This will be possible starting with XE 2.3M1 See http://jira.xwiki.org/jira/browse/XWIKI-4912 Regards, Jerome. -Joshua You're done :-) Guillaume ___ 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] LiveTable column titles
Hello, I'd like to ask for a precision ... Will it replace the translation page feature, or be another possibility (or maybe will we have to give a translation property name to have old behaviour ?) Thanks, Jeremie 2010/2/19 Jerome Velociter jer...@xwiki.com On 18/02/10 15:04, Josh wrote: Guillaume Lerouge wrote: Hi Joshua, On Thu, Feb 18, 2010 at 12:04 AM, Rieken, Joshua joshua_rie...@reyrey.comwrote: I am using the LiveTable macro to build a table similar to the one in XWiki.Tableview. I have custom columns and I want to display a column's pretty name as its header, but I can't find a way to pass a column pretty name in the column properties or otherwise set the column header. The only way I've found to set this column header pretty name is to pass a translationPrefix option in the table options. Is there any way to set the column headers to a pretty name without changing / creating translation keys in the core? Yes. - Create a page named something like Space.LivetableTranslations - In this page, add your keys in the following way: prefix_columntitle=Column title nice translation - Go to the administration, in the Programming section, and add Space.LivetableTranslations in the internationalization document bundles field save Ah, excellent. Thanks. I do agree with Vincent that this should not be mandatory. It would be nice to have a name parameter or something similar in the column options. Done. This will be possible starting with XE 2.3M1 See http://jira.xwiki.org/jira/browse/XWIKI-4912 Regards, Jerome. -Joshua You're done :-) Guillaume ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LiveTable column titles
On 19/02/10 16:47, Jeremie BOUSQUET wrote: Hello, I'd like to ask for a precision ... Will it replace the translation page feature, or be another possibility (or maybe will we have to give a translation property name to have old behaviour ?) The strategy will be : - If a column displayName option is passed, this is the name that wins - If not, and if a translation prefix is passed, then it used - and if not, the column technical name is used (doc.title for example) Jerome. Thanks, Jeremie 2010/2/19 Jerome Velociterjer...@xwiki.com On 18/02/10 15:04, Josh wrote: Guillaume Lerouge wrote: Hi Joshua, On Thu, Feb 18, 2010 at 12:04 AM, Rieken, Joshua joshua_rie...@reyrey.comwrote: I am using the LiveTable macro to build a table similar to the one in XWiki.Tableview. I have custom columns and I want to display a column's pretty name as its header, but I can't find a way to pass a column pretty name in the column properties or otherwise set the column header. The only way I've found to set this column header pretty name is to pass a translationPrefix option in the table options. Is there any way to set the column headers to a pretty name without changing / creating translation keys in the core? Yes. - Create a page named something like Space.LivetableTranslations - In this page, add your keys in the following way: prefix_columntitle=Column title nice translation - Go to the administration, in the Programming section, and add Space.LivetableTranslations in the internationalization document bundles field save Ah, excellent. Thanks. I do agree with Vincent that this should not be mandatory. It would be nice to have a name parameter or something similar in the column options. Done. This will be possible starting with XE 2.3M1 See http://jira.xwiki.org/jira/browse/XWIKI-4912 Regards, Jerome. -Joshua You're done :-) Guillaume ___ 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 ___ 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] Deprecated usage
Hi, when using the Lucene Search I get a warning due to the usage of ..plugin.LucenePluginApi.getSearchResults Is there a way to get rid of this warning? 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] LiveTable column titles
Thanks ! :) 2010/2/19 Jerome Velociter jer...@xwiki.com On 19/02/10 16:47, Jeremie BOUSQUET wrote: Hello, I'd like to ask for a precision ... Will it replace the translation page feature, or be another possibility (or maybe will we have to give a translation property name to have old behaviour ?) The strategy will be : - If a column displayName option is passed, this is the name that wins - If not, and if a translation prefix is passed, then it used - and if not, the column technical name is used (doc.title for example) Jerome. Thanks, Jeremie 2010/2/19 Jerome Velociterjer...@xwiki.com On 18/02/10 15:04, Josh wrote: Guillaume Lerouge wrote: Hi Joshua, On Thu, Feb 18, 2010 at 12:04 AM, Rieken, Joshua joshua_rie...@reyrey.comwrote: I am using the LiveTable macro to build a table similar to the one in XWiki.Tableview. I have custom columns and I want to display a column's pretty name as its header, but I can't find a way to pass a column pretty name in the column properties or otherwise set the column header. The only way I've found to set this column header pretty name is to pass a translationPrefix option in the table options. Is there any way to set the column headers to a pretty name without changing / creating translation keys in the core? Yes. - Create a page named something like Space.LivetableTranslations - In this page, add your keys in the following way: prefix_columntitle=Column title nice translation - Go to the administration, in the Programming section, and add Space.LivetableTranslations in the internationalization document bundles field save Ah, excellent. Thanks. I do agree with Vincent that this should not be mandatory. It would be nice to have a name parameter or something similar in the column options. Done. This will be possible starting with XE 2.3M1 See http://jira.xwiki.org/jira/browse/XWIKI-4912 Regards, Jerome. -Joshua You're done :-) Guillaume ___ 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 ___ 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