Re: [xwiki-users] MyTodos not showing my todos

2008-10-15 Thread Fabian Pichler
Hi Antonio

I had a quick look at your problem and think your right the HQL-Query is
wrong. The Problem comes from the definition of the Assignee-Field in
the XWiki.TodoClass. The Assignee-Field is defined as List of Users
Property which is based on the LargeStringProperty and not the
StringProperty.

Therefore try the following hql query:
#set ($hql = , BaseObject as obj, StringProperty as prop1,
LargeStringProperty as prop2 where obj.name=doc.fullName and
obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate' and
obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value  'Finished'
and obj.id=prop2.id.id and prop2.id.name='Assignee' and
prop2.value='$contex.user' order by doc.date desc)

Kind Regards,
Fabian


2008/10/13 Antonio Goncalves [EMAIL PROTECTED]

 I've tried everything but I can't make it work. I'm now using the HQL Query
 Tester (
 http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet)
 to test my HQL queries, but it looks like this snippet of code of the HQL
 Query Tester doesn't work either :o(
 Any idea to try HQL queries ? I really need to display the TODOs of the
 current user and it looks like it's just a query to change but I can't
 figure it out.

 Any idea ?

 Thanks,
 Antonio

 2008/10/8 Antonio Goncalves [EMAIL PROTECTED]

  Hi everybody,
  I've installed the Todo application (
 
 http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads
 ).
  I can add new todos, affect them to users and so on. But when I check the
  MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos) it's
  always empty. The problem is the HQL statement. It's like that :
 
  #set ($hql = , BaseObject as obj, StringProperty as prop1,
 StringProperty
  as prop2 where obj.name=doc.fullName and obj.className='XWiki.TodoClass'
  and obj.name'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and
  prop1.id.name='Status' and prop1.value  'Finished' and obj.id=
  prop2.id.id and prop2.id.name='Assignee' and prop2.value='$context.user'
  order by doc.date desc)
 
  And if I get rid of the last assignee close (and obj.id=prop2.id.id and
  prop2.id.name='Assignee' and prop2.value='$context.user' ), it works but
  shows all the todos of everybody.
 
  Do you know how to fix this HQL query so it shows the todos of the
 current
  user ?
 
  Thanks,
  Antonio
 
 


 --
 --
 Antonio Goncalves ([EMAIL PROTECTED])
 Software architect

 Paris JUG leader : www.parisjug.org
 Web site : www.antoniogoncalves.org
 Blog: jroller.com/agoncal
 LinkedIn: www.linkedin.com/in/agoncal
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
–

Fabian Pichler[EMAIL PROTECTED]

phone  +41 61 261 67 89  fax+41 61 261 67 88
synventis gmbhGerbergasse 30CH - 4001  Basel

The  information  contained in  this message  may be
confidential and is intended for the addressee only.
Any  unauthorised use,  dissemination of  the infor-
mation,  or  copying of this message  is prohibited.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MyTodos not showing my todos

2008-10-15 Thread Fabian Pichler
Sorry, missing a 't' in $context so once again:
#set ($hql = , BaseObject as obj, StringProperty as prop1,
LargeStringProperty as prop2 where obj.name=doc.fullName and
obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate' and
obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value  'Finished'
and obj.id=prop2.id.id and prop2.id.name='Assignee' and
prop2.value='$context.user' order by doc.date desc)

Fabian.

2008/10/15 Fabian Pichler [EMAIL PROTECTED]

 Hi Antonio

 I had a quick look at your problem and think your right the HQL-Query is
 wrong. The Problem comes from the definition of the Assignee-Field in
 the XWiki.TodoClass. The Assignee-Field is defined as List of Users
 Property which is based on the LargeStringProperty and not the
 StringProperty.

 Therefore try the following hql query:
 #set ($hql = , BaseObject as obj, StringProperty as prop1,
 LargeStringProperty as prop2 where obj.name=doc.fullName and
 obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate'
 and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
 prop2.value='$contex.user' order by doc.date desc)

 Kind Regards,
 Fabian


 2008/10/13 Antonio Goncalves [EMAIL PROTECTED]

 I've tried everything but I can't make it work. I'm now using the HQL Query
 Tester (
 http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet)
 to test my HQL queries, but it looks like this snippet of code of the HQL
 Query Tester doesn't work either :o(
 Any idea to try HQL queries ? I really need to display the TODOs of the
 current user and it looks like it's just a query to change but I can't
 figure it out.

 Any idea ?

 Thanks,
 Antonio

 2008/10/8 Antonio Goncalves [EMAIL PROTECTED]

  Hi everybody,
  I've installed the Todo application (
 
 http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads
 ).
  I can add new todos, affect them to users and so on. But when I check
 the
  MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos)
 it's
  always empty. The problem is the HQL statement. It's like that :
 
  #set ($hql = , BaseObject as obj, StringProperty as prop1,
 StringProperty
  as prop2 where obj.name=doc.fullName and
 obj.className='XWiki.TodoClass'
  and obj.name'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and
  prop1.id.name='Status' and prop1.value  'Finished' and obj.id=
  prop2.id.id and prop2.id.name='Assignee' and
 prop2.value='$context.user'
  order by doc.date desc)
 
  And if I get rid of the last assignee close (and obj.id=prop2.id.id and
  prop2.id.name='Assignee' and prop2.value='$context.user' ), it works
 but
  shows all the todos of everybody.
 
  Do you know how to fix this HQL query so it shows the todos of the
 current
  user ?
 
  Thanks,
  Antonio
 
 


 --
 --
 Antonio Goncalves ([EMAIL PROTECTED])
 Software architect

 Paris JUG leader : www.parisjug.org
 Web site : www.antoniogoncalves.org
 Blog: jroller.com/agoncal
 LinkedIn: www.linkedin.com/in/agoncal
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




 --
 –

 Fabian Pichler[EMAIL PROTECTED]

 phone  +41 61 261 67 89  fax+41 61 261 67 88
 synventis gmbhGerbergasse 30CH - 4001  Basel

 The  information  contained in  this message  may be
 confidential and is intended for the addressee only.
 Any  unauthorised use,  dissemination of  the infor-
 mation,  or  copying of this message  is prohibited.






-- 
–

Fabian Pichler[EMAIL PROTECTED]

phone  +41 61 261 67 89  fax+41 61 261 67 88
synventis gmbhGerbergasse 30CH - 4001  Basel

The  information  contained in  this message  may be
confidential and is intended for the addressee only.
Any  unauthorised use,  dissemination of  the infor-
mation,  or  copying of this message  is prohibited.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Right to Left language support

2008-10-15 Thread Bey Youcef
Hi Amer,

On Mon, Oct 13, 2008 at 3:49 PM, Amer Radwan [EMAIL PROTECTED] wrote:

 Hi All,
  As I know Xwiki supports localization,but I think there is problem with
 Right to left languages like (Arabic and Hebrew) , so please I need your
 support for how I (if any) can render Xwiki workplace pages to  support RTL
 languages.
  Thanks in advance


Not yet for the Arabic or Hebrew languages.
I'm translating strings of XWiki into Arabic. I finished the half.

Here are steps that I'm doing:

1. Translating strings into Arabic
2. Test and bugs detection
3. Programing and template changing for RTL support (css, velocity template,
etc.).

If you want to participate in translating and revising Arabic strings, it
will be my pleasure to co-operate together.

Have a nice day

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


[xwiki-users] After Migrating ... to new version

2008-10-15 Thread Azzedine Ait Khelifa

In the dos console I see 


10:22:55.848 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) 16 ad
ded [EMAIL PROTECTED]
10:22:55.691 INFO   [main] org.mortbay.util.FileResource.clinit(FileResource.j
ava:60) 11 Checking Resource aliases
10:22:56.395 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:7
29) 10 Version Jetty/5.1.5
10:22:56.411 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
14 Started [EMAIL PROTECTED]
10:22:56.411 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
11 Started ServletHttpContext[/,/]
10:22:56.411 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.
java:204) 11 Started SocketListener on 127.0.0.1:8081
10:22:56.411 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
09 Started [EMAIL PROTECTED]
10:22:56.473 INFO   [main] org.mortbay.http.HttpServer.setStatsOn(HttpServer.jav
a:1133) 18 Statistics on = false for [EMAIL PROTECTED]
10:22:56.473 INFO   [main] org.mortbay.http.HttpServer.doStart(HttpServer.java:7
29) 10 Version Jetty/5.1.5
10:22:57.318 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
15 Started [EMAIL PROTECTED]
10:22:57.318 INFO   [main] org.mortbay.jetty.servlet.ServletHandler$Context.log(
ServletHandler.java:1134) 17 Loading plexus context properties from: '/WEB-INF
/plexus.properties'
10:22:57.318 INFO   [main] org.mortbay.jetty.servlet.ServletHandler$Context.log(
ServletHandler.java:1134) 16 Initializing Plexus.
10:22:57.333 INFO   [main] org.mortbay.jetty.servlet.ServletHandler$Context.log(
ServletHandler.java:1134) 17 resource = file:/C:/Program%20Files/XWiki%20Enter
prise/webapps/xwiki/WEB-INF/plexus.xml
10:22:57.568 INFO   [main] org.mortbay.jetty.servlet.ServletHandler$Context.log(
ServletHandler.java:1134) 16 Plexus initialized.
10:22:58.490 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
11 Started WebApplicationContext[/xwiki,xwiki]
10:22:58.506 INFO   [main] org.mortbay.jetty.servlet.WebApplicationContext.resol
veWebApp(WebApplicationContext.java:248) 13 Extract jar:file:/C:/Program%20Fil
es/XWiki%20Enterprise/webapps/xwiki.zip!/ to C:\Program Files\XWiki Enterprise\j
etty\work\Jetty__8080__xwiki_zip\webapp
10:23:17.597 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
15 Started [EMAIL PROTECTED]
10:23:17.597 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
11 Started WebApplicationContext[/xwiki.zip,/xwiki.zip]
10:23:17.613 INFO   [main] org.mortbay.http.SocketListener.start(SocketListener.
java:204) 11 Started SocketListener on 0.0.0.0:8080
10:23:17.613 INFO   [main] org.mortbay.util.Container.start(Container.java:74) 
09 Started [EMAIL PROTECTED]

I Thinck at this time it's OK but after :

2008-10-15 10:23:35,246 [http://localhost:8080/xwiki/bin/view/Main/] [P1-19] INF
O  .AbstractXWikiMigrationManager  - No storage migration required since current
 version is [7351]
[WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in Main.
[EMAIL PROTECTED],25
[WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in Main.
[EMAIL PROTECTED],25
[WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in Main.
[EMAIL PROTECTED],25
[WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in Main.
[EMAIL PROTECTED],25

ANyone have an idea ?



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


Re: [xwiki-users] Help wanted on the database list class property, database tree class property and the Custom Display attribute.

2008-10-15 Thread jerem

Hello,

I'm posting here because I tried to implement solution proposed by Sergiu
but it's not (yet) working ... (I'm using XWiki 1.5.2)

I want to have a Database Tree List property in a class of type FAQ
(FAQs.FAQClass). I would like to use this property to link together a FAQ
property Category with a SubCategory, the subcategory being a db tree
list (and the category being ...I don't know ...)

So I first created a class FAQs.FAQCategoryClass with the class wizard,
with String properties ID, VALUE and PARENT
Then, I created objects of this class as follows :
Obj1 (ID='CAT1', VALUE='CAT1', PARENT='')
Obj2 (ID='SUBCAT11', VALUE='SUBCAT11', PARENT='CAT1')
Obj3 (ID='SUBCAT12', VALUE='SUBCAT12', PARENT='CAT1')
Obj4 (ID='CAT2', VALUE='CAT2', PARENT='')
Obj5 (ID='SUBCAT21', VALUE='SUBCAT21', PARENT='CAT2')

Then I created only 1 property Category, as a Database List type, and
parameterized : XWiki Class Name = 'FAQs.FAQCategoriesClass', ID Field Name
= 'ID', Value Field Name = 'VALUE'.
When creating an object from my FAQ class, I get in Category field
expected valued as a list : CAT1, SUBCAT11, SUBCAT12, CAT2,
SUBCAT21.
 First question : what if I wanted to have only CAT1 and CAT2 in
this list, in order to first select a category, and then the dependent
subcategory ?

Then I created a SubCategory property, as a Database Tree List type, and
parameterized : XWiki Class Name = 'FAQs.FAQCategoriesClass', ID Field Name
= 'ID', Value Field Name = 'VALUE', Parent Field Name = 'PARENT'.
When creating an object from my FAQ class, I get a 
java.lang.StackOverflowError at
com.xpn.xwiki.objects.classes.ListClass.getDisplayValue (infinite calls to
addToSelect() ).
 Second question : what am I doing wrong ?
 Third question : maybe I don't even need the Categories field, and
the tree is displayed directly in the select field ? (Don't know because
could not make it succeed yet).

Thanks for help, and sorry for long message ... :/
Regards,
Jeremie

-- 
View this message in context: 
http://n2.nabble.com/Help-wanted-on-the-database-list-class-property%2C-database-tree-class-property-and-the-Custom-Display-attribute.-tp508135p1337150.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

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


[xwiki-users] LDAP authentication

2008-10-15 Thread Mihails Agafonovs
Hi!
Just installed XWiki 1.6. Thought LDAP authentication would now work
for AD using sAMAccountName (with dot), but no success. I've
configured UID_ATTR=sAMAccountName, all the other configuration is
same as for version 1.3 (LDAP worked fine using cn).
P.S. Of course, I didn't just copy my old xwiki.cfg to the 1.6
version, so the new authentificator IS used now.
P.P.S. For the same configuration (for sAMAccountName) I can still
login using cn, but then the Comments section displays the main
login screen with the login form! 
 Ar cieņu, Mihails
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP authentication

2008-10-15 Thread Thomas Mortagne
Hi,

On Wed, Oct 15, 2008 at 5:11 PM, Mihails Agafonovs [EMAIL PROTECTED] wrote:
 Hi!
 Just installed XWiki 1.6. Thought LDAP authentication would now work
 for AD using sAMAccountName (with dot), but no success. I've
 configured UID_ATTR=sAMAccountName, all the other configuration is
 same as for version 1.3 (LDAP worked fine using cn).
 P.S. Of course, I didn't just copy my old xwiki.cfg to the 1.6
 version, so the new authentificator IS used now.
 P.P.S. For the same configuration (for sAMAccountName) I can still
 login using cn, but then the Comments section displays the main
 login screen with the login form!
  Ar cieņu, Mihails

There is a bug on LDAP authentication in 1.6. It's now fixed and will
be part of 1.6.1 release. In the meantime you can download the last
xwiki-core jar 1.6 snapshot at
http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/xwiki-core/1.6-SNAPSHOT/.

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




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


Re: [xwiki-users] Conditionally displaying content on the landing page depending on access rights

2008-10-15 Thread Thomas Mortagne
On Wed, Oct 15, 2008 at 1:44 PM, Alban Schmid
[EMAIL PROTECTED] wrote:
 Dear fellow xwiki users,



 I'd like to display some portions of the landing page as well as some items 
 in the menu conditionally, i.e. only for some specific groups.



 I've found following code snippet on the 'Quick Links' menu:



 #if ($xwiki.hasAdminRights())

 Content to display conditionally

 #end



 Is there a way to adapt this so as to restrict display not to AdminRights, 
 but e.g. to 'EditRights' or group rights?



 I'd like to do something like this (pseudo-code)



 #if ($xwiki.isMemberOfAdmin() or $xwiki.isMemberOfInternalUsers())

 Content to display conditionally

 #end

You have $xwiki.hasAccessLevel(right) for current page. See
http://tinyurl.com/18r.

For example for edit right it's : $xwiki.hasAccessLevel(edit)

In general when you search for methods in api, look at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/API.




 Thanks for your answer.



 Regards,







 ALBAN SCHMID
 CLIENT SOLUTIONS SPECIALIST

 DIRECTOR, CHANNEL SOLUTION SERVICES
 CBS Interactive - Channel
 Tel: +41 21 943 03 86

 Skype: albanschmid
 Rte Industrielle 2 | CP 138 | 1806 St-Légier, Switzerland
 CNETChannel.com



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




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


[xwiki-users] Conditionally displaying content on the landing page depending on access rights

2008-10-15 Thread Alban Schmid
Dear fellow xwiki users,

 

I'd like to display some portions of the landing page as well as some items in 
the menu conditionally, i.e. only for some specific groups.

 

I've found following code snippet on the 'Quick Links' menu:

 

#if ($xwiki.hasAdminRights())

Content to display conditionally

#end

 

Is there a way to adapt this so as to restrict display not to AdminRights, but 
e.g. to 'EditRights' or group rights?

 

I'd like to do something like this (pseudo-code)

 

#if ($xwiki.isMemberOfAdmin() or $xwiki.isMemberOfInternalUsers())

Content to display conditionally

#end

 

Thanks for your answer.

 

Regards,

 

 

 

ALBAN SCHMID
CLIENT SOLUTIONS SPECIALIST

DIRECTOR, CHANNEL SOLUTION SERVICES
CBS Interactive - Channel 
Tel: +41 21 943 03 86

Skype: albanschmid 
Rte Industrielle 2 | CP 138 | 1806 St-Légier, Switzerland
CNETChannel.com

 

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


Re: [xwiki-users] Public vs. Private strict content separation -what's the best strategy?

2008-10-15 Thread Alban Schmid
Thanks Guillaume,

That's very useful.

Regards,


ALBAN SCHMID
CLIENT SOLUTIONS SPECIALIST
DIRECTOR, CHANNEL SOLUTION SERVICES
CBS Interactive - Channel 
Tel: +41 21 943 03 86
Skype: albanschmid 
Rte Industrielle 2 | CP 138 | 1806 St-Légier, Switzerland
CNETChannel.com



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guillaume Lerouge
Sent: Tuesday, October 14, 2008 6:30 PM
To: XWiki Users
Subject: Re: [xwiki-users] Public vs. Private strict content separation -what's 
the best strategy?

Hi Alban,

We envision using xwiki to manage 2 different parts:

 1.   A public one accessible to our customers only
 2.   A private one for internal use only


 My question is the following: what is the best strategy to achieve a clean
 content separation:

 Space partitioning (i.e. one wiki, but 2 or more spaces) or wiki
 partitioning (i.e. separate wikis)

 Space partitioning seems easier to set up, because only 1 wiki is needed.
 However, my concern is the risk of having a sloppy employee inadvertently
 publishing an internal page on the wrong space, i.e. on a public space. With
 the wiki partitioning scenario, I don't even know if this is possible to set
 up xwiki so as to have several wikis while running on the same code base. On
 top of that, I would like to have internal users being able to search
 through a common index (public + private), while customers could only search
 the public one. I don't know if that's possible at all with wiki
 partitioning.

 Has anyone of you guys experience with such a setup?


Yep. We actually have experience with both of them.


 What are the pros and cons of each?

What would the experts / architects recommend here?


You can do both depending on your personal preference. Thanks to XWiki
Enterprise Manager (http://manager.xwiki.org/), XWiki makes it easy to run 2
wikis as part of the same farm on the same server, meaning that you could
have a shared user base and yet 2 different wikis. As for global search, you
can setup a global search on XWiki Enteprise Manager. Since search results
are rights-filtered, your users won't be able to see pages they're not
allowed to either way. In XWiki you'll need to create 2 groups (one for your
employees and one for your customers) and set rights for those groups at
either the space or wiki level depending on your choice.

Since you can set user rights and user interface preferences (skin color)
both at the wiki and the space level, those features don't affect your
decision much.

To summarize: both solutions should work out fine. If you're afraid of
having employee publishing stuff in the wrong place, you might want to setup
2 different wikis (they'll have their own URLs : http://wiki1.server.com/and
http://wiki2.server.com/ which is probably the key point in yoru use case).

Hope this helps,
Guillaume





 Thanks for the insights.





 ALBAN SCHMID
 CLIENT SOLUTIONS SPECIALIST

 DIRECTOR, CHANNEL SOLUTION SERVICES
 CBS Interactive - Channel
 Tel: +41 21 943 03 86

 Skype: albanschmid
 Rte Industrielle 2 | CP 138 | 1806 St-Légier, Switzerland
 CNETChannel.com



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




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] After Migrating ... to new version

2008-10-15 Thread Jerome Velociter
Hi Azzedine.

I answered your question in FAQ entry here : 
http://www.xwiki.org/xwiki/bin/view/FAQ/WhyDoIHaveDeprecatedUsageOfMethodXXXInTheConsoleLog

Regards,
Jerome.

Azzedine Ait Khelifa wrote:
 In the dos console I see 


 10:22:55.848 INFO   [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) 16 
 ad
 ded [EMAIL PROTECTED]
 10:22:55.691 INFO   [main] 
 org.mortbay.util.FileResource.clinit(FileResource.j
 ava:60) 11 Checking Resource aliases
 10:22:56.395 INFO   [main] 
 org.mortbay.http.HttpServer.doStart(HttpServer.java:7
 29) 10 Version Jetty/5.1.5
 10:22:56.411 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 14 Started [EMAIL PROTECTED]
 10:22:56.411 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 11 Started ServletHttpContext[/,/]
 10:22:56.411 INFO   [main] 
 org.mortbay.http.SocketListener.start(SocketListener.
 java:204) 11 Started SocketListener on 127.0.0.1:8081
 10:22:56.411 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 09 Started [EMAIL PROTECTED]
 10:22:56.473 INFO   [main] 
 org.mortbay.http.HttpServer.setStatsOn(HttpServer.jav
 a:1133) 18 Statistics on = false for [EMAIL PROTECTED]
 10:22:56.473 INFO   [main] 
 org.mortbay.http.HttpServer.doStart(HttpServer.java:7
 29) 10 Version Jetty/5.1.5
 10:22:57.318 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 15 Started [EMAIL PROTECTED]
 10:22:57.318 INFO   [main] 
 org.mortbay.jetty.servlet.ServletHandler$Context.log(
 ServletHandler.java:1134) 17 Loading plexus context properties from: 
 '/WEB-INF
 /plexus.properties'
 10:22:57.318 INFO   [main] 
 org.mortbay.jetty.servlet.ServletHandler$Context.log(
 ServletHandler.java:1134) 16 Initializing Plexus.
 10:22:57.333 INFO   [main] 
 org.mortbay.jetty.servlet.ServletHandler$Context.log(
 ServletHandler.java:1134) 17 resource = 
 file:/C:/Program%20Files/XWiki%20Enter
 prise/webapps/xwiki/WEB-INF/plexus.xml
 10:22:57.568 INFO   [main] 
 org.mortbay.jetty.servlet.ServletHandler$Context.log(
 ServletHandler.java:1134) 16 Plexus initialized.
 10:22:58.490 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 11 Started WebApplicationContext[/xwiki,xwiki]
 10:22:58.506 INFO   [main] 
 org.mortbay.jetty.servlet.WebApplicationContext.resol
 veWebApp(WebApplicationContext.java:248) 13 Extract 
 jar:file:/C:/Program%20Fil
 es/XWiki%20Enterprise/webapps/xwiki.zip!/ to C:\Program Files\XWiki 
 Enterprise\j
 etty\work\Jetty__8080__xwiki_zip\webapp
 10:23:17.597 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 15 Started [EMAIL PROTECTED]
 10:23:17.597 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 11 Started WebApplicationContext[/xwiki.zip,/xwiki.zip]
 10:23:17.613 INFO   [main] 
 org.mortbay.http.SocketListener.start(SocketListener.
 java:204) 11 Started SocketListener on 0.0.0.0:8080
 10:23:17.613 INFO   [main] 
 org.mortbay.util.Container.start(Container.java:74) 
 09 Started [EMAIL PROTECTED]

 I Thinck at this time it's OK but after :

 2008-10-15 10:23:35,246 [http://localhost:8080/xwiki/bin/view/Main/] [P1-19] 
 INF
 O  .AbstractXWikiMigrationManager  - No storage migration required since 
 current
  version is [7351]
 [WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in 
 Main.
 [EMAIL PROTECTED],25
 [WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in 
 Main.
 [EMAIL PROTECTED],25
 [WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in 
 Main.
 [EMAIL PROTECTED],25
 [WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] in 
 Main.
 [EMAIL PROTECTED],25

 ANyone have an idea ?



   
 ___
 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] MyTodos not showing my todos

2008-10-15 Thread Antonio Goncalves
Thanks Fabian, it works, that's great.
I would have a second question though. The TODOs are ordered by doc.date
(which is the creation of the document). What I really want is to order by
the Target Date (it's the property of the TodoClass). This property is a
date, so do you know how I can order by this property ?

Thanks in advance
Antonio

2008/10/15 Fabian Pichler [EMAIL PROTECTED]

 Sorry, missing a 't' in $context so once again:
 #set ($hql = , BaseObject as obj, StringProperty as prop1,
 LargeStringProperty as prop2 where obj.name=doc.fullName and
 obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate'
 and
 obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
 'Finished'
 and obj.id=prop2.id.id and prop2.id.name='Assignee' and
 prop2.value='$context.user' order by doc.date desc)

 Fabian.

 2008/10/15 Fabian Pichler [EMAIL PROTECTED]

  Hi Antonio
 
  I had a quick look at your problem and think your right the HQL-Query is
  wrong. The Problem comes from the definition of the Assignee-Field in
  the XWiki.TodoClass. The Assignee-Field is defined as List of Users
  Property which is based on the LargeStringProperty and not the
  StringProperty.
 
  Therefore try the following hql query:
  #set ($hql = , BaseObject as obj, StringProperty as prop1,
  LargeStringProperty as prop2 where obj.name=doc.fullName and
  obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate'
  and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
  'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
  prop2.value='$contex.user' order by doc.date desc)
 
  Kind Regards,
  Fabian
 
 
  2008/10/13 Antonio Goncalves [EMAIL PROTECTED]
 
  I've tried everything but I can't make it work. I'm now using the HQL
 Query
  Tester (
  http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet)
  to test my HQL queries, but it looks like this snippet of code of the
 HQL
  Query Tester doesn't work either :o(
  Any idea to try HQL queries ? I really need to display the TODOs of the
  current user and it looks like it's just a query to change but I can't
  figure it out.
 
  Any idea ?
 
  Thanks,
  Antonio
 
  2008/10/8 Antonio Goncalves [EMAIL PROTECTED]
 
   Hi everybody,
   I've installed the Todo application (
  
 
 http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads
  ).
   I can add new todos, affect them to users and so on. But when I check
  the
   MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos)
  it's
   always empty. The problem is the HQL statement. It's like that :
  
   #set ($hql = , BaseObject as obj, StringProperty as prop1,
  StringProperty
   as prop2 where obj.name=doc.fullName and
  obj.className='XWiki.TodoClass'
   and obj.name'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and
   prop1.id.name='Status' and prop1.value  'Finished' and obj.id=
   prop2.id.id and prop2.id.name='Assignee' and
  prop2.value='$context.user'
   order by doc.date desc)
  
   And if I get rid of the last assignee close (and obj.id=prop2.id.idand
   prop2.id.name='Assignee' and prop2.value='$context.user' ), it works
  but
   shows all the todos of everybody.
  
   Do you know how to fix this HQL query so it shows the todos of the
  current
   user ?
  
   Thanks,
   Antonio
  
  
 
 
  --
  --
  Antonio Goncalves ([EMAIL PROTECTED])
  Software architect
 
  Paris JUG leader : www.parisjug.org
  Web site : www.antoniogoncalves.org
  Blog: jroller.com/agoncal
  LinkedIn: www.linkedin.com/in/agoncal
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
  --
  –
 
  Fabian Pichler[EMAIL PROTECTED]
 
  phone  +41 61 261 67 89  fax+41 61 261 67 88
  synventis gmbhGerbergasse 30CH - 4001  Basel
 
  The  information  contained in  this message  may be
  confidential and is intended for the addressee only.
  Any  unauthorised use,  dissemination of  the infor-
  mation,  or  copying of this message  is prohibited.
 
 
 
 


 --
 –

 Fabian Pichler[EMAIL PROTECTED]

 phone  +41 61 261 67 89  fax+41 61 261 67 88
 synventis gmbhGerbergasse 30CH - 4001  Basel

 The  information  contained in  this message  may be
 confidential and is intended for the addressee only.
 Any  unauthorised use,  dissemination of  the infor-
 mation,  or  copying of this message  is prohibited.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
--
Antonio Goncalves ([EMAIL PROTECTED])
Software architect

Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal
___
users mailing list
users@xwiki.org

[xwiki-users] 2-1/2 naming questions

2008-10-15 Thread Dave Mangot

Bonjour,

We've just upgraded to Xwiki 1.6 and I have some questions from a user 
that are not necessarily 1.6 specific.

1. Is it possible to have a page name with a period (.) in the name. 
e.g. [Release 1.6]?  In Xwiki 1.0 it renders as underlined 6.  In Xwiki 
2.0, it doesn't even render as a link.  In fact, I can't get any Xwiki 
2.0 links to render at all.

2. Is it possible to have Xwiki store attachments with spaces in the 
name?  Say I want to store a file that is called Marketing Plan Oct 
2008.pdf.  Xwiki seems to take all the spaces out and munge the 
filename, especially if it is a long one, it puts in tildes (~).  I want 
my users to be able to download the plan without having to rename it 
themselves.  How do I do that?

3. How beta is the Confluence 1.0 rendering?  I made a page like this:

h1. header1
h2. header2
h3. header3
h4. header4

Only the h1 rendered correctly, everything else showed up as plan text. 
   That has got to be the most basic page imaginable.

Do I have something installed incorrectly?

 Thanks,

 -Dave

-- 
Dave Mangot
Terracotta Inc.
650 Townsend St. Suite 325
San Francisco, CA 94103 USA
+1 415 738 4059
[EMAIL PROTECTED]

This e-mail incorporates Terracotta's confidentiality policy, which is 
online at http://www.terracottatech.com/emailconfidentiality.shtml
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MyTodos not showing my todos

2008-10-15 Thread Fabian Pichler
Try:
#set ($hql = , BaseObject as obj, StringProperty as prop1,
LargeStringProperty as prop2, DateProperty as dueDate where
obj.name=doc.fullName
and obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate'
and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
prop2.value='$context.user' and obj.id = dueDate.id.id and
dueDate.id.name='TargetDate'
order by dueDate.value desc)

Fabian.

2008/10/15 Antonio Goncalves [EMAIL PROTECTED]

 Thanks Fabian, it works, that's great.
 I would have a second question though. The TODOs are ordered by doc.date
 (which is the creation of the document). What I really want is to order by
 the Target Date (it's the property of the TodoClass). This property is a
 date, so do you know how I can order by this property ?

 Thanks in advance
 Antonio

 2008/10/15 Fabian Pichler [EMAIL PROTECTED]

  Sorry, missing a 't' in $context so once again:
  #set ($hql = , BaseObject as obj, StringProperty as prop1,
  LargeStringProperty as prop2 where obj.name=doc.fullName and
  obj.className='XWiki.TodoClass' and obj.name'XWiki.TodoClassTemplate'
  and
  obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
  'Finished'
  and obj.id=prop2.id.id and prop2.id.name='Assignee' and
  prop2.value='$context.user' order by doc.date desc)
 
  Fabian.
 
  2008/10/15 Fabian Pichler [EMAIL PROTECTED]
 
   Hi Antonio
  
   I had a quick look at your problem and think your right the HQL-Query
 is
   wrong. The Problem comes from the definition of the Assignee-Field in
   the XWiki.TodoClass. The Assignee-Field is defined as List of Users
   Property which is based on the LargeStringProperty and not the
   StringProperty.
  
   Therefore try the following hql query:
   #set ($hql = , BaseObject as obj, StringProperty as prop1,
   LargeStringProperty as prop2 where obj.name=doc.fullName and
   obj.className='XWiki.TodoClass' and obj.name
 'XWiki.TodoClassTemplate'
   and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
   'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
   prop2.value='$contex.user' order by doc.date desc)
  
   Kind Regards,
   Fabian
  
  
   2008/10/13 Antonio Goncalves [EMAIL PROTECTED]
  
   I've tried everything but I can't make it work. I'm now using the HQL
  Query
   Tester (
   http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet)
   to test my HQL queries, but it looks like this snippet of code of the
  HQL
   Query Tester doesn't work either :o(
   Any idea to try HQL queries ? I really need to display the TODOs of
 the
   current user and it looks like it's just a query to change but I can't
   figure it out.
  
   Any idea ?
  
   Thanks,
   Antonio
  
   2008/10/8 Antonio Goncalves [EMAIL PROTECTED]
  
Hi everybody,
I've installed the Todo application (
   
  
 
 http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads
   ).
I can add new todos, affect them to users and so on. But when I
 check
   the
MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos)
   it's
always empty. The problem is the HQL statement. It's like that :
   
#set ($hql = , BaseObject as obj, StringProperty as prop1,
   StringProperty
as prop2 where obj.name=doc.fullName and
   obj.className='XWiki.TodoClass'
and obj.name'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and
prop1.id.name='Status' and prop1.value  'Finished' and obj.id=
prop2.id.id and prop2.id.name='Assignee' and
   prop2.value='$context.user'
order by doc.date desc)
   
And if I get rid of the last assignee close (and obj.id
 =prop2.id.idand
prop2.id.name='Assignee' and prop2.value='$context.user' ), it
 works
   but
shows all the todos of everybody.
   
Do you know how to fix this HQL query so it shows the todos of the
   current
user ?
   
Thanks,
Antonio
   
   
  
  
   --
   --
   Antonio Goncalves ([EMAIL PROTECTED])
   Software architect
  
   Paris JUG leader : www.parisjug.org
   Web site : www.antoniogoncalves.org
   Blog: jroller.com/agoncal
   LinkedIn: www.linkedin.com/in/agoncal
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
  
  
  
   --
   –
  
   Fabian Pichler[EMAIL PROTECTED]
  
   phone  +41 61 261 67 89  fax+41 61 261 67 88
   synventis gmbhGerbergasse 30CH - 4001  Basel
  
   The  information  contained in  this message  may be
   confidential and is intended for the addressee only.
   Any  unauthorised use,  dissemination of  the infor-
   mation,  or  copying of this message  is prohibited.
  
  
  
  
 
 
  --
  –
 
  Fabian Pichler[EMAIL PROTECTED]
 
  phone  +41 61 261 67 89  fax+41 61 261 67 88
  synventis gmbh

Re: [xwiki-users] MyTodos not showing my todos

2008-10-15 Thread Antonio Goncalves
That works great thanks Fabian. IMHO the TODO application should be changed
and use this HQL request instead. It makes more sense to only display the
todos of the connected user and sort them by due date.
Antonio

2008/10/16 Fabian Pichler [EMAIL PROTECTED]

 Try:
 #set ($hql = , BaseObject as obj, StringProperty as prop1,
 LargeStringProperty as prop2, DateProperty as dueDate where
 obj.name=doc.fullName
 and obj.className='XWiki.TodoClass' and obj.name
 'XWiki.TodoClassTemplate'
 and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
 prop2.value='$context.user' and obj.id = dueDate.id.id and
 dueDate.id.name='TargetDate'
 order by dueDate.value desc)

 Fabian.

 2008/10/15 Antonio Goncalves [EMAIL PROTECTED]

  Thanks Fabian, it works, that's great.
  I would have a second question though. The TODOs are ordered by doc.date
  (which is the creation of the document). What I really want is to order
 by
  the Target Date (it's the property of the TodoClass). This property is a
  date, so do you know how I can order by this property ?
 
  Thanks in advance
  Antonio
 
  2008/10/15 Fabian Pichler [EMAIL PROTECTED]
 
   Sorry, missing a 't' in $context so once again:
   #set ($hql = , BaseObject as obj, StringProperty as prop1,
   LargeStringProperty as prop2 where obj.name=doc.fullName and
   obj.className='XWiki.TodoClass' and obj.name
 'XWiki.TodoClassTemplate'
   and
   obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
   'Finished'
   and obj.id=prop2.id.id and prop2.id.name='Assignee' and
   prop2.value='$context.user' order by doc.date desc)
  
   Fabian.
  
   2008/10/15 Fabian Pichler [EMAIL PROTECTED]
  
Hi Antonio
   
I had a quick look at your problem and think your right the HQL-Query
  is
wrong. The Problem comes from the definition of the Assignee-Field in
the XWiki.TodoClass. The Assignee-Field is defined as List of Users
Property which is based on the LargeStringProperty and not the
StringProperty.
   
Therefore try the following hql query:
#set ($hql = , BaseObject as obj, StringProperty as prop1,
LargeStringProperty as prop2 where obj.name=doc.fullName and
obj.className='XWiki.TodoClass' and obj.name
  'XWiki.TodoClassTemplate'
and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value 
'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and
prop2.value='$contex.user' order by doc.date desc)
   
Kind Regards,
Fabian
   
   
2008/10/13 Antonio Goncalves [EMAIL PROTECTED]
   
I've tried everything but I can't make it work. I'm now using the HQL
   Query
Tester (
http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet
 )
to test my HQL queries, but it looks like this snippet of code of
 the
   HQL
Query Tester doesn't work either :o(
Any idea to try HQL queries ? I really need to display the TODOs of
  the
current user and it looks like it's just a query to change but I
 can't
figure it out.
   
Any idea ?
   
Thanks,
Antonio
   
2008/10/8 Antonio Goncalves [EMAIL PROTECTED]
   
 Hi everybody,
 I've installed the Todo application (

   
  
 
 http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads
).
 I can add new todos, affect them to users and so on. But when I
  check
the
 MyTodos Panel (
 http://localhost:8080/xwiki/bin/view/Panels/MyTodos)
it's
 always empty. The problem is the HQL statement. It's like that :

 #set ($hql = , BaseObject as obj, StringProperty as prop1,
StringProperty
 as prop2 where obj.name=doc.fullName and
obj.className='XWiki.TodoClass'
 and obj.name'XWiki.TodoClassTemplate' and obj.id=prop1.id.idand
 prop1.id.name='Status' and prop1.value  'Finished' and obj.id=
 prop2.id.id and prop2.id.name='Assignee' and
prop2.value='$context.user'
 order by doc.date desc)

 And if I get rid of the last assignee close (and obj.id
  =prop2.id.idand
 prop2.id.name='Assignee' and prop2.value='$context.user' ), it
  works
but
 shows all the todos of everybody.

 Do you know how to fix this HQL query so it shows the todos of the
current
 user ?

 Thanks,
 Antonio


   
   
--
--
Antonio Goncalves ([EMAIL PROTECTED])
Software architect
   
Paris JUG leader : www.parisjug.org
Web site : www.antoniogoncalves.org
Blog: jroller.com/agoncal
LinkedIn: www.linkedin.com/in/agoncal
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
   
   
   
   
--
–
   
Fabian Pichler[EMAIL PROTECTED]
   
phone  +41 61 261 67 89  fax+41 61 261 67 88
synventis gmbhGerbergasse 30CH - 4001  Basel
   
The