From: Douglas S. B. <db...@cs...> - 2008-03-31 11:13:10
|
On Mon, March 31, 2008 4:47 am, Benny Malengier wrote: > Doug, can you change the Gramplet?. I would like to have the News page > contain all the news, past and recent. For that the two sections are > there: > news_mainpage and news_archive > I made a new page to only obtain the new data: > > http://www.gramps-project.org/wiki/index.php?title=Template:News/Mainpage Benny, That would require the Gramplet to parse this: {{#if: {{{1|}}}| {{#ifexist: News/{{{1}}}|{{#lst:news/{{{1}}}|news_mainpage}}|{{#lst:news|news_mainpage}}}} |{{#lst:news|news_mainpage}}}} Perhaps we could, but can we provided just a page name with the latest news? > You could use the above in the Gramplet. Then News can be the complete > news > again. If you have changed this, let me know and I revert the change > Stephane did. > Note that the website is sometimes _very_ slow, so halting loading of > GRAMPS > for the gramplet is anyway a bad thing. I agree, and I've tried everything that I know how using the idle_add in src/DataView/Gramplets.py: self._idle_id = gobject.idle_add(self._updater, priority=gobject.PRIORITY_LOW - 10) but it just doesn't work as advertised (unless I'm doing something wrong). -Doug > Benny |