niedziela, 31 stycznia 2021 o 18:02:41 UTC+1 mauri...@gmail.com napisaĆ(a):
> If its about QR codes, these are what I mean't: > http://www.web2pyslices.com/slice/show/1462/qr-code-builder-with-web2py > https://github.com/minlaxz/python-qr > https://github.com/laconic75/QR-Inventory > OK, thank You, but I will use this one for this purpose: https://github.com/christiancoleman/gooQR and regarding form: It was very long time I wasn't using web2py (but I have still systems working on it - very old version... :/), so I didn't go with simple solution...: def register(): response.view = 'register.html' form=auth.register() if form.accepts(request,session): response.flash="form accepted" redirect(URL('qrcode')) return dict(form=form) def qrcode(): response.view = 'qrcode.html' response.flash = 'you clicked on register' return dict(message="you clicked on register") I have a question about response.view - when I comment this out, I get in browser: invalid view (default/register.html) why view isn't pick based on controller's function name now ? Regards brushek -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/5604dd46-dec8-4a6e-9c9f-b03b87ff5b6an%40googlegroups.com.