Personal tools
You are here: Home Archives One Approach to Managing Users in Plone parseEmail
Document Actions

parseEmail

Fairly lame ;-) script to obfusticate an email address by turning it into an HTML table. Used by person_folder_listing.

## Script (Python) "parseEmail"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=email
##title=
##
username,domain = email.split('@')
return "<td>" + username + "</td><td>@</td><td>" + domain + "</td>"

Thanks to the Davis Community Network for hosting this site.