It seems that the "mywiki" tutorial in Chapter 3 of the book is no
longer accurate.  I had a problem with it.  If this can be
corroborated by someone else, perhaps this should be updated in the
book.

Environment......
* web2py 1.98.2 downloaded as "source", not as .app
* Mac OS X 10.6.8
* Python 2.7.2 -- EPD 7.1-1 (32-bit)

I followed all the examples in the book (Chapter 3).  When I completed
the "mywiki" app, I had a problem with this link:

        http://127.0.0.1:8000/mywiki/default/news.rss

Instead of showing me the RSS feed, I got an error message that
default/news is an "invalid view".  There was no trouble ticket
created, just an error message.

Trolling around the web, I found this post related to an invalid view:


>  [pbreit      View profile   More options Jun 30, 1:51 am]
>  Or this if you can get by with them only being available on "localhost":
>
>  # by default give a view/generic.extension to all actions from localhost
>  # none otherwise. a pattern can be 'controller/function.extension'
>  response.generic_patterns = ['*'] if request.is_local else []


I added this code to my db.py, and that seemed to resolve the
problem.  After that, when I visited

        http://127.0.0.1:8000/mywiki/default/news.rss

it actually brought up the RSS feed page in my Safari browser.

Am I the only one affected by this, or have others encountered this?

Thanks in advance.

Reply via email to