* src/Date.py: Added "set_year" function

* src/Utils.py: qualifiy Date calls, eliminate string
module usage
* src/edit_sm.png: new image
* src/Makefile.am: install edit_sm.png
* src/gramps_main.py: update relationship calculator
on database change
* src/Ancestors.py: initialize born_info


svn: r3687
This commit is contained in:
Don Allingham
2004-10-29 00:49:40 +00:00
parent b8daa8f930
commit 24946bfd7f
8 changed files with 58 additions and 39 deletions

View File

@@ -317,6 +317,11 @@ class Date:
"""
return self._get_low_item(_POS_YR)
def set_year(self,year):
"""
"""
self.dateval = self.dateval[0:2] + (year,) + self.dateval[3:]
def get_year_valid(self):
return self._get_low_item_valid(_POS_YR)