Thanks for the replies. I worked out what the problem is. The code in the
book is incorrect. The line:
link = URL('show', args=row.id)
does not produce a full URL. The RSS service does not like this and fails.
If I replace it with:
link = "http://127.0.0.1:8000" + URL('show', args=row.id)
then it all works fine. I'm sure there is a more elegant way to fix this!
Please update the example code in the book.
Thanks!
On 25 September 2010 19:08, mdipierro <[email protected]> wrote:
> it depends on the model. You must have wiki fields and your action
> must return record in the format described by the book in chapter 3.
>
> Massimo
>
> On Sep 25, 12:34 pm, Tom Atkins <[email protected]> wrote:
> > I've just copied and pasted from the online book the wiki application in
> > chapter 3. It all works great.
> >
> > I've added the function for the rss feed to controller/default.py and if
> I
> > go to:
> >
> > http://127.0.0.1:8000/mywiki/default/news
> >
> > I get a nice page showing the wiki entries.
> >
> > However if I go to:
> >
> > http://127.0.0.1:8000/mywiki/default/news.rss
> >
> > I just get a message saying 'no rss'...
> >
> > Am I doing something stupid or is the code in the book wrong /
> incomplete.
> >
> > Thanks for any help.
>