[Zope3-checkins] CVS: Zope3/src/zope/app/registration/browser - __init__.py:1.7 configure.zcml:1.6

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 24 19:20:18 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/registration/browser
In directory cvs.zope.org:/tmp/cvs-serv30241/src/zope/app/registration/browser

Modified Files:
	__init__.py configure.zcml 
Log Message:


Use Choice field instead of special registration status field and widget.




=== Zope3/src/zope/app/registration/browser/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/registration/browser/__init__.py:1.6	Thu Apr  8 17:02:40 2004
+++ Zope3/src/zope/app/registration/browser/__init__.py	Sat Apr 24 19:19:47 2004
@@ -156,16 +156,6 @@
         self.message = message
 
 
-class RegistrationStatusWidget(RadioWidget):
-
-    def _getDefault(self):
-        return UnregisteredStatus
-
-    def __call__(self):
-        rendered_items = self.renderItems(self._showData())
-        return "  ".join(rendered_items)
-
-
 class ComponentPathWidget(BrowserWidget):
     """Widget for displaying component paths
 


=== Zope3/src/zope/app/registration/browser/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/registration/browser/configure.zcml:1.5	Tue Mar 23 17:08:07 2004
+++ Zope3/src/zope/app/registration/browser/configure.zcml	Sat Apr 24 19:19:47 2004
@@ -2,14 +2,6 @@
    xmlns:zope="http://namespaces.zope.org/zope"
    xmlns="http://namespaces.zope.org/browser">
 
-  <zope:view
-      for="zope.app.registration.interfaces.IRegistrationStatus"
-      type="zope.publisher.interfaces.browser.IBrowserRequest"
-      provides="zope.app.form.interfaces.IInputWidget"
-      factory=".RegistrationStatusWidget"
-      permission="zope.ManageServices"
-      />
-
   <page
       for="zope.app.registration.interfaces.IRegistrationStack"
       name="ChangeRegistrations"




More information about the Zope3-Checkins mailing list