Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
638ca63c
Kaydet (Commit)
638ca63c
authored
Agu 31, 2017
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Signed-off-by: AquilaNipalensis <nipalensisaquila@gmail.com>
üst
6e35000d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
120 additions
and
60 deletions
+120
-60
.gitignore
.gitignore
+110
-0
ChangeLog
api/ChangeLog
+0
-50
core.py
comar/modules/core.py
+7
-7
loop.c
comar/src/loop.c
+2
-2
script.c
comar/src/script.c
+1
-1
No files found.
.gitignore
0 → 100644
Dosyayı görüntüle @
638ca63c
# 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
api/ChangeLog
deleted
100644 → 0
Dosyayı görüntüle @
6e35000d
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
comar/modules/core.py
Dosyayı görüntüle @
638ca63c
...
...
@@ -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
...
...
comar/src/loop.c
Dosyayı görüntüle @
638ca63c
...
...
@@ -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
...
...
comar/src/script.c
Dosyayı görüntüle @
638ca63c
...
...
@@ -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
,
Py
Bytes
_FromString
(
config_dir_modules
));
PyList_Insert
(
py_list
,
0
,
Py
Unicode
_FromString
(
config_dir_modules
));
// Put CSL methods into __builtin__
py_mod_builtin
=
PyImport_AddModule
(
"__builtins__"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment