Alvin Wang, el mi�rcoles 21 de diciembre a las 04:22 me escribiste:
>
> I changed the name of the class to TurboEmail to avoid the python email
> class. Plus I figured that this is useless without TG anyway.
If this will be part of TG, you can avoid the name clash with module names
(even if it will not ship with TG the python's email class is in it's own
'namespace' so there's no need for the Turbo part, except of course if you
just like that name ;)
> testmail(self, to_addr, from_addr=None)
> sendKIDemail(self, to_addr, kid_template, dict_args, from_addr=None,
> subject=None )
> sendHTMLemail(self, to_addr, html, from_addr=None, text=None,
> subject=None )
> sendTEXTemail(self, to_addr, text, subject=None, from_addr=None)
> sendKIDTEXTemail(self, to_addr, kid_template, dict_args,
> from_addr=None, subject=None )
What about the new naming convention? Wouldn't that be:
test_mail(self, to_addr, from_addr=None)
send_kid_email(self, to_addr, kid_template, dict_args, from_addr=None,
subject=None )
send_html_email(self, to_addr, html, from_addr=None, text=None,
subject=None )
send_text_email(self, to_addr, text, subject=None, from_addr=None)
send_kid_text_email(self, to_addr, kid_template, dict_args,
from_addr=None, subject=None )
? Or my memory is failing again and that was dropped? Anyway I feel the
name convention is wrong, maybe is because of the ALL UPPERCASE parts of
the method names, I think it should be at lease CamelCase, like: testMail,
sendKidEmail, sendHtmlEmail, etc.
I think some kind of wiki-format is great for writing e-mails, because
they are just nice text messages, and filtering via a wiki-formating it
could be presented as HTML too (maybe you could include an option to use
the docutils used in the 20 minutes wiki tutorial).
I'm just thinking out loud...
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
.------------------------------------------------------------------------,
\ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 /
'--------------------------------------------------------------------'
No existiría el sonido del mar si faltara en la vida oreja y caracol.
-- Ricardo Vaporeso. Cosquín, 1908.