Ignore:
Timestamp:
10/15/09 13:38:20 (11 years ago)
Author:
sander
Message:

Added a MS-Office backend using pythoncom and the Sun plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/factory/src/backends/__init__.py

    r174 r247  
    103103                        file.write(base64.b64decode(job['document'])) 
    104104                        file.close() 
    105                 except (IOError): 
    106                         raise BackendException('Could not write temporary file %s' % filename) 
    107                 except TypeError: 
    108                         raise BackendException('Document is not base64 encoded', True) 
     105                except IOError, e: 
     106                        raise BackendException('Could not write temporary file %s (%s)' % (filename, e)) 
     107                except TypeError, e: 
     108                        raise BackendException('Document is not base64 encoded (%s)' % e, True) 
    109109 
    110110                return filename 
Note: See TracChangeset for help on using the changeset viewer.