Re: [xwiki-users] Convert XE to XEM

2009-01-21 Thread hel-o

OK,

got it working (somehow) i could recreate the wiki descriptors for the
virtual wikis but i cannot recreate the descriptor for the main wiki (Error
i posted before).

I'll add a warning in the documentation that you should not convert a
manually created XE with virtual wikis to XEM.

Thanks
Helmut


hel-o wrote:
 
 Hi,
 
 i turned off the virtual mode so i can access the main wiki again. created
 the pages for the virtual wikis but when i try to creat the page for the
 main wiki i get the following error
 
 Detailed information:
 
 Error number 3201 in 3: Exception while saving document
 XWiki.XWikiServerXwiki
 Wrapped Exception: Row was updated or deleted by another transaction (or
 unsaved-value mapping was incorrect):
 [com.xpn.xwiki.objects.LargeStringProperty#
 
 
 ]
 com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
 saving document XWiki.XWikiServerXwiki
 Wrapped Exception: Row was updated or deleted by another transaction (or
 unsaved-value mapping was incorrect):
 [com.xpn.xwiki.objects.LargeStringProperty#
 
 
 ]
   at
 com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:590)
   at
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:135)
   at
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
   at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1282)
 
 

-- 
View this message in context: 
http://n2.nabble.com/Convert-XE-to-XEM-tp2169510p2191711.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] Panel Wizard at MyXwiki

2009-01-21 Thread Ajdin Brandic
I'm unable to get into Panel Wizard on
http://patternlanguagenetwork.myxwiki.org

Does it require Programming rights?

It just hangs for 20+ secs then the main Admin page is displayed again.

I want to add a new panel TagCloud based on Tag Cloud Snippet.

Thanks
Ajdin
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Purge Document Versions via Script

2009-01-21 Thread Tronicek

Is there a way to purge document revisions using Velocity or Groovy?

Someone can see actual and last revision by:
${doc.getVersion()}br
${doc.getPreviousDocument().getVersion()}br

The next is deleting the document with all revisions...
Don't try to purge with(!):
${doc.getPreviousDocument().delete()}

Thanks,
Rudolf
-- 
View this message in context: 
http://n2.nabble.com/Purge-Document-Versions-via-Script-tp2192579p2192579.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] Adding survey question and details to page template...

2009-01-21 Thread KevinC

One of the things I've been asked to accomplish using XWiki is a single
question *survey* type section at the bottom of my FAQ pages. Something
like:


68% of 158 people found this information useful.
Was this information helpful? O Yes O No
[Submit]


You get the idea. Now, the problem is I'm not sure exactly how I'd
accomplish something like this. I know I can create a survey class and sheet
that will allow me to store the data and display it the way I want, but how
do I update the values when the person clicks submit? Would it just be an
update SQL statement, or would I update properties of an attached instance
of the survey class and then save the page? Any hints or examples would be
appreciated. I found the Polls application, but it only supports creating a
new poll and not updating values in an existing Poll, which is more like
what I am looking to do.



Thanks!
.:. Kevin

-- 
View this message in context: 
http://n2.nabble.com/Adding-survey-question-and-details-to-page-template...-tp2192675p2192675.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

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


Re: [xwiki-users] Purge Document Versions via Script

2009-01-21 Thread KevinC

I'm guessing you could use something like:

http://code.xwiki.org/xwiki/bin/view/Snippets/DeleteSpaceSnippet

to build a listing of the files versions and then create links or checkboxes
or something like that to delete the ones you are interested in.

You can get the full list of versions using $doc.getRevisions() which
returns a org.suigeneris.jrcs.rcs.Version[]. You could then iterate through
that list and delete all versions but the last.


HTH,
.:. Kevin
-- 
View this message in context: 
http://n2.nabble.com/Purge-Document-Versions-via-Script-tp2192579p2192728.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

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


Re: [xwiki-users] Purge Document Versions via Script

2009-01-21 Thread Jerome Velociter
If what you want to do is remove all old revisions from a document but 
keep the current one, you can use the following :

$doc.document.resetArchive($context.context);

It's not a public API, so you will need to save the page with a users 
who has the programming right granted

Hopes it helps,
Jerome

Tronicek wrote:
 Is there a way to purge document revisions using Velocity or Groovy?

 Someone can see actual and last revision by:
 ${doc.getVersion()}br
 ${doc.getPreviousDocument().getVersion()}br

 The next is deleting the document with all revisions...
 Don't try to purge with(!):
 ${doc.getPreviousDocument().delete()}

 Thanks,
 Rudolf

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


Re: [xwiki-users] Unable to log out and to move panels in virtual wiki

2009-01-21 Thread christophe perinaud
Hello,

I use virtual path for wikis so i access with http://127.0.0.1/wikiname
And cookiesdomain is set to blank

Do i need to set it even for a virtual path ? If yes wich value ?

When i try to log out from my virtual itwiki the URL set for the log out
is :
http://127.0.0.1/xwiki/wiki/itwiki/logout/XWiki/XWikiLogout?xredirect=http%3A%2F%2F127.0.0.1%2Fxwiki%2Fwiki%2Fitwiki%2Fview%2FMain%2F

Thanks for your help

Here is the xwiki.cfg

xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0
xwiki.encoding=ISO-8859-1
xwiki.section.edit=1
xwiki.backlinks=1
xwiki.tags=1
xwiki.store.migration=1
xwiki.virtual=1
xwiki.virtual.redirect=
http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist
xwiki.virtual.usepath=1
xwiki.inactiveuser.allowedpages=
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=
xwiki.authentication.logoutpage=(/[^/]+/|/)logout/*
xwiki.authentication.unauthorized_code=200
xwiki.editcomment=1
xwiki.editcomment.mandatory=0
xwiki.authentication.ldap.server=127.0.0.1
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.base_DN=
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
xwiki.defaultskin=toucan
xwiki.defaultbaseskin=albatross
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.calendar.CalendarPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\
com.xpn.xwiki.plugin.feed.FeedPlugin,\
com.xpn.xwiki.plugin.ldap.LDAPPlugin,\
com.xpn.xwiki.plugin.google.GooglePlugin,\
com.xpn.xwiki.plugin.flickr.FlickrPlugin,\
com.xpn.xwiki.plugin.mail.MailPlugin,\
com.xpn.xwiki.plugin.packaging.PackagePlugin,\
com.xpn.xwiki.plugin.query.QueryPlugin,\
com.xpn.xwiki.plugin.svg.SVGPlugin,\
com.xpn.xwiki.plugin.charts.ChartingPlugin,\
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\
com.xpn.xwiki.plugin.image.ImagePlugin,\
com.xpn.xwiki.plugin.captcha.CaptchaPlugin,\
com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\

com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\
com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\
com.xpn.xwiki.plugin.lucene.LucenePlugin,\
com.xpn.xwiki.plugin.diff.DiffPlugin,\
com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\
com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\
com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \
com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin, \

com.xpn.xwiki.plugin.applicationmanager.ApplicationManagerPlugin, \
com.xpn.xwiki.wysiwyg.server.plugin.WysiwygPlugin
xwiki.stats=1
xwiki.stats.default=1
xwiki.exo=0
xwiki.plugin.laszlo.baseurl=/openlaszlo/xwiki/
xwiki.plugin.laszlo.path=c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps/openlaszlo/xwiki/
xwiki.plugin.image.cache.capacity=30
xwiki.plugin.captcha=0
xwiki.plugins.lucene.indexdir=/tmp
xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
xwiki.plugins.lucene.indexinterval=20
xwiki.plugins.lucene.maxQueueSize=1000
xwiki.work.dir=work



2009/1/20 Thomas Mortagne thomas.morta...@xwiki.com


 What domain are you using for main wiki and virtual wiki ?
 What value did you set in xwiki.cfg for xwiki.authentication.cookiedomains
 ?


 --
 Thomas Mortagne
 ___
 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] Unable to log out and to move panels in virtual wiki

2009-01-21 Thread christophe perinaud
Hello,

I use virtual path for wikis so i access with http://127.0.0.1/wikiname
And cookiesdomain is set to blank

Do i need to set it even for a virtual path ? If yes wich value ?

When i try to log out from my virtual itwiki the URL set for the log out
is :
http://127.0.0.1/xwiki/wiki/itwiki/logout/XWiki/XWikiLogout?xredirect=http%3A%2F%2F127.0.0.1%2Fxwiki%2Fwiki%2Fitwiki%2Fview%2FMain%2F

Thanks for your help

Here is the xwiki.cfg

xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0
xwiki.encoding=ISO-8859-1
xwiki.section.edit=1
xwiki.backlinks=1
xwiki.tags=1
xwiki.store.migration=1
xwiki.virtual=1
xwiki.virtual.redirect=
http://127.0.0.1:9080/xwiki/bin/Main/ThisWikiDoesNotExist
xwiki.virtual.usepath=1
xwiki.inactiveuser.allowedpages=
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=
xwiki.authentication.logoutpage=(/[^/]+/|/)logout/*
xwiki.authentication.unauthorized_code=200
xwiki.editcomment=1
xwiki.editcomment.mandatory=0
xwiki.authentication.ldap.server=127.0.0.1
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.base_DN=
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
xwiki.defaultskin=toucan
xwiki.defaultbaseskin=albatross
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.calendar.CalendarPlugin,\
com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin,\
com.xpn.xwiki.plugin.skinx.CssSkinExtensionPlugin,\
com.xpn.xwiki.plugin.feed.FeedPlugin,\
com.xpn.xwiki.plugin.ldap.LDAPPlugin,\
com.xpn.xwiki.plugin.google.GooglePlugin,\
com.xpn.xwiki.plugin.flickr.FlickrPlugin,\
com.xpn.xwiki.plugin.mail.MailPlugin,\
com.xpn.xwiki.plugin.packaging.PackagePlugin,\
com.xpn.xwiki.plugin.query.QueryPlugin,\
com.xpn.xwiki.plugin.svg.SVGPlugin,\
com.xpn.xwiki.plugin.charts.ChartingPlugin,\
com.xpn.xwiki.plugin.fileupload.FileUploadPlugin,\
com.xpn.xwiki.plugin.image.ImagePlugin,\
com.xpn.xwiki.plugin.captcha.CaptchaPlugin,\
com.xpn.xwiki.plugin.userdirectory.UserDirectoryPlugin,\

com.xpn.xwiki.plugin.usertools.XWikiUserManagementToolsImpl,\
com.xpn.xwiki.plugin.zipexplorer.ZipExplorerPlugin,\
com.xpn.xwiki.plugin.autotag.AutoTagPlugin,\
com.xpn.xwiki.plugin.lucene.LucenePlugin,\
com.xpn.xwiki.plugin.diff.DiffPlugin,\
com.xpn.xwiki.plugin.rightsmanager.RightsManagerPlugin,\
com.xpn.xwiki.plugin.jodatime.JodaTimePlugin,\
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin,\
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin,\
com.xpn.xwiki.plugin.watchlist.WatchListPlugin, \
com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin, \

com.xpn.xwiki.plugin.applicationmanager.ApplicationManagerPlugin, \
com.xpn.xwiki.wysiwyg.server.plugin.WysiwygPlugin
xwiki.stats=1
xwiki.stats.default=1
xwiki.exo=0
xwiki.plugin.laszlo.baseurl=/openlaszlo/xwiki/
xwiki.plugin.laszlo.path=c:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps/openlaszlo/xwiki/
xwiki.plugin.image.cache.capacity=30
xwiki.plugin.captcha=0
xwiki.plugins.lucene.indexdir=/tmp
xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
xwiki.plugins.lucene.indexinterval=20
xwiki.plugins.lucene.maxQueueSize=1000
xwiki.work.dir=work



2009/1/20 Thomas Mortagne thomas.morta...@xwiki.com


 What domain are you using for main wiki and virtual wiki ?
 What value did you set in xwiki.cfg for xwiki.authentication.cookiedomains
 ?


 --
 Thomas Mortagne
 ___
 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] xwiki is not even trying to read the xwiki.cfg file

2009-01-21 Thread Minton, Brian
I have a pretty generic (just downloaded and unpacked) xwiki setup.  I tried to 
make some changes to webapps/xwiki/WEB-INF/xwiki.cfg but the file did not seem 
to even get read.  I looked at the atime of the file, and it was the same as 
when I edited it, not when I started the server.  This makes me think I'm 
putting the file in the wrong place.

Thanks,
Brian Minton
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki is not even trying to read the xwiki.cfg file

2009-01-21 Thread Paul Armstrong
At 2009-01-21T16:55-0500, Minton, Brian wrote:
 I have a pretty generic (just downloaded and unpacked) xwiki setup.  I
 tried to make some changes to webapps/xwiki/WEB-INF/xwiki.cfg but the
 file did not seem to even get read.  I looked at the atime of the
 file, and it was the same as when I edited it, not when I started the
 server.  This makes me think I'm putting the file in the wrong place.
 
Did the server actually restart?
Is atime turned off on that filesystem?

Something like the following on Solaris or MacOS:

#!/usr/sbin/dtrace -s
syscall::open*:entry
/NULL != strstr(copyinstr(arg0), xwiki.cfg)/
{
  @[execname, copyinstr(arg0)] = count();
}

Will tell you if it's ever opened (or if attempts are made at least).

Paul

-- 
End dual-measurement, let's finish going metric!
http://gometric.us/
http://www.metric.org/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users