[Open-collaboration-services] kdesupport/attica/lib

Shantanu Tushar Jha jhahoneyk at gmail.com
Thu Aug 12 06:23:12 CEST 2010


On Thu, Aug 12, 2010 at 4:00 AM, Frank Karlitschek <karlitschek at kde.org> wrote:
> Hi Mat,
>
> welcome back from vacation :-)
>
> I´m not aware of any client or server using the comments module yet.
> Do you know any? If not I think it is save to just rename it.

I hope I didn't misunderstand what you meant by comments module, but
isn't it in use by all openDesktop.org sites such as kde-look.org? All
these servers return "childs", instead of "children". Its fine to use
"children" if we're planning to update those servers accordingly.

>
> What do you think?
>
> Cheers
> Frank
>
>
> On 11.08.2010, at 19:59, Mateu Batle wrote:
>
>>
>> In the OCS draft was changed to "children".
>> Maybe we should support both for backwards compatibility,
>> or just take the incorrect "childs" spelling,
>>
>> Frank: what do you think ?
>>
>> best regards
>>  Mat
>>
>>
>>
>> On 08/11/2010 12:55 PM, Shantanu Tushar Jha wrote:
>>> SVN commit 1162227 by shantanu:
>>>
>>> The OCS specification mentions the tag as "childs", instead of "children" [1]
>>>
>>> [1] http://www.freedesktop.org/wiki/Specifications/open-collaboration-services#COMMENTS
>>>
>>> CCMAIL: mbatle at collabora.co.uk
>>>
>>>
>>>
>>> M  +4 -3      commentparser.cpp
>>>
>>>
>>> --- trunk/kdesupport/attica/lib/commentparser.cpp #1162226:1162227
>>> @@ -23,12 +23,13 @@
>>> */
>>>
>>> #include "commentparser.h"
>>> +#include <QDebug>
>>>
>>> -
>>> using namespace Attica;
>>>
>>> Comment Comment::Parser::parseXml(QXmlStreamReader& xml)
>>> {
>>> +    qDebug() << "XML " << xml.text();
>>>     Comment comment;
>>>
>>>     while (!xml.atEnd()) {
>>> @@ -49,7 +50,7 @@
>>>                 comment.setDate(QDateTime::fromString( xml.readElementText(), Qt::ISODate ));
>>>             } else if (xml.name() == "score") {
>>>                 comment.setScore(xml.readElementText().toInt());
>>> -            } else if (xml.name() == "children") {
>>> +            } else if (xml.name() == "childs") {
>>>                 QList<Comment> children = parseXmlChildren(xml);
>>>                 comment.setChildren(children);
>>>             }
>>> @@ -73,7 +74,7 @@
>>>                 Comment comment = parseXml(xml);
>>>                 children.append(comment);
>>>             }
>>> -        } else if (xml.isEndElement() && xml.name() == "children") {
>>> +        } else if (xml.isEndElement() && xml.name() == "childs") {
>>>             break;
>>>         }
>>>     }
>>>
>>
>> _______________________________________________
>> Open-collaboration-services mailing list
>> Open-collaboration-services at kde.org
>> https://mail.kde.org/mailman/listinfo/open-collaboration-services
>
>
> --
> Frank Karlitschek
> karlitschek at kde.org
>
>
>
>
>



-- 
Shantanu Tushar    (UTC +0530)
http://www.shantanutushar.com


More information about the Open-collaboration-services mailing list