Schema documentation
- Had a conversation with Jeffrey and decided that the best way to proceed is to generate the HTML from the repository servlet somehow TBD.
- Also, we talked about how parcels might want to be able to register for command-line arguments
XRC
- Thanks to Jed for setting me straight on how to load an xrc file and pull resources out of it:
import wx
import wx.xrc
def main():
app = MyApp(0)
app.MainLoop()
class MyApp(wx.App):
def OnInit(self):
# wx.InitAllImageHandlers()
res = wx.xrc.XmlResource('test_wdr.xrc')
frame = wx.Frame(None, -1, "Test")
panel = res.LoadPanel(frame, 'TestDialog')
frame.Show(True)
return True
if __name__ == '__main__':
main()
Mail content model
- Here is Brian's content model which I need to convert to parcel.xml:
Mail Content Model
AccountBase (Parent object for account types SMTP, IMAP, POP, WebDav)
username: String
password:String
host: String
port:_Integer
portSSL: Integer
useSSL: Boolean
pollingFrequency: Integer
IMAPAcount (Extends from AccountBase)
messageDownloadSequence: Integer (Hold over from previous content model will be removed when foldering is better defined)
downloadedMail: list (Hold over from previous content model will be removed when foldering is better defined. All downloaded mail will appear in the IN collection)
SMTPAccount (Extends from AccountBase):
useAuth: Boolean
numRetries: Integer
FullName: String
replyToAddress: EmailAddress
MailDeliveryBase (Parent object for Delivery specific attributes of a MailMessage)
deliveryType: String (POP, IMAP, SMTP)
SMTPDelivery (extends from MailDeliveryBase)
history: list ([QUEUED, FAILED, QUEUED, SENT])
Tries: Integer default is 0(how many times has this message tried to be sent)
state: String default is DRAFT (DRAFT | QUEUED | SENT | FAILED)
IMAPDelivery (extends from MailDeliveryBase)
folder: (EMPTY FOR NOW) points to a folder object that contains UID
uid: String
namespace: String
flags: list
MIMEBase
additionalHeaders: list
Content-Type: String
Content-Length: Long
Content-Transfer-Encoding: String
Content-Description: String
Content-ID: String
Content-Disposition: String
MIMEType: String (Predefined type constants)
MailMessage (extends MIMEBase)
deliveryExtension: MailDeliveryBase subclass (pointer to a MailDelivery Class ie. IMAPDelivery)
isOutBound: Booolean (message can be both in and outbound)
isInBound: Boolean (message can be both in and outbound)
hasMIMEParts: Boolean
body: Text (inherited from Notes. if hasParts is true body will be None or empty)
MIMEParts: list
parentAccount: AccountBase subclass (pointer to the SMTP / IMAP / POP account that produced message)
Spam Score: Integer
rfc2882Message: Blob? (Contains original unparsed message as a blob for spam scoring and import / export)
dateSentString: String
dateSent: DateTime
dateReceived: DateTime
in-Reply-To: String
message-ID: String
references: list
received: list
return-Path: String
toAddress: list of EmailAddress
fromAddress: EmailAddress
replyToAddress: EmailAddress
bccAddress: list of EmailAddress
ccAddress: list of EmailAddress
subject: String
chandlerHeaders: list
MIME-Version: String
MIMEType: String (inherited from MIMEBase. Value will always be MESSAGE)
***Morgen Keep the following from current MailMessage Content Model
1. relatedMessages
2. forwardedIn
3. repliedToIn
MIMEBinary (extends from MIMEBase)
MIMEType: String (inherited from MIMEBase. Possible values are AUDIO / APPLICATION / IMAGE / VIDEO)
filename: String
MIMEText (extends from MIMEBase)
MIMEType: String (inherited from MIMEBase. Possible values are PLAIN / HTML / ENRICHED / RICHTEXT / SGML / RFC-HEADERS)
charset: String
MIMEContainer (extends from MIMEBase)
MIMEParts: list
MIMEType: String (inherited from MIMEBase. Possible values are ALTERNATIVE / PARALLEL / RELATED / REPORT / PARTIAL / DIGEST)
MIMESecurity (extends MIMEContainer)
MIMEType: String (inherited from MIMEBase. Possible values are SIGNED / ENCRYPTED)
--
MorgenSagen - 11 Aug 2004