Peel and quarter the pineapple, remove the stalk and dice the pulp. Then puree. Cut the onions into small cubes.
Heat the oil, add diced pineapple and onion, tomato paste and vinegar and let everything boil down until thick. Be sure to stick with it and stir! Season to taste with salt, pepper, sugar, allspice and the selected spicy agent.
Possibly brush through a fine sieve, then briefly bring to the boil again. Now fill into a vessel rinsed with boiling water (wide-necked bottle, glass with a well-closable lid), close tightly, allow to cool and refrigerate.