1145 |
self.data['carbonfile'] = cfile |
self.data['carbonfile'] = cfile |
1146 |
return cfile |
return cfile |
1147 |
except MacOS.Error: |
except MacOS.Error: |
1148 |
|
log.Log("Cannot read carbonfile information from %s" % |
1149 |
|
(self.path,), 2) |
1150 |
self.data['carbonfile'] = None |
self.data['carbonfile'] = None |
1151 |
return self.data['carbonfile'] |
return self.data['carbonfile'] |
1152 |
|
|
1153 |
def write_carbonfile(self, cfile): |
def write_carbonfile(self, cfile): |
1154 |
"""Write new carbon data to self.""" |
"""Write new carbon data to self.""" |
1155 |
|
if not cfile: |
1156 |
|
# This should be made cleaner---if you know Mac OS X tell |
1157 |
|
# me what could cause an error in get_carbonfile above |
1158 |
|
return |
1159 |
|
|
1160 |
log.Log("Writing carbon data to %s" % (self.index,), 7) |
log.Log("Writing carbon data to %s" % (self.index,), 7) |
1161 |
from Carbon.File import FSSpec |
from Carbon.File import FSSpec |
1162 |
import MacOS |
import MacOS |