Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Progress

  • Loading branch information...
commit 4b41516cdbed0be7b7c33e6a9e3f2db5c0f47e4a 1 parent a1a8486
@oscarrenalias oscarrenalias authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 app/view/view.py
View
9 app/view/view.py
@@ -82,14 +82,15 @@ def render(self, template, view_values = []):
class AtomView(BaseView):
def render(self, template, view_values = []):
import app.utils.templatehelpers
+ from app.models.entry import Entry
data=Entry().gql("ORDER BY created DESC").fetch(1)
view_values['site']['last_updated'] = data[0].created
- path = os.path.join(os.path.dirname(__file__), '../templates/atom.xml')
- return t.render(path, view_values)
-
-
+ #path = os.path.join(os.path.dirname(__file__), '../templates/atom.xml')
+ #return t.render(path, view_values)
+ template = self.jinja.get_template("atom.xml")
+ data = template.render(view_values)
class View:

0 comments on commit 4b41516

Please sign in to comment.
Something went wrong with that request. Please try again.