[config/dx] bundle a default fs (and http?) service if none is provided (#179)

This commit is contained in:
Romain Dorgueil
2017-10-05 07:17:16 +02:00
parent f7cf7ca482
commit b2f93b2416
13 changed files with 69 additions and 16 deletions

View File

@ -1,3 +1,4 @@
from bonobo.util.collections import sortedlist
from bonobo.util.inspect import (
inspect_node,
isbag,
@ -10,11 +11,18 @@ from bonobo.util.inspect import (
isoption,
istype,
)
from bonobo.util.objects import (
get_name,
get_attribute_or_create,
ValueHolder
)
from bonobo.util.python import require
# Bonobo's util API
__all__ = [
'require',
'ValueHolder',
'get_attribute_or_create',
'get_name',
'inspect_node',
'isbag',
'isconfigurable',
@ -25,4 +33,5 @@ __all__ = [
'ismethod',
'isoption',
'istype',
'require',
]

View File

@ -1,6 +1,5 @@
from collections import namedtuple
from bonobo.constants import LOOPBACK
def isconfigurable(mixed):
@ -99,6 +98,7 @@ def isloopbackbag(mixed):
:param mixed:
:return: bool
"""
from bonobo.constants import LOOPBACK
return isbag(mixed) and LOOPBACK in mixed.flags