~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to samples/dbBrowser/metakitBrowse.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-03-04 23:55:10 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100304235510-3v6lbhzwrgm0pcca
Tags: 0.8.2-1
* QA upload.
* New upstream release
* debian/control
  - set maintainer to QA group
  - set Homepage field, removing the URL from packages description
  - bump versioned b-d-i on python-support, to properly support Python module
  - replace b-d on python-all-dev with python-all, since building only
    arch:all packages
  - replace Source-Version substvar with source:Version
  - add ${misc:Depends} to binary packages Depends
* debian/watch
  - updated to use the SourceForge redirector; thanks to Raphael Geissert for
    the report and to Dario Minnucci for the patch; Closes: #449904
* debian/{pythoncard-doc, python-pythoncard}.install
  - use wildcards instead of site-packages to fix build with python 2.6;
    thanks to Ilya Barygin for the report and patch; Closes: #572332
* debian/pythoncard-doc.doc-base
  - set section to Programmin/Python
* debian/pythoncard-tools.menu
  - set menu main section to Applications
* debian/pythoncard-tools.postinst
  - removed, needed only to update the menu, but it's now created by debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
 
__version__="$Revision $"[11:-2]
4
 
__date__="$Date $"
5
 
__author__="Andy Todd <andy47@halfcooked.com>"
6
 
 
7
 
#jm - marked changes 030218
8
 
 
9
3
"""
10
4
Module Name: metakitBrowse
11
5
Description: Plug in for PythonCard application dbBrowse to provide MetaKit specific functionality
17
11
To Do;
18
12
  Because metakit isn't a relational database we probably don't need to support the getQueryString method in this class. Its only really an internal utility method for the other, public, classes anyway.
19
13
"""
 
14
#jm - marked changes 030218
 
15
__version__="$Revision $"[11:-2]
 
16
__date__="$Date $"
 
17
__author__="Andy Todd <andy47@halfcooked.com>"
20
18
 
21
19
import metakit
22
20
import os
94
92
        for c in columnNames:
95
93
            try:
96
94
                result.append(getattr(row, c))
97
 
            except:
 
95
            except AttributeError:
98
96
                result.append('')
99
97
        #print result
100
98
        return result