[mod_python] Upgrade problem

Jack Diederich jack_diederich at email.com
Sun Sep 15 12:50:24 EST 2002


> 
> Try changing that line in publicher.py to
>     if func_path[:-1] == ".":
> 
> (note : before -1)
> 
>
If you just want the last char, and don't want it to fail on an empty string you mean

if func_path[-1:]

func_path[:-1] will give you everything but the last char
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup




More information about the Mod_python mailing list