예제 #1
0
파일: Event.py 프로젝트: goschtl/zope
    def getMetadataHeaders(self):
        """Return RFC-822-style header spec."""
        hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
        hdrlist.append( ('StartDate', self.start().strftime("%Y-%m-%d %H:%M:%S") ) )
        hdrlist.append( ('EndDate',  self.end().strftime("%Y-%m-%d %H:%M:%S") ) )
        hdrlist.append( ('Location', self.location) )
        hdrlist.append( ('ContactName', self.contact_name) )
        hdrlist.append( ('ContactEmail', self.contact_email) )
        hdrlist.append( ('ContactPhone', self.contact_phone) )
        hdrlist.append( ('EventURL', self.event_url) )

        return hdrlist
예제 #2
0
파일: Event.py 프로젝트: bendavis78/zope
    def getMetadataHeaders(self):
        """Return RFC-822-style header spec."""
        hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
        hdrlist.append( ('StartDate', self.start().strftime("%Y-%m-%d %H:%M:%S") ) )
        hdrlist.append( ('EndDate',  self.end().strftime("%Y-%m-%d %H:%M:%S") ) )
        hdrlist.append( ('Location', self.location) )
        hdrlist.append( ('ContactName', self.contact_name) )
        hdrlist.append( ('ContactEmail', self.contact_email) )
        hdrlist.append( ('ContactPhone', self.contact_phone) )
        hdrlist.append( ('EventURL', self.event_url) )

        return hdrlist
예제 #3
0
파일: Event.py 프로젝트: bendavis78/zope
    def getMetadataHeaders(self):
        """Return RFC-822-style header spec."""
        fmt = '%Y-%m-%d %H:%M:%S'
        hdrlist = [x for x in DefaultDublinCoreImpl.getMetadataHeaders(self)
                         if x[0] != 'Description']
        hdrlist.append(('Startdate', self.start().strftime(fmt)))
        hdrlist.append(('Enddate',  self.end().strftime(fmt)))
        hdrlist.append(('Location', self.location))
        hdrlist.append(('Contactname', self.contact_name))
        hdrlist.append(('Contactemail', self.contact_email))
        hdrlist.append(('Contactphone', self.contact_phone))
        hdrlist.append(('Eventurl', self.event_url))

        return hdrlist
예제 #4
0
파일: Document.py 프로젝트: bendavis78/zope
 def getMetadataHeaders(self):
     """Return RFC-822-style header spec."""
     hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
     hdrlist.append(('SafetyBelt', self._safety_belt))
     return hdrlist
예제 #5
0
파일: Document.py 프로젝트: goschtl/zope
 def getMetadataHeaders(self):
     """Return RFC-822-style header spec."""
     hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
     hdrlist.append( ('SafetyBelt', self._safety_belt) )
     return hdrlist