Op 09-11-10 14:35, Rafal Zawadzki schreef:
> Hi,
>
> I upgraded my Plone 4 beta site to stable release.
>
> Unfortunately, one of products (collective.blogging) is crashing after
> installation on new Plone:
>
> 2010-11-09 13:32:32 ERROR Zope.SiteErrorLog 1289309552.520.301124075179
> http://dev.bluszcz.net/portal_quickinstaller/installProducts
> Traceback (innermost last):
>    Module ZPublisher.Publish, line 127, in publish
>    Module ZPublisher.mapply, line 77, in mapply
>    Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
>    Module ZPublisher.Publish, line 47, in call_object
>    Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 575, in
> installProducts
>    Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 512, in
> installProduct
>     - __traceback_info__: ('collective.blogging',)
>    Module Products.GenericSetup.tool, line 330, in
> runAllImportStepsFromProfile
>     - __traceback_info__: profile-collective.blogging:default
>    Module Products.GenericSetup.tool, line 1085, in
> _runImportStepsFromContext
>    Module Products.GenericSetup.tool, line 999, in _doRunImportStep
>     - __traceback_info__: collective.blogging.views
>    Module collective.blogging.setuphandlers, line 94, in setupViews
> AttributeError: 'NoneType' object has no attribute 'view_methods'
>>
> /home/bluszcz/dev.bluszcz.net/buildout-cache/eggs/collective.blogging-1.1-py2.6.egg/collective/blogging/setuphandlers.py(94)setupViews()
> ->  if view_method not in type_info.view_methods:
> (Pdb) type_info
> (Pdb) type(type_info)
> <type 'NoneType'>
> (Pdb)
>
> etc.
>
> Anyone experienced it as well?

The error is because 'Large Plone Folder' is not in the portal_types.
The collective.blogging code was fixed on trunk in revision 124162 (end 
of August) to no longer rely on that.  I don't see this in a release yet 
though.  Consider asking the author for a release (or make an internal 
release yourself).

A workaround would be to go to portal_types in the Zope Management 
Interface and copy and paste the standard Folder type to 'Large Plone 
Folder'.  Then a reinstall should work and you can remove that copy 
again (or keep it and set its 'Implicitly addable' setting to false).

Make sure you have a backup before you try such a hack, but you should 
always have a backup anyway. :-)

> I am considering also migration to the
> http://pypi.python.org/pypi/collective.blog.star which looks like more
> advanced one. From the other side, are there any other good blog products
> for Plone 4?

Note that 'more advanced' is not necessarily better. :-)

I have not tried collective.blog.star.  collective.blogging worked fine 
last time I tested it.

  <dinosaur>
    For my own blog I am still using Quills on Plone 2.5 though. :-)
  </dinosaur>


-- 
Maurits van Rees
Programmer, Zest Software

_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to