I made a sublcass of DjangoEmailMessage that stores email in db for later batch
processing.
class EmailMessage(DjangoEmailMessage):
def send(self):
email = Email(status=Email.STATUS_NEW, from_email=self.from_email,
to_email=self.to,
email.save()
return True
A recent change to core/email.py which forces to and bcc to lists broke my hack
of using plain strings.
Now I find my self needing to save lists and restore python lists from db.
save is np.
def save(self):
# must convert to_email list into string
self.to_email = repr(self.to_email)
super(Email, self).save()
But I'm not sure where to convert string back into list on select?
I could use a python property to do change at attribute access instead of at db
write/read, not the best solution but in this instance not horrid.
What would be best practice for this issue?
thanks,
njharman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---