[Zope] UnicodeDecodeError: 'ascii' codec can't decode

2006-01-02 Thread Jon Bowlas
Hi all, I'm not sure if any of you are familiar with Silva (CMS) but I’ve created a SQL code source which works fine when tested in the ZMI but when attempting to add this code source into a Silva document via the Silva Management Interface I get a UnicodeDecodeError. I think I know why this is bu

RE: [Fwd: Re: [Zope] test for the existence of a nodeValue]

2005-08-05 Thread Jon Bowlas
Many thanks Dieter, works a treat. I'm working through the python tutorial now. -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: 04 August 2005 18:58 To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Fwd: Re: [Zope] test for the existence of a nodeValue]

[Fwd: Re: [Zope] test for the existence of a nodeValue]

2005-08-04 Thread Jon Bowlas
_attributes" is the cause. Hope you can help. Jon > Jon Bowlas wrote at 2005-8-2 19:08 +0100: >> ... >>I'm pretty new to python and zope but would like to know how I can adapt this script below to test to see if nodeValue actually contains a value >> and >>if

[Zope] test for the existence of a nodeValue

2005-08-02 Thread Jon Bowlas
Hi All,   I’m pretty new to python and zope but would like to know how I can adapt this script below to test to see if nodeValue actually contains a value and if it doesn’t then I would like to return a default value I can check for using my zpt that references this script:   if not att

RE: [Zope] object acquisition via python scripts

2005-07-22 Thread Jon Bowlas
acquisition via python scripts On Fri, Jul 22, 2005 at 04:10:03PM +0100, Jon Bowlas wrote: > And my get_attobject script contains the following code: > > > > attobjects = context.objectValues('Attributes object') > > if attobjects: >

[Zope] object acquisition via python scripts

2005-07-22 Thread Jon Bowlas
Hi,   I’m not sure if the subject line accurately describes what I’m trying to do, anyway let me try and explain.   I have a set of folders like this:   Site root object   | Attributes object   | Layout ZPT   | get_attobject (python script)   | get_