#2070: [patch] Large streaming uploads --------------------------------------+------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: adrian Type: defect | Status: reopened Priority: normal | Milestone: Component: Core framework | Version: Severity: normal | Resolution: Keywords: | --------------------------------------+------------------------------------- Comment (by [Cha0S]):
to make it work on windows make the following changes in UploadStateKeeper class: {{{ class UploadStateKeeper: def __init__(self, identifier, fullength=None): self.identifier = identifier if fullength: self.state = UploadState(self.identifier, fullength) else: import pickle self.state = pickle.load(self.get_status_path(), 'r') def get_status_path(self): from tempfile import gettempdir return os.path.join(gettempdir(), self.identifier) def set_status(self, filename, addlen): self.state.set_status(filename, addlen) import pickle pickle.dump(self.state,open(self.get_status_path(), 'w')) def get_state(self): return self.state }}} -- Ticket URL: <http://code.djangoproject.com/ticket/2070> Django <http://code.djangoproject.org/> 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 django-updates@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-updates -~----------~----~----~----~------~----~------~--~---