Commit 7540003f authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[autopep8] E126 - Fix over-indented hanging indentation

parent 7bed7837db81
......@@ -13,7 +13,7 @@ author_email = 'contact@logilab.fr'
description = 'expense component for the CubicWeb framework'
web = 'http://www.cubicweb.org/project/%s' % distname
classifiers = [
'Environment :: Web Environment',
'Environment :: Web Environment',
'Framework :: CubicWeb',
'Programming Language :: Python',
'Programming Language :: JavaScript',
......
......@@ -74,7 +74,7 @@ class AbstractFlowGenerator :
('TOPPADDING', (0,0), (-1,-1), 0*cm),
('BOTTOMPADDING', (0,0), (-1,-1), 0*cm),
])
)
)
flow_list.append( top_table )
......@@ -101,7 +101,7 @@ class AbstractFlowGenerator :
('TOPPADDING', (0,0), (-1,-1), 0*cm),
('BOTTOMPADDING', (0,0), (-1,-1), 0*cm),
])
)
)
flow_list.append( KeepTogether(bottom_table) )
......@@ -227,7 +227,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-1), 0.2*cm),
('BOX', (0,0), (-1,-1), 0.05*cm, black),
])
)
)
return meta_table
......@@ -286,7 +286,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOX', (0,0), (-1,-1), 0.05*cm, black),
('INNERGRID', (0,0), (-1,-1), 0.02*cm, black),
])
)
)
return tot_table
......@@ -305,10 +305,10 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
refundable_tot = entity.totals_paid_by()
for euser in refundable_tot.keys():
s = u"%s %s %s %s" %(
format_number(refundable_tot[euser],2),
xml_escape(_(u"EUR")),
xml_escape(_(u"to be refunded to")),
xml_escape(euser.dc_title()) )
format_number(refundable_tot[euser],2),
xml_escape(_(u"EUR")),
xml_escape(_(u"to be refunded to")),
xml_escape(euser.dc_title()) )
col_data.append( Paragraph(s, style_table_data) )
if col_data != [] :
......@@ -325,7 +325,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-1), 0.2*cm),
('BOX', (0,0), (-1,-1), 0.05*cm, black),
])
)
)
return rel_table
......@@ -446,7 +446,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
main_table.repeatRows = 1
main_table.setStyle(
TableStyle([
('ALIGN', (0,0), (-1,-1), 'LEFT'),
('ALIGN', (0,0), (-1,-1), 'LEFT'),
('VALIGN', (0,0), (-1,-1), 'TOP'),
('LEFTPADDING', (0,0), (-1,-1), 0*cm),
('RIGHTPADDING', (0,0), (-1,-1), 0*cm),
......@@ -454,8 +454,8 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-2), 0.3*cm),
('BOTTOMPADDING', (0,-1), (-1,-1), 0*cm),
('BOX', (0,0), (-1,-1), 0.05*cm, black),
])
)
])
)
return main_table
......@@ -485,7 +485,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,0), 0.1*cm),
('INNERGRID', (0,0), (-1,0), 0.02*cm, black),
])
)
)
# Builds table for the second line
line2_table = Table( [ line2_data
......@@ -503,7 +503,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('INNERGRID', (0,0), (-1,0), 0.02*cm, black),
('LINEABOVE', (0,0), (-1,0), 0.02*cm, black),
])
)
)
# Builds the table that contains the two lines describing the expense
both_lines_table = Table( [ [line1_table],
......@@ -520,7 +520,7 @@ class ExpenseFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-1), 0*cm),
('BOX', (0,0), (-1,-1), 0.02*cm, black),
])
)
)
return both_lines_table
......@@ -603,7 +603,7 @@ class RefundFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-1), 0.2*cm),
('BOX', (0,0), (-1,-1), 0.05*cm, black),
])
)
)
return addr_table
......@@ -639,7 +639,7 @@ class RefundFlowGenerator (AbstractFlowGenerator) :
('BOX', (0,0), (-1,-1), 0.05*cm, black),
('INNERGRID', (0,0), (-1,-1), 0.02*cm, black),
])
)
)
return tot_table
......@@ -683,7 +683,7 @@ class RefundFlowGenerator (AbstractFlowGenerator) :
('BOTTOMPADDING', (0,0), (-1,-1), 0.2*cm),
('BOX', (0,0), (-1,-1), 0.05*cm, black),
])
)
)
return payment_table
......@@ -783,6 +783,6 @@ class RefundFlowGenerator (AbstractFlowGenerator) :
('LINEAFTER', (5,0), (5,-1), 0.05*cm, black),
('LINEBELOW', (0,0), (-1,0), 0.05*cm, black),
])
)
)
return main_table
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment