def createResource(self): return PublicAthenaLivePage(self.store, getLoader("signup"), IStaticShellContent(self.store, None), None, iface=ITicketIssuer, rootObject=self)
def __init__(self, store, segments=(), arguments=None, templateResolver=None): """ Create a login page. @param store: a site store containing a L{WebSite}. @type store: L{axiom.store.Store}. @param segments: a list of strings. For example, if you hit /login/private/stuff, you want to log in to /private/stuff, and the resulting LoginPage will have the segments of ['private', 'stuff'] @param arguments: A dictionary mapping query argument names to lists of values for those arguments (see IRequest.args). @param templateResolver: a template resolver instance that will return the appropriate doc factory. """ if templateResolver is None: templateResolver = ixmantissa.ITemplateNameResolver(store) PublicPage.__init__(self, None, store, templateResolver.getDocFactory('login'), IStaticShellContent(store, None), None, templateResolver) self.segments = segments if arguments is None: arguments = {} self.arguments = arguments
def getPageComponents(self): navigation = getTabs(self.store.powerupsFor(INavigableElement)) staticShellContent = IStaticShellContent(self.store, None) return _PageComponents(navigation, self.searchAggregator, staticShellContent, self.store.findFirst(PreferenceAggregator), getInstalledThemes(self.store.parent))
def __init__(self, original): for resource, domain in userbase.getAccountNames(original.installedOn): username = '******' % (resource, domain) break else: username = None PublicPage.__init__(self, original, original.store.parent, getLoader('initialize'), IStaticShellContent(original.installedOn, None), username)
def createResource(self): page = PublicAthenaLivePage(self.store, ValidatingSignupForm(self), IStaticShellContent(self.store, None)) page.needsSecure = True return page
def getResource(self): return PublicIndexPage(self, IStaticShellContent(self.store, None))