Skip to content

Commit 1cc8925

Browse files
author
Zaheer Abbas Merali
committed
Implement filename entry
1 parent 2c282b8 commit 1cc8925

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

flumotion2stomp.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,13 @@
216216

217217
function start_recording(element) {
218218
var str = element.id;
219+
var params = [];
219220
first_dash = str.indexOf('-');
220221
component = str.slice(first_dash + 1);
221-
console.log("start recording for component " + component);
222-
command = { "command" : "componentCallRemote", "method": "changeFilename", "params": [] , "component" : component };
222+
filename = $('#filenameentry-' + component).attr('value');
223+
console.log("start recording for component " + component + " with filename " + filename);
224+
if (filename != '') params[0] = filename;
225+
command = { "command" : "componentCallRemote", "method": "changeFilename", "params": params , "component" : component };
223226
stomp.send(JSON.stringify(command), COMMAND_CHANNEL);
224227
}
225228

flumotion2stomp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ def run_command(self, message):
278278
try:
279279
print "about to run %s on %r" % (command, state)
280280
if need_method:
281-
d = self.model.callRemote(command, state, method)
281+
d = self.model.callRemote(command, state, method, *params)
282282
else:
283-
d = self.model.callRemote(command, state)
283+
d = self.model.callRemote(command, state, *params)
284284
return d
285285
except Exception, e:
286286
print "Got exception %r running %s" % (e, command)

0 commit comments

Comments
 (0)