"""
.. moduleauthor:: Adam Gagorik <adam.gagorik@gmail.com>
"""
import pydarkstar.darkobject
import pydarkstar.item

class ItemList(pydarkstar.darkobject.DarkObject):
    """
    Container for Item objects.
    """
    def __init__(self, *args, **kwargs):
        super(ItemList, self).__init__(*args, **kwargs)

if __name__ == '__main__':
    pass

@@ -108,16 +108,35 @@
 tar.item
+%0Aimport collections
 %0A%0Aclass 
@@ -323,16 +323,267 @@
 *kwargs)
+%0A        self.items = collections.OrderedDict()%0A%0A    def add(self, itemid, *args, **kwargs):%0A        i = pydarkstar.item.Item(itemid, *args, **kwargs)%0A        if i.itemid in self.items:%0A            raise KeyError('duplicate item found: %25d' %25 i.itemid)
 %0A%0Aif __n

Add itemlist add method.