Re: [Zope] ExtFile/ExtImage compatibility with Zope 4/5?

2021-03-30 Thread Jürgen Gmach
Hi Jesús,

> I am getting ready to migrate to Zope 4, and checking products I depends
> massively on ExtFile/ExtImage. I wonder about the support of that
> product or something similar.

I also inherited a Zope app, and successfully migrated it to Zope 4/5.

I guess I do not have to tell you the general way how to migrate an app to 
Python 3 (pyupgrade, six...).

So, some Zope specifics.

Zope 4 is a transition version, between Zope 2 (Python 2) and Zope 5 (Python 
3), as Zope 4 both supports Python 2 and 3.

As you already did, it is important to catalog all your used plugins and check 
whether they are still supported, can be replaced by core functionality or 
another plugin, or even need to be ported to Zope 4.

My inherited legacy app even had two similar plugins to your ExtFile one, 
namely ExternalFile and LocalFS - both have no successors.

I could replace LocalFS entirely with Zope core functionality, in this case 
with resourceDirectory ( 
https://docs.plone.org/adapt-and-extend/theming/templates_css/resourcefolders.html
 ).

ExternalFile was rewritten from scratch, and now is only like 20 lines, which 
read a file from the file system and just return it to the browser.

So, no clue whether one or the other solution would fit your usecase.


When you want to work on the migration yourself, have a look at the docs...

https://zope.readthedocs.io/en/latest/migrations/zope4/index.html#

Generally, it is best to upgrade to the latest version 2 of Zope, first, before 
trying to update to Zope 4.

Michael, one of the core maintainers, gave a talk at EuroPython about a 
successful Zope migraton: https://www.youtube.com/watch?v=O-xSmvQwPHY

https://community.plone.org
Just for completion, if you need commercial support, you can post here: 
https://community.plone.org/c/jobs/38


And as already mentioned, https://community.plone.org is a good place to ask 
questions. This mailing list is super low volume.

Best,
Jürgen
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ExtFile/ExtImage compatibility with Zope 4/5?

2021-03-30 Thread Jens Vagelpohl
Hi Jesus,

> On 29. Mar 2021, at 19:45 , Jesus Cea  wrote:
> 
> On 29/3/21 18:04, Jens Vagelpohl wrote:
>> I don’t know anything about ExtFile/ExtImage specifically, the only 
>> reference I was able to find is from old.zope.org and no one has touched it 
>> since 2007. It looks like there is no support.
> 
> Now the problem is... licensing. The project seems dead for 15 years but I 
> don't see a license files in . The 
> readme says ZPL, but not version is listed. Is ZPL still a thing?
> 
> The original old code in  
> seems to have a MIT-like license.

The last release (2.0.2) claims that the license is a ZPL, which is definitely 
“still a thing”. All 350+ packages in the zopefoundation GitHub organization 
are licensed under the ZPL, which is still an OSI-certified open source 
license. The current version is 2.1.

The main issue I see in ExtFile is the lack of documentation how the license 
and copyright switch was done. In order to be considered for inclusion in the 
zopefoundation organization projects - if that’s your goal - some proof like a 
written statement of agreement to the license and copyright change from Gregor 
would be mandatory, and then written proof that Stefan Holek agrees to transfer 
copyright to the Plone Foundation. The rest, like the lack of an actual license 
file, is cosmetics and easily fixed.

If those hurdles are too high no one can prevent you from creating a private 
fork and distributing it yourself, as long as you abide by the existing 
copyright and licensing provisions.

jens




signature.asc
Description: Message signed with OpenPGP
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )