Hi colleagues!
I need some help for the Scheduler.
I already have some not small script in a velocity. This script select some
pages with complex conditions (hql), make some calculations and sending
emails. Now this script is working when I simply open it page (where script
is placed).
I need to make automatic schedule for this script (for example - every day).
Unfortunately, scheduler scripts permit only groovy scripts ... Also,
problem for me - I dont't now groovy at all (velocity - so-so) and I am not
a programmer. For me - groovy learning is difficult (in any case - not
quickly).
My question - is any possibility to use my velocity script without total
rewriting for groovy? Maybe I can write groovy script with redirection for
my page with velocity script? Maybe is it possible to include code of one
scripting language in another?
If is not (only need to totally rewrite script to grovvy) can somebody can
help me in this operation? I attached my original velocity script (it's
working fine).
http://xwiki.475771.n2.nabble.com/file/n5666438/velocity_script.txt
velocity_script.txt
--
Thanks beforehand
Eugen Colesnicov
--
View this message in context: http://xwiki.475771.n2.nabble.com/Using-Scheduler-issues-groovy-questions-t…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi! Maybe somebody can help me.
I need to select some docs with own class. Together I need 3 filters:
1) by class: only "myclass"
2) by property value: where "myproperty" = "myvalue"
3) by date: where doc date = current date - 5 days
I created xwql script with 2 creterias and it's working well:
select obj.name from Document doc, doc.object(mySpace.myClass) as obj where
obj.myProperty like 'myValue' order by obj.name
How need to add one more criteria by date?
Thanks beforehand!
Eugen Colesnicov
--
View this message in context: http://xwiki.475771.n2.nabble.com/using-XWQL-with-additional-search-criteri…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
Infos: I've a class to create some services (Prestations) with (at this
time) 3 fields: name, town and country.
They are created with a name for the doc, like MyService01, MyService02, etc
(for the tests)
Second part, there is another class used to evaluate each service. The
system needed is to have a form of evaluation created each time that any
person want make an evaluation for a service.
So, I would like to create a system of pages called like
MyService01_Eval_001, MyService01_Eval_002, MyService01_Eval_003, etc. for
an evaluation of MyService01, and MyService02_Eval_001,
MyService02_Eval_002, etc. for an evaluation of MyService02 for example.
My problem, when I want create an evalutation, I get back the name of the
service (spent in hidden parameter in the form) then I would like to use it
in the code to create page and call the class template of the second class
with the code:
<code>
#if("$!request.xaction" == 'createevaluationtype01')
#if($docname != '' && !$xwiki.exists($docname))
#if("$!request.xaction" == 'createevaluationtype01')
$xwiki.copyDocument('EtudeCode.EtudeRatingType01Template', $docname)
#set($etudeDoc= $xwiki.getDocument($docname))
$etudeDoc.setTitle(${title})
$etudeDoc.setParent($doc.getFullName())
$etudeDoc.save()
$response.sendRedirect($etudeDoc.getURL('inline'))
#end
#end
#end
</code>
The "$docname" value has the good name when I display it, like for example
"MyService001_Eval_002", but when I click on button the page created is
called "WebHome_Eval_002", I can't keep the name of the service evaluated.
Really, I don't understand why and I don't find any soluce to my problem
since now almost 3 days and after tried several methods :(
Someone could help me for this please ;)
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problem-to-give-a-name-to-a-page-with-Cla…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hey All.
So I found some documentation on setting up jetty with SSL/HTTPs
I have done this with Apache in an wamp environment, but because I wanted to
test xwiki out of the box I am using just the full packaged installed
product.
The site I found discussed on how to generate a keystore, and I have done
that, I am not worried about CSR at this point because its for testing
purposes.
So now that I have a keystore in hand i open up the jetty config xml and it
says to set up a SSL connection i need to run the following command.
java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml
and that I should look in the jetty-ssl.xml file, which is non existent.
Do you have any advice as to where to point me on this. The reason that I
am coming here is because I am in a time crunch to get this done asap.
any and all help will be greatly appreciated
--
View this message in context: http://xwiki.475771.n2.nabble.com/Setting-up-Xwiki-for-HTTPs-tp5663073p5663…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi!
Sorry, but I'm kind of a mess with this topic...
Working with old XWiki XE releases, there was a way of controlling if
attachments, comments, (information) and history were displayed or not
by adding four string properties to the class XWiki.XWikiPreferences.
Then, on a per document basis it were possible to set each of them to
control this feature.
#set ($showcomments="no")
#set ($showattachments = "no")
#set ($showhistory="no")
#set ($showinformation = "no")
Now, working with Xe/XEM 2.4.1, the #set for these four variables keeps
working, but I don't know now to control this for a whole wiki because
when editing XWiki.XWikiPreferences, the editor claims that these four
properties have been deprecated and offers the an option to delete them.
If I delete them, the settings keep working.
I also found this in the configuration guide:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HTurningo…
So, please, where/how is now controlled the visibility of those items?
Thanks for your help!
Ricardo
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
The XWiki development team is pleased to announce the release of XWiki
Enterprise and XWiki Enterprise Manager 2.4.4.
Important bug fixed:
* XWIKI-5542 - Different rights in view and rest mode
* XWIKI-5597 - File upload plugin doesn't strip the file path in IE
* XWIKI-5598 - When importing a XAR, ignoring translated documents
does not work
* XWIKI-5309 - rest api query called by XE JumpToPage causes
performance problem and even deadlock
* XWIKI-5387 - Apache commons URIUtil is potentially unsafe
* XWIKI-4366 - Blockquote is badly parsed when multiple lines are
styled together
* XWIKI-5525 - DBList request level cache is ignored
* XWIKI-5591 - HTML to Wiki Syntax 2 looses color in certain cases
* XWIKI-5599 - In the XAR importer UI, the initial space document
count is wrong whenever that space has translated documents
* XWIKI-5530 - LDAP module: Impossible to login with the same UID
if your DN changes
* XWIKI-5523 - NPE during parsing of a sequence
table/style/paragraphe/paragraphe
* XAANNOTATIONS-32 - Highlight does not disappear after deleting
the last annotation from a page
For more information see the Releases notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise244
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM244
Thanks
-The XWiki dev team
Hi all,
I have a XE 2.4.3 instance running on a Tomcat 6 (JDK 1.6.0) and I'm
experiencing that the Tree view of documents doesn't work.
If I use the link
http://<host>:8080/xwiki/bin/view/Main/AllDocs?view=tree I get the
page but a "Loading data..." message is displayed and nothing happens.
Can you help me to figure out a solution?
Thanks,
Loris Conedera
Hi!
I would like to modify the appearance of this area entries for guests
(Export, More Actions and Annotations) allowing these options only for
registered users. Thus, I would like this area to be empty for guests.
I've been playing with *menuview.vm* both in /templates and
/skins/colibri to no avail.
Please, what template is controlling this appearance?
Thanks!
Ricardo
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
Hi,
Our XE/XEM 2.4.1 farm runs in a Tomcat servlet server. Lucene is
currently not working. I'm trying to understand what messages logged in
catalina.out could relate to this problem. We get this
java.io.NotSerializableException during the start up process. See this...
http://ftp.ebiotic.net/fromPeat/catalina.out.201010202219.txt
Could it affect Lucene? Thanks!
Ricardo
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems