def shot_save_callback(self, *args, **kwargs):
        """Callback for the shot open button

        :returns: None
        :rtype: None
        :raises: None
        """
        tasksel = self.browser.shotbrws.selected_indexes(2)
        if not tasksel or not tasksel[0].isValid():
            self.statusbar.showMessage('No task selected! Cannot save!')
            return

        taskitem = tasksel[0].internalPointer()
        task = taskitem.internal_data()
        rtype = djadapter.RELEASETYPES['work']
        descriptor = self.shot_descriptor_le.text()
        if not self.check_selection_for_save(task, rtype, descriptor):
            return

        tfi = TaskFileInfo.get_next(task=task, releasetype=rtype,
                                    typ=self._filetype, descriptor=descriptor)
        self._save_tfi(tfi)
def shot_save_callback ( self , * args , ** kwargs ) : tasksel = self . browser . shotbrws . selected_indexes ( 2 ) if not tasksel or not tasksel [ 0 ] . isValid ( ) : self . statusbar . showMessage ( 'No task selected! Cannot save!' ) return taskitem = tasksel [ 0 ] . internalPointer ( ) task = taskitem . internal_data ( ) rtype = djadapter . RELEASETYPES [ 'work' ] descriptor = self . shot_descriptor_le . text ( ) if not self . check_selection_for_save ( task , rtype , descriptor ) : return tfi = TaskFileInfo . get_next ( task = task , releasetype = rtype , typ = self . _filetype , descriptor = descriptor ) self . _save_tfi ( tfi )
Callback for the shot open button

        :returns: None
        :rtype: None
        :raises: None