import generator


def func():
    lst = generator.List()
    lst.add_new_person("Osoba Pierwsza", True, False, False)
    lst.add_new_person("Osoba Druga", True, False, False)
    lst.add_new_person("Osoba Trzecia", False, True, False)
    lst.add_new_person("Osoba czwarta", False, False, True)
    lst.add_new_person("Osoba Piąta", True, True, False)
    lst.add_new_person("Osoba Szósta", True, False, True)

    d_a_h = [
        ["21.02.2011", True, ["9.00", "11.00", "12.00"]],
        ["23.02.2011", True, ["9.00", "11.00", "12.00"]],
        ["25.02.2011", True, ["9.00", "11.00", "12.00"]],
        ["28.02.2011", False, ["9.00", "11.00"]],
        ["40.02.2011", True, ["9.00", "11.00", "12.00", "16.00"]]
    ]
    lst.create_html_readers_list(d_a_h)


if __name__ == "__main__":
    func()

@@ -52,33 +52,41 @@
 List
+OfReaders
 ()%0A    
+'''
 lst
-.
+:
 add_
-new_person
+reader
 (%22Os
@@ -100,33 +100,27 @@
 rwsza%22, 
-True, False, Fals
+lection=Tru
 e)%0A    l
@@ -122,34 +122,30 @@
     lst.add_
-new_person
+reader
 (%22Osoba Drug
@@ -152,25 +152,19 @@
 a%22, 
-True, False, Fals
+lection=Tru
 e)%0A 
@@ -170,34 +170,30 @@
     lst.add_
-new_person
+reader
 (%22Osoba Trze
@@ -202,25 +202,17 @@
 a%22, 
-False, True, Fals
+psalm=Tru
 e)%0A 
@@ -218,34 +218,30 @@
     lst.add_
-new_person
+reader
 (%22Osoba czwa
@@ -250,22 +250,23 @@
 a%22, 
-False, False, 
+believers_pray=
 True
@@ -275,34 +275,30 @@
     lst.add_
-new_person
+reader
 (%22Osoba Pi%C4%85t
@@ -305,24 +305,31 @@
 a%22, 
-True, True, Fals
+lection=True, psalm=Tru
 e)%0A 
@@ -343,18 +343,14 @@
 add_
-new_person
+reader
 (%22Os
@@ -366,26 +366,45 @@
 a%22, 
-True, False, 
+lection=True, believers_pray=
 True)
+'''
 %0A%0A  
@@ -413,17 +413,17 @@
 d_a_h = 
-%5B
+(
 %0A       
@@ -427,41 +427,33 @@
     
-%5B%2221.02.2011%22, True, %5B%229.
+(%222011.5.2%22, (%229:
 00%22, %2211
 .00%22
@@ -444,33 +444,33 @@
 (%229:00%22, %2211
-.
+:
 00%22, %2212
 .00%22%5D%5D,%0A    
@@ -449,38 +449,38 @@
 0%22, %2211:00%22, %2212
-.00%22%5D%5D
+:00%22))
 ,%0A        %5B%2223.0
@@ -477,41 +477,33 @@
     
-%5B%2223.02.2011%22, True, %5B%229.
+(%222011.6.3%22, (%229:
 00%22, %2211
 .00%22
@@ -494,33 +494,33 @@
 (%229:00%22, %2211
-.
+:
 00%22, %2212
 .00%22%5D%5D,%0A    
@@ -499,38 +499,38 @@
 0%22, %2211:00%22, %2212
-.00%22%5D%5D
+:00%22))
 ,%0A        %5B%2225.0
@@ -527,41 +527,33 @@
     
-%5B%2225.02.2011%22, True, %5B%229.
+(%222011.7.4%22, (%229:
 00%22, %2211
 .00%22
@@ -544,33 +544,33 @@
 (%229:00%22, %2211
-.
+:
 00%22, %2212
 .00%22%5D%5D,%0A    
@@ -557,22 +557,29 @@
 00%22, %2212
-.00%22%5D%5D
+:00%22), False)
 ,%0A      
@@ -584,42 +584,34 @@
     
-%5B%2228.02.2011%22, False, %5B%229.
+(%222011.8.12%22, (%229:
 00%22, %2211
 .00%22
@@ -606,22 +606,22 @@
 00%22, %2211
-.00%22%5D%5D
+:00%22))
 ,%0A      
@@ -626,41 +626,35 @@
     
-%5B%2240.0
+(%222011.1
 2.2
-01
 1%22, 
-True, %5B%229.
+(%229:
 00%22, %2211
 .00%22
@@ -653,17 +653,17 @@
  %2211
-.
+:
 00%22, %2212
 .00%22
@@ -662,17 +662,17 @@
  %2212
-.
+:
 00%22, %2216
 .00%22
@@ -671,53 +671,51 @@
  %2216
-.00%22%5D%5D
+:00%22))
 %0A    
-%5D
+)
 %0A    
-lst.create_html_r
+generator.HtmlR
 eaders
-_list
+Table
 (d_a

test updated