hello,
maybe someone can enlighten me:
#my request source
push = request.queue(id="agent")
# add a flush, i.e stop command
def add_flush(s) =
def flush(_) =
ret = server.execute("#{source.id(s)}.queue")
ret = list.hd(ret)
ret = string.split(separator=" ", ret)
if list.length(ret) > 0 then
list.iter(fun(x) -> begin
ignore(server.execute("#{source.id(s)}.ignore #{x}")) end, ret)
source.skip(s)
end
"done."
end
server.register(namespace="#{source.id(s)}",
description="flush queue",
usage="flush",
"flush",
flush)
end
add_flush(push)
i'd expet that this adds a command "agent.flush" to my list of server commands.
but it adds something like src_1234.flush
is #{source.id(s) not the id "agent" i've specified in request.queue?
if i replace #{source.id(s)} with the id string, all is fine. but i wanted to
reuse the function for other request.queue too...
what's wrong? thanks for any tips,
udo
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users