-------- Исходное сообщение --------
Тема: [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
> 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
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.
> 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.
> 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
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.