Exemple #1
0
def getCollection(url, dbSysInst):
    t = tagSys.tagSystemShoveDb(dbSysInst)
    notUsed, tagValue = url.split(t.getExcludedTagPrefix(),2)
    '''
    print tagValue.encode('gbk', 'replace')
    return collectionContainer.collectionContainerWrapperForPythonList([tagValue])
    '''
    paths = baseTagSys.tagSystemShoveDb.getObjs(t, t.getExcludedTagStr(tagValue))
    taggedList = t.getAllObjects(tagValue)
    '''
    for i in t.enumObjsWithTag(tagValue):
        #print i
        taggedList.append(i)
    '''
    taggedCollection = collectionContainer.collectionContainerWrapperForPythonList(taggedList)
    return collectionContainer.collectionContainer(taggedCollection, dbSysInst)
Exemple #2
0
def getCollection(url, dbSysInst):
    listRes = ['good', 'bad']
    collectionContainer.collectionContainerWrapperForPythonList(listRes)
    return collectionContainer.collectionContainer(taggedCollection, dbSysInst)