mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Correct spelling mistakes
This commit is contained in:
@@ -141,7 +141,7 @@ class Engine(object):
|
||||
|
||||
|
||||
def __init__(self):
|
||||
# The document data, incuding logic (formulas), and metadata (tables prefixed with "_grist_").
|
||||
# The document data, including logic (formulas), and metadata (tables prefixed with "_grist_").
|
||||
self.tables = {} # Maps table IDs (or names) to Table objects.
|
||||
|
||||
# Schema contains information about tables and columns, needed in particular to generate the
|
||||
|
||||
@@ -152,7 +152,7 @@ class GenCode(object):
|
||||
return textbuilder.Combiner(parts)
|
||||
|
||||
def make_module(self, schema):
|
||||
"""Regenerates the code text and usercode module from upated document schema."""
|
||||
"""Regenerates the code text and usercode module from updated document schema."""
|
||||
# Collect summary tables to group them by source table.
|
||||
summary_tables = {}
|
||||
for table_info in six.itervalues(schema):
|
||||
|
||||
@@ -328,7 +328,7 @@ def _sliding_triplets(tokens):
|
||||
|
||||
|
||||
def _analyze_tokens(tokens):
|
||||
"""Analize each token and find out compatible types for it."""
|
||||
"""Analyze each token and find out compatible types for it."""
|
||||
for token, prev, nxt in _sliding_triplets(tokens):
|
||||
token.compatible_types = tuple([t for t in DATE_ELEMENTS if t[2](token.val, prev, nxt)])
|
||||
|
||||
|
||||
@@ -97,12 +97,12 @@ for typ in six.string_types:
|
||||
|
||||
SCHEMA = [{
|
||||
'name': 'includes',
|
||||
'label': 'Includes (list of tables seperated by semicolon)',
|
||||
'label': 'Includes (list of tables separated by semicolon)',
|
||||
'type': 'string',
|
||||
'visible': True
|
||||
}, {
|
||||
'name': 'excludes',
|
||||
'label': 'Excludes (list of tables seperated by semicolon)',
|
||||
'label': 'Excludes (list of tables separated by semicolon)',
|
||||
'type': 'string',
|
||||
'visible': True
|
||||
}]
|
||||
|
||||
@@ -111,7 +111,7 @@ def migration(schema_version, need_all_tables=False):
|
||||
is marked with need_all_tables=True, then the migration will be retried with all tables.
|
||||
|
||||
NOTE: new migrations should NOT set need_all_tables=True; it would require more work to process
|
||||
very large documents safely (incuding those containing on-demand tables).
|
||||
very large documents safely (including those containing on-demand tables).
|
||||
"""
|
||||
def add_migration(migration_func):
|
||||
migration_func.need_all_tables = need_all_tables
|
||||
|
||||
@@ -559,7 +559,7 @@ class Table(object):
|
||||
"""
|
||||
# We don't set up any dependencies, so it would be incorrect to use this from formulas.
|
||||
# We no longer assert, however, since such calls may still happen e.g. while applying
|
||||
# user-actions caused by formula side-effects (e.g. as trigged by lookupOrAddDerived())
|
||||
# user-actions caused by formula side-effects (e.g. as triggered by lookupOrAddDerived())
|
||||
if row_id not in self.row_ids:
|
||||
raise KeyError("'get_record' found no matching record")
|
||||
return self.Record(row_id, None)
|
||||
|
||||
@@ -3,7 +3,7 @@ import test_engine
|
||||
|
||||
class TestFindCol(test_engine.EngineTestCase):
|
||||
def test_find_col_from_values(self):
|
||||
# Test basic funtionality.
|
||||
# Test basic functionality.
|
||||
self.load_sample(testsamples.sample_students)
|
||||
self.assertEqual(self.engine.find_col_from_values(("Columbia", "Yale", "Eureka"), 0),
|
||||
[4, 10])
|
||||
|
||||
@@ -68,7 +68,7 @@ class TestRenames2(test_engine.EngineTestCase):
|
||||
[ 4, "CheckersA" , 5, 1 ],
|
||||
])
|
||||
|
||||
# This was just setpu. Now create some crazy formulas that overuse referenes in crazy ways.
|
||||
# This was just setpu. Now create some crazy formulas that overuse references in crazy ways.
|
||||
self.partner_names = textwrap.dedent(
|
||||
"""
|
||||
games = Entries.lookupRecords(person=$id).game
|
||||
|
||||
@@ -1047,7 +1047,7 @@ class UserActions(object):
|
||||
@override_action('BulkRemoveRecord', '_grist_Pages')
|
||||
def _removePageRecords(self, table_id, row_ids):
|
||||
"""
|
||||
Remove page records and for the those that have children, udpate the first child's indentation
|
||||
Remove page records and for the those that have children, update the first child's indentation
|
||||
so that it becomes the new parent. Note that this run a O(n) routine for each page to remove but
|
||||
it's ok considering that the list of _grist_Pages is not meant to grow that big.
|
||||
"""
|
||||
@@ -1686,7 +1686,7 @@ class UserActions(object):
|
||||
# User actions on viewSections.
|
||||
#----------------------------------------
|
||||
|
||||
# TODO: Deprecated; This should no longer be an exposed action; it is superceded by
|
||||
# TODO: Deprecated; This should no longer be an exposed action; it is superseded by
|
||||
# CreateViewSection.
|
||||
@useraction
|
||||
def AddViewSection(self, title, view_section_type, view_row_id, table_id):
|
||||
|
||||
Reference in New Issue
Block a user