示例#1
0
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()
示例#2
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('1LJ10M7BWAICD', country='es')
示例#3
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('2ZPN6SBGBP4X8', country='de')
示例#4
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('2POKVB3027QIK', country='fr')
示例#5
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('MBI8TEEYJS10', country='uk')
 def setup_method(self, method):
     global res
     res = wishlist.Query('3W1RQNDJTCQC', country='it')
示例#7
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('PEK9J1M112UK', country='ca')
 def setup_method(self, method):
     global res
     res = wishlist.Query('ZVKVJQHOBAT2', country='in')
 def setup_method(self, method):
     global res
     res = wishlist.Query('2S73P06DMTAL6', country='br')
示例#10
0
 def setup_method(self, method):
     global res
     res = wishlist.Query('3MCYFXCFDH4FA', country='us')
 def setup_method(self, method):
     global res
     res = wishlist.Query('3BFG9M3CL83QR', country='cn')