~ubuntu-branches/ubuntu/natty/pytrainer/natty-proposed

« back to all changes in this revision

Viewing changes to pytrainer/profile.py

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-02-04 06:07:11 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100204060711-25n5aw66w5egeiph
Tags: 1.7.1-1ubuntu1
* Merge from debian testing, remaining changes:
  - debian/control:
    + Replace Depends on iceweasel with firefox | abrowser.
    + Bump python-dev,debhelper build-dependencies.
    - Drop dependency on python-glade2 (libglade -> gtkbuilder transition).
  - debian/rules:
    + Append --install-laoyut=deb to setup.py install to prevent a build
      failure with Python 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
                        ("prf_ddbbname",""),
108
108
                        ("prf_ddbbuser",""),
109
109
                        ("prf_ddbbpass",""),
110
 
                        ("prf_us_system","False")]
 
110
                        ("prf_us_system","False"),
 
111
                        ("DB_version","0")]
111
112
                defaultListKeys = []
112
113
                for entry in defaultList:
113
114
                        defaultListKeys.append(unicode(entry[0]))
114
115
                logging.debug("Default values: "+ str(defaultList))
115
116
                #logging.debug("Default keys: "+ str(defaultListKeys))
116
117
                # Comparing fields
117
 
                # http://mail.python.org/pipermail/python-list/2002-May/142854.html
 
118
                # http://mail.python.org/pipermail/python-list/2002-May/141458.html
118
119
                tempDict = dict(zip(currentListKeys,currentListKeys))
119
120
                resultList = [x for x in defaultListKeys if x not in tempDict]
120
121
                logging.info('Fields to be added: '+str(resultList))