20 Aug
2002
20 Aug
'02
2:01 p.m.
On Tue, Aug 20, 2002 at 02:21:23PM +0200, Maik Jablonski wrote:
<dtml-return "_['title'][_['title'].find('#')+1:]">
today it stopped working with an "access denied"-error... don't ask why... I've no idea, but maybe I've touched a guarded-namespace... typical DTML-mystery.
this python one works well:
return context.title[context.title.find('#')+1:]
You're trying to print everything in the title after a "#" character? I think this is a little more "pythonic", at least to me the intent is easier to see: return context.title.split('#')[1] ... but it's just a matter of style. -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"