예제 #1
0
    def get_by_listing(cls, listing):
	q = add_filters(cls.all(), ('listing', ), (listing, ))
	return q
예제 #2
0
 def get_by_target(cls, target):
     q = add_filters(cls.all(), ('target', ), (target, ))
     return q
예제 #3
0
    def get_by_source(cls, bid, listing, source):
	q = add_filters(cls.all(), ('bid', 'listing', 'source'), (bid, listing, source))
	return q.get()