~ubuntu-branches/ubuntu/precise/aptdaemon/precise

« back to all changes in this revision

Viewing changes to aptdaemon/core.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-28 10:01:10 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110628100110-s6pqeu22amh7ib3r
Tags: 0.43+bzr662-0ubuntu1
* New bzr snapshot
* debian/patches/01_add_dpkg_untranslated_messages_env.patch:
  - add DPKG_UNTRANSLATED_MESSAGES environment in the child
    to force untranslated dpkg messages for easier bug duplication
    detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
                    attrib["type"] = "s"
175
175
                elif isinstance(value, dbus.Int32):
176
176
                    attrib["type"] = "i"
 
177
                elif isinstance(value, dbus.Int64):
 
178
                    attrib["type"] = "x"
177
179
                elif isinstance(value, dbus.Boolean):
178
180
                    attrib["type"] = "b"
179
181
                elif isinstance(value, dbus.Struct):
183
185
                elif isinstance(value, dbus.Array):
184
186
                    attrib["type"] = "a%s" % value.signature
185
187
                else:
186
 
                    raise Exception("Type %s of property %s in't " \
 
188
                    raise Exception("Type %s of property %s isn't " \
187
189
                                    "convertable" % (type(value), key))
188
190
                iface.append(ElementTree.Element("property", attrib))
189
191
        new_data = ElementTree.tostring(xml, encoding="UTF-8")
345
347
        self.cancelled = dbus.Boolean(False)
346
348
        self.paused = dbus.Boolean(False)
347
349
        self._meta_data = dbus.Dictionary(signature="sv")
348
 
        self._download = dbus.Int32(0)
349
 
        self._space = dbus.Int32(0)
 
350
        self._download = dbus.Int64(0)
 
351
        self._space = dbus.Int64(0)
350
352
        self._depends = dbus.Struct([dbus.Array([], signature='s') \
351
353
                                     for i in range(7)],
352
354
                                    signature="asasasasasasas")
497
499
        return self._download
498
500
 
499
501
    def _set_download(self, size):
500
 
        self._download = dbus.Int32(size)
 
502
        self._download = dbus.Int64(size)
501
503
        self.PropertyChanged("Download", self._download)
502
504
 
503
505
    download = property(_get_download, _set_download,
507
509
        return self._space
508
510
 
509
511
    def _set_space(self, size):
510
 
        self._space = dbus.Int32(size)
 
512
        self._space = dbus.Int64(size)
511
513
        self.PropertyChanged("Space", self._space)
512
514
 
513
515
    space = property(_get_space, _set_space,