None
@view_config(renderer="templates/form.pt", name="unicodeeverywhere")
@demonstrate("Unicode Everywhere")
def unicodeeverywhere(self):
class Schema(colander.Schema):
field = colander.SchemaNode(
colander.String(),
title=unicode("По оживлённым берегам", "utf-8"),
description=unicode(
"子曰:「學而時習之,不亦說乎?有朋自遠方來,不亦樂乎? " "人不知而不慍,不亦君子乎?」", "utf-8"
),
default=unicode("☃", "utf-8"),
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)