correction page test-css (et sans doute les modes/aspects aussi)

This commit is contained in:
fpeters 2003-10-30 09:45:53 +00:00
parent 84559d7174
commit f55c02cc45
2 changed files with 6 additions and 12 deletions

View File

@ -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:

View File

@ -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)