Probable (minor) bug in windows implementation of addToLog

38 views
Skip to first unread message

Tassos Pavlakos

unread,
Mar 5, 2014, 9:55:36 AM3/5/14
to arelle...@googlegroups.com

Recently came back to excellent Arelle.

When loading an instance and there is an error in downloading files for the relevant DTS, I get the following message (full stack trace at the end of the post):
  addToLog() got an unexpected keyword argument 'messageArgs', at ['  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\CntlrWinMain.py", line 688, in backgroundLoadXbrl

Note: this is in the most recent windows version (arelle-win-x64-2014-02-02)

I'm not a Python programmer, but from peeking at the source code, it seems to me that perhaps an overload of addToLog in WinMain skips the 'messageArgs' parameter.

i.e.:
Cntlr.py:
    def addToLog(self, message, messageCode="", messageArgs=None, file="", level=logging.INFO):

whereas in
CntlrWinMain.py:
    def addToLog(self, message, messageCode="", file="", level=logging.INFO):

Full message:
addToLog() got an unexpected keyword argument 'messageArgs', at ['  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\CntlrWinMain.py", line 688, in backgroundLoadXbrl
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelManager.py", line 140, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelXbrl.py", line 57, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 281, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 968, in instanceDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 840, in schemaLinkbaseRefsDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 843, in schemaLinkbaseRefDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 954, in discoverHref
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 277, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 713, in schemaDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 747, in schemaDiscoverChildElements
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 747, in schemaDiscoverChildElements
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 743, in schemaDiscoverChildElements
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 843, in schemaLinkbaseRefDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 954, in discoverHref
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 279, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 894, in linkbaseDiscover
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 954, in discoverHref
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\ModelDocument.py", line 80, in load
', '  File "C:\\Users\\Herm Fischer\\Documents\\mvsl\\projects\\Arelle\\ArelleProject\\src\\arelle\\WebCache.py", line 408, in getfilename
']

Herm Fischer

unread,
Mar 5, 2014, 1:31:54 PM3/5/14
to arelle...@googlegroups.com
Correct, this has been found in a test version and the fix should be checked in soon and in the next build.

   Herm
--

---
You received this message because you are subscribed to the Google Groups "Arelle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arelle-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages