23 lines
511 B
Python
23 lines
511 B
Python
import os
|
|
from scaffold.core.widget import base_widget
|
|
|
|
class control(base_widget):
|
|
"""Image cycle widgets"""
|
|
buttons = []
|
|
count = 0
|
|
|
|
with open(os.path.abspath('./website/widgets/banner_slider.js')) as fp:
|
|
js = [fp.read()]
|
|
|
|
def create(self):
|
|
self.reset()
|
|
|
|
def reset(self):
|
|
self.content = []
|
|
|
|
def append(self, text):
|
|
self.content.append(u'<div class="content">%s</div>' % (text))
|
|
|
|
def render(self):
|
|
return u"".join(self.content)
|