[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).

This commit is contained in:
Gaetan Delannay 2013-02-19 16:48:35 +01:00
parent f6b2afc423
commit 34b0b13f84

View file

@ -186,11 +186,11 @@ class Group(ModelClass):
class Translation(ModelClass): class Translation(ModelClass):
_appy_attributes = ['po', 'title', 'sourceLanguage', 'trToTool'] _appy_attributes = ['po', 'title', 'sourceLanguage', 'trToTool']
# All methods defined below are fake. Real versions are in the wrapper. # All methods defined below are fake. Real versions are in the wrapper.
title = gen.String(show=False, indexed=True)
actionsPage = gen.Page('actions') actionsPage = gen.Page('actions')
def getPoFile(self): pass def getPoFile(self): pass
po = gen.Action(action=getPoFile, page=actionsPage, result='filetmp') po = gen.Action(action=getPoFile, page=actionsPage, result='filetmp')
sourceLanguage = gen.String(page=actionsPage, width=4) sourceLanguage = gen.String(page=actionsPage, width=4)
title = gen.String(show=False, indexed=True, page=actionsPage)
def label(self): pass def label(self): pass
def show(self, name): pass def show(self, name): pass