diff options
Diffstat (limited to 'grit/format/policy_templates/writers/template_writer.py')
-rw-r--r-- | grit/format/policy_templates/writers/template_writer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grit/format/policy_templates/writers/template_writer.py b/grit/format/policy_templates/writers/template_writer.py index 2a8b548..bd48425 100644 --- a/grit/format/policy_templates/writers/template_writer.py +++ b/grit/format/policy_templates/writers/template_writer.py @@ -87,6 +87,10 @@ class TemplateWriter(object): '''Checks if the given policy can be recommended.''' return policy.get('features', {}).get('can_be_recommended', False) + def CanBeMandatory(self, policy): + '''Checks if the given policy can be mandatory.''' + return policy.get('features', {}).get('can_be_mandatory', True) + def IsPolicySupportedOnPlatform(self, policy, platform): '''Checks if |policy| is supported on |platform|. |