本文整理汇总了Python中twisted.web.template.Element类的典型用法代码示例。如果您正苦于以下问题:Python Element类的具体用法?Python Element怎么用?Python Element使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Element类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, request, db, dates, postcodes):
Element.__init__(self)
self.request = request
self.db = db
self.dates = dates
self.postcodes = postcodes
self.data = self.load_data()
示例2: render
def render(self, request):
request.write("<!doctype html>\n")
return Element.render(self, request)
示例3: __init__
def __init__(self, loader, name):
Element.__init__(self, loader)
self._name = name
示例4: __init__
def __init__(self, content):
Element.__init__(self)
self._content = content
示例5: __init__
def __init__(self, loader, docgetter, has_lineno_col, ob, child):
Element.__init__(self, loader)
self.docgetter = docgetter
self.has_lineno_col = has_lineno_col
self.ob = ob
self.child = child
示例6: __init__
def __init__(self, service, content):
Element.__init__(self)
self.content_element = content
self.service = service
示例7: __init__
def __init__(self, loader, stackFrames):
Element.__init__(self, loader)
self.stackFrames = stackFrames
示例8: __init__
def __init__(self, alertType, text):
Element.__init__(self)
self.alertType = alertType
self.alertText = text
示例9: __init__
def __init__(self, request, db, dates):
Element.__init__(self)
self.request = request
self.db = db
self.dates = dates
示例10: __init__
def __init__(self, baseurl='', revurl='', row={}):
Element.__init__(self)
self.baseurl = baseurl
self.revurl = revurl
self.row = row
示例11: __init__
def __init__(self, worlds, services):
Element.__init__(self)
self.services = services
self.worlds = worlds
示例12: __init__
def __init__(self, automaton):
Element.__init__(self)
self.automaton = automaton
示例13: __init__
def __init__(self):
Element.__init__(self, loader=sample)
self.deferred = Deferred()
示例14: __init__
def __init__(self, datastore):
Element.__init__(self)
self.datastore = datastore
示例15: __init__
def __init__(self, loader, initials, letter):
Element.__init__(self, loader)
self.initials = initials
self.my_letter = letter