[xwiki-notifications] Build XWiki Enterprise::Trunk #1142 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1142 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8343&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8343&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1142 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1142 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8343&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8343&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1141 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1141 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8336&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8336&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1141 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1141 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8336&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8336&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise Manager::Trunk #1200 failed (tests failed: 1 (1 new), passed: 0)
Build XWiki Enterprise Manager::Trunk #1200 failed (tests failed: 1 (1 new), passed: 0) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8331&buildTypeId=bt11 Newly failed tests (1 test) == [EMAIL PROTECTED] = java.lang.RuntimeException: Failed to start XWiki in [60] seconds at com.xpn.xwiki.test.XWikiTestSetup.waitForXWikiToLoad(XWikiTestSetup.java:137) at com.xpn.xwiki.test.XWikiTestSetup.setUp(XWikiTestSetup.java:73) at junit.extensions.TestSetup$1.protect(TestSetup.java:20) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.extensions.TestSetup.run(TestSetup.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980) Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1140 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1140 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8330&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8330&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1140 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1140 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8330&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8330&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1139 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1139 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8322&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8322&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1139 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1139 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8322&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8322&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7273 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api
Author: sdumitriu Date: 2008-02-02 01:29:29 +0100 (Sat, 02 Feb 2008) New Revision: 7273 Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java Log: [cleanup] Apply codestyle Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java 2008-02-01 23:56:53 UTC (rev 7272) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java 2008-02-02 00:29:29 UTC (rev 7273) @@ -19,27 +19,25 @@ */ package com.xpn.xwiki.api; -import com.xpn.xwiki.XWikiContext; -import com.xpn.xwiki.web.Utils; -import com.sun.image.codec.jpeg.JPEGImageEncoder; -import com.sun.image.codec.jpeg.JPEGCodec; - -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.TreeMap; -import java.util.Collections; -import java.util.Date; -import java.lang.*; -import java.lang.Object; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; +import com.sun.image.codec.jpeg.JPEGCodec; +import com.sun.image.codec.jpeg.JPEGImageEncoder; +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.web.Utils; + /** * Utility APIs, available from Velocity/Groovy scripting. - * + * * @version $Id: $ */ public class Util extends Api @@ -48,6 +46,7 @@ /** * [EMAIL PROTECTED] + * * @see Api#Api(com.xpn.xwiki.XWikiContext) */ public Util(com.xpn.xwiki.XWiki xwiki, XWikiContext context) @@ -58,7 +57,7 @@ /** * Protect Text from Wiki transformation. - * + * * @param text the text to escape * @return the escaped text * @since 1.3 Milestone 2 @@ -70,7 +69,7 @@ /** * Protect URLs from Wiki transformation. - * + * * @param url the url to escape * @return the encoded URL * @since 1.3 Milestone 2 @@ -81,9 +80,9 @@ } /** - * Creates an Array List. This is useful from Velocity since you cannot - * create Object from Velocity with our secure uberspector. - * + * Creates an Array List. This is useful from Velocity since you cannot create Object from + * Velocity with our secure uberspector. + * * @return a [EMAIL PROTECTED] ArrayList} object * @since 1.3 Milestone 2 */ @@ -93,9 +92,9 @@ } /** - * Creates a Hash Map. This is useful from Velocity since you cannot - * create Object from Velocity with our secure uberspector. - * + * Creates a Hash Map. This is useful from Velocity since you cannot create Object from Velocity + * with our secure uberspector. + * * @return a [EMAIL PROTECTED] HashMap} object * @since 1.3 Milestone 2 */ @@ -105,9 +104,9 @@ } /** - * Creates a Tree Map. This is useful from Velocity since you cannot - * create Object from Velocity with our secure uberspector. - * + * Creates a Tree Map. This is useful from Velocity since you cannot create Object from Velocity + * with our secure uberspector. + * * @return a [EMAIL PROTECTED] TreeMap} object * @since 1.3 Milestone 2 */ @@ -127,8 +126,8 @@ /** * @param time time in milliseconds since 1970, 00:00:00 GMT - * @return Date a date from a time in milliseconds since 01/01/1970 as a - * Java [EMAIL PROTECTED] Date} Object + * @return Date a date from a time in milliseconds since 01/01/1970 as a Java [EMAIL PROTECTED] Date} + * Object * @since 1.3 Milestone 2 */ public Date getDate(long time) @@ -138,8 +137,8 @@ /** * @param time the time in milliseconds - * @return the time delta in milliseconds between the current date and the time passed - * as parameter + * @return the time delta in milliseconds between the current date and the time passed as + * parameter * @since 1.3 Milestone 2 */ public int getTimeDelta(long time) @@ -149,10 +148,9 @@ /** * Split a text to an array of texts, according to a separator. - * + * * @param text the original text - * @param sep the separator characters. The separator is one or more of the - *separator characters + * @param sep the separator characters. The separator is one or more of the separator characters * @return An array containing the split text * @since 1.3 Milestone 2 */ @@ -163,7 +161,7 @@ /** * Get a stack trace as a String - * + * * @param e the exception to convert to a String * @return the exception stack trace a
[xwiki-notifications] r7272 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web
Author: sdumitriu Date: 2008-02-02 00:56:53 +0100 (Sat, 02 Feb 2008) New Revision: 7272 Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiServletURLFactory.java Log: XWIKI-2056: The URL Factory should use the contextPath instead of the contextName Fixed. Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiServletURLFactory.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiServletURLFactory.java 2008-02-01 22:47:55 UTC (rev 7271) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiServletURLFactory.java 2008-02-01 23:56:53 UTC (rev 7272) @@ -73,10 +73,7 @@ (context.getWiki() == null) ? "" : context.getWiki().Param("xwiki.servletpath", ""); if (servletPath.equals("")) { try { -servletPath = -((XWikiServletContext) context.getEngineContext()).getServletContext() -.getServletContextName() -+ "/"; +servletPath = context.getRequest().getContextPath().substring(1) + "/"; } catch (Exception e) { servletPath = path.substring(0, path.indexOf('/', 1) + 1); } ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1138 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1138 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8317&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8317&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1138 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1138 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8317&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8317&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7271 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web
Author: sdumitriu Date: 2008-02-01 23:47:55 +0100 (Fri, 01 Feb 2008) New Revision: 7271 Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/ViewAction.java Log: [cleanup] Remove unneeded return Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/ViewAction.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/ViewAction.java 2008-02-01 22:32:40 UTC (rev 7270) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/ViewAction.java 2008-02-01 22:47:55 UTC (rev 7271) @@ -63,7 +63,6 @@ e.printStackTrace(); } shouldRender = false; -return false; } return shouldRender; ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7270 - in xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse: META-INF src/main/java/org/xwiki/eclipse/views
Author: fmancinelli Date: 2008-02-01 23:32:40 +0100 (Fri, 01 Feb 2008) New Revision: 7270 Modified: xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/META-INF/MANIFEST.MF xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/src/main/java/org/xwiki/eclipse/views/XWikiExplorerView.java Log: Exported packages in order to make some classes visible to external plugins. Allow external contributions to popup menu. Modified: xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/META-INF/MANIFEST.MF === --- xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/META-INF/MANIFEST.MF 2008-02-01 21:38:38 UTC (rev 7269) +++ xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/META-INF/MANIFEST.MF 2008-02-01 22:32:40 UTC (rev 7270) @@ -20,4 +20,5 @@ org.eclipse.ui.ide, org.eclipse.ui.forms Eclipse-LazyStart: true -Export-Package: org.xwiki.eclipse.model +Export-Package: org.xwiki.eclipse, + org.xwiki.eclipse.model Modified: xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/src/main/java/org/xwiki/eclipse/views/XWikiExplorerView.java === --- xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/src/main/java/org/xwiki/eclipse/views/XWikiExplorerView.java 2008-02-01 21:38:38 UTC (rev 7269) +++ xwiki-extensions/xwiki-eclipse/trunk/plugins/org.xwiki.eclipse/src/main/java/org/xwiki/eclipse/views/XWikiExplorerView.java 2008-02-01 22:32:40 UTC (rev 7270) @@ -375,6 +375,8 @@ Menu menu = menuManager.createContextMenu(treeViewer.getControl()); treeViewer.getControl().setMenu(menu); + +getSite().registerContextMenu("#XWikiExplorerPopup", menuManager, treeViewer); } @Override ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1137 failed (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1137 failed (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8310&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8310&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1137 failing (tests failed: 39, passed: 231)
Build XWiki Enterprise::Trunk #1137 failing (tests failed: 39, passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8310&buildTypeId=bt7 Failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8310&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XAWM-56) Main wiki should not be deletable
Main wiki should not be deletable - Key: XAWM-56 URL: http://jira.xwiki.org/jira/browse/XAWM-56 Project: XWiki Wiki Manager Application Issue Type: Improvement Components: Documents Affects Versions: 1.0 Reporter: Sergiu Dumitriu In the wiki manager interface, the Delete button should not be enabled for the main wiki. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] unsubscribe
Unsubscribe -- Original message -- From: [EMAIL PROTECTED] > Send notifications mailing list submissions to > notifications@xwiki.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.xwiki.org/mailman/listinfo/notifications > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of notifications digest..." > > > Today's Topics: > >1. r6818 - in xwiki-platform: core/trunk/xwiki-core > web/trunk/gwt (vmassol (SVN)) >2. [Issue] Commented: (XWIKI-1645) build time/test jars should > not be packaged with xwiki + possible bloat (Vincent Massol (JIRA)) >3. r6819 - > > xwiki-products/curriki/trunk/plugins/currikispacemanager/src/main/java/org/curri > ki/plugin/spacemanager/impl > (cvrabie (SVN)) >4. r6820 - > > xwiki-products/xwiki-enterprise/branches/xwiki-enterprise-1.2/distribution-test/ > misc-tests > (vmassol (SVN)) >5. Build XWiki Enterprise::Trunk #1030 failed (tests failed: 1 > (1 new), passed: 267) ([EMAIL PROTECTED]) >6. r6821 - > xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8 > (dward (SVN)) >7. [Issue] Moved: (XWIKI-2008) Make the watchlist feature usable > in virtual mode (Jean-Vincent Drean (JIRA)) >8. [Issue] Moved: (XPWATCHLIST-4) Make the watchlist feature > usable in virtual mode (Jean-Vincent Drean (JIRA)) >9. Build XWiki Enterprise::1.2 #55 failing (tests failed: 2 (2 > new), passed: 266) ([EMAIL PROTECTED]) > > > -- > > Message: 1 > Date: Mon, 14 Jan 2008 17:28:23 +0100 (CET) > From: vmassol (SVN) > Subject: [xwiki-notifications] r6818 - in xwiki-platform: > core/trunk/xwiki-core web/trunk/gwt > To: notifications@xwiki.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8 > > Author: vmassol > Date: 2008-01-14 17:28:23 +0100 (Mon, 14 Jan 2008) > New Revision: 6818 > > Modified: >xwiki-platform/core/trunk/xwiki-core/pom.xml >xwiki-platform/web/trunk/gwt/pom.xml > Log: > XWIKI-1645: build time/test jars should not be packaged with xwiki + possible > bloat > > Reverted the move to provided scope for the portlet api jar. It's not > currently > possible since XWiki Core has code that uses the Portlet API and this code is > executed even when run in a Servlet container. Removing this code will need > an > important rewrite that can only be done with the new XWiki 2.0 architecture. > > Modified: xwiki-platform/core/trunk/xwiki-core/pom.xml > === > --- xwiki-platform/core/trunk/xwiki-core/pom.xml 2008-01-14 16:04:26 UTC > (rev 6817) > +++ xwiki-platform/core/trunk/xwiki-core/pom.xml 2008-01-14 16:28:23 UTC > (rev 6818) > @@ -318,7 +318,9 @@ >portlet-api >portlet-api >1.0 > - provided > + > > >struts > > Modified: xwiki-platform/web/trunk/gwt/pom.xml > === > --- xwiki-platform/web/trunk/gwt/pom.xml 2008-01-14 16:04:26 UTC (rev > 6817) > +++ xwiki-platform/web/trunk/gwt/pom.xml 2008-01-14 16:28:23 UTC (rev > 6818) > @@ -74,12 +74,6 @@ >2.4 >provided > > - > - portlet-api > - portlet-api > - 1.0 > - provided > - > > > > > > > -- > > Message: 2 > Date: Mon, 14 Jan 2008 17:29:32 +0100 (CET) > From: "Vincent Massol (JIRA)" <[EMAIL PROTECTED]> > Subject: [xwiki-notifications] [Issue] Commented: (XWIKI-1645) build > time/test jars should not be packaged with xwiki + possible bloat > To: notifications@xwiki.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8 > > > [ > http://jira.xwiki.org/jira/browse/XWIKI-1645?page=com.atlassian.jira.plugin.syst > em.issuetabpanels:comment-tabpanel#action_21185 ] > > Vincent Massol commented on XWIKI-1645: > --- > > Reverted the move to provided scope for the portlet api jar. It's not > currently > possible since XWiki Core has code that uses the Portlet API and this code is > executed even when run in a Servlet container. Removing this code will need > an > important rewrite that can only be done with the new XWiki 2.0 architecture. > > > build time/test jars should not be packaged with xwiki + possible bloat > > --- > > > > Key: XWIKI-1645 > > URL: http://jira.xwiki.org/jira/browse/XWIKI-1645 > > Project: XWiki Platform > > Issue Type
[xwiki-notifications] r7269 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/groovy
Author: vmassol Date: 2008-02-01 22:38:38 +0100 (Fri, 01 Feb 2008) New Revision: 7269 Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java Log: XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text * Added "util" variable in the Groovy context too so that it can be access from Groovy. Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java 2008-02-01 16:04:55 UTC (rev 7268) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java 2008-02-01 21:38:38 UTC (rev 7269) @@ -24,6 +24,7 @@ import com.xpn.xwiki.api.Context; import com.xpn.xwiki.api.Document; import com.xpn.xwiki.api.XWiki; +import com.xpn.xwiki.api.Util; import com.xpn.xwiki.cache.api.XWikiCache; import com.xpn.xwiki.cache.api.XWikiCacheNeedsRefreshException; import com.xpn.xwiki.cache.impl.XWikiCachedObject; @@ -80,6 +81,7 @@ gcontext.put("request", context.getRequest()); gcontext.put("response", context.getResponse()); gcontext.put("context", new Context(context)); +gcontext.put("util", new Util(context.getWiki(), context)); // Put the Groovy Context in the context // so that includes can use it.. ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1136 failed (tests failed: 39 (39 new), passed: 231)
Build XWiki Enterprise::Trunk #1136 failed (tests failed: 39 (39 new), passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8304&buildTypeId=bt7 Newly failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8304&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Enterprise::Trunk #1136 failing (tests failed: 39 (39 new), passed: 231)
Build XWiki Enterprise::Trunk #1136 failing (tests failed: 39 (39 new), passed: 231) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8304&buildTypeId=bt7 Newly failed tests (39 tests, only first 3 failures shown here) == com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostReferredPages = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.MostEditedSpaces = com.xpn.xwiki.it.xmlrpc.AllTests.Validating Stats.LeastActiveContributors = see all newly failed tests: http://teamcity.xwiki.org/viewLog.html?buildId=8304&buildTypeId=bt7 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XWIKI-2056) The URL Factory should use the contextPath instead of the contextName
The URL Factory should use the contextPath instead of the contextName - Key: XWIKI-2056 URL: http://jira.xwiki.org/jira/browse/XWIKI-2056 Project: XWiki Platform Issue Type: Bug Components: Actions and URLs, Core Affects Versions: 1.3 M1 Reporter: Sergiu Dumitriu In web.XWikiServletURLFactory#init, the first path of the URL (wrongly name servletPath) is initialized with ServletContext().getServletContextName(), which should be used for the application name displayed in a container management application, and not as part of the URL. The proper value is request.getContextPath(), which is automatically set to reflect the application location. This will allow: - Easy changing the application directory and context name; right now, the displayName property in web.xml must be changed, too - Use a proper display name to reflect the application contents (XWiki Enterprise, XWiki Watch, Chronopolys, etc) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XPSM-6) Integrate the space manager plugin in the XWiki SVN
Integrate the space manager plugin in the XWiki SVN --- Key: XPSM-6 URL: http://jira.xwiki.org/jira/browse/XPSM-6 Project: XWiki Space Manager Plugin Issue Type: Task Reporter: Jerome Velociter Assigned To: Jerome Velociter Integrate the spacemanager plugin developped for curriki 1.5 "Groups foundations" in the XWiki SVN. See spacemanager features here : http://code.xwiki.org/xwiki/bin/view/Plugins/SpaceManagerPlugin -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XPSM-5) Document the spacemanager plugin
Document the spacemanager plugin Key: XPSM-5 URL: http://jira.xwiki.org/jira/browse/XPSM-5 Project: XWiki Space Manager Plugin Issue Type: Task Components: Plugin Reporter: Jerome Velociter Assigned To: Jerome Velociter Fix For: 1.0 Improve plugin's javadoc -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XPSM-4) An admin can be added to the space without being member
An admin can be added to the space without being member --- Key: XPSM-4 URL: http://jira.xwiki.org/jira/browse/XPSM-4 Project: XWiki Space Manager Plugin Issue Type: Bug Components: Plugin Reporter: Jerome Velociter Assigned To: Jerome Velociter Priority: Critical Fix For: 1.0 calling SpaceManagerApi#addAdmin(spaceName, userName) is enough to add an admin to the group even if does not belong to its member yet. It should either throw an exception, or lazily add it to the member group. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7268 - xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util
Author: vmassol Date: 2008-02-01 17:04:55 +0100 (Fri, 01 Feb 2008) New Revision: 7268 Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java Log: XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text * Fixed unit tests so that it works on all system encodings Note: I don't know to test an accent properly... Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java === --- xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java 2008-02-01 15:54:56 UTC (rev 7267) +++ xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java 2008-02-01 16:04:55 UTC (rev 7268) @@ -33,6 +33,6 @@ { assertEquals("Search", Util.convertToAlphaNumeric("Search")); assertEquals("Search", Util.convertToAlphaNumeric("S.earch")); -assertEquals("e", Util.convertToAlphaNumeric("�$%�#^()")); +assertEquals("e", Util.convertToAlphaNumeric("e$%�#^()")); } } ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Commented: (XWIKI-2040) api.User#isUserInGroup should not throw exceptions
[ http://jira.xwiki.org/jira/browse/XWIKI-2040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22215 ] Vincent Massol commented on XWIKI-2040: --- Sergiu I see this in the test results: {noformat} [15:12:31]: Running com.xpn.xwiki.api.UserTest [15:12:31]: 2008-02-01 15:12:30,871 [] [main] WARN api.User - Unhandled exception checking if user null belongs to group XWiki.InexistentGroupName [15:12:31]: java.lang.NullPointerException [15:12:31]: at com.xpn.xwiki.api.User.isUserInGroup(User.java:83) [15:12:31]: at com.xpn.xwiki.api.UserTest.testIsUserInGroupDoesNotThrowNPE(UserTest.java:21) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at junit.framework.TestCase.runTest(TestCase.java:164) [15:12:31]: at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) [15:12:31]: at junit.framework.TestResult$1.protect(TestResult.java:106) [15:12:31]: at junit.framework.TestResult.runProtected(TestResult.java:124) [15:12:31]: at junit.framework.TestResult.run(TestResult.java:109) [15:12:31]: at junit.framework.TestCase.run(TestCase.java:120) [15:12:31]: at junit.framework.TestSuite.runTest(TestSuite.java:230) [15:12:31]: at junit.framework.TestSuite.run(TestSuite.java:225) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) [15:12:31]: at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) [15:12:31]: at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) [15:12:31]: at org.apache.maven.surefire.Surefire.run(Surefire.java:177) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:12:31]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [15:12:31]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [15:12:31]: at java.lang.reflect.Method.invoke(Method.java:585) [15:12:31]: at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) [15:12:31]: at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980) {noformat} is it possible to remove that exception from the test logs? By capturing the output maybe? > api.User#isUserInGroup should not throw exceptions > -- > > Key: XWIKI-2040 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2040 > Project: XWiki Platform > Issue Type: Bug > Components: APIs >Affects Versions: 1.2 >Reporter: Sergiu Dumitriu > Assigned To: Sergiu Dumitriu >Priority: Minor > Fix For: 1.3 M2 > > Attachments: isUserInGroupExceptions200801310302.txt > > > Sometimes a NullPointerException is thrown, which should be caught. > {noformat} > java.lang.NullPointerException > at com.xpn.xwiki.api.User.isUserInGroup(User.java:51) > {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7267 - xwiki-platform/xwiki-applications/trunk/panels/src/main/resources/Panels
Author: vmassol Date: 2008-02-01 16:54:56 +0100 (Fri, 01 Feb 2008) New Revision: 7267 Modified: xwiki-platform/xwiki-applications/trunk/panels/src/main/resources/Panels/EditModes Log: XAPANELS-40: Add new "Edit Modes" Editor Panel for the new Toucan skin * Fixed velocity warnings (this is fixing the build too) Modified: xwiki-platform/xwiki-applications/trunk/panels/src/main/resources/Panels/EditModes === --- xwiki-platform/xwiki-applications/trunk/panels/src/main/resources/Panels/EditModes 2008-02-01 15:37:27 UTC (rev 7266) +++ xwiki-platform/xwiki-applications/trunk/panels/src/main/resources/Panels/EditModes 2008-02-01 15:54:56 UTC (rev 7267) @@ -105,12 +105,12 @@ ### ###-
#panelfooter() ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications- $msg.get("editVisual")
-- $msg.get("editWiki")
-#if($isAdvancedUser)- $msg.get("editObject")
#end -#if($isAdvancedUser)- $msg.get("editClass")
#end -- $msg.get("editRights")
-#if($isAdvancedUser)- $msg.get("editHistory")
#end +- $msg.get("editVisual")
+- $msg.get("editWiki")
+#if($isAdvancedUser)- $msg.get("editObject")
#end +#if($isAdvancedUser)- $msg.get("editClass")
#end +- $msg.get("editRights")
+#if($isAdvancedUser)- $msg.get("editHistory")
#end
[xwiki-notifications] r7266 - xwiki-platform/skins/trunk/toucan/src/main/resources/toucan
Author: vmassol Date: 2008-02-01 16:37:27 +0100 (Fri, 01 Feb 2008) New Revision: 7266 Modified: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm Log: XSTOUCAN-1: Create Toucan skin from xwiki.org * Removed not working macro (missing corresponding css entries). Would be nice to have that macro back in the future Modified: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm 2008-02-01 15:05:17 UTC (rev 7265) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm 2008-02-01 15:37:27 UTC (rev 7266) @@ -269,20 +269,3 @@ #end #end -### -### -### -###XWIKI.ORG MACROS -### -### -### -#macro(roundedboxstart $title $color $width $float ) - - - $title - -#end -#macro(roundedboxend) - - -#end \ No newline at end of file ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7265 - xwiki-platform/skins/trunk/toucan/src/main/resources/toucan
Author: vmassol Date: 2008-02-01 16:05:17 +0100 (Fri, 01 Feb 2008) New Revision: 7265 Removed: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/stylesheets.vm Log: XSTOUCAN-1: Create Toucan skin from xwiki.org * Removing not needed stylesheet.vm since it's the same than Alabtross' Deleted: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/stylesheets.vm === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/stylesheets.vm 2008-02-01 14:39:02 UTC (rev 7264) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/stylesheets.vm 2008-02-01 15:05:17 UTC (rev 7265) @@ -1,32 +0,0 @@ -#set( $defaultstyle = $xwiki.getWebPreference("stylesheet")) -#set( $stylesheets = $xwiki.getWebPreference("stylesheets")) -#if ($defaultstyle!="") - - -#else - - -#end -#if($printss) - -#end -#if ($stylesheets != "") -#set( $stylenb = 1) -#foreach ( $stylesheet in $xwiki.split($stylesheets, ",")) -#if( !$stylesheet.equalsIgnoreCase($defaultstyle) ) - -#end -#set( $stylenb = $stylenb + 1) -#end -#else - - - -#end - - - - - \ No newline at end of file ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Updated: (XWIKI-2051) Can't get properties values from a document's object from another wiki
[ http://jira.xwiki.org/jira/browse/XWIKI-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mortagne updated XWIKI-2051: --- Fix Version/s: 1.3 M2 > Can't get properties values from a document's object from another wiki > -- > > Key: XWIKI-2051 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2051 > Project: XWiki Platform > Issue Type: Bug > Components: APIs >Affects Versions: 1.2.1, 1.3 M1 >Reporter: Thomas Mortagne > Fix For: 1.3 M2 > > > To reproduce, create a user "toto" on main wiki and execute the following > code in a any wiki except main wiki > {code} > #set ($document = $xwiki.getDocument("xwiki:XWiki.toto")) > #set ($object = $document.getObject("XWiki.XWikiUsers")) > $object.firstName > {code} > This will print nothing. > The problem is that Object.get(String) reload the XWikiDocument before trying > to get object field value. To reload the document it uses > getCollection().getName(); that contains "XWiki.toto" > and not "xwiki:XWiki.toto" so the wrong document is loaded and when it try > to get field value, an empty String is returned because field or object does > not exist. > {code} > public java.lang.Object get(String name) > { > String docname = getCollection().getName(); > try { > XWikiDocument doc = > getXWikiContext().getWiki().getDocument(docname, getXWikiContext()); > return doc.display(name, this.getBaseObject(), getXWikiContext()); > } catch (XWikiException e) { > return null; > } > } > {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Closed: (XWIKI-2053) Provide CSS hooks to allow to style Panels selectively
[ http://jira.xwiki.org/jira/browse/XWIKI-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol closed XWIKI-2053. - Resolution: Fixed Done > Provide CSS hooks to allow to style Panels selectively > -- > > Key: XWIKI-2053 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2053 > Project: XWiki Platform > Issue Type: Improvement > Components: Macros & Filters >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > Right now panels generate this: > {noformat} > > {noformat} > This doesn't allow to style them selectively. For example in the Toucan skin > we want to style the Search panels so that it has rounded corners and some > border image. > I'm thus proposing that the #panel* macros generate instead the following > {noformat} > > {noformat} > where "(panel name here)" is the panel name (the short name not the full > name) where accented chars have been transformed to their alpha equivalent > and non alpha numeric chars have been stripped. > Rationale: > * This provides the necessary hook > * It's compatible with allowed CSS characters (using the doc name would not > be compatible since it can contain accents, dots, hash, etc) > * The name is the same on all instances since it's computed based on the > document's name. > Of course if the document's name changes it'll be different but then we can > consider it's a different panel. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7264 - xwiki-platform/skins/trunk/toucan/src/main/resources/toucan
Author: vmassol Date: 2008-02-01 15:39:02 +0100 (Fri, 01 Feb 2008) New Revision: 7264 Modified: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm Log: XWIKI-2053: Provide CSS hooks to allow to style Panels selectively * Apply also to Toucan skin. Next step is to factorize the macros.vm. Modified: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm 2008-02-01 14:32:08 UTC (rev 7263) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/macros.vm 2008-02-01 14:39:02 UTC (rev 7264) @@ -9,20 +9,28 @@ #set($cookieName = "${context.user}_${panel}") #set($expanded = "expanded") #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end + #macro(panelhiddenheader $title) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end + #macro(largepanelheader $title) #set($cookieName = "${context.user}_${panel}") #set($expanded = "expanded") #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7263 - xwiki-platform/skins/trunk/albatross/src/main/resources/albatross
Author: vmassol Date: 2008-02-01 15:32:08 +0100 (Fri, 01 Feb 2008) New Revision: 7263 Modified: xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/macros.vm Log: XWIKI-2053: Provide CSS hooks to allow to style Panels selectively Modified: xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/macros.vm === --- xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/macros.vm 2008-02-01 14:10:21 UTC (rev 7262) +++ xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/macros.vm 2008-02-01 14:32:08 UTC (rev 7263) @@ -9,20 +9,28 @@ #set($cookieName = "${context.user}_${panel}") #set($expanded = "expanded") #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end + #macro(panelhiddenheader $title) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end + #macro(largepanelheader $title) #set($cookieName = "${context.user}_${panel}") #set($expanded = "expanded") #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) - +## Note: We pass the Panel name as an HTML class attribute so that it's possible to style +## the Panels selectively using CSS. + $title #end ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Closed: (XWIKI-2055) Move utility APIs from the api.XWiki class to a new api.Util class
[ http://jira.xwiki.org/jira/browse/XWIKI-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol closed XWIKI-2055. - Resolution: Fixed Done > Move utility APIs from the api.XWiki class to a new api.Util class > -- > > Key: XWIKI-2055 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2055 > Project: XWiki Platform > Issue Type: Improvement > Components: APIs >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > The api.XWiki class is cluttered with utility methods which shouldn't be in > there... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Platform Core::Trunk #486 failed (tests failed: 1, passed: 130)
Build XWiki Platform Core::Trunk #486 failed (tests failed: 1, passed: 130) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8281&buildTypeId=bt3 Failed tests (1 test) == com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric = junit.framework.ComparisonFailure: expected:<[e]> but was:<[]> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric(UtilTest.java:36) Changes included (1 change) Change 7262 by vmassol (3 files): XWIKI-2055: Move utility APIs from the api.XWiki class to a new api.Util class see more information about changed files: http://teamcity.xwiki.org/viewLog.html?tab=buildChangesDiv&buildId=8281&buildTypeId=bt3 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7262 - in xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki: api render
Author: vmassol Date: 2008-02-01 15:10:21 +0100 (Fri, 01 Feb 2008) New Revision: 7262 Added: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/XWiki.java xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/render/XWikiVelocityRenderer.java Log: XWIKI-2055: Move utility APIs from the api.XWiki class to a new api.Util class Added: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java (rev 0) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/api/Util.java 2008-02-01 14:10:21 UTC (rev 7262) @@ -0,0 +1,418 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package com.xpn.xwiki.api; + +import com.xpn.xwiki.XWikiContext; +import com.xpn.xwiki.web.Utils; +import com.sun.image.codec.jpeg.JPEGImageEncoder; +import com.sun.image.codec.jpeg.JPEGCodec; + +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.TreeMap; +import java.util.Collections; +import java.util.Date; +import java.lang.*; +import java.lang.Object; +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.io.OutputStream; + +/** + * Utility APIs, available from Velocity/Groovy scripting. + * + * @version $Id: $ + */ +public class Util extends Api +{ +private com.xpn.xwiki.XWiki xwiki; + +/** + * [EMAIL PROTECTED] + * @see Api#Api(com.xpn.xwiki.XWikiContext) + */ +public Util(com.xpn.xwiki.XWiki xwiki, XWikiContext context) +{ +super(context); +this.xwiki = xwiki; +} + +/** + * Protect Text from Wiki transformation. + * + * @param text the text to escape + * @return the escaped text + * @since 1.3 Milestone 2 + */ +public String escapeText(String text) +{ +return com.xpn.xwiki.util.Util.escapeText(text); +} + +/** + * Protect URLs from Wiki transformation. + * + * @param url the url to escape + * @return the encoded URL + * @since 1.3 Milestone 2 + */ +public String escapeURL(String url) +{ +return com.xpn.xwiki.util.Util.escapeURL(url); +} + +/** + * Creates an Array List. This is useful from Velocity since you cannot + * create Object from Velocity with our secure uberspector. + * + * @return a [EMAIL PROTECTED] ArrayList} object + * @since 1.3 Milestone 2 + */ +public List getArrayList() +{ +return new ArrayList(); +} + +/** + * Creates a Hash Map. This is useful from Velocity since you cannot + * create Object from Velocity with our secure uberspector. + * + * @return a [EMAIL PROTECTED] HashMap} object + * @since 1.3 Milestone 2 + */ +public Map getHashMap() +{ +return new HashMap(); +} + +/** + * Creates a Tree Map. This is useful from Velocity since you cannot + * create Object from Velocity with our secure uberspector. + * + * @return a [EMAIL PROTECTED] TreeMap} object + * @since 1.3 Milestone 2 + */ +public Map getTreeMap() +{ +return new TreeMap(); +} + +/** + * @return the current date + * @since 1.3 Milestone 2 + */ +public Date getDate() +{ +return this.xwiki.getCurrentDate(); +} + +/** + * @param time time in milliseconds since 1970, 00:00:00 GMT + * @return Date a date from a time in milliseconds since 01/01/1970 as a + * Java [EMAIL PROTECTED] Date} Object + * @since 1.3 Milestone 2 + */ +public Date getDate(long time) +{ +return this.xwiki.getDate(time); +} + +/** + * @param time the time in milliseconds + * @return the time delta in milliseconds between the current date and the time passed + * as parameter + * @since 1.3 Milestone 2 +
[xwiki-notifications] [Issue] Updated: (XWIKI-2055) Move utility APIs from the api.XWiki class to a new api.Util class
[ http://jira.xwiki.org/jira/browse/XWIKI-2055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol updated XWIKI-2055: -- Fix Version/s: 1.3 M2 Assignee: Vincent Massol > Move utility APIs from the api.XWiki class to a new api.Util class > -- > > Key: XWIKI-2055 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2055 > Project: XWiki Platform > Issue Type: Improvement > Components: APIs >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > The api.XWiki class is cluttered with utility methods which shouldn't be in > there... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XWIKI-2055) Move utility APIs from the api.XWiki class to a new api.Util class
Move utility APIs from the api.XWiki class to a new api.Util class -- Key: XWIKI-2055 URL: http://jira.xwiki.org/jira/browse/XWIKI-2055 Project: XWiki Platform Issue Type: Improvement Components: APIs Affects Versions: 1.3 M1 Reporter: Vincent Massol Priority: Minor The api.XWiki class is cluttered with utility methods which shouldn't be in there... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7261 - xwiki-platform/xwiki-plugins/trunk
Author: jvelociter Date: 2008-02-01 14:24:12 +0100 (Fri, 01 Feb 2008) New Revision: 7261 Added: xwiki-platform/xwiki-plugins/trunk/spacemanager/ Modified: xwiki-platform/xwiki-plugins/trunk/pom.xml Log: Moving the spacemanager plugin from product-curriki/plugins to platform-plugins/ Modified: xwiki-platform/xwiki-plugins/trunk/pom.xml === --- xwiki-platform/xwiki-plugins/trunk/pom.xml 2008-02-01 13:23:21 UTC (rev 7260) +++ xwiki-platform/xwiki-plugins/trunk/pom.xml 2008-02-01 13:24:12 UTC (rev 7261) @@ -59,6 +59,7 @@ mailsender watchlist swizzle +spacemanager Copied: xwiki-platform/xwiki-plugins/trunk/spacemanager (from rev 7256, xwiki-products/curriki/trunk/plugins/spacemanager) ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7260 - xwiki-products/curriki/trunk/plugins
Author: jvelociter Date: 2008-02-01 14:23:21 +0100 (Fri, 01 Feb 2008) New Revision: 7260 Removed: xwiki-products/curriki/trunk/plugins/spacemanager/ Modified: xwiki-products/curriki/trunk/plugins/pom.xml Log: Moving the spacemanager plugin from product-curriki/plugins to platform-plugins/ Modified: xwiki-products/curriki/trunk/plugins/pom.xml === --- xwiki-products/curriki/trunk/plugins/pom.xml2008-02-01 12:13:22 UTC (rev 7259) +++ xwiki-products/curriki/trunk/plugins/pom.xml2008-02-01 13:23:21 UTC (rev 7260) @@ -48,7 +48,6 @@ framework mimetype metadata -spacemanager invitationmanager currikispacemanager ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Platform Core::Trunk #485 failed (tests failed: 1, passed: 130)
Build XWiki Platform Core::Trunk #485 failed (tests failed: 1, passed: 130) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8278&buildTypeId=bt3 Failed tests (1 test) == com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric = junit.framework.ComparisonFailure: expected:<[e]> but was:<[]> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric(UtilTest.java:36) Changes included (1 change) Change 7258 by vmassol (1 file): XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text * No need to repeat the same chars see more information about changed files: http://teamcity.xwiki.org/viewLog.html?tab=buildChangesDiv&buildId=8278&buildTypeId=bt3 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7259 - in xwiki-platform/skins/trunk/toucan/src/main/resources/toucan: . images
Author: vmassol Date: 2008-02-01 13:13:22 +0100 (Fri, 01 Feb 2008) New Revision: 7259 Removed: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/blue.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/darkgray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/gray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/green.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/color/ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/kaki.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/purple.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/red.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/yellow.css Log: XSTOUCAN-1: Create Toucan skin from xwiki.org * Removing leftover from previous commit Deleted: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/blue.css === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/blue.css 2008-02-01 12:12:50 UTC (rev 7258) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/blue.css 2008-02-01 12:13:22 UTC (rev 7259) @@ -1,10 +0,0 @@ -body#body{background-image: url( images/color/blue/H4x4-BLUE.png ); } -body#body #xwikimaincontainer{ background-image :url( images/color/blue/bg-BLUE.png ) ; } -#xwikimaincontainerinner { background-image: url( images/color/blue/bg-BLUE.png );} -body#body.hideright #xwikimaincontainerinner { background-image: url( images/color/blue/bg-BLUE3.png );} -body#body.adminbody#body #xwikimaincontainerinner { background-image: url( images/color/blue/bg-BLUE3.png );} -body#body.hidelefthideright #xwikimaincontainerinner { background-image: url( images/color/blue/bg-BLUE3.png );} -#globallinks{ background-image: url( images/color/blue/bgx-BLUE.png );} -#rightPanels{ background-image: url( images/color/blue/bgx-BLUE.png );} -#editPanels.panels{ background-image: url( images/color/blue/bgx-BLUE.png );} - Deleted: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/darkgray.css === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/darkgray.css 2008-02-01 12:12:50 UTC (rev 7258) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/darkgray.css 2008-02-01 12:13:22 UTC (rev 7259) @@ -1,10 +0,0 @@ -body#body{background-image: url( images/color/darkgray/H4x4-DARKGRAY.png ); } -body#body #xwikimaincontainer{ background-image :url( images/color/darkgray/bg-DARKGRAY.png ) ; } -#xwikimaincontainerinner { background-image: url( images/color/darkgray/bg-DARKGRAY.png );} -body#body.hideright #xwikimaincontainerinner { background-image: url( images/color/darkgray/bg-DARKGRAY3.png );} -body#body.adminbody#body #xwikimaincontainerinner { background-image: url( images/color/darkgray/bg-DARKGRAY3.png );} -body#body.hidelefthideright #xwikimaincontainerinner { background-image: url( images/color/darkgray/bg-DARKGRAY3.png );} -#globallinks{ background-image: url( images/color/darkgray/bgx-DARKGRAY.png );} -#rightPanels{ background-image: url( images/color/darkgray/bgx-DARKGRAY.png );} -#editPanels.panels{ background-image: url( images/color/darkgray/bgx-DARKGRAY.png );} - Deleted: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/gray.css === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/gray.css 2008-02-01 12:12:50 UTC (rev 7258) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/gray.css 2008-02-01 12:13:22 UTC (rev 7259) @@ -1,10 +0,0 @@ -body#body{background-image: url( images/color/gray/H4x4-GRAY.png ); } -body#body #xwikimaincontainer{ background-image :url( images/color/gray/bg-GRAY.png ) ; } -#xwikimaincontainerinner { background-image: url( images/color/gray/bg-GRAY.png );} -body#body.hideright #xwikimaincontainerinner { background-image: url( images/color/gray/bg-GRAY3.png );} -body#body.adminbody#body #xwikimaincontainerinner { background-image: url( images/color/gray/bg-GRAY3.png );} -body#body.hidelefthideright #xwikimaincontainerinner { background-image: url( images/color/gray/bg-GRAY3.png );} -#globallinks{ background-image: url( images/color/gray/bgx-GRAY.png );} -#rightPanels{ background-image: url( images/color/gray/bgx-GRAY.png );} -#editPanels.panels{ background-image: url( images/color/gray/bgx-GRAY.png );} - Deleted: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/green.css === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/green.css 2008-02-01 12:12:50 UTC (rev 7258) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/green.css 2008-02-01 12:13:22 UTC (rev 7259) @@ -1,10 +0,0 @@ -body#body{backgro
[xwiki-notifications] r7258 - xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util
Author: vmassol Date: 2008-02-01 13:12:50 +0100 (Fri, 01 Feb 2008) New Revision: 7258 Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java Log: XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text * No need to repeat the same chars Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java === --- xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java 2008-02-01 11:42:29 UTC (rev 7257) +++ xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java 2008-02-01 12:12:50 UTC (rev 7258) @@ -33,6 +33,6 @@ { assertEquals("Search", Util.convertToAlphaNumeric("Search")); assertEquals("Search", Util.convertToAlphaNumeric("S.earch")); -assertEquals("e", Util.convertToAlphaNumeric("�$%��#�^^^()")); +assertEquals("e", Util.convertToAlphaNumeric("�$%�#^()")); } } ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Commented: (XWIKI-1997) code-macro character trashing in WYSIWYG editor
[ http://jira.xwiki.org/jira/browse/XWIKI-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22212 ] Christoph Dittmann commented on XWIKI-1997: --- Hi all, we got a pretty similary behavoir here in our new XWiki. During the switch between WYSIWYG editor and xwiki editor the content of code macros gets scrambled. For example: {code} SELECT * FROM test_table; {code} gets messed up by changing the view into: {code} SELECT * FROM test_table; {code} Thanks in advance for your help. Christoph > code-macro character trashing in WYSIWYG editor > --- > > Key: XWIKI-1997 > URL: http://jira.xwiki.org/jira/browse/XWIKI-1997 > Project: XWiki Platform > Issue Type: Bug > Components: Editor - WYSIWYG >Affects Versions: 1.1.2 >Reporter: Thomas Pasch > > Hi all, > I have a problem with the WYSIWYG-editor of 1.1.2 and the code-macro: > If I use WYSIWYG-editor and add code-macro with e.g. a *-character in > it, the WYSIWYG-editor displays it correctly. But if I save the page, > the *-caracter is transformed and the result does not look very nice :-( > A similar behavior is the following: > If I enter in the WIKI-mode: > {code:type=java} > ** > {code} > And switch to WYSIWYG and back, the code looks like: > {code:type=java} > ** > {code} > Displaying this page leads to the same result as discriped above. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Closed: (XWATCH-74) Allow to filter by date range
[ http://jira.xwiki.org/jira/browse/XWATCH-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anca Paula Luca closed XWATCH-74. - Resolution: Fixed done in 7256: Added start date and end date in the Filter and added date picker widgets for the user to select the dates. Updated WatchCode.PressReview and WatchCode.TagCloud to do their filtering according to the new criteria. > Allow to filter by date range > - > > Key: XWATCH-74 > URL: http://jira.xwiki.org/jira/browse/XWATCH-74 > Project: XWiki Watch > Issue Type: Improvement > Components: Filters >Affects Versions: 1.0M1 >Reporter: Ludovic Dubost > Assigned To: Anca Paula Luca > Fix For: 1.0M3 > > > We should be able to filter by date range, especially from a specific date > (set by default to 'n' days before at a specific time - n and time set in > config) to now but also from date1 to date2 > This is important for press review and should be already partially > implemented in the press review script but not in the UI -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Updated: (XWIKI-2053) Provide CSS hooks to allow to style Panels selectively
[ http://jira.xwiki.org/jira/browse/XWIKI-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol updated XWIKI-2053: -- Description: Right now panels generate this: {noformat} {noformat} This doesn't allow to style them selectively. For example in the Toucan skin we want to style the Search panels so that it has rounded corners and some border image. I'm thus proposing that the #panel* macros generate instead the following {noformat} {noformat} where "(panel name here)" is the panel name (the short name not the full name) where accented chars have been transformed to their alpha equivalent and non alpha numeric chars have been stripped. Rationale: * This provides the necessary hook * It's compatible with allowed CSS characters (using the doc name would not be compatible since it can contain accents, dots, hash, etc) * The name is the same on all instances since it's computed based on the document's name. Of course if the document's name changes it'll be different but then we can consider it's a different panel. was: Right now panels generate this: {noformat} {noformat} This doesn't allow to style them selectively. For example in the Toucan skin we want to style the Search panels so that it has rounded corners and some border image. I'm thus proposing that the #panel* macros generate instead the following {noformat} {noformat} where "(id here)" is ($doc.getFullName().hashCode()). Rationale: * This provides the necessary hook * It's compatible with allowed CSS characters (using the doc name would not be compatible since it can contain accents, dots, hash, etc) * The id is the same on all instances since it's computed based on the document's name. Of course if the document's name changes it'll be different but then we can consider it's a different panel. Note that we cannot use the doc's id since that id is dependent on the language and we need the same styling for all languages. Any better idea? > Provide CSS hooks to allow to style Panels selectively > -- > > Key: XWIKI-2053 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2053 > Project: XWiki Platform > Issue Type: Improvement > Components: Macros & Filters >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > Right now panels generate this: > {noformat} > > {noformat} > This doesn't allow to style them selectively. For example in the Toucan skin > we want to style the Search panels so that it has rounded corners and some > border image. > I'm thus proposing that the #panel* macros generate instead the following > {noformat} > > {noformat} > where "(panel name here)" is the panel name (the short name not the full > name) where accented chars have been transformed to their alpha equivalent > and non alpha numeric chars have been stripped. > Rationale: > * This provides the necessary hook > * It's compatible with allowed CSS characters (using the doc name would not > be compatible since it can contain accents, dots, hash, etc) > * The name is the same on all instances since it's computed based on the > document's name. > Of course if the document's name changes it'll be different but then we can > consider it's a different panel. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] Build XWiki Platform Core::Trunk #484 failed (tests failed: 1 (1 new), passed: 130)
Build XWiki Platform Core::Trunk #484 failed (tests failed: 1 (1 new), passed: 130) Agent: Default agent Build results: http://teamcity.xwiki.org/viewLog.html?buildId=8277&buildTypeId=bt3 Newly failed tests (1 test) == com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric = junit.framework.ComparisonFailure: expected:<[e]> but was:<[]> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at com.xpn.xwiki.util.UtilTest.testConvertToAlphaNumeric(UtilTest.java:36) Changes included (1 change) Change 7257 by vmassol (3 files): XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text see more information about changed files: http://teamcity.xwiki.org/viewLog.html?tab=buildChangesDiv&buildId=8277&buildTypeId=bt3 Configure email notifications: http://teamcity.xwiki.org/profile.html?init=1#notifications ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Closed: (XWIKI-2054) Add Utility API to remove all non alpha numeric chartacters from some text
[ http://jira.xwiki.org/jira/browse/XWIKI-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol closed XWIKI-2054. - Resolution: Fixed Done > Add Utility API to remove all non alpha numeric chartacters from some text > -- > > Key: XWIKI-2054 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2054 > Project: XWiki Platform > Issue Type: Task > Components: Core >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > It should also try to convert accented chars into their alpha numeric > equivalent. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7257 - in xwiki-platform/core/trunk/xwiki-core/src: main/java/com/xpn/xwiki/util test/java/com/xpn/xwiki test/java/com/xpn/xwiki/util
Author: vmassol Date: 2008-02-01 12:42:29 +0100 (Fri, 01 Feb 2008) New Revision: 7257 Added: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/ xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/util/Util.java Log: XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/util/Util.java === --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/util/Util.java 2008-02-01 11:09:04 UTC (rev 7256) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/util/Util.java 2008-02-01 11:42:29 UTC (rev 7257) @@ -51,7 +51,6 @@ import org.apache.oro.text.regex.Pattern; import org.apache.oro.text.regex.PatternMatcherInput; import org.apache.oro.text.regex.Perl5Matcher; -import org.apache.tools.ant.filters.StringInputStream; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.io.SAXReader; @@ -697,4 +696,28 @@ } return url; } + +/** + * Removes all non alpha numerical characters from the passed text. First tries to convert + * accented chars to their alpha numeric representation. + * + * @param text the text to convert + * @return the alpha numeric equivalent + */ +public static String convertToAlphaNumeric(String text) +{ +// Start by removing accents +String textNoAccents = Util.noaccents(text); + +// Now remove all non alphanumeric chars +StringBuffer result = new StringBuffer(textNoAccents.length()); +char[] testChars = textNoAccents.toCharArray(); +for (int i = 0; i < testChars.length; i++) { +if (Character.isLetterOrDigit(testChars[i])) { +result.append(testChars[i]); +} +} +return result.toString(); +} + } Added: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java === --- xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java (rev 0) +++ xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java 2008-02-01 11:42:29 UTC (rev 7257) @@ -0,0 +1,38 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + * + */ +package com.xpn.xwiki.util; + +import junit.framework.TestCase; + +/** + * Unit tests for [EMAIL PROTECTED] com.xpn.xwiki.util.Util}. + * + * @version $Id: $ + */ +public class UtilTest extends TestCase +{ +public void testConvertToAlphaNumeric() +{ +assertEquals("Search", Util.convertToAlphaNumeric("Search")); +assertEquals("Search", Util.convertToAlphaNumeric("S.earch")); +assertEquals("e", Util.convertToAlphaNumeric("�$%��#�^^^()")); +} +} ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Updated: (XWIKI-2054) Add Utility API to remove all non alpha numeric chartacters from some text
[ http://jira.xwiki.org/jira/browse/XWIKI-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol updated XWIKI-2054: -- Fix Version/s: 1.3 M2 Assignee: Vincent Massol > Add Utility API to remove all non alpha numeric chartacters from some text > -- > > Key: XWIKI-2054 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2054 > Project: XWiki Platform > Issue Type: Task > Components: Core >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > It should also try to convert accented chars into their alpha numeric > equivalent. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Created: (XWIKI-2054) Add Utility API to remove all non alpha numeric chartacters from some text
Add Utility API to remove all non alpha numeric chartacters from some text -- Key: XWIKI-2054 URL: http://jira.xwiki.org/jira/browse/XWIKI-2054 Project: XWiki Platform Issue Type: Task Components: Core Affects Versions: 1.3 M1 Reporter: Vincent Massol Priority: Minor Fix For: 1.3 M2 It should also try to convert accented chars into their alpha numeric equivalent. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Commented: (XE-188) LDAP user isn't added to XWikiAllGroup
[ http://jira.xwiki.org/jira/browse/XE-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22209 ] Ricardo Rodríguez commented on XE-188: -- I've added a link in the related issues pointing to XWIKI-1079. As far as i can understand, you are speaking about the "default" LDAP support provided by XWiki out of the box. There is this XWIKI-1079 issue proposing an alternative class. What I don't understand is if LDAPAuthenticater.class provides all the features included in com.xpn.xwiki.plugin.ldap.LDAPPlugin and it is proposing some new ones or if it depends on the default plugin. Sorry if this doubt could sound stupid. If it includes all of them, could this code substitute the "default" plugin? It seems better to me to work only on one class than keep working in bugs/improvements of the default class having an alternative that seems to go in the right direction. Thanks! > LDAP user isn't added to XWikiAllGroup > -- > > Key: XE-188 > URL: http://jira.xwiki.org/jira/browse/XE-188 > Project: XWiki Enterprise > Issue Type: Bug >Affects Versions: 1.3 M1 >Reporter: Mike Agafonov > > I can log in as a LDAP user, but have no rights at all, even to view any > page. This is because an LDAP user is created automatically, but not added to > any of the groups (in version 1.1.2 a user was automatically added to > XWikiAllGroup). > So there is no use of LDAP, until administrator gives rights to particular > user. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7256 - in xwiki-products/xwiki-watch/trunk: web/src/main/java/com/xpn/xwiki/watch/client web/src/main/java/com/xpn/xwiki/watch/client/data web/src/main/java/com/xpn/xwiki/watch/
Author: lucaa Date: 2008-02-01 12:09:04 +0100 (Fri, 01 Feb 2008) New Revision: 7256 Added: xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/ui/menu/DatePickerWidget.java Modified: xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Constants.java xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/FilterStatus.java xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Watch.java xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/ui/menu/FilterBarWidget.java xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/public/Watch.css xwiki-products/xwiki-watch/trunk/wiki/pom.xml xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/PressReview xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/TagCloud xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations.fr Log: XWATCH-74: added date filtering and calendar widgets for selecting the dates. Modified: xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Constants.java === --- xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Constants.java 2008-02-01 10:39:27 UTC (rev 7255) +++ xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/Constants.java 2008-02-01 11:09:04 UTC (rev 7256) @@ -84,4 +84,6 @@ public static final String PROPERTY_KEYWORD_GROUP = "group"; public static final String CLASS_AGGREGATOR_GROUP = "XWiki.AggregatorGroupClass"; public static final String PROPERTY_GROUP_NAME = "name"; + +public static final String DEFAULT_DATE_FORMAT = "-MM-dd HH:mm"; } Modified: xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/FilterStatus.java === --- xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/FilterStatus.java 2008-02-01 10:39:27 UTC (rev 7255) +++ xwiki-products/xwiki-watch/trunk/web/src/main/java/com/xpn/xwiki/watch/client/FilterStatus.java 2008-02-01 11:09:04 UTC (rev 7256) @@ -1,10 +1,13 @@ package com.xpn.xwiki.watch.client; +import java.util.Date; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; +import org.gwtwidgets.client.util.SimpleDateFormat; + import com.google.gwt.http.client.URL; public class FilterStatus { @@ -14,9 +17,10 @@ private int read; private List tags = new ArrayList(); private String keyword; -private String date; private Feed feed; private String group; +private Date dateStart; +private Date dateEnd; private int start; private int total; private String query; @@ -36,9 +40,10 @@ read = 0; tags = new ArrayList(); keyword = null; -date = null; feed = null; group = null; +dateStart = null; +dateEnd = null; start = 0; } @@ -98,12 +103,20 @@ status += " - "; status += watch.getTranslation("readoff"); } -if (date!=null) { -if (!status.equals("")) +if (dateStart != null) { +if (!status.equals("")) { status += " - "; -status += watch.getTranslation("limitfrom"); -status += date; +} +status += watch.getTranslation("filter.dates.startDate"); +status += dateStart; } +if (dateEnd != null) { +if (!status.equals("")) { +status += " - "; +} +status += watch.getTranslation("filter.dates.endDate"); +status += dateEnd; +} return status; } @@ -163,14 +176,6 @@ this.keyword = keyword; } -public String getDate() { -return date; -} - -public void setDate(String date) { -this.date = date; -} - public Feed getFeed() { return feed; } @@ -208,8 +213,17 @@ map.put("tags", getTags()); if (getKeyword() !=null) map.put("keyword",getKeyword()); -if (getDate() !=null) -map.put("date",getDate()); +if (getDateStart() != null) { +//format date first +SimpleDateFormat format = new SimpleDateFormat(Constants.DEFAULT_DATE_FORMAT); +String fDate = format.format(getDateStart()); +map.put("dateStart", fDate); +} +if (getDateEnd() != null) { +SimpleDateFormat format = new SimpleD
[xwiki-notifications] [Issue] Created: (XWIKI-2053) Provide CSS hooks to allow to style Panels selectively
Provide CSS hooks to allow to style Panels selectively -- Key: XWIKI-2053 URL: http://jira.xwiki.org/jira/browse/XWIKI-2053 Project: XWiki Platform Issue Type: Improvement Components: Macros & Filters Affects Versions: 1.3 M1 Reporter: Vincent Massol Priority: Minor Fix For: 1.3 M2 Right now panels generate this: {noformat} {noformat} This doesn't allow to style them selectively. For example in the Toucan skin we want to style the Search panels so that it has rounded corners and some border image. I'm thus proposing that the #panel* macros generate instead the following {noformat} {noformat} where "(id here)" is ($doc.getFullName().hashCode()). Rationale: * This provides the necessary hook * It's compatible with allowed CSS characters (using the doc name would not be compatible since it can contain accents, dots, hash, etc) * The id is the same on all instances since it's computed based on the document's name. Of course if the document's name changes it'll be different but then we can consider it's a different panel. Note that we cannot use the doc's id since that id is dependent on the language and we need the same styling for all languages. Any better idea? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Updated: (XWIKI-2053) Provide CSS hooks to allow to style Panels selectively
[ http://jira.xwiki.org/jira/browse/XWIKI-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol updated XWIKI-2053: -- Fix Version/s: 1.3 M2 Assignee: Vincent Massol > Provide CSS hooks to allow to style Panels selectively > -- > > Key: XWIKI-2053 > URL: http://jira.xwiki.org/jira/browse/XWIKI-2053 > Project: XWiki Platform > Issue Type: Improvement > Components: Macros & Filters >Affects Versions: 1.3 M1 >Reporter: Vincent Massol > Assigned To: Vincent Massol >Priority: Minor > Fix For: 1.3 M2 > > > Right now panels generate this: > {noformat} > > {noformat} > This doesn't allow to style them selectively. For example in the Toucan skin > we want to style the Search panels so that it has rounded corners and some > border image. > I'm thus proposing that the #panel* macros generate instead the following > {noformat} > > {noformat} > where "(id here)" is ($doc.getFullName().hashCode()). > Rationale: > * This provides the necessary hook > * It's compatible with allowed CSS characters (using the doc name would not > be compatible since it can contain accents, dots, hash, etc) > * The id is the same on all instances since it's computed based on the > document's name. > Of course if the document's name changes it'll be different but then we can > consider it's a different panel. > Note that we cannot use the doc's id since that id is dependent on the > language and we need the same styling for all languages. > Any better idea? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Commented: (XSTOUCAN-1) Create Toucan skin from xwiki.org
[ http://jira.xwiki.org/jira/browse/XSTOUCAN-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22208 ] Vincent Massol commented on XSTOUCAN-1: --- Start of documentation here: http://code.xwiki.org/xwiki/bin/view/Skins/ToucanSkin > Create Toucan skin from xwiki.org > - > > Key: XSTOUCAN-1 > URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-1 > Project: XWiki Toucan Skin > Issue Type: Task >Reporter: Vincent Massol > Assigned To: Vincent Massol > Fix For: 1.0 > > > Move the skin on xwiki.org (as of 31/01/2008) to SVN and name it Toucan. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] [Issue] Commented: (XSTOUCAN-1) Create Toucan skin from xwiki.org
[ http://jira.xwiki.org/jira/browse/XSTOUCAN-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22207 ] Vincent Massol commented on XSTOUCAN-1: --- Colors can now be changed easily by specifying one of these instead of style.css in the Admin (skin tab): style-red.css, style-gray.css, style-blue.css, style-green.css,style-orange.css,style-darkgray.css, style-gray.css or style-kaki.css This allows having different colors per space. > Create Toucan skin from xwiki.org > - > > Key: XSTOUCAN-1 > URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-1 > Project: XWiki Toucan Skin > Issue Type: Task >Reporter: Vincent Massol > Assigned To: Vincent Massol > Fix For: 1.0 > > > Move the skin on xwiki.org (as of 31/01/2008) to SVN and name it Toucan. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7254 - in xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager: api impl
Author: jvelociter Date: 2008-02-01 09:49:17 +0100 (Fri, 01 Feb 2008) New Revision: 7254 Modified: xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/Space.java xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java Log: Started improving spacemanager plugin documentation. Applied XWiki style. Modified: xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/Space.java === --- xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/Space.java 2008-02-01 08:46:26 UTC (rev 7253) +++ xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/api/Space.java 2008-02-01 08:49:17 UTC (rev 7254) @@ -1,185 +1,186 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ package org.xwiki.plugin.spacemanager.api; -import com.xpn.xwiki.XWikiContext; +import java.util.Date; +import java.util.List; + import com.xpn.xwiki.XWikiException; -import java.util.List; -import java.util.Date; - /** - * Created by IntelliJ IDEA. - * User: ludovic - * Date: 28 nov. 2007 - * Time: 12:17:46 - * - * - * WikiSpaceName.WebPreferences - * Object XWiki.XWikiPreferences - * title - * description - * homeShortcutUrl - * creator (creator of the WebPreference document - * status + * Defines a Wiki Space interface + * + * @version $Id: $ */ -public interface Space { - - /** -* Determines if the space already exists or is newly created -* @return -*/ - public boolean isNew(); +public interface Space +{ /** - * Determines if the space has been marked as deleted - * @return + * @return true if the space already exists, false otherwise */ +public boolean isNew(); + +/** + * @return true if the space has been marked as deleted, false otherwise + */ public boolean isDeleted(); - /** - * Get the technical name - * @return space name + * @return the space wikiname */ public String getSpaceName(); /** -* Gets the type of the space -* @return -*/ - public String getType(); - - /** -* Sets the type of the space -* @param type -* @return -*/ - public void setType( String type ); + * @return the type of the space + */ +public String getType(); /** -* Gets the policy of the space -* @return -*/ - public String getPolicy(); + * Sets the type of the space + * + * @param type the new type + */ +public void setType(String type); - /** -* Sets the policy of the space -* @param policy -* @return -*/ - public void setPolicy( String policy ); +/** + * @return the policy of the space + */ +public String getPolicy(); /** -* Gets the name of the creator of this space -* @return -*/ + * Sets the policy of the space + * + * @param policy the new policy + */ +public void setPolicy(String policy); + +/** + * @return the name of the creator of this space + */ public String getCreator(); /** - * Set the name of the creator of this space - * This should only be used to overide the creator - @return + * Set the name of the creator of this space This should only be used to overide the creator */ public void setCreator(String creator); - /** - * Gets the title of the space - * @return + * @return the nice title of the space */ public String getDisplayTitle(); /** * Set the display title of the space - * This will be saved on the call to "save" - * @param title + * + * @param title the new title for the space */ public void setDisplayTitle(String title); /** - * Get the description of the
[xwiki-notifications] r7253 - in xwiki-platform/skins/trunk/toucan/src/main/resources/toucan: . css css/colors images images/colors images/colors/orange
Author: vmassol Date: 2008-02-01 09:46:26 +0100 (Fri, 01 Feb 2008) New Revision: 7253 Added: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/blue.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/darkgray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/gray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/green.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/kaki.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/orange.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/purple.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/red.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/orange/ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/orange/H4x4-ORANGE.png xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/orange/bg-ORANGE.png xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/orange/bg-ORANGE3.png xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/orange/bgx-ORANGE.png xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-blue.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-darkgray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-gray.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-green.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-kaki.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-orange.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-purple.css xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style-red.css Removed: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/images/colors/yellow/ Modified: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/style.css Log: XSTOUCAN-1: Create Toucan skin from xwiki.org * Added top level style CSS for each color to make it easy for users to select a color * Renamed Yellow into Orange * Moved color CSS to subdirs. Copied: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/blue.css (from rev 7248, xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/blue.css) === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/blue.css (rev 0) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/blue.css 2008-02-01 08:46:26 UTC (rev 7253) @@ -0,0 +1,10 @@ +body#body{background-image: url( ../../images/colors/blue/H4x4-BLUE.png ); } +body#body #xwikimaincontainer{ background-image :url( ../../images/colors/blue/bg-BLUE.png ) ; } +#xwikimaincontainerinner { background-image: url( ../../images/colors/blue/bg-BLUE.png );} +body#body.hideright #xwikimaincontainerinner { background-image: url( ../../images/colors/blue/bg-BLUE3.png );} +body#body.adminbody#body #xwikimaincontainerinner { background-image: url( ../../images/colors/blue/bg-BLUE3.png );} +body#body.hidelefthideright #xwikimaincontainerinner { background-image: url( ../../images/colors/blue/bg-BLUE3.png );} +#globallinks{ background-image: url( ../../images/colors/blue/bgx-BLUE.png );} +#rightPanels{ background-image: url( ../../images/colors/blue/bgx-BLUE.png );} +#editPanels.panels{ background-image: url( ../../images/colors/blue/bgx-BLUE.png );} + Copied: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/darkgray.css (from rev 7248, xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/darkgray.css) === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/darkgray.css (rev 0) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/css/colors/darkgray.css 2008-02-01 08:46:26 UTC (rev 7253) @@ -0,0 +1,10 @@ +body#body{background-image: url( ../../images/colors/darkgray/H4x4-DARKGRAY.png ); } +body#body #xwikimaincontainer{ background-image :url( ../../images/colors/darkgray/bg-DARKGRAY.png ) ; } +#xwikimaincontainerinner { background-image: url( ../../images/colors/darkgray/bg-DARKGRAY.png );} +body#body.hideright #xwikimaincontainerinner { background-image: url( ../../images/colors/darkgray/bg-DARKGRAY3.png );} +body#body.adminbody#body #xwikimaincontainerinner { background-image: url( ../../images/colors/darkgray/bg-DARKGRAY3.png );} +body#body.hidelefthideright #xwikimainco
[xwiki-notifications] r7252 - xwiki-platform/skins/trunk/toucan/src/main/resources/toucan
Author: vmassol Date: 2008-02-01 09:25:41 +0100 (Fri, 01 Feb 2008) New Revision: 7252 Added: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/ie.css Log: XSTOUCAN-1: Create Toucan skin from xwiki.org * Added missing ie.css file (Not tested yet) Added: xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/ie.css === --- xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/ie.css (rev 0) +++ xwiki-platform/skins/trunk/toucan/src/main/resources/toucan/ie.css 2008-02-01 08:25:41 UTC (rev 7252) @@ -0,0 +1,48 @@ +html * {zoom:1; } +a {position:relative; z-index:1;} + +#headerspace {height: 24px; oveflow:hidden;} +#companylogo a img {position: relative; float: left;} +#companylogo {width: 740px;} +#rightPanels, #editPanels { margin-top: -27px;} +#globalsearch{margin-bottom: 1em} + +h5.xwikipaneltitle, +.collapsed h5.xwikipaneltitle, +.xwikipanelcontents {background-image: url(images/panel-v.gif);} +#globalsearch form div {background-image:url(images/search-bg.gif);} + + +#xwikihelpsyntax {background-image: url(images/panel-e.gif);} +#editPanels .expanded h5.xwikipaneltitle {background-image: url(images/panel-e.gif);} +#editPanels .xwikipanelcontents {background-image: url(images/panel-e.gif);} +#editPanels .editmodes .xwikipanelcontents ul li.active {background-image: url();} +#editPanels .editmodes h5, #editPanels .editmodes .xwikipanelcontents {background-image: url(images/panel-m.gif);} +#xwikicontent{overflow-y: hidden;} + + +#headerglobal .minwithd {display: none;} +.minwidth, .minwidthb, .minwidthc{} +#contentcolumn .minwidthb{ display:block; width:740px; margin-right:220px;} +#headerspace .minwidth{ display:block; width:710px;}/* 740 - 30 padding */ +.minwidthc{} + +body #show-dialog-btn { +right:1px; +top:1px; +} + +.R-box-one { + + margin: 0 0 0 0.5%; +} +.R-box { + + margin: 0 0 0 2%; +} + + +.R-body { + height:165px; +} + ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications
[xwiki-notifications] r7251 - xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl
Author: jvelociter Date: 2008-02-01 09:20:59 +0100 (Fri, 01 Feb 2008) New Revision: 7251 Modified: xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java Log: Changed visibility from methods isMemberOfGroup and addUserToGroup from private to protected so that plugin that extends the spacemanager can beneficiate from those. Modified: xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java === --- xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java 2008-01-31 22:53:18 UTC (rev 7250) +++ xwiki-products/curriki/trunk/plugins/spacemanager/src/main/java/org/xwiki/plugin/spacemanager/impl/SpaceManagerImpl.java 2008-02-01 08:20:59 UTC (rev 7251) @@ -252,7 +252,6 @@ return spaceName + ".WebPreferences"; } - /** * Get the list of sub spaces to protect * @param context @@ -835,7 +834,7 @@ /** * Gets a list of spaces names in which a specific user has a specific role * @param userName The username of the targeted user - * @param role The role which the user must have + * @param role The role which the user must have (null for just member) * @param context The XWiki Context * @return list of Strings (space names) * @throws SpaceManagerException @@ -1040,7 +1039,7 @@ } -private boolean isMemberOfGroup(String username, String groupname, XWikiContext context) throws XWikiException { +protected boolean isMemberOfGroup(String username, String groupname, XWikiContext context) throws XWikiException { Collection coll = context.getWiki().getGroupService(context).getAllGroupsNamesForMember(username, 0, 0, context); Iterator it = coll.iterator(); while (it.hasNext()) { @@ -1057,7 +1056,7 @@ * @param context * @throws XWikiException */ -private void addUserToGroup(String username, String groupName, XWikiContext context) throws XWikiException +protected void addUserToGroup(String username, String groupName, XWikiContext context) throws XWikiException { // don't add if he is already a member if (isMemberOfGroup(username, groupName, context)) ___ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications