def paintContent(self, target):
        super(CustomLayout, self).paintContent(target)

        if self._templateName is not None:
            target.addAttribute('template', self._templateName)
        else:
            target.addAttribute('templateContents', self._templateContents)

        # Adds all items in all the locations
        for location, c in self._slots.iteritems():
            if c is not None:
                # Writes the item
                target.startTag('location')
                target.addAttribute('name', location)
                c.paint(target)
                target.endTag('location')
Tests that passing a URL path to ``resolve_url`` will result in the
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/custom_layout.py/CustomLayout.paintContent--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/resolve_url/tests.py/ResolveUrlTests.test_url_path