a guest Jul 12th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def computeFullname(self):
  2.         """ compute the fullname from the firstname and lastname values """
  3.         YearsOfService = self.getField('YearsOfService').getAccessor(self)()
  4.         creator = self.Creator()
  5.         member = self.portal_membership.getMemberById(creator)
  6.         user=member.getProperty('fullname', 'Fullname missing')
  7.         space = ': '
  8.         return "%s%s%s" % (YearsOfService, space,user)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand