#9115: Check for presence of os.unlink in temp.py ---------------------------------------+------------------------------------ Reporter: michaelhart | Owner: nobody Status: new | Milestone: Component: Core framework | Version: SVN Keywords: temp.py windows os.unlink | Stage: Unreviewed Has_patch: 0 | ---------------------------------------+------------------------------------ Currently, loading Django in Google App Engine on Windows fails with an !AttributeError on line 34 of django/core/files/temp.py because os.unlink does not exist.
I posted a ticket for it on one of the Google App Engine example apps (http://code.google.com/p/rietveld/issues/detail?id=44), and Guido suggested that I post a ticket here as you guys may want to run on a non- writable filesystem anyway. I've attached a patch that checks if os.unlink is available before creating the Windows !TemporaryFile hack. Note I'm a Python newbie so it might not be the right way to go about it, but you'll get the idea. Also, FWIW, the bug reporting and patch submission guideline links in the "Create New Ticket" instructions don't seem to work. -- Ticket URL: <http://code.djangoproject.com/ticket/9115> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
