def __get__(self, oself, type): """ Get the document loader for C{self.fragmentName}. """ resolver = ITemplateNameResolver( getattr(oself, self.resolverAttribute)) return resolver.getDocFactory(self.fragmentName)
def __init__(self, store, templateResolver=None): if templateResolver is None: templateResolver = ITemplateNameResolver(store) PublicPage.__init__(self, None, store, templateResolver.getDocFactory('reset'), None, None, templateResolver) self.store = store self.loginSystem = store.findUnique(userbase.LoginSystem, default=None)
def __init__(self, uis): self.userInfoSignup = uis self.templateResolver = ITemplateNameResolver(uis.store) super(ValidatingSignupForm, self).__init__(uis.createUser, [ liveform.Parameter(pname, liveform.TEXT_INPUT, unicode) for pname in self._parameterNames ])