Permalink
Browse files

Progress

  • Loading branch information...
1 parent a1a8486 commit 4b41516cdbed0be7b7c33e6a9e3f2db5c0f47e4a @oscarrenalias oscarrenalias committed Nov 17, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 app/view/view.py
View
@@ -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.