def get_participants(self):
        dossier = IDossier(self.context)
        rows = []

        # add the responsible
        rows.append('%s, %s' % (
                readable_ogds_author(None, dossier.responsible),
                translate(_dossier(u'label_responsible', 'Responsible'),
                          context=self.request)))

        # add the participants
        participants = list(IParticipationAware(
                self.context).get_participations())

        for participant in participants:
            rows.append('%s, %s' % (
                    readable_ogds_author(participant, participant.contact),
                    role_list_helper(participant, participant.roles)))

        values = ['{', '\\vspace{-\\baselineskip}\\begin{itemize}']
        for row in self.convert_list(rows):
            values.append('\\item {}'.format(row))

        values.append('\\vspace{-\\baselineskip}\\end{itemize}')
        values.append('}')

        return ' \n'.join(values)
    def get_participants(self):
        dossier = IDossier(self.context)
        rows = []

        # add the responsible
        rows.append('%s, %s' % (
                readable_ogds_author(None, dossier.responsible),
                translate(_dossier(u'label_responsible', 'Responsible'),
                          context=self.request)))

        # add the participants
        participants = list(IParticipationAware(
                self.context).get_participations())

        for participant in participants:
            rows.append('%s, %s' % (
                    readable_ogds_author(participant, participant.contact),
                    role_list_helper(participant, participant.roles)))

        values = ['{', '\\vspace{-\\baselineskip}\\begin{itemize}']
        for row in self.convert_list(rows):
            values.append('\\item {}'.format(row))

        values.append('\\vspace{-\\baselineskip}\\end{itemize}')
        values.append('}')

        return ' \n'.join(values)
Example #3
0
def participation_created(context, event):
    title = _(
        u"label_participant_added",
        default=u"Participant added: ${contact} with " "roles ${roles}",
        mapping={
            "contact": readable_ogds_author(event.participant, event.participant.contact),
            "roles": role_list_helper(event.participant, event.participant.roles),
        },
    )

    journal_entry_factory(context, PARTICIPANT_ADDED, title)
Example #4
0
def participation_created(context, event):
    author = readable_ogds_author(event.participant, event.participant.contact)
    roles = role_list_helper(event.participant, event.participant.roles)

    title = _(u'label_participant_added',
              default=u'Participant added: ${contact} with '
              'roles ${roles}',
              mapping={
                  'contact': author,
                  'roles': roles
              })

    journal_entry_factory(context, PARTICIPANT_ADDED, title)
Example #5
0
def participation_created(context, event):
    author = readable_ogds_author(event.participant,
                                  event.participant.contact)
    roles = role_list_helper(event.participant,
                             event.participant.roles)

    title = _(u'label_participant_added',
              default=u'Participant added: ${contact} with '
              'roles ${roles}',
              mapping={'contact': author,
                       'roles': roles}
              )

    journal_entry_factory(context, PARTICIPANT_ADDED, title)