There are fairly specific rules on what government members can and cannot accept.
I am admittedly not an expert. However, even if we are not talking about a violation or abuse, I think it is ill perceived for a foreign country or one of its representatives to give money to a riding association. The Pierre Elliott Trudeau Foundation's situation is a bit different. After all, that foundation was created under a Canadian piece of legislation and has very positive objectives.
I don't think a politician who is part of a government should accept donations from a foreign country or from one of its representatives.