[deepamehta-devel] changing label config of existing topic type

Jörg Richter jri at deepamehta.de
Wed Feb 1 19:56:33 CET 2017


sorry, message was sent prematurely
-------------------------------------------------------------------


Hi Robert,

in master (4.8.6-SNAPSHOT) each of the discussed problems should now be fixed.
Core's assoc def manipulation code is completely revised.

- Setting an assoc def's "Include in Label" flag programmatically (see below) now works (#1062).
- When creating an assoc def programmatically you can pass an "Include in Label" flag (#1063).
- All assoc defs have a "Include in Label" child topic now. A "repairing" DB migration is provided (#1061).
- Also an "old" bug regarding editing the assoc def's underlying assoc directly is now fixed (#906).

Tests are provided.
Note that there are minor BREAKING CHANGES in API and JSON format.
Details are described in (the comments of) these tickets:

Core: refactor Label Config mechanism
https://trac.deepamehta.de/ticket/1063

Programmatically setting an assoc def's "Include in Label" flag throws exception
https://trac.deepamehta.de/ticket/1062

A programmatically added assoc def gets no "Include in Label" setting
https://trac.deepamehta.de/ticket/1061

Webclient: editing "Include in label" has no effect
https://trac.deepamehta.de/ticket/906

Don't use 4.8.6-SNAPSHOT on your production instance yet.
Test with your development instance.

Cheers,
Jörg


> On 17 Jan 2017, at 18:57, Robert Schuster <robert.schuster.rs01 at gmail.com> wrote:
> 
> TopicType tt = dm4.getTopicType(NS("proposal"));
> tt.getAssocDef("dm4.datetime.date#dm4.events.from").getChildTopics().set("dm4.core.include_in_label", false);
> tt.getAssocDef("dm4.datetime.date#dm4.events.to").getChildTopics().set("dm4.core.include_in_label", false);

-------------- n�chster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigr��e  : 496 bytes
Beschreibung: Message signed with OpenPGP using GPGMail
URL         : <http://lists.deepamehta.de/pipermail/devel-lists.deepamehta.de/attachments/20170201/aed8f64d/attachment.sig>


More information about the devel mailing list