Пример #1
0
class EventRsvp(formbase.PageForm):
    form_fields = form.FormFields(IEventRsvpSchema)
    label = _(u'Please fill out our RSVP form')
    description = _(u' Répondez s\'il vous plaît ')

    @form.action('Submit')
    def actionSubmit(self, action, data):
        # Get event parent url
        #
        event_folder_obj = aq_inner(self.context)
        parent_url = event_folder_obj.absolute_url()
        self.request.response.redirect(parent_url)
        pass
Пример #2
0
from Products.ATContentTypes.lib.calendarsupport import CalendarSupportMixin

from isaw.events import IsawEventMessageFactory as _
from isaw.events.interfaces import IGeneral
from isaw.events.config import PROJECTNAME

GeneralSchema = folder.ATFolderSchema.copy() + atapi.Schema((

# -*- Events Schema -*- #

    atapi.TextField(
    name='event_Subtitle',
    accessor='subtitle',
    widget=atapi.RichWidget(
        label=u'Event Subtitle',
        description=_(u'event_subtitle', default=u'Optional subtitle for event.'),
        label_msgid='ISAW_Event_subtitle',
        il8n_domain='ISAW_event',
        ),

    required=False,
    searchable=False),

    atapi.ImageField(
    name='event_Image',
    widget=atapi.ImageWidget(
        label=u'Event Image',
        description=_(u'event_image', default=u'Optional image associated with the event.'),
        label_msgid='ISAW_Event_image',
        il8n_domain='ISAW_Event',
        ),
Пример #3
0
from Products.ATContentTypes.content import schemata
from Products.Archetypes.public import DisplayList
from Products.ATContentTypes.lib.calendarsupport import CalendarSupportMixin

from isaw.events import IsawEventMessageFactory as _
from isaw.events.interfaces import IGeneral
from isaw.events.config import PROJECTNAME

GeneralSchema = folder.ATFolderSchema.copy() + atapi.Schema((

# -*- Events Schema -*- #
    atapi.ImageField(
    name='event_Image',
    widget=atapi.ImageWidget(
        label=u'Event Image',
        description=_(u'event_image', default=u'Optional image associated with the event.'),
        label_msgid='ISAW_Event_image',
        il8n_domain='ISAW_Event',
        ),
        
    required=False,
    searchable=False),
   
    atapi.StringField(
    name='event_Image_caption',
    widget=atapi.TextAreaWidget(
        label=u'Event Image Caption',
        description=_(u'event_image_caption', default=u'Optional image caption associated with image.'),
        label_msgid='ISAW_Event_image_caption',
        il8n_domain='ISAW_Event',
        ),
Пример #4
0
In the last two decades, piecemeal archaeological research in the northern Iberian Peninsula has
begun to provide us with new information about these sites. Their material culture and the more
accurate chronology indicate that traditional interpretations about the phenomenon of hilltop
occupation are no longer valid. After reviewing some paradigmatic sites, this lecture will offer an
alternative model to understanding the change in settlement patterns. It will be argued that
occupation of hilltops must be understood in the context of the administrative reforms of the late
Roman Empire and the economic changes that occurred in northern Iberia during late antiquity."""

eventsSchema = folder.ATFolderSchema.copy() + atapi.Schema((

# -*- Events Schema -*- #
    atapi.ImageField(
    name='event_Image',
    widget=atapi.ImageWidget(
        label=u'Event Image',
        description=_(u'event_image', default=u'Optional image associated with the event.'),
        label_msgid='ISAW_Event_image',
        il8n_domain='ISAW_Event',
        ),
        
    required=False,
    searchable=False),
    


    atapi.TextField(
    name='event_Abstract',
    widget=atapi.TextAreaWidget(
        label=u'Event Abstract',
        description=_(u'event_abstract', default=u'A short description of the event.'),
        label_msgid='ISAW_Event_abstract',