Bug #4795

Exception thrown, 'file' object has no attribute 'reset' during rstimport

Added by Vangelis Koukis over 10 years ago. Updated about 10 years ago.

Status:Closed Start date:12/20/2013
Priority:Medium Due date:
Assignee:Kostas Papadimitriou % Done:

0%

Category:cms Spent time: -
Target version:0.15

Description

During rstimport to the CMS:

  File "/usr/lib/pymodules/python2.6/django/forms/forms.py", line 121, in is_valid
    return self.is_bound and not bool(self.errors)

  File "/usr/lib/pymodules/python2.6/django/forms/forms.py", line 112, in _get_errors
    self.full_clean()

  File "/usr/lib/pymodules/python2.6/django/forms/forms.py", line 267, in full_clean
    self._clean_fields()

  File "/usr/lib/pymodules/python2.6/django/forms/forms.py", line 287, in _clean_fields
    value = getattr(self, 'clean_%s' % name)()

  File "/usr/lib/python2.6/dist-packages/cloudcms/forms.py", line 99, in clean_import_file
    tmpfile = self.get_tmp_file(f)

  File "/usr/lib/python2.6/dist-packages/cloudcms/forms.py", line 91, in get_tmp_file
    f.file.reset()

  File "/usr/lib/python2.6/tempfile.py", line 376, in __getattr__
    a = getattr(file, name)

AttributeError: 'file' object has no attribute 'reset'

History

#1 Updated by Kostas Papadimitriou about 10 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF