Skip to content.

Etria Lists

 

[quills-dev] [Collective-checkins] r32160 - Quills/trunk

quills-dev at lists.etria.com quills-dev at lists.etria.com
Mon Oct 23 12:52:08 UTC 2006


Author: tomster
Date: Mon Oct 23 12:52:07 2006
New Revision: 32160

Modified:
   Quills/trunk/MetaWeblogAPI.py
Log:
minor fixes: case typo, whitespace, comment wording.

Modified: Quills/trunk/MetaWeblogAPI.py
==============================================================================
--- Quills/trunk/MetaWeblogAPI.py	(original)
+++ Quills/trunk/MetaWeblogAPI.py	Mon Oct 23 12:52:07 2006
@@ -69,14 +69,14 @@
         value.
         """
         ed = struct.get('pubDate',
-                        struct.get('pubdate',
-                                    None)
-                        )
+            struct.get('pubdate',
+                None)
+        )
         if ed is None:
-            ed = struct.get('dateCreated',
-                            struct.get('dateCreated',
-                                       DateTime.DateTime())
-                            )
+            ed = struct.get('datecreated',
+                struct.get('dateCreated',
+                DateTime.DateTime())
+            )
         # due to strange developments in Zope2.9 resp. xmlrpclib we need to parse 
         # the XMLRPC-DateTime object's string representation and then construct a
         # 'proper' DateTime instance from a string assembled from those parsed bits.
@@ -86,7 +86,7 @@
             return DateTime.DateTime(datetime_string)
         except AttributeError:
             # we obviously didn't receive a xmlrpclib DateTime instance, so we
-            # can return it unchanged:
+            # can return the default unchanged (as it already is a Zope.DateTime instance):
             return ed
 
     security.declareProtected(CMFCorePermissions.ModifyPortalContent, 'newPost')

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins



More information about the quills-dev mailing list