@staticmethod
def updateCouplings(connection):
    '\n        The shape has changed, which means couplings might have to change, be added or removed.\n        To be sure all couplings in this connection are deleted and then build up from scratch.\n        '
    'Remove all old couplings.'
    for coupling in connection.couplings():
        connection.Document.removeObject(coupling.Name)
    'Add couplings for every shape.'
    connection.addCouplings()
The shape has changed, which means couplings might have to change, be added or removed.
To be sure all couplings in this connection are deleted and then build up from scratch.
@staticmethod
def updateCouplings(connection):
    '\n        The shape has changed, which means couplings might have to change, be added or removed.\n        To be sure all couplings in this connection are deleted and then build up from scratch.\n        '
    'Remove all old couplings.'
    for coupling in connection.couplings():
        connection.Document.removeObject(coupling.Name)
    'Add couplings for every shape.'
    connection.addCouplings()