At Thu, 6 Jul 2006 10:19:05 +0200,
Joerg Lehmann wrote:
> 
> [CCing pyx-devel again]

Still not showing up in the Sourceforge archives ... sigh. 

> In the end, we settled on the compromise that a palette stays
> what it is right now in SVN, i.e., a simple attr.changelist instance.
> However, we add a new class to the attr module
> 
> class multichangelists(attr.changeattr):
> 
>     def __init__(self, changelists):
>         self.changelists = changelists
> 
>     def select(self, index, total):
>         return self.changelists[total].select(index, total)
> 
> The class name still has to be discussed, that's why we didn't add this
> code so far. Better suggestions are thus highly welcome.

That seems reasonable. Would we be able to overload select so that it
COULD have user-defined behavior if necessary? Alternatively, it would
be nice to support another call like "has_key(i)" that indicates if i
is a valid index into changelists (or alternatively I guess we could
just access changelists directly, but has_key is a better
abstraction). 

I agree with your philosophy that PyX shouldn't be assuming behavior. 

And I like your "multi" naming scheme. The more I think about it, the
more I like it. 

I'll endeavor not to use white or green in any schemes, nor any
red-white-green combinations.

JDO


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel

Reply via email to