Re: [Zope-dev] Acquisition/cDocumentTemplate bug

2000-10-05 Thread Andy McKay

Does anyone know of any progress on this bug its marked as "pending" in the
Collector, so I guess not.

http://classic.zope.org:8080/Collector/1441/view

- Original Message -
From: "Shane Hathaway" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 20, 2000 6:29 AM
Subject: Re: [Zope-dev] Acquisition/cDocumentTemplate bug


 Oleg Broytmann wrote:
 Anyone is working on it? Should I put this into Collector or Tracker?

 Already there.  The Zope project manager is gone for the week.

 Shane

 
  On Mon, 17 Jul 2000, Shane Hathaway wrote:
   This is an excellent bug analysis.  I suggest that we create a new
   PyCallable_Check function that works in the presence of wrappers,
   perhaps called PyCallable_CheckW().  If it is placed in Acquisition.c
   then cDocumentTemplate.c will have to #include "Acquisition.h".  Then
   we need to replace PyCallable_Check in probably more than just
   cDocumentTemplate.

 ___
 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] Acquisition/cDocumentTemplate bug

2000-10-05 Thread Andy McKay

Sorry ignore me, I thought I was being bitten by this bug, but Im not.

It was the old difference between dtml-with foo and dtml-with "foo" in
someone else's dtml.
- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 05, 2000 1:07 PM
Subject: Re: [Zope-dev] Acquisition/cDocumentTemplate bug


 Does anyone know of any progress on this bug its marked as "pending" in
the
 Collector, so I guess not.

 http://classic.zope.org:8080/Collector/1441/view

 - Original Message -
 From: "Shane Hathaway" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, July 20, 2000 6:29 AM
 Subject: Re: [Zope-dev] Acquisition/cDocumentTemplate bug


  Oleg Broytmann wrote:
  Anyone is working on it? Should I put this into Collector or
Tracker?
 
  Already there.  The Zope project manager is gone for the week.
 
  Shane
 
  
   On Mon, 17 Jul 2000, Shane Hathaway wrote:
This is an excellent bug analysis.  I suggest that we create a new
PyCallable_Check function that works in the presence of wrappers,
perhaps called PyCallable_CheckW().  If it is placed in
Acquisition.c
then cDocumentTemplate.c will have to #include "Acquisition.h".
Then
we need to replace PyCallable_Check in probably more than just
cDocumentTemplate.
 
  ___
  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] Acquisition/cDocumentTemplate bug

2000-07-20 Thread Shane Hathaway

Oleg Broytmann wrote:
Anyone is working on it? Should I put this into Collector or Tracker?

Already there.  The Zope project manager is gone for the week.

Shane

 
 On Mon, 17 Jul 2000, Shane Hathaway wrote:
  This is an excellent bug analysis.  I suggest that we create a new
  PyCallable_Check function that works in the presence of wrappers,
  perhaps called PyCallable_CheckW().  If it is placed in Acquisition.c
  then cDocumentTemplate.c will have to #include "Acquisition.h".  Then
  we need to replace PyCallable_Check in probably more than just
  cDocumentTemplate.

___
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] Acquisition/cDocumentTemplate bug

2000-07-17 Thread Dieter Maurer

Recently, several posters have reported strange "AttributeError __call__"
exceptions.

The most precise was a report by Oleg Broytmann:
  
   /index_html  DTML Document
  dtml-var standard_html_header
   /standard_html_headerDTML Method
  dtml-with sub/dtml-with
   /sub Folder

  When he calls "/sub/index_html", he gets this
  "AttributeError __call__" for "sub".

  He observed the problem on Zope 2.1.4 and 2.2a4.


I partially analysed this problem report under Zope 2.1.6:

  In "MM_cget", "sub" is retrieved as an "ImplicitAcquirerWrapper"
  (correct). 

  In line 373, however, "PyCallable_Check(sub)" returned "1",
  which is probably wrong, because a folder is not callable.
  The "ImplicitAcquirerWrapper"'s "tp_call" mislead
"PyCallable_Check".

  In line 376, the attribute "py_isDocTemp" is looked up
  and succeeds. Therefore, the folder "sub" is seen as
  a Document Template, which definitely is not true.
  The following call fails because it arrives at CallMethodO in
  "Acquisition.c:119" which looks for a non-excisting "__call__" method.



Dieter
  


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