コード例 #1
0
    def confirm(self):
        BasicDialog.confirm(self)

        state = self.date_filter.get_state()
        if isinstance(state, DateQueryState):
            start, end = state.date, state.date
        else:
            start, end = state.start, state.end

        self.retval = date_range(start=start, end=end)
コード例 #2
0
ファイル: formfieldeditor.py プロジェクト: Joaldino/stoq
 def cancel(self, *args):
     self.store.rollback(close=False)
     BasicDialog.confirm(self, *args)
コード例 #3
0
ファイル: formfieldeditor.py プロジェクト: Joaldino/stoq
 def confirm(self, *args):
     self.store.confirm(True)
     BasicDialog.confirm(self, *args)
     info(_("Changes will be applied after all instances of Stoq are restarted."))
コード例 #4
0
 def cancel(self, *args):
     self.store.rollback(close=False)
     BasicDialog.confirm(self, *args)
コード例 #5
0
 def confirm(self, *args):
     self.store.confirm(True)
     BasicDialog.confirm(self, *args)
     info(_("Changes will be applied after all instances of Stoq are restarted."))
コード例 #6
0
ファイル: formfieldeditor.py プロジェクト: igorferreira/stoq
 def confirm(self, *args):
     self.store.confirm(True)
     BasicDialog.confirm(self, *args)
コード例 #7
0
 def confirm(self, *args):
     self.store.confirm(True)
     BasicDialog.confirm(self, *args)