コード例 #1
0
 def __init__(self, path, definitions=None, headers=None, **kwds):
     self.__path = os.path.abspath(path)
     _NamedConstruct.__init__(self,
                              name=os.path.splitext(
                                  os.path.split(self.__path)[1])[0],
                              **kwds)
     self.__definitions = \
         definitions is not None and list(definitions) or []
     self.__headers = headers is not None and list(headers) or []
コード例 #2
0
ファイル: document.py プロジェクト: financeCoding/thryft
 def __init__(self, path, definitions=None, headers=None, **kwds):
     self.__path = os.path.abspath(path)
     _NamedConstruct.__init__(
         self,
         name=os.path.splitext(os.path.split(self.__path)[1])[0],
         **kwds
     )
     self.__definitions = \
         definitions is not None and list(definitions) or []
     self.__headers = headers is not None and list(headers) or []
コード例 #3
0
 def __init__(self,
              oneway=False,
              parameters=None,
              return_field=None,
              throws=None,
              **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__oneway = oneway
     self.__parameters = parameters is not None and list(parameters) or []
     self.__throws = throws is not None and list(throws) or []
     self.__return_field = return_field
コード例 #4
0
ファイル: field.py プロジェクト: mikej165/thryft
 def __init__(
         self,
         type,  # @ReservedAssignment
         id=None,  # @ReservedAssignment
         required=True,
         value=None,
         **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__id = id
     self.__type = type
     self.__required = required
     self.__value = value
コード例 #5
0
ファイル: function.py プロジェクト: minorg/thryft
 def __init__(
     self,
     oneway=False,
     parameters=None,
     return_field=None,
     throws=None,
     **kwds
 ):
     _NamedConstruct.__init__(self, **kwds)
     self.__oneway = oneway
     self.__parameters = parameters is not None and list(parameters) or []
     self.__throws = throws is not None and list(throws) or []
     self.__return_field = return_field
コード例 #6
0
ファイル: field.py プロジェクト: minorg/thryft
 def __init__(
     self,
     type,  # @ReservedAssignment
     id=None,  # @ReservedAssignment
     required=True,
     value=None,
     **kwds
 ):
     _NamedConstruct.__init__(self, **kwds)
     self.__id = id
     self.__type = type
     self.__required = required
     self.__value = value
コード例 #7
0
ファイル: namespace.py プロジェクト: adam-singer/thryft
 def __init__(self, scope=None, **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__scope = scope
コード例 #8
0
ファイル: service.py プロジェクト: mikej165/thryft
 def __init__(self, extends=None, functions=None, **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__extends = extends
     self.__functions = functions is not None and list(functions) or []
コード例 #9
0
 def __init__(self, type, **kwds):  # @ReservedAssignment
     _NamedConstruct.__init__(self, **kwds)
     self.__type = type
コード例 #10
0
ファイル: namespace.py プロジェクト: financeCoding/thryft
 def __init__(self, scope=None, **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__scope = scope
コード例 #11
0
 def __init__(self, extends=None, functions=None, **kwds):
     _NamedConstruct.__init__(self, **kwds)
     self.__extends = extends
     self.__functions = functions is not None and list(functions) or []
コード例 #12
0
 def __init__(self, type, value, **kwds):  # @ReservedAssignment
     _NamedConstruct.__init__(self, **kwds)
     self.__type = type
     self.__value = value
コード例 #13
0
ファイル: typedef.py プロジェクト: mikej165/thryft
 def __init__(self, type, overrides=True, **kwds):  # @ReservedAssignment
     _NamedConstruct.__init__(self, overrides=overrides, **kwds)
     self.__type = type