Beispiel #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)
Beispiel #2
0
	def get_all_entries_by_repeated_property(property, search, **kwargs):
		return Service.get_all(Entry.query(property == search.key), **kwargs)
Beispiel #3
0
	def get_entry_by_slug(slug):
		return Service.get_all(Entry.query(Entry.slug == slug))[0]
Beispiel #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)
Beispiel #5
0
	def get_all_entries_by_ancestor(ancestor, **kwargs):
		return Service.get_all(Entry.query(ancestor=ancestor), **kwargs)
Beispiel #6
0
	def get_all_entries(**kwargs):
		return Service.get_all(Entry.query(), **kwargs)
Beispiel #7
0
 def get_all_entries_by_repeated_property(property, search, **kwargs):
     return Service.get_all(Entry.query(property == search.key), **kwargs)
Beispiel #8
0
 def get_entry_by_slug(slug):
     return Service.get_all(Entry.query(Entry.slug == slug))[0]
Beispiel #9
0
 def get_all_entries_by_ancestor(ancestor, **kwargs):
     return Service.get_all(Entry.query(ancestor=ancestor), **kwargs)
Beispiel #10
0
 def get_all_entries(**kwargs):
     return Service.get_all(Entry.query(), **kwargs)