Changeset 247


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

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

Location:
trunk/factory
Files:
1 added
3 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 
  • trunk/factory/src/factory.py

    r244 r247  
    119119                except ImportError, e: 
    120120                        logging.warning('Error importing %s from %s. ' + str(e), class_name, package) 
     121                        print_stack() 
    121122                        return None 
    122123                 
  • trunk/factory/utils/ooofactory.bat

    r246 r247  
    88set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON% 
    99set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON%\lib\site-packages 
     10set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON%\lib\site-packages\win32 
     11set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON%\lib\site-packages\win32\lib 
     12set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON%\lib\site-packages\win32com 
     13set PYTHONPATH=%PYTHONPATH%;%LOCALPYTHON%\lib\site-packages\win32comext 
    1014 
    1115cd ..\src 
Note: See TracChangeset for help on using the changeset viewer.