[PEAK] Re: Trellis + Python 2.6

Sergey Schetinin maluke at gmail.com
Tue Nov 18 16:04:36 EST 2008


Here's the patch. I also left two more changes in:
 - cancel the rule if assigned
 - log undo for new Component cells

On Tue, Nov 18, 2008 at 20:23, Sergey Schetinin <maluke at gmail.com> wrote:
> I've only checked with python 2.5, but it should work with others too,
> because it basically only chages where things are imported etc. I'll
> send it when I get to my desktop.
>
> On Tue, Nov 18, 2008 at 18:10, Phillip J. Eby <pje at telecommunity.com> wrote:
>> At 01:25 PM 11/18/2008 +0200, Sergey Schetinin wrote:
>>>
>>> > Issue 1:
>>> > UserList.UserList now has a metaclass, so trellis.List needs to
>>> > redefine its metaclass to inherit from it
>>>
>>> > Issue 2:
>>> > trellis.py imports `sets` module which is deprecated and results in a
>>> > warning.
>>>
>>> Issue 3:
>>>
>>> peak\events\trellis.py:511: DeprecationWarning: object.__new__() takes
>>> no parameters
>>>  return ReadOnlyCell.__new__(cls, rule, value, discrete)
>>>
>>>
>>> If you don't have py2.6 installed, let me know and I'll send the patch
>>> with relevant changes.
>>
>> Does your patch still work with older Pythons?
>>
>>
>
>
>
> --
> Best Regards,
> Sergey Schetinin
>
> http://s3bk.com/ -- S3 Backup
> http://word-to-html.com/ -- Word to HTML Converter
>



-- 
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py26.patch
Type: application/octet-stream
Size: 2704 bytes
Desc: not available
Url : http://www.eby-sarna.com/pipermail/peak/attachments/20081118/fca506ed/py26.obj


More information about the PEAK mailing list