[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/browser/registration.txt Merge from 3.3 branch:

Philipp von Weitershausen philikon at philikon.de
Sun Aug 13 11:19:40 EDT 2006


Log message for revision 69441:
  Merge from 3.3 branch:
   Log message for revision 69440:
    Adjust browser test after improving the registration API
  

Changed:
  U   Zope3/trunk/src/zope/app/component/browser/registration.txt

-=-
Modified: Zope3/trunk/src/zope/app/component/browser/registration.txt
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/registration.txt	2006-08-13 14:56:35 UTC (rev 69440)
+++ Zope3/trunk/src/zope/app/component/browser/registration.txt	2006-08-13 15:19:40 UTC (rev 69441)
@@ -34,17 +34,12 @@
 
     >>> print browser.contents
     <!DOCTYPE html ...
-    ...[[zope][This object isn't yet registered. Click
-    <a href="@@addRegistration.html">here</a>
-    to register the object. (
-    This object isn't yet registered.  Click
-    <a href="@@addRegistration.html">here</a>
-    to register the object.
-    )]]...
+    ...[[zope][This object isn't yet registered.]]...
 
-To add a registration, we'll click on the "here" link:
+To add a registration, we'll click on the `Register this object`
+button:
 
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
 
 This will being up a form that provides for selection from the
 interfaces the object provides and provides and entries for name to
@@ -79,9 +74,10 @@
     <br />
     [[zope][comment: unnamed sample]]...
 
-We can create multiple registrations by selecting "here" again:
+We can create multiple registrations by clicking on *Register this
+object again*:
 
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object again').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'one'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -108,7 +104,7 @@
 sample3. First, we register sample2:
 
     >>> browser.open('http://localhost/sample2/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'two'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -134,7 +130,7 @@
 we'll register sample 3:
 
     >>> browser.open('http://localhost/sample3/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'two'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -213,7 +209,7 @@
 the immediately enclosing site.  To see this, we register sample2:
 
     >>> browser.open('http://localhost/sample2/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register]]').click()
 
 Now we'll create a subsite and move sample2 there:



More information about the Zope3-Checkins mailing list