Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: grit/node/io.py

Issue 1194063002: grit: Add fallback_to_default_layout attribute to <output> (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698