From: richard Date: Wed, 25 Sep 2002 02:10:25 +0000 (+0000) Subject: - replaced the content() callback ickiness with Page Template macro usage X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=97429ed8b266654ea8d987504967371e12c40b4d;p=roundup.git - replaced the content() callback ickiness with Page Template macro usage - changed the default CSS style to be less offensive to some ;) - better handling of Page Template compilation errors - removed dependency on ComputedAttribute git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1228 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 733150d..bc29638 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,9 @@ are given with the most recent entry first. - import wasn't setting the ID to maxid+1 - added getItem to HTMLClass so you can access arbitrary items in templates - index filtering form values may now be key values too +- replaced the content() callback ickiness with Page Template macro usage +- changed the default CSS style to be less offensive to some ;) +- better handling of Page Template compilation errors 2002-09-13 0.5.0 beta2 diff --git a/roundup/cgi/ComputedAttribute.py b/roundup/cgi/ComputedAttribute.py deleted file mode 100644 index 7117fb4..0000000 --- a/roundup/cgi/ComputedAttribute.py +++ /dev/null @@ -1,11 +0,0 @@ -class ComputedAttribute: - def __init__(self, callable, level): - self.callable = callable - self.level = level - def __of__(self, *args): - if self.level > 0: - return self.callable - if isinstance(self.callable, type('')): - return getattr(args[0], self.callable) - return self.callable(*args) - diff --git a/roundup/cgi/PageTemplates/PageTemplate.py b/roundup/cgi/PageTemplates/PageTemplate.py index 948d7a8..91d66d7 100755 --- a/roundup/cgi/PageTemplates/PageTemplate.py +++ b/roundup/cgi/PageTemplates/PageTemplate.py @@ -21,7 +21,7 @@ Modified for Roundup 0.5 release: """ -__version__='$Revision: 1.2 $'[11:-2] +__version__='$Revision: 1.3 $'[11:-2] import sys @@ -32,7 +32,6 @@ from roundup.cgi.TAL.TALInterpreter import TALInterpreter from Expressions import getEngine from string import join, strip, rstrip, split, replace, lower, find from cStringIO import StringIO -from ComputedAttribute import ComputedAttribute class PageTemplate: "Page Templates using TAL, TALES, and METAL" @@ -48,10 +47,6 @@ class PageTemplate: _text = '' _error_start = ' + + + + +

+ + + You are not allowed to view this page. @@ -34,3 +43,6 @@ You are not allowed to view this page. view ok
+ + + diff --git a/roundup/templates/classic/html/_generic.item b/roundup/templates/classic/html/_generic.item index 8fcf672..ac52bdb 100644 --- a/roundup/templates/classic/html/_generic.item +++ b/roundup/templates/classic/html/_generic.item @@ -1,3 +1,11 @@ + + + +

+ + + You are not allowed to view this page. @@ -25,6 +33,7 @@ You are not allowed to view this page. + @@ -35,15 +44,13 @@ You are not allowed to view this page. - - - -
  - submit button will go here -
+ + + + diff --git a/roundup/templates/classic/html/file.index b/roundup/templates/classic/html/file.index index 689e207..11ef20c 100644 --- a/roundup/templates/classic/html/file.index +++ b/roundup/templates/classic/html/file.index @@ -1,10 +1,28 @@ + +List of files + +

List of files

+ + + + + + + + + - - - - + + + +
DownloadContent TypeUploaded ByDate
- dld link + + dld link content typecreator's namecreation datecontent typecreator's namecreation date
+ + +
diff --git a/roundup/templates/classic/html/file.item b/roundup/templates/classic/html/file.item index 6b5f0fe..e540f8a 100644 --- a/roundup/templates/classic/html/file.item +++ b/roundup/templates/classic/html/file.item @@ -1,3 +1,11 @@ + +File display + +

File display

+ + + + You are not allowed to view this page. @@ -49,4 +57,6 @@ You are not allowed to view this page. + + diff --git a/roundup/templates/classic/html/home b/roundup/templates/classic/html/home index 03fe21b..fafdb2e 100644 --- a/roundup/templates/classic/html/home +++ b/roundup/templates/classic/html/home @@ -8,4 +8,3 @@ sort=('-', 'activity'), group=('+', 'priority'), filter=['status'], columns=['id','activity','title','creator','assignedto', 'status'], filterspec={'status':['-1','1','2','3','4','5','6','7']})" /> - diff --git a/roundup/templates/classic/html/home.classlist b/roundup/templates/classic/html/home.classlist index 6be69de..32583bf 100644 --- a/roundup/templates/classic/html/home.classlist +++ b/roundup/templates/classic/html/home.classlist @@ -1,3 +1,9 @@ + +List of classes + +

List of classes

+ + @@ -14,3 +20,6 @@
+ + +
diff --git a/roundup/templates/classic/html/issue.index b/roundup/templates/classic/html/issue.index index dda9b9f..7c058db 100644 --- a/roundup/templates/classic/html/issue.index +++ b/roundup/templates/classic/html/issue.index @@ -1,4 +1,11 @@ + +List of issues + +

List of issues

+ + + You are not allowed to view this page. @@ -98,3 +105,6 @@ You are not allowed to view this page.
+ +
+ diff --git a/roundup/templates/classic/html/issue.item b/roundup/templates/classic/html/issue.item index 1838c29..46f3cb6 100644 --- a/roundup/templates/classic/html/issue.item +++ b/roundup/templates/classic/html/issue.item @@ -1,8 +1,15 @@ + + +Issue editing +

Issue Editing

+ + + + You are not allowed to view this page. -
@@ -136,3 +143,6 @@ You are not allowed to view this page. + + + diff --git a/roundup/templates/classic/html/issue.search b/roundup/templates/classic/html/issue.search index 3bc6025..eeaf5c9 100644 --- a/roundup/templates/classic/html/issue.search +++ b/roundup/templates/classic/html/issue.search @@ -1,3 +1,9 @@ + +Issue searching + +

Issue searching

+ + @@ -173,3 +179,6 @@ + + +
diff --git a/roundup/templates/classic/html/keyword.item b/roundup/templates/classic/html/keyword.item index fe56700..64d519c 100644 --- a/roundup/templates/classic/html/keyword.item +++ b/roundup/templates/classic/html/keyword.item @@ -1,4 +1,10 @@ + +Keyword editing + +

Keyword editing

+ + @@ -41,3 +47,6 @@
+ + +
diff --git a/roundup/templates/classic/html/msg.index b/roundup/templates/classic/html/msg.index index f2a8348..b45f66a 100644 --- a/roundup/templates/classic/html/msg.index +++ b/roundup/templates/classic/html/msg.index @@ -1,3 +1,9 @@ + +Message listing + +

Message listing

+ + @@ -10,3 +16,6 @@
Messages
+ + +
diff --git a/roundup/templates/classic/html/msg.item b/roundup/templates/classic/html/msg.item index 06d2200..bfce4ed 100644 --- a/roundup/templates/classic/html/msg.item +++ b/roundup/templates/classic/html/msg.item @@ -1,4 +1,10 @@ + +Message editing + +

Message editing

+ + @@ -40,3 +46,6 @@
+ + + diff --git a/roundup/templates/classic/html/page b/roundup/templates/classic/html/page index 9ce95e2..bfa0aed 100644 --- a/roundup/templates/classic/html/page +++ b/roundup/templates/classic/html/page @@ -1,6 +1,6 @@ - + -title goes here +title goes here @@ -14,9 +14,7 @@   - -

name

- +

name

@@ -36,14 +34,17 @@ href="issue?:template=item">Create New
Show Unassigned
Show All
- Search Issues + Search

Keywords
New Keyword
+ href="keyword?:template=item">Create New
+ Edit Existing

- - The page content goes here. - + Page content goes here diff --git a/roundup/templates/classic/html/query.item b/roundup/templates/classic/html/query.item index 9e4f2fe..88b0a6e 100755 --- a/roundup/templates/classic/html/query.item +++ b/roundup/templates/classic/html/query.item @@ -1,3 +1,9 @@ + +Query editing + +

Query editing

+ + You are not allowed to view this page. @@ -5,3 +11,6 @@ You are not allowed to view this page. + + +
diff --git a/roundup/templates/classic/html/style.css b/roundup/templates/classic/html/style.css index ad8fa1d..1a1574e 100644 --- a/roundup/templates/classic/html/style.css +++ b/roundup/templates/classic/html/style.css @@ -3,22 +3,10 @@ body.body { font-family: sans-serif, Arial, Helvetica; color: #333333; } +a[href]:hover { color:blue; text-decoration: underline; } +a[href]:link { color:blue; text-decoration: none; } +a[href] { color:blue; text-decoration: none; } -/* generic hyperlink style */ -a[href]:hover { - text-decoration: underline; - color: blue; -} -a[href]:link { - text-decoration: none; - color: blue; -} -a[href] { - text-decoration: none; - color: blue; -} - -/* main page body container */ table.body { border: 0; padding: 0; @@ -27,41 +15,38 @@ table.body { } td.page-header-left { - background-color: #cccc88; padding: 5px; + border-bottom: 1px solid #444444; } td.page-header-top { - background-color: #cccc88; - border-bottom: 1px solid #dddd99; + border-bottom: 1px solid #444444; padding: 5px; } td.sidebar { - background-color: #cccc88; - border-right: 1px solid #dddd99; - border-bottom: 1px solid #dddd99; - padding: 0px; + padding: 1 0 0 1; } td.sidebar p.classblock { padding: 0 5 0 5; - border-top: 1px solid #dddd99; - border-bottom: 1px solid #dddd99; + margin: 1 1 1 1; + border: 1px solid #444444; + background-color: #eeeeee; } td.sidebar p.userblock { padding: 0 5 0 5; - background-color: #dddd99; - border-top: 1px solid #ffffbb; - border-bottom: 1px solid #ffffbb; + margin: 1 1 1 1; + border: 1px solid #444444; + background-color: #eeeeff; } td.content { - padding: 1px; + padding: 1 5 1 5; + vertical-align: top; } -/* feedback - ok and error messages */ p.ok-message { background-color: #22bb22; padding: 5 5 5 5; @@ -127,11 +112,12 @@ table.list th { background-color: #eeeeff; border-right: 1px solid #404070; border-top: 1px solid #404070; + border-bottom: 1px solid #404070; vertical-align: top; } -table.list th a:hover { color: #404070 } -table.list th a:link { color: #404070 } -table.list th a { color: #404070 } +table.list th a[href]:hover { color: #404070 } +table.list th a[href]:link { color: #404070 } +table.list th a[href] { color: #404070 } table.list th.group { background-color: #f4f4ff; text-align: center; @@ -190,11 +176,6 @@ table.messages th { } table.messages td { - text-align: left; - empty-cells: show; -} - -table.messages td.content { font-family: monospace; background-color: #efefef; border-top: 1px solid #afafaf; diff --git a/roundup/templates/classic/html/user.index b/roundup/templates/classic/html/user.index index 0bb7d13..8f5e0a5 100644 --- a/roundup/templates/classic/html/user.index +++ b/roundup/templates/classic/html/user.index @@ -1,4 +1,10 @@ + +User listing + +

User listing

+ + You are not allowed to view this page. @@ -24,3 +30,6 @@ You are not allowed to view this page. phone + + +
diff --git a/roundup/templates/classic/html/user.item b/roundup/templates/classic/html/user.item index 8dd12df..5685fa0 100644 --- a/roundup/templates/classic/html/user.item +++ b/roundup/templates/classic/html/user.item @@ -1,4 +1,10 @@ + +User editing + +

User editing

+ + You are not allowed to view this page. @@ -94,3 +100,6 @@ You are not allowed to view this page. + + + diff --git a/roundup/templates/classic/html/user.register b/roundup/templates/classic/html/user.register index ba9a7d4..9b366df 100644 --- a/roundup/templates/classic/html/user.register +++ b/roundup/templates/classic/html/user.register @@ -1,4 +1,12 @@ + + + +

+ + + @@ -69,3 +77,6 @@ You are not allowed to view this page. + + +