Commit cb8ffc59 authored by Jim Fulton's avatar Jim Fulton

Made some changes to views.

parent 318331e5
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property sheets""" """Property sheets"""
__version__='$Revision: 1.39 $'[11:-2] __version__='$Revision: 1.40 $'[11:-2]
import time, string, App.Management, Globals import time, string, App.Management, Globals
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
...@@ -129,10 +129,16 @@ class View(App.Management.Tabs, Base): ...@@ -129,10 +129,16 @@ class View(App.Management.Tabs, Base):
def tabs_path_info(self, script, path): def tabs_path_info(self, script, path):
l=rfind(path,'/') l=rfind(path,'/')
if l >= 0: path=path[:l] if l >= 0:
path=path[:l]
l=rfind(path,'/')
if l >= 0: path=path[:l]
return View.inheritedAttribute('tabs_path_info')( return View.inheritedAttribute('tabs_path_info')(
self, script, path) self, script, path)
def meta_type(self):
try: return self.aq_parent.aq_parent.meta_type
except: return ''
class PropertySheet(Persistent, Implicit): class PropertySheet(Persistent, Implicit):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment