def AddModuleToCache(typelibclsid, lcid, major, minor, verbose=1, bFlushNow=(not is_readonly)):
 fname = GetGeneratedFileName(typelibclsid, lcid, major, minor)
 mod = _GetModule(fname)
 mod._in_gencache_ = 1
 dict = mod.CLSIDToClassMap
 info = (str(typelibclsid), lcid, major, minor)
 for (clsid, cls) in dict.iteritems():
  clsidToTypelib[clsid] = info
 dict = mod.CLSIDToPackageMap
 for (clsid, name) in dict.iteritems():
  clsidToTypelib[clsid] = info
 dict = mod.VTablesToClassMap
 for (clsid, cls) in dict.iteritems():
  clsidToTypelib[clsid] = info
 dict = mod.VTablesToPackageMap
 for (clsid, cls) in dict.iteritems():
  clsidToTypelib[clsid] = info
 if (info in versionRedirectMap):
  del versionRedirectMap[info]
 if bFlushNow:
  _SaveDicts()

def AddModuleToCache ( typelibclsid , lcid , major , minor , verbose = 1 , bFlushNow = ( not is_readonly ) ) : fname = GetGeneratedFileName ( typelibclsid , lcid , major , minor ) mod = _GetModule ( fname ) mod . _in_gencache_ = 1 dict = mod . CLSIDToClassMap info = ( str ( typelibclsid ) , lcid , major , minor ) for ( clsid , cls ) in dict . iteritems ( ) : clsidToTypelib [ clsid ] = info dict = mod . CLSIDToPackageMap for ( clsid , name ) in dict . iteritems ( ) : clsidToTypelib [ clsid ] = info dict = mod . VTablesToClassMap for ( clsid , cls ) in dict . iteritems ( ) : clsidToTypelib [ clsid ] = info dict = mod . VTablesToPackageMap for ( clsid , cls ) in dict . iteritems ( ) : clsidToTypelib [ clsid ] = info if ( info in versionRedirectMap ) : del versionRedirectMap [ info ] if bFlushNow : _SaveDicts ( )
add a newly generated file to the cache dictionary .