From: Don A. <don...@co...> - 2005-03-05 19:06:24
|
Well, 2.0 development was moving pretty fast, and chances are we changed something. I'll look at this today and bring it back up to where it should be. The API is stable now, so once I upgrade the tutorial, the tutorial should remain stable. Don On Sat, 2005-03-05 at 19:52 +0100, Frode Jemtland wrote: > fredag 4. mars 2005, 19:31, skrev Don Allingham: > > <SNIP> > > We have several examples in the source tree under the src/plugins > > directory, and we have a tutorial for the 2.0 API at > > http://gramps.sourceforge.net/wiki/index.php/ReportTutorial > > I looked through this, and when I downloaded this file, it didn't initialize > correct when I started 1.1.90. (Tried it with 1.0.10, but then I get a error > about missing module ReportOptions.) > > One line in the tutorial, and in the file that we can download is like this: > "from Plugins import register_report" > > When I start GRAMPS, I get a error saying: > "ImportError: cannot import name register_report" > > Changing the line in the file from Plugins to PluginMgr like this: > "from PluginMgr import register_report" > , fixes this problem. > > Is this an error in the tutorial, or am I doing something wrong ? > -- Don Allingham <don...@co...> |