コード例 #1
0
ファイル: blog.py プロジェクト: yhyan/www
 def _get_author(self):
     if self._author:
         self._author.website = None
         return self._author
     return storage(email = self.email, 
                    nickname = self.nickname, 
                    website = self.website)
コード例 #2
0
 def _get_author(self):
     if self._author:
         self._author.website = None
         return self._author
     return storage(email = self.email,
                    nickname = self.nickname,
                    website = self.website)
コード例 #3
0
ファイル: blog.py プロジェクト: yhyan/www
    def as_data(self):

        comments = [storage({'author':comment.author,
                     'parent':comment.parent,
                     'comment':comment.comment,
                     }) for comment in self.all()]

        return comments
コード例 #4
0
    def as_data(self):

        comments = [storage({'author':comment.author,
                     'parent':comment.parent,
                     'comment':comment.comment,
                     }) for comment in self.all()]

        return comments
コード例 #5
0
ファイル: blog.py プロジェクト: yhyan/www
 def item(self):
     return storage(self.json)
コード例 #6
0
 def item(self):
     return storage(self.json)