Re: Zope 4 migration

Michael Howitz <[email protected]> Fri, 13 Dec 2019 07:46:29 +0100
Newsgroups gmane.comp.web.zope.general
Message-ID <[email protected]>
--===============4690195012193703236==
Content-Type: multipart/signed;
	boundary="Apple-Mail=_1823CC9B-F2CE-4BD8-AFA6-DA60C5D523F2";
	protocol="application/pgp-signature";
	micalg=pgp-sha256


--Apple-Mail=_1823CC9B-F2CE-4BD8-AFA6-DA60C5D523F2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Am 12.12.2019 um 10:22 schrieb Michael Brunnbauer <[email protected]>:
[=E2=80=A6]
> Thank you very much for your help. I have some reservations about =
installing
> Products.TemporaryFolder.

You seem only to need ZODBMountPoint. But maybe you do not use server =
side sessions so you can live without TemporaryFolder which needs =
ZODBMountPoint to mount the temporary folder.
There is =
https://github.com/zopefoundation/Products.TemporaryFolder/issues/12 to =
extract ZODBMountPoint into its own package. Feel free to comment there =
if you actually need ZODBMountPoint without TemporaryFolder.

> See here:
>=20
> https://pypi.org/project/Products.Sessions/
>=20
> "The default session support under Zope 2 relied on =
Products.TemporaryFolder
>  for storing session data, which in turn used the tempstorage package.
>  tempstorage is no longer recommended because it has unfixed and =
possibly
>  unfixable issues under Zope 4 that lead to corrupted temporary =
storages.=E2=80=9C

This is only the case when using tempstorage, a RAM based storage =
implementation.
You could also configure an additional ZODB for the server side session =
data and mount it instead of using Products.TemporaryFolder.
This makes server side sessions persistent between restarts.

> Also, for me this means installing 8 Products after installing Zope =
with pip:
> Sessions, ExternalMethod, PythonScripts, ZSQLMethods, ZMySQLDA, =
MailHost,
> TemporaryFolder, SiteErrorLog.

That=E2=80=99s right, some Products were part of Zope2 or install =
dependencies.
Zope 4 is a but more lightweight. So you have to install the Products =
you need.

> Would the standard zc.buildout install already contain some of those?

No, you have to add them to buildout.cfg.

> I somehow got attached to the pip way over the years but maybe I =
should
> really switch.

If you know how to use pip: It=E2=80=99s okay to use it.
I personally find Buildout more convenient.

--
Mit freundlichen Gr=C3=BC=C3=9Fen
Michael Howitz


--Apple-Mail=_1823CC9B-F2CE-4BD8-AFA6-DA60C5D523F2
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEzRcZ5x+BCFYq+baDYQXEIR/92gQFAl3zM8UACgkQYQXEIR/9
2gRn6Qf/aTmq9s8E0sz7anNsmJoGn1mhUVQxfq11mz7kAOXctRw06qAiaxNV1S77
I8BVHTxFIjYjLz8UtHquQdtz2tuy8wJMypn7O5rpG1+JYv9YVx8smca0KEMzlY5g
1MMZWyFs/+0T3o3mm7eIcP3xXUgM6FOz1a/HARLV+OWuhCtWRaThcRZ/GN6EbBfD
qOoqAcL8yr45CPc+KIWOJEyHPoqZ/ZH6yIF52aX0S6TKmzoIc0OSzqkZ6RNMbeTV
iUZPQNUNWFzwyMJe6guoVusO/MmPp+JUz5NrFFkZLkRYEWyXGnJgm/EqAwcKhj79
IAmvtgpOpAL95vlyxpc7v/DIpj3T8w==
=jy4H
-----END PGP SIGNATURE-----

--Apple-Mail=_1823CC9B-F2CE-4BD8-AFA6-DA60C5D523F2--

--===============4690195012193703236==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zope maillist  -  [email protected]
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 )

--===============4690195012193703236==--