Hi,

On 08.07.06, John Owens wrote:
> > 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'm just back from vacation ... and I still like the idea. So I'm
added it to the attr module and will check it in as soon as svn is up
again. Note that I've change the naming from multichangelist to
multichangeattr, since that's what it really should be called ...


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel

Reply via email to