def get(self): login_url = (self._user_session.is_logged_in() == False) and users.create_login_url(dest_url = 'http://localhost:8080/signup') or None if self._user_session.is_logged_in() and self._user_session.is_registered(): self.redirect('/') else: return render_template(self, 'signup.html', { 'is_logged_in': self._user_session.is_logged_in(), 'is_registered': self._user_session.is_registered(), 'login_url': login_url })
def get(self, invoice_form=None, invoice_item_forms=[InvoiceItemForm(index=1)]): if invoice_form == None: # Initialize the Invoice form clients = self._client_manager.listify_clients() currencies = CurrencyManager.listify_currencies() languages = LanguageManager.listify_languages() invoice_form = InvoiceForm(clients, currencies, languages) return render_template( self, "invoice_create.html", {"invoice_form": invoice_form, "invoice_item_forms": invoice_item_forms} )
def get(self): if not render_template(self, self.request.path): render_template(self)
def get(self): if not render_template(self, "home.html", {}): render_template(self)
def get(self): return render_template(self, "client_list.html")
def get(self, form=ClientForm()): return render_template(self, "client_add.html", {"form": form})
def get(self): return render_template(self, "invoice_list.html")