[damned-lies] The ContentFile API was changed in Django 1.1
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [damned-lies] The ContentFile API was changed in Django 1.1
- Date: Thu, 6 Aug 2009 12:19:59 +0000 (UTC)
commit 2efa3c3e4f694a9b1d3c44e9b0750d5e60d3ff1b
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 f20011c..fe261cd 100644
--- a/vertimus/tests/__init__.py
+++ b/vertimus/tests/__init__.py
@@ -244,7 +244,7 @@ class VertimusTest(TeamTest):
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)
@@ -263,7 +263,7 @@ class VertimusTest(TeamTest):
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)
@@ -291,7 +291,7 @@ class VertimusTest(TeamTest):
# 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]