Docstring fixes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Aug 2016 17:53:52 +0200
changeset 1499 b4cf3e8c8d2e
parent 1498 7c4ea7a5677c
child 1500 b3d5cdb9eff2
Docstring fixes
entities/custom.py
views/__init__.py
views/archivetransfer.py
--- a/entities/custom.py	Thu Aug 25 09:56:42 2016 +0200
+++ b/entities/custom.py	Thu Aug 25 17:53:52 2016 +0200
@@ -37,7 +37,7 @@
 
     @property
     def reference(self):
-        """Return the reference element for a archive unit which has no content"""
+        """Return the reference element for an archive unit which has no content"""
         rset = self.related('seda_archive_unit_ref_id_from', 'object')
         if rset:
             return rset.one()
@@ -45,7 +45,7 @@
 
     @property
     def content_sequence(self):
-        """Return the sequence element holding content for a archive unit which is not a reference
+        """Return the sequence element holding content for an archive unit which is not a reference
         """
         rset = self.related('seda_seq_alt_archive_unit_archive_unit_ref_id_management', 'subject')
         if rset:
--- a/views/__init__.py	Thu Aug 25 09:56:42 2016 +0200
+++ b/views/__init__.py	Thu Aug 25 17:53:52 2016 +0200
@@ -55,7 +55,7 @@
 def copy_rtag(rtag, module, select):
     """Return a copy of the given relation tag, associated to given module and selector.
 
-    >>> class_afs = copy_rtag(uicfg.autoform_section, __module__, is_instance('Class'))
+    >>> class_afs = copy_rtag(uicfg.autoform_section, __name__, is_instance('Class'))
     """
     copied = deepcopy(rtag)
     copied.__module__ = module
--- a/views/archivetransfer.py	Thu Aug 25 09:56:42 2016 +0200
+++ b/views/archivetransfer.py	Thu Aug 25 17:53:52 2016 +0200
@@ -98,7 +98,7 @@
 
 
 class ArchiveTransferManagementTab(tabs.PrimaryTab):
-    """Main tab for code list versions information of an archive transfer"""
+    """Main tab for management data of an archive transfer"""
     __regid__ = 'seda_at_management_tab'
     __select__ = tabs.PrimaryTab.__select__ & is_instance('SEDAArchiveTransfer')