コード例 #1
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        logger = icm.LOG_Control().loggerGet()

        logger.debug('Raw Logging' + ucf.stackFrameInfoGet(1))
        icm.TM_here('Here' + ' Tracking')
        icm.TM_note('UnHere Tracking')

        #for thisArg in icm.icmRunArgs.cmndArgs:
        #print ('cmndExample() received cmndArg=' + thisArg)

        icm.do(intrusiveFunc, ' With Some Parameter')
コード例 #2
0
ファイル: bx-isoSrBases.py プロジェクト: bisos-pip/bx-bases
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Imported: bxPlatformBaseDirs"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Imported: bxPlatformBaseDirs*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        serviceObject.examples_bxoSrBaseDir()

        return (cmndOutcome)
コード例 #3
0
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)
        
        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()

        icm.cmndExampleMenuChapter('*argsProc*')

        cmndName = "argsProc" ; cmndArgs = "list argOne twoArg arg3" ;
        cps = collections.OrderedDict() ;
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        return(cmndOutcome)
コード例 #4
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bearerTokenExample_pkgThis.examples_pkgThis()
コード例 #5
0
ファイル: icmBxoExamples.py プロジェクト: bisos-pip/examples
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        selectedPipPkg = "unisos.marme"

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        cmndName = "unitTest"

        cmndArgs = ""
        cps = cpsInit()
        # cps['icmsPkgName'] = icmsPkgName
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*Input and Output Examples CMNDs*')

        cmndName = "outStreamsExamples"
        cmndArgs = ""
        cps = collections.OrderedDict()
        # cps['icmsPkgName'] = icmsPkgName
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*Other Than ICM Execution Line Examples*')

        execLineEx("""ls -l""")

        return (cmndOutcome)
コード例 #6
0
ファイル: palsBaseLiveTargets.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            bpoId=None,  # or Cmnd-Input
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {
            'bpoId': bpoId,
        }
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
        bpoId = callParamsDict['bpoId']

        ####+END:
        def cpsInit():
            return collections.OrderedDict()

        #def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        def extMenuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName,
                                 cps,
                                 cmndArgs,
                                 icmName=icmExName,
                                 verbosity=verbosity)  # 'little' or 'none'

        oneBpo = "pmi_ByD-100001"
        if bpoId: oneBpo = bpoId

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bpo.examples_bpo_basicAccess(oneBpo)

        baseLiveTargets.examples_baseLiveTargets().cmnd(bpoId=oneBpo, )

        icm.cmndExampleMenuChapter('*Related ICMs*')

        icmExName = "palsRepoLiveParams.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        return (cmndOutcome)
コード例 #7
0
ファイル: opScnPetstore.py プロジェクト: bisos-pip/mmwsIcm
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:
        def cpsInit(): return collections.OrderedDict()
        def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        ##### IMPORTANT PARAMS SPECIFICATIONS BEGIN

        svcSpecUrl="http://localhost:8080/swagger.json"
        svcSpecFile="../svcSpec/deploySvc-api.json"        
        perfSap="http://localhost:8080"
        headersFileName = "../bearerToken.headers"
        includeOpsListInExamples = False
        
        ##### IMPORTANT PARAMS SPECIFICATIONS END        
        
        icmsPkgInfoBaseDir = mmwsIcmPkgThis.pkgBase_baseDir()

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)
        
        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()


        icm.cmndExampleMenuChapter('*Scenarios Selection*')

        # ../unisos/mmwsIcm-base/opScn-1.py

        opScn1="{pkgBaseDir}/opScn-1.py".format(pkgBaseDir=icmsPkgInfoBaseDir)
        
        execLineEx("""ln -s {pkgBaseDir}/opScenarios.py opScenarios.py""".format(pkgBaseDir=icmsPkgInfoBaseDir))
        execLineEx("""ln -s {pkgBaseDir}/opScnrioExpect.py opScnrioExpect.py""".format(pkgBaseDir=icmsPkgInfoBaseDir))        

        ro.examples_remoteOperations(
            roListLoadFiles=[ opScn1, ],
            roExpectListLoadFiles=[opScn1,],
        )

        return(cmndOutcome)
コード例 #8
0
ファイル: icmBegin.py プロジェクト: unisos-pip/icmExamples
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        cmndName = "argsAndParamsProc"

        cmndArgs = "list argOne twoArg arg3"
        cps = cpsInit()
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*Other Than ICM Execution Line Examples*')

        execLineEx("""ls -l""")

        # icmMainProxy.mainsInfo()

        return (cmndOutcome)
コード例 #9
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        #def menuItem(): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        #
        # ICMs PKG Information
        #

        configBaseDir = bxCurrentsThis.pkgBase_configDir()

        print(configBaseDir)

        bxCurrentsConfig.examples_pkgInfoParsFull(
            configBaseDir=configBaseDir, )
コード例 #10
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        ##### IMPORTANT PARAMS SPECIFICATIONS BEGIN

        svcSpecUrl = "http://localhost:8080/swagger.json"
        svcSpecFile = "./swagger.json"
        perfSap = "http://localhost:8080"
        headersFileName = "./bearerToken.headers"
        includeOpsListInExamples = False

        ##### IMPORTANT PARAMS SPECIFICATIONS END

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bearerToken.examples_tokenGenerator("NAME", "ROLES", "GROUPS")

        return (cmndOutcome)
コード例 #11
0
ファイル: cntnrCurParams.py プロジェクト: bisos/bpip1
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:
        def cpsInit(): return collections.OrderedDict()
        #def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        def extMenuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, icmName=icmExName, verbosity=verbosity) # 'little' or 'none'

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        # bpo.examples_bpo_basicAccess(oneBpo)

        cntnrCurParamsBaseDir = curFps.baseDirObtain()

        # pattern.sameInstance(Cntnr_CurParams, cntnrCurParamsBaseDir,)

        fp.examples_fpBase(
            cntnrCurParamsBaseDir,
            'PalsRepo_LiveParams_FPs'
        )

        curFps.examples_curFps().cmnd()

        icm.cmndExampleMenuChapter('*Related ICMs*')

        icmExName = "palsBaseLiveTargets.py" ; cmndName = "examples" ; cmndArgs = "" ;
        cps=cpsInit() ; extMenuItem(verbosity='none')


        return(cmndOutcome)
コード例 #12
0
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:
        def cpsInit(): return collections.OrderedDict()
        def menuItem(verbosity, **kwargs): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity, **kwargs)
        # def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)
        
        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

####+BEGIN: bx:icm:python:cmnd:subSection :title "Create (Update) Vagrant File -- With Defaults"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ============== [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Create (Update) Vagrant File -- With Defaults*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
####+END:
        icm.cmndExampleMenuChapter('*Simple Example Of shRun*')

        cmndName = "shRunSimple" ; cmndArgs = ""
        cps=cpsInit() ; menuItem(verbosity='none', comment="# run cmnds -- dont echo cmnds and don't show stdout/err")

        cmndName = "shRunSimple" ; cmndArgs = ""
        cps=cpsInit() ; menuItem(verbosity='full', comment="# full verbosity")

        cmndName = "shRunSimple" ; cmndArgs = ""
        cps=cpsInit() ; menuItem(verbosity='little', comment="# show stdout/err but dont echo cmnds")

        cmndName = "shRunSimple" ; cmndArgs = ""
        cps=cpsInit() ; cps['callTrackings'] = 'monitor+' ; menuItem(verbosity='little', comment="# echo cmnds and show stdout/err")
        
        return(cmndOutcome)
コード例 #13
0
def main():
    #
    # ICM Library Setup Begins
    #

    icmRunArgs, icmArgsParser = icm.G_argsProc(
        arguments=sys.argv,
        extraArgs=None,
    )

    logControler = icm.LOG_Control()
    logControler.loggerSet(icmRunArgs)

    G = icm.IcmGlobalContext()
    G.globalContextSet(icmRunArgs=icmRunArgs)

    #
    # ICM Library Setup Begins
    #

    mailSendingExample()
コード例 #14
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            bpoId=None,  # or Cmnd-Input
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {
            'bpoId': bpoId,
        }
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
        bpoId = callParamsDict['bpoId']

        ####+END:
        #def cpsInit(): return collections.OrderedDict()
        #def menuItem(): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        #def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        oneBpo = "pmi_ByD-100001"
        if bpoId: oneBpo = bpoId

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        bpo.examples_bpo_basicAccess(oneBpo)

        repoProfile.examples_repoProfile().cmnd(bpoId=oneBpo, )

        return (cmndOutcome)
コード例 #15
0
ファイル: facterIcm.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ) -> icm.OpOutcome:
        ####+END:
        cmndOutcome = self.getOpOutcome()
        # def cpsInit(): return collections.OrderedDict()
        # def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        # def extMenuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, icmName=icmExName, verbosity=verbosity) # 'little' or 'none'

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        facterIcm.examples_facter().cmnd()

        return (cmndOutcome)
コード例 #16
0
ファイル: wsInvokerIcm.py プロジェクト: bisos-pip/mmwsIcm
def loggingSetup():
    ####+END:
    # Debug logging
    logControler = icm.LOG_Control()
    icmLogger = logControler.loggerGet()

    icmLogLevel = logControler.level

    #icmLogLevel = logControler.loggerGetLevel()  # Use This After ICM has been updated

    def requestsDebugLog():
        http.client.HTTPConnection.debuglevel = 1
        #logging.basicConfig()
        if icmLogLevel:
            if icmLogLevel <= 10:
                logging.getLogger().setLevel(logging.DEBUG)
        req_log = logging.getLogger('requests.packages.urllib3')
        req_log.setLevel(logging.DEBUG)
        req_log.propagate = True

    if icmLogLevel:
        if icmLogLevel <= 15:
            requestsDebugLog()
コード例 #17
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*General Dev and Testing IIFs*')

        cmndName = "unitTest"

        cmndArgs = ""
        cps = cpsInit()
        # cps['icmsPkgName'] = icmsPkgName
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Remain In Sycn With Template"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Remain In Sycn With Template*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*Remain In Sycn With Template*')

        #templateFile = "/de/bx/nne/dev-py/pypi/pkgs/bisos/examples/dev/bin/icmBegin.py"
        templateFile = "/de/bx/nne/dev-py/pypi/pkgs/unisos/icmExamples/dev/bin/icmBegin.py"
        thisFile = __file__

        execLineEx("""diff {thisFile} {templateFile}""".format(
            thisFile=thisFile, templateFile=templateFile))
        execLineEx("""cp {thisFile} {templateFile}""".format(
            thisFile=thisFile, templateFile=templateFile))
        execLineEx("""cp {templateFile} {thisFile}""".format(
            thisFile=thisFile, templateFile=templateFile))

        return (cmndOutcome)
コード例 #18
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*General Dev and Testing IIFs*')

        cmndName = "unitTest"

        cmndArgs = ""
        cps = cpsInit()
        # cps['icmsPkgName'] = icmsPkgName
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*BinsPreps*')

        cmndAction = " -i binsPreps"
        cmndArgs = ""
        menuLine = """{cmndAction} {cmndArgs}""".format(cmndAction=cmndAction,
                                                        cmndArgs=cmndArgs)
        icm.cmndExampleMenuItem(menuLine, verbosity='none')

        cmndAction = " -i binsPrepsCurInfo"
        cmndArgs = ""
        menuLine = """{cmndAction} {cmndArgs}""".format(cmndAction=cmndAction,
                                                        cmndArgs=cmndArgs)
        icm.cmndExampleMenuItem(menuLine, verbosity='none')

        icm.cmndExampleMenuSection('*Install ICMs Needed Linux Packages*')

        cmndAction = " -i canon_linuxPkgInstall"
        cmndArgs = ""
        menuLine = """{cmndAction} {cmndArgs}""".format(cmndAction=cmndAction,
                                                        cmndArgs=cmndArgs)
        icm.cmndExampleMenuItem(menuLine, verbosity='none')

        icm.cmndExampleMenuSection('*Install ICMs Needed Python Packages*')

        cmndAction = " -i canon_pythonPkgInstall"
        cmndArgs = ""
        menuLine = """{cmndAction} {cmndArgs}""".format(cmndAction=cmndAction,
                                                        cmndArgs=cmndArgs)
        icm.cmndExampleMenuItem(menuLine, verbosity='none')

        #
        # ICMs PKG Information
        #

        icmsPkgInfoBaseDir = marmePkgThis.pkgBase_configDir()
        icmsPkgModuleBaseDir = marmePkgThis.pkgBase_baseDir()

        icmsPkgLib.examples_pkgInfoParsFull(
            icmsPkgNameSpecification(),
            icmsPkgInfoBaseDir=icmsPkgInfoBaseDir,
            icmsPkgModuleBaseDir=icmsPkgModuleBaseDir,
            icmsPkgControlBaseDir=icmsPkgControlBaseDirDefault(),
            icmsPkgRunBaseDir=icmsPkgRunBaseDirDefault(),
        )
コード例 #19
0
ファイル: palsBpoManage.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        def extMenuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName,
                                 cps,
                                 cmndArgs,
                                 icmName=icmExName,
                                 verbosity=verbosity)  # 'little' or 'none'

        # def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        oneBpo = "pmi_ByD-100001"
        # oneSiRelPath = "plone3/main"

        bpo.examples_bpo_basicAccess(oneBpo)

        # palsBpo.examples_palsBpo_basicAccess(oneBpo, oneSiRelPath, menuLevel='chapter')

        icm.cmndExampleMenuChapter('*PALS-BASES Update*')

        cmndName = "basesUpdate"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='little')

        cmndName = "palsToBxBash"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='little')

        icmExName = "palsBaseLiveTargets.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-REPOs Example-Cmnds*')

        icmExName = "palsRepoProfile.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icmExName = "palsRepoLiveParams.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*Digest-SIs Example-Cmnds*')

        cmndName = "enabledSisInfo"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-SIs Example-Cmnds*')

        thisBpo = palsBpo.obtainBpo(oneBpo, )
        thisBpo.sis.sisDigest()

        icmExName = "palsSiPlone3.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo

        for eachSiPath in thisBpo.sis.svcInst_primary_enabled:
            cps['si'] = palsSis.siPathToSiId(
                oneBpo,
                eachSiPath,
            )
            extMenuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*PALS-VirDom-SIs Example-Cmnds*')

        icmExName = "palsSivdApache2.py"
        cmndName = "examples"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo

        for eachSiPath in thisBpo.sis.svcInst_virDom_enabled:
            cps['si'] = palsSis.siPathToSiId(
                oneBpo,
                eachSiPath,
            )
            extMenuItem(verbosity='none')

        return (cmndOutcome)
コード例 #20
0
ファイル: rinvokerPetstore.py プロジェクト: bisos-pip/mmwsIcm
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        ##### IMPORTANT PARAMS SPECIFICATIONS BEGIN

        svcSpecUrl = "http://petstore.swagger.io/v2/swagger.json"
        svcSpecFile = "./swagger.json"
        perfSap = "http://localhost:8080/v2/swagger.json"
        headersFileName = "./bearerToken.headers"
        includeOpsListInExamples = True

        ##### IMPORTANT PARAMS SPECIFICATIONS END

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter(
            '*Config And Prepare The Invoker -- Create Header Files -- Obtain Swagger Spec*'
        )

        cmndName = "prepInvoker"

        cmndArgs = ""
        cps = cpsInit()
        menuItem(verbosity='little')

        execLineEx("""wget {svcSpecUrl}""".format(svcSpecUrl=svcSpecUrl, ))

        #
        # svcOpsList examples from wsInvokerIcm
        #

        wsInvokerIcm.examples_commonInvoker(
            svcSpecUrl=svcSpecUrl,
            svcSpecFile=svcSpecFile,
            perfSap=perfSap,
            headers=None,
        )

        icm.cmndExampleMenuChapter('*Operations Invokations*')

        cmndName = "rinvoke"

        #
        #rinvoker.py --svcSpec=http://petstore.swagger.io/v2/swagger.json --perfSap=http://localhost:8080/v2/swagger.json  --headers=./bearerToken.headers  --resource=user --opName=loginUser -i rinvoke  username=usernameVALUE password=passwordVALUE
        #

        icm.cmndExampleMenuSection('* -i rinvoke loginUser svcSpecUrl*')

        cps = cpsInit()
        cps['svcSpec'] = svcSpecUrl
        cps['resource'] = "user"
        cps['opName'] = "loginUser"
        cmndArgs = "username=someUser password=somePasswd"
        menuItem(verbosity='none')
        #icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        cps = cpsInit()
        cps['svcSpec'] = svcSpecFile
        cps['perfSap'] = perfSap
        cps['headers'] = headersFileName
        cps['resource'] = "user"
        cps['opName'] = "loginUser"
        cmndArgs = "username=someUser password=somePasswd"
        menuItem(verbosity='none')
        #icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuSection('* -i rinvoke getPetById*')

        cps = cpsInit()
        #cps['svcSpec'] = svcSpecFile
        cps['svcSpec'] = svcSpecUrl
        #cps['perfSap'] = perfSap
        cps['resource'] = "pet"
        cps['opName'] = "getPetById"
        cmndArgs = "petId=1"
        menuItem(verbosity='none')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        cps = cpsInit()
        #cps['svcSpec'] = svcSpecFile
        cps['svcSpec'] = svcSpecUrl
        #cps['perfSap'] = perfSap
        cps['resource'] = "pet"
        cps['opName'] = "getPetById"
        cmndArgs = "petId=2"
        menuItem(verbosity='none')

        if includeOpsListInExamples:

            icm.cmndExampleMenuChapter(
                '*List Of Service Operation Invokations*')

            if svcSpecFile:
                if os.path.isfile(svcSpecFile):
                    svcSpec = svcSpecFile
                else:
                    svcSpec = svcSpecUrl
            else:
                svcSpec = svcSpecUrl

            cmndOutcome = wsInvokerIcm.svcOpsList().cmnd(
                interactive=False,
                svcSpec=svcSpec,
                perfSap=None,
                headers=None,
            )
        else:
            icm.cmndExampleMenuChapter(
                '*Enable includeOpsListInExamples For An Example List Of Service Operation Invokations*'
            )

        return (cmndOutcome)
コード例 #21
0
ファイル: gipcs_manage.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            cntnrId=None,  # or Cmnd-Input
            rosmu=None,  # or Cmnd-Input
    ) -> icm.OpOutcome:
        ####+END:
        """\
***** [[elisp:(org-cycle)][| *CmndDesc:* | ]] ICM examples, all in one place.
        """
        cmndOutcome = self.getOpOutcome()

        def cpsInit():
            return collections.OrderedDict()

        cmndArgs = ""
        cps = cpsInit()

        def menuItem(verbosity, **kwArgs):
            icm.ex_gCmndMenuItem(cmndName,
                                 cps,
                                 cmndArgs,
                                 verbosity=verbosity,
                                 **kwArgs)

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        if not cntnrId:
            cntnrId = "localhost"

        if not rosmu:
            rosmu = "facterIcm"

        # rosmuApPath will look like this f"/bisos/var/gipcs/perfs/cntnrId/rosmuAp"  # will be dateTag-ed
        gipcsPerfsRoot = pathlib.Path(f"/bisos/var/gipcs/perfs")
        gipcsPerfPath = gipcsPerfsRoot.joinpath(cntnrId)
        rosmuApPath = gipcsPerfPath.joinpath(rosmu)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        svcCmndUnit = "facterIcm.py"
        svcCmndName = "factName"
        svcCmndArgs = "networking.interfaces.lo.bindings[0].address"

        invCmndArgs = f"""-- {svcCmndUnit} -i {svcCmndName} {svcCmndArgs}"""
        perfCmndArgs = ""

        icm.cmndExampleMenuChapter('*GIPCS SAP Create*')

        cmndArgs = invCmndArgs
        cmndName = "sapCreate"
        cps = cpsInit()
        cps['perfAddr'] = cntnrId
        cps['rosmu'] = rosmu
        menuItem(verbosity='little', comment="# Under development in parts")

        icm.cmndExampleMenuChapter('*GIPCS Invoke*')

        cmndArgs = invCmndArgs
        cmndName = "inv"
        cps = cpsInit()
        cps['rosmuApPath'] = rosmuApPath
        menuItem(verbosity='little', comment="# Under development in parts")

        icm.cmndExampleMenuChapter('*GIPCS Perform*')

        cmndName = "perf"
        cps = cpsInit()
        cps['rosmuApPath'] = rosmuApPath
        menuItem(verbosity='little', comment="# Under development in parts")

        icm.cmndExampleMenuChapter('*GIPCS Obtain Invoke-Outcome*')

        cmndArgs = ""

        cmndName = "invOutcome"
        cps = cpsInit()
        cps['rosmuApPath'] = rosmuApPath
        cps['invId'] = "last"
        menuItem(verbosity='little', comment="# Under development in parts")

        return (cmndOutcome)
コード例 #22
0
ファイル: rinvoker.py プロジェクト: bisos-pip/mmwsIcm
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:
        def cpsInit(): return collections.OrderedDict()
        def menuItem(verbosity): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity) # 'little' or 'none'
        def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)


        ##### IMPORTANT PARAMS SPECIFICATIONS BEGIN
        
        svcSpecUrl="http://petstore.swagger.io/v2/swagger.json"
        svcSpecFile="./swagger.json"        
        perfSap="http://localhost:8080/v2/swagger.json"
        headersFileName = "./bearerToken.headers"
        includeOpsListInExamples = True
        
        ##### IMPORTANT PARAMS SPECIFICATIONS END        

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)
        
        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter('*Config And Prepare The Invoker -- Create Header Files -- Obtain Swagger Spec*')

        cmndName = "prepInvoker"

        cmndArgs = ""; cps = cpsInit();
        menuItem(verbosity='little')

        cmndName = "headersCreate"

        cmndArgs = ""; cps = cpsInit();
        menuItem(verbosity='none')

        execLineEx("""{myName} -i headersCreate > {headersFileName}""".format(
            myName=G.icmMyName(),
            headersFileName=headersFileName,
        ))        

        execLineEx("""wget {svcSpecUrl}""".format(
            svcSpecUrl=svcSpecUrl,
        ))        
        
        #
        # svcOpsList examples from wsInvokerIcm
        #

        wsInvokerIcm.examples_commonInvoker(
            svcSpecUrl=svcSpecUrl,
            svcSpecFile=svcSpecFile,            
            perfSap=perfSap,
            headers=headersFileName,
        )

        icm.cmndExampleMenuChapter('*Operations Invokations*')

        cmndName = "rinvoke"

        #
        #rinvoker.py --svcSpec=http://petstore.swagger.io/v2/swagger.json --perfSap=http://localhost:8080/v2/swagger.json  --headers=./bearerToken.headers  --resource=user --opName=loginUser -i rinvoke  username=usernameVALUE password=passwordVALUE        
        #

        icm.cmndExampleMenuSection('* -i rinvoke loginUser svcSpecUrl*')
        
        cps = cpsInit();
        cps['svcSpec'] = svcSpecUrl
        cps['resource'] = "user"
        cps['opName'] = "loginUser"        
        cmndArgs = "username=someUser password=somePasswd"
        menuItem(verbosity='none')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        cps = cpsInit();
        cps['svcSpec'] = svcSpecUrl
        cps['headers'] = headersFileName
        cps['resource'] = "user"
        cps['opName'] = "loginUser"        
        cmndArgs = "username=someUser password=somePasswd"
        menuItem(verbosity='none')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')


        icm.cmndExampleMenuSection('* -i rinvoke Create User svcSpecFile*')

        bodyStr="{'xml': {'name': 'User'}, 'x-model': 'User', 'type': 'object', 'properties': {'username': {'type': 'string'}, 'firstName': {'type': 'string'}, 'lastName': {'type': 'string'}, 'userStatus': {'type': 'integer', 'description': 'User Status', 'format': 'int32'}, 'id': {'type': 'integer', 'format': 'int64'}, 'phone': {'type': 'string'}, 'password': {'type': 'string'}, 'email': {'type': 'string'}}}"
        
        cps = cpsInit();
        cps['svcSpec'] = svcSpecUrl
        cps['resource'] = "user"
        cps['opName'] = "createUser"        
        cmndArgs = "bodyStr=\"{}\"".format(bodyStr)
        menuItem(verbosity='none')
        menuItem(verbosity='little')                
        
        if includeOpsListInExamples:

            icm.cmndExampleMenuChapter('*List Of Service Operation Invokations*')

            if svcSpecFile:
                if os.path.isfile(svcSpecFile):
                    svcSpec = svcSpecFile
                else:
                    svcSpec = svcSpecUrl
            else:
                svcSpec = svcSpecUrl

            cmndOutcome = wsInvokerIcm.svcOpsList().cmnd(
                interactive=False,
                svcSpec=svcSpec,
                perfSap=None,
                headers=None,
            )
        else:
            icm.cmndExampleMenuChapter('*Enable includeOpsListInExamples For An Example List Of Service Operation Invokations*')
            
        return(cmndOutcome)
        
####+BEGIN: bx:icm:python:cmnd:subSection :title "Remain In Sycn With Template"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Remain In Sycn With Template*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
####+END:
        
        icm.cmndExampleMenuChapter('*Remain In Sycn With Template*')

        #templateFile = "/de/bx/nne/dev-py/pypi/pkgs/bisos/examples/dev/bin/icmBegin.py"
        templateFile = "/de/bx/nne/dev-py/pypi/pkgs/unisos/icmExamples/dev/bin/icmBegin.py"
        thisFile = __file__

        execLineEx("""diff {thisFile} {templateFile}""".format(thisFile=thisFile, templateFile=templateFile))
        execLineEx("""cp {thisFile} {templateFile}""".format(thisFile=thisFile, templateFile=templateFile))
        execLineEx("""cp {templateFile} {thisFile}""".format(thisFile=thisFile, templateFile=templateFile))                

        return(cmndOutcome)
コード例 #23
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItemVerbose():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='none')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Imported: cryptKeyring Examples"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *withVenv Run PIP Commands*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        cryptKeyring.examples_libModuleCmnds(
            keyring='keyring',
            system='sysEx2',
            user='******',
        )

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Remain In Sycn With Template"
        """
**   [[elisp:(org-cycle)][| ]] [[elisp:(org-show-subtree)][|=]] [[elisp:(show-children 10)][|V]] [[elisp:(bx:orgm:indirectBufOther)][|>]] [[elisp:(bx:orgm:indirectBufMain)][|I]] [[elisp:(blee:ppmm:org-mode-toggle)][|N]] [[elisp:(org-top-overview)][|O]] [[elisp:(progn (org-shifttab) (org-content))][|C]] [[elisp:(delete-other-windows)][|1]]          *Remain In Sycn With Template*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""

        ####+END:

        def thisBlock():
            icm.cmndExampleMenuChapter('*Remain In Sycn With Template*')

            templateFile = "/bisos/git/bxRepos/bisos-pip/examples/dev/bisos/examples/icmLibPkgBegin.py"
            thisFile = __file__

            execLineEx("""diff {thisFile} {templateFile}""".format(
                thisFile=thisFile, templateFile=templateFile))
            execLineEx("""cp {thisFile} {templateFile}""".format(
                thisFile=thisFile, templateFile=templateFile))
            execLineEx("""cp {templateFile} {thisFile}""".format(
                thisFile=thisFile, templateFile=templateFile))

        #thisBlock()

        return (cmndOutcome)
コード例 #24
0
ファイル: icmEx-fpBase.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        # def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        fpBase = "/tmp/fpExPath"
        clsName = 'ExampleFilePars'

        fp.examples_fpBase(fpBase, clsName)

        icm.cmndExampleMenuChapter(f"*FpParam for {clsName}*")

        cmndName = "fpParamsSet"
        cmndArgs = ""
        cps = cpsInit()
        cps['fpBase'] = fpBase
        cps['cls'] = clsName

        cps['exPar1'] = "someValue1"
        menuItem(verbosity='little')

        cps['exPar2'] = "otherValue2"
        menuItem(verbosity='little')

        cmndName = "fpParamSetWithNameValue"
        cps = cpsInit()
        cps['fpBase'] = fpBase
        cps['cls'] = clsName

        cmndArgs = "exPar1 someValueA"
        menuItem(verbosity='little')
        cmndArgs = "exPar2 otherValueB"
        menuItem(verbosity='little')

        cmndName = "fpParamGetWithName"
        cps = cpsInit()
        cps['fpBase'] = fpBase
        cps['cls'] = clsName

        cmndArgs = "exPar1"
        menuItem(verbosity='little')
        cmndArgs = "exPar2"
        menuItem(verbosity='little')

        return (cmndOutcome)
コード例 #25
0
ファイル: icmExamples.py プロジェクト: unisos-pip/icmExamples
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:
        def cpsInit(): return collections.OrderedDict()
        def menuItem(): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)
        
        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        cmndName = "unitTest"
        
        cmndArgs = ""; cps = cpsInit(); # cps['icmsPkgName'] = icmsPkgName 
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*argsProc*')

        cmndName = "argsProc" ; cmndArgs = "list argOne twoArg arg3" ;
        cps = collections.OrderedDict() ;
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        icm.cmndExampleMenuChapter('*bashSubProcWithArgs*')

        cmndName = "bashSubProcWithArgs" ; cmndArgs = "argOne twoArg arg3" ;
        cps = collections.OrderedDict() ;
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')        
        

        icm.cmndExampleMenuChapter('*Input and Output Examples CMNDs*')

        cmndName = "outStreamsExamples" ; cmndArgs = "" ;
        cps = collections.OrderedDict() ; # cps['icmsPkgName'] = icmsPkgName 
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')        

        icm.cmndExampleMenuChapter('*Platform Configuration Paraemters -- Control Bases*')

        cmndName = "platformConfigsUse" ; cmndArgs = "" ;
        cps = collections.OrderedDict() ; # cps['icmsPkgName'] = icmsPkgName 
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        icm.cmndExampleMenuChapter('*Other Than ICM Execution Line Examples*')

        execLineEx("""ls -l""")

        return(cmndOutcome)
コード例 #26
0
ファイル: bleeIcmPlayer.py プロジェクト: blee-pip/icmPlayer
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*General Dev and Testing IIFs*')

        cmndName = "unitTest"

        cmndArgs = ""
        cps = cpsInit()
        # cps['icmsPkgName'] = icmsPkgName
        menuItem()
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Blee ICM Player (Update, Start, StartUpdated)"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Blee ICM Player (Update, Start, StartUpdated)*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter(
            '*Blee ICM Player (Update, Start, StartUpdated)*')

        icmsList = "icm1.py icm2.py"

        cmndName = "panelsUpdate"
        cps = cpsInit()
        cmndArgs = icmsList
        menuItem()

        cmndName = "panelsPlay"
        cps = cpsInit()
        cmndArgs = icmsList
        menuItem()

        cmndName = "panlesPlayUpdated"
        cps = cpsInit()
        cmndArgs = icmsList
        menuItem()

        #execLineEx("""diff {thisFile} {templateFile}""".format(thisFile=thisFile, templateFile=templateFile))

        return (cmndOutcome)
コード例 #27
0
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem():
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        icmsPkgInfoBaseDir = gossonotPkgThis.pkgBase_baseDir()

        #print icmsPkgInfoBaseDir

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        cmndName = "unitTest"
        cmndArgs = ""
        cps = collections.OrderedDict()
        # cps['icmsPkgName'] = icmsPkgName
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Simplified Targets Selection"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Simplified Targets Selection*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter('*Simplified Targets Selection*')

        # execLineEx("""ln -s /de/bx/current/district/librecenter/tiimi/targets/bxp/tList/ts-librecenter-localhostIcm.py liTargets.py""")
        # execLineEx("""ln -s /de/bx/current/district/librecenter/tiimi/targets/bxp/paramList/bxpUsageParamsIcm.py liParams.py""")

        execLineEx(
            """ln -s {pkgBaseDir}/ts-librecenter-localhostIcm.py liTargets.py"""
            .format(pkgBaseDir=icmsPkgInfoBaseDir))
        execLineEx(
            """ln -s {pkgBaseDir}/bxpUsageParamsIcm.py liParams.py""".format(
                pkgBaseDir=icmsPkgInfoBaseDir))

        execLineEx(
            """stress --cpu 2 --io 1 --vm 1 --vm-bytes 128M --timeout 10s --verbose"""
        )

        loadTargetArgs = """ --load ./liTargets.py"""
        loadParamsArgs = """ --load ./liParams.py """
        #ticmoFullInfo=format(commonArgs + loadTargetArgs)

        toIcm.targetParamSelectCommonExamples()

        toIcm.targetParamListCommonExamples(loadTargetArgs=loadTargetArgs,
                                            loadParamsArgs=loadParamsArgs)

        #fileParamPath1 = "/de/bx/coll/libreCenter/platforms/bue/0015/params/access/cur/"
        #fileParamPath2 = "/de/bx/coll/libreCenter/platforms/bue/0015/params/access/cur/"

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Run With Targets"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Run With Targets*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:

        icm.cmndExampleMenuChapter(
            '/TOICM: Monitor/ *targetsParamsToIcmMonitor*')

        thisCmndAction = " -i linuxUsageKpisRetrieve"

        # accessParams = " --targetFqdn " + thisTargetFqdn + " --userName " + thisUser + " --password " + thisPassword
        # icm.cmndExampleMenuItem(format(toIcmMonitorArgs + accessParams  +  thisCmndAction),
        #                         verbosity='none')

        icm.cmndExampleMenuItem(format(loadTargetArgs + loadParamsArgs +
                                       thisCmndAction),
                                verbosity='none')
        icm.cmndExampleMenuItem(format(loadTargetArgs + loadParamsArgs +
                                       thisCmndAction),
                                verbosity='full')
コード例 #28
0
ファイル: inMailNotmuch.py プロジェクト: bisos-pip/marme
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome

####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity=verbosity)

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        defaultMailDom = marmeAcctsLib.enabledInMailAcctObtain(
            bxoId=curGet_bxoId(),
            sr=curGet_sr(),
        )

        ####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
        ####+END:
        #icm.cmndExampleMenuChapter('*General Dev and Testing IIFs*')

        icm.cmndExampleMenuChapter('*Config File Creation Facilities*')

        icm.cmndExampleMenuSection(
            '*Automated Config File Creation Facilities*')

        cmndName = "notmuchConfigUpdate"
        cmndArgs = ""
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        menuItem(verbosity='none')
        menuItem(verbosity='full')

        cmndName = "notmuchConfigStdout"
        cmndArgs = ""
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        menuItem(verbosity='none')
        menuItem(verbosity='full')

        configFile = withInMailDomGetNotmuchConfigPath(
            defaultMailDom,
            bxoId=curGet_bxoId(),
            sr=curGet_sr(),
        )

        icm.ANN_write("""ls -l {}""".format(configFile))
        icm.ANN_write("""cat  {} """.format(configFile))

        icm.cmndExampleMenuSection(
            '*Interactive Config File Creation Facilities*')

        cmndName = "runNotmuch"
        cmndArgs = "setup"
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Creates/Edits notmuch-config',
                             icmWrapper=None,
                             icmName=None)

        icm.cmndExampleMenuSection('*Show/List Config Parameter Settings*')

        cmndName = "runNotmuch"
        cmndArgs = "config list"
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Shows Key aspects of notmuch-config',
                             icmWrapper=None,
                             icmName=None)

        icm.cmndExampleMenuChapter('*Run notmuch -- new, Search*')

        cmndName = "runNotmuch"
        cmndArgs = "new"
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Refresh the index',
                             icmWrapper=None,
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search --format=text --output=files "from:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Search Based on from',
                             icmWrapper=None,
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search --format=text --output=files "from:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='none',
                             comment='# Search Based on from',
                             icmWrapper='echo',
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search "from:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Search Based on from',
                             icmWrapper=None,
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search "from:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='none',
                             comment='# Search Based on from',
                             icmWrapper='echo',
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search --format=text --output=files "from:" | grep Inbox | xargs egrep "^Subject:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='basic',
                             comment='# Search Based on from',
                             icmWrapper=None,
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search --format=text --output=files "from:" | grep Inbox | xargs egrep "^Subject:"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='none',
                             comment='# Search Based on from',
                             icmWrapper="echo",
                             icmName=None)

        cmndName = "runNotmuch"
        cmndArgs = '''-- search --output=files "to: example.com"'''
        cps = cpsInit()
        cmndParsCurBxoSr(cps)
        icm.ex_gCmndMenuItem(cmndName,
                             cps,
                             cmndArgs,
                             verbosity='none',
                             comment='# Search Based on from',
                             icmWrapper="echo",
                             icmName=None)

        marmeAcctsLib.examples_controlProfileManage()

        marmeAcctsLib.examples_enabledInMailAcctConfig()

        marmeAcctsLib.examples_inMailAcctAccessPars()
コード例 #29
0
ファイル: marmeAcctsManage.py プロジェクト: bisos-pip/marme
    def cmnd(self,
        interactive=False,        # Can also be called non-interactively
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {}
        if not icm.cmndCallParamsValidate(callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
####+END:
        def cpsInit(): return collections.OrderedDict()
        def menuItem(): icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        def execLineEx(cmndStr): icm.ex_gExecMenuItem(execLine=cmndStr)

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())
        
        icm.G_commonBriefExamples()    

        bleep.examples_icmBasic()

####+BEGIN: bx:icm:python:cmnd:subSection :title "Dev And Testing"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *Dev And Testing*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
####+END:

        icm.cmndExampleMenuChapter('*General Dev and Testing IIFs*')

        cmndName = "unitTest"

        cmndArgs = "" 
        cps = cpsInit() ; # cps['icmsPkgName'] = icmsPkgName 
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='little')
        icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs, verbosity='full')        

####+BEGIN: bx:icm:python:cmnd:subSection :title "marmeAcctsLib Examples"
        """
**  [[elisp:(beginning-of-buffer)][Top]] ================ [[elisp:(blee:ppmm:org-mode-toggle)][Nat]] [[elisp:(delete-other-windows)][(1)]]          *withVenv Run PIP Commands*  [[elisp:(org-cycle)][| ]]  [[elisp:(org-show-subtree)][|=]] 
"""
####+END:

        marmeAcctsLib.examples_bxoSrPkgInfoParsGet()

        marmeAcctsLib.examples_controlProfileManage()

        #marmeAcctsLib.examples_marmeAcctsLibControls()

        marmeAcctsLib.examples_enabledInMailAcctConfig()

        marmeAcctsLib.examples_enabledOutMailAcctConfig()        

        marmeAcctsLib.examples_select_mailBox()
   
        marmeAcctsLib.examples_inMailAcctAccessParsFull()

        marmeAcctsLib.examples_outMailAcctAccessParsFull()

        return
コード例 #30
0
ファイル: palsSiGeneweb.py プロジェクト: bisos/bpip1
    def cmnd(
            self,
            interactive=False,  # Can also be called non-interactively
            bpoId=None,  # or Cmnd-Input
            si=None,  # or Cmnd-Input
    ):
        cmndOutcome = self.getOpOutcome()
        if interactive:
            if not self.cmndLineValidate(outcome=cmndOutcome):
                return cmndOutcome

        callParamsDict = {
            'bpoId': bpoId,
            'si': si,
        }
        if not icm.cmndCallParamsValidate(
                callParamsDict, interactive, outcome=cmndOutcome):
            return cmndOutcome
        bpoId = callParamsDict['bpoId']
        si = callParamsDict['si']

        ####+END:

        def cpsInit():
            return collections.OrderedDict()

        def menuItem(verbosity):
            icm.ex_gCmndMenuItem(cmndName, cps, cmndArgs,
                                 verbosity=verbosity)  # 'little' or 'none'

        def execLineEx(cmndStr):
            icm.ex_gExecMenuItem(execLine=cmndStr)

        oneBpo = "pmi_ByD-100001"
        oneSiRelPath = "geneweb/main"

        oneBpo = "pmi_ByD-100001"
        oneSiRelPath = "plone3/main"

        logControler = icm.LOG_Control()
        logControler.loggerSetLevel(20)

        icm.icmExampleMyName(G.icmMyName(), G.icmMyFullName())

        icm.G_commonBriefExamples()

        bleep.examples_icmBasic()

        icm.cmndExampleMenuChapter('*Full Actions*')

        cmndName = "fullUpdate"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "fullDelete"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "serviceDelete"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*siBaseStart -- Initialize siBaseDir*')

        cmndName = "siBaseStart"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "siBaseUpdate"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*dbaseInitialContent for Bystar Account*')

        cmndName = "dbaseFullUpdate"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "dbaseCreate"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "dbaseInitialContentUpdate"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "dbaseInitialContentStdout"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter(
            '*dbase Password And Access Control Setup For Database*')

        cmndName = "dbaseAccessControlVisible"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        cmndName = "dbaseAccessControlLimited"
        cmndArgs = oneBpo
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*ByStar Service Realization BaseDir Sync*')

        cmndName = "srGwbBaseDirInfo"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        cps['dbase'] = "lastName"
        menuItem(verbosity='none')

        cmndName = "genewebToSrBase"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        cps['dbase'] = "lastName"
        menuItem(verbosity='none')

        cmndName = "genewebFromSrBase"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        cps['dbase'] = "lastName"
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*Bsr Images Process*')

        cmndName = "imagesList"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        cps['dbase'] = "lastName"
        menuItem(verbosity='none')

        cmndName = "genewebToSrBase"
        cmndArgs = ""
        cps = cpsInit()
        cps['bpoId'] = oneBpo
        cps['si'] = oneSiRelPath
        cps['dbase'] = "lastName"
        menuItem(verbosity='none')

        # ${G_myName} ${extraInfo} -p bxoId="${oneBystarAcct}" -p ss=${oneSr} -p dbase=banan -i imagesList | bueGimpManage.sh -h -v -n showRun -i scaleReplaceHeightTo 200
        # $( examplesSeperatorChapter "Access, Verification And Test" )
        # ${G_myName} ${extraInfo} -i  visitUrl

        icm.cmndExampleMenuChapter('*General Dev and Testing CMNDs*')

        cmndName = "argsAndParamsProc"
        cmndArgs = "list argOne twoArg arg3"
        cps = cpsInit()
        menuItem(verbosity='none')

        icm.cmndExampleMenuChapter('*Other Than ICM Execution Line Examples*')

        execLineEx("""ls -l""")

        # icmMainProxy.mainsInfo()

        return (cmndOutcome)