> For a 404 you should still be able to just raise the exception, for other > response you could create your own Exception like ResponseIsReady and just > raise it and have __init__ return as soon as it's done.
I though about this, but isn't raising an exception to provoke not really an exceptional situation an elegant solution? Isn't it a bit a hack? I mean - from pragmatic point of view it's cool, cause it will just work fine. But it causes some strange unease in me.. -- Filip Gruszczyński --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---