Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
e4dcd5fb
Commit
e4dcd5fb
authored
Oct 09, 2010
by
Devaev Maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional arguments for signal decorators
parent
439e8c5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
service_decorators.py
settingsd/service_decorators.py
+6
-6
No files found.
settingsd/service_decorators.py
View file @
e4dcd5fb
...
...
@@ -67,20 +67,20 @@ def actionMethod(interface_name, **kwargs_dict) :
###
def
customSignal
(
interface_name
)
:
def
customSignal
(
interface_name
,
**
kwargs_dict
)
:
def
decorator
(
function
)
:
return
tracer
(
dbus
.
service
.
signal
(
interface_name
)(
function
))
return
tracer
(
dbus
.
service
.
signal
(
interface_name
,
**
kwargs_dict
)(
function
))
return
decorator
def
functionSignal
(
interface_name
)
:
def
functionSignal
(
interface_name
,
**
kwargs_dict
)
:
def
decorator
(
function
)
:
return
customSignal
(
dbus_tools
.
joinMethod
(
config
.
value
(
config
.
APPLICATION_SECTION
,
"service_name"
),
"functions"
,
interface_name
))(
function
)
"functions"
,
interface_name
)
,
**
kwargs_dict
)(
function
)
return
decorator
def
actionSignal
(
interface_name
)
:
def
actionSignal
(
interface_name
,
**
kwargs_dict
)
:
def
decorator
(
function
)
:
return
customSignal
(
dbus_tools
.
joinMethod
(
config
.
value
(
config
.
APPLICATION_SECTION
,
"service_name"
),
"actions"
,
interface_name
))(
function
)
"actions"
,
interface_name
)
,
**
kwargs_dict
)(
function
)
return
decorator
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