Please help fixing a couple of zope-related issues

Lists: psycopg
From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Please help fixing a couple of zope-related issues
Date: 2011-01-13 17:06:19
Message-ID: AANLkTik4g9ui-nhxWPLvWa0fCVYXU5qau4nqFN_UxpRZ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

Hello,

there is a pair of bugs to be fixed in the bug tracker concerning Zope:

Issue #30 is pretty easy: there is a broken icon
<http://psycopg.lighthouseapp.com/projects/62710/tickets/30>

Issue #29 may require some discussion: a separate package for
ZPsycopgDA would be considered useful
<http://psycopg.lighthouseapp.com/projects/62710/tickets/29>.

I know about nothing about Zope, so some help from somebody more into
it is very well accepted.

Also, we have now a very good test suite, with almost 300 tests, but I
think none of them is directly related to Zope. I'm setting up a
buildbot system to run exhaustive regression tests from the sdist,
I'll be back on the point with a more specific message. But It would
be nice to have some test procedure specific to verify regressions in
the Zope setup. Any idea?

If you know any Zope/Plone users group that could provide feedback,
please forward this request for help/discussion. Thank you.

-- Daniele


From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 01:27:01
Message-ID: AANLkTi=VsZBd=ZEtkgzp0DyVXsEruSfm0hPZfY9TtiZ7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

On Thu, Jan 13, 2011 at 5:06 PM, Daniele Varrazzo
<daniele(dot)varrazzo(at)gmail(dot)com> wrote:

> Issue #30 is pretty easy: there is a broken icon
> <http://psycopg.lighthouseapp.com/projects/62710/tickets/30>

Pumukel has sent me a bundle containing this fix and other changes. I
should have extracted the patch for the icon issue only: it is
attached here.

-- Daniele

Attachment Content-Type Size
0001-Added-icon-removed-from-Zope-2.12.9-to-the-ZPsycopgD.patch text/x-diff 2.4 KB

From: "Alexander Loechel" <Alexander(dot)Loechel(at)unibw(dot)de>
To: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 13:10:28
Message-ID: 5d59e56a3b68ba9dca86ff2da4b3269f.squirrel@mail.unibw.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

Hello,

> there is a pair of bugs to be fixed in the bug tracker concerning Zope:
>
> Issue #30 is pretty easy: there is a broken icon
> <http://psycopg.lighthouseapp.com/projects/62710/tickets/30>
>
> Issue #29 may require some discussion: a separate package for
> ZPsycopgDA would be considered useful
> <http://psycopg.lighthouseapp.com/projects/62710/tickets/29>.
>
> I know about nothing about Zope, so some help from somebody more into
> it is very well accepted.

As I'm a Zope/Plone user that uses very often ZPsycopgDA, I'm interessted
in getting this both Issues fixed. As Daniele already have posted a Patch
for the Issue #30 this mail focus on Issue #29

Today, for most Zope/Plone users zc.buildout is the common way to install
Zope/Plone. zc.buildout works perfect with eggs, so a ZPsycopgDA that
would be converted into a python egg would be great.

I could do this and have already done this and send it to Daniele, but as
I'm not familiar with git it was not the way Daniele wish it.

So maybe for someone of you, how is willing to help and much more familiar
with git could do this after a description:

A short introduction for those of you how are not familiar with Zope/Plone
development a short introduction to the CASE-Tools:
Working with Zope/Plone is a bit different to other Python work, because
Zope tries to isolate it's installation from the system python with
buildout.
Zope normaly uses zc.buildout for installation, configuration and
dependency mapping.
http://pypi.python.org/pypi/zc.buildout/

For developing new packages/eggs for zope some tools are used:
1: PasteScript(http://pypi.python.org/pypi/PasteScript) a tool to
generate package skeletons from templates
2. ZopeSkel (http://pypi.python.org/pypi/ZopeSkel) this is a PasteScript
Plugin that add's several seleton templates to paster
3. Release Tools as: collective.releaser
(http://pypi.python.org/pypi/collective.releaser) or jarn.mkrelease
(http://pypi.python.org/pypi/jarn.mkrelease) that release an egg in
several formats to pypi or other Package indexes

So and the recipe to build a zope egg with these tools that is a
conversion of ZPsycopgDA to a zope egg called Products.ZPsycopgDA:

1. Preperation: you need to install the CASE-Tools:
"pip install ZopeSkel"
or
"easy_install ZopeSkel"
(That will install you ZopeSkel and as a dependency PasteScript)
2. generate Skeleton:
"paster create -t basic_zope Products.ZPsycopgDA"
That is a command-line tool where you have to answer several questions:
Answer first question with "all" and answer all following questions
either with the default or specialized things like mailing-list or so
on.
It will create you the Package as a new Folder in the Folder you
currently are -> Products.ZPsycopgDA.
additional templates could be displayed with:
"paster create --list-templates"
3. modify created Package and Import ZPsycopgDA from psycopg2
1. in the create Folder Package.ZPsycopgDA modify the setup.py and add
psycopg2 as dependency in the install_requires array
2. in the Folder Package.ZPsycopgDA/Products/ZPsycopgDA/ remove all
files except configure.zcml and import all Files from the ZPsycopgDA
Folder from psycopg2
3. modify the configure.zcml so that it the initialize method from
__init_.py is used instead of the method from the deleted zope2.py
4. check in repository, make a test build and release it

For importing it into the repository the Products.ZPsycopgDA.egg-info
Folder is not necessary it will be always regenerated from the setup.py

Best Regards
Alexander (Pumukel)


From: Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it>
To: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 15:33:39
Message-ID: 4D306CD3.9090503@dndg.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

On 14/01/2011 02:27, Daniele Varrazzo wrote:
>> Issue #30 is pretty easy: there is a broken icon
>> > <http://psycopg.lighthouseapp.com/projects/62710/tickets/30>
> Pumukel has sent me a bundle containing this fix and other changes. I
> should have extracted the patch for the icon issue only: it is
> attached here.

Committed and pushed.

Daniele, sorry if I still haven't merged all your code but at first
sight there are some things that need a little bit of discussion. I'll
write a more detailed email about that later today (after work).

federico

--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
Studio Associato Di Nunzio e Di Gregorio http://dndg.it
One key. One input. One enter. All right. -- An american consultant
(then the system crashed and took down the *entire* network)


From: Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it>
To: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 15:38:45
Message-ID: 4D306E05.2050208@dndg.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

On 14/01/2011 14:10, Alexander Loechel wrote:
> As I'm a Zope/Plone user that uses very often ZPsycopgDA, I'm interessted
> in getting this both Issues fixed. As Daniele already have posted a Patch
> for the Issue #30 this mail focus on Issue #29
>
> Today, for most Zope/Plone users zc.buildout is the common way to install
> Zope/Plone. zc.buildout works perfect with eggs, so a ZPsycopgDA that
> would be converted into a python egg would be great.
>
> I could do this and have already done this and send it to Daniele, but as
> I'm not familiar with git it was not the way Daniele wish it.
>
> So maybe for someone of you, how is willing to help and much more familiar
> with git could do this after a description:

Thank you very much for this description. I'll try to build a Zope
package during the weekend and push it to a separate, test git
repository. It would be nice if you could then pull the code and try it
on a real-world Zope installation to make sure it works as expected.

federico

--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
Studio Associato Di Nunzio e Di Gregorio http://dndg.it
I filosofi son come i sociologi: il mondo non lo capiscono. -- A.R.M.


From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 16:38:57
Message-ID: AANLkTim59=2Z7FHJ1RCof7353UBnSqEAha1u2tLuhDhY@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

On Fri, Jan 14, 2011 at 3:33 PM, Federico Di Gregorio
<federico(dot)digregorio(at)dndg(dot)it> wrote:

> Daniele, sorry if I still haven't merged all your code but at first
> sight there are some things that need a little bit of discussion. I'll
> write a more detailed email about that later today (after work).

No problem, I'm not in hurry, and I would like to have buildbot up and
running before the next release, so there is still some work to do for
me too.

-- Daniele


From: Alexander Loechel <Alexander(dot)Loechel(at)unibw(dot)de>
To: psycopg(at)postgresql(dot)org
Subject: Re: Please help fixing a couple of zope-related issues
Date: 2011-01-14 18:17:04
Message-ID: 4D309320.4030805@unibw.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: psycopg

No problem, just send the link to the git repos to the list and I will
try it.

Alexander

Am 14.01.2011 16:38, schrieb Federico Di Gregorio:
> On 14/01/2011 14:10, Alexander Loechel wrote:
>> As I'm a Zope/Plone user that uses very often ZPsycopgDA, I'm interessted
>> in getting this both Issues fixed. As Daniele already have posted a Patch
>> for the Issue #30 this mail focus on Issue #29
>>
>> Today, for most Zope/Plone users zc.buildout is the common way to install
>> Zope/Plone. zc.buildout works perfect with eggs, so a ZPsycopgDA that
>> would be converted into a python egg would be great.
>>
>> I could do this and have already done this and send it to Daniele, but as
>> I'm not familiar with git it was not the way Daniele wish it.
>>
>> So maybe for someone of you, how is willing to help and much more familiar
>> with git could do this after a description:
> Thank you very much for this description. I'll try to build a Zope
> package during the weekend and push it to a separate, test git
> repository. It would be nice if you could then pull the code and try it
> on a real-world Zope installation to make sure it works as expected.
>
> federico
>