voyn1991 at gmail.com
Tue Apr 10 16:59:23 UTC 2012
In addition to Thierry Florac's answer I will say a few problems, that
occured when I migrated some projects to bluebream.
- Lets start from the issue, that bluebream removed ZMI from the base
packages, so you will not be able to migrate just by creating a base
bluebream package if you used Rotterdam skin. If your project had ZMI start
by creating a bluebream project and adding ZMI related packages to it. Some
packages still contain the needed ZCML's but those need to be added
included manualy. I do not remember what packages are used for ZMI apart
<include package="zope.app.form.browser" file="meta.zcml" />
<include package="zope.app.container.browser" file="meta.zcml" />
<include package="zope.app.security.browser" />
<include package="zope.app.zcmlfiles" file="configure.zcml" />
- There were some package renamings like zope.app.container -- >
zope.container, so be attantive, to include new versions of old packages,
which will contain back imports. Without those your ZODB will have broken
- Be aware to not include outdated packages from zope3, if those were
changed in bluebream. See
- There were some changes to persistent objects, such as File and Index.
- The first one now contains the size in a special attribute _size
and does not alter data to get the length. You will need to add the _size
attribute in an evolution.
- Indexes now contain the documentCount and wordCount in attributes.
Reindexing indexes will help to resolve the issue. Reindexing through ZMI
did not work for me, it searches those attributes, so we will
also do this
- There also were changes with Length in zope.container.btree, but in
my case it just worked without changes.
Something like this:
ids = getUtility(interface=IIntIds, context=context)
catalog = getUtility(interface=ICatalog, context=context)
# Updates the indexes to add the missing documentCount attribute
# Searches all objects and fixes files if they are troublesome
files = findObjectsProviding(context, IFile)
for ob in files:
if not hasattr(ob, '_size'):
setattr(ob, '_size', len(ob.data))
I hope that it could help you. If you have questions, feel free to ask.
P.S. I ported from ZOPE 3.4. I think that 3.3 will be mostly the same. As
for lower, did not port those, so can not help here.
2012/4/6 Thierry Florac <thierry.florac at onf.fr>
> Le Fri, 06 Apr 2012 11:28:34 -0400 (CDT),
> Camilo <cesarcamilo.cr at fecrd.cujae.edu.cu> a écrit:
> > Hi, im new on this project so any help will be appreciative
> > i´m trying to migrate a project based on th aplication server zope3
> > to the bluebream project, but i can find anyone who has been
> > completed yet..any sugesstions to do this???
> I think it really depends on what Zope3 release you are using.
> If you are using a Zope 3.3 or 3.4 release, the main work is
> probably based on migrating to new ZTK packages (See, for example, this
> page: http://docs.zope.org/zopetoolkit/releases/overview-1.0.6.html ;
> but I can't find the documentation relative to migrating from Zope-3.3
> to Zope-3.4...).
> I've migrated several packages and applications from Zope-3.4 to
> last ZTK-1.1.4 without any big problem.
> Migrating from an older release of Zope 3 can probably be a harder
> But keep in mind also that BlueBream is actually outdated compared to
> last ZTK release.
> Chef de projets internet/intranet
> Office National des Forêts
> Direction des Systèmes d'Information
> 2, Avenue de Saint Mandé
> 75570 PARIS Cedex 12
> Tél. : 01 40 19 59 64
> Fax. : 01 40 19 59 85
> Mél. : thierry.florac at onf.fr
> WWW : http://www.onf.fr
> bluebream mailing list
> bluebream at zope.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bluebream