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

2021-03-29 Thread Jesus Cea

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 product will need to be repackaged as an egg or wheel first, otherwise you 
won’t be able to start any real compatibility testing. Zope 4 does not allow 
you to just unzip a product inside a products folder anymore

Most products only need minor modifications once they are repackaged. How to do 
this repackaging is a general Python packaging question, I suggest you just 
look at Zope products that are compatible, e.g. 
https://github.com/zopefoundation/Products.PluginRegistry, to get an idea.


That is useful. Thanks.


Zope products are hosted where all other Python packages are hosted: pypi.org.


Understood.

--
Jesús Cea Avión _/_/  _/_/_/
_/_/_/

j...@jcea.es - https://www.jcea.es/_/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



OpenPGP_signature
Description: OpenPGP digital signature
___
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 )


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

2021-03-29 Thread Jesus Cea
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.


Where are third-party Zope products hosted nowadays?

If this product is not supported/abandoned in Zope 4/5, would be people 
interested in a fork maintained by me?


Could I ask here questions about "the modern way" of writing products 
for current Zope? If not, who/where should I ask?


Thanks.

--
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - https://www.jcea.es/_/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



OpenPGP_signature
Description: OpenPGP digital signature
___
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] Announcement: Zope 4.0-final released

2019-06-14 Thread Jesus Cea
On 10/5/19 14:48, Michael Howitz wrote:
> On behalf of Zope developer community I am happy to announce the
> final release of Zope 4.

Great!.

Am I supposed to be able to just upgrade a Zope 2.13.29 deployment to
4.0 without with little if any worries? I will use python 2.7 for now.

My plan is:

Python 2.7 + Zope 2 -> Python 2.7 + zope 4 -> (future) -> Python 3

Is that sensible?.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] Plans for Zope 2 after Python 2.7 deadline

2019-02-12 Thread Jesus Cea
With less than a year away until Python 2.7 becomes "deadware", I wonder
about the plan.

I am using Zope 2.13 under Python 2.7. Huge sites with ZODB sizes in the
multi gigabyte range. A handful of custom classes I could rewrite in
Python 3 if needed.

Is there any best practices I should be aware/follow to survive after
Python 2.7 demise?. How long will be Zope2 2.13 be alive after that?.
What about migration plans to Zope 4?

Of course, I know that Python 2.7 interpreter will not suddenly die 1st
January 2020. Just wondering if there is a ZOPE roadmap migration or if
it will be a procedure each of us will need to overcome alone.

Thanks for like 22 years of great service, so far :). That is very
appreciated, whatever happens.

Thanks.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] Announcement: Zope2 2.13.29 released

2019-02-12 Thread Jesus Cea
On 9/2/19 19:04, Michael Howitz wrote:
> On behalf of Zope developer community I am pleased to announce the
> release of Zope2 2.13.29.

Thanks for your work. Much appreciated.
> To install the new version see the instructions for
> either zc.buildout: https://zope.readthedocs.io/en/2.13/INSTALL-buildout.html
> or virtualenv: https://zope.readthedocs.io/en/2.13/INSTALL-virtualenv.html

In  there
are references to Zope2 2.13.28. Those should be changed to "Zope2-", like in the buildout documentation.

Zope2 2.13.29 working fine here, so far.

Thanks!.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] ZopeCtlOptions instance has no attribute 'transcript'

2018-02-06 Thread Jesus Cea
On 05/02/18 13:26, Michael Howitz wrote:
> Am 01.02.2018 um 21:19 schrieb Jesus Cea <j...@jcea.es>:
>> I installed creating a virtualenv and then, inside:
>>
>>  $ bin/pip install Zope2==2.13.27
> 
> The suggested way to install Zope 2 is:
> 
> $ bin/pip install --no-binary zc.recipe.egg -r 
> https://zopefoundation.github.io/Zope/releases/2.13.27/requirements.txt
> 
> Does the exception also happen if you install Zope 2.13.27 this way?

it works. Nice. Upgraded! :-).

Sorry for wasting your time.

The announcement email is quite short, 3 paragraphs. One of them is just
this:

"""
You can download it via PyPI: https://pypi.org/project/Zope2/2.13.27
"""

Yes, I can download it, but I can not install it via PYPI as a regular
package. It doesn't work. In fact
<https://pypi.org/project/Zope2/2.13.27> shows "pip install
Zope2==2.13.27", that we have seen as wrong command to install.

I wonder why "requirements.txt" in pypi package doesn't pin dependencies
versions, as listed. Is that a PIP bug?.

The thing is:

1. Zope2 can not be installed as 99.9% other packages, just doing "pip
install".

2. The announcement email points to a webpage showing a PROMINENT
install command that produce a non-working configuration.

A simple possibility is just to add paragraph in future announcement
emails just saying: "This package ca not be installed in the regular
way. Follow instructions in http://;.

Thanks for the work you and all the team are doing. Much appreciated.
Looking forward Zope 4 and scared of how the migration will go :). Too
much legacy, grateful of Zope 2 maintenance :).

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] ZopeCtlOptions instance has no attribute 'transcript' (was: Re: [Zope-dev] Annoucement: Zope2 2.13.27 released)

2018-02-01 Thread Jesus Cea
After installing Zope 2.13.27, I see this:

"""
 File "/home/zope/Zope-2.13.27-virtualenv/bin/zopectl", line 11, in 
sys.exit(run())
  File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 488, in run
exitstatus = main()
  File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 447, in main
c.onecmd(" ".join(options.args))
  File "/opt/local/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
  File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 241, in do_start
ZDCmd.do_start(self, arg)
  File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/zdaemon/zdctl.py",
line 307, in do_start
args += self._get_override("-t", "transcript")
  File
"/home/zope/Zope-2.13.27-virtualenv/lib/python2.7/site-packages/Zope2/Startup/zopectl.py",
line 223, in _get_override
value = getattr(self.options, name)
AttributeError: ZopeCtlOptions instance has no attribute 'transcript'
"""

I installed creating a virtualenv and then, inside:

  $ bin/pip install Zope2==2.13.27
  $ bin/pip install "Products.ZSQLMethods<3.0"


I have reverted to Zope 2.13.26 for now :-(.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] How to install Zope 2.13.26 using virtualenv?

2017-10-06 Thread Jesus Cea
On 29/08/17 08:50, Michael Howitz wrote:
> Could you please create an issue on GitHub: 
> https://github.com/zopefoundation/Zope/issues?

Late but done:
.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] First Zope 4 beta release in preparation

2017-08-24 Thread Jesus Cea
On 24/08/17 10:39, Michael Howitz wrote:
> The goal of the sprint is to release a first beta version of Zope 4.

My question is... What is going to happen to Zope 2 installations. Is
there any migration path?. Any howto?.

I would love to be able to use Zope 4 but all my current use of Zope is
legacy Zope2 instances. Some of them dated 1998, painfully migrated to
2.13. Legacy but still living and kicking. My own personal webpage is
running ZOPE. I would hate and I am scared to migrate to something
different like (god forbid) django. I don't mind if I have to deal with
rewriting some Product if there is some documentation someway about "the
way A doesn't work anymore. The right way now is to do this and that
instead of A".

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] How to install Zope 2.13.26 using virtualenv?

2017-08-23 Thread Jesus Cea
On 22/08/17 07:10, Michael Brunnbauer wrote:
> using easy_install instead of pip worked for me:
> 
>  ./bin/easy_install --index-url=http://download.zope.org/Zope2/index/2.13.26/ 
> Zope2

That works, but it is not what is documented in
. Who can
update the documentation?. Is is strange, because "easy_install" is kind
of the old fashion install procedure. Modern way is "pip", AFAIK.
Changing the documentation (who can do that?) or solve whatever is
precluding ZOPE2 to be installed using pip?. I would rather prefer the
second option.

Who needs to be notified to take care of this?.

Thanks!.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] How to install Zope 2.13.26 using virtualenv?

2017-08-21 Thread Jesus Cea
I am following instructions in
:

"""
(virtualenv)# bin/pip install \
>  --trusted-host download.zope.org \
>  --index http://download.zope.org/Zope2/index/2.13.26/ Zope2
Collecting Zope2
  Could not find a version that satisfies the requirement Zope2 (from
versions: )
No matching distribution found for Zope2
"""

How to proceed?. Would you update install documentation?.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] Redirecting all objects in a folder

2016-11-29 Thread Jesus Cea
On 21/11/16 05:46, Dan Gaibel wrote:
> How can I make it so that any object accessed under a particular folder
> gets redirected to another URL? 
> 
> In other words, someone going to the URL website.com/folder/page1.html
>  or website.com/folder/page2.html
>   (or any page in the /folder/
> directory) gets redirected to google.com . 

If your "folder" is not a folder at all but a script, you can get access
to the subpath and do whatever.

That is, if "folder" is a script, then
"http://website.com/folder/page.html; will call the script called
"folder" with "page.html" as subpath parameter. You can do a redirect in
the script code, using the subpath or ignoring it, as you need.


-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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] Zope2 - pro/contra

2015-03-16 Thread Jesus Cea
On 07/03/15 16:30, Simon Michael wrote:
 I've sent you a download link.
 
 I’m somewhat familiar with it, as I managed at least the zope2 wiki (and
 wrote Zwiki)

ZWIKI... God...

Is there any possibility of upgrading it to support current Zope2?. I
have currently two zope instances: a current zope and an aging Zope 2.10
just to host ZWIKI :(.

About current topic: I am not a web developer. I host my (heavy)
personal ZOPE webserver and a handful of WSGI handcoded services. But my
Zope webserver is working well and I am happy with it. Every now and
then I have to write new logic and I must decide to invest into Zope o
just bite the bullet and jump to Django, Piramid, whatever.

I am keeping Zope because I am using it since 1998 and I know it
inside-out. I can do whatever I want with it and the HUGE learning curve
is already amortized. I just consider other choices because I feel that
Zope 2 is a dead-end, not because I am unhappy with it. But Zope wins
every time so far :)

That said, documentation is really painful. It is very fragmented and it
is not easy to separate outdated from current. Messy. Since current
codebase seems to change really slowly (mature!) I would love to see a
documentation effort. Not holding my breath :-(. Most of the time, when
implementing something new, I don't have any other choice than dive into
the Zope sourcecode. Doable but time-wasting.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] Ordered folder growing FAST

2014-04-04 Thread Jesus Cea
I have an ORDERED folder with tens of thousands of elements inside of
it. Each time I add a new element, de database grows a lot. I guess some
internal structure is not actually a BTREE and each time it is modified,
all of it must be persisted to disk again.

Am I right?. Is this a known issue?. Any plan to solve it?. Would you
accept a patch?.

I am using ZOPE 2.13.21, but data.fs has been thru tons of zope versions
since 2000 or so :).

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] Is BTreeFolder2 still alive (Re: Ordered folder growing FAST)

2014-04-04 Thread Jesus Cea
On 05/04/14 00:54, Jesus Cea wrote:
 I have an ORDERED folder with tens of thousands of elements inside of
 it. Each time I add a new element, de database grows a lot. I guess some
 internal structure is not actually a BTREE and each time it is modified,
 all of it must be persisted to disk again.

Ok, checking the sourcecode there is no BTREE at all anywhere, so any
change must dump the entire huge object again. I was probably using
BTreeFolder product sometime in the past.

Checking around I found BTreeFolder2. Last release is in 2011. Is that
compatible with current Zope 2.13.21?.
https://pypi.python.org/pypi/Products.BTreeFolder2.

-- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz



signature.asc
Description: OpenPGP digital signature
___
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 )


[Zope] Product with external relationships coordinated with the transaction manager

2013-11-18 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, there.

I am considering adopting ExtFile/ExtImage product and bring it to
zope 2.13. The sourcecode is easy enough, although I suspect tons of
weirdness is derived by legacy. A complete rewrite is an option, I
should not maintain code I don't understand.

Zope documentation is really incomplete and very old so I wonder about
this:

1. What interfaces (I only care about Zope 2.13, no legacy) should I
look at to participate in transactions?. I need to know if a
transaction I was involved in was aborted (to rollback external
changes too) or committed (to activate cascading actions previously
queued during the transaction progress). Old ExtFile produc uses TM
(transaction manager) from ZSQLmethods, but it is not in core Zope, I
need to install an extra package, and I guess there is a more
official and supported way.

2. How to participate in copypaste?.

I see stuff like event listening, but I can not find any
documentation about them, beside just reading the source code.

Any pointer and suggestion are welcomed :-).

Thanks!

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUoqaHZlgi5GaxT1NAQI20QQAkAhLd1wck8szGLTyd18yF8IQQWrg+12u
RRdYHXhtr6fbtsXIV+80x/7NpGsYTczhAJDbH1aIFlmhCbz9Sd6TdY0T2y+71Yt0
XFavL5UihcJiS4RB1x3wTImPSHyw3ZhkVewOpS4pUOqrS3HUipv4nexvUmLaMwQf
A0zkqh++3AA=
=LW1m
-END PGP SIGNATURE-
___
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] Alternatives to ZWIKI?

2013-11-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/11/13 10:36, Jean Jordaan wrote:
 Have a look at https://pypi.python.org/pypi/wicked also.

Interesting.

Do you know if that product can migrate a ZWIKI instance?. I have tens
of thousands of ZWIKI pages in severan dozens of ZWIKI instances :-).

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUobGgJlgi5GaxT1NAQLhDwP/fneEmto8bDx2MxTOxKpYerzfOlQvfYRh
vUg4E5U298SgbhzGXOLJ5QdsEKtQsRpzU/f7L7RWN1dROPUucZ/+b2HlA6KTlsR2
MQrstZrLIbNh6VRi5DBUCFb+k0cOxIlOuViWu/q37tmNT1w7fd66SwWbn8alniqF
nZkN6dvdfMA=
=Yh7+
-END PGP SIGNATURE-
___
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 )


[Zope] Zope 2.13.21 misses bootstrap.py

2013-11-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am not familiar with zc.buildout, but I have quite bad experiences
installing zope 2.13 using virtualenv (basically, zope needs to use
specific pinned versions of products, and that would be fine if they
were notified to pip, but they are not).

So I tried to install 2.13.21 using zc.buildout, following
instructions at
http://docs.zope.org/zope2/releases/2.13/INSTALL-buildout.html, but
it failed just at the very beginning, since there is no bootstrap.py
script anywere.

I have a previous 2.13.19 around, and it has a bootstrap.py and a
buildout.cfg. But 2.13.20 and 2.13.21 miss that file.

So, how is current Zope installed?. Could you update documentation?.

Thanks!.

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUobW9Zlgi5GaxT1NAQKn4gQAhCEhqWK+/ws0TtSlk41kQHA9uGd07EAU
oQ79CDHq4O2YeUFM8gPhPV1XNYjuxBsxm+y8Uh0JfMOJ6D3Im6xDQVTvzZ+rch8B
GpYAGG3tEXQVWoik6iMG66WD4OTDEaV4fCgM22Q4W5bb1U6ylLW0xCt/2RlJdCCB
tMOXnkJ9V9o=
=n4LG
-END PGP SIGNATURE-
___
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 )


[Zope] ExtFile/ExtImage in Zope2 2.13 and Transaction Manager

2013-11-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I did some tests a year ago about upgrading to 2.13.19. I use
ExtFile/ExtImage extensively and I had to patch it a bit.

I hit the problem that ExtFile tries to import from Shared.DC.ZRDB.TM
import TM. Messing around a bit, I solved the issue installing
Products.ZSQLMethods product (via
https://mail.zope.org/pipermail/zope/2012-January/176324.html), but
this is not working with 2.13.21. I am getting tons of upgrade
warnings about zope packages.

The documentation for Products/ExtFile/TM.py says this:


TMRegistry and ProxyTM

Use case
- 

Persistent objects (ExtFiles) need to participate in ZODB transactions.
ExtFiles perform all operations using temporary files which are saved on
commit or deleted on abort.

Constraints
- ---

- - TransactionManagers (TM) must not be persistent themselves, i.e. must
  not have a _p_jar attribute.

- - We have to make sure the ExtFile's _abort is called *before* the ZODB
  destroys the attributes of the persistent object.

Solution
- 

- - ProxyTM is a subclass of TM.TM that keeps a (hard) reference to the
  (wrapped) persistent object it manages. Calls to _begin, _finish, and
  _abort are forwarded to the target object.

- - TMRegistry is a module-level container for ProxyTMs. It creates and
  holds ProxyTMs keyed by (target_id, thread_id).

- - ExtFiles implement _finish and _abort and register with the machinery
  by calling TM.register(self).

- - On commit (or abort) the ProxyTM notifies its target object and removes
  itself from the registry.

Hacks
- -

- - We manipulate the transaction's _resources attribute directly. This is
  to guarantee the ProxyTM is processed before other resources. There may
  be a way to achieve this using official APIs only, but I can't seem to
  find one.



How can I solve this?. Is there any product similar to
ExtFile/ExtImage? I can program Python if somebody guides me around
the zope2 internal details...

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUobdLJlgi5GaxT1NAQJCbgP/cjU/H48QqZar3/quLDGRdTEBt+5uhIve
zf5SLjWnDDqcDQ0UgEhDm7BbAFC4wLDFL8TV0sP7+jCIrvqT/1P9IXUXJ13o9flV
dW2ni1DILG2zD4G3pES9OQKcMyaoXeZT3/JYwB/KD+TXEnDkek1zCxwRAAdRWveh
PeTL6HCbrWU=
=P7r7
-END PGP SIGNATURE-
___
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] Zope 2.13.21 misses bootstrap.py

2013-11-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16/11/13 03:45, Tres Seaver wrote:
 On 11/15/2013 09:22 PM, Jesus Cea wrote:
 I am not familiar with zc.buildout, but I have quite bad
 experiences installing zope 2.13 using virtualenv (basically,
 zope needs to use specific pinned versions of products, and that
 would be fine if they were notified to pip, but they are not).
 
 So I tried to install 2.13.21 using zc.buildout, following 
 instructions at 
 http://docs.zope.org/zope2/releases/2.13/INSTALL-buildout.html,
 but it failed just at the very beginning, since there is no 
 bootstrap.py script anywere.
 
 I have a previous 2.13.19 around, and it has a bootstrap.py and
 a buildout.cfg. But 2.13.20 and 2.13.21 miss that file.
 
 So, how is current Zope installed?. Could you update
 documentation?.
 
 In a virtualenv::
 
 $ bin/easy_install \ 
 --index=http://download.zope.org/Zope2/index/2.13.21 Zope2
 
 In a buildout::
 
 $ cat buildout.cfg [buildout] extends =
 http://download.zope.org/Zope2/index/2.13.21/versions.cfg 

Tres, could you possibly update
http://docs.zope.org/zope2/releases/2.13/INSTALL-buildout.html?

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUobka5lgi5GaxT1NAQJBZQP7BFZZ8812yzfgDc8IEyKgVm86sJwZ71RF
/bDEq7fpWpayjPhTpmTq/+eAYbrk7Yez0Akugi35kjO5LGwINBI1bN9pIthTiotP
luEVi9L/a+Pqt2zpuD6jaKmGXBHvEhDgxkplaD38DGU2A2oZwAQdihYRiQvIP2MG
loKGResX5fs=
=YDpD
-END PGP SIGNATURE-
___
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 )


[Zope] Alternatives to ZWIKI?

2013-11-13 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

ZWIKI is quite old and looks like dead. Am I misunderstanding the
situation?.

Anybody has any suggestion to replace my really OLD zwiki deployment?.

I looking forward your opinion. Thanks a lot.

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
Twitter: @jcea_/_/_/_/  _/_/_/_/_/
jabber / xmpp:j...@jabber.org  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQCVAwUBUoQUFZlgi5GaxT1NAQKPmgP/deT21OsuxKn/gHi6XvxNVqA55ojRYEUn
oGYouUAiGihqJJ/orfht6MEaMN4dVC1Ph71yd111YB4rGy+q+ZPUJPWzdIX40Ypc
cVrkWWibQRg6xlXXa5TqBO/co+m+hdzk+3/MO0P09luEtnaW0dfEHPeVVFO5phUm
R9J1p8I5ZWs=
=Tq4D
-END PGP SIGNATURE-
___
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 )


[Zope] OpenID consumer for Zope 2

2011-09-11 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, everybody.

I am looking for a OpenID consumer module for Zope 2. I want to deploy
OpenID instead of the clasical user+password.

The only requirement is that it must run under Zope 2.

Any ideas?

Thanks!!.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:j...@jabber.org _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTm1jw5lgi5GaxT1NAQJmEAP+KN8YoN6S/8G9fzv1kOC5ThrnPvTTx14A
YO7qCEfnKgPJ0XXLGOL2uvXn72V1Ihp9AxYTfrP+aHyMeY6HJgomWqwViEUDlNpC
ETOI6x46x1S2RH6pS4t8gVXhSzmxId5E74O+tiPdh/pKMalxM0vzYanfNFB68OUK
qy6fH24aDsc=
=xOc7
-END PGP SIGNATURE-
___
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 )


[Zope] Management of HEAD requests

2011-03-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Using Zope 2.10 here.

When making a HEAD request, I get the last-modified time of the
script, and an application/octet-stream content type. The content
length is the script length.

When doing a GET request, I get a last-modified time of now and a
text/html content type. And the length is correct here.

As far as I know, the HEAD doesn't reach the script, it is processed
inside Zope. I would rather prefer to actually process the script but
give back only the headers.

That is, my problem is that HEAD and GET of the same object provide
completely different information about different objects (HEAD gives
info about the actual script, GET gives info of the script output). This
could be even a privacy issue, giving out script details people don't
need to know.

Is there any way to override this?. Suggestion?

I have issues, for instance, managing RSS feeds, since some clients do a
HEAD request instead of a conditional GET, for detecting new entries.

Thanks in advance, folks.

A (mostly) happy user since 1998.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:j...@jabber.org _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTX9d95lgi5GaxT1NAQJl6AP/cd4gkk2ekPaue2Ikd1K2FQ6tKv1fEve7
x/TEzFH4q5b9PfTeABt0zQuUkudoWOk0C4qljlX2+Z7zF/xvsBWbQGamrgu8c588
jKIL27/NhsqJdeY2K7lNIlrZGk5wl49dSOlR+tJDoSqJjl7yDXLtZ2iuT0SZYK7v
CeDUEeWO6mw=
=O7xc
-END PGP SIGNATURE-
___
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 )


[Zope-dev] Zope 2.5.0 and VirtualHostMonster

2002-01-28 Thread Jesus Cea Avion

If you have problems with VirtualHostMonster and Zope 2.5.0, check
http://collector.zope.org/ColDev/64

-- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[EMAIL PROTECTED] http://www.argo.es/~jcea/ _/_/_/_/  _/_/_/_/  _/_/
  _/_/_/_/  _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )