Handcuffed in court

When Can Courts take into Account my Previous Convictions?