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