Christopher Allan Webber
1eb0bd71c5
Committing present MediaGoblin translations before pushing extracted messages
2012-02-05 16:21:14 -06:00
Elrond
ccca39f1d8
Fix EXIF based image rotation test
...
The test checks for a pixel value after rotation (good
idea!). But the value seems to be a bit different on some
platforms, so use a list of seen values.
Not the perfect solution, but it works.
2012-02-04 21:37:05 +01:00
Joar Wandborg
64da09e86a
ASCII media support - Fixes
...
- Added debug logging in
- mediagoblin.processing
- mediagoblin.media_types.ascii.processing
- mediagoblin.media_types.ascii.asciitoimage
2012-02-04 20:51:05 +01:00
Joar Wandborg
010d28b4f0
ASCII art support - Fixes
...
- Improved(?) character set detection, chardet will not win
over UTF-8 unless it is >= 90% sure.
- Changed the unicode.txt to ascii-portable.txt, since there is
no unicode in the file.
- etc.
2012-02-02 22:29:40 +01:00
Joar Wandborg
3f1dc64ed1
Added extensions 'asc' and 'nfo' to ASCII media type
2012-02-02 22:29:39 +01:00
Christopher Allan Webber
cf29e8a824
It's 2012 all up in here
2012-02-02 09:44:13 -06:00
Christopher Allan Webber
95ff15d66e
Updating deployment guide so that it can handle the current virtualenv site-packages changes
...
Now it should try using --system-site-packages and if that
fails (older version) it tries it without the argument.
2012-02-02 09:29:25 -06:00
Christopher Allan Webber
7f3ec607a3
Explained why migration #1 commented out.
2012-01-29 22:19:53 -06:00
Christopher Allan Webber
78d17b8055
Excepting that migration 1 doesn't work(!), sqlalchemy migration branch working
...
The reason migration 1 doesn't work, and is commented out, is because
of sqlalchemy-migrate not handling certain constraints while dropping
binary sqlite columns right. See also:
http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143&thanks=143&ts=1327882242
2012-01-29 22:19:03 -06:00
Christopher Allan Webber
adf5436373
Update the string outputs to match our tests: newlines, ...->:, etc.
2012-01-29 21:45:05 -06:00
Christopher Allan Webber
e920b96859
db_conn.engine -> db_conn.bind
2012-01-29 17:28:25 -06:00
Christopher Allan Webber
bff7098a6c
migrations_to_run here a list, so no reason to call it
2012-01-29 17:26:23 -06:00
Christopher Allan Webber
be1077ac44
Migration manager's current migration should be 3, not 7, after running all migrations!
2012-01-29 17:23:27 -06:00
Christopher Allan Webber
505c0db119
Fixed the descriptions for the necroplex!
2012-01-29 17:22:29 -06:00
Christopher Allan Webber
c7fa585bff
assert column type from Unicode -> VARCHAR. SQLAlchemy reflection only so smart ;)
2012-01-29 17:21:44 -06:00
Christopher Allan Webber
ecb4cc8990
printer = CollectingPrinter -> printer = CollectingPrinter()
2012-01-29 17:11:41 -06:00
Christopher Allan Webber
245e6d83a6
CollectingPrinter is a class, not a function!
2012-01-29 17:10:18 -06:00
Christopher Allan Webber
9303d47df0
self.latest_migration now a property, so we shouldn't __call__ it!
2012-01-29 17:08:38 -06:00
Christopher Allan Webber
f98be6a65b
For clarity, self.database -> self.session.
...
Actually, I'm not even sure *that* is ideal! But better than what we
had...
2012-01-29 17:07:47 -06:00
Christopher Allan Webber
ef8591fdd0
Yet *another* self.database -> self.database.bind fix!
2012-01-29 17:06:19 -06:00
Christopher Allan Webber
396f39c3e9
Fix database_current_version for when self.migration_data is None.
2012-01-29 17:05:16 -06:00
Christopher Allan Webber
16d4dce9e9
another db -> db.bind fix.
2012-01-29 17:00:39 -06:00
Christopher Allan Webber
f3791a9490
A few basic fixes to sql/util.py
...
- MigrationRecord to MigrationData, again
- If the table doesn't exist, return None for database_current_migration
- database.engine -> database.bind
2012-01-29 16:58:58 -06:00
Christopher Allan Webber
0f3526c601
magical_powers relationship set on wrong table, fixed
2012-01-29 16:48:44 -06:00
Christopher Allan Webber
e8ba2223fa
Also switch database_current_migration to a property
2012-01-29 16:40:46 -06:00
Christopher Allan Webber
a5e03db6c2
Migration records are dicts, not lists. Fix SET1_MIGATIONS!
2012-01-29 16:39:08 -06:00
Christopher Allan Webber
47616ece50
Make latest_migration a property
2012-01-29 16:36:33 -06:00
Christopher Allan Webber
9a18573190
Import MigrationData, not MigrationRecord
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
e8e52b3a0b
test_set1_to_set3() now has appropriate amount of code, even if it doesn't run :)
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
caed154af0
Fixing some obvious errors caught by pyflakes
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
5de0f4daf5
More stuff even yet per sql migration stuff! And still not ready!
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
690b51faa7
Closer to the end of this migration test...
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
94eff10deb
unicode stuff and more bits on the actual migration method
2012-01-29 16:33:47 -06:00
Christopher Allan Webber
40f0996ab9
A ton more work on the SQL migration unit tests...
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
09e2c48701
Wrote up some scaffolding for the actual tests
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
dc3db4681f
Insert migration objects round 3
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
780fdd7bd6
import changeset into sql models
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
d6cdf64b4f
Wrote some (semi-silly) descriptions of each migration
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
356654deb8
Docstrings for stage 2 migrations
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
d74a9483de
Theoretical full set of migration2 objects to insert for testing
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
64d280647c
Insert migration1 objects. Also, Level1 id from Integer->Unicode
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
248b5061ec
All theoretical migrations written!
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
473e06053c
binding migration metadata to engine, and level_exits_new_table should now work
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
89694d6d69
More test migration work. Closing to working migrations for set 2...
...
Also, this file is written in 2012, correct that ;)
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
129c36be6f
Might as well call it "set2 migrations"
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
0f10058fd3
A theoretical set of models to migrate about with, plus one migration ;)
2012-01-29 16:33:46 -06:00
Christopher Allan Webber
cfbbdcc5ad
Another db->db.engine because I'm bad at things ;)
...
Thanks again Elrond.
2012-01-29 16:33:45 -06:00
Christopher Allan Webber
3f2c6f96c1
No need for self here (thanks again Elrond ;))
2012-01-29 16:33:45 -06:00
Christopher Allan Webber
dc5da0f891
Another MigrationManager fix.
...
self.database -> self.database.engine (thanks again Elrond for the catch)
2012-01-29 16:33:45 -06:00
Christopher Allan Webber
bf81382896
Make name the primary key in migration records
2012-01-29 16:33:45 -06:00