Chromium Code Reviews| Index: grit/node/io.py |
| diff --git a/grit/node/io.py b/grit/node/io.py |
| index 9962bffe58797c7d49a6959cb4879a1ccaece473..5ddb17c0efc41f210cd5c5cd1c7c53649d9b4485 100644 |
| --- a/grit/node/io.py |
| +++ b/grit/node/io.py |
| @@ -77,6 +77,7 @@ class OutputNode(base.Node): |
| 'lang' : '', # empty lang indicates all languages |
| 'language_section' : 'neutral', # defines a language neutral section |
| 'context' : '', |
| + 'fallback_to_default_layout' : 'true', |
| } |
| def GetType(self): |
| @@ -100,6 +101,9 @@ class OutputNode(base.Node): |
| path = self.attrs['filename'] |
| return os.path.expandvars(path) |
| + def GetFallbackToDefaultLayout(self): |
| + return self.attrs['fallback_to_default_layout'] |
|
flackr
2015/06/19 19:42:13
I'd convert this to a bool at this point to avoid
tdanderson
2015/06/22 23:33:20
Done. Note I added .lower() in next patch set.
|
| + |
| def _IsValidChild(self, child): |
| return isinstance(child, EmitNode) |