I have been playing around with Seaside, Magritte and Glorp with the
intention of converting (or just adding to) a web application I started
using Django and Python. The data is stored in a PostgreSQL database.
I have some of the Magritte list views working but one of them wasn't. A
column was not displaying properly. The column should display a
MAToOneRelationDescription, the target object of which had four separate
string components. The list view was only displaying the first of these.
I think the fault is in MAStringWriter >> visitContainer: aDescription. The
original method was like this:
visitContainer: aDescription
aDescription do:
[ :each |
each isVisible ifTrue:
[
each stringWriter
write: (self object readUsing: each)
description: each to: stream.
^ self
]
].
But I think the ^self should be outside the iteration. When I changed the
method to:
visitContainer: aDescription
aDescription do:
[ :each |
each isVisible ifTrue:
[
each stringWriter
write: (self object readUsing: each)
description: each to: stream.
]
].
^ self
I get all four components displayed (unfortunately without any spacing but I
guess that is a separate problem.
Cheers
Steve McCusker
PS My image is sq3.9-7067web08.01.1