class ICollection(model.Schema): model.fieldset('ownership', label='Ownership', fields=('attribution', 'external_description')) attribution = List( title=u'Citation and Attribution', description=u'', required=False, value_type=RichTextField(), ) external_description = RichTextField( title=u'Full description:', description=u'Text describing access to the external landing page', required=False, ) model.fieldset('categorization', label='Categorization', fields=('categories', )) categories = List( title=u'Scientific Categories', description=u'', unique=True, required=False, value_type=Choice(vocabulary='scientific_category_source')) BCCDataGenre = List(title=u'Data Genre', description=u'', unique=True, required=False, value_type=Choice(vocabulary='genre_source'))
class ISubsite(model.Schema): """ """ subsite_header = RichTextField( title=_("subsite_header_label", default="Subsite header"), description=_( "subsite_header_help", default="Insert some text that will be shown as the subsite header" " in each content inside a subsite.", ), required=False, ) subsite_logo = NamedBlobImage( title=_("subsite_logo_label", default="Logo"), description=_( "subsite_logo_help", default="Insert a logo that can be shown in subsite header.", ), required=False, ) subsite_footer = RichTextField( title=_("subsite_footer_label", default="Subsite footer"), description=_( "subsite_footer_help", default="Insert some text that will be shown as the subsite footer" " in each content inside a subsite.", ), required=False, ) subsite_css_class = Choice( title=_("subsite_css_class_label", default="Subsite style"), description=_( "subsite_css_class_help", default="If this subsite should have a custom layout, please " "select one from the following list.", ), required=False, vocabulary="volto.subsites.colors", ) subsite_social_links = SourceText( title=_("subsite_social_links_label", default="Social links"), description=_( "subsite_social_links_help", default="Insert a list of values for social links that will be " "shown in the frontend (if expected).", ), default="[]", ) directives.widget("subsite_header", RichTextFieldWidget) directives.widget("subsite_footer", RichTextFieldWidget)
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, } )
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')), )
class IRichText(model.Schema): text = RichTextField( title=_(u'Text'), description=u"", required=False, ) model.primary('text')
class IDataset(form.Schema): """Interface all datasets inherit from""" rightsstatement = RichTextField( title=u'Rights Statement', description=u"", required=False, )
class IRichText(model.Schema): report = RichTextField( title=_(u'Brief Report'), description=u"", required=False, ) form.widget('report', RichTextFieldWidget)
class IRichText(model.Schema): text = RichTextField( title=_(u'Text'), description=u'', required=False, ) form.widget('text', RichTextFieldWidget) model.primary('text')
class ISource(model.Schema): """Source Type""" title = schema.TextLine(title=_(u'Title'), ) text = RichTextField( title=_(u'Text'), description=u'', required=False, ) directives.widget('text', RichTextFieldWidget) model.primary('text')
class IRichTextCustom(model.Schema): text = RichTextField( title=_(u'Text'), description=u'', required=False, ) dexteritytextindexer.searchable('text') form.widget('text', RichTextFieldWidget) model.primary('text')
class IOverview(model.Schema): overview = RichTextField( title=_(u'Overview'), description= u"Overview for what the content is about. This is longer than " u"the description and allows for rich text", required=False, ) form.widget('overview', RichTextFieldWidget)
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, )
class ISubsite(model.Schema): """ """ subsite_header = RichTextField( title=_("subsite_header_label", default="Subsite header"), description=_( "subsite_header_help", default="Insert some text that will be shown as the subsite header" " in each content inside a subsite.", ), required=False, ) subsite_footer = RichTextField( title=_("subsite_footer_label", default="Subsite footer"), description=_( "subsite_footer_help", default="Insert some text that will be shown as the subsite footer" " in each content inside a subsite.", ), required=False, ) subsite_css_class = Choice( title=_("subsite_css_class_label", default="Subsite style"), description=_( "subsite_css_class_help", default="If this subsite should have a custom layout, please " "select one from the following list.", ), required=False, vocabulary="volto.subsites.colors", ) directives.widget("subsite_header", RichTextFieldWidget) directives.widget("subsite_footer", RichTextFieldWidget)
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 IMail(model.Schema): mail_from = TextLine( title=_('from', u'From'), description=u'', default=u'', ) mail_to = Tuple( title=_('to', u'To'), description=u'', value_type=TextLine(), default=(), required=False, ) mail_cc = Tuple( title=_('cc', u'CC'), description=u'', value_type=TextLine(), default=(), required=False, ) mail_bcc = Tuple( title=_('bcc', u'BCC'), description=u'', value_type=TextLine(), missing_value=(), required=False, ) mail_body = RichTextField( title=_('body', u'Body'), description=u"", required=False, default=RichTextValue(u''), ) form.widget('mail_body', RichTextFieldWidget) model.primary('mail_body')
class IBook(model.Schema): """Interface for Books behavior.""" # exhibition fieldset model.fieldset( 'book', label=_(u'Book', default=u'Book'), fields=['specs', 'author'], ) specs = RichTextField( title=_(u'Specs'), description=u'', required=False, ) form.widget('specs', RichTextFieldWidget) dexteritytextindexer.searchable('notes') author = schema.TextLine(title=_(u"Author"), description=_(u"Enter the name of the author(s)"), default=u"", required=False) model.fieldset( 'shop', label=_(u'Shop', default=u'Shop'), fields=['price', 'soldout'], ) price = schema.TextLine(title=_(u"Price"), description=_(u"Enter the full price"), default=u"", required=False) soldout = schema.Bool( title=_(u"Item is sold out"), default=False, required=False, )
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, )
class IOrgansfolder(form.Schema): """ Organs Folder: Carpeta Unitat que conté Organs de Govern """ informationText = RichTextField( title=_(u"Text informatiu"), description=_(u'Text que es veurà quan el directori no conté cap Organ de Govern visible'), required=False, ) customImage = schema.Bool( title=_(u'Fer servir capcalera personalitzada?'), description=_(u'Si es vol fer servir la imatge estandard o la imatge que es puja a continuació'), required=False, default=False, ) logoOrganFolder = NamedBlobImage( title=_(u"Organs folder logo"), description=_(u'Logo organs folder description'), required=False, )
class IExhibition(model.Schema): """Interface for Exhibition behavior.""" # exhibition fieldset model.fieldset( 'exhibition', label=_(u'Exhibition', default=u'Exhibition'), fields=[ 'priref', 'cm_nummer', 'alternative_title', 'start_date', 'end_date', 'organiser', 'designer', 'documentation', 'notes', 'show_notes', 'persistent_url' ], ) priref = schema.TextLine(title=_(u'priref', default=u'priref'), required=False) cm_nummer = schema.TextLine(title=_(u'cm_nummer', default=u'cm_nummer'), required=False) dexteritytextindexer.searchable('cm_nummer') alternative_title = schema.TextLine(title=_(u'alternative_title', default=u'Alternative title'), required=False) dexteritytextindexer.searchable('alternative_title') start_date = schema.TextLine(title=_(u'start_date', default=u'Start date'), required=False) dexteritytextindexer.searchable('start_date') end_date = schema.TextLine(title=_(u'end_date', default=u'End date'), required=False) dexteritytextindexer.searchable('end_date') organiser = schema.TextLine(title=_(u'organisation', default=u'Organisation'), required=False) dexteritytextindexer.searchable('organiser') designer = schema.TextLine(title=_(u'designer', default=u'Designer'), required=False) dexteritytextindexer.searchable('designer') documentation = ListField(title=_(u'documentation'), value_type=DictRow(title=_(u'documentation'), schema=IDocumentation), required=False) form.widget(documentation=BlockDataGridFieldFactory) dexteritytextindexer.searchable('documentation') notes = RichTextField( title=_(u'Notes'), description=u'', required=False, ) form.widget('notes', RichTextFieldWidget) dexteritytextindexer.searchable('notes') show_notes = schema.Bool(title=_(u'show_notes', default=u'Show notes'), description=_( u'show_notes_description', default=u'Activate to show the notes field'), required=False, default=False) persistent_url = schema.TextLine(title=_(u'persistent_url', default=u'Persistent url'), required=False) dexteritytextindexer.searchable('persistent_url')
class ITalk(model.Schema): """ Marker interface and Dexterity Python Schema for Talk """ title = schema.TextLine( title=_('Talk'), description=u'Title of talk.', required=True ) description = schema.Text( title=_('Description'), description=u'Please provide a description of your talk. This text ' u'will be shown in talks overview and details, so try to arouse ' u'curiosity of attendants.', required=True, ) text = RichTextField( title=_(u'Formatted description'), description=u'Used to better format the description (for presentation purposes).', required=False, ) directives.widget('text', RichTextFieldWidget) duration = schema.Choice( title=_('Duration'), description=u'Choose the talk length. Short will be 20 minutes and ' u'Long will be 40 minutes. Remember that a short talk doesn\'t mean ' u'it\'s a worst talk.', required=True, source=PRESENTATION_DURATION_TYPES, ) level = schema.Choice( title=_('Level'), description=u'What should be the technical level needed to understand' u'this talk? This is useful for people to choose what talks to attend ' u'or not based on their skills.', required=True, source=LEVEL_TYPES, ) audience = schema.List( title=_('Audience'), description=u'What kind of people should be interested listening this' u' talk?', required=True, value_type=schema.Choice(source=AUDIENCE_TYPES), ) topic = schema.List( title=_('Topic'), description=u'Choose one or more topics related to your talk.' u'This will help us to create a better talks schedule.', required=True, value_type=schema.Choice(source=TALK_TOPICS), ) directives.widget('topic', CheckBoxFieldWidget) other_topics = schema.TextLine( title=_('Other topics'), description=_( u'If you selected "Other", please insert your topics here.' ), required=False, ) slides_url = schema.TextLine( title=_('Slides'), description=_(u'Url of slides.'), required=False ) slides_embed = schema.Text( title=_('Embed code for slides'), description=u'', required=False ) video_embed = schema.Text( title=_('Video embed code'), description=_('Embed code for video recording.'), required=False, ) room = schema.Choice( title=_('Room'), description=u'', required=False, vocabulary='ploneconf.vocabularies.Rooms', ) start = schema.Datetime(title=u'Start', required=False) directives.widget( 'start', DatetimeFieldWidget, default_timezone=default_timezone, klass=u'event_start', ) end = schema.Datetime(title=u'End', required=False) directives.widget( 'end', DatetimeFieldWidget, default_timezone=default_timezone, klass=u'event_end', ) is_keynote = schema.Bool(title=u'Is keynote', required=False)
class IKeYi(model.Schema): """KeYi Type""" title = schema.TextLine( title=_(u"KeYi Name"), required=False, ) description = schema.Text( title=_(u"KeYi Other Name"), required=False, ) intro = RichTextField( title=_(u"Introduction KeYi"), required=False, ) daibiao = namedfile.NamedBlobImage( title=_(u"DaiBiao YingXiang"), required=False, ) leibie = schema.Tuple( title=_(u"LeiBie"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'leibie', AjaxSelectFieldWidget, vocabulary='keyi.leibie' ) niandai = schema.TextLine( title=_(u"ZiLiao NianDai"), required=False, ) shumg = schema.Text( title=_(u"ShuMing ShiXiang"), required=False, ) ss_df = RelationList( title=_(u"SuoShu DaoFaTan"), default=[], value_type=RelationChoice( title=u'SSDFT', source=CatalogSource(Type='DaoFaTan') ), required=False, ) directives.widget( 'ss_df', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) chxren = RelationList( title=_(u"ChaoXieRen List"), default=[], value_type=RelationChoice( title=u'ChaoXieRen', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'chxren', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) license = schema.Tuple( title=_(u"License"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'license', AjaxSelectFieldWidget, vocabulary='keyi.license' ) digit = schema.Tuple( title=_(u"Digitalization"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'digit', AjaxSelectFieldWidget, vocabulary='keyi.digit' ) geshi = schema.Text( title=_(u"ZiLiao GeShi"), description=_(u"Length, Width, Height, Material"), required=False, ) coordinate = schema.Tuple( title=_(u"Coordinate Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'coordinate', AjaxSelectFieldWidget, vocabulary='crgis.coordinate' ) data_src = schema.Tuple( title=_(u"Data Source"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'data_src', AjaxSelectFieldWidget, vocabulary='keyi.data_src' ) data_frm = schema.Tuple( title=_(u"Data From"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'data_frm', AjaxSelectFieldWidget, vocabulary='keyi.data_frm' ) prvdr = schema.TextLine( title=_(u"Provider"), required=False, ) tg_df = RelationList( title=_(u"TiGong DaoFaTan"), default=[], value_type=RelationChoice( title=u'TGDFT', source=CatalogSource(Type='DaoFaTan') ), required=False, ) directives.widget( 'tg_df', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) tg_ds = RelationList( title=_(u"TiGong DaoShi"), default=[], value_type=RelationChoice( title=u'TGDS', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'tg_ds', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) df_type = schema.Tuple( title=_(u"DaoFaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'df_type', AjaxSelectFieldWidget, vocabulary='dao.df_type' ) dt_type = schema.Tuple( title=_(u"DaoTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'dt_type', AjaxSelectFieldWidget, vocabulary='dao.dt_type' ) ft_type = schema.Tuple( title=_(u"FaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'ft_type', AjaxSelectFieldWidget, vocabulary='dao.ft_type' ) youlai = RichTextField( title=_(u"YouLai"), required=False, ) file = namedfile.NamedBlobFile( title=_(u"ZiLiao NeiRong"), required=False, ) academic = RichTextField( title=_(u"Academic Works"), required=False, ) literature = RichTextField( title=_(u"Literature Reference"), required=False, ) gngxian = RichTextField( title=_(u"GongXianZhe"), required=False, )
class IPerformance(model.Schema): """Interface for Performance behavior.""" # performance fieldset model.fieldset( 'performance', label=_(u'Sync fields', default=u'Sync fields'), fields=[ 'performance_id', 'season', 'event', 'eventType', 'performance_title', 'subtitle', 'tags', 'performanceStatus', 'onsale', 'startOnlineSalesDate', 'endOnlineSalesDate', 'statusMessage', 'percentageTaken', 'price', 'performance_availability', 'arrangements' ], ) waiting_list = schema.Bool(title=_( u'Show waiting list button when this performance is sold out', default=u'Show waiting list button when this performance is sold out'), required=False, default=True) performance_id = schema.TextLine(title=_(u'Performance ID', default=u'Performance ID'), required=False) season = schema.TextLine( title=_(u'Season', default=u'Season'), required=False, ) directives.mode(season="display") event = schema.TextLine( title=_(u'Event', default=u'Event'), required=False, ) directives.mode(event="display") eventType = schema.TextLine( title=_(u'Event type', default=u'Event type'), required=False, ) directives.mode(eventType="display") performance_title = schema.TextLine( title=_(u'Title', default=u'Title'), required=False, ) directives.mode(performance_title="display") subtitle = schema.TextLine( title=_(u'Subtitle', default=u'Subtitle'), required=False, ) directives.mode(subtitle="display") tags = schema.Tuple( title=_(u'Tags', default=u'Tags'), value_type=schema.TextLine(), required=False, missing_value=(), ) directives.widget('tags', AjaxSelectFieldWidget, vocabulary='plone.app.vocabularies.Keywords') directives.mode(tags="display") performanceStatus = schema.TextLine( title=_(u'Performance status', default=u'Performance status'), required=False, ) directives.mode(performanceStatus="display") onsale = schema.Bool(title=_(u'Onsale', default=u'Onsale'), required=False, default=False) directives.mode(onsale="display") startOnlineSalesDate = schema.TextLine( title=_(u'Start online sales date', default=u'Start online sales date'), required=False, ) directives.mode(startOnlineSalesDate="display") endOnlineSalesDate = schema.TextLine( title=_(u'End online sales date', default=u'End online sales date'), required=False, ) directives.mode(endOnlineSalesDate="display") statusMessage = schema.TextLine(title=_(u'Status message', default=u'Status message'), required=False) directives.mode(statusMessage="display") percentageTaken = schema.TextLine(title=_(u'Percentage taken', default=u'Percentage taken'), required=False) directives.mode(percentageTaken="display") price = RichTextField(title=_(u'Price'), description=u'', required=False) directives.widget('price', RichTextFieldWidget) directives.mode(price="display") performance_availability = RichTextField( title=_(u'Performance availability'), description=u'', required=False) directives.widget('performance_availability', RichTextFieldWidget) directives.mode(performance_availability="display") arrangements = RichTextField(title=_(u'Arragementen'), description=u'', required=False) directives.widget('arrangements', RichTextFieldWidget) directives.mode(arrangements="display")
class ITemple(model.Schema): """Temple Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) data_src = schema.Choice( title=_(u"Data Source"), required=False, vocabulary=u"data_src", ) coordinate = schema.Choice( title=_(u"Coordinate Type"), required=False, vocabulary=u"coordinate", ) facing = schema.TextLine( title=_(u"Sitting Facing"), required=False, ) deity_host = schema.Tuple( title=_(u"Deity Host"), required=False, value_type=schema.Choice( vocabulary=u'deity_name', ), missing_value=() ) deity_host_o = schema.TextLine( title=_(u"Deity Host Other"), required=False, ) deity_host_a = schema.TextLine( title=_(u"Deity Host Alias"), required=False, ) deity_company = schema.Tuple( title=_(u"Deity Company"), required=False, value_type=schema.Choice( vocabulary=u'deity_name', ), missing_value=() ) religion = schema.Choice( title=_(u"Religion Type"), required=False, vocabulary=u"religion", ) religion_o = schema.TextLine( title=_(u"Religion Type Other"), required=False, ) building = schema.Choice( title=_(u"Building Type"), required=False, vocabulary=u"building", ) building_o = schema.TextLine( title=_(u"Building Type Other"), required=False, ) registered = schema.TextLine( title=_(u"Registered Name"), required=False, ) funding = schema.Choice( title=_(u"Funding Type"), required=False, vocabulary=u"funding", ) organizing = schema.Choice( title=_(u"Organizing Type"), required=False, vocabulary=u"organizing", ) organizing_o = schema.TextLine( title=_(u"Organizing Type Other"), required=False, ) address = schema.TextLine( title=_(u"Address"), required=False, ) in_charge = schema.TextLine( title=_(u"Person In Charge"), required=False, ) tel = schema.TextLine( title=_(u"Telephone"), required=False, ) homepage = schema.TextLine( title=_(u"Homepage"), required=False, ) era = schema.TextLine( title=_(u"Estimated Earliest Founding Year"), required=False, ) era_end = schema.TextLine( title=_(u"Estimated Latest Founding Year"), required=False, ) year_accuracy = schema.Choice( title=_(u"Year Accuracy"), required=False, vocabulary=u"year_accuracy", ) history = RichTextField( title=_(u"Establishment History"), required=False, ) era_1 = schema.TextLine( title=_(u"Established Year by Taiwan Temple Collection"), required=False, ) era_2 = schema.TextLine( title=_(u"Established Year by Taiwan Temple Overview"), required=False, ) era_ref = RichTextField( title=_(u"References on Establishment"), required=False, ) deity_accompany = RichTextField( title=_(u"Deities Accompany"), required=False, ) worship = RichTextField( title=_(u"Worship"), required=False, ) introduction = RichTextField( title=_(u"Introduction"), required=False, ) overview = RichTextField( title=_(u"Building Overview"), required=False, ) antiquity = RichTextField( title=_(u"Antiquity"), required=False, ) narrate = RichTextField( title=_(u"Narrate"), required=False, ) non_narrate = RichTextField( title=_(u"Non Narrate"), required=False, ) academic = RichTextField( title=_(u"Academic Works"), required=False, ) literature = RichTextField( title=_(u"Literature Reference"), required=False, ) fill_in = schema.TextLine( title=_(u"Filling Person"), required=False, ) fill_date = schema.TextLine( title=_(u"Filling Date"), required=False, ) model.fieldset('appendix', label=_(u'Appendix'), fields=['jstq', 'jstq_o', 'jsfw', 'xyfw', 'flxt', 'flxt_o', 'ymmy', 'ymmy_o', 'xhly', 'xhly_o', 'nlqs', 'nlqs_o', 'wyxx', 'wyxx_o', 'medicine', 'luck', 'organization', 'desc_o']) jstq = schema.Tuple( title=_(u"JiSiZuQun"), required=False, value_type=schema.Choice( vocabulary=u"jstq", ), missing_value=() ) jstq_o = schema.TextLine( title=_(u"JiSiZuQun Other"), required=False, ) jsfw = RichTextField( title=_(u"JiSiFanWei"), required=False, ) xyfw = RichTextField( title=_(u"XinYangFangWei"), required=False, ) flxt = schema.Tuple( title=_(u"FenLingXiTong"), required=False, value_type=schema.Choice( vocabulary=u"flxt", ), missing_value=() ) flxt_o = schema.TextLine( title=_(u"FenLingXiTong Other"), required=False, ) ymmy = schema.Tuple( title=_(u"YiMingMiaoYu"), required=False, value_type=schema.Choice( vocabulary=u"ymmy", ), missing_value=() ) ymmy_o = schema.TextLine( title=_(u"YiMingMiaoYu Other"), required=False, ) xhly = schema.Tuple( title=_(u"XiangHuoLaiYuan"), required=False, value_type=schema.Choice( vocabulary=u"xhly", ), missing_value=() ) xhly_o = schema.TextLine( title=_(u"XiangHuoLaiYuan Other"), required=False, ) nlqs = schema.Tuple( title=_(u"NianLiQingSheng"), required=False, value_type=schema.Choice( vocabulary=u"nlqs", ), missing_value=() ) nlqs_o = schema.TextLine( title=_(u"NianLiQingSheng Other"), required=False, ) wyxx = schema.Tuple( title=_(u"WangYeXianXiang"), required=False, value_type=schema.Choice( vocabulary=u"wyxx", ), missing_value=() ) wyxx_o = schema.TextLine( title=_(u"WangYeXianXiang Other"), required=False, ) medicine = schema.Tuple( title=_(u"Medicine Divination"), required=False, value_type=schema.Choice( vocabulary=u"medicine", ), missing_value=() ) luck = schema.Tuple( title=_(u"Luck Divination"), required=False, value_type=schema.Choice( vocabulary=u"luck", ), missing_value=() ) organization = RichTextField( title=_(u"Believer Organization"), required=False, ) desc_o = RichTextField( title=_(u"Description Other"), required=False, ) model.fieldset('wangye', label=_(u'WangYe'), fields=['wysm', 'yswt', 'dtxs', 'freq', 'wttz', 'swxs', 'ysgs']) wysm = schema.TextLine( title=_(u"WangYe Name"), required=False, ) yswt = schema.TextLine( title=_(u"YungS WangTsuan"), required=False, ) dtxs = schema.Tuple( title=_(u"DaiTien XuanSho"), required=False, value_type=schema.TextLine(), missing_value=() ) freq = schema.Tuple( title=_(u"Frequence"), required=False, value_type=schema.TextLine(), missing_value=() ) wttz = schema.Tuple( title=_(u"WangTsuan Material"), required=False, value_type=schema.TextLine(), missing_value=() ) swxs = schema.TextLine( title=_(u"SungWang XingShi"), required=False, ) ysgs = RichTextField( title=_(u"YSGS"), required=False, )
class ISlideshow(Schema): title = schema.TextLine( title=_(u"Title"), required=False, ) slide1_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '1'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide1_text') slide1_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '1'}), description=u'', required=False, ) form.widget('slide1_text', RichTextFieldWidget) slide2_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '2'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide2_text') slide2_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '2'}), description=u'', required=False, ) form.widget('slide2_text', RichTextFieldWidget) slide3_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '3'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide3_text') slide3_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '3'}), description=u'', required=False, ) form.widget('slide3_text', RichTextFieldWidget) slide4_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '4'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide4_text') slide4_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '4'}), description=u'', required=False, ) form.widget('slide4_text', RichTextFieldWidget) slide5_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '5'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide5_text') slide5_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '5'}), description=u'', required=False, ) form.widget('slide5_text', RichTextFieldWidget) slide6_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '6'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide6_text') slide6_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '6'}), description=u'', required=False, ) form.widget('slide6_text', RichTextFieldWidget) slide7_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '7'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide7_text') slide7_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '7'}), description=u'', required=False, ) form.widget('slide7_text', RichTextFieldWidget) slide8_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '8'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide8_text') slide8_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '8'}), description=u'', required=False, ) form.widget('slide8_text', RichTextFieldWidget) slide9_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '9'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide9_text') slide9_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '9'}), description=u'', required=False, ) form.widget('slide9_text', RichTextFieldWidget) slide10_image = namedfile.NamedBlobImage( title=_(u'label_slideimage', default=u'Slide Bild ${number}', mapping={'number': '10'}), description=u'', required=False, ) dexteritytextindexer.searchable('slide10_text') slide10_text = RichTextField( title=_(u'label_slidetext', default=u'Slide Text ${number}', mapping={'number': '10'}), description=u'', required=False, ) form.widget('slide10_text', RichTextFieldWidget)
class IBiXieWu(model.Schema): """BiXieWu Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) data_src = schema.Choice( title=_(u"Data Source"), required=False, vocabulary=u'data_src', ) lct_cou = schema.TextLine( title=_(u"County"), required=False, ) lct_tow = schema.TextLine( title=_(u"Town"), required=False, ) lct_vil = schema.TextLine( title=_(u"Village"), required=False, ) coordinate = schema.Choice( title=_(u"Coordinate Type"), required=False, vocabulary=u"coordinate", ) btype = schema.Choice( title=_(u"BiXieWu_Type"), required=False, vocabulary=u"bixiewu", ) era = schema.TextLine( title=_(u"Common Era"), required=False, ) era_ref = RichTextField( title=_(u"Era Reference"), required=False, ) facing = schema.TextLine( title=_(u"Facing"), required=False, ) material = schema.Choice( title=_(u"Material"), required=False, vocabulary=u"material", ) volumn = RichTextField( title=_(u"Volumn"), required=False, ) localtional = schema.Choice( title=_(u"Locational Attribute"), required=False, vocabulary=u"locational", ) purpose = schema.Tuple( title=_(u"Purpose"), required=False, value_type=schema.Choice( vocabulary=u"purpose", ), missing_value=() ) worship = RichTextField( title=_(u"Worship Description"), required=False, ) establishment = RichTextField( title=_(u"Establishment Description"), required=False, ) spatial = RichTextField( title=_(u"Spatial Attribute"), required=False, ) environment = RichTextField( title=_(u"Environmental Description"), required=False, ) reference = RichTextField( title=_(u"Reference"), required=False, ) remark = RichTextField( title=_(u"Remark"), required=False, ) r_temples = RelationList( title=_(u"Related Temples"), default=[], value_type=RelationChoice( title=u"Related", source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'r_temples', RelatedItemsFieldWidget, vocabulary='plone.app.vocabularies.Catalog', pattern_options={ 'recentlyUsed': True, } ) model.fieldset('fengshiye', label=_(u'FengShiYe'), fields=['village', 'color', 'genre', 'posture', 'gender', 'shi_d', 'shi_w', 'shi_h', 'shi_t', 'base_l', 'base_w', 'base_h']) village = schema.TextLine( title=_(u"Village Name"), required=False, ) color = schema.TextLine( title=_(u"Color"), required=False, ) genre = schema.Choice( title=_(u"Genre"), required=False, vocabulary=u"genre", ) posture = schema.Choice( title=_(u"Posture"), required=False, vocabulary=u"posture", ) gender = schema.Choice( title=_(u"Gender"), required=False, vocabulary=u"gender", ) shi_d = schema.TextLine( title=_(u"ShiZi Depth"), required=False, ) shi_w = schema.TextLine( title=_(u"ShiZi Width"), required=False, ) shi_h = schema.TextLine( title=_(u"ShiZi Height"), required=False, ) shi_t = schema.TextLine( title=_(u"ShiZi Head"), required=False, ) base_l = schema.TextLine( title=_(u"Base Length"), required=False, ) base_w = schema.TextLine( title=_(u"Base Width"), required=False, ) base_h = schema.TextLine( title=_(u"Base Height"), required=False, )
class IPhoto(model.Schema): """Photo Type""" title = schema.TextLine( title=_(u"Title"), required=False, ) description = schema.Text( title=_(u"Description"), required=False, ) image = namedfile.NamedBlobImage( title=_(u"Image"), ) category = schema.Tuple( title=_(u"Category"), required=False, value_type=schema.Choice( vocabulary=u"category", ), missing_value=() ) attachesTo = schema.Tuple( title=_(u"Attached To"), required=False, value_type=schema.Choice( vocabulary=u"attachesTo", ), missing_value=() ) cou = schema.TextLine( title=_(u"County"), required=False, ) tow = schema.TextLine( title=_(u"Town"), required=False, ) vil = schema.TextLine( title=_(u"Village"), required=False, ) lng = schema.TextLine( title=_(u"Longtitude"), required=False, ) lat = schema.TextLine( title=_(u"Latitude"), required=False, ) year = schema.TextLine( title=_(u"Photo Year"), required=False, ) month = schema.TextLine( title=_(u"Photo Month"), required=False, ) day = schema.TextLine( title=_(u"Photo Day"), required=False, ) owner_name = schema.TextLine( title=_(u"Owner Name"), required=False, ) owner_org = schema.TextLine( title=_(u"Owner Organization"), required=False, ) owner_title = schema.TextLine( title=_(u"Owner Title"), required=False, ) reference = RichTextField( title=_(u"Reference"), required=False, )
class IOrgangovern(form.Schema): """ Organ de Govern """ fieldset('organ', label=_(u'Tab organ'), fields=[ 'title', 'acronim', 'descripcioOrgan', 'fromMail', 'organType', 'logoOrgan', 'visiblefields', 'eventsColor', 'estatsLlista', 'FAQmembres' ]) fieldset( 'assistents', label=_(u'Assistents'), fields=['membresOrgan', 'convidatsPermanentsOrgan', 'adrecaLlista']) fieldset( 'afectats', label=_(u'Afectats'), fields=['adrecaAfectatsLlista'], ) fieldset( 'plantilles', label=_(u'Plantilles'), fields=['bodyMailconvoquing', 'bodyMailSend', 'footerMail', 'footer'], ) dexterity.write_permission(title='genweb.webmaster') dexteritytextindexer.searchable('title') title = schema.TextLine(title=_(u'Organ Title'), required=True) dexterity.write_permission(acronim='genweb.webmaster') dexteritytextindexer.searchable('acronim') acronim = schema.TextLine(title=_(u'Acronym'), description=_(u"Acronym Description"), required=True) dexteritytextindexer.searchable('descripcioOrgan') directives.widget(descripcioOrgan=WysiwygFieldWidget) descripcioOrgan = schema.Text( title=_(u"Organ Govern description"), description=_(u"Organ Govern description help"), required=False, ) dexterity.write_permission(organType='genweb.webmaster') organType = schema.Choice( title=_(u"Organ Govern type"), vocabulary=types, default=_(u'open_organ'), required=True, ) directives.widget(membresOrgan=WysiwygFieldWidget) membresOrgan = schema.Text( title=_(u"Organ Govern members"), description=_(u"Organ Govern members Description"), required=False, ) directives.widget(convidatsPermanentsOrgan=WysiwygFieldWidget) convidatsPermanentsOrgan = schema.Text( title=_(u"Invited members"), description=_(u"Organ permanently invited people description."), required=False, ) fromMail = schema.TextLine( title=_(u'From mail'), description=_(u'Enter the from used in the mail form'), required=True, constraint=checkEmailAddress) adrecaLlista = schema.Text( title=_(u"mail address"), description=_(u"Mail address help"), required=True, ) adrecaAfectatsLlista = schema.Text( title=_(u"Stakeholders mail address"), description=_(u"Stakeholders mail address help."), required=False, ) logoOrgan = NamedBlobImage( title=_(u"Organ logo"), description=_(u'Logo description'), required=False, ) eventsColor = schema.TextLine( title=_(u"Color del esdeveniments"), description=_(u"Events color help"), required=False, ) dexterity.write_permission(estatsLlista='genweb.webmaster') directives.widget(estatsLlista=WysiwygFieldWidget) estatsLlista = schema.Text( title=_(u"Agreement and document labels"), description=_(u"Enter labels, separated by commas."), default=defaultEstats, required=False, ) directives.widget(bodyMailconvoquing=WysiwygFieldWidget) bodyMailconvoquing = schema.Text( title=_(u"Body Mail"), description=_(u"Body Mail convoquing description"), required=False, ) directives.widget(bodyMailSend=WysiwygFieldWidget) bodyMailSend = schema.Text( title=_(u"Body Mail send"), description=_(u"Body Mail send description"), required=False, ) directives.widget(footerMail=WysiwygFieldWidget) footerMail = schema.Text( title=_(u"footerMail"), description=_(u"footerMail description"), required=False, ) directives.widget(footer=WysiwygFieldWidget) dexteritytextindexer.searchable('footer') footer = schema.Text( title=_(u"Footer"), description=_(u"Footer help"), required=False, ) directives.read_permission(visiblefields='genweb.organs.add.organs') directives.write_permission(visiblefields='genweb.organs.add.organs') visiblefields = schema.Bool( title=_(u"Visible fields"), description= _(u"Make the sessions and composition members fields visibles to everyone, omitting the security systems." ), required=False, ) FAQmembres = RichTextField( title=_(u"FAQ membres"), description=_(u'Preguntes freqüents de membres'), required=False, )
class IDaoFaTan(model.Schema): """DaoFaTan Type""" title = schema.TextLine( title=_(u"DaoFaTan Name"), required=False, ) description = schema.Text( title=_(u"DaoFaTan Other Name"), required=False, ) birth = schema.TextLine( title=_(u"Establish Year"), required=False, ) chngli = schema.Text( title=_(u"Establish"), required=False, ) chlirn = RelationList( title=_(u"ChuangLiRen List"), default=[], value_type=RelationChoice( title=u'ChuangLiRen', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'chlirn', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) fuzeren = RelationList( title=_(u"FuZeRen List"), default=[], value_type=RelationChoice( title=u'FuZeRen', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'fuzeren', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) addr = schema.TextLine( title=_(u"Address"), required=False, ) tel = schema.TextLine( title=_(u"Telephone"), required=False, ) data_src = schema.Tuple( title=_(u"Data Source"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'data_src', AjaxSelectFieldWidget, vocabulary='crgis.data_src' ) coordinate = schema.Tuple( title=_(u"Coordinate Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'coordinate', AjaxSelectFieldWidget, vocabulary='crgis.coordinate' ) df_type = schema.Tuple( title=_(u"DaoFaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'df_type', AjaxSelectFieldWidget, vocabulary='dao.df_type' ) dt_type = schema.Tuple( title=_(u"DaoTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'dt_type', AjaxSelectFieldWidget, vocabulary='dao.dt_type' ) ft_type = schema.Tuple( title=_(u"FaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'ft_type', AjaxSelectFieldWidget, vocabulary='dao.ft_type' ) df_attr = schema.Tuple( title=_(u"DaoFaTan Attribute"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'df_attr', AjaxSelectFieldWidget, vocabulary='dao.df_attr' ) shchn = RelationList( title=_(u"ShiCheng List"), default=[], value_type=RelationChoice( title=u'ShiCheng', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'shchn', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) chngyn = RelationList( title=_(u"ChengYuan List"), default=[], value_type=RelationChoice( title=u'ChengYuan', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'chngyn', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) yange = RichTextField( title=_(u"YanGe"), required=False, ) intro = RichTextField( title=_(u"Introduction"), required=False, ) fengsi = schema.Tuple( title=_(u"FengSi"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'fengsi', AjaxSelectFieldWidget, vocabulary='crgis.deity' ) zhusi = schema.Text( title=_(u"ZhuSi"), required=False, ) zhiwai = RichTextField( title=_(u"ZhuSi ZhiWai"), required=False, ) jisi = RichTextField( title=_(u"JiSi"), required=False, ) wenwu = RichTextField( title=_(u"GuWenWu"), required=False, ) keyi = RelationList( title=_(u"KeYi JingBen"), default=[], value_type=RelationChoice( title=u'KeYi', source=CatalogSource(Type='KeYi') ), required=False, ) directives.widget( 'keyi', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) service = RichTextField( title=_(u"Service"), required=False, ) jngchng = RelationList( title=_(u"JingChang FuWu"), default=[], value_type=RelationChoice( title=u'JingChang', source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'jngchng', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) zhumiao = RelationList( title=_(u"ZhuMiao List"), default=[], value_type=RelationChoice( title=u'ZhuMiao', source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'zhumiao', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) yishi = RichTextField( title=_(u"YiShi"), required=False, ) hzds = RelationList( title=_(u"HeZuo DaoShi"), default=[], value_type=RelationChoice( title=u'DaoShi', source=CatalogSource(Type='DaoShi') ), required=False, ) hzys = RichTextField( title=_(u"HeZuo YueShi"), required=False, ) hzhz = RichTextField( title=_(u"HeZuo HuZhi"), required=False, ) academic = RichTextField( title=_(u"Academic Works"), required=False, ) literature = RichTextField( title=_(u"Literature Reference"), required=False, )
class IWithText(Interface): text = RichTextField(title=u"Text")
class IDaoShi(model.Schema): """DaoShi Type""" title = schema.TextLine( title=_(u"DaoShi Name"), required=False, ) description = schema.Text( title=_(u"DaoShi Other Name"), required=False, ) birth = schema.TextLine( title=_(u"Birth Year"), required=False, ) addr = schema.TextLine( title=_(u"Address"), required=False, ) tel = schema.TextLine( title=_(u"Telephone"), required=False, ) dao_hao = schema.TextLine( title=_(u"Dao Hao"), required=False, ) fa_hao = schema.TextLine( title=_(u"Fa Hao"), required=False, ) dao_tan = schema.TextLine( title=_(u"Dao Tan"), required=False, ) dao_zi = schema.TextLine( title=_(u"Dao Zi"), required=False, ) benmin = schema.TextLine( title=_(u"BenMin"), required=False, ) alt_nm = schema.TextLine( title=_(u"Alt Name"), required=False, ) shchn = RelationList( title=_(u"ShiCheng List"), default=[], value_type=RelationChoice( title=u'ShiCheng', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'shchn', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) shotu = RelationList( title=_(u"ShouTu List"), default=[], value_type=RelationChoice( title=u'ShouTu', source=CatalogSource(Type='DaoShi') ), required=False, ) directives.widget( 'shotu', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) zouzhi = RichTextField( title=_(u"ZouZhi"), required=False, ) intro = RichTextField( title=_(u"Introduction"), required=False, ) service = RichTextField( title=_(u"Service"), required=False, ) jngchng = RelationList( title=_(u"JingChang FuWu"), default=[], value_type=RelationChoice( title=u'JingChang', source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'jngchng', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) zhumiao = RelationList( title=_(u"ZhuMiao List"), default=[], value_type=RelationChoice( title=u'ZhuMiao', source=CatalogSource(Type=['Temple','Folder']) ), required=False, ) directives.widget( 'zhumiao', RelatedItemsFieldWidget, pattern_options={ 'recentlyUsed': True, } ) yishi = RichTextField( title=_(u"YiShi"), required=False, ) hzds = RelationList( title=_(u"HeZuo DaoShi"), default=[], value_type=RelationChoice( title=u'DaoShi', source=CatalogSource(Type='DaoShi') ), required=False, ) hzys = RichTextField( title=_(u"HeZuo YueShi"), required=False, ) hzhz = RichTextField( title=_(u"HeZuo HuZhi"), required=False, ) data_src = schema.Tuple( title=_(u"Data Source"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'data_src', AjaxSelectFieldWidget, vocabulary='crgis.data_src' ) coordinate = schema.Tuple( title=_(u"Coordinate Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'coordinate', AjaxSelectFieldWidget, vocabulary='crgis.coordinate' ) df_type = schema.Tuple( title=_(u"DaoFaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'df_type', AjaxSelectFieldWidget, vocabulary='dao.df_type' ) dt_type = schema.Tuple( title=_(u"DaoTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'dt_type', AjaxSelectFieldWidget, vocabulary='dao.dt_type' ) ft_type = schema.Tuple( title=_(u"FaTan Type"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'ft_type', AjaxSelectFieldWidget, vocabulary='dao.ft_type' ) df_attr = schema.Tuple( title=_(u"DaoFaTan Attribute"), required=False, value_type=schema.TextLine(), missing_value=(), ) directives.widget( 'df_attr', AjaxSelectFieldWidget, vocabulary='dao.df_attr' ) academic = RichTextField( title=_(u"Academic Works"), required=False, ) literature = RichTextField( title=_(u"Literature Reference"), required=False, )