contrib/benitlux: rename DB to BenitluxDB waiting for working qualified names
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 5 Apr 2016 15:24:35 +0000 (11:24 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 5 Apr 2016 16:49:49 +0000 (12:49 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/benitlux/src/benitlux_controller.nit
contrib/benitlux/src/benitlux_daily.nit
contrib/benitlux/src/benitlux_db.nit
contrib/benitlux/src/benitlux_social.nit
contrib/benitlux/src/benitlux_web.nit
contrib/benitlux/src/correct.nit
contrib/benitlux/src/report.nit

index 577a4f4..5f5513a 100644 (file)
@@ -31,7 +31,7 @@ abstract class BenitluxAction
        super Action
 
        # Database used for both the mailing list and the social network
-       var db: DB
+       var db: BenitluxDB
 
        # Path to the storage of the last email sent
        var sample_email_path = "benitlux_sherbrooke.email"
index 122ba14..7878de2 100644 (file)
@@ -102,7 +102,7 @@ class Benitlux
                        print beers
                end
 
-               var db = new DB.open(db_path)
+               var db = new BenitluxDB.open(db_path)
 
                # Update the database with the beers of the day
                db.insert_beers_of_the_day beers
index 81c8bb2..73739d9 100644 (file)
@@ -22,7 +22,7 @@ import sqlite3
 import benitlux_model
 
 # The database of this project
-class DB
+class BenitluxDB
        super Sqlite3DB
 
        redef init open(path)
index 81061fc..ae409a8 100644 (file)
@@ -19,7 +19,7 @@ import nitcorn::token
 
 import benitlux_db
 
-redef class DB
+redef class BenitluxDB
 
        redef fun create_tables
        do
index 46d5397..d5bab54 100644 (file)
@@ -27,7 +27,7 @@ fun iface: String do return "localhost:8080"
 
 # Sqlite3 database
 var db_path = "benitlux_sherbrooke.db"
-var db = new DB.open(db_path)
+var db = new BenitluxDB.open(db_path)
 var db_error = db.error
 if db_error != null then
        print_error db_error
index b840e3d..afa3a7f 100644 (file)
@@ -24,7 +24,7 @@ module correct
 
 import benitlux_db
 
-redef class DB
+redef class BenitluxDB
        # Path to file with the corrections
        private var corrections_path = "benitlux_corrections.txt"
 
index e1ba5aa..1f31328 100644 (file)
@@ -58,7 +58,7 @@ var rest = opts.rest
 # Use the local DB
 var db_path = "benitlux_sherbrooke.db"
 if rest.not_empty then db_path = rest.first
-var db = new DB.open(db_path)
+var db = new BenitluxDB.open(db_path)
 
 # All known beers
 var beers = db.beers