Re: getting started



On Mon, 2006-01-23 at 14:13 +0100, Murray Cumming wrote:
For a relatively easy starter task, I suggest the "Scripting" task:
  To start with, it can just be a button (a new LayoutItem type) on the
Details layout which has some python code (a big string) associated with
it.

So, I did this. It required a bit more work than I had anticipated.

 Later we can provide python APIs so that that script can interact
with Glom.

But this still remains to be done, and it shouldn't be too difficult.
You could look at how I implement the python API for the "record" object
for calculated fields.

We need to implement python API to, for instance, 
- Go to a Table.
- Go to the Details or List view.
- Go to Find mode or Data mode.
- Go to record with a specific primary key  
- Print a named report.

If anyone wants to, they can port that use of the python C API to
boost::python, but I wasn't very impressed with it when I looked at it.

I recommend jhbuild to create a development environment in a separate
prefix.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]