def GetMapiTypeName(propType):
 if (not ptTable):
  for (name, value) in mapitags.__dict__.iteritems():
   if (name[:3] == 'PT_'):
    ptTable[value] = name
 rawType = (propType & (~ mapitags.MV_FLAG))
 return ptTable.get(rawType, str(hex(rawType)))

def GetMapiTypeName ( propType ) : if ( not ptTable ) : for ( name , value ) in mapitags . __dict__ . iteritems ( ) : if ( name [ : 3 ] == 'PT_' ) : ptTable [ value ] = name rawType = ( propType & ( ~ mapitags . MV_FLAG ) ) return ptTable . get ( rawType , str ( hex ( rawType ) ) )
given a mapi type flag .