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=-1]]
>   [[allows value::Trivial=0]]
>   [[allows value::Minor=3]], 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?  

Yes, and before 1.0.

> If so, I 
> 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 "allows 
value" available for every type. The current Enum then would rather be a 
Type:String with allows value set. But all other types could allow similar 
features, and we would get rid of Type:Enum completely. I guess your patches 
could still be used as a basis for all other types as well (or, for a start, 
for Type:String).

Markus

>
> --
> =S Page



-- 
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
[EMAIL PROTECTED]        www  http://korrekt.org

Attachment: pgpkLqXhv2POm.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to