Actually I saw that code. The simplest fix I could figure was this...
In the page http://.../xwiki/bin/edit/XWiki/WebRssCode,
I replaced this line
<dc:date>$currentdoc.date</dc:date>
with
<dc:date>$xwiki.formatDate($currentdoc.date, "yyyy-MM-dd'T'HH:mm:ss")</dc:date>
The fix however omits the timezone.
There is java code at http://www.dpawson.co.uk/relaxng/schema/datetime.html
which handles the timezone as well.
The SimpleDateFormat pattern "yyyy-MM-dd'T'HH:mm:ss.SSSZ" is close as it gives
2005-06-29T17:20:46.171-0800
This however does not work because of the missing colon. It needs to
be 2005-06-29T17:20:46.171-08:00
The simplest way seems to be to use commons-lang utilities
DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format(new Date())
Since commons-lang is already part of the distribution is there a easy
way to add this code? I just don't know how to incorporate it in here
at this point due to unfamiliarity with velocity, groovy etc.
Thanks very much.
regards
Sudhir
On 6/29/05, Ludovic Dubost <ludovic(a)xwiki.com> wrote:
>
> Yes.. You need to customize the code in BlogRssCode
>
> http://www.xwiki.com/xwiki/bin/view/XWiki/BlogRssCode?xpage=code
>
> You can get this code and put it in your wiki and modify it.
> The line <dc:date>$currentdoc.display("date", "view", $currentobj)</dc:date>
> Should be changed to some conversion.. I'm not sure which one though
> If you send us some java code that does the conversion and right
> formatting we can adapt it for the scripting
>
> Ludovic
>
> Sudhir Rao a écrit :
>
> >Is there any easy way to change the timestamp format in the rss feed
> >which gets generated without modifying xwiki source code?
> >
> >The field
> ><dc:date>Tue Jun 28 16:31:33 PDT 2005</dc:date>
> >should have been formatted as per the dateTime spec at
> >http://www.w3.org/TR/xmlschema-2/#dateTime
> >
> >The current behavior seems to throw off the date/time sorting in RSS
> >readers as they just ignore the value.
> >
> >A SimpleDateFormat conversion has been given here..
> >
> >http://lists.xml.org/archives/xml-dev/200311/msg00153.html
> >which uses the format
> >"yyyy-MM-dd'T'HH:mm:ss,SSS'Z'"
> >
> >Any thoughts?
> >
> >-Sudhir
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> >To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> >For general help: mailto:sympa@objectweb.org?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>
Hi
I'd like to add in a form the possibility for users to upload file. My form
look like this one :
<form action="" enctype="mutipart/form-data" method="post">
<input type="text" name="submitter" />
<input type="file" name="file" />
<input type="submit" />
</form>
The problem I have is with xWiki to get the data from the $request object and
handle them by using Velocity. After I'd like to store the uploaded file as
attachment in a document.
If someone of yours have already done that I'm interesting in getting a such
example.
By the way, I've noticed that there is a plugin called FileUpload in XWiki. I
think it would be great to use it because uploaded file handling is not
really handy, but I don't know how to use it within the wiki.
Thanks.
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Hi,
I would like some direction in learning to understand things like this (code I found in your demo database):
#set($obj = $doc.getObject("XWiki.FAQClass","language",$language, true))
#set($class = $obj.xWikiClass)
#foreach($prop in $class.properties)
1.1 ${prop.prettyName}:
$doc.display($prop.getName(), "rendered", $obj)
<br />
#end
...will I have to look at the code to understand usage on things like "XWiki.FAQClass.properties" in my scripts? Or is there another resource?
The above works, but what I really want to do is modify that code to loop thru the objects present in a "table" such as "Blog.Categories" that came with demo.
...But in a nested loop:
#set($obj = $doc.getObject("XWiki.MyTable","language",$language, true))
#set($class = $obj.xWikiClass) <--- what is this?
#foreach(...object in that class??...)
1 ${...thatObject.Name}
#set ($sql = ", BaseObject as obj where obj.name=CONCAT(XWD_WEB,'.',XWD_NAME) and obj.className='Csdg.ArticleClass' and obj.name<>'Csdg.ArticleClassTemplate'")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($bentrydoc = $xwiki.getDocument($item))
#set($bentryobj = $bentrydoc.getObject("Csdg.ArticleClass", "language", $language, true))
#if (${bentrydoc.display("audience","view", $bentryobj)} == "Users")
* [$item]
#end
#end
#end
...I'm not sure how much help to expect with this, but any comment would be great.
thank you in adv.
-Ken
Can someone advise me what happens if you create a wiki page named such as:
Myspace.subspace1.subspace2.document?
Does this represent a page named "document" in the space Myspace.subspace1.subspace2 ?
Or a page named subspace1.subspace2.document in a space called Myspace?
I understand of course that xwiki doesn't have a concept of nested spaces in the true sense, i.e. access rights on Myspace would not 'flow through' down the line through multiple child spaces.
Thanks,
Milt
Hello everybody!
I'm try to using XWiki 0.9.840 in the own projects, but have a lot
of problem with Russian text. Maybe I do something wrong, so please
help me if possible.
I'm using KOI8-R encoding in XWiki. Russian text is edited and
viewed correctly.
1. But it's impossible to search on the Russian - search box
contains "????" after Sumbit. Looks like incorrect encoding is used.
2. When I try to use Lists Syntax - it's not working at all. Some
lines are displayed as bold, some lines as regular text.
3. It's impossible to create new page with Russian name. It's always
saved as "?????".
Thank you for your comments!
--
Best regards,
Andrey mailto:voland@udm.ru
Youcef,
> Convert your data encoding to utf-8, the procedure to configure utf-8 under
> xwiki it is well explained (I dont remember the link, but try to find it).
> All PB with encoding will be solved for each language!
thank you for quick response, but can't agree with you. I tried to
use UTF-8 - the same problems with search and page naming.
btw, how-to for UTF-8 is not very well in "database" part. For
instance, text "change the mysql encoding to UTF-8 (check it using
"show variables")" should be replaced by following instruction
(based by my experience):
1. (For MySQL 4.1.x) Create database with default UTF-8 encoding.
Example: CREATE DATABASE xwiki DEFAULT CHARACTER SET utf8;
2. Add these lines to WEB-INF\hibernate.cfg.xml (don't know, why
team suggest to use my.cnf setting for this instead of configure a
DB pool connection):
<property name="connection.characterEncoding">utf8</property>
<property name="connection.useUnicode">true</property>
>> Hello everybody!
>>
>> I'm try to using XWiki 0.9.840 in the own projects, but have a lot
>> of problem with Russian text. Maybe I do something wrong, so please
>> help me if possible.
>>
>> I'm using KOI8-R encoding in XWiki. Russian text is edited and
>> viewed correctly.
>>
>> 1. But it's impossible to search on the Russian - search box
>> contains "????" after Sumbit. Looks like incorrect encoding is used.
>>
>> 2. When I try to use Lists Syntax - it's not working at all. Some
>> lines are displayed as bold, some lines as regular text.
>>
>> 3. It's impossible to create new page with Russian name. It's always
>> saved as "?????".
>>
>> Thank you for your comments!
--
Best regards,
Andrey mailto:voland@udm.ru
We set up the xwiki using the sample database, and it works fine, but on the java console there are lots of exceptions at startup time concerning objects not found. Firstly, is this normal? How do you clean up the object store so these don't happen?
Thanks again...
Hi,
I just want to change the copyright notice. We have XWiki 0.9.840. I have Admin rights. This is what I did:
1 create brand new space by linking to it from elsewhere: [Research.Proposals]
2 hit ? to create that page ...view/Research/Proposals
3 Select more actions/Space Preferences/Presentation
4 All fields are shown empty. I assume this is interpreted as "use XWiki preference for this field"
5 I write "Copyright <company name>" in the copyright field
6 Hit Save Preferences
7 Go to page just created and reload.
Result: copyright notice still not changed in that space. Am I doing something wrong? I'd appreciate your help
--jose
Hi,
I'd like to build a small application that should send emails.
XWiki is installed on a Redhat Linux 4 with Sendmail 8.13.1. When I try a
simple example to send email I get the following error message from XWiki :
Error number 4001 in 4: Error while parsing velocity page Demos.test
Wrapped Exception: Invocation of method 'sendMessage' in class
com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException :
Error number 10005 in 10: Could not login to mail server localhost port 25
error code 501 (501 5.0.0 Invalid domain name
)
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page Demos.test
Wrapped Exception: Invocation of method 'sendMessage' in class
com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException :
Error number 10005 in 10: Could not login to mail server localhost port 25
error code 501 (501 5.0.0 Invalid domain name
...
In fact after looking for the problem in my sendmail conf, I discover that the
problem come from the domain name indicated by XWiki which avoid XWiki to
connect to sendmail : 'HELO XWiki version 0.9.840'
I would like to know if there is a way to change the XWiki domain name or to
tell sendmail to accept wrong domain name. In my sendmail config, I've put
this :
FEATURE(`accept_unresolvable_domains')dnl
But it still doesn't work.
Thanks a lot
--
Xavier MOGHRABI - Consortium ObjectWeb
--
Sendmail debug trace :
obispeno sendmail[17999]: NOQUEUE: connect from obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: AUTH: available mech=CRAM-MD5 LOGIN DIGEST-MD5
ANONYMOUS PLAIN, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
obispeno sendmail[17999]: j9JHQANM017999: Milter: no active filter
obispeno sendmail[17999]: j9JHQANM017999: --- 220 obispeno.inria.fr ESMTP
Sendmail 8.13.1/8.13.1; Wed, 19 Oct 2005 19:26:10 +0200
obispeno sendmail[17999]: j9JHQANM017999: <-- HELO XWiki version 0.9.840
obispeno sendmail[17999]: j9JHQANM017999: --- 501 5.0.0 Invalid domain name
obispeno sendmail[17999]: j9JHQANM017999: invalid domain name (XWiki) from
obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: j9JHQANM017999: --- 421 4.4.1 obispeno.inria.fr Lost
input channel from obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: j9JHQANM017999: obispeno.inria.fr [127.0.0.1] did
not issue MAIL/EXPN/VRFY/ETRN during connection to MTA