cleanup tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 26 Mar 2009 20:11:37 +0100
branchtls-sprint
changeset 1152 c99ef2a2535c
parent 1151 b20677336ee6
child 1153 6a7636b32a97
cleanup
devtools/apptest.py
devtools/testlib.py
rtags.py
web/formwidgets.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"
--- 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"
--- 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 = {}
--- 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