~vorlon/ubuntu/saucy/gourmet/trunk

« back to all changes in this revision

Viewing changes to src/lib/exporters/exportManager.py

  • Committer: Bazaar Package Importer
  • Author(s): Rolf Leggewie
  • Date: 2009-01-12 23:03:28 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090112230328-wnuqqte22uk3981b
Tags: 0.14.3-2
Conflict with python-pysqlite >= 2.5 which when installed crashes 
gourmet at startup. (Closes: #507382) and python-sqlalchemy >= 0.5.
Both restrictions should eventually be relaxed when upstream has
made the code compatible with the newer libs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        if hasattr(exporter_plugin,'mode'):
47
47
            export_file_mode = exporter_plugin.mode
48
48
            if export_file_mode not in ['w','a','wb']:
 
49
                print 'IGNORING INVALID FILE MODE',export_file_mode
49
50
                export_file_mode = 'w'
50
 
                print 'IGNORING INVALID FILE MODE',export_file_mode
51
51
        else:
52
52
            export_file_mode = 'w'
53
53
        outfi = file(filename,