コード例 #1
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, view, *widths):
     __View__.__init__(self, 'layout_col', view=view)
     self._widths = L()
     if len(widths) > 0:
         for width in widths:
             if instof(width, tuple): self._widths << width
     else: self._widths << ('lg', 12)
コード例 #2
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, view, *widths):
     __View__.__init__(self, 'layout_col', view=view)
     self._widths = L()
     if len(widths) > 0:
         for width in widths:
             if instof(width, tuple): self._widths << width
     else: self._widths << ('lg', 12)
コード例 #3
0
ファイル: chartist.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, *lines, **option):
     __View__.__init__(self, "ctst_area", lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False)
     for l in self.lines:
         self.series << L()
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
コード例 #4
0
 def __init__(self, **option):
     __View__.__init__(self, 'morr_donut', data=L())
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option[
         'height'] if 'height' in option else ''
コード例 #5
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, *heads, **option):
     __View__.__init__(self,
                       'table',
                       heads=L(*heads),
                       recs=L(),
                       _stripe=option['stripe'] if 'stripe' in option else False,
                       _link=self.__create_link__(option['link']) if 'link' in option else ''
                       )
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
コード例 #6
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, *heads, **option):
     __View__.__init__(
         self,
         'table',
         heads=L(*heads),
         recs=L(),
         _stripe=option['stripe'] if 'stripe' in option else False,
         _link=self.__create_link__(option['link'])
         if 'link' in option else '')
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
コード例 #7
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self,
              title,
              view,
              panel='default',
              icon='fa-archive',
              link=None):
     __View__.__init__(self, 'panel', view=view)
     self._title = title
     self._panel = panel
     self._icon = icon
     self._link = self.__create_link__(link)
コード例 #8
0
 def __init__(self, *lines, **option):
     __View__.__init__(self, 'ctst_slide', lines=L(*lines), opts=M(seriesBarDistance=5), labels=L(), series=L(), size=5, anima=False)
     if len(self.lines) > 0:
         for l in self.lines: self.series << L()
         self.add = self.__addMapped__
     else:
         self.add = self.__addLinear__
         self.opts['distributeSeries'] = True
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
コード例 #9
0
 def __init__(self, chart_name, *lines, **option):
     __View__.__init__(self,
                       chart_name,
                       lines=L(*lines),
                       opts=M(),
                       data=L())
     if len(self.lines) == 0: self.lines << 'Data'
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option[
         'height'] if 'height' in option else ''
コード例 #10
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self,
              title,
              msg='',
              panel='default',
              icon='fa-info-circle',
              link=None):
     __View__.__init__(self,
                       'infonoti',
                       title=title,
                       msg=msg,
                       panel=panel,
                       icon=icon,
                       link=self.__create_link__(link))
コード例 #11
0
ファイル: collection.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, value, min=0, max=100, **option):
     __View__.__init__(self,
                       'justgage',
                       value=value,
                       min=min,
                       max=max,
                       opts=M())
     if 'desc' in option: self.opts['title'] = option['desc']
     self._link = self.__create_link__(
         option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option[
         'title'] if 'title' in option else ''
     self._height = ' style="height:%dpx;"' % option[
         'height'] if 'height' in option else ''
コード例 #12
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self,
              title,
              count,
              desc='',
              panel='default',
              icon='fa-info-circle',
              link=None):
     __View__.__init__(self,
                       'infopanel',
                       title=title,
                       count=count,
                       desc=desc,
                       panel=panel,
                       icon=icon,
                       link=self.__create_link__(link))
コード例 #13
0
ファイル: chartist.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, *lines, **option):
     __View__.__init__(
         self,
         "ctst_slide",
         lines=L(*lines),
         opts=M(seriesBarDistance=5),
         labels=L(),
         series=L(),
         size=5,
         anima=False,
     )
     if len(self.lines) > 0:
         for l in self.lines:
             self.series << L()
         self.add = self.__addMapped__
     else:
         self.add = self.__addLinear__
         self.opts["distributeSeries"] = True
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
コード例 #14
0
ファイル: collection.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, value, min=0, max=100, **option):
     __View__.__init__(self, 'justgage', value=value, min=min, max=max, opts=M())
     if 'desc' in option: self.opts['title'] = option['desc']
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx;"' % option['height'] if 'height' in option else ''
コード例 #15
0
ファイル: chartist.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, **option):
     __View__.__init__(self, "ctst_donut", opts=M(donutWidth="100%"), labels=L(), series=L())
     self._link = self.__create_link__(option["link"]) if "link" in option else ""
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option["title"] if "title" in option else ""
     if "height" in option:
         self.opts["height"] = str(option["height"]) + "px"
コード例 #16
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, *cols, **option):
     __View__.__init__(self, 'layout_row', cols=L())
     for col in cols:
         if instof(col, Col): self.cols << col
         else: self.cols << Col(col)
コード例 #17
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, init_scr='', init_loc='', init_cmd='', line_cnt=200):
     __View__.__init__(self, 'terminal', command=init_cmd)
     self.setScreen(init_scr)
     self.setLocation(init_loc)
     self.line_cnt = line_cnt
コード例 #18
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
コード例 #19
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, title, count, desc='', panel='default', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infopanel', title=title, count=count, desc=desc, panel=panel, icon=icon, link=self.__create_link__(link))
コード例 #20
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, title, msg='', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infoblock', title=title, msg=msg, icon=icon)
     self._link = self.__create_link__(link)
コード例 #21
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, *rows, **option):
     __View__.__init__(self, 'layout', rows=L(*rows))
     self._border = ' style="border: %dpx solid %s;"' % (
         option['border'][0],
         option['border'][1]) if 'border' in option else ''
コード例 #22
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, init_scr='', init_loc='', init_cmd='', line_cnt=200):
     __View__.__init__(self, 'terminal', command=init_cmd)
     self.setScreen(init_scr)
     self.setLocation(init_loc)
     self.line_cnt = line_cnt
コード例 #23
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
コード例 #24
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
コード例 #25
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
コード例 #26
0
ファイル: morris.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, **option):
     __View__.__init__(self, 'morr_donut', data=L())
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
コード例 #27
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
コード例 #28
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, *cols, **option):
     __View__.__init__(self, 'layout_row', cols=L())
     for col in cols:
         if instof(col, Col): self.cols << col
         else: self.cols << Col(col)
コード例 #29
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, title, msg='', panel='default', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infonoti', title=title, msg=msg, panel=panel, icon=icon, link=self.__create_link__(link))
コード例 #30
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
コード例 #31
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, doc, link=None):
     __View__.__init__(self, 'infodoc', doc=doc)
     self._link = self.__create_link__(link)
コード例 #32
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self):
     __View__.__init__(self, 'empty')
コード例 #33
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, submit, **kargs):
     __View__.__init__(self, 'form', **kargs)
     self._submit = submit
     self._order = L()
コード例 #34
0
 def __init__(self, **option):
     __View__.__init__(self, 'ctst_donut', opts=M(donutWidth='100%'), labels=L(), series=L())
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
コード例 #35
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, *rows, **option):
     __View__.__init__(self, 'layout', rows=L(*rows))
     self._border = ' style="border: %dpx solid %s;"' % (option['border'][0], option['border'][1]) if 'border' in option else ''
コード例 #36
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
コード例 #37
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, view, link=None):
     __View__.__init__(self, 'plain', view=view)
     self._link = self.__create_link__(link)
コード例 #38
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, html):
     __View__.__init__(self, 'html', html=html)
コード例 #39
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self):
     __View__.__init__(self, 'empty')
コード例 #40
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, text, link=None, height=None):
     __View__.__init__(self, 'text', text=text)
     self._link = self.__create_link__(link)
コード例 #41
0
ファイル: morris.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, chart_name, *lines, **option):
     __View__.__init__(self, chart_name, lines=L(*lines), opts=M(), data=L())
     if len(self.lines) == 0: self.lines << 'Data'
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     self._height = ' style="height:%dpx"' % option['height'] if 'height' in option else ''
コード例 #42
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self):
     __View__.__init__(self, 'hlist', item=L())
コード例 #43
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, msg):
     __View__.__init__(self, 'error', doc=msg)
コード例 #44
0
ファイル: basic.py プロジェクト: whchoi98/ciscowebkit
 def __init__(self, title, msg='', icon='fa-info-circle', link=None):
     __View__.__init__(self, 'infoblock', title=title, msg=msg, icon=icon)
     self._link = self.__create_link__(link)
コード例 #45
0
 def __init__(self, *lines, **option):
     __View__.__init__(self, 'ctst_area', lines=L(*lines), opts=M(), labels=L(), series=L(), anima=False)
     for l in self.lines: self.series << L()
     self._link = self.__create_link__(option['link']) if 'link' in option else ''
     self._title = '<h3 class="cw-css-elem-title">%s</h3>' % option['title'] if 'title' in option else ''
     if 'height' in option: self.opts['height'] = str(option['height']) + 'px'
コード例 #46
0
ファイル: basic.py プロジェクト: CiscoKorea/ciscowebkit
 def __init__(self, title, view, panel='default', icon='fa-archive', link=None):
     __View__.__init__(self, 'panel', view=view)
     self._title = title
     self._panel = panel
     self._icon = icon
     self._link = self.__create_link__(link)