[Dev] getting an assertion trying to create item
Katie Capps Parlante
capps at osafoundation.org
Fri Mar 5 13:48:30 PST 2004
We just talked about this on irc, but I'll compose a quick reply here in
case anyone else is interested...
You're getting the error because you're trying to use parcel code
(OSAF.contentmodel.mail is from a parcel, OSAF/contentmodel/mail), when
the parcel hasn't yet been loaded into the repository. The MailMessage
Kind does not yet exist in the repository -- that's what the error
message is trying to convey.
> It's probably my addled brain but here goes:
> In this snippet of python code I get an assertion error: assert
> cls.mailMessageKindID, "Mail message not yet loaded"
> from OSAF.contentmodel.mail.Mail import MailMessage
> msg = MailMessage()
> now there is a bunch of stuff around this but I know it's probably
> something really silly
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> Open Source Applications Foundation "Dev" mailing list
More information about the Dev