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

All Samples(7)  |  Call(0)  |  Derive(0)  |  Import(7)
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/gadget/hostby1serviceby1status.py   karesansui(Download)
from karesansui.lib.utils import is_param, json_dumps
 
from karesansui.lib.const import SERVICE_XML_FILE, \
     SERVICE_COMMAND_START, SERVICE_COMMAND_STOP, \
     SERVICE_COMMAND_RESTART, SERVICE_COMMAND_AUTOSTART
        self.view.host_id = host_id
 
        config = ServiceConfigParam(SERVICE_XML_FILE)
        config.load_xml_config()
        service = config.findby1service(param[1])
 
        name = param[1]
        config = ServiceConfigParam(SERVICE_XML_FILE)
        config.load_xml_config()
        service = config.findby1service(name)

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1serviceby1.py   karesansui(Download)
from karesansui.lib.rest import Rest, auth
from karesansui.lib.utils import is_param
from karesansui.lib.const import SERVICE_XML_FILE
from karesansui.lib.service.config import ServiceConfigParam
from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    def _GET(self, *param, **params):
        host_id = self.chk_hostby1(param)
        if host_id is None: return web.notfound()
 
        config = ServiceConfigParam(SERVICE_XML_FILE)

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1service.py   karesansui(Download)
 
from karesansui.lib.rest import Rest, auth
from karesansui.lib.const import SERVICE_XML_FILE
from karesansui.lib.service.config import ServiceConfigParam, ServiceXMLGenerator
from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    def _GET(self, *param, **params):
        host_id = self.chk_hostby1(param)
        if host_id is None: return web.notfound()
 
        config = ServiceConfigParam(SERVICE_XML_FILE)

src/k/a/karesansui-HEAD/bin/stop_service.py   karesansui(Download)
    from karesansui.lib.service.config import ServiceConfigParam
    from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    from karesansui.lib.const import SERVICE_XML_FILE
 
except ImportError, e:
    def process(self):
        (opts, args) = getopts()
        chkopts(opts)
        self.up_progress(10)
        config = ServiceConfigParam(SERVICE_XML_FILE)

src/k/a/karesansui-HEAD/bin/start_service.py   karesansui(Download)
    from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    from karesansui.lib.service.config import ServiceConfigParam
    from karesansui.lib.const import SERVICE_XML_FILE
 
except ImportError, e:
        self.up_progress(10)
 
        config = ServiceConfigParam(SERVICE_XML_FILE)
        config.load_xml_config()
 

src/k/a/karesansui-HEAD/bin/restart_service.py   karesansui(Download)
    from karesansui.lib.service.config import ServiceConfigParam
    from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    from karesansui.lib.const import SERVICE_XML_FILE
 
except ImportError, e:
    def process(self):
        (opts, args) = getopts()
        chkopts(opts)
        self.up_progress(10)
        config = ServiceConfigParam(SERVICE_XML_FILE)

src/k/a/karesansui-HEAD/bin/autostart_service.py   karesansui(Download)
    from karesansui.lib.service.config import ServiceConfigParam
    from karesansui.lib.service.sysvinit_rh import SysVInit_RH
    from karesansui.lib.const import SERVICE_XML_FILE
 
except ImportError, e:
        self.up_progress(10)
 
        config = ServiceConfigParam(SERVICE_XML_FILE)
        config.load_xml_config()