[damned-lies/django-1.1] The ContentFile API was changed in Django 1.1
- From: Stéphane Raimbault <stephaner src gnome org>
- To: svn-commits-list gnome org
- Subject: [damned-lies/django-1.1] The ContentFile API was changed in Django 1.1
- Date: Sun, 10 May 2009 11:22:33 -0400 (EDT)
commit d3df1faa7032778c2987ac27c1ff929d937b8f71
Author: Stéphane Raimbault <stephane raimbault gmail com>
Date: Sun May 10 17:00:17 2009 +0200
The ContentFile API was changed in Django 1.1
Previously, I wasn't possible to use a public attribute to set the filename.
svn diff -r 10716:10717 base.py
---
vertimus/tests/__init__.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/vertimus/tests/__init__.py b/vertimus/tests/__init__.py
index a118be3..0e60dc5 100644
--- a/vertimus/tests/__init__.py
+++ b/vertimus/tests/__init__.py
@@ -287,7 +287,7 @@ class VertimusTest(TestCase):
state.save()
test_file = ContentFile('test content')
- test_file._name = 'mytestfile.po'
+ test_file.name = 'mytestfile.po'
action = ActionAbstract.new_by_name('UT')
new_state = state.apply_action(action, self.pt, "Done by translator.", test_file)
@@ -306,7 +306,7 @@ class VertimusTest(TestCase):
state.save()
test_file = ContentFile('test content')
- test_file._name = 'mytestfile.po'
+ test_file.name = 'mytestfile.po'
action = ActionAbstract.new_by_name('UP')
new_state = state.apply_action(action, self.pr, "Done.", test_file)
@@ -334,7 +334,7 @@ class VertimusTest(TestCase):
# Create a new file
test_file = ContentFile('test content')
- test_file._name = 'mytestfile.po'
+ test_file.name = 'mytestfile.po'
action = ActionAbstract.new_by_name('UP')
state = state.apply_action(action, self.pr, "Done.", test_file)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]