Ejemplo n.º 1
0
    def edit_bill(self):
        records = dialogs.edit_dialog(parent=self.window, record=self.currentrecord)

        # Checks if the user did not cancel the action
        if records:
            for rec in records:
                # Edit bill to database
                rec = self.actions.edit(rec)
                self.emit("bill-updated", rec)

            # Reload records tree (something changed)
            self.reloadTreeView()
            self.reloadTimeline()
Ejemplo n.º 2
0
    def edit_bill(self):
        records = dialogs.edit_dialog(parent=self.window,
                                      record=self.currentrecord)

        # Checks if the user did not cancel the action
        if records:
            for rec in records:
                # Edit bill to database
                rec = self.actions.edit(rec)
                self.emit('bill-updated', rec)

            # Reload records tree (something changed)
            self.reloadTreeView()
            self.reloadTimeline()
Ejemplo n.º 3
0
 def __cb_edit_bill(self, *arg):
     record = dialogs.edit_dialog(arg[1][0])
     if record:
         #try:
         # Edit bill to database
         self.parent.dbus_server.edit(record)
Ejemplo n.º 4
0
 def __cb_edit_bill(self, *arg):
     record = dialogs.edit_dialog(arg[1][0])
     if record:
         #try:
             # Edit bill to database
         self.parent.dbus_server.edit(record)