examples/data_binding/main.py
def initialize(self):
        """ Load the view on first load could also load based on session, group, etc.. 
        """
        if self.__class__.view:
            self.view.handler = self
            self.view.request = self.request
            return
        
        #: Load the View class from the dotted view name
        with enaml.imports():
            from views.index import View
        
        #: Set initial view properties
        self.__class__.view = View(
            company=current_company,
            request=self.request,
            handler=self,
        )
def initialize(self):
        if self.__class__.view:
            self.view.handler = self
            self.view.request = self.request
            return
        
        #: Load the View class from the dotted view name
        with enaml.imports():
            from views.index import View
        
        #: Set initial view properties
        self.__class__.view = View(
            company=current_company,
            request=self.request,
            handler=self,
        )
def initialize ( self ) : if self . __class__ . view : self . view . handler = self self . view . request = self . request return #: Load the View class from the dotted view name with enaml . imports ( ) : from views . index import View #: Set initial view properties self . __class__ . view = View ( company = current_company , request = self . request , handler = self , )
Load the view on first load could also load based on session, group, etc..
Load the view on first load could also load based on session group etc ..