[Checkins] SVN: grok/trunk/src/grok/admin/objectinfo.py Remove crap.
Uli Fouquet
uli at gnufix.de
Fri Sep 14 07:40:00 EDT 2007
Log message for revision 79632:
Remove crap.
Changed:
U grok/trunk/src/grok/admin/objectinfo.py
-=-
Modified: grok/trunk/src/grok/admin/objectinfo.py
===================================================================
--- grok/trunk/src/grok/admin/objectinfo.py 2007-09-14 10:12:15 UTC (rev 79631)
+++ grok/trunk/src/grok/admin/objectinfo.py 2007-09-14 11:40:00 UTC (rev 79632)
@@ -81,7 +81,7 @@
"""
path = getattr(self.obj, '__file__', None)
if path is None:
- return None
+ return
return inspect.getmoduleinfo(path)
def getmodulename(self):
@@ -93,7 +93,7 @@
"""
path = getattr(self.obj, '__file__', None)
if path is None:
- return None
+ return
return inspect.getmodulename(path)
def ismodule(self):
@@ -224,7 +224,7 @@
"""
if isContainingEvilRegExpChars(str(self.obj)):
- return None
+ return
return inspect.getcomments(self.obj)
def getfile(self):
@@ -286,7 +286,7 @@
their string representation.
"""
if isContainingEvilRegExpChars(str(self.obj)):
- return None
+ return
try:
return inspect.getsource(self.obj)
@@ -358,7 +358,7 @@
def getTypeLink(self, obj_type):
if obj_type is types.NoneType:
- return None
+ return
path = utilities.getPythonPath(obj_type)
return path.replace('.', '/')
@@ -586,18 +586,12 @@
def traverse(self,path):
namespace = 'anno'
- print "TRAVERSE", path
if path.startswith(namespace):
name = path[len(namespace):]
naked = removeSecurityProxy(self.context)
annotations = IAnnotations(naked)
- print annotations.items()
- #obj = name and annotations[name] or annotations
- #obj = path and annotations[name] or annotations
obj = ObjectInfo("Hello")
if not IPhysicallyLocatable(obj, False):
- #obj = LocationProxy(
- # obj, self.context, namespace + name)
obj = LocationProxy(
obj, self.context, 'anno' + name)
return obj
More information about the Checkins
mailing list