Exemplo n.º 1
0
Arquivo: blog.py Projeto: yhyan/www
 def linked_taglist(self):
     tags = filter(None, [Tag.query.get(tag) for tag in self.taglist])
     return [(tag.name, route.url_for('tag', slugify(tag.slug))) \
                 for tag in tags]
Exemplo n.º 2
0
Arquivo: blog.py Projeto: yhyan/www
 def url(self):
     return route.url_for('tag', self.slug)
Exemplo n.º 3
0
Arquivo: blog.py Projeto: yhyan/www
 def url(self):
     return route.url_for('post_view',
                          self.created_at.year, 
                          self.created_at.month,
                          self.created_at.day,
                          self.title.encode('utf8'))
Exemplo n.º 4
0
 def url(self):
     return route.url_for('act_view',
                 self.slug.encode('utf8'))
Exemplo n.º 5
0
 def url(self):
     return route.url_for('tag', self.slug)
Exemplo n.º 6
0
 def linked_taglist(self):
     return [(tag, route.url_for('tag', slugify(tag))) \
                 for tag in self.taglist]
Exemplo n.º 7
0
 def url(self):
     return route.url_for('post_view',
                 self.created_date.year,
                 self.created_date.month,
                 self.created_date.day,
                 self.slug.encode('utf8'))