Changeset - d805698af0b5
[Not reviewed]
0 1 0
Lance Edgar - 8 years ago 2016-04-28 18:10:23
ledgar@sacfoodcoop.com
Add `RattailConfig.workdir()` convenience method
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/config.py
Show inline comments
 
@@ -321,6 +321,12 @@ class RattailConfig(object):
 
        """
 
        return self.getbool('rattail', 'production', default=False)
 

	
 
    def workdir(self, require=False):
 
        """
 
        Returns boolean indicating whether the config indicates production mode.
 
        """
 
        get = self.require if require else self.get
 
        return get('rattail', 'workdir')
 

	
 
    ##############################
 
    # deprecated methods
0 comments (0 inline, 0 general)