A PENSIONER from Caerphilly has appeared in court to be sentenced for assaulting his ex-partner, by hitting her over the head with a coke can.