Hi Markus,

I just updated to the head version of SMW and started to update an
extension. I think I found some bugs, though I am not sure if they are
in SMW or in my code.

I have the following registration code, the functions being registered
as hook handlers:

----------
define( 'SG_PROP_GLT', 'Glossary-Term' );
define( 'SG_PROP_GLD', 'Glossary-Definition' );
define( 'SG_PROP_GLL', 'Glossary-Link' );


function SemanticGlossaryRegisterProperties () {

        SMWDIProperty::registerProperty(
         '___glt', '_str', SG_PROP_GLT, true );

        SMWDIProperty::registerProperty(
         '___gld', '_txt', SG_PROP_GLD, true );

        return true;
}

function SemanticGlossaryRegisterPropertyAliases () {

        SMWDIProperty::registerPropertyAlias(
         '___glt', wfMsg( 'semanticglossary-prop-glt' ) );

        SMWDIProperty::registerPropertyAlias(
         '___gld', wfMsg( 'semanticglossary-prop-gld' ) );

        return true;
}
----------


I set these properties using their labels like this:

[[Glossary-Term::foo]]
[[Glossary-Definition::bar]]


When I now store the respective page

- one entry per property is created in smw_ids with an smw_title of e.g.
___glt. I am pretty sure that the label was used in older SMW versions,
i.e. the value of SG_PROP_GLT;

- the _str type value is stored alright, however for the _txt type value
an empty blob is stored in smw_text2. A query consequently returns the
correct string, but an empty text.

Any ideas?

Stephan

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to