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

Mailing List Archive: Zope: CMF

CMF and Zope trunk

 

 

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


charlie at begeistert

Nov 17, 2009, 6:34 AM

Post #1 of 8 (1089 views)
Permalink
CMF and Zope trunk

Hi,

working on my first CMF-based buildout and I'm getting an error in
CMFCore.DynamicType

from zope.app.publisher.browser import queryDefaultViewName
ImportError: No module named publisher.browser

My buildout is almost exactly the same as the CMF sandbox but I can see
that I have zope.app.publisher [at] 3 in the sandbox but
zope.app.publisher [at] 3 in my new buildout - both have been freshly
updated and bootstrapped.

The error is caused by the removal of the BBB imports in
zope.app.publisher.browser.__init__.py

from zope.publisher.defaultview import queryDefaultViewName et al.

Two questions:

1) How do I tie my buildout to 3.9.0?
2) Should we be updating for the change in CMF?

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
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

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


hanno at hannosch

Nov 17, 2009, 6:48 AM

Post #2 of 8 (1047 views)
Permalink
Re: CMF and Zope trunk [In reply to]

Hi.

On Tue, Nov 17, 2009 at 3:34 PM, Charlie Clark <charlie [at] begeistert> wrote:
> working on my first CMF-based buildout and I'm getting an error in
> CMFCore.DynamicType
>
>  from zope.app.publisher.browser import queryDefaultViewName
> ImportError: No module named publisher.browser
>
> My buildout is almost exactly the same as the CMF sandbox but I can see
> that I have zope.app.publisher [at] 3 in the sandbox but
> zope.app.publisher [at] 3 in my new buildout - both have been freshly
> updated and bootstrapped.

So you are working against Zope 2.13 (trunk) instead of Zope 2.12
(branches/2.12). Zope 2.13 already has a couple of more changes due to
the whole Zope Toolkit refactoring.

I guess for now running CMF trunk (2.2) against Zope 2.12 would be
more reasonable. Once there's a 2.2 beta and branches for it, CMF
trunk can start tracking Zope trunk again.

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

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


charlie at begeistert

Nov 17, 2009, 7:00 AM

Post #3 of 8 (1045 views)
Permalink
Re: CMF and Zope trunk [In reply to]

Am 17.11.2009, 15:48 Uhr, schrieb Hanno Schlichting <hanno [at] hannosch>:

Hi Hanno,

> So you are working against Zope 2.13 (trunk) instead of Zope 2.12
> (branches/2.12). Zope 2.13 already has a couple of more changes due to
> the whole Zope Toolkit refactoring.

I can understand that.

> I guess for now running CMF trunk (2.2) against Zope 2.12 would be
> more reasonable. Once there's a 2.2 beta and branches for it, CMF
> trunk can start tracking Zope trunk again.

Yes, I'm fine with that - how do I fix it? I can then tie my buildout out
CMF 2.2 beta or release. My buildout.cfg is exactly the same as the
CMF-sandbox with just my modules being added.

In src/Zope2/versions.cfg I note it says:

# Zope Toolkit KGS overrides
zope.app.publisher = 3.9.0
zope.container = 3.9.0
zope.publisher = 3.9.0
zope.site = 3.6.2 # XXX 3.6.3 breaks for us

But this is obviously being ignored. Do the setup.py >= declarations have
precedence?

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

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


hanno at hannosch

Nov 17, 2009, 7:22 AM

Post #4 of 8 (1035 views)
Permalink
Re: CMF and Zope trunk [In reply to]

On Tue, Nov 17, 2009 at 4:00 PM, Charlie Clark <charlie [at] begeistert> wrote:
> Yes, I'm fine with that - how do I fix it? I can then tie my buildout out
> CMF 2.2 beta or release. My buildout.cfg is exactly the same as the
> CMF-sandbox with just my modules being added.

I just noticed that we already have an appropriate branch / buildout
at http://svn.zope.org/repos/main/CMF.buildout/branches/zope212-cmf22/

You might want to use that one. But you probably don't need Zope2 from
SVN but can use the latest release. You can extend the versions file
from http://download.zope.org/Zope2/index/2.12.1/versions.cfg for Zope
2.12.1.

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

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


charlie at begeistert

Nov 17, 2009, 7:54 AM

Post #5 of 8 (1048 views)
Permalink
Re: CMF and Zope trunk [In reply to]

Am 17.11.2009, 16:22 Uhr, schrieb Hanno Schlichting <hanno [at] hannosch>:

> I just noticed that we already have an appropriate branch / buildout
> at http://svn.zope.org/repos/main/CMF.buildout/branches/zope212-cmf22/
> You might want to use that one. But you probably don't need Zope2 from
> SVN but can use the latest release. You can extend the versions file
> from http://download.zope.org/Zope2/index/2.12.1/versions.cfg for Zope
> 2.12.1.

Thanks Hanno,

the additional "extends" at the top do the trick. There's still a lot I
need to learn about buildout but I'm slowly getting the hang of it.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

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


charlie at begeistert

Nov 24, 2009, 4:35 AM

Post #6 of 8 (1027 views)
Permalink
CMF and Zope trunk [In reply to]

Hi,

working on my first CMF-based buildout and I'm getting an error in
CMFCore.DynamicType

from zope.app.publisher.browser import queryDefaultViewName
ImportError: No module named publisher.browser

My buildout is almost exactly the same as the CMF sandbox but I can see
that I have zope.app.publisher [at] 3 in the sandbox but
zope.app.publisher [at] 3 in my new buildout - both have been freshly
updated and bootstrapped.

The error is caused by the removal of the BBB imports in
zope.app.publisher.browser.__init__.py

from zope.publisher.defaultview import queryDefaultViewName et al.

Two questions:

1) How do I tie my buildout to 3.9.0?
2) Should we be updating for the change in CMF?

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

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


jens at dataflake

Nov 24, 2009, 5:16 AM

Post #7 of 8 (1028 views)
Permalink
Re: CMF and Zope trunk [In reply to]

Hi Charlie,

> 1) How do I tie my buildout to 3.9.0?
> 2) Should we be updating for the change in CMF?

The buildout ties it by extending the versions.cfg file from the Zope 2 trunk. That versions file contains these overrides:

zope.app.publisher = 3.9.0
zope.container = 3.9.0
zope.publisher = 3.9.0
zope.site = 3.6.2 # XXX 3.6.3 breaks for us

Is your buildout using the Zope2 versions.cfg like CMF.buildout is?

jens



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

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


charlie at begeistert

Nov 24, 2009, 7:06 AM

Post #8 of 8 (1030 views)
Permalink
Re: CMF and Zope trunk [In reply to]

Am 24.11.2009, 14:16 Uhr, schrieb Jens Vagelpohl <jens [at] dataflake>:

> The buildout ties it by extending the versions.cfg file from the Zope 2
> trunk. That versions file contains these overrides:
> zope.app.publisher = 3.9.0
> zope.container = 3.9.0
> zope.publisher = 3.9.0
> zope.site = 3.6.2 # XXX 3.6.3 breaks for us
> Is your buildout using the Zope2 versions.cfg like CMF.buildout is?

Yes,

got everything working now. I'd like to be able to use
extends=http://path/to/CMF buildout.cfg but it complained about not being
able to find things.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://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 Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.