List Info

Thread: vocabulary_factory and migration to Plone 3 b3




vocabulary_factory and migration to Plone 3 b3
country flaguser name
United States
2007-05-10 09:27:58
I have a site that actually started back before Plone 1.0. I
just
helped migrate it to Plone 2.5.2 and wanted to see what
happens in Plone 
3. I moved the Data.fs to a unified installer setup of Plone
3 beta 3.

I got the site to show up and migrate, but my own content
types do not
show up in Plone (they are in ZMI), and the folder icon
fails to show up 
in the navigation. As I have tried to clear and rebuild
catalog, or even 
take a known content item, append /edit, and then try to
save, I keep 
getting vocabulary_factory errors like this:

Traceback (innermost last):
   Module ZPublisher.Publish, line 119, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 42, in call_object
   Module Products.CMFPlone.CatalogTool, line 431, in
manage_catalogRebuild
   Module Products.CMFPlone.CatalogTool, line 421, in
clearFindAndRebuild
   Module OFS.FindSupport, line 260, in ZopeFindAndApply
   Module OFS.FindSupport, line 260, in ZopeFindAndApply
   Module OFS.FindSupport, line 248, in ZopeFindAndApply
   Module Products.CMFPlone.CatalogTool, line 414, in
indexObject
   Module Products.Archetypes.CatalogMultiplex, line 35, in
indexObject
   Module Products.CMFPlone.CatalogTool, line 378, in
catalog_object
   Module Products.ZCatalog.ZCatalog, line 535, in
catalog_object
   Module Products.ZCatalog.Catalog, line 360, in
catalogObject
   Module Products.ZCTextIndex.ZCTextIndex, line 187, in
index_object
   Module Products.Archetypes.BaseObject, line 550, in
SearchableText
   Module Products.Archetypes.Field, line 440, in
Vocabulary
AttributeError: vocabulary_factory

I do use SimpleVocabularies, and set indexes in almost all
content
types (I know this needs to move to catalog.xml).

Any hints on this particular problem. Also, would it just be
better to
rewrite these Products along the lines of Martin's recent
blog post on
borg.project..

Thank you - Steve


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: vocabulary_factory and migration to Plone 3 b3
country flaguser name
United Kingdom
2007-05-10 16:36:16
Steve Rauch wrote:
> I have a site that actually started back before Plone
1.0. I just
> helped migrate it to Plone 2.5.2 and wanted to see what
happens in Plone 
> 3. I moved the Data.fs to a unified installer setup of
Plone 3 beta 3.
> 
> I got the site to show up and migrate, but my own
content types do not
> show up in Plone (they are in ZMI), and the folder icon
fails to show up 
> in the navigation. As I have tried to clear and rebuild
catalog, or even 
> take a known content item, append /edit, and then try
to save, I keep 
> getting vocabulary_factory errors like this:


> AttributeError: vocabulary_factory

I just checked in a fix to AT which should fix this:

http:/
/dev.plone.org/archetypes/changeset/8028

Can you test with that patch/AT svn trunk?

> Any hints on this particular problem. Also, would it
just be better to
> rewrite these Products along the lines of Martin's
recent blog post on
> borg.project..

borg.project is an experiment in AT-less content, and if
it's useful to 
you, use it or steal from it. However, there are several
things 
(references, transforms, kupu, various widgets, various
developers' 
features) which you only get with AT. AT is still very much
the de-facto 
way of creating content types, and I don't see that changing
any time soon.

Rewriting products seems drastic. Maybe fun, but drastic.


Martin


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: vocabulary_factory and migration to Plone 3 b3
country flaguser name
United States
2007-05-11 08:25:10
Martin Aspeli wrote:

>> AttributeError: vocabulary_factory
> 
> I just checked in a fix to AT which should fix this:
> 
> http:/
/dev.plone.org/archetypes/changeset/8028
> 
> Can you test with that patch/AT svn trunk?

Martin -

Thank you. I tested my setup with the changes to Fields.py
and it works. 
I'll re-try the whole Data.fs migration to see if that
problem caused 
some of the other side effects I noticed.

-- Steve


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )