On Sat, Dec 15, 2012 at 1:17 AM, Lewis <[email protected]> wrote:
>
> After attempting to delete a category that still references items, the
> following error resulted:
>
> <type 'exceptions.AttributeError'> 'str' object has no attribute 'format'

str.format() was introduced in Python 2.6.

What Python version are you using?

>
> All I did today was paste the cut and paste the function from default.py
> to full.py.  Previously the function worked perfectly.
>
> A bug in web2py?  Something I did?

If this same piece of code worked before, I think it's a condition not
entered before. If you're using Python 2.6 or higher, it must work.

>
> Should I give up on multiple controllers and go back to just one file?

Definetely it is not with a web2py or multiple controllers issue. It's
a Python compiler message.

-- 



Reply via email to