# Path: txcas/interface.py
# class IRealmFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateRealm(argstring=""):
#         """
#         Create an object that implements IRealm.
#         """
# 
# class IServiceManagerFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateServiceManager(argstring=""):
#         """
#         Create an object that implements txcas.IServiceManager
#         """
# 
# class ITicketStoreFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateTicketStore(argstring=""):
#         """
#         Create an object that implements ITicketStore.
#         """
# 
# class IViewProviderFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateViewProvider(argstring=""):
#         """
#         Create an object that provides one or more views.
#         """


from txcas.interface import (
    IRealmFactory, 
    IServiceManagerFactory, 
    ITicketStoreFactory, 
    IViewProviderFactory)
from twisted.internet.interfaces import IStreamServerEndpointStringParser
from twisted.plugin import getPlugins
from twisted.cred.strcred import ICheckerFactory
#! /usr/bin/env python




print "== ITicketStore test =="
for n, thing in enumerate(getPlugins(ITicketStoreFactory)):
    print("%02d %s" % (n, thing))
    print(thing.tag)
    print("")

print "== IRealmFactory test =="

# Path: txcas/interface.py
# class IRealmFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateRealm(argstring=""):
#         """
#         Create an object that implements IRealm.
#         """
# 
# class IServiceManagerFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateServiceManager(argstring=""):
#         """
#         Create an object that implements txcas.IServiceManager
#         """
# 
# class ITicketStoreFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateTicketStore(argstring=""):
#         """
#         Create an object that implements ITicketStore.
#         """
# 
# class IViewProviderFactory(Interface):
# 
#     tag = Attribute('String used to identify the plugin factory.')
#     opt_help = Attribute('String description of the plugin.')
#     opt_usage = Attribute('String describes how to provide arguments for factory.')
# 
#     def generateViewProvider(argstring=""):
#         """
#         Create an object that provides one or more views.
#         """


# Path: plugin_test.py
from txcas.interface import (
    IRealmFactory, 
    IServiceManagerFactory, 
    ITicketStoreFactory, 
    IViewProviderFactory)
from twisted.internet.interfaces import IStreamServerEndpointStringParser
from twisted.plugin import getPlugins
from twisted.cred.strcred import ICheckerFactory

#! /usr/bin/env python




print "== ITicketStore test =="
for n, thing in enumerate(getPlugins(ITicketStoreFactory)):
    print("%02d %s" % (n, thing))
    print(thing.tag)
    print("")

print "== IRealmFactory test =="

for n, thing in enumerate(getPlugins(IRealmFactory)):