From 34b0b13f8496fcdb1fee13d7777ede739c38d011 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Tue, 19 Feb 2013 16:48:35 +0100 Subject: [PATCH] [gen] Bugfix while generating the Translation class (page 'main' was not viewable because of field 'trToTool' for which page.show was False for an unknown reason). --- gen/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/model.py b/gen/model.py index 9297fbc..c1b26fb 100644 --- a/gen/model.py +++ b/gen/model.py @@ -186,11 +186,11 @@ class Group(ModelClass): class Translation(ModelClass): _appy_attributes = ['po', 'title', 'sourceLanguage', 'trToTool'] # All methods defined below are fake. Real versions are in the wrapper. + title = gen.String(show=False, indexed=True) actionsPage = gen.Page('actions') def getPoFile(self): pass po = gen.Action(action=getPoFile, page=actionsPage, result='filetmp') sourceLanguage = gen.String(page=actionsPage, width=4) - title = gen.String(show=False, indexed=True, page=actionsPage) def label(self): pass def show(self, name): pass