Just check if the file exists on the filesystem.

On Thursday, October 5, 2017 at 6:21:23 PM UTC-4, Alex Glaros wrote:
>
> I have a bookmark on every page that appears via layout.html {{include 
> 'default/menu_favorites.html'}} that reads a small table
>
> If am testing a new function that does not yet have a view, it raises this 
> error: <type 'exceptions.AttributeError'> 'Rows' object has no attribute 
> 'fields'
>
> is there any conditional test to detect if there is a view yet or not?
>
> not that important but would like to prevent this appearing if anyone 
> besides myself is programming on the app. As soon as the view is created, 
> the error goes away.
>
> thanks
>
> Alex Glaros
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to