def runBatch(self):
   ''' Produce Mystery SMD package for all existing SMD footprints. '''
   desiredPinCount = 2 # should be arg.  For now, use 2 or 3.  For Generic IC, many?
   directory = FritzingFootprintDirectory()
   directory.initSMD()
   count = 0
   for filename, footprint in directory.iteritems():
     if footprint.connectorCount() == desiredPinCount:
       outFileNameFzp = self.partFactory.produce(footprint)
       # Sanity check written fzp file is valid XML.  Uncomment for debug
       from xml.dom.minidom import parse
       outDom = parse(outFileNameFzp)
       count += 1
       if count > 5: # Temporary: limit to 5
         break
 def runBatch(self):
     ''' Produce Mystery SMD package for all existing SMD footprints. '''
     desiredPinCount = 2  # should be arg.  For now, use 2 or 3.  For Generic IC, many?
     directory = FritzingFootprintDirectory()
     directory.initSMD()
     count = 0
     for filename, footprint in directory.iteritems():
         if footprint.connectorCount() == desiredPinCount:
             outFileNameFzp = self.partFactory.produce(footprint)
             # Sanity check written fzp file is valid XML.  Uncomment for debug
             from xml.dom.minidom import parse
             outDom = parse(outFileNameFzp)
             count += 1
             if count > 5:  # Temporary: limit to 5
                 break