Browse Source

Strategická: Html: bucket creator

master
Jiří Kalvoda 2 years ago
parent
commit
f64ab8a791
  1. 14
      server/hra/web/html.py

14
server/hra/web/html.py

@ -72,6 +72,14 @@ class Bucket:
def _line(self): def _line(self):
return Line(self) return Line(self)
def bucket(self):
t = Bucket(self.builder)
self.add(t)
return t
def _bucket(self):
return Bucket(self)
def print(self): def print(self):
out = [] out = []
self.serialize_append_to_list(out, 0) self.serialize_append_to_list(out, 0)
@ -160,6 +168,12 @@ class Builder:
def _line(self): def _line(self):
return Line(self) return Line(self)
def bucket(self):
return self.current_tag.bucket()
def _bucket(self):
return Bucket(self)
def __call__(self, *arg, **kvarg): def __call__(self, *arg, **kvarg):
self.current_tag(*arg, **kvarg) self.current_tag(*arg, **kvarg)
return self return self

Loading…
Cancel
Save