a guest Jul 12th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def computeFullname(self):
- """ compute the fullname from the firstname and lastname values """
- YearsOfService = self.getField('YearsOfService').getAccessor(self)()
- creator = self.Creator()
- member = self.portal_membership.getMemberById(creator)
- user=member.getProperty('fullname', 'Fullname missing')
- space = ': '
- return "%s%s%s" % (YearsOfService, space,user)
RAW Paste Data