From f7699b78bf4d13fcb9a43426a12f73051180f439 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 20 Dec 2011 00:30:20 +0000 Subject: Split check and test functionality... if and check now take tests as children, adds all, any, none and not as building blocks --- gentoobrowse/checks/loggedIn.xml | 9 +++--- gentoobrowse/console/changelogs.xml | 14 +++++---- gentoobrowse/present/search.xml | 6 ++-- gentoobrowse/request/doconfirm.xml | 17 ++++++----- gentoobrowse/request/dologin.xml | 58 ++++++++++++++++++++----------------- gentoobrowse/request/dosignup.xml | 53 ++++++++++++++++++--------------- gentoobrowse/request/track.xml | 20 +++++++------ 7 files changed, 97 insertions(+), 80 deletions(-) diff --git a/gentoobrowse/checks/loggedIn.xml b/gentoobrowse/checks/loggedIn.xml index 1f81797..49893c3 100644 --- a/gentoobrowse/checks/loggedIn.xml +++ b/gentoobrowse/checks/loggedIn.xml @@ -1,6 +1,7 @@ - - - Not logged in - + + + + + diff --git a/gentoobrowse/console/changelogs.xml b/gentoobrowse/console/changelogs.xml index 1c1c73e..4d15568 100644 --- a/gentoobrowse/console/changelogs.xml +++ b/gentoobrowse/console/changelogs.xml @@ -44,12 +44,14 @@ - - - - - - + + + + + + + + diff --git a/gentoobrowse/present/search.xml b/gentoobrowse/present/search.xml index 9f2f0df..3bcb9cb 100644 --- a/gentoobrowse/present/search.xml +++ b/gentoobrowse/present/search.xml @@ -4,10 +4,10 @@ - - + + - + diff --git a/gentoobrowse/request/doconfirm.xml b/gentoobrowse/request/doconfirm.xml index dd7b036..2e73a08 100644 --- a/gentoobrowse/request/doconfirm.xml +++ b/gentoobrowse/request/doconfirm.xml @@ -2,14 +2,15 @@ - - No such pending account - - SELECT COUNT(*) - FROM users - WHERE verifyguid = - - + + + + SELECT COUNT(*) + FROM users + WHERE verifyguid = + + + diff --git a/gentoobrowse/request/dologin.xml b/gentoobrowse/request/dologin.xml index 23d2c5e..efab51a 100644 --- a/gentoobrowse/request/dologin.xml +++ b/gentoobrowse/request/dologin.xml @@ -2,32 +2,38 @@ - - - User name required - - - - Password too short - - - Invalid username or password - - SELECT COUNT(*) - FROM users - WHERE username = - AND userpassword = - - - - Confirmation code required - - SELECT COUNT(*) - FROM users - WHERE username = - AND verifyguid IS NULL - - + + + + + + + + + + + + + + + SELECT COUNT(*) + FROM users + WHERE username = + AND userpassword = + + + + + + + SELECT COUNT(*) + FROM users + WHERE username = + AND verifyguid IS NULL + + + + diff --git a/gentoobrowse/request/dosignup.xml b/gentoobrowse/request/dosignup.xml index e59304a..5082fe0 100644 --- a/gentoobrowse/request/dosignup.xml +++ b/gentoobrowse/request/dosignup.xml @@ -1,30 +1,35 @@ - - - User name required - - - - Password too short - - - Username already used - - SELECT COUNT(*) - FROM users - WHERE username = - - - - Email address already used - - SELECT COUNT(*) - FROM users - WHERE useremail = - - + + + + + + + + + + + + + + SELECT COUNT(*) + FROM users + WHERE username = + + + + + + + SELECT COUNT(*) + FROM users + WHERE useremail = + + + + INSERT INTO users(username, userrealname, userpassword, useremail, verifyguid) VALUES(, , diff --git a/gentoobrowse/request/track.xml b/gentoobrowse/request/track.xml index 204bc03..5bd9ae4 100644 --- a/gentoobrowse/request/track.xml +++ b/gentoobrowse/request/track.xml @@ -1,14 +1,16 @@ - - Package already tracked - - SELECT COUNT(*) - FROM user_packages - WHERE packageid = - AND userid = - - + + + + SELECT COUNT(*) + FROM user_packages + WHERE packageid = + AND userid = + + + + INSERT INTO user_packages(packageid, userid, trackedsince) VALUES( , , NOW()) -- cgit v1.2.3