Commits

Lynn Rees  committed a3d8d6e

- save point

  • Participants
  • Parent commits 4520e9f

Comments (0)

Files changed (3)

File appspace/builders.py

 # -*- coding: utf-8 -*-
 '''appspace builder'''
 
-from appspace.imps import appifies
-
+from appspace.support import appifies
 from appspace.keys import AAppspace, AppLookupError, NoAppError
 
 

File appspace/registry.py

 from stuf.utils import exhaustcall, selfname
 
 from appspace.utils import lazyimport, checkname
-from appspace.imps import appifies, AppStore, StrictAppStore
+from appspace.support import appifies, AppStore, StrictAppStore
 from appspace.keys import (
-    ALazyLoad, InterfaceClass, AApp,  ANamespace,
-    AManager, AppLookupError, AService, ConfigurationError)
+    ALazyLoad, InterfaceClass, AApp,  ANamespace, AManager, AppLookupError,
+    AService, ConfigurationError)
 
 
 @appifies(ALazyLoad)
         @param *appconfs: sequence of appconfs
         '''
         def process(k, appconf):
-            
             for k, v in items((twoq(getmro(appconf))
-                .tap(lambda x: not x.startswith('__'))
                 .alt(isclass).wrap(dict).extract().value())):
                 if isinstance(v, (tuple, strings)):
                     self.pack(k, v)
                     process(k, v)
         exhaustcall(
             lambda x: process(selfname(x), x), chain.from_iterable(appconfs),
-        )    
+        )
 
 
 class ManagerMixin(object):

File appspace/utils.py

-from inspect import isclass
-
 from functools import partial
 from itertools import starmap
 from keyword import iskeyword
 
 from twoq import twoq
 from stuf import stuf
-from stuf.six import items, strings
-from stuf.utils import getcls, selfname, exhaust, exhaustmap, twoway, imap
+from stuf.six import strings
+from stuf.utils import getcls, selfname, exhaust, exhaustmap, twoway
 
-from appspace.imps import appifies
+from appspace.support import appifies
+from appspace.keys import ABranch, ANamespace, AApp
 from appspace.registry import Manager, StrictManager
-from appspace.keys import ABranch, ANamespace, AApp, AService
 
 
 class key(appifies):
         @param *args: tuple of module paths or component inclusions
         '''
         return cls.factory(label, cls._manager, *args)
-    
+
+
 class _PatternsMixin(object):
 
     @classmethod
         except AttributeError:
             key = manager.key(ANamespace, label)
 
-    
+
 class _PatternMixin(_Filter):
 
     @classmethod
         @param module: module import path
         '''
         return ('include', module)
-    
-    
+
+
 @appifies(ANamespace)
 class Namespace(_PatternMixin):
 
         t = lambda k, v: v.build(manager) if n(v) else m(v, k, label)
         exhaustmap(vars(cls), t, cls._filter)
 
+
 def localize(self, thing, *args, **kw):
     '''
     local settings from thing and its base classes plus any custom settings
         return name + '_' if iskeyword(name) else name
 
 
-checkname = CheckName()
+checkname = CheckName()