~bryce/gtg/dbus-service-name

« back to all changes in this revision

Viewing changes to GTG/tools/testingmode.py

  • Committer: Luca Invernizzi
  • Date: 2010-06-22 20:19:47 UTC
  • mto: This revision was merged to the branch mainline in revision 825.
  • Revision ID: invernizzi.l@gmail.com-20100622201947-mixmodtcf6qvowqi
second batch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from GTG.tools.borg import Borg
 
2
 
 
3
 
 
4
 
 
5
class TestingMode(Borg):
 
6
 
 
7
 
 
8
    def set_testing_mode(self, value):
 
9
        self._testing_mode = value
 
10
 
 
11
    def get_testing_mode(self):
 
12
        try:
 
13
            return self._testing_mode
 
14
        except:
 
15
            return False
 
16