Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet

2010-02-02 Thread Dilipkumar Jadhav
Thanks for pointing me to the JIRA issue Marius...
I hope there is consensus among devs to create a new action for docextra
views.



Message: 5
Date: Tue, 02 Feb 2010 09:19:04 +0200
From: Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
Snippet
To: XWiki Users users@xwiki.org
Message-ID: 4b67d1e8.7030...@xwiki.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dilipkumar Jadhav wrote:
 Hello folks,
 
 I was trying to get the visit count for a single Page through the
following
 Groovy Code in Syntax 2.0:
 
  
 
 {{groovy}}
 
 println Total No. Of Visits:
 ${doc.getCurrentMonthPageStats(view).getVisits()};
 
 {{/groovy}}
 
  
 
 It looks like it is returning some data for the Page from the start of the
 month. However, the concern is every time I view the Page, the count
 increases by +2 rather than +1.
 
 The same is saved in the database in xwikistatsdoc as well. 
 
 Is there a logic that probably I missed out on. My understanding was that
 the counter should have increased by +1.

I think this is a known issue, see 
http://jira.xwiki.org/jira/browse/XWIKI-4590 .

Hope this helps,
Marius

 
 Also, is the code snippet that I wrote correct to get this kind of
 data...Any help would as always be greatly appreciated.
 
 Thank you.
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


--

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


End of users Digest, Vol 31, Issue 3


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


Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet

2010-02-02 Thread Sergiu Dumitriu
On 02/02/2010 12:20 PM, Dilipkumar Jadhav wrote:
 Thanks for pointing me to the JIRA issue Marius...
 I hope there is consensus among devs to create a new action for docextra
 views.


Not exactly. Personally I prefer not to add any more actions for the 
moment, since we're moving towards a new action component system instead 
of the current Struts-based one.

 Message: 5
 Date: Tue, 02 Feb 2010 09:19:04 +0200
 From: Marius Dumitru Floreamariusdumitru.flo...@xwiki.com
 Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
   Snippet
 To: XWiki Usersusers@xwiki.org
 Message-ID:4b67d1e8.7030...@xwiki.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Dilipkumar Jadhav wrote:
 Hello folks,

 I was trying to get the visit count for a single Page through the
 following
 Groovy Code in Syntax 2.0:



 {{groovy}}

 println Total No. Of Visits:
 ${doc.getCurrentMonthPageStats(view).getVisits()};

 {{/groovy}}



 It looks like it is returning some data for the Page from the start of the
 month. However, the concern is every time I view the Page, the count
 increases by +2 rather than +1.

 The same is saved in the database in xwikistatsdoc as well.

 Is there a logic that probably I missed out on. My understanding was that
 the counter should have increased by +1.

 I think this is a known issue, see
 http://jira.xwiki.org/jira/browse/XWIKI-4590 .

 Hope this helps,
 Marius


 Also, is the code snippet that I wrote correct to get this kind of
 data...Any help would as always be greatly appreciated.


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


[xwiki-users] Jump to Page not displayed on pages with xwiki/2.0

2010-02-02 Thread Reto Hotz
Hi,

After migrating our XWiki from 1.8.3 -- 2.1.1 we notices that the Jump 
to page-feature is only working with pages made with the old xwiki/1.0 
syntax.
When I create a new page with syntax to 2.0, the Jump to Page is not 
displayed anymore in the Quick Links panel.
As soon as I change the page syntax back to 1.0, the Jump to page is 
displayed again.


It should work also with xwiki/2.0 syntax, shouldn't it?

I don't know if this is from importance but we use a fully customized 
skin based on toucan. So maybe we have missed something in the migration.

Any help or hint is very much appreciated.

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


Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet

2010-02-02 Thread Vincent Massol

On Feb 2, 2010, at 1:26 PM, Sergiu Dumitriu wrote:

 On 02/02/2010 12:20 PM, Dilipkumar Jadhav wrote:
 Thanks for pointing me to the JIRA issue Marius...
 I hope there is consensus among devs to create a new action for docextra
 views.
 
 
 Not exactly. Personally I prefer not to add any more actions for the 
 moment, since we're moving towards a new action component system instead 
 of the current Struts-based one.

We shouldn't wait for the new action module to fix this since it's an important 
bug (and a regression since it was working a few versions ago).

Thanks
-Vincent

 
 Message: 5
 Date: Tue, 02 Feb 2010 09:19:04 +0200
 From: Marius Dumitru Floreamariusdumitru.flo...@xwiki.com
 Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy
  Snippet
 To: XWiki Usersusers@xwiki.org
 Message-ID:4b67d1e8.7030...@xwiki.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 Dilipkumar Jadhav wrote:
 Hello folks,
 
 I was trying to get the visit count for a single Page through the
 following
 Groovy Code in Syntax 2.0:
 
 
 
 {{groovy}}
 
 println Total No. Of Visits:
 ${doc.getCurrentMonthPageStats(view).getVisits()};
 
 {{/groovy}}
 
 
 
 It looks like it is returning some data for the Page from the start of the
 month. However, the concern is every time I view the Page, the count
 increases by +2 rather than +1.
 
 The same is saved in the database in xwikistatsdoc as well.
 
 Is there a logic that probably I missed out on. My understanding was that
 the counter should have increased by +1.
 
 I think this is a known issue, see
 http://jira.xwiki.org/jira/browse/XWIKI-4590 .
 
 Hope this helps,
 Marius
 
 
 Also, is the code snippet that I wrote correct to get this kind of
 data...Any help would as always be greatly appreciated.
 

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


Re: [xwiki-users] Jump to Page not displayed on pages with xwiki/2.0

2010-02-02 Thread Vincent Massol
Hi Reto,

On Feb 2, 2010, at 3:45 PM, Reto Hotz wrote:

 Hi,
 
 After migrating our XWiki from 1.8.3 -- 2.1.1 we notices that the Jump 
 to page-feature is only working with pages made with the old xwiki/1.0 
 syntax.
 When I create a new page with syntax to 2.0, the Jump to Page is not 
 displayed anymore in the Quick Links panel.
 As soon as I change the page syntax back to 1.0, the Jump to page is 
 displayed again.
 
 
 It should work also with xwiki/2.0 syntax, shouldn't it?

yes

 
 I don't know if this is from importance but we use a fully customized 
 skin based on toucan. So maybe we have missed something in the migration.
 
 Any help or hint is very much appreciated.

Working for me on XE 2.2. Haven't tried on 2.1.1.

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


[xwiki-users] Content Restriction Question

2010-02-02 Thread Rick Hadsall
All,

Is there a way to hide content by group within XWiki?  For example, if I 
wanted a panel to show a link that only group foo has access to, how 
could I make it so only users with group foo see the link in the panel 
(because only group foo has access to the page/space that the link 
ponits to)?

Rick

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


Re: [xwiki-users] Content Restriction Question

2010-02-02 Thread Sergiu Dumitriu
On 02/02/2010 08:51 PM, Rick Hadsall wrote:
 All,

 Is there a way to hide content by group within XWiki?  For example, if I
 wanted a panel to show a link that only group foo has access to, how
 could I make it so only users with group foo see the link in the panel
 (because only group foo has access to the page/space that the link
 ponits to)?

 Rick

This has been asked so many times. See

http://www.xwiki.org/xwiki/bin/FAQ/HowCanIMakeContentAppearOnlyForASpecificGroup

and

http://www.xwiki.org/xwiki/bin/FAQ/HowCanIMakeContentAppearOnlyForASpecificUser

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


Re: [xwiki-users] PDF with UTF characters

2010-02-02 Thread Sergiu Dumitriu
On 02/01/2010 09:47 PM, Valdis Vītoliņš wrote:
 I'm investigating issue http://jira.xwiki.org/jira/browse/XWIKI-4724
 Now I can generate right PDF using separate FOP with additional
 configuration files and invocation parameters.
 Though I don't know, how to invoke it in such way from Xwiki.

 Do you have any suggestions/ideas?

I gave a workaround in a comment on that issue, in case somebody else is 
interested in this problem and wants an answer.

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


Re: [xwiki-users] Programmatically delete documents without putting them in recycle bin

2010-02-02 Thread Sergiu Dumitriu
On 02/01/2010 03:01 PM, Jeremie BOUSQUET wrote:
 Hi,

 I'd like to know if there is a way to delete a document (in velocity or
 groovy) without putting in in recycle bin ? (equivalent of shift-delete).

 I have to regularly delete (for tests) documents with heavy attachments, and
 it's quite long ... And I don't care about retrieving them later.

You can do it if you have programming rights, with:

$xwiki.getXWiki().deleteDocument($doc.getDocument(), false, 
$context.context)

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


[xwiki-users] Error connecting to Xwiki

2010-02-02 Thread Peter . McLarty

Hi All

I am trying to set up XE to use an Oracle 10 XE database using a  
Tomcat  but I seem to be missing some important point I downloaded the  
war file to set it up followed the instructions in the setup pages,  
have had issues with getting it to parse files and have now got to  
here where I seem to be connecting to my database but not getting it  
to function

I am an Oracle DBA and do work with Oracle Middleware, so am familiar  
with much of the concepts, not so much with Hibernate and Tomcat
This is the error I am seeing

javax.servlet.ServletException: Error number 3 in 0: Could not  
initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class  
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager  
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not execute query

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)

com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)

com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)

com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter


Server details are
Centos 5.4 32bit
Apache Tomcat/5.5.23
Oracle 10 database
Xe  xwiki-core-2.1.1.jar
OpenJDK  Runtime Environment (build 1.6.0-b09)

I have a IBM Java 1.6 jre installed that I could use, should I use  
that instead or will this work with OpenJDK

Any help appreciated



Hibernate.cfg.xml

?xml version='1.0' encoding='utf-8'?
!DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate  
Configuration DTD//EN
   http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
hibernate-configuration
   session-factory

 !-- Please refer to the installation guide on
   
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for  
configuring your
  database. You'll need to do 2 things:
  1) Copy your database driver JAR in WEB-INF/lib or in some  
shared lib directory
  2) Uncomment the properties below for your specific DB (and  
comment the default
 database configuration if it doesn't match your DB)
 --

 !-- Generic parameters common to all Databases --

 property name=show_sqlfalse/property
 property name=use_outer_jointrue/property

 property name=dbcp.defaultAutoCommitfalse/property
 property name=dbcp.maxActive50/property
 property name=dbcp.maxIdle5/property
 property name=dbcp.maxWait3/property
 property name=dbcp.whenExhaustedAction1/property
 property name=dbcp.ps.whenExhaustedAction1/property
 property name=dbcp.ps.maxActive20/property
 property name=dbcp.ps.maxWait12/property
 property name=dbcp.ps.maxIdle20/property

 !-- Oracle configuration.
  Uncomment if you want to use Oracle and comment out other  
database configurations.
  Note: the 2 properties named  
hibernate.connection.SetBigStringTryClob and
  hibernate.jdbc.batch_size. They are required to tell  
Oracle to allow CLOBs larger than
  32K. --
 property  
name=connection.urljdbc:oracle:thin:@websrv01:1521:XE/property
 property name=connection.usernameSomeUser/property
 property name=connection.passwordSomePassword/property
 property  
name=connection.driver_classoracle.jdbc.driver.OracleDriver/property
 property name=dialectorg.hibernate.dialect.Oracle10gDialect/property
 property  
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
 property name=connection.pool_size2/property
 property name=statement_cache.size2/property
 property name=hibernate.connection.SetBigStringTryClobtrue/property
 property name=hibernate.jdbc.batch_size0/property
 mapping resource=xwiki.oracle.hbm.xml/
 mapping resource=feeds.oracle.hbm.xml/
 mapping resource=activitystream.hbm.xml/
   /session-factory
/hibernate-configuration


This message was sent using IMP, the Internet Messaging Program.

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


Re: [xwiki-users] Content type problem when viewing converted PowerPoint presos

2010-02-02 Thread Asiri Rathnayake
Hi,

On Fri, Jan 22, 2010 at 1:59 AM, Mathias Herberts 
mathias.herberts+xwiki-us...@gmail.commathias.herberts%2bxwiki-us...@gmail.com
 wrote:

 Hi,

 I'm using XWiki Enterprise 2.1.1 which is fully configured in UTF-8. I
 noticed that when creating a page from an Office presentation, the
 resulting page incorrectly displays the accented characters in the
 french version of the presentation's navigation bar.

 The main page has a correct content type with a UTF-8 charset but the
 Iframe displaying the preso
 (/xwiki/bin/download/SPACE/PAGE/presentation.zip/output.html) has an
 incorrect charset of ISO-8859-1 even though the content of output.html
 is in UTF-8.

 Is this a known issue? Any way to correct it?


Really sorry for the late reply. I was busy these few days.

Yes, we are working on improving the presentation import and we plan to
integrate this into XE with office preview feature. But this might take some
time (XE 2.3 at least).

Thanks for reporting this.

- Asiri



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

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


Re: [xwiki-users] Error connecting to Xwiki

2010-02-02 Thread Vincent Massol
Hi,

On Feb 3, 2010, at 2:37 AM, peter.mcla...@pacificdbms.com.au wrote:

 
 Hi All
 
 I am trying to set up XE to use an Oracle 10 XE database using a  
 Tomcat  but I seem to be missing some important point I downloaded the  
 war file to set it up followed the instructions in the setup pages,  
 have had issues with getting it to parse files and have now got to  
 here where I seem to be connecting to my database but not getting it  
 to function
 
 I am an Oracle DBA and do work with Oracle Middleware, so am familiar  
 with much of the concepts, not so much with Hibernate and Tomcat
 This is the error I am seeing
 
 javax.servlet.ServletException: Error number 3 in 0: Could not  
 initialize main XWiki context
 Wrapped Exception: Error number 3001 in 3: Cannot load class  
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager  
 from param xwiki.store.migration.manager.class
 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
 Wrapped Exception: could not execute query
   
 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
   
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
   
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
   com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
   
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
   
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
   
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter

Could we see the full stack trace?

Thanks
-Vincent

[snip]

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