Re: [Zope-dev] A couple of possible Python Scripts bugs

2000-12-15 Thread Itai Tavor

Evan Simpson wrote:

>From: Itai Tavor <[EMAIL PROTECTED]>
>>  First, when trying to add a Python Script, I sometimes get:
>>
>>  Error Type: AttributeError
>>  Error Value: tx
>
>Thanks! Fixed in CVS.
>
>>  return container.domains
>>
>>  returns AttributeError.
>>
>>  This does not occur if I try to read a property on the first
>>  propertysheet in the ZClass. Also, getProperty('domains') works in
>>  the Python Script. And this Python Script:
>
>Sorry, I can't replicate this on Zope 2.3 alpha 1.

I'm the one who should be sorry. I forgot to mention I was using 
2.2.4. And I know Python Scripts are not certified to work with 
2.2.4, so this is pretty much irrelevant. I'm glad the first item 
turned out to be a real bug!
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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] A couple of possible Python Scripts bugs

2000-12-15 Thread Evan Simpson

From: Itai Tavor <[EMAIL PROTECTED]>
> First, when trying to add a Python Script, I sometimes get:
> 
> Error Type: AttributeError
> Error Value: tx

Thanks! Fixed in CVS.

> return container.domains
> 
> returns AttributeError.
> 
> This does not occur if I try to read a property on the first 
> propertysheet in the ZClass. Also, getProperty('domains') works in 
> the Python Script. And this Python Script:

Sorry, I can't replicate this on Zope 2.3 alpha 1.

Cheers,

Evan @ digicool & 4-am


___
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] A couple of possible Python Scripts bugs

2000-12-14 Thread Itai Tavor

First, when trying to add a Python Script, I sometimes get:

Error Type: AttributeError
Error Value: tx

Traceback (innermost last):
   File /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
   File /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 187, in publish
   File /opt/Zope-2.2.2-linux2-x86/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
   File /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 171, in publish
   File /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
 (Object: manage_addPythonScript)
   File /opt/Zope-2.2.2-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
 (Object: manage_addPythonScript)
   File /opt/Zope/lib/python/Products/PythonScripts/PythonScript.py, 
line 122, in manage_addPythonScript
AttributeError: (see above)

Even if there is no object named 'tx' anywhere.


Second, I have a ZClass with two propertysheets. The property 
'domains' is on the 2nd sheet. This Python Method:

self
return self.domains

returns the value of domains. But this Python Script:


return container.domains

returns AttributeError.

This does not occur if I try to read a property on the first 
propertysheet in the ZClass. Also, getProperty('domains') works in 
the Python Script. And this Python Script:

self
return self.domains

Returns the same AttributeError. Cue Twilight Zone music?
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


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