memberFullName = u''
if memberName and memberGivenName :
if nameBefore :
- memberFullName = memberName.upper() + ' ' + capitalizeCompoundGivenName(memberGivenName)
+ memberFullName = memberName.capitalize() + ' ' + capitalizeCompoundGivenName(memberGivenName)
else :
- memberFullName = capitalizeCompoundGivenName(memberGivenName) + ' ' + memberName.upper()
+ memberFullName = capitalizeCompoundGivenName(memberGivenName) + ' ' + memberName.capitalize()
elif memberName and not memberGivenName :
- memberFullName = memberName.upper()
+ memberFullName = memberName.capitalize()
elif not memberName and memberGivenName :
memberFullName = capitalizeCompoundGivenName(memberGivenName)
return 0
def getCPInfo(self) :
- try: cp = _cb_decode(self.REQUEST['__cp'])
+ if self.REQUEST.RESPONSE.cookies.has_key('__cp') :
+ cp = self.REQUEST.RESPONSE.cookies['__cp']['value']
+ else :
+ cp = self.REQUEST.get('__cp')
+ try: cp = _cb_decode(cp)
except: return None
return cp
else :
return default
+security.declarePublic('encodeQuopriEmail')
def encodeQuopriEmail(name, email) :
qpName = encodestring(name).replace('=\n', '')
return '''"=?utf-8?q?%s?=" <%s>''' % (qpName, email)
+security.declarePublic('encodeMailHeader')
def encodeMailHeader(content) :
s = encodestring(content).replace('=\n', '')
s = s.replace('_', '=5F')