fix typos and indentation in docstrings/docs
authorJérôme Roy <jerome.roy@logilab.fr>
Mon, 19 Oct 2015 23:23:46 +0000
changeset 10829 550c2d27339f
parent 10828 0e5a9a03a79d
child 10830 d41f13a919ff
fix typos and indentation in docstrings/docs
_exceptions.py
doc/book/devrepo/testing.rst
doc/book/devweb/views/table.rst
web/views/tableview.py
--- a/_exceptions.py	Wed Sep 16 11:31:36 2015 +0200
+++ b/_exceptions.py	Mon Oct 19 23:23:46 2015 +0000
@@ -46,10 +46,10 @@
     """a misconfiguration error"""
 
 class InternalError(CubicWebException):
-    """base class for exceptions which should not occurs"""
+    """base class for exceptions which should not occur"""
 
 class SecurityError(CubicWebException):
-    """base class for cubicweb server security exception"""
+    """base class for cubicweb server security exceptions"""
 
 class RepositoryError(CubicWebException):
     """base class for repository exceptions"""
--- a/doc/book/devrepo/testing.rst	Wed Sep 16 11:31:36 2015 +0200
+++ b/doc/book/devrepo/testing.rst	Mon Oct 19 23:23:46 2015 +0000
@@ -324,9 +324,9 @@
 
         def test_blog_rss(self):
             with self.admin_access.web_request() as req:
-            rset = req.execute('Any B ORDERBY D DESC WHERE B is BlogEntry, '
-                               'B created_by U, U login "logilab", B creation_date D')
-            self.view('rss', rset, req=req)
+                rset = req.execute('Any B ORDERBY D DESC WHERE B is BlogEntry, '
+                                   'B created_by U, U login "logilab", B creation_date D')
+                self.view('rss', rset, req=req)
 
 
 Testing with other cubes
--- a/doc/book/devweb/views/table.rst	Wed Sep 16 11:31:36 2015 +0200
+++ b/doc/book/devweb/views/table.rst	Mon Oct 19 23:23:46 2015 +0000
@@ -96,8 +96,8 @@
             'resource': MainEntityColRenderer(),
             'workpackage': EntityTableColRenderer(
                header='Workpackage',
-               renderfunc=worpackage_cell,
-               sortfunc=worpackage_sortvalue,),
+               renderfunc=workpackage_cell,
+               sortfunc=workpackage_sortvalue,),
             'in_state': EntityTableColRenderer(
                renderfunc=lambda w,x: w(x.cw_adapt_to('IWorkflowable').printable_state),
                sortfunc=lambda x: x.cw_adapt_to('IWorkflowable').printable_state),
--- a/web/views/tableview.py	Wed Sep 16 11:31:36 2015 +0200
+++ b/web/views/tableview.py	Mon Oct 19 23:23:46 2015 +0000
@@ -42,7 +42,7 @@
 .. autoclass:: cubicweb.web.views.tableview.TableLayout
    :members:
 
-There is by default only on table layout, using the 'table_layout' identifier,
+There is by default only one table layout, using the 'table_layout' identifier,
 that is referenced by table views
 :attr:`cubicweb.web.views.tableview.TableMixIn.layout_id`.  If you want to
 customize the look and feel of your table, you can either replace the default
@@ -52,9 +52,9 @@
 Notice you can gives options to the layout using a `layout_args` dictionary on
 your class.
 
-If you can still find a view that suit your needs, you should take a look at the
+If you still can't find a view that suit your needs, you should take a look at the
 class below that is the common abstract base class for the three views defined
-above and implements you own class.
+above and implement your own class.
 
 .. autoclass:: cubicweb.web.views.tableview.TableMixIn
    :members: