I am developing a simple Blogging / Bookmarking platform, and I am trying to add the lร delicious function to the explorer / drill-down tag so that users can filter messages indicating a list of specific tags.
Something like that:

Messages are presented in the data warehouse with this simplified model:
class Post(db.Model):
title = db.StringProperty(required = True)
link = db.LinkProperty(required = True)
description = db.StringProperty(required = True)
tags = db.ListProperty(str)
created = db.DateTimeProperty(required = True, auto_now_add = True)
Email tags are stored in ListProperty, and to get a list of messages tagged with a specific tag list, the Post model provides the following static method:
@staticmethod
def get_posts(limit, offset, tags_filter = []):
posts = Post.all()
for tag in tags_filter:
if tag:
posts.filter('tags', tag)
return posts.fetch(limit = limit, offset = offset)
This works well, although I did not particularly emphasize it.
, get_posts, , "-created":
@staticmethod
def get_posts(limit, offset, tags_filter = []):
posts = Post.all()
for tag in tags_filter:
if tag:
posts.filter('tags', tag)
posts.order("-created")
return posts.fetch(limit = limit, offset = offset)
, .
, , , get_posts .
- // / ?