You are not logged in Log in Join
You are here: Home » Members » chrisw » Squishdot » Patch for Squishdot.py » View File

Log in
Name

Password

 

Patch for Squishdot.py

File details
Size
1 K
File type
text/plain

File contents

--- Squishdot.py.old	Mon May 29 14:38:38 2000
+++ Squishdot.py	Mon May 29 14:40:23 2000
@@ -1015,6 +1015,20 @@
 	    return results
 	return ResultSet(r)
 
+    def resolve_url(self, path, REQUEST):
+        """
+        Hack/Patch for SiteAccess
+        """
+        pparts = filter(None, split(path, '/'))
+        try:
+            obj = self
+            while pparts:
+                id = pparts.pop(0)
+                if id != self.id:
+                    obj = obj[id]
+            return obj
+        except:
+            return
      
     def _searchable_result_columns(self):     
         return ({'name':'title', 'type':'s'},