Error page with ticket in iframe -- no need for extra click each time ;)?

92 views
Skip to first unread message

Jurgis Pralgauskis

unread,
May 21, 2013, 3:40:09 AM5/21/13
to web...@googlegroups.com
Hi, 

clicking ticket link each time becomes frustrating (time wasting) [SOLVED] :)

I looked arround and tried example from http://www.dev-explorer.com/articles/full-page-iframe
you only need to escape % for sizing.



ps.: could error message be customized per app? 
then I could include in my demo (skeleton) app for students - as my students work through web interface (and I don't want to bother them too much with other issues)...

Niphlod

unread,
May 21, 2013, 3:49:50 AM5/21/13
to web...@googlegroups.com
there are routes to manage custom error pages.....
http://web2py.com/books/default/chapter/29/04#Routes-on-error

Jurgis Pralgauskis

unread,
May 21, 2013, 4:47:14 AM5/21/13
to web...@googlegroups.com
but rootes are described per web2py, not per app..?


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Qg1O99ojkdo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jurgis Pralgauskis
tel: 8-616 77613;
Don't worry, be happy and make things better ;)
http://galvosukykla.lt

Jurgis Pralgauskis

unread,
May 21, 2013, 4:48:01 AM5/21/13
to web...@googlegroups.com
I mean routes.py is in web2py root, not in app folder..

Anthony

unread,
May 21, 2013, 8:01:20 AM5/21/13
to web...@googlegroups.com
routes_onerror can specify app-specific routes.

Jurgis Pralgauskis

unread,
May 21, 2013, 10:01:41 AM5/21/13
to web...@googlegroups.com
but even app-specific routes must be specified outside app folder (in web2py root)?

Anthony

unread,
May 21, 2013, 12:06:42 PM5/21/13
to web...@googlegroups.com
You can app-specific routes in the app folder, but then you still need to specify routes_app in the root routes.py to tell web2py which apps have app-specific routes.

Anthony

Jurgis Pralgauskis

unread,
May 22, 2013, 4:01:47 AM5/22/13
to web...@googlegroups.com
Thanks, 

but still would be nicer - if defining in app would be enough (kind of KISS style)
and maybe even without need to restart web2py (if just app level changes)?

Anthony

unread,
May 22, 2013, 7:54:52 AM5/22/13
to web...@googlegroups.com
I don't know that you'd want to re-check and possibly re-load all the routes on every request in production, but I suppose it might be nice in development (like tracking changes in modules).

Anthony

Jurgis Pralgauskis

unread,
Jun 14, 2013, 1:00:36 PM6/14/13
to web...@googlegroups.com
Generally, maybe error template can be some app config, but not bound to routing?
and if it is found it is used, and if not found - default template would be used...

and maybe default template could work a bit smarter - check if admin is logged, and then display this iframe with stuff directly?

Jurgis Pralgauskis

unread,
Apr 26, 2016, 4:20:38 PM4/26/16
to web2py-users
Hi, 

maybe this is possible to do per_app now (without touching web2py core)? :)

ps.: there was also  idea  with ajax
Reply all
Reply to author
Forward
0 new messages