Пример #1
0
class IBluechurchpage(model.Schema):
    """ Marker interface for Bluechurchpage
    """

    homepage = URI_bluechurch(
        title=_(u"Website"),
        description=_(u"e.g. www.abcjazzz.com"),
        required=False,
    )

    beteiligte = RelationList(
        title=_(u"Artists"),
        description=_(u"Beteiligte Artists, Veranstalter"),
        required=False,
        value_type=RelationChoice(
            vocabulary='plone.app.vocabularies.Catalog', ))
    widget('beteiligte',
           RelatedItemsFieldWidget,
           pattern_options={
               'selectableTypes': [
                   'dexterity.membrane.bluechurchmembraneprofile',
               ],
               'basePath': get_profiles_base_path,
           })
    model.fieldset('categorization', fields=[
        'beteiligte',
    ])

    model.load('bluechurchpage.xml')
class IBluechurchevent(model.Schema):
    """ Marker interface for Bluechurchevent
    """

    directives.order_after(city='IEventLocation.location')
    city = schema.TextLine(title=_(u'label_city', default=u'City'),
                           description=_(u'help_city', default=u''),
                           required=True)

    directives.order_after(country='city')
    country = schema.Choice(title=_(u'label_country', default=u'Country'),
                            description=_(
                                u'help_country',
                                default=u'Select the country from the list.'),
                            required=True,
                            vocabulary='collective.address.CountryVocabulary')

    widget(eventformen='z3c.form.browser.checkbox.CheckBoxFieldWidget')
    eventformen = schema.Set(
        title=_(u'Event Type'),
        value_type=schema.Choice(vocabulary='rohberg.bluechurch.Eventformen'),
        required=False,
    )

    model.load('bluechurchevent.xml')
Пример #3
0
class IDonationProduct(model.Schema, IImageScaleTraversable):
    """
    A product such as a shirt or an event ticket which can be "purchased"
    through a donation form
    """

    model.load("models/donation_product.xml")
class IBluechurchmembraneprofile(IMember):
    """
    Artist or Event Manager
    """
    # TODO: make membrane fields searchable
    dexteritytextindexer.searchable('first_name')
    dexteritytextindexer.searchable('last_name')
    dexteritytextindexer.searchable('bio')

    website = URI_bluechurch(
        title=_(u"Website"),
        description=_(u"e.g. www.abcjazzz.com"),
        required=False,
    )

    widget(profile_type='z3c.form.browser.checkbox.CheckBoxFieldWidget')
    profile_type = schema.Set(
        title=_(u"Profile Type"),
        value_type=schema.Choice(vocabulary=profile_types),
        required=True,
    )

    directives.widget(
        bluechurchtags='z3c.form.browser.checkbox.CheckBoxFieldWidget')
    bluechurchtags = schema.Set(
        title=_(u'Bluechurch Tags'),
        value_type=schema.Choice(
            vocabulary='rohberg.bluechurch.BluchurchTags'),
        required=False,
    )

    zip_code = schema.TextLine(title=_(u'label_zip_code', default=u'Zip Code'),
                               description=_(u'help_zip_code', default=u''),
                               required=True)
    city = schema.TextLine(title=_(u'label_city', default=u'City'),
                           description=_(u'help_city', default=u''),
                           required=True)
    country = schema.Choice(title=_(u'label_country', default=u'Country'),
                            description=_(
                                u'help_country',
                                default=u'Select the country from the list.'),
                            required=True,
                            vocabulary='collective.address.CountryVocabulary')

    bluechurchcaptcha = schema.Int(
        title=_(u"bluechurchcaptcha"),
        description=_(u"Prevent spam by typing in the result of 13 + 4."),
        min=17,
        max=17)
    directives.omitted('bluechurchcaptcha')
    directives.no_omit(IAddForm, 'bluechurchcaptcha')

    model.fieldset('categorization', label=_(u'Relations'))

    # directives.omitted('relatedItems')
    # directives.no_omit(IEditForm, 'relatedItems')

    model.load('bluechurchmembraneprofile.xml')
Пример #5
0
class INavassistantcard(model.Schema):
    """ Marker interface for Navassistantcard
    """
    model.load('navassistantcard.xml')

    directives.widget('solutions',
                      pattern_options={
                          'basePath': get_solutions_base_path,
                          'selectableTypes': ['SolutionArticle']
                      })
Пример #6
0
class IPresenter(form.Schema, IImageScaleTraversable):
    """
    Conference Presenter
    """

    # If you want a schema-defined interface, delete the model.load
    # line below and delete the matching file in the models sub-directory.
    # If you want a model-based interface, edit
    # models/presenter.xml to define the content type.

    model.load("models/presenter.xml")
Пример #7
0
class ISwimmer(model.Schema, IImageScaleTraversable):
    """
    Swimmer content type for My Swimming Club
    """

    # If you want a schema-defined interface, delete the model.load
    # line below and delete the matching file in the models sub-directory.
    # If you want a model-based interface, edit
    # models/swimmer.xml to define the content type.

    model.load("models/swimmer.xml")
class ILibraryShowroom(model.Schema, IImageScaleTraversable):
    """
    Create a Showroom for an OPDS Library from an eXistDB
    """

    # If you want a schema-defined interface, delete the model.load
    # line below and delete the matching file in the models sub-directory.
    # If you want a model-based interface, edit
    # models/library_showroom.xml to define the content type.

    model.load("models/library_showroom.xml")
Пример #9
0
class IPerson(model.Schema, IImageScaleTraversable, IMember):
    """
    A person who is a user in Plone and a Contact in Salesforce
    """

    portrait = NamedBlobImage(
        title=u"Portrait",
        description=u"The photo used to identify you on the site",
        required=False,
    )

    model.load("models/person.xml")
Пример #10
0
class IBluechurchinserat(model.Schema):
    """ Marker interface for Bluechurchinserat
    """

    # widget(bluechurchtags='z3c.form.browser.checkbox.CheckBoxFieldWidget')
    # bluechurchtags = schema.Set(
    #     title=_(u'Bluechurch Tags'),
    #     value_type=schema.Choice(
    #         vocabulary='rohberg.bluechurch.BluchurchTags'),
    #     required=False,
    #     )

    model.load('bluechurchinserat.xml')
class IDonorQuote(model.Schema, IImageScaleTraversable):
    """
    A quote from a donor about why they donated
    """
    image = NamedImage(
        title=u"Photo",
        description=u"(optional) Upload a photo to show with your quote.",
        required=False,
    )
    key = schema.TextLine(
        title=u"Donation Secret Key",
        description=u"The key used to authenticate to views on the Donation.")
    model.load("models/donor_quote.xml")
class IBluechurchlocation(model.Schema):
    """ Marker interface for Bluechurchlocation
    """
    # TODO: make location fields searchable
    # dexteritytextindexer.searchable('bio')

    homepage = URI_bluechurch(
        title=_(u"Website"),
        description=_(u"e.g. www.abcjazzz.com"),
        required=False,
    )

    model.load('bluechurchlocation.xml')
Пример #13
0
class IGroup(model.Schema):
    """Schema for Conference Presenter content type.
    """

    members = schema.Tuple(
        title=_(u'Group members'),
        description=_(u'The persons in the group'),
        value_type=schema.TextLine(),
        required=False,
        missing_value=(),
        default=(),
    )
    model.load('models/group.xml')
Пример #14
0
class ITask(model.Schema):
    """Schema for Conference Presenter content type.
    """

    members = schema.Tuple(
        title=_(u'Task Members'),
        description=_(u'Assign members to this task'),
        value_type=schema.TextLine(),
        required=False,
        missing_value=(),
        default=(),
    )

    model.load('models/task.xml')
Пример #15
0
class IProject(model.Schema):
    """Schema for Conference Presenter content type.
    """

    members = schema.Tuple(
        title=_(u'Project Members'),
        description=_(
            u'The team members who are participating in the project'),
        value_type=schema.TextLine(),
        required=False,
        missing_value=(),
        default=(),
    )
    model.load('models/project.xml')
Пример #16
0
class IPersonalCampaignPage(model.Schema, IImageScaleTraversable):
    """
    A personal fundraising page
    """

    personal_appeal = RichText(
        title=u"Personal Appeal",
        description=
        u"Your donors will want to know why to donate to your campaign.  You can use the default text or personalize your appeal.  Remember, your page will mostly be visited by people who know you so a personalized message is often more effective",
    )

    thank_you_message = RichText(
        title=u"Thank You Message",
        description=
        u"This message will be shown to your donors after they donate.  You can use the default text or personalize your thank you message",
    )

    image = namedfile.field.NamedBlobImage(
        title=_(u"Image"),
        description=
        _(u"Provide an image to use in promoting your campaign.  The image will show up on your page and also when someone shares your page on social networks."
          ),
    )
    model.load("models/personal_campaign_page.xml")
Пример #17
0
class ITasklist(model.Schema):
    """Schema for Conference Presenter content type."""

    model.load('models/task_list.xml')
Пример #18
0
class IProjectlist(model.Schema):
    """Schema for Conference Presenter content type."""

    model.load('models/project_list.xml')
Пример #19
0
class IFundraisingCampaign(model.Schema, IImageScaleTraversable):
    """
    A Fundraising Campaign linked to a Campaign in Salesforce.com
    """
    model.load("models/fundraising_campaign.xml")
Пример #20
0
class IPerson(model.Schema):
    model.load('models/person.xml')
Пример #21
0
class IMassnahme(model.Schema):
    """ Marker interface and Dexterity Python Schema for Massnahme
    """

    model.load('massnahme.xml')
Пример #22
0
class ITestimony(model.Schema):
    """Schema for testimony content type"""

    model.load('models/testimony.xml')
Пример #23
0
class IKeynoter(model.Schema):
    model.load('models/keynoter.xml')
Пример #24
0
class IApplication(model.Schema):
    """Schema for application content type"""

    model.load('models/application.xml')
Пример #25
0
class IPresentation(model.Schema):
    model.load('models/presentation.xml')
class IDatenschutzfolgenabschaetzung(model.Schema):
    """ Marker interface and Dexterity Python Schema for Datenschutzfolgenabschaetzung
    """
    model.load('datenschutzfolgenabschaetzung.xml')
Пример #27
0
class IUser(model.Schema):
    """Schema for Conference Presenter content type."""

    model.load('models/user.xml')
Пример #28
0
class IFormExternal(model.Schema):
    model.load('models/form_external.xml')
Пример #29
0
class ICover(model.Schema):
    """A composable page."""

    model.load('models/cover.xml')
Пример #30
0
class IRisikomanagement(model.Schema):
    """ Marker interface and Dexterity Python Schema for Risikomanagement
    """
    model.load('risikomanagement.xml')