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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user