[doc] Replace all : s/by example/for example/
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Thu, 18 Dec 2008 10:27:57 -0800
changeset 229 767ff7f5d5a7
parent 228 27b958dc72ae
child 230 6e71adc5ccdd
[doc] Replace all : s/by example/for example/
doc/book/en/A02a-create-cube.en.txt
doc/book/en/A03a-concepts.en.txt
doc/book/en/B021-schema-stdlib.en.txt
doc/book/en/B022-schema-definition.en.txt
doc/book/en/B030-define-views.en.txt
doc/book/en/B051-define-entities.en.txt
doc/book/en/B120-migration.en.txt
doc/book/en/C012-create-instance.en.txt
doc/book/en/C030-instance-config.en.txt
--- a/doc/book/en/A02a-create-cube.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/A02a-create-cube.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -259,7 +259,7 @@
 overwrite the `primary` view defined in the module ``views`` of the cube
 ``cubes/blog/views.py``.
 
-We can by example add in front of the pulication date a prefix specifying
+We can for example add in front of the pulication date a prefix specifying
 the date we see is the publication date.
 
 To do so, please apply the following changes:
--- a/doc/book/en/A03a-concepts.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/A03a-concepts.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -88,7 +88,7 @@
   configuration files necessarry for the well being of your web application
   are grouped in an instance. This will refer to the cube(s) your application
   is based on.
-  By example logilab.org and our intranet are two instances of a single
+  For example logilab.org and our intranet are two instances of a single
   cube jpl, developped internally.
   The instances are defined in the directory `~/etc/cubicweb.d`.
 
@@ -137,7 +137,7 @@
 The engine in `CubicWeb` is a set of classes managing a set of objects loaded
 dynamically at the startup of `CubicWeb` (*appobjects*). Those dynamics objects, based on the schema
 or the library, are building the final application. The differents dymanic components are
-by example:
+for example:
 
 * client and server side
 
@@ -205,7 +205,7 @@
 It contains informations such as forms parameters, user authenticated, etc.
 
 **Globally, a request represents a user query, either through HTTP or not
-(we also talk about RQL queries on the server side by example)**
+(we also talk about RQL queries on the server side for example)**
 
 An instance of `Request` has the following attributes:
 
@@ -327,7 +327,7 @@
   When we inherit from `AppObject` (even not directly), you *always* have to use
   **super()** to get the methods and attributes of the superclasses, and not
   use the class identifier.
-  By example, instead of writting: ::
+  For example, instead of writting: ::
 
       class Truc(PrimaryView):
           def f(self, arg1):
@@ -371,7 +371,7 @@
   |
   \-- __pkginfo__.py
     
-We can use simple Python module instead of packages, by example: 
+We can use simple Python module instead of packages, for example: 
 
 ::
   
--- a/doc/book/en/B021-schema-stdlib.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/B021-schema-stdlib.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -35,7 +35,7 @@
 ````````````````````
 
 An application is based on several basic cubes. In the set of available
-basic cubes we can find by example :
+basic cubes we can find for example :
 
 * `comment`, provides an entity type for `Comment` allowing us to comment others
   site's entities
--- a/doc/book/en/B022-schema-definition.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/B022-schema-definition.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -6,7 +6,7 @@
 An entity type is defined by a Python class which inherits `EntityType`. The
 class name correponds to the type name. Then the content of the class contains
 the description of attributes and relations for the defined entity type,
-by example ::
+for example ::
 
   class Personne(EntityType):
     """A person with the properties and the relations necessarry for my
@@ -156,7 +156,7 @@
 a description of the properties of this type of relation, and could as well 
 contains a string for the subject and a string for the object. This allows to create
 new definition of associated relations, (so that the class can have the 
-definition properties from the relation) by example ::
+definition properties from the relation) for example ::
 
   class locked_by(RelationType):
     """relation on all entities indicating that they are locked"""
--- a/doc/book/en/B030-define-views.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/B030-define-views.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -175,7 +175,7 @@
 
 To build a HTML page, a *main template* is used. In general, the template of
 identifier `main` is the one (it is not used in case an error is raised or for
-the login form by example). This template uses other templates in addition
+the login form for example). This template uses other templates in addition
 to the views which depends on the content to generate the HTML page to return.
 
 A *template* is responsible for:
@@ -216,7 +216,7 @@
 XML views, binaries...
 ----------------------
 For the views generating other formats that HTML (an image generated dynamically
-by example), and which can not usually be included in the HTML page generated
+for example), and which can not usually be included in the HTML page generated
 by the main template (see above), you have to:
 
 * set the atribute `templatable` of the class to `False`
@@ -224,14 +224,14 @@
   by the view to `application/octet-stream`
 
 For the views dedicated to binary content creation (an image dynamically generated
-by example), we have to set the attribute `binary` of the class to `True` (which
+for example), we have to set the attribute `binary` of the class to `True` (which
 implies that `templateable == False`, so that the attribute `w` of the view could be
 replaced by a binary flow instead of unicode).
 
 (X)HTML tricks to apply
 -----------------------
 
-Some web browser (Firefox by example) are not happy with empty `<div>`
+Some web browser (Firefox for example) are not happy with empty `<div>`
 (by empty we mean that there is no content in the tag, but there
 could be attributes), so we should always use `<div></div>` even if
 it is empty and not use `<div/>`.
--- a/doc/book/en/B051-define-entities.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/B051-define-entities.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -39,7 +39,7 @@
 the list `fetchattrs`).
 This function is defined in `cubicweb.entities`.
 
-By example: ::
+For example: ::
 
   class Transition(AnyEntity):
     """..."""
@@ -135,7 +135,7 @@
   * the type indicates if the value designate an integer (`type == 'int'`),
     a string (`type =='string'` or a non-final relation (`type == 'eid'`)
 
-By example in our application managing tickets, we want to be able to filter
+For example in our application managing tickets, we want to be able to filter
 them by :
 
 * type
--- a/doc/book/en/B120-migration.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/B120-migration.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -31,7 +31,7 @@
   of distributed installation. Its value could be :
 
   * `common`, applies to the RQL server as well as the web server and updates
-    files on the hard drive (configuration files migration by example).
+    files on the hard drive (configuration files migration for example).
 
   * `web`, applies only to the web server and updates files on the hard drive
 
@@ -39,7 +39,7 @@
     hard drive
 
   * `Any`, applies only to the RQL server and updates data in the database
-    (schema and data migration by example)
+    (schema and data migration for example)
 
 Again in the directory `migration`, the file `depends.map` allows to indicate
 that to migrate to a particular model version, you always have to first migrate
@@ -48,7 +48,7 @@
   
   <model version n° X.Y.Z> : <cubicweb version n° X.Y.Z>
 
-By example: ::
+For example: ::
 
   0.12.0: 2.26.0
   0.13.0: 2.27.0
--- a/doc/book/en/C012-create-instance.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/C012-create-instance.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -72,7 +72,7 @@
 .. note::
   Please note that we created a new cube for a demo purpose but
   you could have use an existing cube available in our standard library
-  such as blog or person by example.
+  such as blog or person for example.
 
 A serie of questions will be prompted to you, the default answer is usually
 sufficient. You can anyway modify the configuration later on by editing
--- a/doc/book/en/C030-instance-config.en.txt	Thu Dec 18 17:39:14 2008 +0100
+++ b/doc/book/en/C030-instance-config.en.txt	Thu Dec 18 10:27:57 2008 -0800
@@ -39,7 +39,7 @@
 ```````````````````
 It is possible to make a site accessible for anonymous http connections
 and https for authenticated users. This requires to
-use apache (by example) for redirection and the variable `main.https-url`
+use apache (for example) for redirection and the variable `main.https-url`
 of configuration file.
 
 :Example: