Another small patch to chapter with to changes:

postrgresql:// -> postgres://
hocalhost -> localhost

sâmbătă, 1 septembrie 2012, 20:00:49 UTC+3, Massimo Di Pierro a scris:
>
> The web2py book app has been rewritten 
>
>    http://www.web2py.com/book
>
> and the source of the app and the book itself is now on github
>
>    https://github.com/mdipierro/web2py-book/tree/master/sources
>
> Hopefully this will make it easier to keep it updated. You can just send 
> me patches. You can also try run it yourself and see how it looks. It is no 
> more db based. it is file based. The syntax is markmin as documented in the 
> bok itself. 
>
> Massimo
>
>
>
>
>

-- 



>From 6456f13d4adecad93744feb82adc7c725656807c Mon Sep 17 00:00:00 2001
From: Radu Ioan Fericean <r...@fericean.ro>
Date: Sat, 1 Sep 2012 23:45:49 +0300
Subject: [PATCH] changed hocalhost->localhost, postgresql -> postgres

---
 sources/29-web2py-english/06.markmin |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sources/29-web2py-english/06.markmin b/sources/29-web2py-english/06.markmin
index 3697dc8..b8741bc 100644
--- a/sources/29-web2py-english/06.markmin
+++ b/sources/29-web2py-english/06.markmin
@@ -2606,7 +2606,7 @@ db = DAL('sqlite://storage.sqlite')
 and you wish to move to another database using a different connection string:
 
 ``
-db = DAL('postgresql://username:password@hocalhost/mydb')
+db = DAL('postgres://username:password@localhost/mydb')
 ``
 
 Before you switch, you want to move the data and rebuild all the metadata for the new database. We assume the new database to exist but we also assume it is empty.
@@ -2618,7 +2618,7 @@ cd web2py
 python scripts/cpdb.py \
    -f applications/app/databases \
    -y 'sqlite://storage.sqlite' \
-   -Y 'postgresql://username:password@hocalhost/mydb'
+   -Y 'postgres://username:password@localhost/mydb'
 ``
 
 After running the script you can simply switch the connection string in the model and everything should work out of the box. The new data should be there.
-- 
1.7.9.5

Reply via email to