[Zope] string manipulation problem
   
    Greg
     
    sysman@techgroupinc.com
       
    Sat, 05 Oct 2002 08:46:27 -0700
    
    
  
--------------070101050600020308060804
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Wow, that's perfect!  Thanks a bunch!
Greg
Tim Wilson wrote:
>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
>
>  
>
--------------070101050600020308060804
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
Wow, that's perfect!  Thanks a bunch!<br>
Greg<br>
<br>
<br>
Tim Wilson wrote:<br>
<blockquote type="cite" cite="mid20021005031949.GA1364@isis.visi.com">
  <pre wrap="">On Fri, Oct 04, 2002 at 08:09:44PM -0700, Greg wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I simply need to remove the leading x amount of characters from a string.  
I have a username that looks like this:
ADOMAIN\jsmith
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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
  </pre>
</blockquote>
<br>
<br>
</body>
</html>
--------------070101050600020308060804--