code: def get(self, name):
          
  
          # check read permission
          sm = getSecurityManager()
          permission = permissions.View
          if not sm.checkPermission(permission, self.context):
              raise Unauthorized("Not allowed to view the Plone portal")
  
          # read the attribute
          attr = getattr(self.context, name, None)
          if callable(attr):
              return attr()
  
          # XXX no really nice, but we want the portal to behave like an ordinary
          # content type. Therefore we need to inject the neccessary data.
          if name == "uid":
              return "0"
          if name == "path":
              return "/%s" % self.context.getId()
          return attr
docs: Get the value by name