ATGoogleVideo Plone 3 compatibility patch

Héctor Velarde hvelarde at jornada.com.mx
Wed May 23 03:18:53 UTC 2007


Jeff:

I was trying to merge the patch with my testing version but I was not 
able to do it... I'm new to SVN so I don't know if I did something wrong 
or the procedure is different.

anyway, I just want to ask you if this works only for Plone 3.0 because 
I saw your message in the Plone user list. in that case I will wait a 
little bit in order to become familiar with it and probably to deploy a 
complete new version for 3.0.

I was also thinking on move the code to the collective so people with 
more knowledge and time can continue the work on this.

Mikel, for example, started working on migrate ATGoogleVideo to use Zope 
3 stuff.

saludos

Héctor Velarde
Desarrollo e Internet
La Jornada
+52 (55) 9183 0300 x4160

Jeff Kowalczyk wrote:
> Hector,
> 
> Thank you for ATGoogleVideo, it was exactly the right component for a recent
> plone deployment.
> 
> I updated ATGoogleVideo to work with Plone 3.0 svn bundle, please see attached
> patch.
> 
> One change to avoid TypeError: iteration over non-sequence is:
> 
> skins/atgooglevideo_templates/googlevideo_view.pt:
> -    <metal:portlets use-macro="context/portlets_fetcher/macros/right_column">
> -        This instruction gets the portlets (boxes) for the right column.
> -    </metal:portlets>
> +    <tal:block replace="structure provider:plone.rightcolumn" />
> 
> 
> And another handles changed import locations for Plone 2.5 and 3.0:
> 
> config.py:
> -from Products.CMFCore.CMFCorePermissions import AddPortalContent
> +try: # New CMF
> +    from Products.CMFCore.permissions import AddPortalContent
> +except: # Old CMF
> +    from Products.CMFCore.CMFCorePermissions import AddPortalContent
> 
> The attached patch is much longer, since I replaced windows line-endings (\r\n)
> with (\n). Setting svn-eol:native would avoid the line-end issues.
> 
> Thanks again for ATGoogleVideo, and I'm excited to be able to use it under
> Plone-3.0 now.





More information about the Product-Developers mailing list