def loadPlugin(self,thefile,type="all"):
     if (os.path.basename(thefile)[0:7] == "plugin_" and thefile[-3:] == ".py"):
          self.thisPlugin = __import__(".".join(thefile.split(".")[0:-1]))
          logger.debug("mported %s" % self.thisPlugin.pluginName)
          logger.debug( "plugin type is %s for %s" % (self.thisPlugin.type,self.thisPlugin.pluginName))
          if (self.thisPlugin.enable == True and (self.thisPlugin.type == type or type == "all")):
              self.plugins.append(self.thisPlugin)
          else:
              self.disabledCount += 1
              logger.debug("not loading %s because it's disabled." % self.thisPlugin.pluginName)
Fills common fields for both push tasks and pull tasks.
dataset/ETHPy150Open tvidas/a5/scripts/bin/pluginManager.py/pluginManager.loadPlugin--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/taskqueue/taskqueue.py/Queue.__FillTaskCommon