[Zope] string manipulation problem
   
    Tim Wilson
     
    wilson@visi.com
       
    Fri, 4 Oct 2002 22:19:49 -0500
    
    
  
On Fri, Oct 04, 2002 at 08:09:44PM -0700, Greg wrote:
> I simply need to remove the leading x amount of characters from a string.  
> I have a username that looks like this:
> 
> ADOMAIN\jsmith
I would do this with a Python Script.
return str(container.REQUEST.AUTHENTICATED_USER)[8:]
should do the trick.
Your DTML would be
<dtml-call expr="REQUEST.set('authU', nameOfPythonScript)">
-Tim
-- 
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com