mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 05:42:54 +00:00 
			
		
		
		
	Remove controller stuff, tidy code based on pylint suggestions
This commit is contained in:
		@@ -9,6 +9,7 @@ from tfw.decorators import lazy_property
 | 
			
		||||
class CallbackMixin:
 | 
			
		||||
    @lazy_property
 | 
			
		||||
    def _callbacks(self):
 | 
			
		||||
        # pylint: disable=no-self-use
 | 
			
		||||
        return []
 | 
			
		||||
 | 
			
		||||
    def subscribe_callback(self, callback, *args, **kwargs):
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,7 @@ from tfw.decorators import lazy_property
 | 
			
		||||
class ObserverMixin:
 | 
			
		||||
    @lazy_property
 | 
			
		||||
    def observer(self):
 | 
			
		||||
        # pylint: disable=no-self-use
 | 
			
		||||
        return Observer()
 | 
			
		||||
 | 
			
		||||
    def watch(self):
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ from tfw.config import TFWENV
 | 
			
		||||
class SupervisorBaseMixin:
 | 
			
		||||
    @lazy_property
 | 
			
		||||
    def supervisor(self):
 | 
			
		||||
        # pylint: disable=no-self-use
 | 
			
		||||
        return xmlrpc.client.ServerProxy(TFWENV.SUPERVISOR_HTTP_URI).supervisor
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user