Exemplo n.º 1
0
 def createResource(self):
     page = PublicAthenaLivePage(
         self.store,
         ValidatingSignupForm(self),
         IStaticShellContent(self.store, None))
     page.needsSecure = True
     return page
Exemplo n.º 2
0
 def test_publicPage(self):
     """
     Test that L{publicpage.PublicAthenaLivePage} supports themeing of
     Athena's unsupported-browser page.
     """
     stp = StubThemeProvider(store=self.siteStore)
     installOn(stp, self.siteStore)
     p = PublicAthenaLivePage(self.siteStore, None)
     self.assertEqual(p.renderUnsupported(None), flatten(CUSTOM_MSG))
Exemplo n.º 3
0
 def test_publicPage(self):
     """
     Test that L{publicpage.PublicAthenaLivePage} supports themeing of
     Athena's unsupported-browser page.
     """
     stp = StubThemeProvider(store=self.siteStore)
     installOn(stp, self.siteStore)
     p = PublicAthenaLivePage(self.siteStore, None)
     self.assertEqual(p.renderUnsupported(None),
                      flatten(CUSTOM_MSG))
Exemplo n.º 4
0
 def createResource(self):
     return PublicAthenaLivePage(self.store,
                                 getLoader("signup"),
                                 IStaticShellContent(self.store, None),
                                 None,
                                 iface=ITicketIssuer,
                                 rootObject=self)
Exemplo n.º 5
0
 def test_rendering(self):
     """
     L{AddBlogPostDialogFragment} can be rendered as part of a Mantissa
     public Athena page.
     """
     page = PublicAthenaLivePage(self.store, self.fragment, None, None)
     request = FakeRequest()
     request.args = {'title': ['foo'],
                     'body': ['bar'],
                     'url': ['baz']}
     return renderLivePage(page, reqFactory=lambda: request)
Exemplo n.º 6
0
 def createResource(self):
     page = PublicAthenaLivePage(self.store, ValidatingSignupForm(self),
                                 IStaticShellContent(self.store, None))
     page.needsSecure = True
     return page
Exemplo n.º 7
0
 def createPage(self, forUser):
     return PublicAthenaLivePage(self.siteStore,
                                 TestFragment(),
                                 forUser=forUser)