Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
d34ed7b9
Commit
d34ed7b9
authored
May 06, 2015
by
Giorgos Korfiatis
Browse files
no callback in notifiers
parent
020e50dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
agkyra/agkyra/syncer/localfs_client.py
View file @
d34ed7b9
...
...
@@ -526,7 +526,7 @@ class LocalfsFileClient(FileClient):
def
prepare_target
(
self
,
target_state
):
return
LocalfsTargetHandle
(
self
.
settings
,
target_state
)
def
notifier
(
self
,
callback
=
None
):
def
notifier
(
self
):
def
handle_path
(
path
):
rel_path
=
os
.
path
.
relpath
(
path
,
start
=
self
.
ROOTPATH
)
objname
=
utils
.
to_standard_sep
(
rel_path
)
...
...
agkyra/agkyra/syncer/pithos_client.py
View file @
d34ed7b9
...
...
@@ -296,7 +296,7 @@ class PithosFileClient(FileClient):
(
last_modified
,
candidates
))
return
candidates
def
notifier
(
self
,
callback
=
None
):
def
notifier
(
self
):
interval
=
self
.
settings
.
pithos_list_interval
class
PollPithosThread
(
utils
.
StoppableThread
):
def
run_body
(
this
):
...
...
agkyra/agkyra/syncer/syncer.py
View file @
d34ed7b9
...
...
@@ -68,8 +68,7 @@ class FileSyncer(object):
for
signature
,
client
in
self
.
clients
.
iteritems
():
notifier
=
self
.
notifiers
.
get
(
signature
)
if
not
self
.
thread_is_active
(
notifier
):
self
.
notifiers
[
signature
]
=
\
client
.
notifier
(
callback
=
self
.
probe_file
)
self
.
notifiers
[
signature
]
=
client
.
notifier
()
else
:
logger
.
info
(
"Notifier %s already up"
%
signature
)
...
...
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