MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / readInventory

Function readInventory

src/message_data_reader.py:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 print 'Address:', address, '\tTime first broadcast:', unicode(strftime('%a, %d %b %Y %I:%M %p',localtime(time)),'utf-8'), '\tUsed by me personally:', usedpersonally, '\tFull pubkey message:', hexlify(transmitdata)
56
57def readInventory():
58 print 'Printing everything in inventory table:'
59 item = '''select hash, objecttype, streamnumber, payload, expirestime from inventory'''
60 parameters = ''
61 cur.execute(item, parameters)
62 output = cur.fetchall()
63 for row in output:
64 hash, objecttype, streamnumber, payload, expirestime = row
65 print 'Hash:', hexlify(hash), objecttype, streamnumber, '\t', hexlify(payload), '\t', unicode(strftime('%a, %d %b %Y %I:%M %p',localtime(expirestime)),'utf-8')
66
67
68def takeInboxMessagesOutOfTrash():

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected