Skip to content

Commit

Permalink
[Feed] Several fixes so an rss feed can be read and inspected
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Jun 30, 2012
1 parent ab803c1 commit d37f123
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/unstable/feed/Entry.winxed
Expand Up @@ -15,7 +15,7 @@ class Rosella.Feed.Entry
}
}

class Rosella.Feed.Entry.Atom
class Rosella.Feed.Entry.Atom : Rosella.Feed.Entry
{
function Atom(var xmltag)
{
Expand Down Expand Up @@ -122,7 +122,7 @@ class Rosella.Feed.Entry.RssChannel
}
}

class Rosella.Feed.Entry.Rss
class Rosella.Feed.Entry.Rss : Rosella.Feed.Entry
{
function Rss(var xmltag)
{
Expand Down
17 changes: 15 additions & 2 deletions src/unstable/feed/Feed.winxed
Expand Up @@ -28,6 +28,11 @@ class Rosella.Feed
{
var xmldoc;

function Feed(var xmldoc)
{
self.xmldoc = xmldoc;
}

function set_xml_doc(var doc)
{
self.xmldoc = doc;
Expand All @@ -36,6 +41,8 @@ class Rosella.Feed

class Rosella.Feed.Factory : Rosella.ObjectFactory
{
function Factory() { }

function create(var xmldoc)
{
string name = xmldoc.get_document_root().name;
Expand All @@ -53,7 +60,10 @@ class Rosella.Feed.Factory : Rosella.ObjectFactory

class Rosella.Feed.Rss : Rosella.Feed
{
function Rss() { }
function Rss(var xmldoc)
{
self.Feed(xmldoc);
}

function channels()
{
Expand All @@ -77,7 +87,10 @@ class Rosella.Feed.Rss : Rosella.Feed

class Rosella.Feed.Atom : Rosella.Feed
{
function Atom() { }
function Atom(var xmldoc)
{
self.Feed(xmldoc);
}

function title()
{
Expand Down

0 comments on commit d37f123

Please sign in to comment.