joop 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,10 +120,13 @@ class MyTablePage(HTMLComponent):
120
120
  Represents subcomponents of the `MyTablePage`.
121
121
 
122
122
  Attributes:
123
- my_t (MyTableComponent): An instance of the `MyTableComponent`.
123
+ table (MyTableComponent): An instance of the `MyTableComponent`.
124
124
  """
125
- my_t = MyTableComponent
126
- table : my_t = my_t()
125
+ table: MyTableComponent
126
+
127
+ def __init__(self):
128
+ super().__init__()
129
+ self.table = MyTableComponent()
127
130
 
128
131
  class MyTableWholePage(View):
129
132
  """
@@ -134,7 +137,7 @@ class MyTableWholePage(View):
134
137
  """
135
138
  _component_type = MyTablePage
136
139
 
137
- class Endpoint():
140
+ class Endpoint(View.Endpoint):
138
141
  """
139
142
  Defines the endpoint for the `MyTableWholePage` view.
140
143
 
joop/web/examples/view.py CHANGED
@@ -15,7 +15,7 @@ class HelloView(View):
15
15
 
16
16
  _component_type = HelloWorld
17
17
 
18
- class Endpoint():
18
+ class Endpoint(View.Endpoint):
19
19
  _url = HELLO_ROOT
20
20
  _name = HELLO_DESIG
21
21
  _methods = [HttpMethod.GET.value]
@@ -24,7 +24,7 @@ class NameView(View):
24
24
 
25
25
  _component_type = HelloName
26
26
 
27
- class Endpoint():
27
+ class Endpoint(View.Endpoint):
28
28
  _url = HELLO_ROOT + "/<string:first_name>/<string:last_name>"
29
29
  _name = HELLO_DESIG + "_name"
30
30
  _methods = [HttpMethod.GET.value]
joop/web/html.py CHANGED
@@ -204,7 +204,6 @@ class HTMLComponent(Component, HTML):
204
204
  'sc' : self.subs.get_rendered(),
205
205
  'data' : asdict(self.data)
206
206
  }
207
- print(_joop)
208
207
  return self._loaded_template.render(
209
208
  joop = _joop
210
209
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: joop
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Justin's Object-Oriented Paradigms
5
5
  License-Expression: Apache-2.0
6
6
  Keywords: object-oriented programming,DAO,HTMX,AlpineJS,Python
@@ -21,7 +21,7 @@ Requires-Dist: pydantic (>=2.12.5,<3.0.0)
21
21
  Requires-Dist: sqlmodel (>=0.0.31,<0.0.32)
22
22
  Project-URL: Homepage, https://github.com/rushinjgr/joop
23
23
  Project-URL: bugs, https://github.com/rushinjgr/joop/issues
24
- Project-URL: changelog, https://github.com/rushinjgr/joop/blob/master/python/docs/changelog.md
24
+ Project-URL: changelog, https://github.com/rushinjgr/joop/blob/master/python/docs/source/changelog.rst
25
25
  Project-URL: source, https://github.com/rushinjgr/joop
26
26
  Description-Content-Type: text/markdown
27
27
 
@@ -19,13 +19,13 @@ joop/web/__init__.py,sha256=SXfAxuh96-w1uxlHd2NMfn7ThrSGOUU84cCXiZX6JzM,412
19
19
  joop/web/component.py,sha256=oZO9tVhlXAlF4tn8tmtHp95SlPuD6-q8gezWOU4l9y0,5135
20
20
  joop/web/components.py,sha256=74EUiZOO9yCJnFQYYyRREvZKeRsKgYpAJIHkzQdJ_vY,3772
21
21
  joop/web/examples/hello.py,sha256=29c5EUjIZgHiD5-O5KC_40sO9D2Tg69QBvvOPLfQ4Qg,4824
22
- joop/web/examples/table.py,sha256=jshGjwh66MIbQRkSgKYkzzeLViUU6ULwsTVOxEZbCzs,4697
23
- joop/web/examples/view.py,sha256=FwKPeXqJ6CpJxdEGQohGS2yhPH8H2TBMem8vHkp2ZME,655
24
- joop/web/html.py,sha256=O2Xo_xGeO-ro62Wc_8q__WUS29G0uF5axYvQF3IqSNk,7690
22
+ joop/web/examples/table.py,sha256=eU8p5ePWKJ8XITtCGiGjC54mXPQ-aW2pWkJqFFy4X2o,4785
23
+ joop/web/examples/view.py,sha256=IVnnjxHKuAgQBNFnegWTDERmwUnhknPWtjcTczgNoc4,681
24
+ joop/web/html.py,sha256=3jJ_i7kIPICeYJEcBItjabeqgSg0F0DISGp8xsBTaOQ,7669
25
25
  joop/web/j_env.py,sha256=Pj-DIVUFd4Rb_wSAqT3nfyyKtR9cW6kzCHSxF1d7BTg,1093
26
26
  joop/web/templater.py,sha256=SnlSj0mf83KUiCWTh4-6s3UQtmrsFDngbqENZjc1SPQ,5010
27
27
  joop/web/view.py,sha256=9DU_i1Hpeai_NDuhf17mGF0xoIUV7aSLE3zoisoRUGA,6833
28
- joop-0.0.1.dist-info/METADATA,sha256=rAoKQXNlx73rx2_1lqFFKgSGSEs6Yd_WmiqAq7AzcCo,3411
29
- joop-0.0.1.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
30
- joop-0.0.1.dist-info/entry_points.txt,sha256=EXfYHkMxWW2P6AJ4sLEljXmhALjKMGlyta2NNIPDtQw,38
31
- joop-0.0.1.dist-info/RECORD,,
28
+ joop-0.0.2.dist-info/METADATA,sha256=FxNchw1qtZIlhMtpZhPWHsOvRlCXkn9GrJFG9bb0Oog,3419
29
+ joop-0.0.2.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
30
+ joop-0.0.2.dist-info/entry_points.txt,sha256=EXfYHkMxWW2P6AJ4sLEljXmhALjKMGlyta2NNIPDtQw,38
31
+ joop-0.0.2.dist-info/RECORD,,
File without changes