version 1.18, 2004/05/06 10:27:07
|
version 1.19, 2004/05/06 10:42:58
|
Line 303 class ECHO_navigation(Folder):
|
Line 303 class ECHO_navigation(Folder):
|
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
|
|
def getColls(self,obj,depth): |
def getColls(self,obj,depth,checkOnly="no"): |
nav={} |
nav={} |
#print "HERE",obj. |
#print "HERE",obj. |
for x_objs in obj.ZopeFind(obj,obj_metatypes=self.displayedMetaTypes): |
for x_objs in obj.ZopeFind(obj,obj_metatypes=self.displayedMetaTypes): |
x=x_objs[1] |
x=x_objs[1] |
|
print checkOnly,x.label |
|
if checkOnly=="yes": |
x = checkOnlyOneInGroup(x) |
x = checkOnlyOneInGroup(x) |
if depth>1: |
if depth>1: |
nav[x.getId()]=(self.getColls(x,depth-1),x) |
nav[x.getId()]=(self.getColls(x,depth-1),x) |
Line 315 class ECHO_navigation(Folder):
|
Line 317 class ECHO_navigation(Folder):
|
nav[x.getId()]=(None,x) |
nav[x.getId()]=(None,x) |
return nav |
return nav |
|
|
def createNavHash(self,depth): |
def createNavHash(self,depth,checkOnly="no"): |
"""Auslesen des Hierarchiebuames""" |
"""Auslesen des Hierarchiebuames""" |
temp=self.pathToHierarchy[0:] |
temp=self.pathToHierarchy[0:] |
temp=re.sub("/",".",temp) |
temp=re.sub("/",".",temp) |
Line 333 class ECHO_navigation(Folder):
|
Line 335 class ECHO_navigation(Folder):
|
if x.meta_type in self.displayedMetaTypes: |
if x.meta_type in self.displayedMetaTypes: |
|
|
if depth>1: |
if depth>1: |
nav[x.getId()]=(self.getColls(x,int(depth)-1),x) |
nav[x.getId()]=(self.getColls(x,int(depth)-1,checkOnly),x) |
else: |
else: |
nav[x.getId()]=(None,x) |
nav[x.getId()]=(None,x) |
|
|
Line 513 class ECHO_navigation(Folder):
|
Line 515 class ECHO_navigation(Folder):
|
def secondNavElements(self): |
def secondNavElements(self): |
"""Zweite Ordnung""" |
"""Zweite Ordnung""" |
|
|
hash=self.createNavHash(2) |
hash=self.createNavHash(2,checkOnly="yes") |
actual_url=self.REQUEST['URL'] |
actual_url=self.REQUEST['URL'] |
|
|
ult_temp=re.sub(self.absolute_url(),"",actual_url) |
ult_temp=re.sub(self.absolute_url(),"",actual_url) |