mary wrote:
> and i got this error
>  'str' object has no attribute 'write'
...
>     output = ', '.join([m.menu_text for m in latest_menu_list])
>     output.write(output)

In the first line there, you're setting "output" (which used to be a
file object) to a string, and then in the next line you're trying to
call the "write" method again (which would work if it were still a file
object, but it's not anymore).

Do you instead mean this:

output.write(', '.join([m.menu_text for m in latest_menu_list]))

or even:

menulist = ', '.join([m.menu_text for m in latest_menu_list])
output.write(menulist)

Either of those two should work.


-johnnnnnnnn


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to