def get_current_page_attr(self, attr_name, tree_alias, context):
tree_alias, sitetree_items = self.init_tree(tree_alias, context)<EOL>current_item = self.get_tree_current_item(tree_alias)<EOL>if current_item is None:<EOL><INDENT>if settings.DEBUG and RAISE_ITEMS_ERRORS_ON_DEBUG:<EOL><INDENT>raise SiteTreeError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % attr_name)<EOL><DEDENT>return '<STR_LIT>'<EOL><DEDENT>return getattr(current_item, attr_name, '<STR_LIT>')<EOL>
Returns an arbitrary attribute of a sitetree item resolved as current for current page.

        :param str|unicode attr_name:
        :param str|unicode tree_alias:
        :param Context context:
        :rtype: str|unicode