From: Rob G. H. <rob...@gm...> - 2008-04-03 21:08:40
|
Dear Doug: Thanks for the information on the holidays file, and yes, a feature request is coming soon.... Thanks for the iheads up on the new tool that is coming. I do appreciate the attention you have given to the names problem. In the questions about the Css, I was not asking how to code the css, but if someone could modify WebCal so that it could use stylesheets instead of writing the css each time the WebCal is used? Being able to have multiple css stylesheets instead of one that is either accepted as is or changed. I know the user can change the css by the style editor and it will remember your new stylesheet for you. It is quite nice, but I do not expect to think that aunt Martha will sit down and change the style sheet too much? On Sat, 2008-03-29 at 08:06 -0400, Douglas S. Blank wrote: > On Fri, March 28, 2008 2:25 am, Rob G. Healey wrote: > > Greetings: > > > > I have been looking in the code base to learn and understand this > > software better! In WebCal.py, there are several questions that I have.... > > [snip] > > > ------------------------------------------------------------------------ > > What if the user has a custom holidays file in ~/.gramps/plugins and > > the original file exists in gramps30/src/plugins, which one gets used? > There is no overriding priority in this section of code? > > Would the section in bold work and remove the bottom two lines or > > not? > > ------------------------------------------------------------------------ > > It will use both, adding both together. I think what you are trying to do > is have more control over which files are used. I would probably do it > this way: > > def get_holidays(self, year, country = "United States"): > """ Looks in multiple places for holidays.xml files """ > locations = Config.get(Config.HOLIDAY_LOCATIONS) > holiday_file = 'holidays.xml' > for dir in locations: > holiday_full_path = os.path.join(dir, holiday_file) > if os.path.exists(holiday_full_path): > self.process_holiday_file(holiday_full_path, year, country) > > and then you could control exactly where and what gets add via the Config > system. (This would need other things added---make a feature request for > this if you want). > > To get what you want today, you could just move the holidays.xml to your > own plugins dir. > > > > --------------------------------------------------------------------- > > The code is bold is what is in need of work? > > There needs to be some code here to get their last married name if > > they had more than one marriage? > > What if a woman is living with someone but not married and the > > marriage tag is unknown or unmarried, then she should use her maiden > name until their marital status changes? > > What if a woman has a child with a boyfriend and the child has the > > father's surname, but the woman does not? > > This is an older version of the original code. See Calendar.py for better > handling. But this is going to be replaced with a new tool that will allow > you to handle names better. Your questions will be handled by the tool. > > Someone involved with the web side of things will have to answer your css > questions. > > -Doug > > > > > --------------------------------------------------------------------------------------------------- > > As far as stylesheets go for WebCal, why have to write out the > > stylesheet everytime someone automatically accepts the default settings > on the options page? Why not transfer the default pre-saved stylesheet > to the target directory instead? If the user clicks ok button without > making any changes to the stylesheet editor, then transfer the attached > file to the directory? It is the default stylesheet that WebCal had to > write out to a file. It would allow a lot of code to be removed out of > WebCal? I would like to create several more stylesheets with different > color combinations for WebCal if you all agree? Of course, someone > would have to change the WebCal code to allow for different stylesheets > as Narrated Web already does? This would also bring more conformity to > the Web Page plugins..... > > From looking at the WebCal code, it looks like some of the beginning > > ideas and codse is already in place to do this already. It would only > require someone to finish it! I do not know enough yet to be able to > complete it myself.... > > > > Sorry for Rambling on and on.... > > > > Sincerely Yours, > > Rob G. Healey > > > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ > Gramps-devel mailing list > > Gra...@li... > > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > > > > -- > Douglas S. Blank > Associate Professor, Bryn Mawr College > http://cs.brynmawr.edu/~dblank/ > Office: 610 526 6501 > > > -- Sincerely Yours, Rob G. Healey -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.8 (GNU/Linux) mQGiBEfJ/JIRBACPx6Yte7DaICFpt/PnAfYuy5c9+zttisjPhwBqGuSMx8vLilRD R6Gz7kM1n5MzU9D3d2nrkEK6GsIiltPuP4MTBjUv9z/JVeloETcHZYPoXHiU7PVr SrSv3zdRw/yDl4dlVvSPsWtHBAUBsjyVnzjysug6ZAYCs9gt4XBSMo3WCwCgm+F8 GVR741oSn8gQdpSeY9GkXpcD/2RazZxY2NZzARjQXUCfU3TKf/hNWkMtwJIzxl4a w1nxS6/7S7JX8twZFopsFulz4ogXkBkrmcZqpUJG6U0wh4EUpZ9VCQFLnsy8YmSo 9pMDSkQdnzADW+M5InRsJkY6DwgU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