[Commits] (morgen) Fixes half of bug 2628 - I have made DateTime attribute editor read-only temporarily until we have some better parsing in there. r=capps

commits at osafoundation.org commits at osafoundation.org
Fri Mar 11 11:09:57 PST 2005


Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py 1.25 1.26

Log message:
Fixes half of bug 2628 - I have made DateTime attribute editor read-only temporarily until we have some better parsing in there. r=capps


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py.diff?r1=text&tr1=1.25&r2=text&tr2=1.26

Index: chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py
diff -u chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py:1.25 chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py:1.26
--- chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py:1.25	Wed Mar  9 11:31:42 2005
+++ chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py	Fri Mar 11 11:09:56 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.25 $"
-__date__ = "$Date: 2005/03/09 19:31:42 $"
+__version__ = "$Revision: 1.26 $"
+__date__ = "$Date: 2005/03/11 19:09:56 $"
 __copyright__ = "Copyright (c) 2003-2005 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -234,6 +234,11 @@
                 value = itemDate.Format('%b %d, %Y')
         return value
 
+    def ReadOnly (self, (item, attribute)):
+        # @@@MOR Temporarily disable editing of DateTime.  This AE needs some
+        # more robust parsing of the date/time info the user enters.
+        return True
+
 class RepositoryAttributeEditor (StringAttributeEditor):
     """ Uses Repository Type conversion to provide String representation. """
     def ReadOnly (self, (item, attribute)):



More information about the Commits mailing list