예제 #1
0
 def populate(self, items):
     if len(items) > 0:
         # Clear selection
         self.unselectAll()
         # Perform sorting, using item's meta levels besides other stuff
         if self.marketBrowser.mode != 'recent':
             items.sort(key=self.itemSort)
     # Mark current item list as active
     self.active = items
     # Show them
     Display.populate(self, items)
예제 #2
0
 def populate(self, items):
     if len(items) > 0:
         # Get dictionary with meta level attribute
         sAttr = Attribute.getInstance()
         attrs = sAttr.getAttributeInfo("metaLevel")
         sMkt = self.sMkt
         self.metalvls = sMkt.directAttrRequest(items, attrs)
         # Clear selection
         self.deselectItems()
         # Perform sorting, using item's meta levels besides other stuff
         items.sort(key=self.itemSort)
     # Mark current item list as active
     self.active = items
     # Show them
     Display.populate(self, items)
예제 #3
0
 def populate(self, items):
     if len(items) > 0:
         # Get dictionary with meta level attribute
         sAttr = Attribute.getInstance()
         attrs = sAttr.getAttributeInfo("metaLevel")
         sMkt = self.sMkt
         self.metalvls = sMkt.directAttrRequest(items, attrs)
         # Clear selection
         self.unselectAll()
         # Perform sorting, using item's meta levels besides other stuff
         items.sort(key=self.itemSort)
     # Mark current item list as active
     self.active = items
     # Show them
     Display.populate(self, items)