Commit graph

747 commits

Author SHA1 Message Date
Andrew Ekstedt
f4c51c845d Sort relationship docs alphabetically.
Creation order wasn't that big of a win and didn't play nicely with
backrefs.
2012-06-08 23:31:35 -07:00
Andrew Ekstedt
527b3ce056 Remove _add_relationships.
Back out all the _add_relationships functions. This leaves tables.py
almost unchanged from before their addition, except for some added
documentation.
2012-06-08 23:31:35 -07:00
Andrew Ekstedt
e07e64dfa5 Display primary keys in table docs. 2012-06-08 23:31:35 -07:00
Andrew Ekstedt
739c6fdd7c Sort relationships by creation order.
Also:

- Split association proxies into their own section.

- Remove relationship_info.
2012-06-08 23:31:35 -07:00
Andrew Ekstedt
04b941755a Introspect relationships directly.
Possibly more fragile, but this way we don't need _set_relationships.

SQLAlchemy version bump for AssociationProxy.remote_attr.
2012-06-08 23:29:44 -07:00
Petr Viktorin
391fd1c1ac Support association proxies 2012-02-12 23:43:14 +01:00
Petr Viktorin
ef3fb2f536 Move relationships to _add_relationships calls: Pokemon 2012-02-12 23:43:14 +01:00
Petr Viktorin
949ff883ea Autodoc for backrefs 2012-02-12 22:45:10 +01:00
Petr Viktorin
34481e9a11 Add Sphinx documentation 2012-02-12 22:45:01 +01:00
Petr Viktorin
0cb1f8a1b8 Make the table schema a bit more introspectable
This solves two problems: first, the relationships are now defined in
the class they apply to, rather than in a separate section of the module,
and second, their metadata -- both creation arguments and extra info such
as `description` (or, later, possibly, info for API properties) -- is
stored.
2012-02-12 16:19:09 +01:00
Petr Viktorin
96499fae30 Allow ordering and filtering on translated texts, e.g. Move.name 2012-02-12 09:50:04 +01:00
Petr Viktorin
50b08d94d9 Make a few __get__ methods work properly on their class
Automatic doc generation requires this.
2012-02-11 22:54:46 +01:00
Lynn "Zhorken" Vaughan
d3fa2891c8 Mention a couple of oddities with Struggle's recoil. #13 2012-02-11 12:17:36 -05:00
Lynn "Zhorken" Vaughan
7b2246d854 Little fixes for Magnitude and Crush Grip/Wring Out. #39 #40 2012-02-11 12:02:47 -05:00
Lynn "Zhorken" Vaughan
677cd8f19e Mark Zen Darmanitan as battle-only. 2012-02-10 16:33:05 -05:00
Eevee
897c6f1de1 Merge pull request #64 from veekun/zhorken
Fixes some move data issues and form bugs.
2012-02-05 21:29:22 -08:00
Eevee
6e3238b0d0 Merge pull request #62 from encukou/xd-tutor
Colosseum/XD fixes
2012-02-04 16:50:52 -08:00
Petr Viktorin
e15b1a257a Put XD between Colosseum and FRLG. It is related to Colosseum more.
Also it should collapse better in the spline-pokedex tables.
2012-01-30 21:22:42 +01:00
Petr Viktorin
d4b7a29182 XD fix: Add order for the level-up moves 2012-01-30 20:25:13 +01:00
Petr Viktorin
73cf9c036c Use VersionGroup.order in a bunch of relationships 2012-01-30 18:17:00 +01:00
Petr Viktorin
1134415e13 Introduce an order column for version groups
Some code in spline-pokedex orders by `id`, which has worse consequences
than it may seem (e.g. instead of defaulting to most recent games, the
comparifier defaults to XD). This is the first step to fixing that.
2012-01-30 14:09:05 +01:00
Lynn "Zhorken" Vaughan
a6f9b47ae4 Copy the red Basculin's egg moves to the blue one. #575 2012-01-24 00:25:06 -05:00
Lynn "Zhorken" Vaughan
eb7c26b621 Add Keldeo's Secret Sword tutor. 2012-01-24 00:24:02 -05:00
Lynn "Zhorken" Vaughan
111394315e Fix the indiscriminate display of Pokémon with their form names. 2012-01-24 00:24:02 -05:00
Lynn "Zhorken" Vaughan
871f9aa58b Add French Pokémon form names. 2012-01-24 00:23:53 -05:00
Lynn "Zhorken" Vaughan
1309659ec3 Update the move changelog after that rerip.
I actually reripped all the D/P data, too, and compared them myself just
to be sure, but those four were all there was.  (The other move from the
last commit was Poison Gas—we had its old accuracy right, remember.)
2012-01-19 03:00:36 -05:00
Lynn "Zhorken" Vaughan
cb5276773b Rerip B/W power, accuracy, and PP for all moves. 2012-01-19 01:52:17 -05:00
Petr Viktorin
3607b9b3e1 Let MoveEffectProperty be None if the move_effect is None
MoveChangelog.move_effect is None if there is no effect change.
Its .effect should just be None as well.
2011-11-14 21:17:12 +02:00
Petr Viktorin
fd402d74e6 Move effect link fixes 2011-11-14 21:15:52 +02:00
Eevee
936f8f87e7 Merge pull request #1 from encukou/xd-tutor
XD/Colosseum tutors
2011-11-01 20:40:04 -07:00
Petr Viktorin
edd7efed29 Add XD tutor moves from ete's list, #588, and XD/Colosseum level-up moves. 2011-10-29 17:01:07 +03:00
Petr Viktorin
144ff0a58e Add Colosseum and XD as versions. Prepare to add XD tutors from ete's list. #588 2011-10-29 17:01:06 +03:00
Petr Viktorin
9a2f5093d8 Make edit-csv-as-yaml a bit more usable
- editing multiple files
- adding/reordering columns
- leaves out empty values
- int values don't need quotes & are written without them
2011-10-29 17:01:06 +03:00
Lynn "Zhorken" Vaughan
6f8a0bdc2e Pirouette Meloetta is battle only; Overcast Cherrim is not. 2011-10-12 20:34:25 -04:00
Lynn "Zhorken" Vaughan
8ae79f8898 Tweak a couple Pokémon form names. 2011-10-12 20:24:32 -04:00
Lynn "Zhorken" Vaughan
44569700ae Switch the Magic Coat and Role Play HG/SS tutor lists.
We apparently had them reversed somehow.
2011-10-01 01:55:09 -04:00
Petr Viktorin
b96b5aa956 Fix Magnitude percentages. #555 2011-09-24 18:56:12 +03:00
Petr Viktorin
28c39263df Load/dump dance 2011-09-22 16:39:40 +03:00
Petr Viktorin
ebab8c6e43 Try importing markdown utilities from markdown.util
etree and AtomicString will be moved in python-markdown 2.1

See commit https://github.com/waylan/Python-Markdown/commit/89a4f3d0829a7 :
    Cleaned up markdown namespace. This may be a backward incompatible
    change for some extensions. They should be importing from
    markdown.util
2011-09-22 00:51:59 +03:00
Petr Viktorin
719c32de0b Make MarkdownString.as_html() accept an extension object, not class
No reason to instantiate every time as_html's called, is there?

Also, sessions use a markdown_extension attribute instead of
markdown_extension_class. The latter is only used to set the former when
the session is created (unless another markdown_extension_class is given,
of course).
2011-09-22 00:51:59 +03:00
Petr Viktorin
928eaca4a4 Make bad links in Markdown not fail
Links such as []{pokemon:mewthree} can come from users, so they should not
crash the parser.
So, when an object is not found (or more than one is found), call
identifier_url() directly, instead of failing to get the object for
object_url(). Essentially, treat the link as having an unknown category
(like mechanic:, currently).

The test that check the pokédex descriptions updated so that only
links to known objects and "mechanic:" are allowed.
2011-09-22 00:51:59 +03:00
Petr Viktorin
cdac374eed Allow links to Pokémon forms in Markdown. Fixes #465
Linked-to objects aren't required to have identifiers now, so object_url()
in custom extensions might need to be changed.
The one in the test did, for example.
2011-09-22 00:51:59 +03:00
Petr Viktorin
d8d32a0176 Use identifiers in Pokemon.stat 2011-09-22 00:51:59 +03:00
Petr Viktorin
2a73d371f7 Typo fix in Light Screen effect 2011-09-22 00:51:59 +03:00
Lynn "Zhorken" Vaughan
c9ae5f9688 A bit of ability prose cleanup related to the last commit. #561 2011-09-21 17:38:56 -04:00
Lynn "Zhorken" Vaughan
aa0119f4c6 A bunch of improvements to ability effects and changelogs. #561 2011-09-21 16:28:46 -04:00
Lynn "Zhorken" Vaughan
36dfe7555e Fix curly endquotes/apostrophes in B/W flavour text. 2011-09-21 16:28:46 -04:00
Eevee
a11261e529 Fix a stupid closure-in-loop problem. #654 #655 2011-09-11 17:27:58 -07:00
Eevee
eb6cae4bf3 Fix whoosh result sorting.
Now results are sorted by is-this-your-language (times levenshtein
distance, if appropriate), then by rough class of result (Pokémon, then
moves, then abilities, etc.) and finally by name.

This fixes a couple issues:

- If both a foreign name and a local name matched a wildcard lookup,
  you'll see the local name.  Before, you'd see whichever happened to be
  first alphabetically.

- Wildcard results are more likely to have useful stuff at the top,
  rather than being dominated by foreign junk and names of obscure
  locations.

This also updates our usage of the whoosh API, which was old and busted
as of 2.0 or so.
2011-09-09 22:31:38 -07:00
Eevee
514ac79216 Improve multilingual support in lookup.
Language identifiers are stored and retrieved, rather than English
names.

Language weighting biases towards the current language, rather than to
English.

Language is no longer considered nullable to indicate English.

Duplicate names in other languages are no longer omitted from the index.
2011-09-08 20:58:29 -07:00