Entropy/RemoteDbSkelInterface:
- add fetchall2list,fetchall2set,fetchone2set,fetchone2list methods git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2686 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -17817,6 +17817,24 @@ class RemoteDbSkelInterface:
|
||||
return True
|
||||
return False
|
||||
|
||||
def fetchall2set(self, item):
|
||||
mycontent = set()
|
||||
for x in item:
|
||||
mycontent |= set(x)
|
||||
return mycontent
|
||||
|
||||
def fetchall2list(self, item):
|
||||
content = []
|
||||
for x in item:
|
||||
content += list(x)
|
||||
return content
|
||||
|
||||
def fetchone2list(self, item):
|
||||
return list(item)
|
||||
|
||||
def fetchone2set(self, item):
|
||||
return set(item)
|
||||
|
||||
class DistributionUGCInterface(RemoteDbSkelInterface):
|
||||
|
||||
SQL_TABLES = {
|
||||
|
||||
Reference in New Issue
Block a user