# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238094697 -3600 # Node ID c99ef2a2535c07285584915bd766b0bfebe65455 # Parent b20677336ee6bb3b53448fe13ccc2ecb2b78cf5c cleanup diff -r b20677336ee6 -r c99ef2a2535c devtools/apptest.py --- a/devtools/apptest.py Thu Mar 26 20:11:20 2009 +0100 +++ b/devtools/apptest.py Thu Mar 26 20:11:37 2009 +0100 @@ -1,7 +1,7 @@ """This module provides misc utilities to test applications :organization: Logilab -:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ __docformat__ = "restructuredtext en" diff -r b20677336ee6 -r c99ef2a2535c devtools/testlib.py --- a/devtools/testlib.py Thu Mar 26 20:11:20 2009 +0100 +++ b/devtools/testlib.py Thu Mar 26 20:11:37 2009 +0100 @@ -1,7 +1,7 @@ """this module contains base classes for web tests :organization: Logilab -:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ __docformat__ = "restructuredtext en" diff -r b20677336ee6 -r c99ef2a2535c rtags.py --- a/rtags.py Thu Mar 26 20:11:20 2009 +0100 +++ b/rtags.py Thu Mar 26 20:11:37 2009 +0100 @@ -1,6 +1,23 @@ +"""relation tags store + +:organization: Logilab +:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr +""" +__docformat__ = "restructuredtext en" class RelationTags(object): + """RelationTags instances are a tag store for full relation definitions : + (subject type, relation type, object type, role) + + allowing to set tags using wildcard (eg '*') as subject type / object type + + if `use_set` is True, a set of tags is associated to each key, and you + should use rtags / etype_rtags / add_rtag api. Otherwise, a single tag is + associated to each key, and you should use rtag / etype_rtag / set_rtag api. + """ + def __init__(self, use_set=False): self.use_set = use_set self._tagdefs = {} diff -r b20677336ee6 -r c99ef2a2535c web/formwidgets.py --- a/web/formwidgets.py Thu Mar 26 20:11:20 2009 +0100 +++ b/web/formwidgets.py Thu Mar 26 20:11:37 2009 +0100 @@ -226,3 +226,5 @@ self.add_media(form) attrs = self._render_attrs(form, field)[-1] return tags.div(**attrs) + +# XXX backport PropertyKeyWidget and PropertyValueWidget