예제 #1
0
 def __get__(self, oself, type):
     """
     Get the document loader for C{self.fragmentName}.
     """
     resolver = ITemplateNameResolver(
         getattr(oself, self.resolverAttribute))
     return resolver.getDocFactory(self.fragmentName)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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
     ])