Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Mileston e 1 Released

2008-01-31 Thread Mihails Agafonovs
Clean up the Skins, make it easy to create new skins and add the new
xwiki.org skin

Maybe I've smth misunderstood?
  Quoting Vincent Massol : 
 /**/
  On Jan 31, 2008, at 9:42 AM, Mihails Agafonovs wrote: 
  Hi!
 Just installed new XWiki, but there is no new skin, only the old
albatross skin.
 Where can I get the new one?  
 There's no new skin. Why did you expect one? :) 
 -Vincent 
   Quoting Vincent Massol : The XWiki development team is pleased to
announce the release of XWiki Enterprise1.3 Milestone 1.
 Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
 First milestone of the XWiki Enterprise 1.3 version. 
 Note that general goals for XWiki Enterprise 1.3 are: * Bug fixes *
More automated tests * Clean up the Skins, make it easy to create new
skins and add the new xwiki.org skin * Improve performances (less
Javascript files, more optimized CSS, better caching, etc) 
 Main changes from 1.2.1:  
 * A good deal of bugs fixed * Added ability to export pages as HTML
in a zip file * Added ability to export the current page in a XAR *
Removed Finch and Dodo skin from the default distribution. They are
now available as separate downloads. * Better support for Oracle with
the upgrade to Hibernate 3.2.5.ga version. 
 + lots of other changes, see Platform details and XWiki Enterprise
details. 
 For more information see the Release notes at:

http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1
 Thanks
 -The XWiki dev team  
 Ar cieņu, Mihails ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 Ar cieņu, Mihails

Links:
--
[1] mailto:[EMAIL PROTECTED]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] velocity tools access

2008-01-31 Thread rssh
On Thu, 31 Jan 2008 09:13:32 +0100, Vincent Massol wrote
 On Jan 31, 2008, at 7:41 AM, rssh wrote:
 
  On Wed, 30 Jan 2008 23:24:21 +0100, Sergiu Dumitriu wrote
  Hi,
 
  Velocity tools is not enabled yet. However, this is planned (I was
  about to do it in the 1.2 timeframe, but didn't have time to commit
  the code).
 
 
  O - are you have ready patch ?
  If yes, can you publish one ?
 
  (I now need in velocity tools, so I can test this patch on 1.3  
  SNAPSHOT)
 
 It's very simple. You just need to add the MathTool java bean 
 instance  to the velocity context and you're done! No need for 
 velocity tools  servlet or stuff like that.
 
 -Vincent
 

 Yes, but if we want more generalized stuff, than sintuation become a little
more complex:

 I think the 'right way' is to keep somewehere static instance of ToolManager, 
create and configure one from some well-known path (better configurable) on
demand, than in VelocityRendere.prepareContext() merge new-created context
with context of ToolManager.

(of course, if we want provide standard velocity-tool services, which can be
externally configured)



  rssh wrote:
  Good day, community,
 
  Are general velocity tools objects (particullary I'm interestin in  
  MathTool)
  accessible from xwiki templates ?
 
  If yes - where names are described ? [standard names, such as  
  'math' for
  math does not work].
 
  P.S. (Curiosly,  I can't find initialization of velocity context  
  in code,
  but from other side velocity-tools jar is bundled with  
  distribution. )
 
 
  --
  Ruslan Shevchenko
  GradSoft. http://www.gradsoft.ua
 
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
  --
  Ruslan Shevchenko
  GradSoft. http://www.gradsoft.ua
 
  ___
  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



--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua

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


Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Mileston e 1 Released

2008-01-31 Thread Mihails Agafonovs
Also, LDAP user is not added to XWikiAllGoup group (like in version
1.1.2), so there is no use of it until user is added to the group by
admin.
  Quoting Vincent Massol : 
 /**/
  On Jan 31, 2008, at 9:42 AM, Mihails Agafonovs wrote: 
  Hi!
 Just installed new XWiki, but there is no new skin, only the old
albatross skin.
 Where can I get the new one?  
 There's no new skin. Why did you expect one? :) 
 -Vincent 
   Quoting Vincent Massol : The XWiki development team is pleased to
announce the release of XWiki Enterprise1.3 Milestone 1.
 Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
 First milestone of the XWiki Enterprise 1.3 version. 
 Note that general goals for XWiki Enterprise 1.3 are: * Bug fixes *
More automated tests * Clean up the Skins, make it easy to create new
skins and add the new xwiki.org skin * Improve performances (less
Javascript files, more optimized CSS, better caching, etc) 
 Main changes from 1.2.1:  
 * A good deal of bugs fixed * Added ability to export pages as HTML
in a zip file * Added ability to export the current page in a XAR *
Removed Finch and Dodo skin from the default distribution. They are
now available as separate downloads. * Better support for Oracle with
the upgrade to Hibernate 3.2.5.ga version. 
 + lots of other changes, see Platform details and XWiki Enterprise
details. 
 For more information see the Release notes at:

http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1
 Thanks
 -The XWiki dev team  
 Ar cieņu, Mihails ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 Ar cieņu, Mihails

Links:
--
[1] mailto:[EMAIL PROTECTED]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vincent Massol


On Jan 31, 2008, at 9:51 AM, Mihails Agafonovs wrote:

Clean up the Skins, make it easy to create new skins and add the  
new xwiki.org skin


Maybe I've smth misunderstood?


Yes but you missed the lines before ;)

Note that general goals for XWiki Enterprise 1.3 are:

This is First milestone of the XWiki Enterprise 1.3 version. and not  
the final 1.3 version...


Sorry to have generated false hopes! There's still plenty of work to  
do to get the xwiki.org skin in the product...


-Vincent




Quoting Vincent Massol [EMAIL PROTECTED]:

On Jan 31, 2008, at 9:42 AM, Mihails Agafonovs wrote:

Hi!
Just installed new XWiki, but there is no new skin, only the old  
albatross skin.

Where can I get the new one?

There's no new skin. Why did you expect one? :)

-Vincent

Quoting Vincent Massol [EMAIL PROTECTED]:
The XWiki development team is pleased to announce the release of  
XWiki Enterprise1.3 Milestone 1.


Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add the  
new xwiki.org skin
* Improve performances (less Javascript files, more optimized CSS,  
better caching, etc)


Main changes from 1.2.1:

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution. They  
are now available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate 3.2.5.ga  
version.


+ lots of other changes, see Platform details and XWiki Enterprise  
details.


For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1

Thanks
-The XWiki dev team



Ar cieņu, Mihails
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




Ar cieņu, Mihails
___
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] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vincent Massol

Hi Mihails,

On Jan 31, 2008, at 9:59 AM, Mihails Agafonovs wrote:

Also, LDAP user is not added to XWikiAllGoup group (like in version  
1.1.2), so there is no use of it until user is added to the group by  
admin.


Could you please create a jira issue and explain what the problem is  
in there as this is something I'm not aware of and if it's a  
regression we need to fix that ASAP?


Thanks a lot
-Vincent




Quoting Vincent Massol [EMAIL PROTECTED]:

On Jan 31, 2008, at 9:42 AM, Mihails Agafonovs wrote:

Hi!
Just installed new XWiki, but there is no new skin, only the old  
albatross skin.

Where can I get the new one?

There's no new skin. Why did you expect one? :)

-Vincent

Quoting Vincent Massol [EMAIL PROTECTED]:
The XWiki development team is pleased to announce the release of  
XWiki Enterprise1.3 Milestone 1.


Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add the  
new xwiki.org skin
* Improve performances (less Javascript files, more optimized CSS,  
better caching, etc)


Main changes from 1.2.1:

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution. They  
are now available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate 3.2.5.ga  
version.


+ lots of other changes, see Platform details and XWiki Enterprise  
details.


For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1

Thanks
-The XWiki dev team



Ar cieņu, Mihails
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




Ar cieņu, Mihails
___
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] velocity tools access

2008-01-31 Thread rssh
On Thu, 31 Jan 2008 10:05:52 +0100, Vincent Massol wrote
 On Jan 31, 2008, at 9:58 AM, rssh wrote:
 
  On Thu, 31 Jan 2008 09:13:32 +0100, Vincent Massol wrote
  On Jan 31, 2008, at 7:41 AM, rssh wrote:
 
  On Wed, 30 Jan 2008 23:24:21 +0100, Sergiu Dumitriu wrote
  Hi,
 
  Velocity tools is not enabled yet. However, this is planned (I was
  about to do it in the 1.2 timeframe, but didn't have time to commit
  the code).
 
 
  O - are you have ready patch ?
  If yes, can you publish one ?
 
  (I now need in velocity tools, so I can test this patch on 1.3
  SNAPSHOT)
 
  It's very simple. You just need to add the MathTool java bean
  instance  to the velocity context and you're done! No need for
  velocity tools  servlet or stuff like that.
 
  -Vincent
 
 
  Yes, but if we want more generalized stuff, than sintuation become a  
  little
  more complex:
 
  I think the 'right way' is to keep somewehere static instance of  
  ToolManager,
  create and configure one from some well-known path (better  
  configurable) on
  demand, than in VelocityRendere.prepareContext() merge new-created  
  context
  with context of ToolManager.
 
  (of course, if we want provide standard velocity-tool services,  
  which can be
  externally configured)
 
 The main reason I haven't been touching this part is because I've  
 written a new Velocity component in the new xwiki architecture and 
 I'd  like to replace our current velocity code with it. The 
 component is in  xwiki-core/xwiki-velocity if you want to have a look.
 
 My idea would be to provide component configuration that allows 
 users  to add any bean they want to the velocity context.
 
 WDYT?
 

Nice.

 I looked in xwiki-velocity and was not able to figure: what is it. Now
understood that it is just not finished ;)

 Functionality you tell about is exactly a ToolManager in VelocityTools 2.0:
it read class name from configuration, get through reflection annotation
'DefaultKey', than add tool to context (in application scope).

I guess, that you have implementation plan like next:

Step 1.

1.1. add to VelocityManager  method 'createContext' (or initialize existing
context), which will create 
1.2. call VelocityManager.createContext from VelocityRendere.prepareContext()

  (it's means that classes must be moved to xwiki-core package ?)

1.3. add configure method to VelocityManager, which will read name of classes
and keys from some property or configuration (and may be, if key is not
configurated -- use some analog of DefaultKey annotation, which we than change
to org.apache.velocity.tools.config.DefualtKey when VelocityTools-2.0 will be
released) 

 release this as snapshot.

Step 2.

4. for plugins: may be velocity-aware plugins want to add some objects or
macroses to default velocity context, than add velocity context initialization
callback to plugin interface.

 release this as snapshot.



And what a time frame ?  Can I help in something ? (for example by writing
1.1,1.2,1.3 and submitting a patch)



 Thanks
 -Vincent
 
  rssh wrote:
  Good day, community,
 
  Are general velocity tools objects (particullary I'm interestin in
  MathTool)
  accessible from xwiki templates ?
 
  If yes - where names are described ? [standard names, such as
  'math' for
  math does not work].
 
  P.S. (Curiosly,  I can't find initialization of velocity context
  in code,
  but from other side velocity-tools jar is bundled with
  distribution. )
 
 
  --
  Ruslan Shevchenko
  GradSoft. http://www.gradsoft.ua
 
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
  --
  Ruslan Shevchenko
  GradSoft. http://www.gradsoft.ua
 
  ___
  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
 
 
 
  --
  Ruslan Shevchenko
  GradSoft. http://www.gradsoft.ua
 
  ___
  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



--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua

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


Re: [xwiki-users] Macros in XWiki.org dev guide

2008-01-31 Thread Jerome Velociter
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf
 Of Jerome Velociter
 Sent: Wednesday, January 30, 2008 3:37 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] Macros in XWiki.org dev guide

 Hello,

  The dev guides do a fine job explaining the use of groovy and
 velocity
  code snippets.  They also explain how to develop applications and
  plugins by creating classes.  However they don't do much to explain
 the
  creation of macros; that or I'm failing to find this.
 
  I greatly prefer using macros over copy/paste coding snippets into
 each
  article.  I managed to find this lovely article about creating
 Radeox
  macros in xwiki:
 
 http://hritcu.wordpress.com/2007/03/13/xwiki-plugins-tips-and-tricks/
  but I'm struggling to find info on creating/adding what I believe
 are
  referred to as Velocity Macros (#macroName(var1, var2...)).  I
 assume
  help has been requested on this repeatedly, but I seem to again be
  having poor luck in my keyword searches.  Looking at trends in macro
  submissions, Velocity macros seem to be preferable in most cases,
 are
  they?  Does each have strengths and weaknesses?

 You will find Velocity macros documentation in the apache velocity
 user
 guide :
 http://velocity.apache.org/engine/releases/velocity-1.5/user-
 guide.html#velocimacros
 (Agreed, did not found that link on first google shot ;))
 Velocity macros are very usefull within XWiki. You can define those
 either
 in the macros.vm file of your skin, or inside wiki pages. The first
 option
 has the advantage of letting the macros defined be available for every
 document of your wiki; but the file can grow quickly if you have a lot
 of
 macros, so the second option is there, precisely for
 application-specific
 macros.
 Best practice for this second option is to have one or several
 documents
 that contains your application macros, and include that document from
 the
 page that will actually use them, with the #includeMacros statement ;
 for
 example :

 #includeMacros(MyAppCode.AppMacros)

 A part from that, there is very little XWiki-specific to know to write
 velocity macros within your wiki. You can access the full XWiki API
 inside
 your macro as you would usually do when scripting velocity inside a
 wiki
 document.

 Hope this help, and we'd be very keen on you contributing your
 experience
 with velocimacros for xwiki on the dev guide.

 Regards,
 Jerome.

 That's exactly what I wanted to know, thank you!  Now I wonder if
 there's some way to get the best of both worlds.  Users without disk
 access cannot edit the macros.vm file, and it's a pain to have to
 include the code segments every time you want to use itJust musing
 but there must be a way to write a generic call that fetches a segment
 from a specified object (or page, whatever) on xwiki and then calls the
 contained macro using a variable number of arguments (and only pulls in
 the code once per page).

What I can think of now is having your skin as XWikiDocument (possibly
extending one you have on filesystem). There might be ways to parse
content from a document from within the macros.vm file, so that you have
macros available everywhere, and stored in wiki pages... Not sure how,
must be experimented I guess.

Jerome.


 But yes, that's what I needed to know to get started, thanks again.

 -Paul Grodt
 ___
 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] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vanek Martin
Hello
 
Will 1.3 strem have same database schema as 1.2?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vincent Massol
Sent: Wednesday, January 30, 2008 5:16 PM
To: XWiki Developers; XWiki Users
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released


The XWiki development team is pleased to announce the release of XWiki 
Enterprise1.3 Milestone 1.

Go grab it at  http://www.xwiki.org/xwiki/bin/view/Main/Download


First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add the new 
xwiki.org skin
* Improve performances (less Javascript files, more optimized CSS, better 
caching, etc)

Main changes from 1.2.1: 

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution. They are now 
available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate 3.2.5.ga version.

+ lots of other changes, see Platform details and XWiki Enterprise details.

For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1 
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise121 

Thanks
-The XWiki dev team

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


Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vincent Massol

Hi Martin (or is it Vanek?),

On Jan 31, 2008, at 2:24 PM, Vanek Martin wrote:


Hello

Will 1.3 strem have same database schema as 1.2?


For the moment yes it's not planned to change it but even if it's  
changed we now have an automated migration system in place so that'll  
be transparent (barring bugs of course ;)) for the end users...


Thanks
-Vincent

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  
Behalf Of Vincent Massol

Sent: Wednesday, January 30, 2008 5:16 PM
To: XWiki Developers; XWiki Users
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

The XWiki development team is pleased to announce the release of  
XWiki Enterprise1.3 Milestone 1.


Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add  
the new xwiki.org skin
* Improve performances (less Javascript files, more optimized  
CSS, better caching, etc)


Main changes from 1.2.1:

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution.  
They are now available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate  
3.2.5.ga version.


+ lots of other changes, see Platform details and XWiki Enterprise  
details.


For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1

Thanks
-The XWiki dev team
___
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] velocity tools access

2008-01-31 Thread Vincent Massol
I forgot to mention that I've just added a bridge to access xwiki  
components from non component code,

see http://jira.xwiki.org/jira/browse/XWIKI-2050

-Vincent

On Jan 31, 2008, at 3:08 PM, Vincent Massol wrote:



On Jan 31, 2008, at 10:45 AM, rssh wrote:


On Thu, 31 Jan 2008 10:05:52 +0100, Vincent Massol wrote

On Jan 31, 2008, at 9:58 AM, rssh wrote:


On Thu, 31 Jan 2008 09:13:32 +0100, Vincent Massol wrote

On Jan 31, 2008, at 7:41 AM, rssh wrote:


On Wed, 30 Jan 2008 23:24:21 +0100, Sergiu Dumitriu wrote

Hi,

Velocity tools is not enabled yet. However, this is planned (I  
was
about to do it in the 1.2 timeframe, but didn't have time to  
commit

the code).



O - are you have ready patch ?
If yes, can you publish one ?

(I now need in velocity tools, so I can test this patch on 1.3
SNAPSHOT)


It's very simple. You just need to add the MathTool java bean
instance  to the velocity context and you're done! No need for
velocity tools  servlet or stuff like that.

-Vincent



Yes, but if we want more generalized stuff, than sintuation  
become a

little
more complex:

I think the 'right way' is to keep somewehere static instance of
ToolManager,
create and configure one from some well-known path (better
configurable) on
demand, than in VelocityRendere.prepareContext() merge new-created
context
with context of ToolManager.

(of course, if we want provide standard velocity-tool services,
which can be
externally configured)


The main reason I haven't been touching this part is because I've
written a new Velocity component in the new xwiki architecture and
I'd  like to replace our current velocity code with it. The
component is in  xwiki-core/xwiki-velocity if you want to have a  
look.


My idea would be to provide component configuration that allows
users  to add any bean they want to the velocity context.

WDYT?



Nice.

I looked in xwiki-velocity and was not able to figure: what is it.  
Now

understood that it is just not finished ;)


exactly...

Functionality you tell about is exactly a ToolManager in  
VelocityTools 2.0:
it read class name from configuration, get through reflection  
annotation

'DefaultKey', than add tool to context (in application scope).

I guess, that you have implementation plan like next:

Step 1.

1.1. add to VelocityManager  method 'createContext' (or initialize  
existing

context), which will create


Yes exactly.

1.2. call VelocityManager.createContext from  
VelocityRendere.prepareContext()


Yes and anywhere the code needs to get either a velocity engine  
object or a base velocity context.



(it's means that classes must be moved to xwiki-core package ?)


Not sure what you mean xwiki-core since it's already in xwiki-core.  
Do you mean moving it into a component?  If so the answer is yes  
eventually since all xwiki-core/ code will be eventually moved to  
components. See http://dev.xwiki.org/xwiki/bin/view/Design/ArchitectureV2 
 for more information.


Since this is big work we'll need to do it slowly piece by piece.

1.3. add configure method to VelocityManager, which will read name  
of classes
and keys from some property or configuration (and may be, if key is  
not
configurated -- use some analog of DefaultKey annotation, which we  
than change
to org.apache.velocity.tools.config.DefualtKey when  
VelocityTools-2.0 will be

released)


Yes.

I don't know about VelocityTools v2.0.

But yes, the idea is for the moment to use the definition in  
components.xml and later to use XWiki's Configuration service when  
it's there. This is one service I need to work on since it'll be  
needed by almost every components.



release this as snapshot.

Step 2.

4. for plugins: may be velocity-aware plugins want to add some  
objects or
macroses to default velocity context, than add velocity context  
initialization

callback to plugin interface.

release this as snapshot.


For the moment the plan is to continue putting the velocity context  
into the XWiki Context so any code (plugins or other code) requiring  
the velocity context can get it from the XWiki Context.


And what a time frame ?  Can I help in something ? (for example by  
writing

1.1,1.2,1.3 and submitting a patch)


Time frame is ASAP so if you can help that's great.

Re 1.3 please do something similar that is already done for  
configuring the velocity engine.


Thanks!
-Vincent

[snip]



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


Re: [xwiki-users] velocity tools access

2008-01-31 Thread Vincent Massol

On Jan 31, 2008, at 10:45 AM, rssh wrote:

 On Thu, 31 Jan 2008 10:05:52 +0100, Vincent Massol wrote
 On Jan 31, 2008, at 9:58 AM, rssh wrote:

 On Thu, 31 Jan 2008 09:13:32 +0100, Vincent Massol wrote
 On Jan 31, 2008, at 7:41 AM, rssh wrote:

 On Wed, 30 Jan 2008 23:24:21 +0100, Sergiu Dumitriu wrote
 Hi,

 Velocity tools is not enabled yet. However, this is planned (I  
 was
 about to do it in the 1.2 timeframe, but didn't have time to  
 commit
 the code).


 O - are you have ready patch ?
 If yes, can you publish one ?

 (I now need in velocity tools, so I can test this patch on 1.3
 SNAPSHOT)

 It's very simple. You just need to add the MathTool java bean
 instance  to the velocity context and you're done! No need for
 velocity tools  servlet or stuff like that.

 -Vincent


 Yes, but if we want more generalized stuff, than sintuation become a
 little
 more complex:

 I think the 'right way' is to keep somewehere static instance of
 ToolManager,
 create and configure one from some well-known path (better
 configurable) on
 demand, than in VelocityRendere.prepareContext() merge new-created
 context
 with context of ToolManager.

 (of course, if we want provide standard velocity-tool services,
 which can be
 externally configured)

 The main reason I haven't been touching this part is because I've
 written a new Velocity component in the new xwiki architecture and
 I'd  like to replace our current velocity code with it. The
 component is in  xwiki-core/xwiki-velocity if you want to have a  
 look.

 My idea would be to provide component configuration that allows
 users  to add any bean they want to the velocity context.

 WDYT?


 Nice.

 I looked in xwiki-velocity and was not able to figure: what is it. Now
 understood that it is just not finished ;)

exactly...

 Functionality you tell about is exactly a ToolManager in  
 VelocityTools 2.0:
 it read class name from configuration, get through reflection  
 annotation
 'DefaultKey', than add tool to context (in application scope).

 I guess, that you have implementation plan like next:

 Step 1.

 1.1. add to VelocityManager  method 'createContext' (or initialize  
 existing
 context), which will create

Yes exactly.

 1.2. call VelocityManager.createContext from  
 VelocityRendere.prepareContext()

Yes and anywhere the code needs to get either a velocity engine object  
or a base velocity context.

  (it's means that classes must be moved to xwiki-core package ?)

Not sure what you mean xwiki-core since it's already in xwiki-core. Do  
you mean moving it into a component?  If so the answer is yes  
eventually since all xwiki-core/ code will be eventually moved to  
components. See http://dev.xwiki.org/xwiki/bin/view/Design/ArchitectureV2 
  for more information.

Since this is big work we'll need to do it slowly piece by piece.

 1.3. add configure method to VelocityManager, which will read name  
 of classes
 and keys from some property or configuration (and may be, if key is  
 not
 configurated -- use some analog of DefaultKey annotation, which we  
 than change
 to org.apache.velocity.tools.config.DefualtKey when  
 VelocityTools-2.0 will be
 released)

Yes.

I don't know about VelocityTools v2.0.

But yes, the idea is for the moment to use the definition in  
components.xml and later to use XWiki's Configuration service when  
it's there. This is one service I need to work on since it'll be  
needed by almost every components.

 release this as snapshot.

 Step 2.

 4. for plugins: may be velocity-aware plugins want to add some  
 objects or
 macroses to default velocity context, than add velocity context  
 initialization
 callback to plugin interface.

 release this as snapshot.

For the moment the plan is to continue putting the velocity context  
into the XWiki Context so any code (plugins or other code) requiring  
the velocity context can get it from the XWiki Context.

 And what a time frame ?  Can I help in something ? (for example by  
 writing
 1.1,1.2,1.3 and submitting a patch)

Time frame is ASAP so if you can help that's great.

Re 1.3 please do something similar that is already done for  
configuring the velocity engine.

Thanks!
-Vincent

[snip]

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


[xwiki-users] [ANN] XWiki Enterprise Manager 1.0 final released

2008-01-31 Thread Thomas Mortagne
The XWiki development team is pleased to announce the release of XWiki
Enterprise Manager 1.0 final.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the first stable version of XWiki Enterprise Manager. The main
goal of this product is to easily manage wikis farms.

This version is based on XE 1.2.1 and bundles Application Manager and
Wiki Manager applications/plugins.

- XE: http://enterprise.xwiki.org
- Application Manager :
http://code.xwiki.org/xwiki/bin/view/Plugins/ApplicationManagerPlugin
and 
http://code.xwiki.org/xwiki/bin/view/Applications/ApplicationManagerApplication
- Wiki Manager :
http://code.xwiki.org/xwiki/bin/view/Plugins/WikiManagerPlugin and
http://code.xwiki.org/xwiki/bin/view/Applications/WikiManagerApplication

Changes from 1.0RC1:
* XWIKI-2028 - Can't delete document using Document.delete if user
does not have programming rights (makes applications and wikis delete
impossible for user without programming rights)
* XWIKI-2027 - Lucene plugin filter some pages in the search result list
* XAAM-53: DefaultXObjectDocument.mergeObject does not overwrite
fields that not null (Some fields are not taken into account when
creating the new wiki or new application).
* XAWM-50: Trying to create a wiki without wiki name should return error
* XAWM-49: Hide Activity option

For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM10

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vanek Martin
Hi,
it's Martin. I don't know why in this strange country is first name written as 
second in full name, but i think it is some dark ages communistic and 
bureaucratic superstition or something like that. We even walk on hands, and 
write with legs! Don't ask how we eat.
 
Well my former question targets how safe is to use 1.3 milestones for only 
internal but quite should be working deployment. I would like to avoid 
repairing corrupted referential integrity or thing like that, or making clean 
db reinstall, but I'd like to use and test 1.3 builds.
 
nitraM

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Vincent Massol
Sent: Thursday, January 31, 2008 2:29 PM
To: XWiki Users
Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released


Hi Martin (or is it Vanek?), 

On Jan 31, 2008, at 2:24 PM, Vanek Martin wrote:


Hello
 
Will 1.3 strem have same database schema as 1.2?


For the moment yes it's not planned to change it but even if it's changed we 
now have an automated migration system in place so that'll be transparent 
(barring bugs of course ;)) for the end users...

Thanks
-Vincent

-Original Message-
From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED] Behalf Of Vincent Massol
Sent: Wednesday, January 30, 2008 5:16 PM
To: XWiki Developers; XWiki Users
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1 Released


The XWiki development team is pleased to announce the release of XWiki 
Enterprise1.3 Milestone 1.

Go grab it at  http://www.xwiki.org/xwiki/bin/view/Main/Download


First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add the new 
xwiki.org skin
* Improve performances (less Javascript files, more optimized CSS, better 
caching, etc)

Main changes from 1.2.1: 

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution. They are now 
available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate 3.2.5.ga version.

+ lots of other changes, see Platform details and XWiki Enterprise details.

For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1 
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise121 

Thanks
-The XWiki dev team

___
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] [ANN] XWiki Enterprise 1.3 Milestone 1 Released

2008-01-31 Thread Vincent Massol


On Jan 31, 2008, at 4:17 PM, Vanek Martin wrote:


Hi,
it's Martin. I don't know why in this strange country is first name  
written as second in full name, but i think it is some dark ages  
communistic and bureaucratic superstition or something like that. We  
even walk on hands, and write with legs! Don't ask how we eat.


Well my former question targets how safe is to use 1.3 milestones  
for only internal but quite should be working deployment. I would  
like to avoid repairing corrupted referential integrity or thing  
like that, or making clean db reinstall, but I'd like to use and  
test 1.3 builds.


Right now I'd say 1.3M1 is as safe (possibly even more stable) than  
1.2.1. The only potential issue is that we've upgrade to Hibernate  
3.2.5.ga in 1.3M1 whereas 1.2.1 is using an older version but it's  
unlikely this will cause any trouble.


Thanks
-Vincent

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  
Behalf Of Vincent Massol

Sent: Thursday, January 31, 2008 2:29 PM
To: XWiki Users
Subject: Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1  
Released


Hi Martin (or is it Vanek?),

On Jan 31, 2008, at 2:24 PM, Vanek Martin wrote:


Hello

Will 1.3 strem have same database schema as 1.2?


For the moment yes it's not planned to change it but even if it's  
changed we now have an automated migration system in place so  
that'll be transparent (barring bugs of course ;)) for the end  
users...


Thanks
-Vincent

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  
Behalf Of Vincent Massol

Sent: Wednesday, January 30, 2008 5:16 PM
To: XWiki Developers; XWiki Users
Subject: [xwiki-users] [ANN] XWiki Enterprise 1.3 Milestone 1  
Released


The XWiki development team is pleased to announce the release of  
XWiki Enterprise1.3 Milestone 1.


Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

First milestone of the XWiki Enterprise 1.3 version.

Note that general goals for XWiki Enterprise 1.3 are:
* Bug fixes
* More automated tests
* Clean up the Skins, make it easy to create new skins and add  
the new xwiki.org skin
* Improve performances (less Javascript files, more optimized  
CSS, better caching, etc)


Main changes from 1.2.1:

* A good deal of bugs fixed
* Added ability to export pages as HTML in a zip file
* Added ability to export the current page in a XAR
* Removed Finch and Dodo skin from the default distribution.  
They are now available as separate downloads.
* Better support for Oracle with the upgrade to Hibernate  
3.2.5.ga version.


+ lots of other changes, see Platform details and XWiki Enterprise  
details.


For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise13M1

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


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


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


[xwiki-users] Preliminary Toucan Skin

2008-01-31 Thread Vincent Massol
Hi everyone,

If some are you are interesting in testing out the new Toucan skin  
(the skin on xwiki.org) on your install you can download a preview here
http://tinyurl.com/yts6gr

Just unzip it in your skins/ directory next to the albatross/ directory.

Please report any issue you have here:
http://jira.xwiki.org/jira/browse/XSTOUCAN-1

Thanks
-Vincent

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


Re: [xwiki-users] Preliminary Toucan Skin

2008-01-31 Thread Vincent Massol

On Jan 31, 2008, at 6:05 PM, Vincent Massol wrote:

 Hi everyone,

 If some are you are interesting in testing out the new Toucan skin
 (the skin on xwiki.org) on your install you can download a preview  
 here
 http://tinyurl.com/yts6gr

 Just unzip it in your skins/ directory next to the albatross/  
 directory.

 Please report any issue you have here:
 http://jira.xwiki.org/jira/browse/XSTOUCAN-1

I forgot to mention that you'll also need the new EditModes Panel  
which you can get from here:
http://tinyurl.com/yqtkt2

Thanks
-Vincent

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


Re: [xwiki-users] getting documents I've been involved in

2008-01-31 Thread Sergiu Dumitriu
Hi,

The code from the My recent modifications panel doesn't help much, as 
it lists only documents which have the user as the most recent author, 
and not those that were sometime edited by the user.

A proper query would be:

select distinct doc.fullName from XWikiDocument doc, XWikiRCSNodeInfo ni 
where ni.id.docId = doc.id and ni.author = 'the user name'

This query lists only the name of the documents, not the versions. If 
you also need the version numbers, use this:

select doc.fullName, ni.id.version1, ni.id.version2 from XWikiDocument 
doc, XWikiRCSNodeInfo ni where ni.id.docId = doc.id and ni.author = 'the 
user name'

These queries need programming rights, so you will have to write a java 
plugin that executes them and use the plugin from velocity, or put them 
in a page that will always have programming rights.

Sergiu

[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Paul Libbrecht wrote:
 hello,

 what would be the query to obtain all the documents that a user has 
 been editing, at any revision?

 thanks

 paul
 
 Hi Paul
 
 Could the code in My Recent Modifications panel help you?
 
 #set($recentDocs = $xwiki.searchDocuments(where 1=1 and 
 doc.author='$context.user' order by doc.date desc, 5, 0))
 #if($recentDocs.size()  0 || $showEmptyPanels)
 #panelheader($msg.get(My Recent Modifications))
 #set($first = true)
 #foreach($docname in $recentDocs)
 #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
 #if($first == true)
 #set($first = false)
 #else
 span class=pitemseparator | /span
 #end
 span class=panelitema 
 href=$rdoc.getURL(view)$rdoc.displayTitle/a/span
 #end
 #panelfooter()
 #end
 
 HTH,
 
 Ricardo
 

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


Re: [xwiki-users] velocity tools access

2008-01-31 Thread Sergiu Dumitriu
You can look at the patch from http://jira.xwiki.org/jira/browse/XWIKI-1695

rssh wrote:
 On Wed, 30 Jan 2008 23:24:21 +0100, Sergiu Dumitriu wrote
 Hi,

 Velocity tools is not enabled yet. However, this is planned (I was 
 about to do it in the 1.2 timeframe, but didn't have time to commit 
 the code).

 
 O - are you have ready patch ?
 If yes, can you publish one ?
  
 (I now need in velocity tools, so I can test this patch on 1.3 SNAPSHOT)
 
 
 Sergiu

 rssh wrote:
 Good day, community,

 Are general velocity tools objects (particullary I'm interestin in 
 MathTool) 
 accessible from xwiki templates ?

 If yes - where names are described ? [standard names, such as 'math' for 
 math does not work]. 

 P.S. (Curiosly,  I can't find initialization of velocity context in code, 
 but from other side velocity-tools jar is bundled with distribution. )



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


Re: [xwiki-users] copy the rigths

2008-01-31 Thread raffovi

Sorry I make a mistake writing the mail the used code is:

Vector XWikiRights = doc.getObjects(XWiki.XWikiRights);
for (Object singleObj : XWikiRights) {
Object entry = targetDoc.newObject(XWiki.XWikiRights);
entry.set(groups,singleObj.getProperty(groups).getValue());
entry.set(users,singleObj.getProperty(users).getValue());
entry.set(level,singleObj.getProperty(level).getValue());
entry.set(allow,singleObj.getProperty(allow).getValue());
}
targetDoc.save();

I try to use something like
 targetDoc.set(groups, singleObj.getProperty(groups).getValue());

withteh same result ... the rights on targetDoc aren't set.

Thanks a lot
Raffo
-- 
View this message in context: 
http://www.nabble.com/copy-the-rigths-tp15003379p15213355.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] Does XWiki has capability to monitor users who view pages and download stuffs off the website?

2008-01-31 Thread Eduardo Dela Rosa
Hi All,

I know that XWiki Enterprise has the ability to record user views. But does
it have the capability to monitor users (say remote IP Address or logged-in
users) who download stuffs off the website?

If there isn't, can this be a good candidate for Plug-in development (is it
possible)?

Cheers!
-- 
Eduardo Dela Rosa
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users