From: Markus <ma...@ai...> - 2007-10-04 09:11:37
|
On Mittwoch, 3. Oktober 2007, S Page wrote: > I wrote code to support specifying the sort order of enumerations, much > like Ittay Dror originally proposed: > > [[allows value::Enhancement=3D-1]] > [[allows value::Trivial=3D0]] > [[allows value::Minor=3D3]], etc. > > But I wonder about the status of DT_Enum.php. The newer datatypes > extend SMWDataValue, while the old type handlers rely on creating > instances of SMWOldDataValue with a comment "///TODO migrate to new > system". > > Markus, are you intending to convert all the SMW_DT types? =20 Yes, and before 1.0. > If so, I=20 > have a patch for Enum that migrates it to DataValue and another patch > that adds the ordering enhancement. Oh, nice. One thing though: we have discussed whether it would be better to have "all= ows=20 value" available for every type. The current Enum then would rather be a=20 Type:String with allows value set. But all other types could allow similar= =20 features, and we would get rid of Type:Enum completely. I guess your patche= s=20 could still be used as a basis for all other types as well (or, for a start= ,=20 for Type:String). Markus > > -- > =3DS Page =2D-=20 Markus Kr=F6tzsch Institut AIFB, Univers=E4t Karlsruhe (TH), 76128 Karlsruhe phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 ma...@ai... www http://korrekt.org |