/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/add.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-06 00:23:46 UTC
  • mto: (0.8.83 merge)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060906002346-73aa11b52d4d7b96
Load plugins on startup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
except:
28
28
    sys.exit(1)
29
29
 
30
 
import olive.backend.errors as errors
31
 
import olive.backend.fileops as fileops
 
30
import bzrlib
 
31
import bzrlib.errors as errors
32
32
 
33
33
class OliveAdd:
34
34
    """ Display the Add file(s) dialog and perform the needed actions. """
73
73
                return
74
74
            
75
75
            try:
76
 
                fileops.add([directory + '/' + filename])
 
76
                bzrlib.add.smart_add([directory + '/' + filename])
77
77
            except errors.NotBranchError:
78
78
                self.dialog.error_dialog(_('Directory is not a branch'),
79
79
                                         _('You can perform this action only in a branch.'))
84
84
        elif radio_unknown.get_active():
85
85
            # Add unknown files recursively
86
86
            try:
87
 
                fileops.add([directory], True)
 
87
                bzrlib.add.smart_add([directory], True)
88
88
            except errors.NotBranchError:
89
89
                self.dialog.error_dialog(_('Directory is not a branch'),
90
90
                                         _('You can perform this action only in a branch.'))