From 5695fe34f087bee5d557dd17842a2e6ee860b6db Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 14 Dec 2012 14:28:31 -0600 Subject: [PATCH] fixed example in examples from pull-request, thanks tpng --- Makefile | 2 +- VERSION | 2 +- applications/examples/controllers/simple_examples.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 086eb1c5..6b0dd92b 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ update: wget -O gluon/contrib/simplejsonrpc.py http://rad2py.googlecode.com/hg/ide2py/simplejsonrpc.py echo "remember that pymysql was tweaked" src: - echo 'Version 2.3.1 ('`date +%Y-%m-%d\ %H:%M:%S`') stable' > VERSION + echo 'Version 2.3.1 ('`date +%Y-%m-%d\ %H:%M:%S`') dev' > VERSION ### rm -f all junk files make clean ### clean up baisc apps diff --git a/VERSION b/VERSION index 29d2ebd3..03dd8571 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.1 (2012-12-14 09:21:31) stable +Version 2.3.1 (2012-12-14 14:27:22) dev diff --git a/applications/examples/controllers/simple_examples.py b/applications/examples/controllers/simple_examples.py index 35840bbb..046652e3 100644 --- a/applications/examples/controllers/simple_examples.py +++ b/applications/examples/controllers/simple_examples.py @@ -1,3 +1,4 @@ + def hello1(): """ simple page without template """ @@ -99,7 +100,7 @@ def rss_aggregator(): pubDate=datetime.datetime.now()) for entry in d.entries]) response.headers['Content-Type'] = 'application/rss+xml' - return rss2.dumps(rss) + return rss.to_xml(encoding='utf-8') def ajaxwiki():