Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on dynamic table row addition #29

Closed
wants to merge 2 commits into from

Conversation

mfalesni
Copy link
Contributor

@mfalesni mfalesni commented May 22, 2017

This is to support the tables that have the + at the bottom which adds a new row.

@coveralls
Copy link

coveralls commented May 22, 2017

Coverage Status

Coverage decreased (-0.5%) to 85.955% when pulling 8ebb77b on table-fill-dynamic into 067655b on master.

def row_count(self):
return len(self)

def add_row_handler(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will handle adding new rows. Will be overridden by the specific implementation.

I haven't figured out yet the best way to handle deleting rows as a part of filling

@@ -1313,6 +1325,12 @@ def assoc_column_position(self):
def __getitem__(self, at_index):
if not isinstance(at_index, int):
raise TypeError('table indexing only accepts integers')
if at_index < 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think negative index use needs some comments/description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I will add a comment around the handling.

@coveralls
Copy link

coveralls commented May 26, 2017

Coverage Status

Coverage decreased (-0.5%) to 85.915% when pulling 93aa830 on table-fill-dynamic into 067655b on master.

@mfalesni mfalesni closed this Jul 3, 2017
@mfalesni mfalesni deleted the table-fill-dynamic branch July 3, 2017 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants