def prepare(self):
if self.__class__.view:<EOL><INDENT>return<EOL><DEDENT>with enaml.imports():<EOL><INDENT>View = pydoc.locate(self.page.view)<EOL><DEDENT>assert View, "<STR_LIT>".format(self.page.view)<EOL>self.__class__.view = View(<EOL>site=self.site,<EOL>page=self.page,<EOL>request=self.request,<EOL>)<EOL>
Load the view on first load