correction page test-css (et sans doute les modes/aspects aussi)
This commit is contained in:
parent
84559d7174
commit
f55c02cc45
|
@ -362,7 +362,7 @@ def index():
|
|||
pageTitle = 'Test CSS - Index')
|
||||
try:
|
||||
headerTitle, pageBodyLayout, buttonsBarLayout, inForm \
|
||||
= mode.getModelLayoutInfos(card, keywords, again, create)
|
||||
= mode.getModelLayoutInfos(card, keywords, create)
|
||||
layout = X.array()
|
||||
if inForm:
|
||||
if error:
|
||||
|
|
|
@ -3277,6 +3277,11 @@ class Thing(Choice):
|
|||
sourceDispatcherId, destinationDispatcherId, parentSlot = slot)
|
||||
return value
|
||||
|
||||
def convertValueToOtherType(self, value, otherType):
|
||||
if otherType is types.StringType:
|
||||
return value.getThingName()
|
||||
return BaseKind.convertValueToOtherType(self, value, otherType)
|
||||
|
||||
def equals(self, kind):
|
||||
if not Choice.equals(self, kind):
|
||||
return 0
|
||||
|
@ -3737,11 +3742,6 @@ class Kind(Thing):
|
|||
if type(value) is types.StringType and value:
|
||||
return commonTools.newThing('kind', value)
|
||||
return BaseKind.convertValueFromOtherType(self, value)
|
||||
|
||||
def convertValueToOtherType(self, value, otherType):
|
||||
if otherType is types.StringType:
|
||||
return value.getThingName()
|
||||
return BaseKind.convertValueToOtherType(self, value, otherType)
|
||||
register(Kind)
|
||||
|
||||
|
||||
|
@ -3867,12 +3867,6 @@ class Widget(Thing):
|
|||
if type(value) is types.StringType and value:
|
||||
return commonTools.newThing('widget', value)
|
||||
return BaseKind.convertValueFromOtherType(self, value)
|
||||
|
||||
def convertValueToOtherType(self, value, otherType):
|
||||
if otherType is types.StringType:
|
||||
return value.getThingName()
|
||||
return BaseKind.convertValueToOtherType(self, value, otherType)
|
||||
|
||||
register(Widget)
|
||||
|
||||
|
||||
|
|
Reference in New Issue