Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

GenericSetup Zope support

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


wichert at wiggy

Mar 5, 2009, 3:19 AM

Post #1 of 6 (534 views)
Permalink
GenericSetup Zope support

Currently GenericSetup trunk no longer runs on Zope 2.10. If I try to
run the tests I get this:

File "/src/Products.GenericSetup/Products/GenericSetup/registry.py", line 23, in ?
from App.class_init import InitializeClass
ImportError: cannot import name InitializeClass

I can see two solutions:

- add a BBB import to import from Globals
- from App.class_init import default__class_init__ as InitializeClass

Does anyone have preferences?

Wichert.

--
Wichert Akkerman <wichert[at]wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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


y.2009 at wcm-solutions

Mar 5, 2009, 4:01 AM

Post #2 of 6 (505 views)
Permalink
Re: GenericSetup Zope support [In reply to]

Hi!


Wichert Akkerman wrote:
> Currently GenericSetup trunk no longer runs on Zope 2.10. If I try to
> run the tests I get this:
>
> File "/src/Products.GenericSetup/Products/GenericSetup/registry.py", line 23, in ?
> from App.class_init import InitializeClass
> ImportError: cannot import name InitializeClass
>
> I can see two solutions:
>
> - add a BBB import to import from Globals
> - from App.class_init import default__class_init__ as InitializeClass
>
> Does anyone have preferences?

Well. The third solution is making the next releases of Zope 2.10 and
Zope 2.11 required for GenericSetup 1.5.

Importing directly from App.class_init exposed a circular import issue
in Zope, see:
http://mail.zope.org/pipermail/zope-cmf/2008-December/028003.html

I fixed that issue on Zope 2.10 and Zope 2.11 trunk and added
InitializeClass as alias for default__class_init__.

If you really need to run GenericSetup on older versions I'd prefer your
first solution (BBB import from Globals) because it makes sure modules
are imported in the right order.


Cheers,

Yuppie

_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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


wichert at wiggy

Mar 5, 2009, 4:06 AM

Post #3 of 6 (503 views)
Permalink
Re: GenericSetup Zope support [In reply to]

Previously yuppie wrote:
> Wichert Akkerman wrote:
> > Currently GenericSetup trunk no longer runs on Zope 2.10. If I try to
> > run the tests I get this:
> >
> > File "/src/Products.GenericSetup/Products/GenericSetup/registry.py", line 23, in ?
> > from App.class_init import InitializeClass
> > ImportError: cannot import name InitializeClass
> >
> > I can see two solutions:
> >
> > - add a BBB import to import from Globals
> > - from App.class_init import default__class_init__ as InitializeClass
> >
> > Does anyone have preferences?
>
> Well. The third solution is making the next releases of Zope 2.10 and
> Zope 2.11 required for GenericSetup 1.5.
>
> Importing directly from App.class_init exposed a circular import issue
> in Zope, see:
> http://mail.zope.org/pipermail/zope-cmf/2008-December/028003.html
>
> I fixed that issue on Zope 2.10 and Zope 2.11 trunk and added
> InitializeClass as alias for default__class_init__.
>
> If you really need to run GenericSetup on older versions I'd prefer your
> first solution (BBB import from Globals) because it makes sure modules
> are imported in the right order.

I see no good reasons not to support existing Zope 2.10 (and older)
releases, and it would make it possible to use GenericSetup 1.5 with
Plone, which is exactly what I want to do.

Wichert.

--
Wichert Akkerman <wichert[at]wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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


y.2009 at wcm-solutions

Mar 5, 2009, 6:32 AM

Post #4 of 6 (506 views)
Permalink
Re: GenericSetup Zope support [In reply to]

Wichert Akkerman wrote:
> Previously yuppie wrote:
>> If you really need to run GenericSetup on older versions I'd prefer your
>> first solution (BBB import from Globals) because it makes sure modules
>> are imported in the right order.
>
> I see no good reasons not to support existing Zope 2.10 (and older)
> releases, and it would make it possible to use GenericSetup 1.5 with
> Plone, which is exactly what I want to do.

In case you are waiting for a go-ahead:

I didn't remember the GenericSetup 1.5 release is scheduled before the
next Zope 2.10 release. In that case the BBB import from Globals is
obviously the right solution.

Cheers, Yuppie

_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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


wichert at wiggy

Mar 5, 2009, 9:49 AM

Post #5 of 6 (505 views)
Permalink
Re: GenericSetup Zope support [In reply to]

Previously yuppie wrote:
> Wichert Akkerman wrote:
> > Previously yuppie wrote:
> >> If you really need to run GenericSetup on older versions I'd prefer your
> >> first solution (BBB import from Globals) because it makes sure modules
> >> are imported in the right order.
> >
> > I see no good reasons not to support existing Zope 2.10 (and older)
> > releases, and it would make it possible to use GenericSetup 1.5 with
> > Plone, which is exactly what I want to do.
>
> In case you are waiting for a go-ahead:
>
> I didn't remember the GenericSetup 1.5 release is scheduled before the
> next Zope 2.10 release. In that case the BBB import from Globals is
> obviously the right solution.

Done. All tests run on both Zope 2.10 and Zope 2.12 now.

Wichert.

--
Wichert Akkerman <wichert[at]wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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


wichert at wiggy

Mar 5, 2009, 9:49 AM

Post #6 of 6 (502 views)
Permalink
Re: GenericSetup Zope support [In reply to]

Previously yuppie wrote:
> Wichert Akkerman wrote:
> > Previously yuppie wrote:
> >> If you really need to run GenericSetup on older versions I'd prefer your
> >> first solution (BBB import from Globals) because it makes sure modules
> >> are imported in the right order.
> >
> > I see no good reasons not to support existing Zope 2.10 (and older)
> > releases, and it would make it possible to use GenericSetup 1.5 with
> > Plone, which is exactly what I want to do.
>
> In case you are waiting for a go-ahead:
>
> I didn't remember the GenericSetup 1.5 release is scheduled before the
> next Zope 2.10 release. In that case the BBB import from Globals is
> obviously the right solution.

Done. All tests run on both Zope 2.10 and Zope 2.12 now.

Wichert.

--
Wichert Akkerman <wichert[at]wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Zope-CMF maillist - Zope-CMF[at]lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

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

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.