def get(self, name):
<EOL>sm = getSecurityManager()<EOL>permission = permissions.View<EOL>if not sm.checkPermission(permission, self.context):<EOL><INDENT>raise Unauthorized("<STR_LIT>")<EOL><DEDENT>attr = getattr(self.context, name, None)<EOL>if callable(attr):<EOL><INDENT>return attr()<EOL><DEDENT>if name == "<STR_LIT>":<EOL><INDENT>return "<STR_LIT:0>"<EOL><DEDENT>if name == "<STR_LIT:path>":<EOL><INDENT>return "<STR_LIT>" % self.context.getId()<EOL><DEDENT>return attr<EOL>
Get the value by name