Mercurial > p > roundup > code
comparison roundup/templates/classic/htmlbase.py @ 68:5e71aaa87e5b
Added templatebuilder module.
two functions - one to pack up the html base, one to unpack it. Packed
up the two standard templates into htmlbases. Modified __init__ to
install them.
__init__.py magic was needed for the rather high levels of wierd import magic.
Reducing level of import magic == (good, future)
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Jul 2001 10:46:22 +0000 |
| parents | |
| children | 72de483388e3 |
comparison
equal
deleted
inserted
replaced
| 67:5b0406c37ccd | 68:5e71aaa87e5b |
|---|---|
| 1 | |
| 2 # Do Not Edit (Unless You Want To) | |
| 3 # This file automagically generated by roundup.htmldata.makeHtmlBase | |
| 4 # | |
| 5 fileDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 6 <tr> | |
| 7 <property name="name"> | |
| 8 <td><display call="link('name')"></td> | |
| 9 </property> | |
| 10 <property name="type"> | |
| 11 <td><display call="plain('type')"></td> | |
| 12 </property> | |
| 13 </tr> | |
| 14 """ | |
| 15 | |
| 16 issueDOTfilter = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 17 <property name="title"> | |
| 18 <tr><th width="1%" align="right" class="location-bar">Title</th> | |
| 19 <td><display call="field('title')"></td></tr> | |
| 20 </property> | |
| 21 <property name="status"> | |
| 22 <tr><th width="1%" align="right" class="location-bar">Status</th> | |
| 23 <td><display call="checklist('status')"></td></tr> | |
| 24 </property> | |
| 25 <property name="priority"> | |
| 26 <tr><th width="1%" align="right" class="location-bar">Priority</th> | |
| 27 <td><display call="checklist('priority')"></td></tr> | |
| 28 </property> | |
| 29 """ | |
| 30 | |
| 31 issueDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 32 <tr> | |
| 33 <property name="activity"> | |
| 34 <td valign="top"><display call="reldate('activity', pretty=1)"></td> | |
| 35 </property> | |
| 36 <property name="priority"> | |
| 37 <td valign="top"><display call="plain('priority')"></td> | |
| 38 </property> | |
| 39 <property name="status"> | |
| 40 <td valign="top"><display call="plain('status')"></td> | |
| 41 </property> | |
| 42 <property name="title"> | |
| 43 <td valign="top"><display call="link('title')"></td> | |
| 44 </property> | |
| 45 </tr> | |
| 46 """ | |
| 47 | |
| 48 issueDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 49 <table border=0 cellspacing=0 cellpadding=2> | |
| 50 | |
| 51 <tr class="strong-header"> | |
| 52 <td colspan=4>Item Information</td> | |
| 53 </td> | |
| 54 | |
| 55 <tr bgcolor="ffffea"> | |
| 56 <td width=1% nowrap align=right><span class="form-label">Title</span></td> | |
| 57 <td colspan=3 class="form-text"><display call="field('title', size=80)"></td> | |
| 58 </tr> | |
| 59 | |
| 60 <tr bgcolor="ffffea"> | |
| 61 <td width=1% nowrap align=right><span class="form-label">Created</span></td> | |
| 62 <td class="form-text"><display call="reldate('creation', pretty=1)"> | |
| 63 (<display call="plain('creator')">)</td> | |
| 64 <td width=1% nowrap align=right><span class="form-label">Last activity</span></td> | |
| 65 <td class="form-text"><display call="reldate('activity', pretty=1)"></td> | |
| 66 </tr> | |
| 67 | |
| 68 <tr bgcolor="ffffea"> | |
| 69 <td width=1% nowrap align=right><span class="form-label">Priority</span></td> | |
| 70 <td class="form-text"><display call="field('priority')"></td> | |
| 71 <td width=1% nowrap align=right><span class="form-label">Status</span></td> | |
| 72 <td class="form-text"><display call="menu('status')"></td> | |
| 73 </tr> | |
| 74 | |
| 75 <tr bgcolor="ffffea"> | |
| 76 <td width=1% nowrap align=right><span class="form-label">Superseder</span></td> | |
| 77 <td class="form-text"><display call="field('superseder', size=40, showid=1)"></td> | |
| 78 <td width=1% nowrap align=right><span class="form-label">Nosy List</span></td> | |
| 79 <td class="form-text"><display call="field('nosy')"></td> | |
| 80 </tr> | |
| 81 | |
| 82 <tr bgcolor="ffffea"> | |
| 83 <td width=1% nowrap align=right><span class="form-label">Change Note</span></td> | |
| 84 <td colspan=3 class="form-text"><display call="note()"></td> | |
| 85 </tr> | |
| 86 | |
| 87 <tr bgcolor="ffffea"> | |
| 88 <td> </td> | |
| 89 <td colspan=3 class="form-text"><display call="submit()"></td> | |
| 90 </tr> | |
| 91 | |
| 92 <property name="messages"> | |
| 93 <tr class="strong-header"> | |
| 94 <td colspan=4><b>Messages</b></td> | |
| 95 </tr> | |
| 96 <tr> | |
| 97 <td colspan=4><display call="list('messages')"></td> | |
| 98 </tr> | |
| 99 </property> | |
| 100 | |
| 101 <property name="files"> | |
| 102 <tr class="strong-header"> | |
| 103 <td colspan=4><b>Files</b></td> | |
| 104 </tr> | |
| 105 <tr> | |
| 106 <td colspan=4><display call="list('files')"></td> | |
| 107 </tr> | |
| 108 </property> | |
| 109 | |
| 110 </table> | |
| 111 | |
| 112 """ | |
| 113 | |
| 114 msgDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 115 <tr> | |
| 116 <property name="date"> | |
| 117 <td><display call="link('date')"></td> | |
| 118 </property> | |
| 119 <property name="author"> | |
| 120 <td><display call="plain('author')"></td> | |
| 121 </property> | |
| 122 <property name="summary"> | |
| 123 <td><display call="plain('summary')"></td> | |
| 124 </property> | |
| 125 </tr> | |
| 126 """ | |
| 127 | |
| 128 msgDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 129 <table border=0 cellspacing=0 cellpadding=2> | |
| 130 | |
| 131 <tr class="strong-header"> | |
| 132 <td colspan=2>Message Information</td> | |
| 133 </td> | |
| 134 | |
| 135 <tr bgcolor="ffffea"> | |
| 136 <td width=1% nowrap align=right><span class="form-label">Author</span></td> | |
| 137 <td class="form-text"><display call="plain('author')"></td> | |
| 138 </tr> | |
| 139 | |
| 140 <tr bgcolor="ffffea"> | |
| 141 <td width=1% nowrap align=right><span class="form-label">Recipients</span></td> | |
| 142 <td class="form-text"><display call="plain('recipients')"></td> | |
| 143 </tr> | |
| 144 | |
| 145 <tr bgcolor="ffffea"> | |
| 146 <td width=1% nowrap align=right><span class="form-label">Date</span></td> | |
| 147 <td class="form-text"><display call="plain('date')"></td> | |
| 148 </tr> | |
| 149 | |
| 150 <tr bgcolor="ffeaff"> | |
| 151 <td colspan=2 class="form-text"> | |
| 152 <pre><display call="plain('content')"></pre> | |
| 153 </td> | |
| 154 </tr> | |
| 155 | |
| 156 <property name="files"> | |
| 157 <tr class="strong-header"><td colspan=2><b>Files</b></td></tr> | |
| 158 <tr><td colspan=2><display call="list('files')"></td></tr> | |
| 159 </property> | |
| 160 | |
| 161 <tr class="strong-header"><td colspan=2><b>History</b></td><tr> | |
| 162 <tr><td colspan=2><display call="history()"></td></tr> | |
| 163 | |
| 164 </table> | |
| 165 """ | |
| 166 | |
| 167 styleDOTcss = """h1 { | |
| 168 font-family: Verdana, Helvetica, sans-serif; | |
| 169 font-size: 18pt; | |
| 170 font-weight: bold; | |
| 171 } | |
| 172 | |
| 173 h2 { | |
| 174 font-family: Verdana, Helvetica, sans-serif; | |
| 175 font-size: 16pt; | |
| 176 font-weight: bold; | |
| 177 } | |
| 178 | |
| 179 h3 { | |
| 180 font-family: Verdana, Helvetica, sans-serif; | |
| 181 font-size: 12pt; | |
| 182 font-weight: bold; | |
| 183 } | |
| 184 | |
| 185 a:hover { | |
| 186 font-family: Verdana, Helvetica, sans-serif; | |
| 187 text-decoration: underline; | |
| 188 color: #333333; | |
| 189 } | |
| 190 | |
| 191 a:link { | |
| 192 font-family: Verdana, Helvetica, sans-serif; | |
| 193 text-decoration: none; | |
| 194 color: #000099; | |
| 195 } | |
| 196 | |
| 197 a { | |
| 198 font-family: Verdana, Helvetica, sans-serif; | |
| 199 text-decoration: none; | |
| 200 color: #000099; | |
| 201 } | |
| 202 | |
| 203 p { | |
| 204 font-family: Verdana, Helvetica, sans-serif; | |
| 205 font-size: 10pt; | |
| 206 color: #333333; | |
| 207 } | |
| 208 | |
| 209 th { | |
| 210 font-family: Verdana, Helvetica, sans-serif; | |
| 211 font-weight: bold; | |
| 212 font-size: 10pt; | |
| 213 color: #333333; | |
| 214 } | |
| 215 | |
| 216 .form-help { | |
| 217 font-family: Verdana, Helvetica, sans-serif; | |
| 218 font-size: 10pt; | |
| 219 color: #333333; | |
| 220 } | |
| 221 | |
| 222 .std-text { | |
| 223 font-family: Verdana, Helvetica, sans-serif; | |
| 224 font-size: 10pt; | |
| 225 color: #333333; | |
| 226 } | |
| 227 | |
| 228 .tab-small { | |
| 229 font-family: Verdana, Helvetica, sans-serif; | |
| 230 font-size: 8pt; | |
| 231 color: #333333; | |
| 232 } | |
| 233 | |
| 234 .location-bar { | |
| 235 background-color: #efefef; | |
| 236 border: none; | |
| 237 } | |
| 238 | |
| 239 .strong-header { | |
| 240 font-family: Verdana, Helvetica, sans-serif; | |
| 241 font-size: 12pt; | |
| 242 font-weight: bold; | |
| 243 background-color: #000000; | |
| 244 color: #ffffff; | |
| 245 } | |
| 246 | |
| 247 .list-header { | |
| 248 background-color: #c0c0c0; | |
| 249 border: none; | |
| 250 } | |
| 251 | |
| 252 .list-item { | |
| 253 font-family: Verdana, Helvetica, sans-serif; | |
| 254 font-size: 10pt; | |
| 255 } | |
| 256 | |
| 257 .list-nav { | |
| 258 font-family: Verdana, Helvetica, sans-serif; | |
| 259 font-size: 10pt; | |
| 260 font-weight: bold; | |
| 261 } | |
| 262 | |
| 263 .row-normal { | |
| 264 background-color: #ffffff; | |
| 265 border: none; | |
| 266 | |
| 267 } | |
| 268 | |
| 269 .row-hilite { | |
| 270 background-color: #efefef; | |
| 271 border: none; | |
| 272 } | |
| 273 | |
| 274 .section-bar { | |
| 275 background-color: #c0c0c0; | |
| 276 border: none; | |
| 277 } | |
| 278 | |
| 279 .system-msg { | |
| 280 font-family: Verdana, Helvetica, sans-serif; | |
| 281 font-size: 10pt; | |
| 282 background-color: #ffffff; | |
| 283 border: 1px solid #000000; | |
| 284 margin-bottom: 6px; | |
| 285 margin-top: 6px; | |
| 286 padding: 4px; | |
| 287 width: 100%; | |
| 288 color: #660033; | |
| 289 } | |
| 290 | |
| 291 .form-title { | |
| 292 font-family: Verdana, Helvetica, sans-serif; | |
| 293 font-weight: bold; | |
| 294 font-size: 12pt; | |
| 295 color: #333333; | |
| 296 } | |
| 297 | |
| 298 .form-label { | |
| 299 font-family: Verdana, Helvetica, sans-serif; | |
| 300 font-weight: bold; | |
| 301 font-size: 10pt; | |
| 302 color: #333333; | |
| 303 } | |
| 304 | |
| 305 .form-optional { | |
| 306 font-family: Verdana, Helvetica, sans-serif; | |
| 307 font-weight: bold; | |
| 308 font-style: italic; | |
| 309 font-size: 10pt; | |
| 310 color: #333333; | |
| 311 } | |
| 312 | |
| 313 .form-element { | |
| 314 font-family: Verdana, Helvetica, aans-serif; | |
| 315 font-size: 10pt; | |
| 316 color: #000000; | |
| 317 } | |
| 318 | |
| 319 .form-text { | |
| 320 font-family: Verdana, Helvetica, sans-serif; | |
| 321 font-size: 10pt; | |
| 322 color: #333333; | |
| 323 } | |
| 324 | |
| 325 .form-mono { | |
| 326 font-family: monospace; | |
| 327 font-size: 12px; | |
| 328 text-decoration: none; | |
| 329 } | |
| 330 """ | |
| 331 | |
| 332 userDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 333 <tr> | |
| 334 <property name="username"> | |
| 335 <td><display call="link('username')"></td> | |
| 336 </property> | |
| 337 <property name="realname"> | |
| 338 <td><display call="plain('realname')"></td> | |
| 339 </property> | |
| 340 <property name="organisation"> | |
| 341 <td><display call="plain('organisation')"></td> | |
| 342 </property> | |
| 343 <property name="address"> | |
| 344 <td><display call="plain('address')"></td> | |
| 345 </property> | |
| 346 <property name="phone"> | |
| 347 <td><display call="plain('phone')"></td> | |
| 348 </property> | |
| 349 </tr> | |
| 350 """ | |
| 351 | |
| 352 userDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 353 <table border=0 cellspacing=0 cellpadding=2> | |
| 354 | |
| 355 <tr class="strong-header"> | |
| 356 <td colspan=2>Your Details</td> | |
| 357 </td> | |
| 358 | |
| 359 <tr bgcolor="ffffea"> | |
| 360 <td width=1% nowrap align=right><span class="form-label">Name</span></td> | |
| 361 <td class="form-text"><display call="field('realname', size=40)"></td> | |
| 362 </tr> | |
| 363 <tr bgcolor="ffffea"> | |
| 364 <td width=1% nowrap align=right><span class="form-label">Login Name</span></td> | |
| 365 <td class="form-text"><display call="field('username', size=40)"></td> | |
| 366 </tr> | |
| 367 <tr bgcolor="ffffea"> | |
| 368 <td width=1% nowrap align=right><span class="form-label">Login Password</span></td> | |
| 369 <td class="form-text"><display call="field('password', size=10)"></td> | |
| 370 </tr> | |
| 371 <tr bgcolor="ffffea"> | |
| 372 <td width=1% nowrap align=right><span class="form-label">Phone</span></td> | |
| 373 <td class="form-text"><display call="field('phone', size=40)"></td> | |
| 374 </tr> | |
| 375 <tr bgcolor="ffffea"> | |
| 376 <td width=1% nowrap align=right><span class="form-label">Organisation</span></td> | |
| 377 <td class="form-text"><display call="field('organisation', size=40)"></td> | |
| 378 </tr> | |
| 379 <tr bgcolor="ffffea"> | |
| 380 <td width=1% nowrap align=right><span class="form-label">E-mail address</span></td> | |
| 381 <td class="form-text"><display call="field('address', size=40)"></td> | |
| 382 </tr> | |
| 383 | |
| 384 <tr bgcolor="ffffea"> | |
| 385 <td> </td> | |
| 386 <td class="form-text"><display call="submit()"></td> | |
| 387 </tr> | |
| 388 | |
| 389 <tr class="strong-header"> | |
| 390 <td colspan=2><b>History</b></td> | |
| 391 </tr> | |
| 392 <tr> | |
| 393 <td colspan=2><display call="history()"></td> | |
| 394 </tr> | |
| 395 | |
| 396 </table> | |
| 397 | |
| 398 """ | |
| 399 |
