~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Robert Collins
  • Date: 2005-10-17 21:57:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1462.
  • Revision ID: robertc@robertcollins.net-20051017215732-08f487800e726748
Allow creation of testaments from uncommitted data, and use that to get signatures before committing revisions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import bzrlib.errors as errors
24
24
 
 
25
class DisabledGPGStrategy(object):
 
26
    """A GPG Strategy that makes everything fail."""
 
27
 
 
28
    def __init__(self, ignored):
 
29
        """Real strategies take a configuration."""
 
30
 
 
31
    def sign(self, content):
 
32
        raise errors.SigningFailed('Signing is disabled.')
 
33
 
 
34
 
25
35
class LoopbackGPGStrategy(object):
 
36
    """A GPG Strategy that acts like 'cat' - data is just passed through."""
26
37
 
27
38
    def __init__(self, ignored):
28
39
        """Real strategies take a configuration."""