[Cubicweb] Modification of attributes of entities already in the scheme

Aurélien Campéas aurelien.campeas at logilab.fr
Mon Oct 22 18:07:49 CEST 2012


Le 22/10/2012 17:55, Stéphane Bugat a écrit :
>
>> This is because RichString is a kind of "virtual" attribute, which
>> will actually ends up in
>> two attributes, e.g. description and description_format. So you
>> should remove both (though
>> removing description_format may be enough for your case).
>

> Sylvain, bty, if I just want to modify the metadata of the
> attribute, let's say for instance add a 'maxsize' to the RichString
> description attribute, is it possible without removing and
> recreating the attribute?

in this case you do a
sync_schema_props_perms()

(maxsize is just a constraint, these are handled quite automatically)




More information about the Cubicweb mailing list