diff --git a/README.md b/README.md index 401efe7..ed4228d 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Assumes installation within a virtual directory 3. `./bin/install_xapian.sh 1.4.14` ## Deployment -Run `deploy/update_dbdb_app.sh` on the production machine to fetch new changes, run migrations, and restart the wsgi server +Run `deploy/update_dbdb_app.sh` on the production machine to fetch new changes, run migrations, and restart the wsgi server. diff --git a/dbdb/core/management/commands/create_twitter_cards.py b/dbdb/core/management/commands/create_twitter_cards.py index 1f4b1e0..1986eac 100644 --- a/dbdb/core/management/commands/create_twitter_cards.py +++ b/dbdb/core/management/commands/create_twitter_cards.py @@ -18,7 +18,7 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('system', metavar='S', type=str, nargs='?', - help='System to force twiter card creation') + help='System to force twitter card creation') parser.add_argument('--skip-errors', action='store_true', help="Ignore errors and keep processing") return diff --git a/dbdb/core/management/commands/fix_acls.py b/dbdb/core/management/commands/fix_acls.py index 7ad81bf..1464c81 100644 --- a/dbdb/core/management/commands/fix_acls.py +++ b/dbdb/core/management/commands/fix_acls.py @@ -17,7 +17,7 @@ def handle(self, *args, **options): if user.username == "developer" or user.is_superuser: continue systems = set() - # Find what systems this user has editted + # Find what systems this user has edited for ver in SystemVersion.objects.filter(creator=user): if not ver.system in systems: acl = SystemACL(system=ver.system, user=user) diff --git a/dbdb/core/management/commands/generate_searchtext.py b/dbdb/core/management/commands/generate_searchtext.py index 66c289a..c589d8e 100644 --- a/dbdb/core/management/commands/generate_searchtext.py +++ b/dbdb/core/management/commands/generate_searchtext.py @@ -7,7 +7,7 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('system', metavar='S', type=str, nargs='?', - help='System to force search text genration') + help='System to force search text generation') return def handle(self, *args, **options): diff --git a/dbdb/core/management/commands/load_initial_data.py b/dbdb/core/management/commands/load_initial_data.py index 1dfc31d..69c9da7 100644 --- a/dbdb/core/management/commands/load_initial_data.py +++ b/dbdb/core/management/commands/load_initial_data.py @@ -27,7 +27,7 @@ class Command(BaseCommand): help = '''Creates a fixture based on the files on initial_data folder This should be run only for a newly created system deployment and if there's no better database dump to apply. - Please be sure you have a databasees.csv file in initial_data folder along with spring2017 and spring2016 + Please be sure you have a databases.csv file in initial_data folder along with spring2017 and spring2016 ''' def handle(self, *args, **options): diff --git a/dbdb/core/management/commands/process_visits.py b/dbdb/core/management/commands/process_visits.py index 46d20fe..718e345 100644 --- a/dbdb/core/management/commands/process_visits.py +++ b/dbdb/core/management/commands/process_visits.py @@ -148,7 +148,7 @@ def handle(self, *args, **options): #sys.exit(1) self.stdout.write("# of Users: %d" % next_user_idx) - self.stdout.write("# of Sytems: %d (total=%d)" % (next_system_idx, system_cnt)) + self.stdout.write("# of Systems: %d (total=%d)" % (next_system_idx, system_cnt)) data = np.zeros((next_user_idx, next_system_idx)) for user_idx in all_visits.keys(): diff --git a/dbdb/core/models.py b/dbdb/core/models.py index f3df310..3d1d680 100644 --- a/dbdb/core/models.py +++ b/dbdb/core/models.py @@ -601,7 +601,7 @@ def generate_searchtext(self): words += [tag.name, tag.name.replace("-", "")] # It's debatable whether people actually want to do keyword search for the supported languages - # From the logs, it looks like people really want to know the language a DBMS was written in + # From the logs, it looks like people really want to know the language in which a DBMS was written # words += [x.name for x in self.meta.supported_languages.all()] # words += [x.slug for x in self.meta.supported_languages.all()] diff --git a/dbdb/core/tests.py b/dbdb/core/tests.py index d51dc96..30b4eae 100644 --- a/dbdb/core/tests.py +++ b/dbdb/core/tests.py @@ -184,12 +184,12 @@ def test_inputs_quantity(self): d = pq(response.content) filtergroups = d('div.filter-group') # Add two for the year filtergroups - # Add nine for country, OS, project type, PL, inspired, derived, embedded compatiable, licenses + # Add nine for country, OS, project type, PL, inspired, derived, embedded compatible, licenses #pprint(filtergroups) self.assertEquals(quantity + 2 + 9, len(filtergroups)) return - def test_search_with_insuficient_data(self): + def test_search_with_insufficient_data(self): data = { 'feature1': ['option1'], } @@ -198,7 +198,7 @@ def test_search_with_insuficient_data(self): self.assertContains(response, 'No databases found') return - def test_search_with_suficient_data(self): + def test_search_with_sufficient_data(self): data = { 'feature1': ['option3'], } @@ -319,7 +319,7 @@ def test_can_access_home(self): self.assertEquals(response.status_code, 200) return - def test_buttons_hiden_when_not_authenticated(self): + def test_buttons_hidden_when_not_authenticated(self): response = self.client.get(reverse('home')) self.assertNotContains( response, @@ -327,7 +327,7 @@ def test_buttons_hiden_when_not_authenticated(self): ) return - def test_buttons_hiden_when_not_superuser(self): + def test_buttons_hidden_when_not_superuser(self): self.client.login(username='testuser', password='testpassword') response = self.client.get(reverse('home')) self.assertNotContains( @@ -339,9 +339,9 @@ def test_buttons_hiden_when_not_superuser(self): def test_buttons_shows_when_superuser(self): self.client.login(username='admin', password='testpassword') - # Load stats insead of home so that we don't get a cached + # Load stats instead of home so that we don't get a cached # result. Yes we try to override settings of the cache - # up aove to disable it but it doesn't work + # up above to disable it but it doesn't work response = self.client.get(reverse('stats')) self.assertContains( response, diff --git a/dbdb/core/views.py b/dbdb/core/views.py index 6e84c38..4cf9d0a 100644 --- a/dbdb/core/views.py +++ b/dbdb/core/views.py @@ -1222,7 +1222,7 @@ def post(self, request, slug=None): sf.description = value sf.save() pass - elif '_citation'in field_name: + elif '_citation' in field_name: sf, _ = SystemFeature.objects.get_or_create( version=db_version, feature=feature @@ -1234,7 +1234,7 @@ def post(self, request, slug=None): sf.citations.add(cit_url) pass pass - elif '_choices'in field_name: + elif '_choices' in field_name: sf, _ = SystemFeature.objects.get_or_create( version=db_version, feature=feature diff --git a/templates/base.html b/templates/base.html index cfb7aab..ad2db3c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -129,7 +129,7 @@