def app(userid, store): data = wishlist.Query(userid, country=store) print 'Authors or manufacturers:' for entry in data.authors(): print '\t=' + entry print 'Items titles:' for entry in data.titles(): print '\t=' + entry print 'Items covers:' for entry in data.covers(): print '\t=' + entry print 'Items URLs:' for entry in data.urls(): print '\t=' + entry print 'Items prices:' for entry in data.prices(): print '\t=' + entry print 'Universal wishlist sources:' for entry in data.via(): print '\t=' + entry print 'Ideas you saved for later:' for entry in data.ideas(): print '\t=' + entry if 'EUR' in data.currency or 'BRL' in data.currency: locale.setlocale(locale.LC_MONETARY, 'de_DE.UTF-8') else: locale.setlocale(locale.LC_MONETARY, 'en_US.UTF-8') print 'In %s your wishlist is worth %s%s' % (data.currency, data.symbol, locale.currency(data.total_expenses(), grouping=True, symbol=False)) data = profile.Query(userid, country=store) print 'Your name and avatar:' print data.basic_info() print 'Your lists data:' print data.wishlists() print 'Your lists and their sizes:' print data.wishlists_details()
def setup_method(self, method): global person person = profile.Query('3BFG9M3CL83QR', country='cn')
def setup_method(self, method): global person person = profile.Query('MBI8TEEYJS10', country='uk')
def setup_method(self, method): global person person = profile.Query('13RB1XNS2VF62', country='jp')
def setup_method(self, method): global person person = profile.Query('1LJ10M7BWAICD', country='es')
def setup_method(self, method): global person person = profile.Query('2S73P06DMTAL6', country='br')
def setup_method(self, method): global person person = profile.Query('3W1RQNDJTCQC', country='it')
def setup_method(self, method): global person person = profile.Query('3MCYFXCFDH4FA', country='us')
def setup_method(self, method): global person person = profile.Query('2ZPN6SBGBP4X8', country='de')
def setup_method(self, method): global person person = profile.Query('PEK9J1M112UK', country='ca')
def setup_method(self, method): global person person = profile.Query('2POKVB3027QIK', country='fr')