I spent several days reading book about 2hrs a day, and wrote small script which reads database, prepares report, generates html content and sends this content as an email message (both html and text version, for old/specific clients).
The script is scheduled with the CRON and it just worked. So, i think this is really good result for the language you don't know.
- understand execution model
- incorporate database querying support (with named parameters, yeah :)
- understand how to generate html (I'm using jaxml module, it's kinda cool. creating html document just looks like doc.html().body(color="red").p(string, align="center") )
- understand how to send e-mail message (yes, mime knowledge gives good help, but neretheless. I'm sending this through GMAIL - so, SSL support is also here)
- understand how to work with dates (that's a bit ugly now, I'm sure there's better way of obtaining today timestamp than time.mktime(datetime.date.today().timetuple()) )
Learn python!
1 comment:
nice
congrats!
Post a Comment