Exemplo n.º 1
0
    def __makeList(self, store):
        list = []
        if self.__blob:
            dg = PyDatagram(self.__blob)
            di = PyDatagramIterator(dg)
            versionNumber = di.getUint8()
            while di.getRemainingSize() > 0:
                item = CatalogItem.decodeCatalogItem(di, versionNumber, store)
                list.append(item)

        return list
Exemplo n.º 2
0
    def __makeList(self, store):
        list = []
        if self.__blob:
            dg = PyDatagram(self.__blob)
            di = PyDatagramIterator(dg)
            versionNumber = di.getUint8()
            while di.getRemainingSize() > 0:
                item = CatalogItem.decodeCatalogItem(di, versionNumber, store)
                list.append(item)

        return list
Exemplo n.º 3
0
 def __makeList(self, store):
     # Construct a new list and populate it with the items decoded
     # from the blob.
     list = []
     if self.__blob:  # empty string or None means nothing on the list.
         dg = PyDatagram(self.__blob)
         di = PyDatagramIterator(dg)
         versionNumber = di.getUint8()
         while di.getRemainingSize() > 0:
             item = CatalogItem.decodeCatalogItem(di, versionNumber, store)
             list.append(item)
     return list