Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/k/a/karesansui-HEAD/karesansui/lib/collectd/config.py   karesansui(Download)
from karesansui.lib.utils import preprint_r
from karesansui.lib.collectd.utils import create_plugin_selector, plugin_selector_to_dict
from karesansui.lib.const import VENDOR_PREFIX, KARESANSUI_PREFIX, \
                                 VENDOR_DATA_DIR, \
                                 COUNTUP_DATABASE_PATH, COLLECTD_LOG_DIR, \
 
COLLECTD_SHARE_DIR         = "%s/share/collectd" % VENDOR_PREFIX
KARESANSUI_PYTHON_PATH     = "%s/lib/python" % KARESANSUI_PREFIX
COLLECTD_PYTHON_MODULE_DIR = "%s/karesansui/lib/collectd" % KARESANSUI_PYTHON_PATH
 

src/k/a/karesansui-HEAD/karesansui/lib/conf.py   karesansui(Download)
import karesansui
 
from karesansui.lib.const import KARESANSUI_PREFIX, KARESANSUI_DATA_DIR, \
                                 KARESANSUI_USER, KARESANSUI_GROUP, \
                                 CONFIGURE_COMMAND_READ, CONFIGURE_COMMAND_WRITE
                opts_str += "--%s=%s " % (x, options[x])
 
        _cmd = "%s/bin/%s %s" % (KARESANSUI_PREFIX, CONFIGURE_COMMAND_READ, opts_str.strip(),)
 
        command_args = _cmd.strip().split(" ")
                opts_str += "--%s=%s " % (x, options[x])
 
        _cmd = "%s/bin/%s %s" % (KARESANSUI_PREFIX, CONFIGURE_COMMAND_WRITE, opts_str.strip(),)
 
        command_args = _cmd.strip().split(" ")

src/k/a/karesansui-HEAD/karesansui/lib/iptables.py   karesansui(Download)
import karesansui
from karesansui.lib.utils import preprint_r, r_chmod, r_chown, r_chgrp
from karesansui.lib.const import KARESANSUI_PREFIX, KARESANSUI_DATA_DIR, \
                                 KARESANSUI_USER, KARESANSUI_GROUP
 
 
    else:
        from karesansui.lib.const import KARESANSUI_PREFIX
        from karesansui.lib.utils import execute_command
 
                opts_str += "--%s=%s " % (x, options[x])
 
        _cmd = "%s/bin/%s %s" % (KARESANSUI_PREFIX, IPTABLES_COMMAND_CONTROL, opts_str.strip(),)
 
        command_args = _cmd.strip().split(" ")

src/k/a/karesansui-HEAD/karesansui/lib/collectd/action/script.py   karesansui(Download)
import os, sys, pwd, re, fcntl, tempfile
 
from karesansui.lib.const import KARESANSUI_PREFIX, KARESANSUI_DATA_DIR, \
                                 KARESANSUI_USER, KARESANSUI_GROUP
from karesansui.lib.utils import execute_command, r_chmod, r_chown, r_chgrp