Commit Graph

135 Commits (jk/ansible-mysql-connector)

Author SHA1 Message Date
Raymond Yee aeda28bae5 Add handling for anonymity and overriding of username in acks 2012-07-30 08:05:02 -07:00
eric 184dfedda9 added override of one month OL cache [#33377581] 2012-07-27 15:58:53 -04:00
Raymond Yee e7d2589b77 updated output script for OLA 2012-07-27 09:01:04 -07:00
eric 63a8113414 management command to fix openlibrary descriptions delivered as dicts [finish #33377581] 2012-07-26 13:39:46 -04:00
Raymond Yee 495ad32122 Updated output of A-D for OLA acks 2012-07-25 16:18:39 -07:00
Raymond Yee 7f6b1fd684 refining script to produce data for OLA
add user profile tagline to acks
2012-07-25 07:15:51 -07:00
Raymond Yee abd07ec9ae a bit more documentation on how the OLA premiums break down 2012-07-23 09:40:43 -07:00
Raymond Yee 685cc36234 Now printing out a lot of info for each supporter 2012-07-20 18:45:11 -07:00
Raymond Yee 0765e6801d Now working on breaking down specific material and acknowledgement premiums for OLA 2012-07-19 16:06:28 -07:00
Raymond Yee 172e77bb6f First draft of a management command to hlep prototype how we are going to gather premium choices for OLA 2012-07-19 11:02:39 -07:00
Raymond Yee f7e49edfcb Continuing work on collecting info for OLA pledges 2012-07-18 10:49:25 -07:00
Raymond Yee 5e3cf5d7aa Latest integration of campaign data in our own db plus the spreadsheet you can download from Amazon payments
to produce CVS file
2012-07-03 07:46:42 -07:00
Raymond Yee d3da49cf74 Stepping stone to correlating payments with Amazon data
print 1 email / line
2012-06-26 19:36:14 -07:00
Raymond Yee d37792c813 [#31605173] This plugs .../pledge/work_id where work_id tied to no campaign or a campaign that is not ACTIVE 2012-06-21 10:16:51 -07:00
Raymond Yee 3988335072 Add a command to list queued notices 2012-06-21 05:18:12 -07:00
Raymond Yee ea4fc308a0 Allowing campaign.update_status to go SUCCESSFUL w/o regard to specific deadline.
Set a bookloader test to expected failure while it might be a transient error
2012-06-20 15:48:55 -07:00
Raymond Yee d56b7a6453 First pass at a django admin command to check integrity of payments 2012-05-15 07:23:02 -07:00
Raymond Yee 33642190cb Allows set_key command to set keys that already exists 2012-05-10 08:34:45 -07:00
Raymond Yee 40a660e9b6 Add a set_key django admin command to make it easier to load keys 2012-05-09 17:17:18 -07:00
Raymond Yee b289a8cfd3 Fixing how now() is being called in random_campaigns command 2012-05-02 23:49:55 +00:00
Raymond Yee decdac290c Added transaction commitment to command 2012-03-29 15:05:26 -07:00
Raymond Yee 1b9d54037a changing deprecated celery.decorators.task to celery.task.task
added a bit of documentation to core/management/commands/random_tasks.py
2012-03-29 14:51:35 -07:00
Raymond Yee a252f9d173 [#22561067] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+
One overrides regluit.utils.localdatetime._now to do "time travel" -- useful for testing scenarios requiring time changes (such as Campaigns)
Get rid of call references to datetime.datetime.now() or utcnow() and datetime.date.today() in favor of regluit.utils.localdatetime.now() and date_today().
2012-03-09 00:45:39 +00:00
Raymond Yee 2cae997629 Add a load_gutenberg command to load Gutenberg editions 2012-02-27 13:47:11 -08:00
Raymond Yee f7220d9812 Programs and data for fighting Frankenworks 2012-02-24 12:06:24 -08:00
eric 471cb62fd2 changed core.tasks to not use models 2012-02-16 13:19:36 -05:00
Raymond Yee 5ff810049d OK...I had to encode work.title, not work 2012-02-13 15:02:14 -08:00
Raymond Yee bf07c4b7ed Encode to ascii in the printout to the recluster_singletons 2012-02-13 15:01:00 -08:00
Raymond Yee 26e8024eb2 Compute the number of works corresponding to new editions 2012-02-06 11:34:11 -08:00
Raymond Yee 3a2cece7dd Adding a bit more info to recluster_singletons but now requires a max parameter
Also adding __unicode__ method to Identifier
2012-02-06 11:26:48 -08:00
eric 4a7f82d513 decided we should recluster by language 2012-02-06 12:42:15 -05:00
eric f0a390d78d new management command: recluster_singletons 2012-02-04 18:36:06 -05:00
eric f9de2d229f add relookup_isbns management command 2012-02-02 09:05:41 -05:00
Raymond Yee 3957c9f96a Print out the number of Editions tied to Works w/o identifiers 2012-01-31 14:19:10 -08:00
Raymond Yee 7f2cc341d5 Trying to nail down what happens to editions tied to orphan that we delete 2012-01-31 14:02:01 -08:00
Raymond Yee a37a401171 Ooop: the last test was tautological...fixed typo 2012-01-30 18:35:52 -08:00
Raymond Yee b187663299 Adding integrity checks for ties between Works, Editions, and Identifiers 2012-01-30 18:32:49 -08:00
Raymond Yee 874964a1d4 Ooops...didn't sort the Works w/o identifiers in reverse chronological order 2012-01-30 13:37:48 -08:00
Raymond Yee f5029004bb Added a display of the last 20 Works w/o identifiers 2012-01-30 13:34:10 -08:00
Raymond Yee 078c853baf Now listing number of editions w/o works and number of identifiers not tied to work 2012-01-30 12:30:18 -08:00
Raymond Yee d285e32b2b First draft of check_works_integrity command to check for data integrity issues with Works, Editions, Identifiers 2012-01-30 12:22:53 -08:00
eric 052e523f22 new management command to check for editions without attached works 2012-01-30 12:52:53 -05:00
eric 8dcca8c1e7 deprecated managemetn command 2012-01-28 22:17:58 -05:00
eric b92ce71ea0 make load_wishlist safer 2012-01-28 22:17:11 -05:00
eric 4259e055d0 management command to remove orphans (works with no ids pointing at them) 2012-01-27 22:09:58 -05:00
eric 45a02cbcaf this sort of dupe now prevented by an integrety constraint 2012-01-17 10:37:15 -05:00
Ed Summers 285be53900 only add to wishlist if an edition was found 2012-01-17 09:46:12 -05:00
Ed Summers 245fefe1f1 a management command to load a user wishlist based on a file of isbns 2012-01-17 09:42:16 -05:00
Raymond Yee 47399ab23a Merge branch 'master' of github.com:Gluejar/regluit into payment 2011-12-20 14:07:43 -05:00
Ed Summers 9231923b88 remove duplicate editions 2011-12-20 12:37:50 -05:00
Ed Summers 19976b2520 added beginning of a management command to remove duplicate editions 2011-12-20 12:19:23 -05:00
Raymond Yee f1875201b3 Merge branch 'master' of github.com:Gluejar/regluit into payment 2011-12-19 13:23:40 -05:00
Ed Summers 2417886169 removing 0014_populate_subjects migration since it is problematic to run with South ORM, instead have people run add_openlibrary management command 2011-12-19 02:20:24 -05:00
Ed Summers 55656e2d3d now getting subjects from openlibrary instead of from googlebooks. You will need to APPLY MIGRATIONS! 2011-12-19 01:33:13 -05:00
Raymond Yee 7cc9a1047a Do ascii encoding of print message so that the print statement doesn't die on non-ascii words. 2011-12-14 18:04:09 +00:00
eric 167dccf574 Wishlists are now filled using the Wishes intermediate table. It's named the same as previous intermediate table, and I've edited the migration so data is not lost.
Also, I've added methods od Wishlists to add and remove Works. There
are "source" and created columns on the Wishes table
2011-12-08 18:22:20 -05:00
Raymond Yee 11027f6bc1 First attempt at placing a Librarything import button 2011-11-16 16:47:29 -08:00
Raymond Yee 27d162c9d7 Now scraping LibraryThing view_style 5 to get at ISBNs of works -- as well as LC classification, subjects. Explicit parsing out of work_id and book_id 2011-11-15 17:14:28 -08:00
Raymond Yee c8c5bd08d8 First pass at parsing LibraryThing collections by scraping HTML -- try it out using the librarything_load_books_2.py command
e.g.,

django-admin.py librarything_load_books_2 rdhyee

The command doesn't load books yet but just displays some info
2011-11-11 18:42:48 -08:00
Raymond Yee 374196d763 Refined model for CeleryTask 2011-11-10 09:33:22 -08:00
Raymond Yee a959d00508 Experiments with creating tasks and seeing how to manage them, especially how to create a custom state to track status of tasks. 2011-11-09 17:31:31 -08:00
Raymond Yee 672b1b3b20 Implemented LibraryThing import as a command and separated out LT functionality into a separate module 2011-11-01 17:42:39 -07:00
Raymond Yee f7ea58a602 Integrated Goodreads shelf loading to wishlist into UI 2011-10-31 17:26:05 -07:00
Raymond Yee 07248f16c8 dded a command to load a shelf to a user's wishlist 2011-10-26 09:49:54 -07:00
Raymond Yee 4a98a96aac Added a command to load a shelf to a user's wishlist 2011-10-26 09:49:10 -07:00
Raymond Yee 2f81b8cebd Quick and dirty display of Goodreads books from user's shelf. 2011-10-25 16:00:52 -07:00
Raymond Yee 7894357f1d Made sure that we don't try activate an already active campaign in generating random campaigns 2011-10-25 09:33:01 -07:00
Andromeda Yelton 246924c03f still merging changes after internet librarian 2011-10-21 15:35:31 -04:00
Andromeda Yelton ce0d20a028 added random activation of some campaigns 2011-10-21 14:45:43 -04:00
Ed Summers a79de596bb added production deployment information and scripts for celeryd 2011-10-20 04:36:41 +00:00
Raymond Yee 8cab4dc425 First pass integration of preapproval into campaign pledge form 2011-10-18 16:27:20 -07:00
Ed Summers bc24d0ea71 activate the random campaigns 2011-10-14 14:26:57 +00:00
Andromeda Yelton 145c275795 Merge branch 'master' of github.com:Gluejar/regluit
Conflicts:
	core/management/commands/random_campaigns.py
2011-10-13 12:46:52 -04:00
Andromeda Yelton 3773a6dd9c switched to decimal to address python 2.6/2.7 compatibility bug 2011-10-13 12:21:53 -04:00
Raymond Yee d82cda07ba Load campaign with Decimal target amount. 2011-10-12 15:48:41 -07:00
Ed Summers 1b54ba5f6b make sure there are some hits when adding a book by isbn 2011-10-10 17:26:38 -04:00
Raymond Yee 0ab5cb00f5 Created HTML version of API -- pretty ugly but set up to show what type of info you can get when ISBN passed in 2011-09-14 09:11:12 -07:00
Raymond Yee 1de0717c8c Forgot to add a few new files to previous commit. 2011-09-14 08:40:42 -07:00
Raymond Yee cb89c13cbb check_db command for database integrity check 2011-09-12 16:52:06 -07:00
Ed Summers 7720a73fb0 beginnings of a user wishlist display... 2011-09-12 01:53:54 -04:00
Ed Summers 67ef77a757 added management command to create random campaigns for any works that lack a campaign 2011-09-12 00:04:22 -04:00
Ed Summers 2c7f858125 handle duplicates using openlibrary ids for edition, work and author 2011-09-10 11:36:38 +00:00
Ed Summers c30d37064d fall back to isbn-13 lookup on open library if isbn-10 is not there 2011-09-09 18:27:29 +00:00
Ed Summers 0f5ff789ff lots of changes to support dynamically loading from openlibrary based on an isbn...which still needs some work to prevent duplication 2011-09-09 01:38:28 -04:00
Ed Summers 19d73f8bf8 added core edition googlebooks lookup and test, plus the start of a load_books management command 2011-09-07 05:34:03 -04:00