From 3e4a5095f5df075bedccd124ae050c6f0903275c Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 8 Aug 2010 09:21:00 +0200 Subject: [PATCH] Removed field "last_access". --- data/autedb.sql | 3 +- data/libaute-db/form/autedb.form | 7 --- .../gui/{autedb.glade => autedb.gui} | 54 +++++-------------- src/aute_db.c | 2 - 4 files changed, 15 insertions(+), 51 deletions(-) rename data/libaute-db/gui/{autedb.glade => autedb.gui} (95%) diff --git a/data/autedb.sql b/data/autedb.sql index 7d10fa9..6988dad 100644 --- a/data/autedb.sql +++ b/data/autedb.sql @@ -4,7 +4,6 @@ CREATE TABLE users ( surname varchar(100) DEFAULT '', name varchar(100) DEFAULT '', enabled bool, - last_access time, password_expiration time, notes text DEFAULT '', status varchar(1) DEFAULT '', @@ -12,5 +11,5 @@ CREATE TABLE users ( ); /* initial user with password 'root' */ -INSERT INTO users (code, password, surnam, enabled, status) +INSERT INTO users (code, password, surname, enabled, status) VALUES ('root', '63a9f0ea7bb98050796b649e85481845', 'Root', TRUE, ''); diff --git a/data/libaute-db/form/autedb.form b/data/libaute-db/form/autedb.form index 1e4fba3..b591d4b 100644 --- a/data/libaute-db/form/autedb.form +++ b/data/libaute-db/form/autedb.form @@ -31,13 +31,6 @@ - - - datetime - %d/%m/%Y %H.%M.%S - - - datetime diff --git a/data/libaute-db/gui/autedb.glade b/data/libaute-db/gui/autedb.gui similarity index 95% rename from data/libaute-db/gui/autedb.glade rename to data/libaute-db/gui/autedb.gui index fdda131..78bedf1 100644 --- a/data/libaute-db/gui/autedb.glade +++ b/data/libaute-db/gui/autedb.gui @@ -384,7 +384,7 @@ True - 8 + 7 2 5 5 @@ -438,19 +438,6 @@ GTK_FILL - - - True - 0 - Last access - - - 4 - 5 - GTK_FILL - GTK_FILL - - True @@ -458,8 +445,8 @@ Password expiration - 5 - 6 + 4 + 5 GTK_FILL GTK_FILL @@ -472,25 +459,12 @@ Description - 6 - 7 + 5 + 6 GTK_FILL GTK_FILL - - - True - 0 - lbl_last_access - - - 1 - 2 - 4 - 5 - - True @@ -555,8 +529,8 @@ 1 2 - 5 - 6 + 4 + 5 @@ -576,24 +550,24 @@ 1 2 - 6 - 7 + 5 + 6 - - - lbl_password - 7 - 8 + 6 + 7 GTK_FILL GTK_FILL + + + 0 diff --git a/src/aute_db.c b/src/aute_db.c index 7bd62c9..265454d 100644 --- a/src/aute_db.c +++ b/src/aute_db.c @@ -47,7 +47,6 @@ enum COL_STATUS, COL_CODE, COL_NAME, - COL_LAST_ACCESS, COL_PASSWORD_EXPIRATION }; @@ -232,7 +231,6 @@ autedb_load_users_list () COL_NAME, g_strdup_printf ("%s %s", gdaex_data_model_get_field_value_stringify_at (dm, row, "surname"), gdaex_data_model_get_field_value_stringify_at (dm, row, "name")), - COL_LAST_ACCESS, gtk_form_field_datetime_get_str_from_tm (gdaex_data_model_get_field_value_tm_at (dm, row, "last_access"), "%d/%m/%Y %H.%M.%S"), COL_PASSWORD_EXPIRATION, gtk_form_field_datetime_get_str_from_tm (gdaex_data_model_get_field_value_tm_at (dm, row, "password_expiration"), "%d/%m/%Y %H.%M.%S"), -1); } -- 2.49.0