Eevee
b8dfb06ccc
Add the 1% held items in B/W.
2011-03-28 21:59:23 -07:00
Eevee
f6a36a2654
We finally know what the last B/W move flag is.
2011-03-28 21:39:42 -07:00
Eevee
1f29c2ce17
Recent changes to Bide and Feint. #570
2011-03-28 21:26:44 -07:00
Eevee
e63892bcde
Fix short effects for Grudge, Glaciate. #570
2011-03-28 19:55:53 -07:00
Eevee
956189d4a7
Fix ancient bug with Pursuit description. #569
2011-03-28 19:36:05 -07:00
Eevee
5b7b15c7ce
Mud/Water Sport last until the user leaves battle. #568
...
Not until the end of battle.
2011-03-28 19:30:10 -07:00
Eevee
125d4e2d2f
Metal Burst returns 1.5× damage, not 2×. #567
2011-03-28 19:25:29 -07:00
Eevee
4daa6ab0c3
Merge branch 'schema-sanity'
2011-03-28 19:14:24 -07:00
Eevee
f24702b7a9
language_id -> local_language_id
2011-03-28 19:12:30 -07:00
Eevee
93a85f020f
Remove back_populates, which doesn't seem to work.
2011-03-24 20:44:08 -07:00
Eevee
027fd6236f
Remove a bunch of imports from tables.py.
2011-03-24 20:02:00 -07:00
Eevee
d986355bf3
Rename internal_id to game_index.
2011-03-24 19:37:12 -07:00
Eevee
3a6fe6d539
Rename *_texts tables to *_names.
2011-03-24 18:46:46 -07:00
Eevee
a3e0e4912b
Whoops; preserve column order.
2011-03-24 17:17:24 -07:00
Eevee
ef1db6029d
Remove LanguageSpecific.
2011-03-23 22:41:02 -07:00
Eevee
8ad84e4032
Removed ProseColumn and TextColumn. Huzzah.
2011-03-23 22:17:02 -07:00
Eevee
68e14e663e
Started switching to create_translation_table.
...
- Moved the function to its own file.
- Implemented the session-based default language switching.
- Migrated a couple tables.
2011-03-21 22:32:52 -07:00
Eevee
6a9172151a
Sigh! Remove support for strings as keys; use Language objects.
2011-03-21 17:54:28 -07:00
Eevee
1da816af4b
New i18n schema thing impl, and fixed the new tests to match.
2011-03-20 01:06:45 -07:00
Eevee
542aa670ae
Added a test for the i18n dynamic table generation.
...
It fails spectacularly, but hopefully documents what I'm ultimately
going for.
2011-03-18 18:22:18 -07:00
Eevee
4645349133
Rename some meta-schema variables for ease of debugging.
2011-03-18 17:15:34 -07:00
Eevee
9c65ab3516
Add missing effect chance to Twister. #565
2011-03-14 22:32:06 -07:00
Eevee
a417a0a9e1
Replace String* sqla stuff with association_proxy.
2011-03-14 22:24:29 -07:00
Eevee
a0f5c53193
Give every db table a __str__.
2011-03-14 20:51:31 -07:00
Eevee
b61acaff69
Tidy up relation creation for name tables.
2011-03-13 23:43:08 -07:00
Eevee
f773ef02ec
Remove OfficiallyNamed and UnofficiallyNamed.
2011-03-13 23:33:42 -07:00
Eevee
55364cd836
Merge branch 'encukou'
2011-03-13 15:51:17 -07:00
Eevee
482ca207cb
Fix some i18n schema issues when running under a Real Database™.
2011-03-13 15:45:07 -07:00
Petr Viktorin
2f222ca973
Make the string properties mutable
2011-03-13 15:43:42 -07:00
Petr Viktorin
7c039115ee
Use DefaultLangProperty for Markdown columns
2011-03-13 15:43:02 -07:00
Petr Viktorin
e5f7cd2aed
Rename StatHint.text to .message (clashed with the all-texts attribute)
2011-03-13 15:43:01 -07:00
Petr Viktorin
1053b35471
fixup! I18n for the database schema
2011-03-13 15:43:01 -07:00
Petr Viktorin
2375c3117c
Actually test :foo in test_crash_empty_prefix
2011-03-13 15:43:01 -07:00
Petr Viktorin
980ae01d10
Fix connect() without arguments
2011-03-13 15:43:01 -07:00
Petr Viktorin
bc2707f6c4
Support filtering by strings (Pokemon.name, Pokemon.names['fr'], etc.)
2011-03-13 15:43:01 -07:00
Petr Viktorin
414a272c21
Add descriptions to new tables
2011-03-13 15:43:00 -07:00
Petr Viktorin
d0d4d1aa96
Use a class + mapper instead of dynamic declarative magic
2011-03-13 15:43:00 -07:00
Petr Viktorin
b3c7689d41
Replace all_tables by table_classes; get rid of globals()
2011-03-13 15:43:00 -07:00
Petr Viktorin
bbfaa73f80
Fix up the migration
...
The script got some things wrong; fix those up manually.
Also remove the migration script, as it won't work any more.
2011-03-13 15:41:23 -07:00
Petr Viktorin
a551feb785
Move English texts to language-specific tables
...
(See parent commit for rebasing instructions)
2011-03-13 15:41:22 -07:00
Eevee
625aa19fbd
Preserve the order of TextColumns and ProseColumns.
2011-03-13 15:40:46 -07:00
Petr Viktorin
c40324652e
Add migration script to move English texts to language-specific tables
...
The next commit will apply this script, changing nearly all of the CSV files.
When your rebases stops there, run::
git reset --hard
python scripts/migration-i18n.py
git add -A pokedex/data/csv/
git rebase --continue
2011-03-13 15:10:11 -07:00
Petr Viktorin
b962a1b4fe
Make lookup index respect the moved names
2011-03-13 15:10:11 -07:00
Petr Viktorin
1a43df032a
Add data to language table
...
Add English as a language
Add columns:
identifier: same as iso639 except 'roomaji' for Roomaji
order: English first, then Japanese and Roomaji, others undefined
official: True for all the languages so far
2011-03-13 15:10:11 -07:00
Petr Viktorin
30faa46ab6
Multi-language markdown move properties
...
Singular property name for English text
Plural property name for dict of texts keyed by language
2011-03-13 15:10:11 -07:00
Petr Viktorin
d813e24b25
I18n for the database schema
...
- Helper base class: Named
Subclasses: OfficiallyNamed, UnofficiallyNamed
for these, a 'name' column is created in the appropriate text table
also, they get automatic __str__/__repr__/__unicode__
- Faux columns: ProseColumn, TextColumn
these become columns in the appropriate text tables
these text tables (*_text, *_prose) are auto-generated at the end
the main table gets one property (singular name) that gets the English text
and one (plural name) with dict of texts keyed by language
- Every named table gets 'identifier'
- Languages compare & hash equal to their identifiers
- Existing foreign-name tables replaced by the autogenerated ones
- order_by: names replaced by identifiers
- New function: all_tables(), yields all tables
- Markdown move properties removed for now
- Schema test suite
2011-03-13 15:10:10 -07:00
Lynn "Zhorken" Vaughan
59f1e835f4
Some ability changes/fixes. #561
2011-03-12 21:58:36 -05:00
Brigit Lemanski
c68de245a8
Fixing short desc for Acid Spray.
2011-03-12 18:49:12 -08:00
Eevee
acb156d28d
Give calculated_stat and calculated_hp the same signature.
2011-03-10 22:12:03 -08:00
Lynn "Zhorken" Vaughan
65d80fc2e8
Add Spanish B/W names.
2011-03-10 12:02:55 -05:00