https://bugs.freedesktop.org/show_bug.cgi?id=66025

Michael Meeks <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Michael Meeks <[email protected]> ---
Hi guys,

Yes - I did ask for this to be a MAB, but I guess we need more details here.

http://docs.python.org/3/reference/import.html#replacing-the-standard-import-system

Seems to suggest that it is correct for an __import__ hook to raise ImportError
to allow processing of other hooks to continue - but I'm no expert here - I CC
David Bolen who is though :-)

Tim - the values of name and 'x' - don't seem to start with 'typeOf':

          if x.startswith( "typeOf" ):
             try: 
                d[x] = pyuno.getTypeByName( name + "." + x[6:len(x)] )
             except RuntimeException as e:
                raise ImportError( "type " + name + "." + x[6:len(x)] +" is
unknown" )

So I'm a tad confused by the first fragment. I guess that it comes from:

                   except RuntimeException as e3:
                      # no known uno type !
                      raise ImportError( "type "+ name + "." +x + " is unknown"
)

ie. this is not an UNO type: which is fine of course - and AFAICS we should
throw that exception.

That is presumably creates noise on the console - but ... it's unclear to me
how to do better :-) [ but I'm no python guy ].

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to