[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Service/pt - services_binding.pt:1.1.2.1

Michael McLay mclay@nist.gov
Sat, 9 Feb 2002 16:13:14 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Service/pt
In directory cvs.zope.org:/tmp/cvs-serv22671/lib/python/Zope/App/Service/pt

Added Files:
      Tag: Zope-3x-branch
	services_binding.pt 
Log Message:
Added ServiceManagerBindingView and Service/pt/services_binding.pt.
Moved funtionality from IServiceService to IServiceManager and added
getServiceDefinitions() to Service.py. Changed the name of provideService
in ServiceManager to bindService and modified the functionality to allow
multiple service implementations to be associated with a service definition.



=== Added File Zope3/lib/python/Zope/App/Service/pt/services_binding.pt ===
<html metal:use-macro="views/standard_macros/page">
  <head>
    <style metal:fill-slot="headers" type="text/css"> </style>
  </head>
  <body metal:fill-slot="main" >
    <table>
     <tr tal:repeat="service container/getServicesTable">
       <td tal:content="service/name">Name</td>
       <td>
         <select name="boundService">
           <option tal:repeat="available service/services"
                   tal:attributes="value available; selected python:service['bound'] == available | nothing"
                   tal:content="available">Service</option>
         </select>
     </tr>
    </table>
  </body>
</html>