aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-26 13:09:21 -0400
committerW. Trevor King <wking@tremily.us>2012-10-26 13:09:53 -0400
commit1f771c68eec0cb191bd7d82f0f08134850a88e62 (patch)
tree030182eb4af053bc44b8f06d1dc0de71e8370f26 /libbe/command/base.py
parentb4d97db6f3fd6c3f4f19c4a475f064e305a163f6 (diff)
downloadbugseverywhere-1f771c68eec0cb191bd7d82f0f08134850a88e62.tar.gz
command: use mapfiles (JSON) instead of YAML for the command server
Diffstat (limited to 'libbe/command/base.py')
-rw-r--r--libbe/command/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py
index 61404c1..36769f1 100644
--- a/libbe/command/base.py
+++ b/libbe/command/base.py
@@ -24,10 +24,10 @@ import os.path
import StringIO
import sys
import urlparse
-import yaml
import libbe
import libbe.storage
+import libbe.storage.util.mapfile
import libbe.ui.util.user
import libbe.util.encoding
import libbe.util.http
@@ -348,10 +348,10 @@ class Command (object):
raise NotImplementedError
def _run_remote(self, **kwargs):
- data = yaml.safe_dump({
+ data = libbe.storage.util.mapfile.generate({
'command': self.name,
'parameters': kwargs,
- })
+ }, context=0)
url = urlparse.urljoin(self.server, 'run')
page,final_url,info = libbe.util.http.get_post_url(
url=url, get=False, data=data, agent=self.user_agent)