From 4134113e39a2ca99aee3f478eadeb21a11564db1 Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 25 Jul 2008 13:06:41 +0000 Subject: [PATCH] Entropy/DistributionUGCCommands: - set xml-based UGC commands to raw, to avoid SocketHostInterface to mess the string git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2309 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/entropy.py b/libraries/entropy.py index e5969a193..95afbdd1b 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -17272,6 +17272,7 @@ class DistributionUGCCommands(SocketCommandsSkel): self.DOC_TYPES['generic_file'], self.DOC_TYPES['youtube_video'], ] + self.raw_commands = ['ugc:add_comment', 'ugc:edit_comment', 'ugc:register_stream'] self.valid_commands = { 'ugc:get_comments': { @@ -17430,6 +17431,8 @@ class DistributionUGCCommands(SocketCommandsSkel): def docmd_register_stream(self, authenticator, myargs): + myargs = myargs.split() + if len(myargs) < 3: return None,'wrong arguments' pkgkey = myargs[0] @@ -17496,6 +17499,8 @@ class DistributionUGCCommands(SocketCommandsSkel): def docmd_add_comment(self, authenticator, myargs): + myargs = myargs.split() + if len(myargs) < 2: return None,'wrong arguments' pkgkey = myargs[0] @@ -17555,6 +17560,8 @@ class DistributionUGCCommands(SocketCommandsSkel): def docmd_edit_comment(self, authenticator, myargs): + myargs = myargs.split() + if len(myargs) < 2: return None,'wrong arguments' try: