Hi,
Im getting my head around job building. One question I have: If I start a job, the context of the job is not the context I need. The script I run is in a subWiki but the context of the job is in the main Wiki. What is the best way to change the context in the job to match the wiki that I am using to start the job?
With kind regards,
Peter
The XWiki development team is proud to announce the availability of XWiki
7.3.
This is a stabilisation release focusing on the Nested Pages feature which
was introduced in XWiki 7.2.
Lots of polishing has been done for the Nested Pages feature integration,
targeting the consequences on the UI redesign and the changes at
applications level. The release includes a couple of bug fixes, a few
dependency upgrades and new UI extension points available for extension
developers.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73
The following people have contributed code to this release:
Clemens Robbenhaar
Ecaterina Moraru (Valica)
Eduard Moraru
Gabriela Smeria
Guillaume Delhumeau
Jean SIMARD
Manuel Smeria
Marius Dumitru Florea
Pascal Bastien
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
The XWiki development team is proud to announce the availability of XWiki
7.3 Release Candidate 1. This release candidate includes a couple of bug
fixes and a few dependency upgrades, as well as some improvements related
to Nested Pages. The extension developers should check the new UI extension
points available for the top menu.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73RC1
The following people have contributed code to this release:
Clemens Robbenhaar
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
I don't know where to put question about specific extension.
I would like to ask for suggesting some functionality to PlantUML Macro
extension.
http://extensions.xwiki.org/xwiki/bin/view/Extension/PlantUML+Macro
I would like to have option to parameterize type of ouput of PlantUML, e.g.
image or svg and with option to set the default output type.
Is it possible to add this? I know that not all types of diagrams support
svg, but for that case I would use explicit type.
Thank you
Best regards,
Miroslav Galajda
The XWiki development team is proud to announce the availability of XWiki
6.4.6.
This is mainly a stabilization release that fixes important bugs discovered
in the 6.4.5 and earlier versions.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki646
The following people have contributed code to this release:
Clemens Robbenhaar
Denis Gervalle
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
I try without success to remove some version from document with groovy :-(
To refresh group cache I add & remove a member in a user group but I don't want my group be poluted by this operation.
I want to launch this groovy script but unfortunaly this one crash with
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context)
I use
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/doc/XWik…
but I obtain this error:
Caused by: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: com.xpn.xwiki.doc.XWikiDocumentArchive.removeVersions() is applicable for argument types: (java.lang.String, java.lang.String, javax.script.SimpleScriptContext) values: [EndVersionToDel, StartVersionToDel, javax.script.SimpleScriptContext@4ee56e53]
Possible solutions: removeVersions(org.suigeneris.jrcs.rcs.Version, org.suigeneris.jrcs.rcs.Version, com.xpn.xwiki.XWikiContext)
If someone can help me?
NB: groovy is complicated for me (and I don't understand what is context and how to get it)
Thxs
Pascal B
{{groovy}}
// My group to refresh
def MyGroup = xwiki.getDocument('XWiki.GF_PiloteP3')
// My temp user
udoc = xwiki.getDocument('XWiki.xwikilecteur')
// Add this temp user
gObj = MyGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',udoc.fullName)
MyGroup.save()
// Store version to delete
def StartVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + "' \n")
// Remove this temp user
MyGroup.removeObject(gObj)
MyGroup.save()
// Store new version to delete
def EndVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + " \n")
// get document Archive
def gArch = MyGroup.getDocumentArchive()
//try to remove 2 previous version archive
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context)
print(MyGroup.getVersion()+ " \n context: " + context + " \n")
{{/groovy}}
Hello list,
As I reported, shortURLs worked well (and my issue about error 404 is
resolve by upgrading to 7.3-m2).
But I need to go a tick further in my ShortURLs attempt: I want some
files to be statically served.
Typical cases include:
- /favicon.ico
- /robots.txt
- the google or other witnesses (e.g. StartSSL)
It seems that the URLRewrite suggestion is really good for the flexible
page rewrite but it does not have the flexibility of Apache mod_rewrite
so that it serves files or tests if files are existing (at least not
with the urlrewrite.xml syntax).
I tried to map manually servlet-names to Jetty's defaultServlet but that
has not been enough yet. Filters are probably byting (or that
DefaultServlet is something else, unfortunately, "static file" is not a
predefined servlet type of the servlet's standard).
Is there another procedure?
I know I can make it in mod_rewrite but I've been trying to focus on
making it all in XWiki and I am surely not alone expecting that.
thanks
Paul