Ejemplo n.º 1
0
 def _process(self):
     filename = "%s - Event.xml" % self._target.getTitle()
     serializer = XMLEventSerializer(self.event_new,
                                     user=session.user,
                                     include_announcer_email=True)
     return send_file(filename, StringIO(serializer.serialize_event()),
                      'XML')
Ejemplo n.º 2
0
 def _getBasicXML(self,
                  conf,
                  vars,
                  includeSession,
                  includeContribution,
                  includeSubContribution,
                  includeMaterial,
                  showSession="all",
                  showDate="all",
                  showContribution="all",
                  showSubContribution="all",
                  out=None):
     serializer = XMLEventSerializer(conf.as_event,
                                     include_timetable=includeContribution,
                                     event_tag_name='iconf')
     return serializer.serialize_event()
Ejemplo n.º 3
0
    def _process( self ):
        if not self._reqParams.has_key("showDate"):
            self._reqParams["showDate"] = "all"
        if not self._reqParams.has_key("showSession"):
            self._reqParams["showSession"] = "all"
        if not self._reqParams.has_key("detailLevel"):
            self._reqParams["detailLevel"] = "contribution"

        view = self._reqParams.get('view')
        if view == 'xml':
            serializer = XMLEventSerializer(self.event_new, user=session.user, include_timetable=True,
                                            event_tag_name='iconf')
            return Response(serializer.serialize_event(), mimetype='text/xml')
        else:
            p = self.render_meeting_page(self._conf, view, self._reqParams.get('fr') == 'no')
            return p.display()
Ejemplo n.º 4
0
    def _process(self):
        if not self._reqParams.has_key("showDate"):
            self._reqParams["showDate"] = "all"
        if not self._reqParams.has_key("showSession"):
            self._reqParams["showSession"] = "all"
        if not self._reqParams.has_key("detailLevel"):
            self._reqParams["detailLevel"] = "contribution"

        view = self._reqParams.get('view')
        if view == 'xml':
            serializer = XMLEventSerializer(self.event_new,
                                            user=session.user,
                                            include_timetable=True,
                                            event_tag_name='iconf')
            return Response(serializer.serialize_event(), mimetype='text/xml')
        else:
            p = self.render_meeting_page(self._conf, view,
                                         self._reqParams.get('fr') == 'no')
            return p.display()
Ejemplo n.º 5
0
 def _getBasicXML(self, conf, vars, includeSession, includeContribution, includeSubContribution, includeMaterial, showSession="all", showDate="all", showContribution="all", showSubContribution="all", out=None):
     serializer = XMLEventSerializer(conf.as_event, include_timetable=includeContribution, event_tag_name='iconf')
     return serializer.serialize_event()
Ejemplo n.º 6
0
 def _process(self):
     filename = "%s - Event.xml" % self._target.getTitle()
     serializer = XMLEventSerializer(self.event_new, user=session.user, include_announcer_email=True)
     return send_file(filename, StringIO(serializer.serialize_event()), 'XML')