Kaydet (Commit) 6e616ca1 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

duzenlendi

üst 5b33d741
...@@ -80,12 +80,12 @@ message_execute(DBusMessage *msg, const char *app, const char *model, const char ...@@ -80,12 +80,12 @@ message_execute(DBusMessage *msg, const char *app, const char *model, const char
int result; int result;
if (policy_check(sender, action_id, &result) == 0) { if (policy_check(sender, action_id, &result) == 0) {
if (result != POLICY_YES) { if (result != POLICY_YES) {
bus_reply_error(msg, "Comar.PolicyKit", action_id); bus_reply_error(msg, "Scom.PolicyKit", action_id);
return; return;
} }
} }
else { else {
bus_reply_error(msg, "Comar.PolicyKit", "error"); bus_reply_error(msg, "Scom.PolicyKit", "error");
return; return;
} }
} }
......
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import scom import scom
...@@ -7,7 +7,7 @@ import locale ...@@ -7,7 +7,7 @@ import locale
import sys import sys
import os import os
import piksemel import ciksemel
def printUsage(): def printUsage():
print("Usage: %s <command>" % sys.argv[0]) print("Usage: %s <command>" % sys.argv[0])
...@@ -27,7 +27,7 @@ def introspect(link, path="/"): ...@@ -27,7 +27,7 @@ def introspect(link, path="/"):
nodes = [] nodes = []
interfaces = {} interfaces = {}
xml = piksemel.parseString(obj.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable")) xml = ciksemel.parseString(obj.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable"))
for tag in xml.tags(): for tag in xml.tags():
if tag.name() == "node": if tag.name() == "node":
nodes.append(tag.getAttribute("name")) nodes.append(tag.getAttribute("name"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment