From 085f5e9c5eec12171596c47c0b70f6634dbc1402 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 May 2009 00:44:49 +0000 Subject: Node creation via HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2045 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/QueuedEngineInterface.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/engine/QueuedEngineInterface.cpp') diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp index cce6bb9d..4873f21b 100644 --- a/src/engine/QueuedEngineInterface.cpp +++ b/src/engine/QueuedEngineInterface.cpp @@ -155,17 +155,16 @@ void QueuedEngineInterface::put(const URI& uri, const Resource::Properties& properties) { - size_t hash = uri.find("#"); - bool meta = (hash != string::npos); - Path path(meta ? (string("/") + uri.chop_start("#")) : uri.str()); + bool meta = uri.substr(0, 6) == "meta:#"; + URI subject(meta ? (string("path:/") + uri.substr(6)) : uri.str()); + /*cerr << "ENGINE PUT " << subject << " {" << endl; typedef Resource::Properties::const_iterator iterator; - /*cerr << "ENGINE PUT " << path << " (" << path << ") {" << endl; for (iterator i = properties.begin(); i != properties.end(); ++i) cerr << "\t" << i->first << " = " << i->second << " :: " << i->second.type() << endl; cerr << "}" << endl;*/ - push_queued(new SetMetadataEvent(_engine, _responder, now(), this, meta, path, properties)); + push_queued(new SetMetadataEvent(_engine, _responder, now(), this, meta, subject, properties)); } -- cgit v1.2.1