[Zope] string manipulation problem
   
    robert
     
    robert@redcor.ch
       
    Sat, 05 Oct 2002 17:57:04 +0200
    
    
  
better yet
return str(container.REQUEST.AUTHENTICATED_USER).split("\\")[-1]
this should work also with "aaa\yyy\c\....\username"
robert
Greg wrote:
> 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
>>
>>  
>>
>
>