Removing p4a breaks site

27 views
Skip to first unread message

Steve

unread,
Oct 23, 2009, 5:47:52 PM10/23/09
to Plone4Artists users
Hi

As you can see by my posts in the last few days I am kicking the
tires of the plone4artists before recommending it to group at my work.

My understanding is that p4a sub types various content types so that
in principal the p4a products can be removed and it should not break a
site. This is not what I have found. As mentioned in an early post. I
uninstalled the p4a products in the plone->Add-on Products section but
it appears that I could still create video containers etc. even after
I had uninstalled it. ????????

I decided to remove the products from the buildout.cfg and run the
buildout again. When I run the instance again I get the following in
the logs

You have a stale entry for 'p4a.plonevideo' in your ZMI Products
section.You should consider removing it

Okay fine I will just remove them from the ZMI but I can not even get
into the ZMI, the left hand frame is all errors see below, Usually I
see this sort of thing in the content pane when I am missing a
product, I can usually still navigate around in the left menu.
Uninstalling the p4a products has completely broken the site. If I re-
install the Products I get it all back again.

But my understanding of the p4a products is that they are sub-classed
and hence will not break your site in futures upgrades if the p4a
products are not available for newer version of plone. Is this true?

What I have seen of the p4a video and audio screencasts looks awesome
and I would very much like to use it, but the problems I have reported
in the last few days have damped more enthusiasm and probably can not
recommend it as it stands today.

I would be very much interested in other people opinions who are using
it and its stability. I am using plone 3.1.2

Site Error

An error was encountered while publishing this resource.

Error Type: TypeError
Error Value: ('iteration over non-sequence', <function Provides at
0x2ac7bc8987d0>, (<class
'Products.ATContentTypes.content.folder.ATFolder'>, <class
'p4a.subtyper.interfaces.ISubtyped'>, <class
'p4a.video.interfaces.IVideoContainerEnhanced'>))

Troubleshooting Suggestions

* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an
error.

For more detailed information about the error, please refer to the
error log.

If the error persists please contact the site maintainer. Thank you
for your patience.

Lennart Regebro

unread,
Oct 24, 2009, 3:04:43 AM10/24/09
to p4a-...@googlegroups.com
2009/10/23 Steve <steven.c...@gmail.com>:

> But my understanding of the p4a products is that they are sub-classed
> and hence will not break your site in futures upgrades if the p4a
> products are not available for newer version of plone. Is this true?

Yes, and no. It works by setting marker interfaces on the content
objects, and these markers needs to be removed first. You can remove
them manually in the ZMI, by going to the Interfaces tab of the
content object and uncheck any interfaces beginning with p4a.

--
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64

Nate Aune

unread,
Oct 24, 2009, 3:35:22 AM10/24/09
to p4a-...@googlegroups.com
On Sat, Oct 24, 2009 at 9:04 AM, Lennart Regebro <len...@jazkarta.com> wrote:

2009/10/23 Steve <steven.c...@gmail.com>:
> But my understanding of the p4a products is that they are sub-classed
> and hence will not break your site in futures upgrades if the p4a
> products are not available for newer version of plone. Is this true?

Yes, and no. It works by setting marker interfaces on the content
objects, and these markers needs to be removed first. You can remove
them manually in the ZMI, by going to the Interfaces tab of the
content object and uncheck any interfaces beginning with p4a.

I believe that the latest svn trunk has this removal code in the uninstall methods, no?
We plan to make releases of all the latest p4a code at the Plone video sprint which is happening right after the Plone conference, so if this code is not already in the latest release, it will be soon. Sorry for the inconvenience.

Nate
 

--
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64





--
Nate Aune - na...@jazkarta.com
http://www.jazkarta.com
http://card.ly/natea
+1 (617) 517-4953

** Learn best practices for deploying your Plone sites at our upcoming Plone Deployment Training in Budapest **
http://plonedeployment-natesig.eventbrite.com

Lennart Regebro

unread,
Oct 24, 2009, 3:50:44 AM10/24/09
to p4a-...@googlegroups.com
2009/10/24 Nate Aune <na...@jazkarta.com>:

> I believe that the latest svn trunk has this removal code in the uninstall
> methods, no?

The calendar bits do anyway. But as noted, you can still mark content
even if the product is not installed, and then obviously you can't
uninstall it. :)

Steve

unread,
Oct 24, 2009, 2:20:46 PM10/24/09
to Plone4Artists users
Also Confirmed. If I mark sure the marker interface is removed
everything is good, thanks.

Steve

On Oct 24, 12:04 am, Lennart Regebro <lenn...@jazkarta.com> wrote:
> 2009/10/23 Steve <steven.c.mcdon...@gmail.com>:
>
> > But my understanding of the p4a products is that they are sub-classed
> > and hence will not break your site in futures upgrades if the p4a
> > products are not available for newer version of plone. Is this true?
>
> Yes, and no. It works by setting marker interfaces on the content
> objects, and these markers needs to be removed first. You can remove
> them manually in the ZMI, by going to the Interfaces tab of the
> content object and uncheck any interfaces beginning with p4a.
>
> --
> Lennart Regebro: Python, Zope, Plone, Grokhttp://regebro.wordpress.com/
Reply all
Reply to author
Forward
0 new messages