Issue1710268

classification
Title: gexpose handle merge file not yet existing
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: crotwell, pjenvey
Priority: normal Keywords: patch

Created on 2007-04-30.20:45:22 by crotwell, last changed 2008-04-07.05:54:08 by pjenvey.

Files
File name Uploaded Description Edit Remove
gexpose_filenotexist.diff crotwell, 2007-04-30.20:45:22
Messages
msg2706 (view) Author: Philip Crotwell (crotwell) Date: 2007-04-30.20:45:22
if the merge file doesn't yet exist, gexpose.py fails with:

Traceback (most recent call last):
  File "gexpose.py", line 641, in <module>
    process(mapping[0], mapping[1], lazy)
  File "gexpose.py", line 567, in process
    result = merge(mergefile, result)
  File "gexpose.py", line 577, in merge
    f = file(filename, 'r')
IOError: [Errno 2] No such file or directory: 

the patch simply checks to see if the file exists first before opening it for reading. If it doesn't exist, then it bootstraps it with just the generated code and begin/end markers

msg3129 (view) Author: Philip Jenvey (pjenvey) Date: 2008-04-07.05:54:07
gexpose is no longer in use now that we have the exposed annotations 
(though gderived still is), so I'm closing this with a no fix
History
Date User Action Args
2008-04-07 05:54:08pjenveysetstatus: open -> closed
resolution: wont fix
messages: + msg3129
components: + Core, - None
nosy: + pjenvey
2007-04-30 20:45:22crotwellcreate