Changeset 354 for z3wingdbg/trunk/interfaces.py
- Timestamp:
- 09/19/06 12:09:45 (6 years ago)
- Files:
-
- 1 modified
-
z3wingdbg/trunk/interfaces.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
z3wingdbg/trunk/interfaces.py
r341 r354 5 5 from zope.component.interfaces import IFactory 6 6 from zope.i18n import MessageFactory 7 8 from zope.app.component.vocabulary import UtilityVocabulary 7 9 8 10 _ = MessageFactory('z3wingdbg') … … 292 294 293 295 # Vocabularies 294 def getServerTypesVocabulary(context):295 """List all available debug server types"""296 types = component.getUtilitiesFor(IDebugServerFactory)297 return schema.vocabulary.SimpleVocabulary.fromValues(t[0] for t in types)296 class ServerTypesVocabulary(UtilityVocabulary): 297 interface.classProvides(schema.interfaces.IVocabularyFactory) 298 interface = IDebugServerFactory 299 nameOnly = True
