version 1.84, 2010/02/15 19:03:28
|
version 1.84.2.2, 2012/01/19 19:03:28
|
Line 29 from Products.PageTemplates.ZopePageTemp
|
Line 29 from Products.PageTemplates.ZopePageTemp
|
import os.path |
import os.path |
|
|
import urllib |
import urllib |
|
import ECHO_helpers |
from ECHO_helpers import displayTypes,checkOnlyOneInGroup,unicodify |
from ECHO_helpers import displayTypes,checkOnlyOneInGroup,unicodify |
from ECHO_collection import content_html |
from ECHO_collection import content_html |
import logging |
import logging |
Line 381 class ECHO_pageTemplate(ZopePageTemplate
|
Line 382 class ECHO_pageTemplate(ZopePageTemplate
|
else: |
else: |
return 0 |
return 0 |
|
|
|
def getCrumb(self): |
|
"""returns breadcrumb for this object""" |
|
return ECHO_helpers.getCrumb(self) |
|
|
|
def getHierCrumbs(self): |
|
"""returns a list of hierarchical breadcrumbs from self to the ECHO_root""" |
|
return ECHO_helpers.getHierCrumbs(self); |
|
|
|
|
|
|
Line 801 class ECHO_navigation(Folder):
|
Line 809 class ECHO_navigation(Folder):
|
return style |
return style |
|
|
|
|
|
def getCrumb(self): |
|
"""returns breadcrumb for this object""" |
|
# ignore this object if title is empty |
|
if not self.title: |
|
return None |
|
|
|
# we use title for the label TODO: add label to ECHO_root |
|
crumb = {'obj': self, |
|
'url': self.absolute_url(), |
|
'label': self.title} |
|
return crumb |
|
|
|
def getHierCrumbs(self): |
|
"""returns a list of hierarchical breadcrumbs from self to the ECHO_root""" |
|
return ECHO_helpers.getHierCrumbs(self) |
|
|
|
|
def buttonsFromHash(self,hash,start=None,orientation="horizontal"): |
def buttonsFromHash(self,hash,start=None,orientation="horizontal"): |
|
|
"""Generate Buttons""" |
"""Generate Buttons""" |