fix label in generated form for relations
the label for object relations was incorrect, because the '_object' mangling is
done on the wrong component of field.label.
fix ticket 472831
""":organization: Logilab:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""importsysimportosfromcStringIOimportStringIOfromlogilab.common.testlibimportTestCase,unittest_mainifos.environ.get('APYCOT_ROOT'):root=os.environ['APYCOT_ROOT']CUBES_DIR='%s/local/share/cubicweb/cubes/'%rootos.environ['CW_CUBES_PATH']=CUBES_DIRREGISTRY_DIR='%s/etc/cubicweb.d/'%rootos.environ['CW_INSTANCES_DIR']=REGISTRY_DIRfromcubicweb.cwconfigimportCubicWebConfigurationCubicWebConfiguration.load_cwctl_plugins()classCubicWebCtlTC(TestCase):defsetUp(self):self.stream=StringIO()sys.stdout=self.streamdeftearDown(self):sys.stdout=sys.__stdout__deftest_list(self):fromcubicweb.cwctlimportListCommandListCommand().run([])if__name__=='__main__':unittest_main()