SHARE
TWEET

Untitled

a guest Feb 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class IAssessment(interface):
  2.     assessment_item=schema.Choice(
  3.         title=u"Assessment Item",
  4.         values=[u"Item 1",u"Item 2"],
  5.         required=False
  6.     )
  7.     reference=schema.TextLine(title=u"Reference",required=False)
  8.  
  9.  
  10. class Application(form.Schema,IImageScaleTraversable):
  11.     form.widget(app_assessment=DataGridFieldFactory)
  12.     app_assessment=schema.List(
  13.         title=u"Application Assessment",
  14.         value_type=DictRow(title=u"Application Assessment",schema=IAssessment)
  15.     )
  16.    
  17. assessment_item=schema.Choice(
  18.     title=u"Assessment Item",
  19.     vocabulary=assessmentItems,
  20.     required=False
  21. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top