~ubuntu-branches/ubuntu/natty/gourmet/natty

« back to all changes in this revision

Viewing changes to src/lib/legacy_db/db_09/rmetakit.py

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2010-10-17 20:26:17 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20101017202617-qhc1yedaiptygdou
Tags: 0.15.6-1ubuntu1
* Merge from Debian unstable (LP: #618643), remaining changes:
  - debian/patches/03_dont_remove_nonexistent_plugin.patch: don't remove an
    inactive plugin in plugin_loader.py and don't deactivate a plugin from a
    non-existent database
* Dropped changes, superseded in Debian:
  - debian/control:
    + Recommend python-gtkspell for printing
  - debian/patches/01_fix_raise_str.patch: don't raise str exception
    in src/lib/plugin_gui.py
  - Don't set debian/pyversions to 2.5, this is obviously wrong.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        if typ == 'int': return "I"
158
158
        if typ == 'binary': return 'B'
159
159
        else:
160
 
            raise "Can't Understand TYPE %s"%typ
 
160
            raise Exception("Can't Understand TYPE %s" % typ)
161
161
    
162
162
    def save (self):
163
163
        """Commit our metakit database to file."""
342
342
        if not row:
343
343
            print 'Here are the guts of increment_vw:'
344
344
            metakit.dump(self.increment_vw)
345
 
            raise 'Very odd: we find no row for table: %s, field: %s'%(table,field)
 
345
            raise Exception("Very odd: we find no row for table: %s, field: %s" % (table, field))
346
346
        row.n += 1
347
347
        return row.n
348
348