[Checkins] SVN: five.grok/trunk/src/five/grok/ Marked the absolute_url as acquired on a five.grok.View, but you got another issue, the mammoth is not acquisition wrapped...

Vincent Fretin vincent.fretin at gmail.com
Wed Sep 16 06:37:51 EDT 2009


Log message for revision 104146:
  Marked the absolute_url as acquired on a five.grok.View, but you got another issue, the mammoth is not acquisition wrapped...

Changed:
  U   five.grok/trunk/src/five/grok/components.py
  U   five.grok/trunk/src/five/grok/ftests/view/index.py

-=-
Modified: five.grok/trunk/src/five/grok/components.py
===================================================================
--- five.grok/trunk/src/five/grok/components.py	2009-09-16 10:32:22 UTC (rev 104145)
+++ five.grok/trunk/src/five/grok/components.py	2009-09-16 10:37:51 UTC (rev 104146)
@@ -78,6 +78,9 @@
     # We let getPhysicalPath to be acquired. This make static URL's
     # work, and prevent us to inherit from Acquisition.Implicit
     getPhysicalPath = Acquisition.Acquired
+    # We need absolute_url method to be acquired, it's used by AbsoluteURL adapter
+    # in Products/Five/browser/absoluteurl.py
+    absolute_url = Acquisition.Acquired
 
 class CodeView(grokcore.view.CodeView, Acquisition.Explicit):
 

Modified: five.grok/trunk/src/five/grok/ftests/view/index.py
===================================================================
--- five.grok/trunk/src/five/grok/ftests/view/index.py	2009-09-16 10:32:22 UTC (rev 104145)
+++ five.grok/trunk/src/five/grok/ftests/view/index.py	2009-09-16 10:37:51 UTC (rev 104146)
@@ -1,6 +1,8 @@
 """
   >>> from five.grok.ftests.view.index import *
-  >>> id = getRootFolder()._setObject("manfred", Mammoth(id='manfred'))
+  >>> root_folder = getRootFolder()
+  >>> mammoth = Mammoth(id='manfred')
+  >>> id = root_folder._setObject("manfred", mammoth)
 
 The default view name for a model is 'index':
 



More information about the checkins mailing list