better way: link = 'http://' + str(request.env.http_host) + URL('show', args=row.id)
On 26 sep, 06:30, Tom Atkins <minkto...@gmail.com> wrote: > 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 <mdipie...@cs.depaul.edu> 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 <minkto...@gmail.com> 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.