2007-12-02 Douglas S.Blank <dblank@cs.brynmawr.edu>

* src/gen/lib/date.py: added new method copy_ymd()
	* src/plugins/CalculateEstimatedDates.py: new tool based on 
	  MenuOptions: calculates estimated dates
	* src/PluginUtils/_PluginWindows.py: refactoring, cleanup

	* po/POTFILES.in: renamed PluginStatus.py -> PluginWindows.py


svn: r9438
This commit is contained in:
Doug Blank
2007-12-02 18:41:21 +00:00
parent c545e281f4
commit ea61a85402
4 changed files with 458 additions and 28 deletions

View File

@@ -563,6 +563,14 @@ class Date:
retval.set_yr_mon_day_offset(year, month, day)
return retval
def copy_ymd(self, year=0, month=0, day=0):
"""
Returns a Date copy with year, month, and day set
"""
retval = Date(self)
retval.set_yr_mon_day(year, month, day)
return retval
def set_year(self, year):
"""
Sets the year value