Re: [xwiki-users] Problems with XAR Import into a new wiki on version

2010-04-23 Thread Marius Dumitru Florea
Hi Florian,

Florian Rhomberg wrote:
 Hello!
 The same happens with mysql.
 
 Greetings Florian
 
 -Ursprüngliche Nachricht-
 Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von 
 Florian Rhomberg
 Gesendet: Donnerstag, 22. April 2010 12:41
 An: users@xwiki.org
 Betreff: [xwiki-users] Problems with XAR Import into a new wiki on version
 
 Hi!
 I want to install a new xwiki using tomcat and MSSQL. I already successfully 
 installed this combination with an older version of xwiki. But however when I 
 try to import the XAR File into XWiki I always get the following error in 
 german:
 Importiere xwiki-enterprise-wiki-2.2.5.xar: Fehler während der Vorbereitung 
 des Imports
 
 Translated into English this would mean about: There has been an error during 
 the preparation of the import.
 

 What is the reason for that, is it possible that the  XAR file on the xwiki 
 website may be corrupted? Or is this a MSSQL problem.

It's hard to tell the reason without a stack trace of the exception that 
occurs when you try to import the XAR. Look in the xwiki/tomcat logs.

The XAR file is in fact a ZIP archive so you can rename and unzip it to 
see if it is corrupted or not.

Hope this helps,
Marius

 
 Please help me!
 
 Thanks,
 Florian
 ___
 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


Re: [xwiki-users] Export HTML creates files that show double content

2010-04-23 Thread Thomas Mortagne
Hi,

On Thu, Apr 22, 2010 at 22:28, RobZ zimme...@battelle.org wrote:

 When using the HTML Export feature to output static HTML pages for an entire
 space, each HTML file contains that main content of each wiki page twice.
 Interestingly enough the HTML page does not contain the Comment
 /Attachments/History/Information box that appears at the bottom of each
 page, but instead replicates all of the info from the main page.

 I am trying to create a local (offline) copy of my wiki using HTML and this
 doubling is really causing me a problem.  Possibly related to this, the
 static HTML page is generating this error in my browser:
 http://n2.nabble.com/forum/FileDownload.jtp?type=nid=4946996name=Error.png

 The doubling occurs both in IE 7.0 and Chrome 4.1.

 Any help with how to resolve this would be appreciated.

 Thanks,
 -Rob
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Export-HTML-creates-files-that-show-double-content-tp4946996p4946996.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


The issue is described on http://jira.xwiki.org/jira/browse/XWIKI-4605


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


Re: [xwiki-users] Export HTML creates files that show double content

2010-04-23 Thread Sergiu Dumitriu
On 04/23/2010 01:06 PM, Thomas Mortagne wrote:
 Hi,

 On Thu, Apr 22, 2010 at 22:28, RobZzimme...@battelle.org  wrote:

 When using the HTML Export feature to output static HTML pages for an entire
 space, each HTML file contains that main content of each wiki page twice.
 Interestingly enough the HTML page does not contain the Comment
 /Attachments/History/Information box that appears at the bottom of each
 page, but instead replicates all of the info from the main page.

 I am trying to create a local (offline) copy of my wiki using HTML and this
 doubling is really causing me a problem.  Possibly related to this, the
 static HTML page is generating this error in my browser:
 http://n2.nabble.com/forum/FileDownload.jtp?type=nid=4946996name=Error.png

 The doubling occurs both in IE 7.0 and Chrome 4.1.

 Any help with how to resolve this would be appreciated.

 Thanks,
 -Rob

 The issue is described on http://jira.xwiki.org/jira/browse/XWIKI-4605

Note that the behavior changed in recent versions, now the content is 
not duplicated, but the comments/attachments are completely missing.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problems with XAR Import into a new wiki on version

2010-04-23 Thread Florian Rhomberg
Hi!
After a lot of tries I found the reason why it did not work, the problem was 
the max_allowed_packet settings in mysql. If I can mke a suggestion it would be 
helpful that the reason why an import did not work is displayed. The tomcat log 
did not help.

Thanks,
Florian

-Ursprüngliche Nachricht-
Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von 
Marius Dumitru Florea
Gesendet: Freitag, 23. April 2010 09:12
An: XWiki Users
Betreff: Re: [xwiki-users] Problems with XAR Import into a new wiki on version

Hi Florian,

Florian Rhomberg wrote:
 Hello!
 The same happens with mysql.
 
 Greetings Florian
 
 -Ursprüngliche Nachricht-
 Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von 
 Florian Rhomberg
 Gesendet: Donnerstag, 22. April 2010 12:41
 An: users@xwiki.org
 Betreff: [xwiki-users] Problems with XAR Import into a new wiki on version
 
 Hi!
 I want to install a new xwiki using tomcat and MSSQL. I already successfully 
 installed this combination with an older version of xwiki. But however when I 
 try to import the XAR File into XWiki I always get the following error in 
 german:
 Importiere xwiki-enterprise-wiki-2.2.5.xar: Fehler während der Vorbereitung 
 des Imports
 
 Translated into English this would mean about: There has been an error during 
 the preparation of the import.
 

 What is the reason for that, is it possible that the  XAR file on the xwiki 
 website may be corrupted? Or is this a MSSQL problem.

It's hard to tell the reason without a stack trace of the exception that 
occurs when you try to import the XAR. Look in the xwiki/tomcat logs.

The XAR file is in fact a ZIP archive so you can rename and unzip it to 
see if it is corrupted or not.

Hope this helps,
Marius

 
 Please help me!
 
 Thanks,
 Florian
 ___
 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xword 2003

2010-04-23 Thread Florin Ciubotaru
Hi,
On 4/23/2010 12:36 AM, Daniel Johansson wrote:
 Ok, thanks for the update.
 Is there any documentation outlining how to get it installed for 2003?

No. The process is rather extensive and requires rebuilding or manual 
signing of the binaries. Definitely not something for the regular user 
without any dev tools. That snapshot should actually be removed until 
the installer is fixed.

Florin Ciubotaru
 /Daniel


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


Re: [xwiki-users] Formula Macro - rendering methods

2010-04-23 Thread Marine JULIAN
Hello,

As I didn't find a solution about my native renderer problem issue, so I
tried the google charts API one. Unfortunatly, when I write more than a
certain number (not too many) of characters in formula tags, I have an
error. Instead of using the google charts renderer, the snuggletex one is
used...
For instance when I wrote this simple code :
{{formula}}
11\\
11\\
11\\
11\\
11\\
11\\
11\\
11
{{/formula}}
All break lines (\\) weren't rendered. But ! If I write only the four first
lines, all is fine.
Is this a know issue ? What can I do ?

Last question :: When my wiki is local, can it make external HTTP ?
Because, When I want to use the mathtran renderer I have this error :
2010-04-23 15:49:26,238 [
http://localhost:8080/xwiki/bin/tex/Public/FormulaMacro
Again/440bdc8f8001d9d387dbb95e1f1328998c35678a03e22bbf8eb747dc9de8a34d]
ERROR web.XWikiAction - Connection aborted


See Google Charts renderer error lines :
 2010-04-23 12:04:37,463 [
http://localhost:8080/xwiki/bin/view/Public/FormulaMacroAgain] ERROR
formula.FormulaMacro
- Invalid renderer: [googlecharts]. Falling back to the safe
renderer.org.xwiki.component.manager.ComponentLookupException:
Failed to render formula using [googlecharts] renderer
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.render(FormulaMacro.java:162)
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:112)
at
org.xwiki.rendering.internal.macro.formula.FormulaMacro.execute(FormulaMacro.java:57)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
at
org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696)
at
com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:626)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:595)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:497)
at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:123)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at

[xwiki-users] Duplicates URL

2010-04-23 Thread Lunita
HI,

I have this issue with the installation of xwiki 2.4. I 've tried with
previous versions, but the result it's the same; the URL is duplicated:

http://$server/xwiki-enterprise-web-2.4-20100422.100532-35http://
$server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin?srid=Inpt8Uqd

If I delete the first part
(http://$server/xwiki-enterprise-web-2.4-20100422.100532-35)
the connection is OK, but for further movements into de wiki, it turns
duplicate URL again and shows this tomcat message:

HTTP 404 - /xwiki-enterprise-web-2.4-20100422.100532-35http://
$server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin

I have revised hibernate.xml, xwiki.xml and web.xml. Also, if I replace the
conf. files with the 2.2 version conf, files, the error persists although
the version 2.2 is running OK. There's no error on Tomcat Logs, only
database sentences.

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


Re: [xwiki-users] Duplicates URL

2010-04-23 Thread Arnaud bourree
What's about renaming deployed war to xwiki and not
xwiki-enterprise-web-2.4-20100422.100532-35 ?

Arnaud.

2010/4/23 Lunita hoshi.uts...@gmail.com:
 HI,

 I have this issue with the installation of xwiki 2.4. I 've tried with
 previous versions, but the result it's the same; the URL is duplicated:

 http://$server/xwiki-enterprise-web-2.4-20100422.100532-35http://
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin?srid=Inpt8Uqd

 If I delete the first part
 (http://$server/xwiki-enterprise-web-2.4-20100422.100532-35)
 the connection is OK, but for further movements into de wiki, it turns
 duplicate URL again and shows this tomcat message:

 HTTP 404 - /xwiki-enterprise-web-2.4-20100422.100532-35http://
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin

 I have revised hibernate.xml, xwiki.xml and web.xml. Also, if I replace the
 conf. files with the 2.2 version conf, files, the error persists although
 the version 2.2 is running OK. There's no error on Tomcat Logs, only
 database sentences.

 Thanks in advance.
 ___
 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] colorThemeInit and updating theme problem

2010-04-23 Thread Ben Stuggler

Hello,

I would like to have a specific color theme for my users depending of the
groups. So I modified the colorThemeInit.vm to check the user group and
apply a specific theme.

My problem is after logging, I have to refresh the page manually to see the
new theme, even if I click on a link in the wiki.

How can I force a refresh automatically after logging? Should I call the
template colorThemeInit somewhere else ?

Thanks

Regards

Ben
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/colorThemeInit-and-updating-theme-problem-tp4951179p4951179.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] colorThemeInit and updating theme problem

2010-04-23 Thread Sergiu Dumitriu
On 04/23/2010 05:38 PM, Ben Stuggler wrote:

 Hello,

 I would like to have a specific color theme for my users depending of the
 groups. So I modified the colorThemeInit.vm to check the user group and
 apply a specific theme.

 My problem is after logging, I have to refresh the page manually to see the
 new theme, even if I click on a link in the wiki.

 How can I force a refresh automatically after logging? Should I call the
 template colorThemeInit somewhere else ?

This is a browser cache issue. Hard to solve at the moment, since the 
URL of the skin files is the same, yet the content differs.

You can force a hard refresh using some Javascript code,

window.location.reload(true);

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Duplicates URL

2010-04-23 Thread Lunita
It worked!!

Thanks a lot

2010/4/23 Arnaud bourree arnaud.bour...@gmail.com

 What's about renaming deployed war to xwiki and not
 xwiki-enterprise-web-2.4-20100422.100532-35 ?

 Arnaud.

 2010/4/23 Lunita hoshi.uts...@gmail.com:
  HI,
 
  I have this issue with the installation of xwiki 2.4. I 've tried with
  previous versions, but the result it's the same; the URL is duplicated:
 
  http://$server/xwiki-enterprise-web-2.4-20100422.100532-35http://
 
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin?srid=Inpt8Uqd
 
  If I delete the first part
  (http://$server/xwiki-enterprise-web-2.4-20100422.100532-35)
  the connection is OK, but for further movements into de wiki, it turns
  duplicate URL again and shows this tomcat message:
 
  HTTP 404 - /xwiki-enterprise-web-2.4-20100422.100532-35http://
 
 $server/xwiki-enterprise-web-2.4-20100422.100532-35/bin/login/XWiki/XWikiLogin
 
  I have revised hibernate.xml, xwiki.xml and web.xml. Also, if I replace
 the
  conf. files with the 2.2 version conf, files, the error persists although
  the version 2.2 is running OK. There's no error on Tomcat Logs, only
  database sentences.
 
  Thanks in advance.
  ___
  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


Re: [xwiki-users] colorThemeInit and updating theme problem

2010-04-23 Thread Ben Stuggler


Sergiu Dumitriu-2 wrote:
 
 
 This is a browser cache issue. Hard to solve at the moment, since the 
 URL of the skin files is the same, yet the content differs.
 
 You can force a hard refresh using some Javascript code,
 
 window.location.reload(true);
 
 

Thanks, but I really don't know where or what I have to refresh. If I put
this kind of function, for example in the menuview.vm, it will do a loop and
refresh endlessly the page.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/colorThemeInit-and-updating-theme-problem-tp4951179p4951405.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] Export HTML creates files that show double content

2010-04-23 Thread RobZ

Awesome!  Thanks for the link.
-Rob
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Export-HTML-creates-files-that-show-double-content-tp4946996p4951689.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] Export HTML - Remove Menus at top of page

2010-04-23 Thread RobZ

I am exporting my XWiki site into static HTML pages for offline viewing. 
This is working pretty well, but would like to remove the menus (Export,
Actions, Watch, user, Log Out) from the top of each page in the HTML
files.  

I have been playing with view.vm in \skins\colibri of the Zip file, to try
and figure out what is controlling that content, but have not stumbled upon
any way to disable it.

Any help with this would be appreciated.

Thanks,
-Rob
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Export-HTML-Remove-Menus-at-top-of-page-tp4951778p4951778.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] Newbie questions - on-line training

2010-04-23 Thread Chris Haynes
Hello all,

I'm a newbie to XWiki, but have used and developed plugins for another 
Java-based wiki. I've got a few days in which to find out what I'm letting 
myself in for if I switch from that other Wiki to XWiki.

I've spend a couple of hours reading the web site documentation, but can't find 
out if / how certain features I need are supported. 

I'd be ever so grateful if someone who knows their way round XWiki could just 
give me a quick indication of how much is going to be involved to provide the 
following features. Just a quick 'OOB' (out of the box), 'AP' (available 
plugin), 'DN' (development by me needed) or similar against each feature I need 
would be really helpful.

The application is an on-line training programme for a closed charitable 
community. The overall training material is structured into modules. Students 
have modules 'unlocked' for them on an individual basis as they proceed. Each 
module contains a number of chapters, each chapter will be structured into 
sections for readability - a section corresponding to a Wiki page.

Now for the unusual (?) features I need:

- Single login shared with an associated Database programme (a servlet), using 
JAAS. (Preference is to run database and Wiki on a single Jetty instance, as I 
have 6 years Jetty experience).

- That shared login also supplies user's group membership (student, editor, 
admin, etc)

- Info obtained from database indicating which module(s) the student is 
permitted to view (could be done by multiple-group membership),

- Security permissions for individual pages inferred by inheriting permissions 
from the module containing that page, 

- Inter-page references only shown if user is permitted to read those pages OR 
(preferably) alternate paragraph-sized blocks of Wiki text are displayed 
depending on whether an embedded link may be followed i.e.  IF 
page_X_can_be_viewed THEN show_text_A ELSE show_text_B.

- Output to database programme (by API or HTML call) or to machine-readable 
log, on time/date each page viewed by each student, so that student-specific 
log may be compiled,

- 'Print Chapter' command - produces single printable document containing all 
the sections (Wiki Pages) comprising that chapter,

- The above 'Print Chapter' command to omit any embedded 'eye-candy' images 
from that printed chapter (by use of CSS @media ?)

- 'Help me on this topic' button. Sends private email help request to tutor 
with hot-link annotation showing the tutor where the student was when help was 
requested. Must at least identify location by Section (Wiki Page), preferably 
identify by paragraph in section.

Preferable: simple, automatic next page / previous page buttons working through 

- Quality feedback form at end of each chapter, form data sent to database (see 
linkage options above).

Import of pre-written, formatted documents: I've found the XWiki method which 
uses an Open Office instance running on the server, but I'm not sure if the 
virtual server we can afford has enough RAM to cope with this. Is there any 
other way of uploading pre-formatted documents, or of doing the format 
conversion before upload. I think we only need simple formatting such as 
headings, bold, italic text. No tables. Some chapters have already been written 
in M$ Word (can't be helped :-(

Many TIA,

Chris

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


Re: [xwiki-users] Newbie questions - on-line training

2010-04-23 Thread Caleb James DeLisle
Hello Chris,
I think most of these things will require some development but with XWiki 
scripting support and API it should be minimal in most cases.

Chris Haynes wrote:
 Hello all,
 
 I'm a newbie to XWiki, but have used and developed plugins for another 
 Java-based wiki. I've got a few days in which to find out what I'm letting 
 myself in for if I switch from that other Wiki to XWiki.
 
 I've spend a couple of hours reading the web site documentation, but can't 
 find out if / how certain features I need are supported. 
 
 I'd be ever so grateful if someone who knows their way round XWiki could just 
 give me a quick indication of how much is going to be involved to provide the 
 following features. Just a quick 'OOB' (out of the box), 'AP' (available 
 plugin), 'DN' (development by me needed) or similar against each feature I 
 need would be really helpful.
 
 The application is an on-line training programme for a closed charitable 
 community. The overall training material is structured into modules. Students 
 have modules 'unlocked' for them on an individual basis as they proceed. Each 
 module contains a number of chapters, each chapter will be structured into 
 sections for readability - a section corresponding to a Wiki page.
 
 Now for the unusual (?) features I need:
 
 - Single login shared with an associated Database programme (a servlet), 
 using JAAS. (Preference is to run database and Wiki on a single Jetty 
 instance, as I have 6 years Jetty experience).
We don't have a JAAS authentication implementation. To support it you will need 
to implement XWikiAuthService.
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/api/XWikiAuthService.java

 
 - That shared login also supplies user's group membership (student, editor, 
 admin, etc)
There is an interface XWikiGroupService
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/api/XWikiGroupService.java
Another option might be to mirror the users and groups from the database into 
XWiki using script.

 
 - Info obtained from database indicating which module(s) the student is 
 permitted to view (could be done by multiple-group membership),
Again you could implement the right service or use script to mirror the 
permissions from the database in the XWiki system.
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/api/XWikiRightService.java

 
 - Security permissions for individual pages inferred by inheriting 
 permissions from the module containing that page, 
If the modules are each kept in a separate space, you can set permissions on 
each space so we can call this supported out of the box.
Each page also can have a parent page and you can list all children of a 
given page. This could be used to represent chapters.

 
 - Inter-page references only shown if user is permitted to read those pages 
 OR (preferably) alternate paragraph-sized blocks of Wiki text are displayed 
 depending on whether an embedded link may be followed i.e.  IF 
 page_X_can_be_viewed THEN show_text_A ELSE show_text_B.
Not supported, changing it could be done with script, the easy way is to use 
plug in rendering transformations. I don't know much about this topic, maybe 
others can respond?

 
 - Output to database programme (by API or HTML call) or to machine-readable 
 log, on time/date each page viewed by each student, so that student-specific 
 log may be compiled,
We have an activity stream which records such data but I imagine you want it in 
a certain format. You could collect the data from the activity stream table or 
on your own by modifying a velocity file such as view.vm in the webapp folder.
You can write a special XWiki document with script to supply the data on 
request then get the rendered content using XML-RPC, or plain HTTP.
We also support Rest and WebDav but I don't know that they can be used to get 
rendered content.
Alternatively scripts can make HTTP requests so you could also push the data to 
the database instead of pulling from the wiki.

 
 - 'Print Chapter' command - produces single printable document containing all 
 the sections (Wiki Pages) comprising that chapter,
Less than 20 lines of velocity script to include the content of each page in 
the space.

 
 - The above 'Print Chapter' command to omit any embedded 'eye-candy' images 
 from that printed chapter (by use of CSS @media ?)
We do use CSS @media for the printer friendly pages, I'm not a CSS expert so I 
would approach the problem by trying to pattern match and remove image tags in 
the script which bunches the documents together.

 
 - 'Help me on this topic' button. Sends private email help request to tutor 
 with hot-link annotation showing the tutor where the student was when help 
 was requested. Must at least identify location by Section (Wiki Page), 
 preferably identify by paragraph in section.
If there's one help button per 

Re: [xwiki-users] Newbie questions - on-line training

2010-04-23 Thread Chris Haynes

On Saturday, April 24, 2010 at 12:52:57 AM, Caleb James DeLisle wrote:
 Hello Chris,
 I think most of these things will require some development but with
 XWiki scripting support and API it should be minimal in most cases.

...


Excellent! Just the kind of help I was looking for.

Thanks,
Chris

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


Re: [xwiki-users] Newbie questions - on-line training

2010-04-23 Thread Sergiu Dumitriu
On 04/23/2010 09:36 PM, Chris Haynes wrote:
 Hello all,

 I'm a newbie to XWiki, but have used and developed plugins for
 another Java-based wiki. I've got a few days in which to find out
 what I'm letting myself in for if I switch from that other Wiki to
 XWiki.

Most of the development for a custom wiki is done not in Java, but in 
scripting languages on top of Java: Velocity, which is a templating 
language on top of a public API, and Groovy.

 I've spend a couple of hours reading the web site documentation, but
 can't find out if / how certain features I need are supported.

 I'd be ever so grateful if someone who knows their way round XWiki
 could just give me a quick indication of how much is going to be
 involved to provide the following features. Just a quick 'OOB' (out
 of the box), 'AP' (available plugin), 'DN' (development by me needed)
 or similar against each feature I need would be really helpful.

 The application is an on-line training programme for a closed
 charitable community. The overall training material is structured
 into modules. Students have modules 'unlocked' for them on an
 individual basis as they proceed. Each module contains a number of
 chapters, each chapter will be structured into sections for
 readability - a section corresponding to a Wiki page.

 Now for the unusual (?) features I need:

 - Single login shared with an associated Database programme (a
 servlet), using JAAS. (Preference is to run database and Wiki on a
 single Jetty instance, as I have 6 years Jetty experience).

The XWiki authentication mechanism is modular, and there are already 
several bridges between XWiki and external credential services. OOB only 
LDAP is provided, several others are available at 
https://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/ . I don't think 
that one for JAAS is already developed, but it shouldn't be too hard to 
write it.

 - That shared login also supplies user's group membership (student,
 editor, admin, etc)

Yep, depends on how far the JAAS integration goes. XWiki does support 
groups, and it does support retrieving group membership from external 
source.

 - Info obtained from database indicating which module(s) the student
 is permitted to view (could be done by multiple-group membership),

Aren't access right enough? If yes, then you can query access rights for 
the current user on different spaces. If you need to do this with 
different data, then it should be easy to code a small application for 
this, once you get the hang of how XWiki development works.

 - Security permissions for individual pages inferred by inheriting
 permissions from the module containing that page,

There are page access rights, space access rights, and wiki access 
rights. If you split your wiki as one module = one space, this is 
straightforward.

 - Inter-page references only shown if user is permitted to read those
 pages OR (preferably) alternate paragraph-sized blocks of Wiki text
 are displayed depending on whether an embedded link may be followed
 i.e.  IF page_X_can_be_viewed THEN show_text_A ELSE show_text_B.

The normal link syntax doesn't do this, but you could write a wiki macro 
(see http://platform.xwiki.org/xwiki/bin/DevGuide/WikiMacroTutorial ) 
that does this using a little bit of velocity and the XWiki API.

 - Output to database programme (by API or HTML call) or to
 machine-readable log, on time/date each page viewed by each student,
 so that student-specific log may be compiled,

IIRC, OOB, using the activity stream plugin, but with DN to provide a 
nice UI for viewing the data. If I don't remember correctly, and this 
data is not already being recorded, it would be very easy (for a Java 
programmer) to write it using the observation manager.

 - 'Print Chapter' command - produces single printable document
 containing all the sections (Wiki Pages) comprising that chapter,

Possible, but no UI for this is shipped by default, although there is an 
application which does this: 
http://code.xwiki.org/xwiki/bin/view/Applications/PDFExportPanelApplication

 - The above 'Print Chapter' command to omit any embedded 'eye-candy'
 images from that printed chapter (by use of CSS @media ?)

WDYM by eye-candy images? The one from the wiki engine (skin), or images 
introduced by you? You can check how the printer friendly and the PDF 
export look somewhere on an existing wiki, for example:
- http://incubator.myxwiki.org/xwiki/bin/Sandbox/
- http://incubator.myxwiki.org/xwiki/bin/Sandbox/?xpage=print
- http://incubator.myxwiki.org/xwiki/bin/export/Sandbox/?format=pdf

 - 'Help me on this topic' button. Sends private email help request to
 tutor with hot-link annotation showing the tutor where the student
 was when help was requested. Must at least identify location by
 Section (Wiki Page), preferably identify by paragraph in section.

A bit of DN, mostly gluing existing APIs together: the mailsender 
plugin, a custom panel with a bit of velocity code, and maybe a bit of 
javascript 

Re: [xwiki-users] Export HTML - Remove Menus at top of page

2010-04-23 Thread Sergiu Dumitriu
On 04/23/2010 07:44 PM, RobZ wrote:

 I am exporting my XWiki site into static HTML pages for offline viewing.
 This is working pretty well, but would like to remove the menus (Export,
 Actions, Watch,user, Log Out) from the top of each page in the HTML
 files.

 I have been playing with view.vm in \skins\colibri of the Zip file, to try
 and figure out what is controlling that content, but have not stumbled upon
 any way to disable it.

 Any help with this would be appreciated.

Try playing with
#if($context.action == 'export')


 Thanks,
 -Rob


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users