Module weekly
[show private | hide private]
[frames | no frames]

Module weekly

This script read all entries from a diary file and send the entries of a week per mail to a receiver.

Please read the class documentation of SendWeekly for more informations about the format of the entries.

CVS Status Informations:
 $Id: weekly-module.html,v 1.6 2006-10-11 20:37:25 carsten Exp $
Revision History:
 $Log: weekly-module.html,v $
 Revision 1.6  2006-10-11 20:37:25  carsten
 - auf Version 0.5 aktualisiert

 Revision 1.12  2006-10-06 16:36:50  carsten
 - try to use local user as sender if no sender is given
 - version 0.5

 Revision 1.11  2005/08/03 19:28:25  carsten
 - version 0.4a
 - fix: wrong linefeed at one line in each email

 Revision 1.10  2005/04/13 17:23:08  carsten
 - version 0.4
 - add wildcards %B (first date in the week) and %E (last date in the week)
   to use in the subject

 Revision 1.9  2005/03/27 08:06:28  carsten
 - version 0.3
 - enhance documentation a little bit
 - add cc and bcc to commandline and mailheader
 - fix: mails uses CRLF as linebreak

 Revision 1.8  2005/02/09 19:53:04  carsten
 - replace nearly all "None"s with corresponding boolean expression

 Revision 1.7  2005/02/03 19:02:06  carsten
 - fix bug in class initialization

 Revision 1.6  2005/02/01 18:16:00  carsten
 - version 0.2c
 - add documentation for class variables
 - replace basestring by str to get better compatibility

Version: 0.5

Author: Carsten Grohmann <mail (at) carstengrohmann (dot) de>

License: GPL version 2

Classes
SendWeekly Read all entries of a week from a diary file and send the entries as a mail to a receiver.

Function Summary
  checkiso(iso)
check the correctness of the given iso formated date return: True or False
  iso2date(iso)
convert a date from the ISO-Format YYYYMMDD to the format DD.MM.YYYY
  iso2sec(iso)
convert a iso formated date in seconds since 1970
  main()
main loop - get and check the command line options, creates and runs the class SendWeekly
  sec2iso(seconds)
converts the time in seconds since 1970 to the iso format YYYYMMDD
  usage(rval)
Print usage message and exit

Variable Summary
str __author__ = 'Carsten Grohmann <mail (at) carstengrohman...
str __copyright__ = 'Carsten Grohmann (c) 2004-2006'
str __cvsid__ = '$Id: weekly.py,v 1.12 2006-10-06 16:36:50 c...
str __date__ = '$Date: 2006-10-11 20:37:25 $'
str __revision__ = '$Revision: 1.6 $'
str __version__ = '0.5'

Function Details

checkiso(iso)

check the correctness of the given iso formated date return: True or False

iso2date(iso)

convert a date from the ISO-Format YYYYMMDD to the format DD.MM.YYYY
Parameters:
iso - date in ISO format
Returns:
date in european format DD.MM.YYYY

iso2sec(iso='')

convert a iso formated date in seconds since 1970
Parameters:
iso - date in iso format YYYYMMDD
Returns:
date in seconds since 1970

main()

main loop - get and check the command line options, creates and runs the class SendWeekly

sec2iso(seconds='')

converts the time in seconds since 1970 to the iso format YYYYMMDD
Parameters:
seconds - time in seconds since 1970
Returns:
iso format of the timestamp

usage(rval=0)

Print usage message and exit
Parameters:
rval - return value of this script

Variable Details

__author__

Type:
str
Value:
'Carsten Grohmann <mail (at) carstengrohmann dot de>'                  

__copyright__

Type:
str
Value:
'Carsten Grohmann (c) 2004-2006'                                       

__cvsid__

Type:
str
Value:
'$Id: weekly-module.html,v 1.6 2006-10-11 20:37:25 carsten Exp $'              

__date__

Type:
str
Value:
'$Date: 2006-10-11 20:37:25 $'                                         

__revision__

Type:
str
Value:
'$Revision: 1.6 $'                                                    

__version__

Type:
str
Value:
'0.5'                                                                  

Generated by Epydoc 2.1 on Wed Oct 11 22:31:42 2006 http://epydoc.sf.net