def submit_url(self): if self.is_logged_in(): return 'castle_logout' else: return util.login_URL(self.context)
def __call__(self): return util.login_URL(self.context)