gimp-web r1888 - in trunk: . programmatic/admin/news



Author: yosh
Date: Fri Oct  3 21:11:37 2008
New Revision: 1888
URL: http://svn.gnome.org/viewvc/gimp-web?rev=1888&view=rev

Log:
2008-10-03  Manish Singh  <yosh gimp org>

        * programmatic/admin/news/wgo_news.py: formatdate is also in
        email.Utils


Modified:
   trunk/ChangeLog
   trunk/programmatic/admin/news/wgo_news.py

Modified: trunk/programmatic/admin/news/wgo_news.py
==============================================================================
--- trunk/programmatic/admin/news/wgo_news.py	(original)
+++ trunk/programmatic/admin/news/wgo_news.py	Fri Oct  3 21:11:37 2008
@@ -67,7 +67,7 @@
     try:
       if source == None:
         self.msg = email.Message.Message()
-        self.msg["Date"] = email.formatdate()
+        self.msg["Date"] = email.Utils.formatdate()
         self.msg["From"] = "<wilber news gimp org> Wilber Gimp"
         self.msg["Message-Id"] = "<" + time.strftime("%Y%m%d%H%M%S-") + str(os.getpid()) + "@news.gimp.org>" 
         self.msg["Reply-To"] = ""
@@ -79,7 +79,7 @@
         self.valid = True
       elif str(source.__class__) == 'cgi.FieldStorage':
         self.msg = email.Message.Message()
-        self.msg["Date"] = email.formatdate(calendar.timegm(email.Utils.parsedate(xhtml.unescape(source["date"].value))))
+        self.msg["Date"] = email.Utils.formatdate(calendar.timegm(email.Utils.parsedate(xhtml.unescape(source["date"].value))))
         self.msg["From"] = xhtml.unescape(source["from"].value)
         self.msg["Message-Id"] = xhtml.unescape(source["message-id"].value)
         self.msg["Reply-To"] = ""
@@ -176,7 +176,7 @@
       pass
 
     url = "http://"; + http_host
-    date = email.formatdate(calendar.timegm(email.Utils.parsedate(xhtml.unescape(self["date"]))))
+    date = email.Utils.formatdate(calendar.timegm(email.Utils.parsedate(xhtml.unescape(self["date"]))))
     s = rdf.item(rdf.title(rdf.quote(self["subject"]))
                  + rdf.description(rdf.quote(xhtml.absolutize(self["body"], url)))
                  + "\n"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]