Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-12 Thread Stefan H. Holek

Shane,

You are talking about the Zope core unit tests, aren't you? Can you be
equally sure you do not break third party tests people wrote for their own
products and packages? Please keep in mind that ZC is not the only one
using the Testing package to write their unit tests.

I am wondering why such a change would be necessary at all. If it is just
for the heck of it I politely ask to reconsider that decision. ;-)

TIA,
Stefan


On Wed, 11 Sep 2002, Shane Hathaway wrote:

 Stefan H. Holek wrote:
  You need Data.fs.in to run unit tests. The Testing package does not work
  without it. See lib/python/Testing/custom_zodb.py.

 FWIW, I'm looking into removing that requirement.  With a tweaked
 custom_zodb.py and minor changes to the sessioning machinery, all but
 three tests pass.  (And if I recall correctly, the failing tests are ZEO
 tests.)

 Shane



___
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] What does error code 136 mean?

2002-09-12 Thread Peter Keller

Hi,

I have tried Leonardo's very helpful suggestion to get a Python traceback:

 Try to run zope under a debugger. Follow instructions here:
 http://www.zope.org/Members/4am/debugspinningzope

 but type continue (w/out quotes) as soon as you get the gdb prompt to
 get zope to run normally.

This, combined with some debugging of the corefile at the C level (which I
know a lot more about than anything to do with Python) has helped me
figure out what the problem is.

The DTML that was cauisng the crash was:

   dtml-in Catalog sort=lastEditTime reverse

but some items in Catalog did not have a property lastEditTime. In my
particular circumstances I can exclude these objects from the ZCatalog,
but surely there ought to be a cleaner way of handling this - either
putting objects with missing properties at the end of the list, or not
having them feature in the list at all? Perhaps some way of controlling
this (or at least raising a more meaningful error) might be considered in
a future release of Zope?

The gory details I've appended the Python traceback. You can see the
problem call to sort in lib/python/DocumentTemplate/DT_In.py .

Why a SIGFPE? Dates seem to get converted to C doubles by Python for
comparison. From debugging the core file, line 345 in
Objects/floatobject.c in the python v2.1.3 source is causing the problem:

340 static int
341 float_compare(PyFloatObject *v, PyFloatObject *w)
342 {
343 double i = v-ob_fval;
344 double j = w-ob_fval;
   345 return (i  j) ? -1 : (i  j) ? 1 : 0;
346 }
347

w is a missing python object with a junk w-ob_fval, which presumably
comes from the missing lastEditTime property of one of the objects
involved in the comparison:

(ladebug) p *w.ob_type
struct _typeobject {

  ...snip...

  tp_name = 0x3fa0648=Missing;

  ...snip...

  tp_doc = 0x3fa04d0[Ladebug Warning: String is too long to display.
Only the first 128 characters are shown.]=Represent totally unknown
quantities\n\nMissing values are used to represent numberic quantities
that are\nunknown.  They support a;

  ...snip...

}

The Python traceback:

  File /ebi/msdlocal0/servers/Zope-2.5.1-src/ZServer/PubCore/ZServerPublisher.py, 
line 23, in __init__
response=response)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
150, in publish_module
response = publish(request, module_name, after_list, debug=debug)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
98, in publish
request, bind=1)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line 
88, in mapply
if debug is not None: return debug(object,args,context)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 
39, in call_object
result=apply(object,args) # Type scr to step into published object.
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py, 
line 151, in __call__
body = apply(self._render,(client,REQUEST,RESPONSE),kw)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py, 
line 163, in _render
return apply(method,(self, REQUEST, RESPONSE), kw)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/Products/ZWiki/ZWikiPage.py, 
line 553, in render_prelinkdtmlhtml
t = apply(DTMLDocument.__call__,(self, client, REQUEST, RESPONSE), kw)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/OFS/DTMLDocument.py, line 
127, in __call__
r=apply(HTML.__call__, (self, (client, bself), REQUEST), kw)
  File 
/ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_String.py, line 
473, in __call__
try: result = render_blocks(self._v_blocks, md)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Try.py, 
line 140, in render
return self.render_try_except(md)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Try.py, 
line 149, in render_try_except
result = render_blocks(self.section, md)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py, 
line 639, in renderwob
sequence=self.sort_sequence(sequence, md)
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_In.py, 
line 775, in sort_sequence
s.sort()
  File /ebi/msdlocal0/servers/Zope-2.5.1-src/lib/python/DateTime/DateTime.py, line 
1205, in equalTo
return (self._t == t)
  File string, line 1, in ?

Regards,
Peter.

-- 

Peter Keller. | Research without indebtedness is
European Bioinformatics Institute,|  suspect, and somebody must always,
Hinxton Hall, |  somehow, be thanked.
Cambridge, CB10 1SD, UK   | --- Umberto Eco
---
Email: [EMAIL PROTECTED] |
Tel. (+44/0)1223 494637 | Macromolecular Structure Database
Fax. 

Re: [Zope-dev] Some Zope distributions are missing Data.fs.in

2002-09-12 Thread Shane Hathaway

Stefan H. Holek wrote:
 You are talking about the Zope core unit tests, aren't you? Can you be
 equally sure you do not break third party tests people wrote for their own
 products and packages? Please keep in mind that ZC is not the only one
 using the Testing package to write their unit tests.
 
 I am wondering why such a change would be necessary at all. If it is just
 for the heck of it I politely ask to reconsider that decision. ;-)

We are planning to do away with Data.fs.in at some time.  That's not 
for the heck of it. ;-)

Shane


___
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] Some Zope distributions are missing Data.fs.in

2002-09-12 Thread Matthew T. Kromer

Stefan H. Holek wrote:

Shane,

You are talking about the Zope core unit tests, aren't you? Can you be
equally sure you do not break third party tests people wrote for their own
products and packages? Please keep in mind that ZC is not the only one
using the Testing package to write their unit tests.

I am wondering why such a change would be necessary at all. If it is just
for the heck of it I politely ask to reconsider that decision. ;-)
  


It is our intent to remove Data.fs.in from distributions; any third 
party tests relying on this file existing should be altered to not rely 
upon it.

-- 
Matt Kromer
Zope Corporation  http://www.zope.com/ 



___
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] finally adding win32 build instructions to zope distro

2002-09-12 Thread Andy McKay

Next you'll be expecting Zope to work on win32, which the 2.6 beta doesnt.
Jeez ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca

- Original Message -
From: James Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 1:17 PM
Subject: [Zope-dev] finally adding win32 build instructions to zope distro




 Let me start with a smiley face :-)

   Now please can I get ahold of come instructions or notes on how to build
 zope on win32.  I have ms vc5  can I use it or do I need vc6?  I'll even
 take gcc or ming32 help if someone knows how to build it that way on
win32.
 I've looked at the notes on zope.org and not sure if the current inst
notes
 for the source will help me.   Since its been promised for some time in
the
 distro notes :-). Is there an ETA for an official win32 build notes to be
 included with current Zope releases.
 thanks,
 - James

 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com


 ___
 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] Re: [ZODB-Dev] Blather

2002-09-12 Thread Shane Hathaway

I've moved this conversation from zodb-dev to zope-dev.

Magnus Heino wrote:
  MH ZEO2 outputs too many logs at level BLATHER.

  MH Could these please be changed to DEBUG or something?

But I like having them at BLATHER level :-).
 
 
 I guess so ;-)
 
 
  MH ZODB and VerboseSecurity output useful logs at BLATHER, but they
  MH drown in the flood of ZEO2 logs.. ;)

Are there good rules of thumb for what level to log things at?  It's
hard to know how to split log messages across multiple levels.  I
assumed that anything below INFO level was for debugging only.

What do ZODB and VerboseSecurity log at the BLATHER level?
 
 
 2002-09-12T17:55:53 BLATHER(-100) VerboseSecurity Unauthorized: Your user 
 account does not have the required permission.  Access to 'manage' of 
 (Application instance at 8b9cf90) denied. Your user account, Anonymous User, 
 exists at /acl_users. Access requires one of the following roles: 
 ['Manager']. Your roles in this context are ['Anonymous'].
 
 2002-09-12T17:56:57 BLATHER(-100) ZODB Commiting subtransaction of size 
 2909677
 
 Maybe its Shanes VerboseSecurity product that should use INFO, cause all it 
 does is output those logs... I mean, if you have it installed, you probably 
 want to see the logs.
 

This is a tough call.  VerboseSecurity often logs information that might 
be useful, but which does not actually raise an Unauthorized error.  For 
example, if you look at the management interface as a semi-restricted 
user, you'll see only some of the tabs.  VerboseSecurity will output a 
log message for each tab you can't see and for every ZMI request.  This 
is far more info than most people want (including me). :-)

Maybe instead of outputting to the event log, VerboseSecurity should 
send the info to the closest site error log.  The information would only 
persist if the copy to event log checkbox is turned on.  What do you 
think?

Shane


___
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] Re:adding win32 build inst. Tap Tap Tap is this thing on?

2002-09-12 Thread James Johnson

Hi Andy,
Thanks for the reply.  I was beginning to think I was being snubbed for 
even asking.  Silly me for trying to hold them to their statement in the 
install docs.  At least could it be removed as to not mislead people such as 
me into thinking one is actually forth coming in this lifetime ;-)

p.s.  I know that it was not explicitly promised, but I figured since its 
been in the install.txt a while, and there have been many win32  binary 
releases, it was implicit they would share some tips on that process 
someday.


Peace,
-- James
I am a Washington State Citizen.
Spamming this Email Address may be against Washington State Law
Chapter 19.86, and 19.190 RCW. http://www.wa.gov/ago/junkemail/protect.html


From: Andy McKay [EMAIL PROTECTED]
To: James Johnson [EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: [Zope-dev] finally adding win32 build instructions to zope 
distro
Date: Thu, 12 Sep 2002 11:36:42 -0700

Next you'll be expecting Zope to work on win32, which the 2.6 beta doesnt.
Jeez ;)
--
   Andy McKay
   Agmweb Consulting
   http://www.agmweb.ca

- Original Message -
From: James Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 1:17 PM
Subject: [Zope-dev] finally adding win32 build instructions to zope distro


 
 
  Let me start with a smiley face :-)
 
Now please can I get ahold of come instructions or notes on how to 
build
  zope on win32.  I have ms vc5  can I use it or do I need vc6?  I'll even
  take gcc or ming32 help if someone knows how to build it that way on
win32.
  I've looked at the notes on zope.org and not sure if the current inst
notes
  for the source will help me.   Since its been promised for some time in
the
  distro notes :-). Is there an ETA for an official win32 build notes to 
be
  included with current Zope releases.
  thanks,
  - James
 
  _
  Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
  ___
  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 )
 






_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


___
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] Re:adding win32 build inst. Tap Tap Tap is this thing on?

2002-09-12 Thread Andy McKay

I have had Zope building before on windows, using VC6 I just cant remember
for the life of me how. And by the way, before anyone points out this is not
using Cygwin. Its clear looking at the fact that z2.py is borked for Zope on
windows we need to add some unit tests for actually starting zope so we can
run them on windows. Ah time to do these things...
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca



___
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] Re: [ZODB-Dev] Blather

2002-09-12 Thread Magnus Heino


 What do ZODB and VerboseSecurity log at the BLATHER level?
 
  2002-09-12T17:55:53 BLATHER(-100) VerboseSecurity Unauthorized: Your user
  account does not have the required permission.  Access to 'manage' of
  (Application instance at 8b9cf90) denied. Your user account, Anonymous
  User, exists at /acl_users. Access requires one of the following roles:
  ['Manager']. Your roles in this context are ['Anonymous'].
 
  2002-09-12T17:56:57 BLATHER(-100) ZODB Commiting subtransaction of size
  2909677
 
  Maybe its Shanes VerboseSecurity product that should use INFO, cause all
  it does is output those logs... I mean, if you have it installed, you
  probably want to see the logs.

 This is a tough call.  VerboseSecurity often logs information that might
 be useful, but which does not actually raise an Unauthorized error.  For
 example, if you look at the management interface as a semi-restricted
 user, you'll see only some of the tabs.  VerboseSecurity will output a
 log message for each tab you can't see and for every ZMI request.  This
 is far more info than most people want (including me). :-)

Why not keep this at BLATHER, but change the Unauthorized error's to INFO?


-- 

  /Magnus Heino

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