From 9d8cb07360864d80d6ad9b38a164d154f30c9bd2 Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 3 Jun 2008 15:32:01 +0000 Subject: [PATCH] BSCW access: improved selection of icons git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2662 fd906abe-77d9-0310-91a1-e0d9ade77398 --- integrator/bscw.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integrator/bscw.py b/integrator/bscw.py index 3a51028..6563e73 100644 --- a/integrator/bscw.py +++ b/integrator/bscw.py @@ -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):