my problem changed so need to restructure the question: How can I make the
user view look right?
I copy controller example from book, which produces feed.rss:
def feed():
return dict(title="my feed",
link="http://feed.example.com",
description="my first feed",
entries=[dict(title="my feed",
link="http://feed.example.com",
description="my first feed")
])
Then when I view it from http://127.0.0.1:8000/app/default/feed.rss, it
looks like XML:
<?xml version="1.0" encoding="utf8"?>
<rss version="2.0"><channel><title>my
feed</title><link>http://feed.example.com</link><description>my first
feed</description><lastBuildDate>Wed, 23 Nov 2016 16:46:21
GMT</lastBuildDate><generator>PyRSS2Gen-1.1.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>my
feed</title><link>http://feed.example.com</link><description>my first
feed</description><pubDate>Wed, 23 Nov 2016 16:46:21
GMT</pubDate></item></channel></rss>
When viewed from http://127.0.0.1:8000/app/default/feed. Seems to look
more correct from user perspective but I thought the links were supposed to
be clickable so user is sent to the right site with most updated data
Citizen Engagement
Feed
description :
my first feed
entries :
description :
my first feed
link :
http://feed.example.com
title :
my feed
link :
http://feed.example.com
title :
my feed
DESIGNREQUESTRESPONSESESSIONDB TABLESDB STATS
I
I need some basic tutoring on what is supposed to display for the user.
What goes in the view, or is there a view file?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.