Esempio n. 1
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     uidsup = self.context.UID()
     outitems = []
     for x in range(len(items)):
         obj = items[x]['obj']
         if obj.getManufacturer().UID() == uidsup:
             outitems.append(items[x])
     return outitems
Esempio n. 2
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     uidsup = self.context.UID()
     outitems = []
     for x in range(len(items)):
         obj = items[x]['obj']
         if obj.getManufacturer().UID() == uidsup:
             outitems.append(items[x])
     return outitems
Esempio n. 3
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     uidsup = self.context.UID()
     outitems = []
     for x in range(len(items)):
         obj = items[x].get('obj', None)
         if obj and hasattr(obj, 'getRawSupplier') \
            and obj.getRawSupplier() == uidsup:
             outitems.append(items[x])
     return outitems
Esempio n. 4
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     filtered_items = []
     for item in items:
         if 'obj' not in item:
             continue
         itype = item['obj'].getInstrumentType()
         if itype and itype.UID() == self.context.UID():
             filtered_items.append(item)
     return filtered_items
Esempio n. 5
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     uidsup = self.context.UID()
     outitems = []
     for x in range(len(items)):
         obj = items[x].get('obj', None)
         if obj and hasattr(obj, 'getRawSupplier') \
            and obj.getRawSupplier() == uidsup:
             outitems.append(items[x])
     return outitems
Esempio n. 6
0
 def folderitems(self):
     items = InstrumentsView.folderitems(self)
     filtered_items = []
     for item in items:
         if 'obj' not in item:
             continue
         itype = item['obj'].getInstrumentType()
         if itype and itype.UID() == self.context.UID():
             filtered_items.append(item)
     return filtered_items
Esempio n. 7
0
 def __init__(self, context, request):
     InstrumentsView.__init__(self, context, request)
     self.context = context
     self.request = request