Did I find the right examples for you? yes no

All Samples(200)  |  Call(189)  |  Derive(0)  |  Import(11)
Return 'rootObject' as a plist-formatted string.
    

        def writePlistToString(rootObject):
    """Return 'rootObject' as a plist-formatted string.
    """
    f = StringIO()
    writePlist(rootObject, f)
    return f.getvalue()
        


src/p/r/prymatex-HEAD/prymatex/share/Support/lib/plist.py   prymatex(Download)
def writePlistToString(dictionary):
    return plistlib.writePlistToString(__fixItems(dictionary, __fixWriteItem))
 

src/p/r/prymatex-HEAD/prymatex/utils/plist.py   prymatex(Download)
def writePlistToString(dictionary):
    return plistlib.writePlistToString(__fixItems(dictionary, __fixWriteItem))
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/YNAB-budget-check/alp/core_dependencies/biplist/__init__.py   AlfredWorkflow.com(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/SearchKippt/alp/core_dependencies/biplist/__init__.py   AlfredWorkflow.com(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/nuomituangou/alp/core_dependencies/biplist/__init__.py   AlfredWorkflow.com(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

src/m/a/macscripts-HEAD/Munki/Auth/UnlockNetwork/uninstall.py   macscripts(Download)
        formatted['group'] = group
        # Convert back to plist
        input_plist = plistlib.writePlistToString(formatted)
        # Write the plist back to the authorizationdb
        command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.services.systemconfiguration.network']
        formatted['rule'] = 'root-or-entitled-admin-or-app-specific-admin'
        # Convert back to plist
        input_plist = plistlib.writePlistToString(formatted)
        # Write the plist back to the authorizationdb
        command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.services.systemconfiguration.network']
    formatted['group'] = group
    # Convert back to plist
    input_plist = plistlib.writePlistToString(formatted)
    # Write the plist back to the authorizationdb
    command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.preferences.network']

src/m/a/macscripts-HEAD/Munki/Auth/UnlockNetwork/postinstall.py   macscripts(Download)
        formatted['group'] = group
        # Convert back to plist
        input_plist = plistlib.writePlistToString(formatted)
        # Write the plist back to the authorizationdb
        command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.services.systemconfiguration.network']
        formatted['rule'] = 'allow'
        # Convert back to plist
        input_plist = plistlib.writePlistToString(formatted)
        # Write the plist back to the authorizationdb
        command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.services.systemconfiguration.network']
    formatted['group'] = group
    # Convert back to plist
    input_plist = plistlib.writePlistToString(formatted)
    # Write the plist back to the authorizationdb
    command = ['/usr/bin/security', 'authorizationdb', 'write', 'system.preferences.network']

src/w/o/Workflows-HEAD/Yourls Stats/alp/core_dependencies/biplist/__init__.py   Workflows(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

src/w/o/Workflows-HEAD/Downer/alp/core_dependencies/biplist/__init__.py   Workflows(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

src/w/o/Workflows-HEAD/Create New File/alp/core_dependencies/biplist/__init__.py   Workflows(Download)
            return plistlib.writePlistToBytes(rootObject)
        else:
            return plistlib.writePlistToString(rootObject)
    else:
        io = six.BytesIO()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next