On 12/09/2010 10:43 AM, Paul Harris wrote:
> On 9 December 2010 16:13, Marius Dumitru Florea<
> mariusdumitru.flo...@xwiki.com>  wrote:
>
>> Hi Paul,
>>
>> On 12/09/2010 04:45 AM, Paul Harris wrote:
>>> On 9 December 2010 10:02, Paul Harris<harris...@gmail.com>   wrote:
>>>
>>>> On 9 December 2010 09:49, Paul Harris<harris...@gmail.com>   wrote:
>>>>
>>>>> I think there is still a bug in there.  See this line:
>>>>>
>>>>>     #set($hqlQuery = ", XWikiRCSNodeInfo as ni where doc.id=ni.id.docId
>> and
>>>>> ni.id.version2=1 group by doc.space, doc.name order by max(ni.date)
>>>>> desc")
>>>>>
>>>>> With this, I was only seeing the XWiki* page changes (which date back a
>>>>> few years), and none of mine.
>>>>>
>>>>> I changed version2=1 to version2<>   1  and now i can see my pages.
>>>>>
>>>>> Is this correct?  What is "version2" ?
>>>>>
>>>>> Also, I was looking through the sql db, and noticed that in xwikircs,
>>>>> there are a lot of negative IDs in xwr_docid ... is this correct?
>>   sounds
>>>>> weird to me.
>>>>>
>>>>> thanks
>>>>> Paul
>>>>>
>>>>>
>>>>
>>>> I also added:  and ni.author<>   'superadmin'
>>>> otherwise you get a lot of "Watchlist" changes in the timeline...
>>>>
>>>>
>>>>
>>>
>>>
>>> I'm getting this message in the webserver logs:
>>> 2010-12-09 10:29:40,366 [
>>>
>> http://domain.com/xwiki/Website+Admin/Timeline?action=xml&xpage=plain&outputSyntax=plain&changesNb=200
>> ]
>>> WARN  internal.DefaultVelocityEngine  - Deprecated usage of method
>>> [java.util.Date.toGMTString] in xwiki:Website admin.timel...@16,27
>>>
>>> I had a go at fixing it, but I don't know enough Java yet.
>>
>> See
>>
>> http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html#toGMTString%28%29
>> it's deprecated.
>>
>> Hope this helps,
>> Marius
>>
>>
> Can you tell me what it is supposed to be changed to?  I tried changing it
> to DateFormat but I am not familiar with the API and it wouldn't work.

I updated the code snippet. I used $datetool to format the date. It 
doesn't use GMT timezone but I hope it's fine. Let me know if you have 
problems. I haven't found a way to create a GTM timezone in velocity so far.

>
> also, I have adjusted the Timeline page, and added a comment.  Timeline is
> now nicer to use :) (IMHO)
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Timeline

Thanks,
Marius

> _______________________________________________
> 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

Reply via email to