[Pythonmac-SIG] FBAs with bundlebuilder?

Ronald Oussoren ronaldoussoren at mac.com
Wed Sep 15 11:22:49 CEST 2004


On 14-sep-04, at 0:11, has wrote:

> Ronald and Jacob,
>
> Thanks for the speedy reply. I'll have something to show very shortly. 
> For now you have to define your own MiniApplication subclass and use 
> method calls to register callback functions as AE handlers:
>
> 	suite.command(callback, 'core', 'setd', 'set', "Set an object's 
> data.",
> 		None,
> 		('----', 'direct', 'The object for the command.', 'obj '),
> 		('data', 'to', 'The new value.', '****')
> 		)
>
> which works fine, but treating this information as function metadata 
> and using introspection to discover these functions automatically 
> (c.f. unittest) certainly has some semantic appeal. But I'll need to 
> experiment a bit more to be sure what works best (I swear at times 
> like these I hear Lisp faintly chuckling...).

:-)

>
> The AppleScriptable-FBA idea's come from work I'm doing on 
> implementing Apple Event Object Model support for Python-based 
> application developers, but that's a much larger, longer-term project 
> and I think this is something that will stand well enough by itself, 
> so main aim is to make it easy to use (declarative rather than 
> imperative, hide event loops and Application classes and other stuff 
> that ASers don't need to know about, trade flexibility for simplicity, 
> etc). I figure we can target this primarily at ASers and worry about 
> Python developer-oriented APIs in the full-blown aeom package.

Why would pythoneers need another API then AS-ers? If I understand you 
correctly the only part that's only for AS-ers is a default main 
function, others could supply their own eventloop.

Ronald


--
X|support bv            http://www.xsupport.nl/
T:  +31 610271479       F:  +31 204416173



More information about the Pythonmac-SIG mailing list