From: Paul C. <pau...@gm...> - 2017-11-18 19:04:33
|
I am in the process of updating this Gramplet and the report. It will have full-time as well as the date. Paul Culley On Nov 18, 2017 9:22 AM, "Ron Johnson" <ron...@co...> wrote: > On 11/18/2017 08:59 AM, Ron Johnson wrote: > > On 11/17/2017 04:17 AM, paul womack wrote: > > I would like to create some scripts to support a good backing > up/multi-site synching > mode of working. > > The LastChangeReport will be key to this; by comparing the dates > of the most recent change in a database, and the datastamp (coded in the > name) of a backup, I can make the decision as to wether a backup > needs to be made (or wether a backup needs to be loaded over the top > of a database). > > > Unfortunately, the report only shows the date portion. Thus, the code > would have to be modified to add the time portion. (It shouldn't be too > hard.) > > > It looks like set_yr_mon_day in function _convert_date of > .gramps/gramps42/plugins/LastChange/LastChangeReport.py should be > changed, but I don't know what to change it to. > > > def _convert_date(self, date_in): > """Convert the change date to the preferred date format and return > a string""" > change_date = Date() > change_date.set_yr_mon_day(*time.localtime(date_in)[0:3]) > return gramps.gen.datehandler.displayer.display(change_date) > > > > Last Change Report > > People Changed > > ID Person Changed On > > > 1 I09675 Kemp, Edward 10 November 2017 > > 2 I00960 Lockwood, Haley 10 November 2017 > > 3 I09671 Garland, Peter 30 October 2017 > > > > > > -- > World Peace Through Nuclear Pacification > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users > https://gramps-project.org > |