[Zope] Using the replace function in a Zope Python Script
Eric Walstad
eric@walstads.net
Thu, 16 Aug 2001 08:59:19 -0700
Hi Gitte,
Have you tried:
import string
return string.replace("flubbery", "flub", "shrub")
HTH,
Eric.
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Gitte
> Wange
> Sent: Thursday, August 16, 2001 2:33 AM
> To: zope@zope.org
> Subject: [Zope] Using the replace function in a Zope Python Script
>
>
> Hello,
>
> I want to use the replace function (from the string module?) in a python
> script (inside zope).
> But whenever i tries to call the replace function, I get a name error.
> Do I need to do a from <module> import string or is it something else ?
>
> If I need to import the module .. does anybodu know what module I need to
> import ?
> :-)
>
> Regards,
>
> --
> Gitte Wange Jensen
>
> Sys Admin, Developer and a lot more
> MMmanager.org Aps, Denmark
>
> Phone: +45 29 72 79 72
> Email: gitte@mmmanager.org
> Web: www.mmmanager.org
>
> Quote of the day:
> And in the end, reality always tends to hit theory hard in the face
> when you least expect it.
> - Linus Torvalds
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )