Author: michiel
Date: 2009-05-12 18:39:14 +0200 (Tue, 12 May 2009)
New Revision: 35103
Modified:
mmbase/trunk/config/datatypes.xml
Log:
avoid errors when having filesize as editable field
Modified: mmbase/trunk/config/datatypes.xml
===================================================================
--- mmbase/trunk/config/datatypes.xml 2009-05-12 16:34:53 UTC (rev 35102)
+++ mmbase/trunk/config/datatypes.xml 2009-05-12 16:39:14 UTC (rev 35103)
@@ -673,6 +673,12 @@
<description xml:lang="en">
Integer interpreted as a filesize. Results in a 'string'
representation postfixed by 'KiB' etc.
</description>
+ <setprocessor type="string">
+ <class name="org.mmbase.datatypes.processors.FormatQuantity$Parser">
+ <param name="unit">B</param>
+ <param name="binaryPrefixes">true</param>
+ </class>
+ </setprocessor>
<getprocessor type="string">
<class name="org.mmbase.datatypes.processors.FormatFileSize"/>
</getprocessor>
@@ -875,8 +881,7 @@
</specialization>
<specialization id="user">
- <description xml:lang="en">
- Only nodes associated with users are possible. Default value is
current user.
+ <description xml:lang="en">Only nodes associated with users are
possible. Default value is current user.
</description>
<class name="org.mmbase.datatypes.UserNodeDataType" />
</specialization>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs