version 1.50, 2006/10/16 13:21:23
|
version 1.51, 2006/11/14 17:02:59
|
Line 691 class CDLIBasketContainer(OrderedFolder)
|
Line 691 class CDLIBasketContainer(OrderedFolder)
|
self.id=id |
self.id=id |
self.title=title |
self.title=title |
|
|
|
|
def getBasketsId(self): |
def getBasketsId(self): |
"""get all baskets als klartext""" |
"""get all baskets als klartext""" |
|
|
ret="" |
ret="" |
baskets=self.ZopeFind(self,obj_metatypes=['CDLIBasket']) |
baskets=self.ZopeFind(self,obj_metatypes=['CDLIBasket']) |
for basket in baskets: |
for basket in baskets: |
Line 1005 class CDLIBasket(Folder,CatalogAware):
|
Line 1007 class CDLIBasket(Folder,CatalogAware):
|
|
|
return added |
return added |
|
|
|
|
|
|
|
|
def getContentIds(self): |
def getContentIds(self): |
"""print basket content""" |
"""print basket content""" |
ret=[] |
ret=[] |
Line 1384 class CDLIFile(extVersionedFile,CatalogA
|
Line 1389 class CDLIFile(extVersionedFile,CatalogA
|
default_catalog='CDLICatalog' |
default_catalog='CDLICatalog' |
|
|
#security.declarePublic('history') |
#security.declarePublic('history') |
|
def getLastVersionData(self): |
|
"""get last version data""" |
|
return self.getLastVersion().getData() |
|
|
|
#security.declarePublic('history') |
|
|
|
|
def history(self): |
def history(self): |
"""history""" |
"""history""" |
|
|
Line 1840 class CDLIRoot(Folder):
|
Line 1852 class CDLIRoot(Folder):
|
|
|
meta_type="CDLIRoot" |
meta_type="CDLIRoot" |
downloadCounterBaskets=0# counts the current basket downloads if counter > 10 no downloads are possible |
downloadCounterBaskets=0# counts the current basket downloads if counter > 10 no downloads are possible |
|
|
|
|
|
def showFile(self,fileId): |
|
"""show a file""" |
|
f=self.CDLICatalog({'title':fileId}) |
|
if not f: |
|
return "" |
|
|
|
return f[0].getObject().getLastVersionData() |
|
|
def URLquote(self,str): |
def URLquote(self,str): |
"""quote url""" |
"""quote url""" |
return urllib.quote(str) |
return urllib.quote(str) |