Re: [Zope-dev] Zope 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins

[EMAIL PROTECTED] wrote:
> 
> This is now fixed in the 2.3 branch.
> 
> Thanks,
> 
> Evan @ digicool

Thanks Evan

-Andy

___
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 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins


> I'd file this in the Collector, I have seen another problem with Python
> Scripts that seems related on the lists somewhere, I think something
> changed out from under Ethan's feet..
> 

This has been collected:

No. 2094

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

Cheers
-Andy

___
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 2.3.1b3 problem

2001-03-26 Thread Martijn Pieters

On Mon, Mar 26, 2001 at 10:49:47AM +0100, Andy Dawkins wrote:
> Phil Harris wrote:
> > 
> > Andy,
> > 
> > Try
> > 
> > print container.getId()
> > 
> > return printed
> > 
> > hth
> > 
> > Phil
> > 
> 
> That doesn't work either.
> 
> Prehaps I should have been more specific.
> 
> Generally _any_ calls on the container result in this error.
> 
> I used 'container.id' because this is the simplist one to reproduce.
> 
> In actual place where I am having this problem is where the container is
> a foldish product writen by NIP.  But the fact that it is reproducable
> with the standard Zope Folder shows that something is fubar.
> 
> I suspect the way container is implemented in PythonScript but I
> (personnaly) don't want to jump in that peice of code unless absolutely
> necersary.

I'd file this in the Collector, I have seen another problem with Python
Scripts that seems related on the lists somewhere, I think something
changed out from under Ethan's feet..

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins

Phil Harris wrote:
> 
> Andy,
> 
> Try
> 
> print container.getId()
> 
> return printed
> 
> hth
> 
> Phil
> 

That doesn't work either.

Prehaps I should have been more specific.

Generally _any_ calls on the container result in this error.

I used 'container.id' because this is the simplist one to reproduce.

In actual place where I am having this problem is where the container is
a foldish product writen by NIP.  But the fact that it is reproducable
with the standard Zope Folder shows that something is fubar.

I suspect the way container is implemented in PythonScript but I
(personnaly) don't want to jump in that peice of code unless absolutely
necersary.

Cheers Anyway tho'

-Andy

___
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 2.3.1b3 problem

2001-03-26 Thread Phil Harris

Andy,

Try 

print container.getId()

return printed

hth

Phil



- Original Message - 
From: "Andy Dawkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 10:29 AM
Subject: [Zope-dev] Zope 2.3.1b3 problem


> People
> 
> I have found this small problem but I don't know where it is coming from
> or why.
> 
> If you create a Python Script in a folder:
> ---
> print container.id
> 
> return printed
> ---
> 
> If fails with this error:
> 
> Error Type: TypeError
> Error Value: call of non-function (type list)
> 
> Traceback (innermost last):
>   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
> 223, in publish_module
>   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
> 187, in publish
>   File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: Traversable)
>   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
> 171, in publish
>   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160,
> in mapply
> (Object: h)
>   File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
> 112, in call_object
> (Object: h)
>   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
> line 324, in __call__
> (Object: h)
>   File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
> line 353, in _bindAndExec
> (Object: h)
>   File
> /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py,
> line 336, in _exec
> (Object: h)
> (Info: ({'script': , 'context':
> , 'container': ,
> 'traverse_subpath': []}, (), {}, None))
>   File Script (Python), line 2, in h
> (Object: )
> TypeError: (see above)
> 
> 
> I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it
> works fine on Zope 2.3.1b1
> 
> Any Ideas/Assistance?
> 
> -Andy
> 
> ___
> 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] Zope 2.3.1b3 problem

2001-03-26 Thread Andy Dawkins

People

I have found this small problem but I don't know where it is coming from
or why.

If you create a Python Script in a folder:
---
print container.id

return printed
---

If fails with this error:

Error Type: TypeError
Error Value: call of non-function (type list)

Traceback (innermost last):
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: h)
  File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py,
line 353, in _bindAndExec
(Object: h)
  File
/usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py,
line 336, in _exec
(Object: h)
(Info: ({'script': , 'context':
, 'container': ,
'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 2, in h
(Object: )
TypeError: (see above)


I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it
works fine on Zope 2.3.1b1

Any Ideas/Assistance?

-Andy

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