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:
parent
4d52ab345c
commit
9d8cb07360
1 changed files with 4 additions and 3 deletions
|
@ -112,7 +112,8 @@ class ReadContainer(BSCWProxyBase, ReadContainer):
|
||||||
itemType = item['__class__'].split('.')[-1]
|
itemType = item['__class__'].split('.')[-1]
|
||||||
internalPath = '/'.join((self.internalPath, key)).strip('/')
|
internalPath = '/'.join((self.internalPath, key)).strip('/')
|
||||||
params = dict(server=self.server, internalPath=internalPath,
|
params = dict(server=self.server, internalPath=internalPath,
|
||||||
properties=item, baseUrl=self.baseUrl)
|
properties=item, baseUrl=self.baseUrl,
|
||||||
|
itemType=itemType)
|
||||||
if itemType == 'Folder':
|
if itemType == 'Folder':
|
||||||
return self.containerFactory(item['id'], **params)
|
return self.containerFactory(item['id'], **params)
|
||||||
elif itemType == 'Document':
|
elif itemType == 'Document':
|
||||||
|
@ -138,11 +139,11 @@ class Item(BSCWProxyBase, Item):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
return self.type.lower()
|
return self.itemType.lower()
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def type(self):
|
def type(self):
|
||||||
return 'item'
|
return 'unknown'
|
||||||
|
|
||||||
|
|
||||||
class File(BSCWProxyBase, File):
|
class File(BSCWProxyBase, File):
|
||||||
|
|
Loading…
Add table
Reference in a new issue