Hi,
Yesterday I had a chain of bad things with my pier image (on production).
First, I learned the bad way that uploafing a 16M file is a bad idea
:(... it hangs my application, maybe not for a problem on pier but my
hosting provider... and very stupid I, that image is the only one who
does not have a VNC server running there so I cannot see what was
happening.
So I tried to start a backup... and there is the problem: last backup
image is from Dec 5 :(
I have a simple image persistence configured there... so I thought I
should have at least one image a day... :( :(
Well, transactions.txt is full of transactions, but I don't know how to
use it for restablish my pier image... what I need to do?
Thanks in advance,
Esteban
pd: of course, right now I'm installing it a VNC server and a few more
things to ensure this will not happen again -at least, it will not
catch me so nude :)
Is it possible to compose an MAReport to use fields from different
objects?
For example, the person editor exercise has a PersonModel that
contains an AddressModel. Right now, an MAReport on the PersonModel
shows the AddressModel instance as one column. Would it be possible
to show only the Country field of the AddressModel (and have the
columns titled 'Country', not 'Home Address') in the report?
Thanks,
David
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
I'm trying to find the best way to add a collection into the Pier user
data model.
I located this advice:
"For adding properties like first name, last name and email to a user
the easiest way is to add some Magritte descriptions to PUUser.Add your
new description methods to a new category called something like
*myproject-usermodel so it won't be overwritten when you load new
versions of Pier-Unix-Security from Monticello (the star at the
beginning of the name is essential)."
Can one do this without also adding instance vars in the PUUser class?
And If not, wouldn't those instance vars be overwritten when you load
new versions of Pier-Unix-Security?
In my case it also applies to PUUser>>initialize, which initializes my
empty collection. Won't that be overwritten?
Am I going about this the wrong way?
If I add 'beRequired' to descriptionStreet on the MAAddressModel, the
constraint error message ("Street: Input is required but no input
given") isn't displayed on the personeditor page. What do I need to
do to render the error?
Thanks,
David