[Trac #1453] DataStore.update() method should have in_signature 'sa{ss}s'

Zarro Boogs per Child bugtracker at laptop.org
Thu May 10 12:07:05 EDT 2007


#1453: DataStore.update() method should have in_signature 'sa{ss}s'
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  bcsaller 
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  Untriaged
Component:  datastore  |     Version:           
 Keywords:             |  
-----------------------+----------------------------------------------------
 Also, the dbus signal needs to be a separate python method.
 {{{
 -    @dbus.service.signal(_DS_DBUS_INTERFACE)
      @dbus.service.method(_DS_DBUS_INTERFACE,
 -             in_signature='sa{ss}as',
 -             out_signature='s')
 +             in_signature='sa{ss}s',
 +             out_signature='')
      def update(self, uid, props, filelike=None):
          """Record the current state of the object checked out for a
          given uid. If contents have been written to another file for
 @@ -170,6 +172,11 @@ class DataStore(dbus.service.Object):
          if content:
              self.querymanager.update(uid, props, filelike)
              self.backingstore.set(uid, filelike)
 +            self.updated(uid, props, filelike.name)
 +
 +    @dbus.service.signal(_DS_DBUS_INTERFACE, signature='sa{ss}s')
 +    def updated(self, uid, props, filelike):
 +        pass
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/1453>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list