Michel Houben wrote:
>
> >I am just beginning with Zope, so this is maybe a very stupid question;
> >How do I make a external method, I don't know what I must fill in, in two
> >fields "Python module file" and "Function Name", I hope you can solve this
> >problem for me.
>
> I thank you for your
Ok... this is *really* the last time.
I don't know why I was using a regular expression, when string.replace
would have done just as well. Here's my final version of the external
method. I *promise* I won't change it again.
Of course, the simplest version would be
from string import replace
def
Ok... this is the last time.
You can put a line:
del replacements
just after the for loop, and save a tiny amount of memory.
This might be a useful optimisation if you're dealing with a very large
list of words to replace.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-bo
Sent again -- here's a slightly more compact version, that avoids
declaring a separate class to hold the expressions in.
Michel Houben wrote:
> How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000
> instead of Thursday 17 August 2000. I hope someone can solve this problem.
I
Michel Houben wrote:
> How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000
> instead of Thursday 17 August 2000. I hope someone can solve this problem.
I don't know any Dutch.
However, here's an external method that will convert the months and days
of the week in a string f
At 19:45 17-8-00 +0200, Michel Houben wrote:
>How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000
>instead of Thursday 17 August 2000. I hope someone can solve this problem.
>
>Michel Houben.
Hi,
You can do this by using a python external method:
Example:
In your dtml-meth
How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000
instead of Thursday 17 August 2000. I hope someone can solve this problem.
Michel Houben.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**