code: def getPrefixFor(self, portal_type):
          
          prefix = [p for p in self.getIDFormatting() if p['portal_type'] == portal_type]
          if prefix:
              return prefix[0]['prefix']
          else:
              return portal_type
docs: Return the prefix for a portal_type.
             If not found, simply uses the portal_type itself