Kaydet (Commit) 638ca63c authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Signed-off-by: AquilaNipalensis <nipalensisaquila@gmail.com>

üst 6e35000d
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# IPython Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# dotenv
.env
# virtualenv
venv/
ENV/
# Spyder project settings
.spyderproject
# Rope project settings
.ropeproject
#2to3 files
*.bak
#patch outputs
*.orig
*.rej
#vi & vim swaps
*.swp
*.swo
#CMakeFiles
CMakeCache.txt
CMakeFiles/
install_manifest.txt
Makefile
cmake_install.cmake
2009-11-02 Bahadır Kandemir <bahadir@pardus.org.tr>
* utility.py(execReply): Fix deprecation warning for execReply's
constructor.
2009-11-02 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Added .comar suffix to lock files.
2009-06-25 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: listRunning(all=True) method for listing running method calls
2009-06-11 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Cancel method
2009-06-04 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Use polkit-auth
2009-05-11 Bahadır Kandemir <bahadir@pardus.org.tr>
* network: callScrip(profile, state) for executing profile scripts under
/etc/network/netlink.d/profilename.state
All kudos go to Nihat Ciddi
2009-05-10 Bahadır Kandemir <bahadir@pardus.org.tr>
* network: Moved common network code under comar.network module.
2009-05-07 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Do nothing if PolicyKit is unavailable
2009-02-06 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: socket parameter for Link class to connect any other DBus servers
2009-02-01 Bahadır Kandemir <bahadir@pardus.org.tr>
* api: Support COMAR 3.0
2008-10-27 Bahadır Kandemir <bahadir@pardus.org.tr>
* comar: New release. Good old friend, Link() is back.
More info available at README file.
2008-10-05 Bahadır Kandemir <bahadir@pardus.org.tr>
* setup.py: New release
2008-10-05 Bahadır Kandemir <bahadir@pardus.org.tr>
* comar/service.py (startService): Check service status before starting
service
......@@ -6,7 +6,7 @@ import shutil
def listModelApplications(model):
apps = []
scriptDir = os.path.join(config_datapath(), "scripts", model)
scriptDir = os.path.join('/var/db/comar3/', "scripts", model)
if not os.path.exists(scriptDir):
return apps
for i in os.listdir(scriptDir):
......@@ -16,7 +16,7 @@ def listModelApplications(model):
def listApplicationModels(app):
models = []
scriptDir = os.path.join(config_datapath(), "apps", app)
scriptDir = os.path.join('/var/db/comar3/', "apps", app)
if not os.path.exists(scriptDir):
return models
for i in os.listdir(scriptDir):
......@@ -25,7 +25,7 @@ def listApplicationModels(app):
return models
def register(app, model, filename):
scriptDir = os.path.join(config_datapath(), "scripts", model)
scriptDir = os.path.join('/var/db/comar3/', "scripts", model)
scriptFile = os.path.join(scriptDir, "%s.py" % app)
try:
os.mkdir(scriptDir)
......@@ -33,7 +33,7 @@ def register(app, model, filename):
pass
shutil.copy(filename, scriptFile)
scriptDir = os.path.join(config_datapath(), "apps", app)
scriptDir = os.path.join('/var/db/comar3/', "apps", app)
scriptFile = os.path.join(scriptDir, model)
try:
os.mkdir(scriptDir)
......@@ -47,12 +47,12 @@ def register(app, model, filename):
return True
def remove(app):
scriptDir = os.path.join(config_datapath(), "apps", app)
scriptDir = os.path.join('/var/db/comar3/', "apps", app)
if not os.path.exists(scriptDir):
return
for i in os.listdir(scriptDir):
if not i.startswith("."):
scriptFile = os.path.join(config_datapath(), "scripts", i, "%s.py" % app)
scriptFile = os.path.join('/var/db/comar3/', "scripts", i, "%s.py" % app)
try:
os.unlink(scriptFile)
except:
......@@ -88,7 +88,7 @@ def introspect():
xml += model_xml("Core")
xml += '<node name="package"/>'
elif path == '/package':
scriptDir = os.path.join(config_datapath(), "apps")
scriptDir = os.path.join('/var/db/comar3/', "apps")
for i in os.listdir(scriptDir):
if not i.startswith("."):
xml += '<node name="%s"/>' % i
......
......@@ -60,11 +60,11 @@ message_execute(DBusMessage *msg, const char *app, const char *model, const char
PyObject *py_args = pydbus_import(msg);
char *eStr, *vStr;
// Validate model and method
/* Validate model and method
if (validate_model_member(model, method, 0) != 0) {
bus_reply_unknown_method(msg);
return;
}
}*/
// Check policy
......
......@@ -533,7 +533,7 @@ py_execute(const char *app, const char *model, const char *method, PyObject *py_
py_module = PyImport_ImportModule("sys");
py_dict = PyModule_GetDict(py_module);
py_list = PyDict_GetItemString(py_dict, "path");
PyList_Insert(py_list, 0, PyBytes_FromString(config_dir_modules));
PyList_Insert(py_list, 0, PyUnicode_FromString(config_dir_modules));
// Put CSL methods into __builtin__
py_mod_builtin = PyImport_AddModule("__builtins__");
......
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