[server] prevent returning closed cursor to the database pool
In since c8c6ad8 init_repository use repo.internal_cnx() instead of
repo.system_source.get_connection() so it use the pool and we should not close
cursors from the pool before returning it back. Otherwise we may have
"connection already closed" error.
This bug only trigger when connection-pool-size = 1. Since we are moving to use
a dynamic pooler we need to get this fixed.
This does not occur with sqlite since the connection wrapper instantiate new
cursor everytime, but this occur with other databases.
<toc resource="main">
<title xml:lang="en">Site documentation</title>
<title xml:lang="fr">Documentation du site</title>
<section resource="standard_usage">
<title xml:lang="en">Standard use</title>
<title xml:lang="fr">Utilisation standard</title>
<section resource="bookmarks">
<title xml:lang="en">Using bookmarks</title>
<title xml:lang="fr">Utilisation des signets</title>
</section>
<section resource="search">
<title xml:lang="en">Search</title>
<title xml:lang="fr">Recherche</title>
</section>
<section resource="userprefs">
<title xml:lang="en">User preferences</title>
<title xml:lang="fr">Préférences utilisateur</title>
</section>
<section resource="add_content">
<title xml:lang="en">Add content to the site</title>
<title xml:lang="fr">Ajouter du contenu au site</title>
</section>
</section>
<section resource="advanced_usage">
<title xml:lang="en">Advanced use</title>
<title xml:lang="fr">Utilisation avancée</title>
<section resource="tut_rql">
<title xml:lang="en">"Relation Query Language" tutorial</title>
<title xml:lang="fr">Tutoriel "Relation Query Language"</title>
</section>
<section resource="custom_view">
<title xml:lang="en">Defining your own views</title>
<title xml:lang="fr">Définir ses propres vues</title>
</section>
</section>
<section resource="glossary">
<title xml:lang="en">Glossary</title>
<title xml:lang="fr">Glossaire</title>
</section>
<section resource="about">
<title xml:lang="fr">A propos de ce site</title>
<title xml:lang="en">About this site</title>
</section>
</toc>