Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Les Orchard 5632a117b3 Moving / renaming some utils from __init__.py to utils.py 2011-07-31 13:29:21 -04:00
Les Orchard 5ff33b1b4a Enforcing edit permission in badge editing pages 2011-07-30 00:48:50 -04:00
Les Orchard d172687369 TODO 2011-07-30 00:47:48 -04:00
Les Orchard cbd4741573 Doco tweak 2011-07-30 00:47:34 -04:00
Les Orchard 00564ec24c Badges can have prerequisite badges; auto-award on set completion
- Added prerequisites ManyToManyField on Badge model
- check_prerequisites() method on Badge
- award_to() method calls check_prerequisites() on all Badges pointing
  to the Badge just awarded as a prerequisite
- badger.utils.update_badges() accepts 'prequisites' as a key in
  initialization data, a list of slugs or Badge instances
2011-07-29 21:40:49 -04:00
Les Orchard eaeb9f27b0 TODO 2011-07-29 21:38:12 -04:00
Les Orchard 03ba8b908a TODO 2011-07-29 17:16:41 -04:00
Les Orchard d6a50a890b A badge can be a unique award 2011-07-29 17:15:42 -04:00
Les Orchard 40c0d9563a More work on badge progress, conditional awards, meta-badges
- added percentage-based progress with auto-award on 100%
- playing with set-based progress, auto-award on badge set completion
- tweaks to JSONField (is this a good idea?)
- implemented signals for badge award, nominations
- simplified convenience API a bit more
2011-07-29 17:02:59 -04:00
Les Orchard 8afadc1e8e TODO 2011-07-29 16:58:18 -04:00
Les Orchard 979c346094 Delete progress record on award of a badge
- Checking the progress counter more in the test
- Progress record deleted on award
- Getting a fresh progress record doesn't result in a save, right away.
  So, checking a recently deleted progress counter doesn't result in a
  new zero counter row.
2011-07-29 01:07:16 -04:00
Les Orchard f4c1a2404f Initial stab at tracking badge progress
- Progress model with a counter to increment & decrement
- Progress also has a JSONField for arbitrary note-keeping
- Added some convenience API methods to __init__.py
2011-07-29 00:54:04 -04:00
Les Orchard ea6164d013 In progress work on tracking status for conditional badge award 2011-07-28 01:17:35 -04:00
Les Orchard 7018d8c0b0 TODO 2011-07-28 01:16:52 -04:00
Les Orchard e806109f1e update badges from code, misc test rearrangements
- Trying out badge creation in code
- Switching titles of some badges used in other tests, because the
  from-fixture and from-code badges get created for all of them.
- misc pep8 reformattings
2011-07-28 00:44:33 -04:00
Les Orchard effce34a84 TODO 2011-07-28 00:39:33 -04:00
Les Orchard adf35f886b Initial support for updating badges from syncdb 2011-07-27 23:26:29 -04:00
Les Orchard 728f6cd3a0 TODO tweaks 2011-07-27 23:25:42 -04:00
Les Orchard c6356e46d7 TODO tweaks 2011-07-25 00:58:38 -04:00
Les Orchard cf93a82e04 First attempt at awarding a badge with a signal
- update_badges management command to load badges from per-app fixture
  and programmatically
- badger.autodiscover to register signals for badge awards
- creator on an award can be Null, for system-awarded badges
- more fleshed-out badger_test app
2011-07-25 00:55:27 -04:00
Les Orchard 96d5ebf555 TODO 2011-07-22 00:41:33 -04:00
Les Orchard bdee693355 TODO items 2011-07-22 00:31:37 -04:00
Les Orchard 646ec8a64f Progress on badge editing.
- skeleton admins for models
- detail page, edit page
- body IDs on pages
2011-07-22 00:23:12 -04:00
Les Orchard 1edb411057 more pep8 tweaks 2011-07-21 22:20:11 -04:00
Les Orchard 2b99b6ac74 Splitting badger app out of badger2 project 2011-07-21 21:53:13 -04:00
Les Orchard 446733fb72 first commit 2011-07-21 21:39:26 -04:00