equal
deleted
inserted
replaced
1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
646 # then make necessary changes to the system source database |
646 # then make necessary changes to the system source database |
647 syssource = cnx.repo.system_source |
647 syssource = cnx.repo.system_source |
648 if 'indexed' in self.values: |
648 if 'indexed' in self.values: |
649 syssource.update_rdef_indexed(cnx, rdef) |
649 syssource.update_rdef_indexed(cnx, rdef) |
650 self.indexed_changed = True |
650 self.indexed_changed = True |
651 if 'cardinality' in self.values and (rdef.rtype.final or |
651 if 'cardinality' in self.values and rdef.rtype.final \ |
652 rdef.rtype.inlined) \ |
|
653 and self.values['cardinality'][0] != self.oldvalues['cardinality'][0]: |
652 and self.values['cardinality'][0] != self.oldvalues['cardinality'][0]: |
654 syssource.update_rdef_null_allowed(self.cnx, rdef) |
653 syssource.update_rdef_null_allowed(self.cnx, rdef) |
655 self.null_allowed_changed = True |
654 self.null_allowed_changed = True |
656 if 'fulltextindexed' in self.values: |
655 if 'fulltextindexed' in self.values: |
657 UpdateFTIndexOp.get_instance(cnx).add_data(rdef.subject) |
656 UpdateFTIndexOp.get_instance(cnx).add_data(rdef.subject) |