Commit Graph

5869 Commits (7f5ffee7b76c5e623cd80443c2ad4e4a8c59d543)

Author SHA1 Message Date
eric 2761d28fed normalize runid
duplicating runid in three tables was bad practice and made filtering
very difficult
2016-09-30 14:04:41 -04:00
Raymond Yee 4405b4ee73 change regluit.core.tests.BookLoaderTests.test_add_related to test whether every WorkRelation points back properly 2016-09-29 15:15:46 -07:00
Raymond Yee 2e9ff2bf1c got regluit.core.tests.BookLoaderTests.test_add_related to work now -- but have to check
with Eric to see whether it's exactly the right test
2016-09-29 15:02:27 -07:00
Raymond Yee e0e96da968 Merge branch 'master' into versions-relations-ednotes 2016-09-29 14:02:23 -07:00
eric fada8e0222 correct comments 2016-09-29 10:57:15 -04:00
eric 4ba5104e06 move UnicodeWriter to utils 2016-09-28 18:42:55 -04:00
eric fc56744371 FileWrapper not needed, is broken 2016-09-28 18:40:57 -04:00
eshellman ee0e8be670 Merge pull request #634 from Gluejar/fix_lockss
[WIP] work.authors() returns list of all authors
2016-09-23 15:35:56 -04:00
eric 5fc4d631ff split version into label and iter 2016-09-23 14:53:58 -04:00
Raymond Yee 81524ac5f0 work.authors() returns list of all authors 2016-09-23 10:16:26 -07:00
Raymond Yee e8d4ab82be add comments to this migration 2016-09-22 14:28:49 -07:00
Raymond Yee eebd00ccd9 Merge pull request #633 from Gluejar/fix-missing-pass-reset-template
copy html template to txt
2016-09-20 08:07:09 -07:00
eric c730d70ea1 copy html template to txt 2016-09-20 08:18:38 -04:00
Raymond Yee 0e75a750ab an extra migration produced by `makemigrations` 2016-09-15 11:50:31 -07:00
Raymond Yee 298dca48b3 clean up .pyc and empty directories with software update 2016-09-12 11:30:25 -07:00
Raymond Yee 243e7d8029 fix error:
======================================================================
ERROR: test_nix (regluit.api.tests.FeedTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit/api/tests.py", line 173, in test_nix
    r = self.client.get('/api/onix/by/')
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/test/client.py", line 500, in get
    **extra)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/test/client.py", line 303, in get
    return self.generic('GET', path, secure=secure, **r)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/test/client.py", line 379, in generic
    return self.request(**r)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/test/client.py", line 466, in request
    six.reraise(*exc_info)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit/api/views.py", line 208, in get
    return HttpResponse(onix.onix_feed(facet_class, max),
  File "/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit/api/onix.py", line 25, in onix_feed
    editions = facet.facet_object.filter_model("Edition",editions).distinct()
  File "/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit/core/facets.py", line 44, in filter_model
    return model_filter( self._filter_model(model, query_set))
  File "/Users/raymondyee/D/Document/Gluejar/Gluejar.github/regluit/core/facets.py", line 147, in edition_license_filter
    return query_set.filter(ebooks__rights=cc.ccinfo(facet_name))
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/db/models/query.py", line 679, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/db/models/query.py", line 697, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1310, in add_q
    clause, require_inner = self._add_q(where_part, self.used_aliases)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1338, in _add_q
    allow_joins=allow_joins, split_subq=split_subq,
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1177, in build_filter
    if isinstance(value, Iterator):
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/abc.py", line 144, in __instancecheck__
    return cls.__subclasscheck__(subtype)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/abc.py", line 180, in __subclasscheck__
    if issubclass(subclass, scls):
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/abc.py", line 161, in __subclasscheck__
    ok = cls.__subclasshook__(subclass)
  File "/Users/raymondyee/anaconda/envs/regluit613/lib/python2.7/site-packages/backports_abc.py", line 66, in __subclasshook__
    mro = C.__mro__
AttributeError: class ccinfo has no attribute '__mro__'
2016-09-12 10:42:12 -07:00
Raymond Yee a2cb58800c Merge branch 'master' into versions-relations-ednotes 2016-09-12 09:27:08 -07:00
Raymond Yee ee32ea3940 Merge pull request #632 from Gluejar/dj18
turn maintenance mode off for prod
2016-09-08 18:57:02 -07:00
Raymond Yee ba09e40f72 Merge branch 'dj18' of github.com:Gluejar/regluit into dj18 2016-09-08 18:56:02 -07:00
Raymond Yee aed8549156 turn maintenance for prod off 2016-09-08 18:55:39 -07:00
Raymond Yee 2bbbd14940 Merge pull request #631 from Gluejar/dj18
merge postdj18 stuff into master
2016-09-08 18:48:14 -07:00
Raymond Yee ea2cf838e4 Merge pull request #615 from Gluejar/postdj18
empty the repair migration
2016-09-08 18:46:50 -07:00
Raymond Yee b75193ee1d Merge pull request #630 from Gluejar/dj18
put production into maintenance
2016-09-08 18:29:51 -07:00
Raymond Yee a844747b65 Merge branch 'dj18' into postdj18 2016-09-08 18:28:55 -07:00
Raymond Yee 40971359a7 put production into maintenance 2016-09-08 18:28:33 -07:00
Raymond Yee 1335fe59d2 Merge branch 'dj18' into postdj18 2016-09-08 17:54:15 -07:00
Raymond Yee 412de90dc0 Merge pull request #629 from Gluejar/dj18
refine do_migrate for production in Vagrantfile
2016-09-08 17:53:17 -07:00
Raymond Yee fc4ca7dbc0 refine do_migrate for production in Vagrantfile 2016-09-08 17:52:25 -07:00
Raymond Yee b71ae06198 Merge pull request #628 from Gluejar/dj18
take just out of maintenance mode
2016-09-08 11:43:47 -07:00
Raymond Yee 314e7536ff Merge branch 'dj18' into postdj18 2016-09-08 11:43:07 -07:00
Raymond Yee f9b1129fee take just out of maintenance mode 2016-09-08 11:42:27 -07:00
Raymond Yee 455cf97d69 Merge branch 'dj18' into postdj18 2016-09-08 08:08:01 -07:00
Raymond Yee 46a37a0e36 Merge pull request #627 from Gluejar/dj18
hopefully, updating django-maintenancemode will fix dj 1.8 compatibility issue
2016-09-08 08:05:54 -07:00
Raymond Yee b8364e6278 hopefully, updating django-maintenancemode will fix problem related to https://github.com/shanx/django-maintenancemode/issues/8 2016-09-08 08:00:51 -07:00
Raymond Yee 1d38dd5ccf Merge pull request #626 from Gluejar/dj18
update update-just and update-prod
2016-09-07 19:28:30 -07:00
Raymond Yee 0e4792046b Merge branch 'master' into dj18 2016-09-07 19:27:45 -07:00
Raymond Yee 890983ee7c Merge branch 'master' into dj18 2016-09-07 19:27:14 -07:00
Raymond Yee c3b5240209 Merge branch 'dj18' into postdj18 2016-09-07 19:25:31 -07:00
Raymond Yee ef626c1b47 update update-just and update-prod 2016-09-07 19:24:47 -07:00
Raymond Yee cc0b6a7358 Merge pull request #625 from Gluejar/dj18
update just.wsgi and regluit.wsgi to match please.wsgi
2016-09-07 19:19:58 -07:00
Raymond Yee 6ef3e5f37f Merge branch 'dj18' into postdj18 2016-09-07 19:18:56 -07:00
Raymond Yee 29d8678646 update just.wsgi and regluit.wsgi to match please.wsgi 2016-09-07 19:18:21 -07:00
Raymond Yee d191279033 DEBUGG->DEBUG 2016-09-07 15:15:23 -07:00
Raymond Yee 66f57c3869 DEBUGG -> DEBUG 2016-09-07 15:14:35 -07:00
Raymond Yee 3a8cdccd36 Merge pull request #624 from Gluejar/fix_just_setting
DEBUGG -> DEBUG (don't know how this bug got in)
2016-09-07 14:40:31 -07:00
Raymond Yee d44159e7db DEBUGG -> DEBUG (don't know how this bug got in) 2016-09-07 14:39:55 -07:00
Raymond Yee 5996010642 Merge pull request #613 from Gluejar/dj18
Update to Django 1.8
2016-09-07 11:50:23 -07:00
Raymond Yee c1c6b5ccbc don't migrate on just or production 2016-09-07 11:46:41 -07:00
Raymond Yee 8aceb005c9 integrate vagrant changes for building please into dj18 2016-09-07 10:45:53 -07:00
Raymond Yee 11b975be67 making changes to build please using vagrant/ansible after dj18 and postdj18 merged 2016-09-07 10:17:24 -07:00