2010-08-08 14:30:15 -04:00
|
|
|
# Bryan Schumaker (8/8/2010)
|
|
|
|
|
|
|
|
class Table(dict):
|
|
|
|
def __init__(self):
|
|
|
|
dict.__init__(self)
|
|
|
|
self.next_id = 0
|
|
|
|
|
|
|
|
|
2010-08-12 08:27:21 -04:00
|
|
|
def insert(self, tags):
|
2010-08-08 14:30:15 -04:00
|
|
|
id = self.next_id
|
2010-08-12 08:27:21 -04:00
|
|
|
self[id] = tags
|
2010-08-08 14:30:15 -04:00
|
|
|
self.next_id += 1
|
|
|
|
return id
|