from axiom import iaxiom, userbase

from xmantissa import website, offering, provisioning

from sine import sipserver, sinetheme

sineproxy = provisioning.BenefactorFactory(
    name = u'sineproxy',
    description = u'Sine SIP Proxy',
    benefactorClass = sipserver.SineBenefactor)

plugin = offering.Offering(
    name = u"Sine",

    description = u"""
    The Sine SIP proxy and registrar.
    """,

    siteRequirements = (
        (userbase.IRealm, userbase.LoginSystem),
        (None, website.WebSite),
        (None, sipserver.SIPServer)),

    appPowerups = (sipserver.SinePublicPage,
        ),

    benefactorFactories = (sineproxy,),
    loginInterfaces=(),
    themes = (sinetheme.XHTMLDirectoryTheme('base'),)
    )


from axiom import iaxiom, userbase

from xmantissa import website, offering, provisioning

from sine import sipserver, sinetheme

sineproxy = provisioning.BenefactorFactory(
    name = u'sineproxy',
    description = u'Sine SIP Proxy',
    benefactorClass = sipserver.SineBenefactor)

plugin = offering.Offering(
    name = u"Sine",

    description = u"""
    The Sine SIP proxy and registrar.
    """,

    siteRequirements = (
        (userbase.IRealm, userbase.LoginSystem),
        (None, website.WebSite),
        (None, sipserver.SIPServer)),

    appPowerups = (sipserver.SinePublicPage,
        ),

    benefactorFactories = (sineproxy,),

    themes = (sinetheme.XHTMLDirectoryTheme('base'),)
    )


Revert 5505 - introduced numerous regressions into the test suite
Revert 5505 - introduced numerous regressions into the test suite
  from axiom import iaxiom, userbase
  
  from xmantissa import website, offering, provisioning
  
  from sine import sipserver, sinetheme
  
  sineproxy = provisioning.BenefactorFactory(
      name = u'sineproxy',
      description = u'Sine SIP Proxy',
      benefactorClass = sipserver.SineBenefactor)
  
  plugin = offering.Offering(
      name = u"Sine",
  
      description = u"""
      The Sine SIP proxy and registrar.
      """,
  
      siteRequirements = (
          (userbase.IRealm, userbase.LoginSystem),
          (None, website.WebSite),
          (None, sipserver.SIPServer)),
  
      appPowerups = (sipserver.SinePublicPage,
          ),
  
      benefactorFactories = (sineproxy,),
-     loginInterfaces=(),
+ 
      themes = (sinetheme.XHTMLDirectoryTheme('base'),)
      )
  
  
Revert 5505 - introduced numerous regressions into the test suite
## Code Before:
from axiom import iaxiom, userbase

from xmantissa import website, offering, provisioning

from sine import sipserver, sinetheme

sineproxy = provisioning.BenefactorFactory(
    name = u'sineproxy',
    description = u'Sine SIP Proxy',
    benefactorClass = sipserver.SineBenefactor)

plugin = offering.Offering(
    name = u"Sine",

    description = u"""
    The Sine SIP proxy and registrar.
    """,

    siteRequirements = (
        (userbase.IRealm, userbase.LoginSystem),
        (None, website.WebSite),
        (None, sipserver.SIPServer)),

    appPowerups = (sipserver.SinePublicPage,
        ),

    benefactorFactories = (sineproxy,),
    loginInterfaces=(),
    themes = (sinetheme.XHTMLDirectoryTheme('base'),)
    )


## Instruction:
Revert 5505 - introduced numerous regressions into the test suite
## Code After:
from axiom import iaxiom, userbase

from xmantissa import website, offering, provisioning

from sine import sipserver, sinetheme

sineproxy = provisioning.BenefactorFactory(
    name = u'sineproxy',
    description = u'Sine SIP Proxy',
    benefactorClass = sipserver.SineBenefactor)

plugin = offering.Offering(
    name = u"Sine",

    description = u"""
    The Sine SIP proxy and registrar.
    """,

    siteRequirements = (
        (userbase.IRealm, userbase.LoginSystem),
        (None, website.WebSite),
        (None, sipserver.SIPServer)),

    appPowerups = (sipserver.SinePublicPage,
        ),

    benefactorFactories = (sineproxy,),

    themes = (sinetheme.XHTMLDirectoryTheme('base'),)
    )

