Re: [xwiki-users] RTF-Export (1.8RC2)

2009-03-10 Thread hel-o

Hi,

and first of all. My mistake, rtf works and i just didn't notice. But two
things I'd still like to know:

I'm working on OSX and can't open the exported RTF with Pages or TextEdit
(Default for rtf in OSX). Installed OpenOffice, there it works.

I get the message that the file is possibly damaged, not complete or in a
format that was not expected.


Niels Mayer wrote:
 
 On Mon, Mar 9, 2009 at 1:16 PM, hel-o h...@hel.at wrote:
 
 I also get a slew of similar messages and also some additional ones, all
 related to RTF exports triggered by search engines:
 
 

I also get some more messages but in this case they are all of the same
type:

09:15:14,620
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,621
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,621
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,621
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,622
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,622
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 
09:15:14,623
[http://semantic-web.hel.at/xwiki/bin/export/Da/WebHome?format=rtf]
[http-8180-Processor14] ERROR datatypes.LengthBase-
getBaseLength called without context 

But i got a punch of other error messages related to export (pdf, rtf) you
can see in the attached log-File. 


Niels Mayer wrote:
 
 
 Last time I tried tracking this down, I noticed errors complaining about a
 missing directory .fop so I created it:
   drwxrwxr-x  2 tomcat tomcat_users 4096 2009-01-20 13:18 .fop/
 
 And have found it populated with the same file ever since (and a whole
 different set of error messages, like the ones seen above):
   /usr/java/.fop:
   total 28
   drwxr-xr-x 34 root   root  4096 2009-03-06 12:41 ../
   -rw-rw-r--  1 tomcat tomcat_users 15893 2009-01-20 16:29 fop-fonts.cache
   drwxrwxr-x  2 tomcat tomcat_users  4096 2009-01-20 13:18 ./
 
 Adding /usr/java/.fop prevented errors like this on exporting PDF's (and
 perhaps RTF's too?)
 
 

Where did you create that directory and did that help?

Thanks
hel.

http://n2.nabble.com/file/n2453892/xwiki.log xwiki.log 

-
hel.
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/RTF-Export-%281.8RC2%29-tp2451398p2453892.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] Stats module configuratio

2009-03-10 Thread PERINAUD Christophe
Thank you Sergiu.
Now i don't have this exceptions anymore. Like Dilipkumar, now i have graphics 
but only with 0 values
I checked the content of the ActivityData page and all i have is titles and red 
messages with Table: null when i open the page (but maybe it needs some extra 
parameters)
I wait for the helpdesk to accept the install of DbVisualizer to check the 
content of Stats tables and try to execute the SQL query that is in 
XWikiStatsReader.java to check the result.

All other stats tables are ok and filled with values. 

-Message d'origine-
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
Sergiu Dumitriu
Envoyé : lundi 9 mars 2009 17:24
À : XWiki Users
Objet : Re: [xwiki-users] Stats module configuratio

PERINAUD Christophe wrote:
 Sorry, bad eyes 
 xwiki-plugin-jodatime-1.2.jar 

This one had a minor bug that prevented the whole plugin from working 
(http://jira.xwiki.org/jira/browse/XPJODA-9). You should replace it with 
http://maven.xwiki.org/releases/com/xpn/xwiki/platform/plugins/xwiki-plugin-jodatime/1.3/xwiki-plugin-jodatime-1.3.jar
 


 -Message d'origine-
 De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
 Sergiu Dumitriu
 Envoyé : lundi 9 mars 2009 16:56
 À : XWiki Users
 Objet : Re: [xwiki-users] Stats module configuratio
 
 PERINAUD Christophe wrote:
 I currently use this file : joda-time-1.4.jar
 I think it's the one delivered with the 1.7.1 pack 
 
 No, not joda-time, xwiki-plugin-jodatime.
 -Message d'origine-
 De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
 Sergiu Dumitriu
 Envoyé : lundi 9 mars 2009 16:23
 À : XWiki Users
 Objet : Re: [xwiki-users] Stats module configuratio

 PERINAUD Christophe wrote:
 Hi,

 I have the kind of same problem with statistics that are not displayed on 
 my main wiki or that crashes in any virtual wiki.
 The Joda time plugin is enabled but when i follow the advice from Sergiu in 
 a virtual wiki by editing the Current Month Activity panel i can see that 
 the plugin is installed, is available but when i call the getDateTime 
 method it throws a null pointer exception as if the 
 getProtectedPlugin().getDateTime() (line 67 of JodaTimePluginApi) is not 
 working as expected in virtual mode (what ever is the parameter value).
 In the main wiki, it works but does not display any activity (always 0 
 values) despite values in the database (Oracle 10)

 What is strange is that the problem occured only in graphical statistics 
 (not stats like most edited pages for example)

 -Message d'origine-

 2. The Joda time plugin might be disabled

 I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in
  my xwiki.cfg properties
 Also, joda-time-1.4.jar is available in WEB_INF  lib folder


 What version of xwiki-plugin-jodatime do you have in WEB-INF/lib?

 
 


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


This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] class database list property should be empty when creating document

2009-03-10 Thread Sebastian Kannengiesser
Hi guys,

thanx Sergiu for your reply. I create documents based on a class which
defines database list properties.
I did not change anything in that class between when the blank row
in the selection box in inline editing mode was present and now where
it disappeared for new documents. BTW, in this particular case I do
not have multiselect enabled. The alphabetically first entry is
selected as the blank row isn't there anymore. Any ideas? Help is
desperately needed. Thanx for all input in advance.

Cheers,
Sebastian

On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 Hi guys,

 I created a few days ago some documents based on my own class which
 has databse list properties. In the respective template fields, there
 was no entry selected when creating the document which is the
 behaviour I need. When I now create a document based on the same class
 the first entry is selected a priori and there is no way to deselect,
 i.e. have nothing selected, it. The old documents still have the
 ability to deselect the entry in inline editing mode. Can you guys
 please tell me, what might have happened here or could it be a bug? I
 dont't understand this apparently undeterministic behaviour. Many
 thanx in advance. BTW, this is in XWiki 1.7.2.

 Do you create documents based on a template? If so, check that the
 template wasn't changed to have a value selected. When using document
 templates, the template is fully copied, including selected values.

 When you say you could deselect the selected value, do you mean that you
 could Ctrl+Click, or that there was a blank row you could select? If it
 was Ctrl+Click, check the multiselect setting for the property.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] SMTP authentications

2009-03-10 Thread Lilianne E. Blaze
Norguir Bellagio wrote:
 Hi,
 
 I have crawled the mailing lists and support forums on this but I am 
 unable to figure out the answer.
 
 I am evaluating Xwiki and love Workspaces from what I've seen so far. 
 The one thing that really bogs me down is the inability to register an 
 authenticated SMTP server. I have read there is a patch from Liliane, 
 and the feature is included on 1.6 but I just can't seem to understand 
 how to get is to work. In an evaluation perspective (and very much so as 
 well in production), not being able to use authenticated SMTP server is 
 a no go for me.
 Could you please point me to a resource that clarifies what the 
 situation is and possibly, the steps to enable it on 1.7.
 
 Thanks !
 
 norguir


Actually I'm still waiting for it :/

I just made a quick check and it looks like that patch was not
committed, there's no support for setting username and password in
Administration, and registration mails still go via deprecated
XWiki.sendMessage, which is using Apache Commons SMTPClient (made
obsolete by JavaMail ages ago) and has no support for username/password
and extra properties.

As for mail.smtp.starttls.enable=true, AFAIK when used alone it simply
does not make sense.

_Please_ do something about it :/

If I remember correctly last time the main issue was that the code had
to be integrated in core instead of mail plugin, please, can't we have
the thing working at all first, worry about module separation later?
Basic mail support _is_ core functionality. For me it's a showstopper,
and I don't have enough time to maintain a private fork, either smtp
auth goes in, or I'm going out :/

And before someone says it's open source and I should stop bitching and
submit a patch - I _did_ submit a patch months ago :/

Greetings, Lilianne


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


Re: [xwiki-users] How to disable the search in some Wiki / The list ofwikis to search in is false

2009-03-10 Thread PERINAUD Christophe
Hello,

Do i have to input something in JIRA for this kind of bug and for the request ? 

-Message d'origine-
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
PERINAUD Christophe
Envoyé : vendredi 6 mars 2009 13:55
À : users@xwiki.org
Objet : [xwiki-users] How to disable the search in some Wiki / The list ofwikis 
to search in is false

Hello,

I checked the content of the LuceneSearch page and i found in the code how to 
limit the search to known Wikis
My problem is that i don't know how will grow my list of wikis but i already 
know in wich Wikis i don't want users to search in. Is there a way to create an 
excluding list of Wikis ?

Also, the list of wikis to search in is false when searching from a virtual 
wiki. The list only has entries for the main wiki and all templates but not 
other virtual wikis (even the current one). But selecting All really search 
in all wikis not wikis that are in the selection list.

System :
Windows Server 2003 SP2 in a VMWare instance
Oracle 10g
Java 1.6.0_12
Xwiki 1.7.1 from the pack Jetty/HSQL

Christophe Périnaud


This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] overwriting space-specific layouts with global layout

2009-03-10 Thread Sebastian Kannengiesser
Hi guys,

I once configured different layouts for my different spaces. Now I
decided, that all spaces should look in a common way. Actually,
changing the Global layout in the administration does not overwrite
the space-specific layouts. How can I remove those specific layout
configurations, so every space takes the global configuration?

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


[xwiki-users] Changing page location

2009-03-10 Thread CASTRO roney
Hello all,
Is it possible to change the space where a page is contained?
For example, if I create a page in the Main space, how can I move it to another 
space?
Thanks !!
- Roney
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Changing page location

2009-03-10 Thread Sebastian Kannengiesser
Hi Roney,

when you choose to rename a page in the top bar you get to a page
which lets you choose the space where to put your page besides the the
option to enter a new Name of the page.

Cheers,
Sebastian

On Tue, Mar 10, 2009 at 12:03 PM, CASTRO roney roney.cas...@gemalto.com wrote:
 Hello all,
 Is it possible to change the space where a page is contained?
 For example, if I create a page in the Main space, how can I move it to 
 another space?
 Thanks !!
        - Roney
 ___
 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] Stats module configuration

2009-03-10 Thread Dilipkumar Jadhav
Hello friends,
I've tried placing the new xwiki-plugin-jodatime-1.3.jar. Restarted
tomcat and still no statistics.
The result set like another friend said is still : NULL

There is definitely valid data in the stats tables (when i query it
through Sqlyog).
Thank you
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Stats module configuration

2009-03-10 Thread Sergiu Dumitriu
Dilipkumar Jadhav wrote:
 Hello friends,
 I've tried placing the new xwiki-plugin-jodatime-1.3.jar. Restarted
 tomcat and still no statistics.
 The result set like another friend said is still : NULL
 
 There is definitely valid data in the stats tables (when i query it
 through Sqlyog).
 Thank you

What database are you using?

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


Re: [xwiki-users] overwriting space-specific layouts with global layout

2009-03-10 Thread Sergiu Dumitriu
Sebastian Kannengiesser wrote:
 Hi guys,
 
 I once configured different layouts for my different spaces. Now I
 decided, that all spaces should look in a common way. Actually,
 changing the Global layout in the administration does not overwrite
 the space-specific layouts. How can I remove those specific layout
 configurations, so every space takes the global configuration?

What do you understand by layout? The panels located on the left/right side?

Try this:

#foreach($spacePref in $xwiki.searchDocuments(, BaseObject prefs, 
StringProperty panels where doc.name = 'WebPreferences' and prefs.name = 
doc.fullName and prefs.className = 'XWiki.XWikiPreferences' and 
panels.id.id = prefs.id and (panels.id.name = 'leftPanels' or 
panels.id.name = 'rightPanels') and panels.value  ''))
   #set($spacePrefsDoc = $xwiki.getDocument($spacePrefs))
   #set($spacePrefsObj = $spacePrefsDoc.getObject('XWiki.XWikiPreferences'))
   $spacePrefsObj.set('leftPanels', '')
   $spacePrefsObj.set('rightPanels', '')
   $spacePrefsDoc.save()
#end

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


Re: [xwiki-users] Stats module configuratio

2009-03-10 Thread PERINAUD Christophe
I check in the oracle db, running this query :
Select XWS_NAME, sum(XWS_PAGE_VIEWS) from XWSSTATSDOC where XWS_ACTION = 'view' 
group by XWS_NAME order by sum(XWS_PAGE_VIEWS)

And i have many lines like :

WikiManager.Information 30
(null)  30
Panels.WebHome  32
XWiki.bb03545   44
Stats.WebHome   52
XWiki   72
Stats   104
WikiManager.CreateNewWiki   106
WikiManager.WebHome 122
WikiManager 258
Main.WebHome750
Main.DocumentDoesNotExist   914
Main1716 

And if i display $myviews in Current Week View, i have this result :
{2009-03-15T00:00:00.000+01:00=0, 2009-03-13T00:00:00.000+01:00=0, 
2009-03-10T00:00:00.000+01:00=0, 2009-03-11T00:00:00.000+01:00=0, 
2009-03-09T00:00:00.000+01:00=0, 2009-03-14T00:00:00.000+01:00=0, 
2009-03-12T00:00:00.000+01:00=0} 


-Message d'origine-
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
PERINAUD Christophe
Envoyé : mardi 10 mars 2009 09:46
À : XWiki Users
Objet : Re: [xwiki-users] Stats module configuratio

Thank you Sergiu.
Now i don't have this exceptions anymore. Like Dilipkumar, now i have graphics 
but only with 0 values
I checked the content of the ActivityData page and all i have is titles and red 
messages with Table: null when i open the page (but maybe it needs some extra 
parameters)
I wait for the helpdesk to accept the install of DbVisualizer to check the 
content of Stats tables and try to execute the SQL query that is in 
XWikiStatsReader.java to check the result.

All other stats tables are ok and filled with values. 

-Message d'origine-
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
Sergiu Dumitriu
Envoyé : lundi 9 mars 2009 17:24
À : XWiki Users
Objet : Re: [xwiki-users] Stats module configuratio

PERINAUD Christophe wrote:
 Sorry, bad eyes 
 xwiki-plugin-jodatime-1.2.jar 

This one had a minor bug that prevented the whole plugin from working 
(http://jira.xwiki.org/jira/browse/XPJODA-9). You should replace it with 
http://maven.xwiki.org/releases/com/xpn/xwiki/platform/plugins/xwiki-plugin-jodatime/1.3/xwiki-plugin-jodatime-1.3.jar
 


 -Message d'origine-
 De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
 Sergiu Dumitriu
 Envoyé : lundi 9 mars 2009 16:56
 À : XWiki Users
 Objet : Re: [xwiki-users] Stats module configuratio
 
 PERINAUD Christophe wrote:
 I currently use this file : joda-time-1.4.jar
 I think it's the one delivered with the 1.7.1 pack 
 
 No, not joda-time, xwiki-plugin-jodatime.
 -Message d'origine-
 De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
 Sergiu Dumitriu
 Envoyé : lundi 9 mars 2009 16:23
 À : XWiki Users
 Objet : Re: [xwiki-users] Stats module configuratio

 PERINAUD Christophe wrote:
 Hi,

 I have the kind of same problem with statistics that are not displayed on 
 my main wiki or that crashes in any virtual wiki.
 The Joda time plugin is enabled but when i follow the advice from Sergiu in 
 a virtual wiki by editing the Current Month Activity panel i can see that 
 the plugin is installed, is available but when i call the getDateTime 
 method it throws a null pointer exception as if the 
 getProtectedPlugin().getDateTime() (line 67 of JodaTimePluginApi) is not 
 working as expected in virtual mode (what ever is the parameter value).
 In the main wiki, it works but does not display any activity (always 0 
 values) despite values in the database (Oracle 10)

 What is strange is that the problem occured only in graphical statistics 
 (not stats like most edited pages for example)

 -Message d'origine-

 2. The Joda time plugin might be disabled

 I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in
  my xwiki.cfg properties
 Also, joda-time-1.4.jar is available in WEB_INF  lib folder


 What version of xwiki-plugin-jodatime do you have in WEB-INF/lib?

 
 


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


This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 

Re: [xwiki-users] overwriting space-specific layouts with global layout

2009-03-10 Thread Sebastian Kannengiesser
Hi Sergiu,

thanx for your reply. Your velocity code does not have any effect, at
least, I didn't get the desired result :(
With layout I mean the Panels. My globakl setting is to have a panel
area only on the left side, whereas some spaces have two panel areas
and a different selection of panels on them. Now, I'd like all spaces
to have the exact panels I chose in the global layout administration
and those to be placed only on the left hand side, also as set
globally.

Btw, to run your code I just created a page in Main space and entered
the code. That should do it, right?

I'd be grateful for any further suggestions.

Thanx,
Sebastian

On Tue, Mar 10, 2009 at 1:02 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 Hi guys,

 I once configured different layouts for my different spaces. Now I
 decided, that all spaces should look in a common way. Actually,
 changing the Global layout in the administration does not overwrite
 the space-specific layouts. How can I remove those specific layout
 configurations, so every space takes the global configuration?

 What do you understand by layout? The panels located on the left/right side?

 Try this:

 #foreach($spacePref in $xwiki.searchDocuments(, BaseObject prefs,
 StringProperty panels where doc.name = 'WebPreferences' and prefs.name =
 doc.fullName and prefs.className = 'XWiki.XWikiPreferences' and
 panels.id.id = prefs.id and (panels.id.name = 'leftPanels' or
 panels.id.name = 'rightPanels') and panels.value  ''))
   #set($spacePrefsDoc = $xwiki.getDocument($spacePrefs))
   #set($spacePrefsObj = $spacePrefsDoc.getObject('XWiki.XWikiPreferences'))
   $spacePrefsObj.set('leftPanels', '')
   $spacePrefsObj.set('rightPanels', '')
   $spacePrefsDoc.save()
 #end

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] overwriting space-specific layouts with global layout

2009-03-10 Thread Sebastian Kannengiesser
I just found that your #foreach loop isn't running at all. Placed some
text inside.

On Tue, Mar 10, 2009 at 1:36 PM, Sebastian Kannengiesser
sebastian.kannengies...@gmail.com wrote:
 Hi Sergiu,

 thanx for your reply. Your velocity code does not have any effect, at
 least, I didn't get the desired result :(
 With layout I mean the Panels. My globakl setting is to have a panel
 area only on the left side, whereas some spaces have two panel areas
 and a different selection of panels on them. Now, I'd like all spaces
 to have the exact panels I chose in the global layout administration
 and those to be placed only on the left hand side, also as set
 globally.

 Btw, to run your code I just created a page in Main space and entered
 the code. That should do it, right?

 I'd be grateful for any further suggestions.

 Thanx,
 Sebastian

 On Tue, Mar 10, 2009 at 1:02 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 Hi guys,

 I once configured different layouts for my different spaces. Now I
 decided, that all spaces should look in a common way. Actually,
 changing the Global layout in the administration does not overwrite
 the space-specific layouts. How can I remove those specific layout
 configurations, so every space takes the global configuration?

 What do you understand by layout? The panels located on the left/right side?

 Try this:

 #foreach($spacePref in $xwiki.searchDocuments(, BaseObject prefs,
 StringProperty panels where doc.name = 'WebPreferences' and prefs.name =
 doc.fullName and prefs.className = 'XWiki.XWikiPreferences' and
 panels.id.id = prefs.id and (panels.id.name = 'leftPanels' or
 panels.id.name = 'rightPanels') and panels.value  ''))
   #set($spacePrefsDoc = $xwiki.getDocument($spacePrefs))
   #set($spacePrefsObj = $spacePrefsDoc.getObject('XWiki.XWikiPreferences'))
   $spacePrefsObj.set('leftPanels', '')
   $spacePrefsObj.set('rightPanels', '')
   $spacePrefsDoc.save()
 #end

 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] Create a tree navigation

2009-03-10 Thread CASTRO roney
Jean,
For the current 1.8 version available for download/evaluation, is this feature 
available, or it is still under development?
Thanks,
-Roney

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
Jean-Vincent Drean
Sent: quinta-feira, 5 de março de 2009 13:22
To: XWiki Users
Subject: Re: [xwiki-users] Create a tree navigation

Hi, we're currently working on a customizable treeview widget allowing
to browse wikis/spaces/pages/attachments.
It will be available soon, starting with XE 1.8.

Thanks,
JV.

On Thu, Mar 5, 2009 at 4:02 PM, CASTRO roney roney.cas...@gemalto.com wrote:
 Hi,
 I have a space where I want to make navigation easier. So inside this space I 
 want to create a navigation panel, containing only the Table of contents, 
 is it possible?
 The best situation would be to create tree view, like a file explorer. Does 
 anyone know how can it be done?
 Thanks
 - Roney
 ___
 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] overwriting space-specific layouts with global layout

2009-03-10 Thread Sebastian Kannengiesser
Many thanx Sergiu,

I love the mighty abilities you have in XWiki with velocity scripting,
though it's hard for me by now to understand the full set of
possibilities. But thanx to your help, I again learned something new.

Cheers,
Sebastian


On Tue, Mar 10, 2009 at 2:19 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 I just found that your #foreach loop isn't running at all. Placed some
 text inside.

 Sorry, I was lazy and didn't try to run it first. The problem is that
 XWikiPreferences has custom mapping, so this is the right code:

 #foreach($spacePrefs in $xwiki.searchDocuments(, BaseObject obj,
 XWikiPreferences prefs where doc.name = 'WebPreferences' and obj.name =
 doc.fullName and prefs.id = obj.id and prefs.leftPanels  ''))
   #set($spacePrefsDoc = $xwiki.getDocument($spacePrefs))
   #set($spacePrefsObj = $spacePrefsDoc.getObject('XWiki.XWikiPreferences'))
   $spacePrefsObj.set('leftPanels', '')
   $spacePrefsObj.set('rightPanels', '')
   $spacePrefsObj.set('showLeftPanels', '')
   $spacePrefsObj.set('showRightPanels', '')
   $spacePrefsDoc.save()
 #end

 On Tue, Mar 10, 2009 at 1:36 PM, Sebastian Kannengiesser
 sebastian.kannengies...@gmail.com wrote:
 Hi Sergiu,

 thanx for your reply. Your velocity code does not have any effect, at
 least, I didn't get the desired result :(
 With layout I mean the Panels. My globakl setting is to have a panel
 area only on the left side, whereas some spaces have two panel areas
 and a different selection of panels on them. Now, I'd like all spaces
 to have the exact panels I chose in the global layout administration
 and those to be placed only on the left hand side, also as set
 globally.

 Btw, to run your code I just created a page in Main space and entered
 the code. That should do it, right?

 Yes, put the code in a new page, view it once, then you can delete the page.

 I'd be grateful for any further suggestions.

 Thanx,
 Sebastian

 On Tue, Mar 10, 2009 at 1:02 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 Hi guys,

 I once configured different layouts for my different spaces. Now I
 decided, that all spaces should look in a common way. Actually,
 changing the Global layout in the administration does not overwrite
 the space-specific layouts. How can I remove those specific layout
 configurations, so every space takes the global configuration?
 What do you understand by layout? The panels located on the left/right 
 side?


 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] class database list property should be empty when creating document

2009-03-10 Thread Sebastian Kannengiesser
Hi,

sorry guys for bumping this up again. But can you tell me, what
possibly made the blank row in a database list property selection
box disappear? I need it and it should be preselected, when creating a
new document. I had this behaviour before and cannot tell, what made
the blank row disappear. Any suggestion?

Thanx,
Sebastian

On Tue, Mar 10, 2009 at 10:21 AM, Sebastian Kannengiesser
sebastian.kannengies...@gmail.com wrote:
 Hi guys,

 thanx Sergiu for your reply. I create documents based on a class which
 defines database list properties.
 I did not change anything in that class between when the blank row
 in the selection box in inline editing mode was present and now where
 it disappeared for new documents. BTW, in this particular case I do
 not have multiselect enabled. The alphabetically first entry is
 selected as the blank row isn't there anymore. Any ideas? Help is
 desperately needed. Thanx for all input in advance.

 Cheers,
 Sebastian

 On Mon, Mar 9, 2009 at 4:11 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 Sebastian Kannengiesser wrote:
 Hi guys,

 I created a few days ago some documents based on my own class which
 has databse list properties. In the respective template fields, there
 was no entry selected when creating the document which is the
 behaviour I need. When I now create a document based on the same class
 the first entry is selected a priori and there is no way to deselect,
 i.e. have nothing selected, it. The old documents still have the
 ability to deselect the entry in inline editing mode. Can you guys
 please tell me, what might have happened here or could it be a bug? I
 dont't understand this apparently undeterministic behaviour. Many
 thanx in advance. BTW, this is in XWiki 1.7.2.

 Do you create documents based on a template? If so, check that the
 template wasn't changed to have a value selected. When using document
 templates, the template is fully copied, including selected values.

 When you say you could deselect the selected value, do you mean that you
 could Ctrl+Click, or that there was a blank row you could select? If it
 was Ctrl+Click, check the multiselect setting for the property.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] Export (Pictures, 1.8RC2)

2009-03-10 Thread hel-o

Hi,

and export again. Tried to export a page with to pics included (one attached
to the page, one attached to another page) and got an error both for pdf and
for rtf export.

16:37:21,446
[http://semantic-web.hel.at/xwiki/bin/export/Da/KMKnowledgeDiw?format=rtf]
[http-8180-Processor24] WARN  web.XWikiAction - Uncaught
exception: Error number 11015 in 11: Exception while exporting
Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232:
Error(44/232): fo:external-graphic, Invalid property name 'display'. 
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
exporting
Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232:
Error(44/232): fo:external-graphic, Invalid property name 'display'.
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:64)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
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.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while
exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232:
Error(44/232): fo:external-graphic, Invalid property name 'display'.
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXMLFO(PdfExportImpl.java:222)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:165)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:229)
at 

Re: [xwiki-users] Export (Pictures, 1.8RC2)

2009-03-10 Thread Sergiu Dumitriu
hel-o wrote:
 Hi,
 
 and export again. Tried to export a page with to pics included (one attached
 to the page, one attached to another page) and got an error both for pdf and
 for rtf export.
 
 16:37:21,446
 [http://semantic-web.hel.at/xwiki/bin/export/Da/KMKnowledgeDiw?format=rtf]
 [http-8180-Processor24] WARN  web.XWikiAction - Uncaught
 exception: Error number 11015 in 11: Exception while exporting
 Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
 Wrapped Exception: org.apache.fop.fo.ValidationException: null:44:232:
 Error(44/232): fo:external-graphic, Invalid property name 'display'. 

As the error says, there's a CSS property that says display: block; on 
the image, and the FOP engine doesn't like it. A quick solution is to 
edit the document and remove this rule.

Did you manually add the display property, or was it added by the 
WYSIWYG editor?

I'm working on fixing it, I'll keep you posted on the progress.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export (Pictures, 1.8RC2)

2009-03-10 Thread hel-o

Hi,


Sergiu Dumitriu-2 wrote:
 
 hel-o wrote:
 
 Did you manually add the display property, or was it added by the 
 WYSIWYG editor?
 
 

Added it with the new WYSIWYG. (Alignment: Horizontal: Centered)

Also found that (Alignment: Horizontal: Left) creates an float: left at
the moment. Don't now it thats how it should be.

hel. 



-
hel.
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/Export-%28Pictures%2C-1.8RC2%29-tp2455946p2456193.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] Create a tree navigation

2009-03-10 Thread Jean-Vincent Drean
Hi,

You'll find info on how to use it with XE 1.8RC2 here:
http://jira.xwiki.org/jira/browse/XWIKI-3287
Note that the version that'll be shipped with XE 1.8RC3 can be
configured to display a specific wiki or even a specific space.

JV.

On Tue, Mar 10, 2009 at 2:41 PM, CASTRO roney roney.cas...@gemalto.com wrote:
 Jean,
 For the current 1.8 version available for download/evaluation, is this 
 feature available, or it is still under development?
 Thanks,
        -Roney

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
 Jean-Vincent Drean
 Sent: quinta-feira, 5 de março de 2009 13:22
 To: XWiki Users
 Subject: Re: [xwiki-users] Create a tree navigation

 Hi, we're currently working on a customizable treeview widget allowing
 to browse wikis/spaces/pages/attachments.
 It will be available soon, starting with XE 1.8.

 Thanks,
 JV.

 On Thu, Mar 5, 2009 at 4:02 PM, CASTRO roney roney.cas...@gemalto.com wrote:
 Hi,
 I have a space where I want to make navigation easier. So inside this space 
 I want to create a navigation panel, containing only the Table of 
 contents, is it possible?
 The best situation would be to create tree view, like a file explorer. Does 
 anyone know how can it be done?
 Thanks
 - Roney
 ___
 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


[xwiki-users] w3m compatibility?

2009-03-10 Thread Leandro Guimarães Faria Corcete DUTRA
Hello!

I am starting to work with XWiki, coming from MediaWiki, and am having
a rough time getting used to it.

One thing I would very much like to do is to be able to use w3m inside
GNU Emacs to read, navigate and, above all, edit content.  I do it all
the time with MediaWiki and find it much better than what is available
from Web browsers.

Only that, when I tried to do that, this is what I got:

Location: https://wiki.atech.br/xwiki/bin/login/XWiki/XWikiLogin?srid=ZFF8M4W4  

  
Cannot retrieve URL: https://wiki.atech.br/ (exit status: 0)

━

━

Header information

W3m-current-url: https://wiki.atech.br/
W3m-document-charset: US-ASCII
W3m-ssl-certificate: Accept unsecure SSL session: unverified: self signed 
certificate
 subject=wiki.atech.br: issuer=wiki.atech.br
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
d4:4f:24:8c:d9:fc:39:c7
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=BR, ST=SP, L=Sao Paulo, O=Atech Tecnologias Criticas, 
OU=Tecnologia da Informacao, CN=wiki.atech.br/emailaddress=tisupo...@atech.br
Validity
Not Before: Aug  6 04:03:40 2008 GMT
Not After : Aug  4 04:03:40 2018 GMT
Subject: C=BR, ST=SP, L=Sao Paulo, O=Atech Tecnologias 
Criticas, OU=Tecnologia da Informacao, 
CN=wiki.atech.br/emailaddress=tisupo...@atech.br
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:a1:f4:11:ed:9e:ac:f7:9d:e1:d1:42:36:c3:9e:
50:fe:7b:92:be:18:1f:ad:13:d4:c5:65:d6:2a:96:
7d:c6:cc:63:8b:32:3e:4f:06:b9:b7:7e:45:fc:7b:
d7:25:51:86:43:06:3a:8c:71:ac:f0:9d:fd:17:82:
4b:6d:8a:32:ec:7c:b1:67:a3:2b:df:bc:02:59:7c:
6e:0d:9e:48:bb:6a:1d:9d:5a:11:f0:a4:e4:aa:3a:
37:c5:3b:52:0c:54:a2:40:2a:d0:1f:17:d8:05:52:
cd:ce:55:bd:e7:ab:38:5e:be:24:56:92:57:58:28:
d9:f4:50:ad:25:e7:61:99:d9
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier: 

54:4F:2E:47:9F:0B:66:F6:50:5C:BF:44:98:D9:29:7B:B4:69:C9:1E
X509v3 Authority Key Identifier: 

keyid:54:4F:2E:47:9F:0B:66:F6:50:5C:BF:44:98:D9:29:7B:B4:69:C9:1E
DirName:/C=BR/ST=SP/L=Sao Paulo/O=Atech Tecnologias 
Criticas/OU=Tecnologia da 
Informacao/CN=wiki.atech.br/emailaddress=tisupo...@atech.br
serial:D4:4F:24:8C:D9:FC:39:C7
X509v3 Basic Constraints: 
CA:TRUE
Signature Algorithm: sha1WithRSAEncryption
45:d0:22:d7:b1:be:c5:75:eb:13:4a:5f:f9:00:15:a9:8f:63:
16:2a:a1:e9:a5:00:f7:c4:4a:3a:fb:79:05:86:de:f4:89:33:
5c:97:f1:db:f3:f5:6e:6b:b3:a1:40:dc:c7:39:6a:7a:af:c8:
98:aa:cd:56:59:9b:cb:ce:2e:31:1b:56:2f:06:56:90:0d:94:
83:66:37:89:8c:6f:a6:85:99:a9:c1:23:fb:cb:8c:fb:0f:03:
b7:d1:56:66:2b:13:77:b2:ae:59:dd:81:e6:fd:56:b1:1e:81:
cd:a3:39:4d:29:c9:1d:fc:0c:3e:69:fc:aa:04:bc:58:9f:26:
a3:80
HTTP/1.1 302 Found
Date: Tue, 10 Mar 2009 13:45:05 GMT
Server: Apache
X-Powered-By: PHP/4.4.4-8+etch6
Location: /xwiki/
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Any ideas are welcomed.


-- 
Leandro Guimarães Faria Corcete DUTRA mailto:ldu...@atech.br
Tecnologia da Informação — Atech Tecnologias Críticas http://atech.br/
msnim:chat?contact=lean...@dutra.fastmail.fm  +55 (11) 3040 7344
xmpp:leandro.gfc.du...@gmail.comskype:leandro.gfc.dutra?chat


- - - - -

Politica de Privacidade: Esta mensagem pode conter informacao confidencial e/ou 
privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a receber 
esta mensagem, nao pode usar, copiar ou divulgar as informacoes nela contidas 
ou tomar qualquer acao baseada nessas informacoes. Se voce recebeu esta 
mensagem por engano, por favor avise imediatamente o 

[xwiki-users] Migrating from pre-1.5 to new wiki

2009-03-10 Thread Cristina Williams
Hello,

We are migrating an older xwiki (1.4.2 - with several wikis and users)  
from another organization to an empty instance of the latest stable  
xwiki (1.7.2) on our server. I've never used xwiki before - I've been  
looking around and have seen upgrading information, but since there  
was a database change in 1.5, I wanted to be sure we were going about  
it the right way.

A. Testing the migration
I'm hoping to be able to test this migration. If I receive a test XAR  
from the original wiki and import it into the new wiki, how should I  
import the real XAR afterwards? Do I need to delete everything that  
was imported and *then* import the 'real' XAR? Or can I just import  
the real XAR *over* the test XAR?

B. Actual migration
What I believe we need to do is:

* Import the entire default XAR for 1.7.2 to capture latest features
(* Import the test XAR file and make sure it's working as expected -  
then delete)
* Import the XAR file of the older wiki in full.

Is there anything else we need to do? I've seen other instructions,  
but they seem geared towards upgrading an existing wiki (we won't have  
any pre-existing information other than the admin account). But here  
are the notes from the 1.5 release notes:

* If you're running in a multiwiki setup you'll also need to define  
the property xwiki.store.migration.databases=all to your xwiki.cfg  
file or explicitely name all databases to be migrated as in  
xwiki.store.migration.databases=db1,db2,

* Always make sure you compare your xwiki.cfg file with the newest  
version since some configuration parameters were added. Of note, you  
should add xwiki.store.migration=1 so that XWiki will attempt to  
automatically migrate your current database to the new schema. Make  
sure you backup your Database before doing anything.

Both wiki instances are running on Centos/Apache/Tomcat/MySQL.

Thanks for any help/tips,
Cristina



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


Re: [xwiki-users] [xwiki-devs] SMTP authentications

2009-03-10 Thread Niels Mayer
On Tue, Mar 10, 2009 at 2:53 AM, Lilianne E. Blaze 
lilia...@lilianne-blaze.net wrote:

 And before someone says it's open source and I should stop bitching and
 submit a patch - I _did_ submit a patch months ago :/


Is this the patch:
http://www.lilianne-blaze.net/temp_downloads/xwiki-mailsender%20patch%20v3/
Have you submitted it as an enhancement at http://jira.xwiki.org/ adding
your patches as attachment? Does this patch work with 1.8RC2?

IMHO, there's so much going on at Xwiki.org JIRA is the only reasonable way
they can get a handle on all the enhancements, fixes, bugs and figure out a
roadmap to include them in future releases.

Also, I was thinking, until your patch gets integrated, it might be simpler
to let XWiki talk unauthenticated to SMTP bound only to localhost (not
public): Then have sendmail/exim/qmail running locally, listening to inbound
smtp connections. The localhost mail daemon would then relay messages from
localhost to an authenticated external SMTP server (e.g.. gmail) by
customizing the local mail sending daemon to jump through whatever hoops is
needed. e.g. TLS, auth, passwords, etc. That way xwiki can concentrate on
being a wiki, and let the vagaries of connecting to different mail daemons
be a system administration task for whoever is admining the server.

Perhaps that is the logic behind not including more elaborate mail-sending
functionality in XWiki -- it can be handled by an external program
However, I must agree that authenticated email is pretty much the defacto
standard and that XWiki needs to support this directly in the future.

Also, you said:

 registration mails still go via deprecated  XWiki.sendMessage, which is
 using Apache Commons SMTPClient (made  obsolete by JavaMail ages ago) and
 has no support for  username/password  and extra properties.


This seems to contradict Sergiu's statement from a previous mail:

The mailsender plugin uses JavaMail as the internal mail sender. Reading  a
 bit about the SSL/TLS support in it, I found that basically what you  need
 to do is define mail.smtp.starttls.enable=true.


 http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp
 /package-summary.html
 also lists mail.smtp.ssl.protocols and mail.smtp.ssl.ciphersuites as
 SSL-related properties.

 Also, in order to be able to use secure sockets, the JSSE library must
 be present in the classpath (I think it is with standard JDKs), and the
 host must be able to accept the server's certificate.

 About the configuration part, the mailsender uses the
 javamail_extra_props property in your global XWikiPreferences as a
 standard .properties file (you will need to define it in the
 XWikiPreferences class, as a TextArea property).

 So, basically what you need to do is:

 1. Edit the XWiki.XWikiPreferences class and add a TextArea property
 named javamail_extra_props
 2. Edit the XWiki.XWikiPreferences object and enter in it:
 mail.smtp.starttls.enable=true
 3. Find out what else needs to be done on the JVM side to make TLS work.


So which approach will work best?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export (Pictures, 1.8RC2)

2009-03-10 Thread Marius Dumitru Florea
hel-o wrote:
 Hi,
 
 
 Sergiu Dumitriu-2 wrote:
 hel-o wrote:

 Did you manually add the display property, or was it added by the 
 WYSIWYG editor?


 
 Added it with the new WYSIWYG. (Alignment: Horizontal: Centered)

See http://www.w3.org/Style/Examples/007/center#block

IMO FOP has an issue if it cannot render images with display block. 
Adding a semantic-less div wrapper with text-align:center and leaving 
the image in-line just for FOP doesn't seem right, especially since it 
can generate some complications for the WYSIWYG (like deleting the image 
and leaving the wrapper as garbage, placing the caret inside the 
wrapper, etc.).

 
 Also found that (Alignment: Horizontal: Left) creates an float: left at
 the moment. Don't now it thats how it should be.

See http://www.w3schools.com/css/pr_class_float.asp

By aligning the image on the left you let the text float on the right, 
and the other way around.

Thanks,
Marius

 
 hel. 
 
 
 
 -
 hel.
 h...@hel.at
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Export (Pictures, 1.8RC2)

2009-03-10 Thread Sergiu Dumitriu
Marius Dumitru Florea wrote:
 hel-o wrote:
 Hi,


 Sergiu Dumitriu-2 wrote:
 hel-o wrote:

 Did you manually add the display property, or was it added by the 
 WYSIWYG editor?


 Added it with the new WYSIWYG. (Alignment: Horizontal: Centered)
 
 See http://www.w3.org/Style/Examples/007/center#block
 
 IMO FOP has an issue if it cannot render images with display block. 
 Adding a semantic-less div wrapper with text-align:center and leaving 
 the image in-line just for FOP doesn't seem right, especially since it 
 can generate some complications for the WYSIWYG (like deleting the image 
 and leaving the wrapper as garbage, placing the caret inside the 
 wrapper, etc.).

No, the problem is that the xslt that transforms xhtml to xsl-fo is not 
so good. But yes, unfortunately there's no equivalent to the display 
property, so I had to manually wrap the fo:external-graphic element with 
a fo:block.

 Also found that (Alignment: Horizontal: Left) creates an float: left at
 the moment. Don't now it thats how it should be.
 
 See http://www.w3schools.com/css/pr_class_float.asp
 
 By aligning the image on the left you let the text float on the right, 
 and the other way around.

Fortunately float is also available in xsl-fo. There's no problem here.

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