def __call__(self, context=None): items = ( SimpleTerm(value='temple', title=_(u'TemPle')), SimpleTerm(value='bixiewu', title=_(u'BiXieWu')), SimpleTerm(value='wuying', title=_(u'WyYing')), ) return SimpleVocabulary(items)
class ITheater(form.Schema): """ CRGIS Theater Type """ # If you want a schema-defined interface, delete the form.model # line below and delete the matching file in the models sub-directory. # If you want a model-based interface, edit # models/theater.xml to define the content type # and add directives here as necessary. #form.model("models/theater.xml") title = schema.TextLine(title=_(u"Title"), ) era = schema.TextLine( title=_(u"Common Era"), required=False, ) facing = schema.TextLine( title=_(u"Facing"), required=False, ) address = schema.TextLine( title=_(u"Address"), required=False, )
def __call__(self, context=None): items = ( SimpleTerm(value='village', title=_(u'village')), SimpleTerm(value='wall', title=_(u'wall')), SimpleTerm(value='roof', title=_(u'roof')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='exact', title=_(u'Exact')), SimpleTerm(value='fuzzy', title=_(u'Fuzzy')), SimpleTerm(value='unknown', title=_(u'Unknown')), ) return SimpleVocabulary(items)
class ISchedule(model.Schema): """Schedule Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) body = RichTextField( title=_(u"Body"), required=False, ) temples = RelationList( title=_(u"Related Temples"), default=[], value_type=RelationChoice( title=u'Related Temple', source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'temples', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } )
def __call__(self, context=None): items = ( SimpleTerm(value='male', title=_(u'male')), SimpleTerm(value='female', title=_(u'female')), SimpleTerm(value='unknown', title=_(u'unknown')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='luck00', title=_(u'luck00', default=u'NO')), SimpleTerm(value='luck01', title=_(u'luck01', default=u'ST')), SimpleTerm(value='luck02', title=_(u'luck02', default=u'HD')), SimpleTerm(value='luck03', title=_(u'luck03', default=u'OT')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='raising', title=_(u'Raising')), SimpleTerm(value='private', title=_(u'Private')), SimpleTerm(value='public', title=_(u'Public')), SimpleTerm(value='other', title=_(u'Other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='governmental', title=_(u'Governmental')), SimpleTerm(value='academic', title=_(u'Academic')), SimpleTerm(value='fieldwork', title=_(u'Fieldwork')), SimpleTerm(value='other', title=_(u'Other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='JuLuo', title=_(u'JuLuo')), SimpleTerm(value='LuKuo', title=_(u'LuKuo')), SimpleTerm(value='SiRen', title=_(u'SiRen')), SimpleTerm(value='other', title=_(u'other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='ymmy01', title=_(u'ymmy01', default=u'PHM')), SimpleTerm(value='ymmy02', title=_(u'ymmy02', default=u'DCM')), SimpleTerm(value='ymmy03', title=_(u'ymmy03', default=u'APM')), SimpleTerm(value='ymmy04', title=_(u'ymmy04', default=u'DSM')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='nlqs01', title=_(u'nlqs01', default=u'GDMZ')), SimpleTerm(value='nlqs02', title=_(u'nlqs02', default=u'BGMZ')), SimpleTerm(value='nlqs03', title=_(u'nlqs03', default=u'XGMZ')), SimpleTerm(value='nlqs04', title=_(u'nlqs04', default=u'ZHMZ')), SimpleTerm(value='nlqs05', title=_(u'nlqs05', default=u'WNQS')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='standing', title=_(u'standing')), SimpleTerm(value='crouching', title=_(u'crouching')), SimpleTerm(value='lying', title=_(u'lying')), SimpleTerm(value='sitting', title=_(u'sitting')), SimpleTerm(value='reclining', title=_(u'reclining')), ) return SimpleVocabulary(items)
class IPilgrimage(model.Schema): """Pilgrimage Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) body = RichTextField( title=_(u"Body"), required=False, )
def __call__(self, context=None): items = ( SimpleTerm(value='xhly01', title=_(u'xhly01', default=u'ZX')), SimpleTerm(value='xhly02', title=_(u'xhly02', default=u'XH')), SimpleTerm(value='xhly03', title=_(u'xhly03', default=u'BK')), SimpleTerm(value='xhly04', title=_(u'xhly04', default=u'SM')), SimpleTerm(value='xhly05', title=_(u'xhly05', default=u'WC')), SimpleTerm(value='xhly06', title=_(u'xhly06', default=u'NS')), SimpleTerm(value='xhly07', title=_(u'xhly07', default=u'FL')), SimpleTerm(value='xhly08', title=_(u'xhly08', default=u'ZS')), SimpleTerm(value='xhly09', title=_(u'xhly09', default=u'AZ')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='history', title=_(u'Establishment History')), SimpleTerm(value='worship', title=_(u'Worship')), SimpleTerm(value='introduction', title=_(u'Introduction')), SimpleTerm(value='overview', title=_(u'Building Overview')), SimpleTerm(value='antiquity', title=_(u'Antiquity')), SimpleTerm(value='narrate', title=_(u'Narrate')), SimpleTerm(value='non_narrate', title=_(u'Non Narrate')), SimpleTerm(value='spatial', title=_(u'Spatial Attribute')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='JuLuoZhenSha', title=_(u'JuLuoZhenSha')), SimpleTerm(value='AnZhenLuKou', title=_(u'AnZhenLuKou')), SimpleTerm(value='LuChong', title=_(u'LuChong')), SimpleTerm(value='ZhenFeng', title=_(u'ZhenFeng')), SimpleTerm(value='ZhenShui', title=_(u'ZhenShui')), SimpleTerm(value='FenMu', title=_(u'FenMu')), SimpleTerm(value='HaiBian', title=_(u'HaiBian')), SimpleTerm(value='WuChong', title=_(u'WuChong')), ) return SimpleVocabulary(items)
class IPilgrimage(model.Schema): """Pilgrimage Type""" id = schema.TextLine( title=_(u"Code"), required=True, description=_( u"A String Based on Abbreviation of Administrative Area.")) title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) body = RichTextField( title=_(u"Body"), required=False, )
class ISchedule(model.Schema): """Schedule Type""" id = schema.TextLine( title=_(u"Code"), required=True, description=_( u"A String Based on Abbreviation of Administrative Area.")) title = schema.TextLine( title=_(u"Title"), required=True, ) description = schema.Text( title=_(u"Description"), required=False, ) body = RichTextField( title=_(u"Body"), required=False, ) temples = RelationList( title=_(u"Related Temples"), required=False, default=[], value_type=RelationChoice(title=u"Related Temple", source=CatalogSource(portal_type='Temple')), )
def __call__(self, context=None): items = ( SimpleTerm(value='buddhism', title=_(u'rl_bd', default=u'Buddhism')), SimpleTerm(value='taoism', title=_(u'rl_to', default=u'Taoism')), SimpleTerm(value='confucianism', title=_(u'rl_cf', default=u'Confucianism')), SimpleTerm(value='liism', title=_(u'rl_li', default=u'Liism')), SimpleTerm(value='ikuantao', title=_(u'rl_ik', default=u'IKuanTao')), SimpleTerm(value='tienti', title=_(u'rl_tt', default=u'TienTi')), SimpleTerm(value='tenrikyo', title=_(u'rl_tr', default=u'TenRiKyo')), SimpleTerm(value='syuanyuanjiao', title=_(u'rl_sy', default=u'SyuanYuanJiao')), SimpleTerm(value='other', title=_(u'rl_ot', default=u'Other')), ) return SimpleVocabulary(items)
class IBuddhist(model.Schema): """Buddhist Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) area = schema.TextLine( title=_(u"Administrative Area"), required=False, ) fenlei = schema.TextLine( title=_(u"Category"), required=False, ) text = RichTextField( title=_(u"Text"), required=False, )
def __call__(self, context=None): items = ( SimpleTerm(value='stone', title=_(u'stone')), SimpleTerm(value='mud', title=_(u'mud')), SimpleTerm(value='coment', title=_(u'coment')), SimpleTerm(value='brick', title=_(u'brick')), SimpleTerm(value='ceramics', title=_(u'ceramics')), SimpleTerm(value='wood', title=_(u'wood')), SimpleTerm(value='other', title=_(u'other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='wyxx01', title=_(u'wyxx01', default=u'SC')), SimpleTerm(value='wyxx02', title=_(u'wyxx02', default=u'QWF')), SimpleTerm(value='wyxx03', title=_(u'wyxx03', default=u'QWN')), SimpleTerm(value='wyxx04', title=_(u'wyxx04', default=u'WCF')), SimpleTerm(value='wyxx05', title=_(u'wyxx05', default=u'WCN')), SimpleTerm(value='wyxx06', title=_(u'wyxx06', default=u'WJ')), SimpleTerm(value='wyxx07', title=_(u'wyxx07', default=u'OT')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='buddhism', title=_(u'bd_bd', default=u'Buddhism')), SimpleTerm(value='folk', title=_(u'bd_fk', default=u'Folk')), SimpleTerm(value='ikuantao', title=_(u'bd_ik', default=u'IKuanTao')), SimpleTerm(value='private', title=_(u'bd_pv', default=u'Private')), SimpleTerm(value='vegetarianhall', title=_(u'bd_vh', default=u'VegetarianHall')), SimpleTerm(value='phoenixhall', title=_(u'bd_ph', default=u'PhoenixHall')), SimpleTerm(value='taoism', title=_(u'bd_to', default=u'Taoism')), SimpleTerm(value='other', title=_(u'bd_ot', default=u'Other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='address', title=_(u'GeoCoder')), SimpleTerm(value='gps', title=_(u'GPS')), SimpleTerm(value='gisref', title=_(u'GIS Reference')), SimpleTerm(value='map', title=_(u'Map')), SimpleTerm(value='notyet', title=_(u'Not Yet')), SimpleTerm(value='other', title=_(u'Other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='person', title=_(u'Person')), SimpleTerm(value='committee', title=_(u'Committee')), SimpleTerm(value='foundation', title=_(u'Foundation')), SimpleTerm(value='deacon', title=_(u'Deacon')), SimpleTerm(value='government', title=_(u'Government')), SimpleTerm(value='other', title=_(u'Other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='medicine00', title=_(u'medicine00', default=u'NO')), SimpleTerm(value='medicine01', title=_(u'medicine01', default=u'DR')), SimpleTerm(value='medicine02', title=_(u'medicine02', default=u'XE')), SimpleTerm(value='medicine03', title=_(u'medicine03', default=u'FK')), SimpleTerm(value='medicine04', title=_(u'medicine04', default=u'YK')), SimpleTerm(value='medicine05', title=_(u'medicine05', default=u'OT')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='KeelungCity', title=_(u'Keelung City')), SimpleTerm(value='TaipeiCity', title=_(u'Taipei City')), SimpleTerm(value='NewTaipeiCity', title=_(u'New Taipei City')), SimpleTerm(value='TaoyuanCounty', title=_(u'Taoyuan County')), SimpleTerm(value='HsinchuCounty', title=_(u'Hsinchu County')), SimpleTerm(value='HsinchuCity', title=_(u'Hsinchu City')), SimpleTerm(value='MiaoliCounty', title=_(u'Miaoli County')), SimpleTerm(value='TaichungCity', title=_(u'Taichung City')), SimpleTerm(value='NantouCounty', title=_(u'Nantou County')), SimpleTerm(value='ChanghuaCounty', title=_(u'Changhua County')), SimpleTerm(value='YunlinCounty', title=_(u'Yunlin County')), SimpleTerm(value='ChiayiCity', title=_(u'Chiayi City')), SimpleTerm(value='ChiayiCounty', title=_(u'Chiayi County')), SimpleTerm(value='TainanCity', title=_(u'Tainan City')), SimpleTerm(value='KaohsiungCity', title=_(u'Kaohsiung City')), SimpleTerm(value='PingtungCounty', title=_(u'Pingtung County')), SimpleTerm(value='YilanCounty', title=_(u'Yilan County')), SimpleTerm(value='HualienCounty', title=_(u'Hualien County')), SimpleTerm(value='TaitungCounty', title=_(u'Taitung County')), SimpleTerm(value='PenghuCounty', title=_(u'Penghu County')), SimpleTerm(value='LienchiangCounty', title=_(u'Lienchiang County')), SimpleTerm(value='KinmenCounty', title=_(u'Kinmen County')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='ShiGanDang', title=_(u'ShiGanDang')), SimpleTerm(value='FengShiYe', title=_(u'FengShiYe')), SimpleTerm(value='ShenXiang', title=_(u'ShenXiang')), SimpleTerm(value='BeiWenFuZhou', title=_(u'BeiWenFuZhou')), SimpleTerm(value='Ta', title=_(u'Ta')), SimpleTerm(value='JianShi', title=_(u'JianShi')), SimpleTerm(value='ShanHaiZhen', title=_(u'ShanHaiZhen')), SimpleTerm(value='BaGua', title=_(u'BaGua')), SimpleTerm(value='QiWu', title=_(u'QiWu')), SimpleTerm(value='ZhaoBi', title=_(u'ZhaoBi')), SimpleTerm(value='ShenShou', title=_(u'ShenShou')), SimpleTerm(value='ZhiWu', title=_(u'ZhiWu')), SimpleTerm(value='other', title=_(u'other')), ) return SimpleVocabulary(items)
def __call__(self, context=None): items = ( SimpleTerm(value='yes', title=_(u'yes')), SimpleTerm(value='no', title=_(u'no')), ) return SimpleVocabulary(items)