[Zope3-checkins] SVN: Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/__init__.py Merged revision 37860 from the trunk: Test added

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Aug 11 08:03:34 EDT 2005


Log message for revision 37863:
  Merged revision 37860 from the trunk: Test added
  

Changed:
  U   Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/__init__.py

-=-
Modified: Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/__init__.py
===================================================================
--- Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/__init__.py	2005-08-11 11:59:07 UTC (rev 37862)
+++ Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/__init__.py	2005-08-11 12:03:34 UTC (rev 37863)
@@ -31,8 +31,22 @@
 
 key = "zope.app.publisher.browser.IUserPreferredLanguages"
 
-# TODO: needs testing of __parent__ property
 class BrowserView(Location):
+    """Browser View.
+
+    >>> view = BrowserView("context", "request")
+    >>> view.context
+    'context'
+    >>> view.request
+    'request'
+
+    >>> view.__parent__
+    'context'
+    >>> view.__parent__ = "parent"
+    >>> view.__parent__
+    'parent'
+    """
+
     implements(IBrowserView)
 
     def __init__(self, context, request):



More information about the Zope3-Checkins mailing list