当前位置: 首页>>代码示例>>Python>>正文


Python ArgsUtils.getAsDict方法代码示例

本文整理汇总了Python中pyaid.ArgsUtils.ArgsUtils.getAsDict方法的典型用法代码示例。如果您正苦于以下问题:Python ArgsUtils.getAsDict方法的具体用法?Python ArgsUtils.getAsDict怎么用?Python ArgsUtils.getAsDict使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyaid.ArgsUtils.ArgsUtils的用法示例。


在下文中一共展示了ArgsUtils.getAsDict方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pyaid.ArgsUtils import ArgsUtils [as 别名]
# 或者: from pyaid.ArgsUtils.ArgsUtils import getAsDict [as 别名]
 def __init__(self, ident, label =None, message =None, **kwargs):
     """Creates a new instance of ViewResponse."""
     self._id      = ident
     self._label   = label
     self._message = message
     self._kind    = ArgsUtils.get('kind', self.DEFAULT_KIND, kwargs)
     self._allowCaching = ArgsUtils.get('allowCaching', False, kwargs)
     self._data = ArgsUtils.getAsDict('data', kwargs)
开发者ID:sernst,项目名称:Ziggurat,代码行数:10,代码来源:ViewResponse.py

示例2: __call__

# 需要导入模块: from pyaid.ArgsUtils import ArgsUtils [as 别名]
# 或者: from pyaid.ArgsUtils.ArgsUtils import getAsDict [as 别名]
 def __call__(self, *args, **kwargs):
     try:
         return self._createApp(
             ArgsUtils.getAsDict('environ', kwargs, args, 0),
             ArgsUtils.get('start_response', None, kwargs, args, 1) )
     except Exception as err:
         self.logger.writeError([
             'ERROR: Application Creation Failed',
             'ARGS: %s' % ListUtils.prettyPrint(args),
             'KWARGS: %s' % DictUtils.prettyPrint(kwargs) ], err)
         raise
开发者ID:sernst,项目名称:Ziggurat,代码行数:13,代码来源:ZigguratApplication.py

示例3: __init__

# 需要导入模块: from pyaid.ArgsUtils import ArgsUtils [as 别名]
# 或者: from pyaid.ArgsUtils.ArgsUtils import getAsDict [as 别名]
    def __init__(self, source, **kwargs):

        self.footerDom  = u''
        self.page       = ArgsUtils.get('page', None, kwargs)
        self.site       = ArgsUtils.get('site', None, kwargs)

        self.filePath = ArgsUtils.get('path', None, kwargs)
        self.filename = ArgsUtils.get(
            'filename',
            os.path.basename(self.filePath) if self.filePath else None,
            kwargs)

        debugData = ArgsUtils.extract('debugData', None, kwargs)
        blocks    = {
            'root':[
                MarkupTextBlockUtils.createMarkupCommentDef(BlockDefinition.BLOCKED),
                MarkupTextBlockUtils.createMarkupOpenDef('quote'),
                MarkupTextBlockUtils.createMarkupCloseDef(BlockDefinition.BLOCKED) ],
            'quote':[
                BlockDefinition.createQuoteDef(BlockDefinition.BLOCKED),
                BlockDefinition.createLiteralDef(BlockDefinition.BLOCKED) ]}

        self._renderErrors = []
        self._tagIndex     = -1

        super(MarkupProcessor, self).__init__(
            source,
            ArgsUtils.extract('debug', False, kwargs),
            blocks,
            debugData,
            stripSource=False,
            **kwargs)

        self.logger.trace       = True
        self._result            = None
        self._anchors           = []
        self._tags              = []
        self._id                = StringUtils.getRandomString(8)
        self._css               = []
        self._js                = []
        self._radioArrays       = dict()
        self._patterns          = dict()
        self._groups            = dict()
        self._metadata          = ArgsUtils.getAsDict('metadata', kwargs)
        self._libraryIDs        = []
        self._autoTitle         = u''
        self._autoDescription   = u''
        self._allowModelCaching = False

        self.privateView = False
开发者ID:sernst,项目名称:StaticFlow,代码行数:52,代码来源:MarkupProcessor.py

示例4: __init__

# 需要导入模块: from pyaid.ArgsUtils import ArgsUtils [as 别名]
# 或者: from pyaid.ArgsUtils.ArgsUtils import getAsDict [as 别名]
    def __init__(self,  projectPath, **kwargs):
        """Creates a new instance of ClassTemplate."""
        ProjectData.__init__(self, projectPath=projectPath, **kwargs)

        self.iosSimulatorSdkPath = '/Applications/Xcode.app/Contents/Developer/Platforms/' \
            + 'iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk'

        self.nativeCaptiveRuntime = ArgsUtils.get('nativeCaptive', False, kwargs)
        self.advancedTelemetry    = ArgsUtils.get('telemetry', False, kwargs)
        self.iosAdHoc             = ArgsUtils.get('iosAdHoc', False, kwargs)
        self.platformUploads      = ArgsUtils.getAsDict('platformUploads', kwargs)

        self._currentPlatformID = None
        self._iosInterpreter    = ArgsUtils.get('iosInterpreter', False, kwargs)
        self._iosSimulator      = ArgsUtils.get('iosSimulator', False, kwargs)
        self._live              = ArgsUtils.get('live', False, kwargs)
        self._compileSwf        = ArgsUtils.get('compileSwf', True, kwargs)
        self._packageAir        = ArgsUtils.get('packageAir', False, kwargs)
        self._quickCompile      = ArgsUtils.get('quickCompile', False, kwargs)
        self._usbDebug          = ArgsUtils.get('usbDebug', False, kwargs)
        self._versionInfo       = ArgsUtils.getAsDict('versionInfo', kwargs)
        self._platforms         = ArgsUtils.getAsDict('platforms', kwargs)
        self.remoteDebug        = ArgsUtils.get('remoteDebug', self._usbDebug, kwargs)
开发者ID:sernst,项目名称:CompilerDeck,代码行数:25,代码来源:FlexProjectData.py


注:本文中的pyaid.ArgsUtils.ArgsUtils.getAsDict方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。