[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py Added AQBB to the viewlets.
Log message for revision 79326: Added AQBB to the viewlets. Changed: U Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py -=- Modified: Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py 2007-08-28 20:13:03 UTC (rev 79325) +++ Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py 2007-08-28 20:25:37 UTC (rev 79326) @@ -17,12 +17,14 @@ import os import zope.viewlet.viewlet +from Products.Five.bbb import AquisitionBBB from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile -class ViewletBase(zope.viewlet.viewlet.ViewletBase): +class ViewletBase(zope.viewlet.viewlet.ViewletBase, AquisitionBBB): pass -class SimpleAttributeViewlet(zope.viewlet.viewlet.SimpleAttributeViewlet): +class SimpleAttributeViewlet(zope.viewlet.viewlet.SimpleAttributeViewlet, + AquisitionBBB): pass class simple(zope.viewlet.viewlet.simple): ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py Simplify my braindead code
Log message for revision 79329: Simplify my braindead code Changed: U Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py -=- Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 21:21:09 UTC (rev 79328) +++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 21:29:24 UTC (rev 79329) @@ -35,9 +35,7 @@ def getId(self): return basename(self.filename) -@property -def id(self): -return self.getId() +property(getId) def pt_getEngine(self): return getEngine() ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py I'm too tired to code.
Log message for revision 79330: I'm too tired to code. Changed: U Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py -=- Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 21:29:24 UTC (rev 79329) +++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 21:37:05 UTC (rev 79330) @@ -35,7 +35,7 @@ def getId(self): return basename(self.filename) -property(getId) +id = property(getId) def pt_getEngine(self): return getEngine() ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt Re-enable test for __of__
Log message for revision 79331: Re-enable test for __of__ Changed: U Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt -=- Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt === --- Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt 2007-08-28 21:37:05 UTC (rev 79330) +++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/aqlegacy_ftest.txt 2007-08-28 21:41:29 UTC (rev 79331) @@ -46,13 +46,10 @@ view.aq_inContextOf(object()) 0 -Let's try the __of__ protocol: +Views also still support the __of__ protocol, at least pro forma: - # view = view.__of__(self.app) - # view.aq_parent == self.folder - #False - # view.aq_parent == self.app - #True + view == view.__of__(self.app) + True Mixing in Acquisition.{Ex|Im}plicit --- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/ Missing 'c' in classname
Log message for revision 79335: Missing 'c' in classname Changed: U Zope/branches/philikon-aq/lib/python/Products/Five/bbb.py U Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py U Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py U Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py -=- Modified: Zope/branches/philikon-aq/lib/python/Products/Five/bbb.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/bbb.py 2007-08-28 23:38:48 UTC (rev 79334) +++ Zope/branches/philikon-aq/lib/python/Products/Five/bbb.py 2007-08-28 23:42:34 UTC (rev 79335) @@ -22,7 +22,7 @@ import Acquisition -class AquisitionBBB(object): +class AcquisitionBBB(object): Emulate a class implementing Acquisition.interfaces.IAcquirer and IAcquisitionWrapper. Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py 2007-08-28 23:38:48 UTC (rev 79334) +++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py 2007-08-28 23:42:34 UTC (rev 79335) @@ -18,10 +18,10 @@ import Acquisition import zope.publisher.browser -from Products.Five.bbb import AquisitionBBB +from Products.Five.bbb import AcquisitionBBB -class BrowserView(zope.publisher.browser.BrowserView, AquisitionBBB): +class BrowserView(zope.publisher.browser.BrowserView, AcquisitionBBB): # Use an explicit __init__ to work around problems with magically inserted # super classes when using BrowserView as a base for viewlets. Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 23:38:48 UTC (rev 79334) +++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/pagetemplatefile.py 2007-08-28 23:42:34 UTC (rev 79335) @@ -23,7 +23,7 @@ from Products.PageTemplates.Expressions import SecureModuleImporter from Products.PageTemplates.Expressions import createTrustedZopeEngine -from Products.Five.bbb import AquisitionBBB +from Products.Five.bbb import AcquisitionBBB _engine = createTrustedZopeEngine() def getEngine(): @@ -71,7 +71,7 @@ # that it also needs to be locatable thru __parent__. class BoundPageTemplate(viewpagetemplatefile.BoundPageTemplate, -AquisitionBBB): +AcquisitionBBB): __parent__ = property(lambda self: self.im_self) Modified: Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py === --- Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py 2007-08-28 23:38:48 UTC (rev 79334) +++ Zope/branches/philikon-aq/lib/python/Products/Five/viewlet/viewlet.py 2007-08-28 23:42:34 UTC (rev 79335) @@ -17,14 +17,14 @@ import os import zope.viewlet.viewlet -from Products.Five.bbb import AquisitionBBB +from Products.Five.bbb import AcquisitionBBB from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile -class ViewletBase(zope.viewlet.viewlet.ViewletBase, AquisitionBBB): +class ViewletBase(zope.viewlet.viewlet.ViewletBase, AcquisitionBBB): pass class SimpleAttributeViewlet(zope.viewlet.viewlet.SimpleAttributeViewlet, - AquisitionBBB): + AcquisitionBBB): pass class simple(zope.viewlet.viewlet.simple): ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins