Skip to content

Commit

Permalink
Restructure at lint request.
Browse files Browse the repository at this point in the history
The problem is that he asks to do something
and the next time he asks to delete what he asked.
  • Loading branch information
SNoiraud committed Aug 18, 2023
1 parent 5826dec commit 0f53587
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 23 deletions.
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/addressbooklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def __init__(self, report, the_lang, the_title, has_url_addr_res):

# begin Address Book table
with Html(
"table",
class_="infolist primobjlist addressbook " + self.dir
"table", class_="infolist primobjlist addressbook " + self.dir
) as table:
addressbooklist += table

Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ def eventlistpage(

# begin alphabet event table
with Html(
"table",
class_="infolist primobjlist alphaevent " + self.dir
"table", class_="infolist primobjlist alphaevent " + self.dir
) as table:
eventlist += table

Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ def medialistpage(self, report, the_lang, the_title, sorted_media_handles):

# begin gallery table and table head
with Html(
"table",
class_="infolist primobjlist gallerylist " + self.dir
"table", class_="infolist primobjlist gallerylist " + self.dir
) as table:
medialist += table

Expand Down
13 changes: 6 additions & 7 deletions gramps/plugins/webreport/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ def individuallistpage(self, report, the_lang, the_title, ppl_handle_list):

# begin table and table head
with Html(
"table",
class_="infolist primobjlist IndividualList " + self.dir
"table", class_="infolist primobjlist IndividualList " + self.dir
) as table:
individuallist += table
thead = Html("thead")
Expand Down Expand Up @@ -1326,12 +1325,12 @@ def draw_box(self, node, col, person):

def extend_line(self, c_node, p_node):
"""
Draw a line 'half the distance out to the parents. connect_line()
will then draw the horizontal to the parent and the vertical connector
ggl to this line.
Draw a line 'half the distance out to the parents. connect_line()
will then draw the horizontal to the parent and the vertical connector
ggl to this line.
@param c_node -- Child node to draw from
@param p_node -- Parent node to draw towards
@param c_node -- Child node to draw from
@param p_node -- Parent node to draw towards
"""
width = (p_node.coord_x - c_node.coord_x - _WIDTH + 1) / 2
assert width > 0
Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/place.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ def placelistpage(self, report, the_lang, the_title):

# begin places table and table head
with Html(
"table",
class_="infolist primobjlist placelist " + self.dir
"table", class_="infolist primobjlist placelist " + self.dir
) as table:
placelist += table

Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ def repositorylistpage(self, report, the_lang, the_title, repos_dict, keys):

# begin repositories table and table head
with Html(
"table",
class_="infolist primobjlist repolist " + self.dir
"table", class_="infolist primobjlist repolist " + self.dir
) as table:
repositorylist += table

Expand Down
7 changes: 4 additions & 3 deletions gramps/plugins/webreport/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ def sourcelistpage(self, report, the_lang, the_title, source_handles):
sourceslist += Html("p", msg, id="description")

# begin sourcelist table and table head
with Html("table", class_="infolist primobjlist sourcelist " + self.dir) as table:
with Html(
"table", class_="infolist primobjlist sourcelist " + self.dir
) as table:
sourceslist += table
thead = Html("thead")
table += thead
Expand Down Expand Up @@ -274,8 +276,7 @@ def sourcepage(self, report, the_lang, the_title, source_handle):

# begin sources table
with Html(
"table",
class_="infolist source " + self.dir
"table", class_="infolist source " + self.dir
) as table:
sourcedetail += table

Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/surname.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def __init__(self, report, the_lang, the_title, surname, ppl_handle_list):

# begin surname table and thead
with Html(
"table",
class_="infolist primobjlist surname " + self.dir
"table", class_="infolist primobjlist surname " + self.dir
) as table:
surnamedetail += table
thead = Html("thead")
Expand Down
2 changes: 1 addition & 1 deletion gramps/plugins/webreport/surnamelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(
with Html(
"table",
class_="infolist primobjlist surnamelist " + self.dir,
id=table_id
id=table_id,
) as table:
surnamelist += table

Expand Down

0 comments on commit 0f53587

Please sign in to comment.