~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Robert Collins
  • Date: 2005-10-14 04:34:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1456.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014043437-11ff9c436c3c6995
make getting the signature checking policy a template method

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        """Get the users pop up editor."""
40
40
        raise NotImplementedError
41
41
 
 
42
    def _get_signature_checking(self):
 
43
        """Template method to override signature checking policy."""
 
44
 
42
45
    def __init__(self):
43
46
        super(Config, self).__init__()
44
47
 
84
87
 
85
88
    def signature_checking(self):
86
89
        """What is the current policy for signature checking?."""
 
90
        policy = self._get_signature_checking()
 
91
        if policy is not None:
 
92
            return policy
87
93
        return CHECK_IF_POSSIBLE
88
94
 
 
95
 
89
96
class GlobalConfig(Config):
90
97
    """The configuration that should be used for a specific location."""
91
98