예제 #1
0
 def get_all_entries_by_month(year, month, **kwargs):
     return Service.get_all(
         Entry.query(
             ndb.AND(
                 Entry.created > datetime.datetime(year, month, 1, 1, 0, 0),
                 Entry.created < datetime.datetime(year, month + 1, 1, 0,
                                                   0))), **kwargs)
예제 #2
0
	def get_all_entries_by_repeated_property(property, search, **kwargs):
		return Service.get_all(Entry.query(property == search.key), **kwargs)
예제 #3
0
	def get_entry_by_slug(slug):
		return Service.get_all(Entry.query(Entry.slug == slug))[0]
예제 #4
0
	def get_all_entries_by_month(year, month, **kwargs):
		return Service.get_all(Entry.query(ndb.AND(Entry.created > datetime.datetime(year, month, 1, 1, 0, 0),
		                                           Entry.created < datetime.datetime(year, month + 1, 1, 0, 0))), **kwargs)
예제 #5
0
	def get_all_entries_by_ancestor(ancestor, **kwargs):
		return Service.get_all(Entry.query(ancestor=ancestor), **kwargs)
예제 #6
0
	def get_all_entries(**kwargs):
		return Service.get_all(Entry.query(), **kwargs)
예제 #7
0
 def get_all_entries_by_repeated_property(property, search, **kwargs):
     return Service.get_all(Entry.query(property == search.key), **kwargs)
예제 #8
0
 def get_entry_by_slug(slug):
     return Service.get_all(Entry.query(Entry.slug == slug))[0]
예제 #9
0
 def get_all_entries_by_ancestor(ancestor, **kwargs):
     return Service.get_all(Entry.query(ancestor=ancestor), **kwargs)
예제 #10
0
 def get_all_entries(**kwargs):
     return Service.get_all(Entry.query(), **kwargs)