BSCW access: improved selection of icons

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2662 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2008-06-03 15:32:01 +00:00
parent 4d52ab345c
commit 9d8cb07360

View file

@ -112,7 +112,8 @@ class ReadContainer(BSCWProxyBase, ReadContainer):
itemType = item['__class__'].split('.')[-1]
internalPath = '/'.join((self.internalPath, key)).strip('/')
params = dict(server=self.server, internalPath=internalPath,
properties=item, baseUrl=self.baseUrl)
properties=item, baseUrl=self.baseUrl,
itemType=itemType)
if itemType == 'Folder':
return self.containerFactory(item['id'], **params)
elif itemType == 'Document':
@ -138,11 +139,11 @@ class Item(BSCWProxyBase, Item):
@property
def icon(self):
return self.type.lower()
return self.itemType.lower()
@Lazy
def type(self):
return 'item'
return 'unknown'
class File(BSCWProxyBase, File):