def AddExtensionFiles(params, options):
 added = {}
 for vd in params.VirtualDirs:
  for smp in vd.ScriptMaps:
   if ((smp.Module not in added) and smp.AddExtensionFile):
    _AddExtensionFile(smp.Module, vd.Name, vd.Description, smp, options)
    added[smp.Module] = True
 for fd in params.Filters:
  if ((fd.Path not in added) and fd.AddExtensionFile):
   _AddExtensionFile(fd.Path, fd.Name, fd.Description, fd, options)
   added[fd.Path] = True

def AddExtensionFiles ( params , options ) : added = { } for vd in params . VirtualDirs : for smp in vd . ScriptMaps : if ( ( smp . Module not in added ) and smp . AddExtensionFile ) : _AddExtensionFile ( smp . Module , vd . Name , vd . Description , smp , options ) added [ smp . Module ] = True for fd in params . Filters : if ( ( fd . Path not in added ) and fd . AddExtensionFile ) : _AddExtensionFile ( fd . Path , fd . Name , fd . Description , fd , options ) added [ fd . Path ] = True
register the modules used by the filters/extensions as a trusted extension module - required by the default iis6 security settings .