[Zope-CMF] Fwd: [Zope-dev] Products.CMFUid runtime issue

1 view
Skip to first unread message

Ruslan Mahmatkhanov

unread,
Sep 25, 2011, 5:04:30 AM9/25/11
to zope...@zope.org
Forwarding to correct list.

-------- Исходное сообщение --------
Тема: [Zope-dev] Products.CMFUid runtime issue
Дата: Fri, 23 Sep 2011 11:44:00 +0400
От: Ruslan Mahmatkhanov <cvs...@yandex.ru>
Кому: zope...@zope.org

Good day.

When trying to access zope with Products.CMFUid installed, i got this
error:
"""
File
"/usr/local/lib/python2.7/site-packages/Products.CMFUid-2.1.3-py2.7.egg/Products/CMFUid/UniqueIdAnnotationTool.py",

line 118, in UniqueIdAnnotationTool
SimpleItem.__implements__,
AttributeError: type object 'SimpleItem' has no attribute '__implements__'
"""

I dunno if this correct solution, but i was able to avoid this with
changing calls to SimpleItem.__implements__ to
SimpleItem.__implemented__. And all seems working fine.

Patches are here:
https://github.com/mexicarne/zope/commit/1398afc68dd412d5dbe84f5fd5eadf0ae7a18c24

Please consider to commit.

--
Regards,
Ruslan

Tinderboxing kills... the drives.


_______________________________________________
Zope-CMF maillist - Zope...@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Charlie Clark

unread,
Sep 27, 2011, 5:41:07 PM9/27/11
to zope...@zope.org
Am 25.09.2011, 11:04 Uhr, schrieb Ruslan Mahmatkhanov <cvs...@yandex.ru>:

> Good day.
> When trying to access zope with Products.CMFUid installed, i got this
> error:
> """
> File
> "/usr/local/lib/python2.7/site-packages/Products.CMFUid-2.1.3-py2.7.egg/Products/CMFUid/UniqueIdAnnotationTool.py",
> line 118, in UniqueIdAnnotationTool
> SimpleItem.__implements__,
> AttributeError: type object 'SimpleItem' has no attribute
> '__implements__'
> """
> I dunno if this correct solution, but i was able to avoid this with
> changing calls to SimpleItem.__implements__ to
> SimpleItem.__implemented__. And all seems working fine.

Hi Ruslan,

I've just looked at this and it seems that we never released a 2.2 version
of CMFUid so you're using a very old bit of code that is most probably not
suited to your version of Zope. You should be okay with the 2.2.0-beta
version.

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

Ruslan Mahmatkhanov

unread,
Sep 28, 2011, 12:29:27 AM9/28/11
to Charlie Clark, zope...@zope.org
Charlie Clark wrote on 28.09.2011 01:41:
> Am 25.09.2011, 11:04 Uhr, schrieb Ruslan Mahmatkhanov<cvs...@yandex.ru>:
>
>> Good day.
>> When trying to access zope with Products.CMFUid installed, i got this
>> error:
>> """
>> File
>> "/usr/local/lib/python2.7/site-packages/Products.CMFUid-2.1.3-py2.7.egg/Products/CMFUid/UniqueIdAnnotationTool.py",
>> line 118, in UniqueIdAnnotationTool
>> SimpleItem.__implements__,
>> AttributeError: type object 'SimpleItem' has no attribute
>> '__implements__'
>> """
>> I dunno if this correct solution, but i was able to avoid this with
>> changing calls to SimpleItem.__implements__ to
>> SimpleItem.__implemented__. And all seems working fine.
>
> Hi Ruslan,
>
> I've just looked at this and it seems that we never released a 2.2 version
> of CMFUid so you're using a very old bit of code that is most probably not
> suited to your version of Zope. You should be okay with the 2.2.0-beta
> version.
>
> Charlie

Hi, Charlie.

Where can i get that 2.2.0-beta? I checked PyPi and they hold on 2.1.3:
http://pypi.python.org/pypi/Products.CMFUid

Maybe you can update it there to latest one? Thanks.

--
Regards,
Ruslan

Tinderboxing kills... the drives.

Charlie Clark

unread,
Sep 28, 2011, 10:38:23 AM9/28/11
to zope...@zope.org
Am 27.09.2011, 23:41 Uhr, schrieb Charlie Clark
<charli...@clark-consulting.eu>:

> Hi Ruslan,
> I've just looked at this and it seems that we never released a 2.2
> version
> of CMFUid so you're using a very old bit of code that is most probably
> not
> suited to your version of Zope. You should be okay with the 2.2.0-beta
> version.

It looks like there was a 2.2.1 tag made but never released. Was there a
reason for this or just an oversight? I have just run the CMFUid tests
with Python 2.6 against Zope-2.13.9 and all passed. Is that okay for a
release?

Ruslan, as for putting these into the BSD ports tree, I think that's fine
with Zope but I can't really think of a need for a standalone CMF build.

Charlie Clark

unread,
Nov 20, 2011, 9:16:11 AM11/20/11
to zope...@zope.org
Am 28.09.2011, 16:38 Uhr, schrieb Charlie Clark
<charli...@clark-consulting.eu>:

> Am 27.09.2011, 23:41 Uhr, schrieb Charlie Clark
> <charli...@clark-consulting.eu>:
>
>> Hi Ruslan,
>> I've just looked at this and it seems that we never released a 2.2
>> version
>> of CMFUid so you're using a very old bit of code that is most probably
>> not
>> suited to your version of Zope. You should be okay with the 2.2.0-beta
>> version.
>
> It looks like there was a 2.2.1 tag made but never released. Was there a
> reason for this or just an oversight? I have just run the CMFUid tests
> with Python 2.6 against Zope-2.13.9 and all passed. Is that okay for a
> release?
>
> Ruslan, as for putting these into the BSD ports tree, I think that's fine
> with Zope but I can't really think of a need for a standalone CMF build.
>
> Charlie

A follow-up on this after discussing the issue with Jens at the Zope 4
sprint in Berlin: 2.2 was released but flagged as "hidden" on PyPI. That
flag has now been removed. Ruslan, can you confirm that your BSD port now
works as expected?

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office

Kronenstr. 27a
Düsseldorf
D- 40217

Ruslan Mahmatkhanov

unread,
Jan 4, 2012, 4:23:07 AM1/4/12
to Charlie Clark, zope...@zope.org
Charlie Clark wrote on 20.11.2011 18:16:
> Am 28.09.2011, 16:38 Uhr, schrieb Charlie Clark
> <charli...@clark-consulting.eu>:
>
>> Am 27.09.2011, 23:41 Uhr, schrieb Charlie Clark
>> <charli...@clark-consulting.eu>:
>>
>>> Hi Ruslan,
>>> I've just looked at this and it seems that we never released a 2.2
>>> version
>>> of CMFUid so you're using a very old bit of code that is most probably
>>> not
>>> suited to your version of Zope. You should be okay with the 2.2.0-beta
>>> version.
>>
>> It looks like there was a 2.2.1 tag made but never released. Was there a
>> reason for this or just an oversight? I have just run the CMFUid tests
>> with Python 2.6 against Zope-2.13.9 and all passed. Is that okay for a
>> release?
>>
>> Ruslan, as for putting these into the BSD ports tree, I think that's fine
>> with Zope but I can't really think of a need for a standalone CMF build.
>>
>> Charlie
>
> A follow-up on this after discussing the issue with Jens at the Zope 4
> sprint in Berlin: 2.2 was released but flagged as "hidden" on PyPI. That
> flag has now been removed. Ruslan, can you confirm that your BSD port now
> works as expected?
>
> Charlie

I'm sorry for delay. I can confirm that all is now fine with it, thank
you! Btw, i finally finished importing zope2.13/plone4 into the FreeBSD
ports tree. All seems fine beside some strange plone themes rendering
issue in production mode (all is working fine when in `debug-mode on'),
but this is a topic for another mailing list :).
Thanks.

--
Regards,
Ruslan

Tinderboxing kills... the drives.

Reply all
Reply to author
Forward
0 new messages