From 234c2996722af16b03cf3df9e895ac8ef04ddcd5 Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 14 Dec 2011 21:42:31 +0000 Subject: Pluggable script engines XML script parser moved to XML module Script parsing object multiple instantiation bug fix Scripts changed to match new standardized format and layout --- gentoobrowse/.p2config | 2 ++ gentoobrowse/console/bugassociate.xml | 4 +-- gentoobrowse/console/bugimport.xml | 26 ++++++++------ gentoobrowse/console/categorymetadata.xml | 10 ++++-- gentoobrowse/console/changelogs.xml | 24 +++++++------ gentoobrowse/console/fileimport.xml | 16 ++++----- gentoobrowse/console/packageimport.xml | 60 +++++++++++++++---------------- gentoobrowse/console/packagelicenses.xml | 6 ++-- gentoobrowse/console/packagemasks.xml | 16 ++++----- gentoobrowse/console/packagemetadata.xml | 14 +++++--- gentoobrowse/console/use.global.xml | 10 +++--- gentoobrowse/console/use.local.xml | 16 ++++----- gentoobrowse/datasources/postgres-web.xml | 14 ++++---- gentoobrowse/datasources/postgres.xml | 8 ++--- gentoobrowse/request/doconfirm.xml | 2 +- gentoobrowse/views/poweredBy.xml | 4 +-- 16 files changed, 124 insertions(+), 108 deletions(-) diff --git a/gentoobrowse/.p2config b/gentoobrowse/.p2config index 333a0a9..0bb6084 100644 --- a/gentoobrowse/.p2config +++ b/gentoobrowse/.p2config @@ -1,3 +1,5 @@ +[common] +consolelogLevel = 9 [cgi] sessionModule = couchsession errorContentType=text/xml-xslt diff --git a/gentoobrowse/console/bugassociate.xml b/gentoobrowse/console/bugassociate.xml index d8decc5..d0b9ed1 100644 --- a/gentoobrowse/console/bugassociate.xml +++ b/gentoobrowse/console/bugassociate.xml @@ -9,8 +9,8 @@ AND namedpackages(b.summary) @> ARRAY[c.name || '/' || p.name] - bugid - packageid + + diff --git a/gentoobrowse/console/bugimport.xml b/gentoobrowse/console/bugimport.xml index 1408e53..3e9c5f4 100644 --- a/gentoobrowse/console/bugimport.xml +++ b/gentoobrowse/console/bugimport.xml @@ -3,18 +3,22 @@ xmlns:project2="http://project2.randomdan.homeip.net"> - url + - - - - - - + + + + + + + + + + @@ -29,10 +33,10 @@ - bugid - severity - status - summary + + + + diff --git a/gentoobrowse/console/categorymetadata.xml b/gentoobrowse/console/categorymetadata.xml index 7e1159f..8eb337d 100644 --- a/gentoobrowse/console/categorymetadata.xml +++ b/gentoobrowse/console/categorymetadata.xml @@ -13,9 +13,13 @@ - - - + + + + + + + diff --git a/gentoobrowse/console/changelogs.xml b/gentoobrowse/console/changelogs.xml index 3ed1f50..1c1c73e 100644 --- a/gentoobrowse/console/changelogs.xml +++ b/gentoobrowse/console/changelogs.xml @@ -15,16 +15,18 @@ - text + + + (\d+ *(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\w* \d+); *([^<]+)? *<([^ >]+)[>\s]\s*(?:[^:]*:)?\s*(.*?)(?:\R\*|\s*$|\R\R) - date - person - email - comment + + + + @@ -63,12 +65,12 @@ - packageid - date - n - person - email - comment + + + + + + diff --git a/gentoobrowse/console/fileimport.xml b/gentoobrowse/console/fileimport.xml index 19585cd..8772821 100644 --- a/gentoobrowse/console/fileimport.xml +++ b/gentoobrowse/console/fileimport.xml @@ -27,9 +27,9 @@ - filename - moddate - filetypeid + + + @@ -43,10 +43,10 @@ ORDER BY f.fileid - + - content + @@ -64,9 +64,9 @@ - fileid - line - content + + + diff --git a/gentoobrowse/console/packageimport.xml b/gentoobrowse/console/packageimport.xml index 5dba528..c136294 100644 --- a/gentoobrowse/console/packageimport.xml +++ b/gentoobrowse/console/packageimport.xml @@ -4,7 +4,7 @@ SELECT DISTINCT (REGEXP_MATCHES(filename, '^[^/]+'))[1] AS name FROM files WHERE filetypeid = 1 - name + @@ -24,9 +24,9 @@ AND fc.line = 8 - categoryid - name - description + + + @@ -47,14 +47,14 @@ AND p.name = f.name - ebuildid - packageid - version - versioninst - slot - license - firstseen - moddate + + + + + + + + @@ -67,8 +67,8 @@ AND filetypeid = 1 - ebuildid - arch + + @@ -81,8 +81,8 @@ AND filetypeid = 1 - ebuildid - use + + @@ -98,8 +98,8 @@ WHERE url LIKE '%://%' - packageid - url + + @@ -127,12 +127,12 @@ AND c.name = cat - ebuildid - packageid - slot - op - versionspec - flags + + + + + + @@ -160,12 +160,12 @@ AND c.name = cat - ebuildid - packageid - slot - op - versionspec - flags + + + + + + diff --git a/gentoobrowse/console/packagelicenses.xml b/gentoobrowse/console/packagelicenses.xml index 22cbaf8..1ed5897 100644 --- a/gentoobrowse/console/packagelicenses.xml +++ b/gentoobrowse/console/packagelicenses.xml @@ -14,7 +14,7 @@ - text + - name - legalbumph + + diff --git a/gentoobrowse/console/packagemasks.xml b/gentoobrowse/console/packagemasks.xml index 915e115..6fafbb4 100644 --- a/gentoobrowse/console/packagemasks.xml +++ b/gentoobrowse/console/packagemasks.xml @@ -21,11 +21,11 @@ GROUP BY d.setno - setno - person - email - dateadded - message + + + + + @@ -35,9 +35,9 @@ WHERE content NOT LIKE '#%' - line - setno - ebuildid + + + diff --git a/gentoobrowse/console/packagemetadata.xml b/gentoobrowse/console/packagemetadata.xml index abcb209..f4b1a2f 100644 --- a/gentoobrowse/console/packagemetadata.xml +++ b/gentoobrowse/console/packagemetadata.xml @@ -14,11 +14,15 @@ - - - - - + + + + + + + + + diff --git a/gentoobrowse/console/use.global.xml b/gentoobrowse/console/use.global.xml index 69fb1d2..dc092bb 100644 --- a/gentoobrowse/console/use.global.xml +++ b/gentoobrowse/console/use.global.xml @@ -3,15 +3,15 @@ xmlns:project2="http://project2.randomdan.homeip.net"> - text + ([^ ]+) - (.+) - use - description + + @@ -19,8 +19,8 @@ - use - description + + diff --git a/gentoobrowse/console/use.local.xml b/gentoobrowse/console/use.local.xml index 97141d0..456c5cc 100644 --- a/gentoobrowse/console/use.local.xml +++ b/gentoobrowse/console/use.local.xml @@ -3,17 +3,17 @@ xmlns:project2="http://project2.randomdan.homeip.net"> - text + ([^/]+)/([^:]+):([^ ]+) - (.+) - category - package - use - description + + + + @@ -41,9 +41,9 @@ - packageid - use - description + + + diff --git a/gentoobrowse/datasources/postgres-web.xml b/gentoobrowse/datasources/postgres-web.xml index 426f6ee..be19a4e 100644 --- a/gentoobrowse/datasources/postgres-web.xml +++ b/gentoobrowse/datasources/postgres-web.xml @@ -1,10 +1,10 @@ - - - host=firebrand.random.lan user=apache dbname=gentoo options='-c search_path=gentoobrowse,public' - host=defiant.random.lan user=apache dbname=gentoo options='-c search_path=gentoobrowse,public' - host=akira.random.lan user=apache dbname=gentoo options='-c search_path=gentoobrowse,public' - host=riogrande.random.lan user=apache dbname=gentoo options='-c search_path=gentoobrowse,public' + + + + + + - host=firebrand.random.lan user=apache dbname=gentoo options='-c search_path=gentoobrowse,public' + diff --git a/gentoobrowse/datasources/postgres.xml b/gentoobrowse/datasources/postgres.xml index 8a2c975..8281549 100644 --- a/gentoobrowse/datasources/postgres.xml +++ b/gentoobrowse/datasources/postgres.xml @@ -1,7 +1,7 @@ - - - sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' + + + - sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' + diff --git a/gentoobrowse/request/doconfirm.xml b/gentoobrowse/request/doconfirm.xml index e71d396..dd7b036 100644 --- a/gentoobrowse/request/doconfirm.xml +++ b/gentoobrowse/request/doconfirm.xml @@ -15,7 +15,7 @@ - + diff --git a/gentoobrowse/views/poweredBy.xml b/gentoobrowse/views/poweredBy.xml index 7a8faab..273b8a1 100644 --- a/gentoobrowse/views/poweredBy.xml +++ b/gentoobrowse/views/poweredBy.xml @@ -2,8 +2,8 @@ - name - url + + -- cgit v1.2.3