Re: [Zope-dev] Zope & Cygwin

2001-10-16 Thread Chris McDonough

Hope it's OK to continue crossposting this thread.

> also of note
> http://apache.dev.wapme.net

Grabbed the bindist earlier today. ;-)  I wanted to torture test the Zope
session manager under the cygwin-built Zope using ab, which is good
real-world threading test.  It appears that neither ab nor wget much like
something about their communication with the cygwin-built Zope.  Here's a
wget session with a cygwin-built python/Zope combo:

--22:14:42--  http://localhost/
   => `index.html'
Connecting to localhost:80... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.1, cygwin) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:14:42 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 3012
7

0K -> .. (freeze)

Here's a session with a VC++-built Zope:

$ wget -S http://localhost:8080/
--22:17:20--  http://localhost:8080/
   => `index.html'
Connecting to localhost:8080... connected!
HTTP request sent, awaiting response... 200 OK
2 Server: Zope/(unreleased version, python 2.1.0, win32) ZServer/1.1b1
3 Date: Wed, 17 Oct 2001 02:17:20 GMT
4 Connection: close
5 Content-Type: text/html
6 Content-Length: 194
7

0K ->[100%]

22:17:20 (9.47 KB/s) - `index.html' saved [194/194]

It's almost as if the wrong content-length is provided by the Cygwin-built
Zope and both wget and ab are waiting for data.  Browsers OTOH don't seem to
care; they happily render the page as its given to them by the Cygwin-built
Zope.  I'll investigate this further when possible.

> FYI
> I have managed to patch the python 2.1.1 sources to build
> the winreg module with Cygwin.  It is a fairly  pervasive patch in
> that it python then has to know both the 'posix' and the 'Win32'
> way of handling unicode, error systems, ect.
>
> Because of the breadth of this  I have held off submitting the patch
> to the Python SourceForge collector but I am wondering if this would
> be useful for Zope development ?

I don't think it's a pressing need for us, although I'll need to defer to
Brian Lloyd, who is still the Zope release-master despite years of desperate
kicking and screaming.

The only thing in Zope for Windows that uses the registry is the installer
and the service manager and we don't use the winreg module in the current
install or service process, AFAIK.  It is handy, however, to know it can be
used under Cygwin with your patches.

Thanks so much again,

- C




___
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 )



RE: [Zope-dev] Zope & Cygwin

2001-10-16 Thread Norman Vine

Chris McDonough writes:
>
>Note that I was able to get Zope up and running using Cywin after:
>
>- upgrading to the most recent snapshot Cywgin dll (cygwin1-20011016.dll),
>which was as easy as copying the file over the existing 1.3.3 version of
>cywin1.dll.  I didn't futz with building anything Cygwin-related out of
CVS.
>
>- recompiling Cygwin python with thread support (which was a matter of
>"./configure; make; make install" with the Cygwin Python sources, as Norman
>said).
>
>- rerunning $PY_SRC/Tools/scripts/h2py.py against the fcntl.h file that
>lives in Cygwin's /usr/include/sys and saving the resulting FCNTL.py file
in
>/usr/local/lib/python2.1/plat-cygwin/FCNTL.py

Ooops - good catch I keep forgetting to mention this step
We should really figure out a way to automagically do this in the python
build process

>I then compiled the Zope trunk using Cygwin Python and GCC via a simple
>"python wo_pcgi.py" and ran it via "./start", and voila!  It at least
>appears to work!  Very nice... thanks very much for the
>heads-up, Norman.

:-)

>I need to buy the guys at Cygnus a beer or a yacht or something.

Maybe a yacht full of beer :-)

also of note
http://apache.dev.wapme.net

FYI
I have managed to patch the python 2.1.1 sources to build
the winreg module with Cygwin.  It is a fairly  pervasive patch in
that it python then has to know both the 'posix' and the 'Win32'
way of handling unicode, error systems, ect.

Because of the breadth of this  I have held off submitting the patch
to the Python SourceForge collector but I am wondering if this would
be useful for Zope development ?

Cheers

Norman

>- Original Message -
>From: "Norman Vine" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Wednesday, October 10, 2001 11:30 AM
>Subject: [Zope-dev] Zope & Cygwin
>
>
>> Michel Pelletier writes:
>> >>
>> >Whether or not it is the most popular, who knows?  Windows
>> >support is absolutely essential however and will never be
>> >traded off for any other feature.
>>
>> FYI
>> I finally have a Cygwin compiled Zope running in a Cygwin enviroment.
>> This is with the very latest Cygwin distribution augmented by a locally
>> compiled Cygwin as represented by the current Cygwin CVS files.
>>
>> There is a new Cygwin release pending
>> or one can just use the "developer snapshot" of Cygwin !
>>
>> FWIW - I use a slightly modified distutils as outlined in method 2 @
>> http://www.vso.cape.com/~nhv/files/python/myDistutils.txt
>>
>> This is on a Win2k sp2 machine and the Zope-2.4.1 tarball
>>
>> % cd Zope-2.4.1-src
>> % python wo_pcgi.py
>> % ./start &
>>
>> Cheers
>>
>> Norman Vine
>>


___
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 )



Re: [Zope-dev] Zope & Cygwin

2001-10-16 Thread Chris McDonough

Note that I was able to get Zope up and running using Cywin after:

- upgrading to the most recent snapshot Cywgin dll (cygwin1-20011016.dll),
which was as easy as copying the file over the existing 1.3.3 version of
cywin1.dll.  I didn't futz with building anything Cygwin-related out of CVS.

- recompiling Cygwin python with thread support (which was a matter of
"./configure; make; make install" with the Cygwin Python sources, as Norman
said).

- rerunning $PY_SRC/Tools/scripts/h2py.py against the fcntl.h file that
lives in Cygwin's /usr/include/sys and saving the resulting FCNTL.py file in
/usr/local/lib/python2.1/plat-cygwin/FCNTL.py

I then compiled the Zope trunk using Cygwin Python and GCC via a simple
"python wo_pcgi.py" and ran it via "./start", and voila!  It at least
appears to work!  Very nice... thanks very much for the heads-up, Norman.

I need to buy the guys at Cygnus a beer or a yacht or something.

-C

- Original Message -
From: "Norman Vine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2001 11:30 AM
Subject: [Zope-dev] Zope & Cygwin


> Michel Pelletier writes:
> >>
> >Whether or not it is the most popular, who knows?  Windows
> >support is absolutely essential however and will never be
> >traded off for any other feature.
>
> FYI
> I finally have a Cygwin compiled Zope running in a Cygwin enviroment.
> This is with the very latest Cygwin distribution augmented by a locally
> compiled Cygwin as represented by the current Cygwin CVS files.
>
> There is a new Cygwin release pending
> or one can just use the "developer snapshot" of Cygwin !
>
> FWIW - I use a slightly modified distutils as outlined in method 2 @
> http://www.vso.cape.com/~nhv/files/python/myDistutils.txt
>
> This is on a Win2k sp2 machine and the Zope-2.4.1 tarball
>
> % cd Zope-2.4.1-src
> % python wo_pcgi.py
> % ./start &
>
> Cheers
>
> Norman Vine
>
>
> ___
> 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 )
>



___
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 )



[Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread James Johnson

Sorry if this is OT.  I was looking at the issue schema of the new collector, 
and I'm wondering how a person would tie in a testcase id to a issue id.  
Would I use the "other_version_info" field?
tia,
-James





> On Tue, 16 Oct 2001, Andy McKay wrote:
> 
> > So what is going on with the Collector, its been what a month now?
> 
> See
> http://dev.zope.org/Wikis/DevSite/Projects/CollectorReplacement/Curren
> tStatus for current status.
> 
> In fact, i'm hoping to have something to test tomorrow.
> 
> -- 
> Ken
> [EMAIL PROTECTED]
> 
> 


___
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 )



Re: [Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread Andy McKay

> In fact, i'm hoping to have something to test tomorrow.

And there was much rejoicing...
--
  Andy McKay.


___
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 )



Re: [Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread Ken Manheimer

On Tue, 16 Oct 2001, Andy McKay wrote:

> So what is going on with the Collector, its been what a month now?

See
http://dev.zope.org/Wikis/DevSite/Projects/CollectorReplacement/CurrentStatus
for current status.

In fact, i'm hoping to have something to test tomorrow.

-- 
Ken
[EMAIL PROTECTED]


___
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 )



Re: [Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread Andy McKay

So what is going on with the Collector, its been what a month now?

Cheers.
--
  Andy McKay.


- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Lennart Regebro" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 16, 2001 2:09 PM
Subject: Re: [Zope-dev] How to report stuff with the collector down?


> Hi Lennart,
>
> I suggest sending your plea for bug reporting as well as the bugfixes
> themselves to Ken Manheimer ([EMAIL PROTECTED]).  He is the person responsible
> for creating the replacement for the collector.
>
> Thanks for the bugfixes!
>
> - C
>
> - Original Message -
> From: "Lennart Regebro" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 16, 2001 4:22 PM
> Subject: [Zope-dev] How to report stuff with the collector down?
>
>
> > Hi all!
> >
> > I tried to figure out how to report bugs and stuff without the
collector,
> > but couldn't find anything. Any official way?
> >
> > Anyway, I found this minor bug in FileStorage.py. If you try to pack a
db
> > with a packdate that is earlier than the date of the first object in the
> > database, you get a "Errno 22, Invalid argument" error. This is because
> > read_index bails out already at the first object and returns position
4L.
> > Whe _reduntant_pack then tries to seek(-8) it of course fails. Now, I
> > haven't tried tha absolute latest versions of Zope, but a check in the
CVS
> > indicated that the problem is still there.
> >
> > I chenged this part of FileStorage.py (row 1275 in v1.71.2.3):
> >
> > packpos, maxoid, ltid = read_index(
> > file, name, index, vindex, tindex, stop,
> > read_only=1,
> > )
> >
> > if self._redundant_pack(file, packpos):
> > raise FileStorageError, (
> > 'The database has already been packed to a later
> time\n'
> > 'or no changes have been made since the last pack')
> >
> > to this:
> >
> > packpos, maxoid, ltid = read_index(
> > file, name, index, vindex, tindex, stop,
> > read_only=1,
> > )
> >
> > if packpos == 4L or self._redundant_pack(file, packpos):
> > raise FileStorageError, (
> > 'The database has already been packed to a later
> time\n'
> > 'or no changes have been made since the last pack')
> >
> > Note the "if packpos == 4l or" part. This means that you get the message
> > that it's already packed.
> >
> > I have also some other small "improvements" (on MailHost, f ex) that I'd
> > like to submit to the community.
> > Well, *I* think it's an improvement. :-)
> >
> >
> > ___
> > 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 )
> >
>
>
> ___
> 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 )
>


___
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 )



Re: [Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread Chris McDonough

Hi Lennart,

I suggest sending your plea for bug reporting as well as the bugfixes
themselves to Ken Manheimer ([EMAIL PROTECTED]).  He is the person responsible
for creating the replacement for the collector.

Thanks for the bugfixes!

- C

- Original Message -
From: "Lennart Regebro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 16, 2001 4:22 PM
Subject: [Zope-dev] How to report stuff with the collector down?


> Hi all!
>
> I tried to figure out how to report bugs and stuff without the collector,
> but couldn't find anything. Any official way?
>
> Anyway, I found this minor bug in FileStorage.py. If you try to pack a db
> with a packdate that is earlier than the date of the first object in the
> database, you get a "Errno 22, Invalid argument" error. This is because
> read_index bails out already at the first object and returns position 4L.
> Whe _reduntant_pack then tries to seek(-8) it of course fails. Now, I
> haven't tried tha absolute latest versions of Zope, but a check in the CVS
> indicated that the problem is still there.
>
> I chenged this part of FileStorage.py (row 1275 in v1.71.2.3):
>
> packpos, maxoid, ltid = read_index(
> file, name, index, vindex, tindex, stop,
> read_only=1,
> )
>
> if self._redundant_pack(file, packpos):
> raise FileStorageError, (
> 'The database has already been packed to a later
time\n'
> 'or no changes have been made since the last pack')
>
> to this:
>
> packpos, maxoid, ltid = read_index(
> file, name, index, vindex, tindex, stop,
> read_only=1,
> )
>
> if packpos == 4L or self._redundant_pack(file, packpos):
> raise FileStorageError, (
> 'The database has already been packed to a later
time\n'
> 'or no changes have been made since the last pack')
>
> Note the "if packpos == 4l or" part. This means that you get the message
> that it's already packed.
>
> I have also some other small "improvements" (on MailHost, f ex) that I'd
> like to submit to the community.
> Well, *I* think it's an improvement. :-)
>
>
> ___
> 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 )
>


___
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 )



[Zope-dev] How to report stuff with the collector down?

2001-10-16 Thread Lennart Regebro

Hi all!

I tried to figure out how to report bugs and stuff without the collector,
but couldn't find anything. Any official way?

Anyway, I found this minor bug in FileStorage.py. If you try to pack a db
with a packdate that is earlier than the date of the first object in the
database, you get a "Errno 22, Invalid argument" error. This is because
read_index bails out already at the first object and returns position 4L.
Whe _reduntant_pack then tries to seek(-8) it of course fails. Now, I
haven't tried tha absolute latest versions of Zope, but a check in the CVS
indicated that the problem is still there.

I chenged this part of FileStorage.py (row 1275 in v1.71.2.3):

packpos, maxoid, ltid = read_index(
file, name, index, vindex, tindex, stop,
read_only=1,
)

if self._redundant_pack(file, packpos):
raise FileStorageError, (
'The database has already been packed to a later time\n'
'or no changes have been made since the last pack')

to this:

packpos, maxoid, ltid = read_index(
file, name, index, vindex, tindex, stop,
read_only=1,
)

if packpos == 4L or self._redundant_pack(file, packpos):
raise FileStorageError, (
'The database has already been packed to a later time\n'
'or no changes have been made since the last pack')

Note the "if packpos == 4l or" part. This means that you get the message
that it's already packed.

I have also some other small "improvements" (on MailHost, f ex) that I'd
like to submit to the community.
Well, *I* think it's an improvement. :-)


___
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 )



Re: [Zope-dev] ZPL2.0

2001-10-16 Thread Michael R. Bernstein

Sorry for the late replay to the list, I was having some problems with
my mail client which led to replies being rejected by various mailing
lists.

On Fri, 2001-10-12 at 02:38, Chris Withers wrote:
> Kapil Thangavelu wrote:
> > 
> > dealing with RMS is tricky period.
> 
> I am at a loss as to why anyone bothers ;-)
> 
> (nope, this is not an attempt to start a flame war, everybody move
along
> peacefully now...)

No heat in this response :-)

It's pretty simple:

If GPL compatibility in a license is seen as a desirable goal (and it
is, even by some who disagree with the GPL itself), and the FSF in the
person of RMS is the final arbiter of GPL compatibility, then to get
'official' GPL compatibility declared for your license, you have to deal
with RMS.

If your question was actually "why does anyone bother with GPL license
compatibility" then that is a separate discussion.

Cheers,

Michael.


___
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 )