Ejemplo n.º 1
0
 def show_duplicate_merger (self, *args):
     rmd = recipeMerger.RecipeMergerDialog(
         self.pluggable.rg.rd,
         on_close_callback=lambda *args: self.pluggable.rg.redo_search()
         )
     rmd.populate_tree_if_possible()
     rmd.show()
Ejemplo n.º 2
0
 def follow_up_pre_hook(self, importManager, threadmanager, importer):
     print 'Running recipeMergerPlugin follow up post hook!'
     if importer.added_recs:
         print 'There are ', len(importer.added_recs), 'added recs!'
         rmd = recipeMerger.RecipeMergerDialog(
             in_recipes=importer.added_recs, )
         rmd.show_if_there_are_dups(label=_(
             'Some of the imported recipes appear to be duplicates. You can merge them here, or close this dialog to leave them as they are.'
         ))
     return [threadmanager, importer], {}
Ejemplo n.º 3
0
 def import_cleanup_hook(self, rg, retval, *args, **kwargs):
     # Check for duplicates
     #gt.gtk_enter()
     if rg.last_impClass and rg.last_impClass.added_recs:
         rmd = recipeMerger.RecipeMergerDialog(
             rg.rd,
             in_recipes=rg.last_impClass.added_recs,
             on_close_callback=lambda *args: rg.redo_search())
         rmd.show_if_there_are_dups(label=_(
             'Some of the imported recipes appear to be duplicates. You can merge them here, or close this dialog to leave them as they are.'
         ))