Commit 3e59e0e7 authored by Andreas Jung's avatar Andreas Jung

removed is_acquired (defined in App.Common)

parent dbd2732f
......@@ -13,7 +13,7 @@
"""Commonly used functions for WebDAV support modules."""
__version__='$Revision: 1.12 $'[11:-2]
__version__='$Revision: 1.13 $'[11:-2]
import string, time, urllib, re
from App.Common import iso8601_date, rfc850_date, rfc1123_date
......@@ -31,17 +31,6 @@ def urlfix(url, s):
url=url[:-1]
return url
def is_acquired(ob):
# Return true if this object is not a direct
# subobject of its aq_parent object.
if not hasattr(ob, 'aq_parent'):
return 0
if hasattr(aq_base(ob.aq_parent), absattr(ob.id)):
return 0
if hasattr(aq_base(ob), 'isTopLevelPrincipiaApplicationObject') and \
ob.isTopLevelPrincipiaApplicationObject:
return 0
return 1
def urlbase(url, ftype=urllib.splittype, fhost=urllib.splithost):
# Return a '/' based url such as '/foo/bar', removing
......
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