Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def getIconURL(item, request, name='icon'):
    url = ''
    icon = zope.component.queryMultiAdapter((item, request), name=name)
    if icon is not None:
        try:
            url = icon.url()
        except TraversalError:
            return url
    return url
        


src/j/0/j01.tree-0.5.0/src/j01/tree/base.py   j01.tree(Download)
    def getIconURL(self, item, request, name='icon'):
        return util.getIconURL(item, request, name=name)
 
    def getParents(self):
        root = self.getRoot()

src/j/0/j01.tree-0.5.0/src/j01/tree/jsonrpc.py   j01.tree(Download)
    def getIconURL(self, item, request, name='icon'):
        return util.getIconURL(item, request, name=name)
 
    def loadJSONTreeItems(self, id):
        """Returns child information for the object with the given path in a 
            info['content'] = api.getName(subItem)
            info['url'] = url +'/'+ self.viewName
            info['iconURL'] = util.getIconURL(subItem, self.request)
            info['linkHandler'] = self.linkHandler
            info['hasChilds'] = hasChilds