Mercurial > p > roundup > code
comparison roundup/templates/extended/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 <property name="platform"> | |
| 30 <tr><th width="1%" align="right" class="location-bar">Platform</th> | |
| 31 <td><display call="checklist('platform')"></td></tr> | |
| 32 </property> | |
| 33 <property name="product"> | |
| 34 <tr><th width="1%" align="right" class="location-bar">Product</th> | |
| 35 <td><display call="checklist('product')"></td></tr> | |
| 36 </property> | |
| 37 <property name="version"> | |
| 38 <tr><th width="1%" align="right" class="location-bar">Version</th> | |
| 39 <td><display call="field('version')"></td></tr> | |
| 40 </property> | |
| 41 <property name="source"> | |
| 42 <tr><th width="1%" align="right" class="location-bar">Source</th> | |
| 43 <td><display call="checklist('source')"></td></tr> | |
| 44 </property> | |
| 45 <property name="assignedto"> | |
| 46 <tr><th width="1%" align="right" class="location-bar">Assigned to</th> | |
| 47 <td><display call="checklist('assignedto')"></td></tr> | |
| 48 </property> | |
| 49 <property name="customername"> | |
| 50 <tr><th width="1%" align="right" class="location-bar">Customer name</th> | |
| 51 <td><display call="field('customername')"></td></tr> | |
| 52 </property> | |
| 53 """ | |
| 54 | |
| 55 issueDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 56 <tr> | |
| 57 <property name="activity"> | |
| 58 <td valign="top"><display call="reldate('activity', pretty=1)"></td> | |
| 59 </property> | |
| 60 <property name="priority"> | |
| 61 <td valign="top"><display call="plain('priority')"></td> | |
| 62 </property> | |
| 63 <property name="status"> | |
| 64 <td valign="top"><display call="plain('status')"></td> | |
| 65 </property> | |
| 66 <property name="title"> | |
| 67 <td valign="top"><display call="link('title')"></td> | |
| 68 </property> | |
| 69 <property name="platform"> | |
| 70 <td valign="top"><display call="plain('platform')"></td> | |
| 71 </property> | |
| 72 <property name="product"> | |
| 73 <td valign="top"><display call="plain('product')"></td> | |
| 74 </property> | |
| 75 <property name="version"> | |
| 76 <td valign="top"><display call="plain('version')"></td> | |
| 77 </property> | |
| 78 <property name="source"> | |
| 79 <td valign="top"><display call="plain('source')"></td> | |
| 80 </property> | |
| 81 <property name="assignedto"> | |
| 82 <td valign="top"><display call="plain('assignedto')"></td> | |
| 83 </property> | |
| 84 <property name="customername"> | |
| 85 <td valign="top"><display call="plain('customername')"></td> | |
| 86 </property> | |
| 87 </tr> | |
| 88 """ | |
| 89 | |
| 90 issueDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 91 <table border=0 cellspacing=0 cellpadding=2> | |
| 92 | |
| 93 <tr class="strong-header"> | |
| 94 <td colspan=4>Item Information</td> | |
| 95 </td> | |
| 96 | |
| 97 <tr bgcolor="ffffea"> | |
| 98 <td width=1% nowrap align=right><span class="form-label">Title</span></td> | |
| 99 <td colspan=3 class="form-text"><display call="field('title', size=80)"></td> | |
| 100 </tr> | |
| 101 | |
| 102 <tr bgcolor="ffffea"> | |
| 103 <td width=1% nowrap align=right><span class="form-label">Product</span></td> | |
| 104 <td class="form-text" valign=middle><display call="menu('product')"> | |
| 105 version:<display call="field('version', 5)"></td> | |
| 106 <td width=1% nowrap align=right><span class="form-label">Platform</span></td> | |
| 107 <td class="form-text" valign=middle><display call="checklist('platform')"></td> | |
| 108 </tr> | |
| 109 | |
| 110 <tr bgcolor="ffffea"> | |
| 111 <td width=1% nowrap align=right><span class="form-label">Created</span></td> | |
| 112 <td class="form-text"><display call="reldate('creation', pretty=1)"> | |
| 113 (<display call="plain('creator')">)</td> | |
| 114 <td width=1% nowrap align=right><span class="form-label">Last activity</span></td> | |
| 115 <td class="form-text"><display call="reldate('activity', pretty=1)"></td> | |
| 116 </tr> | |
| 117 | |
| 118 <tr bgcolor="ffffea"> | |
| 119 <td width=1% nowrap align=right><span class="form-label">Priority</span></td> | |
| 120 <td class="form-text"><display call="field('priority')"></td> | |
| 121 <td width=1% nowrap align=right><span class="form-label">Source</span></td> | |
| 122 <td class="form-text"><display call="field('source')"></td> | |
| 123 </tr> | |
| 124 | |
| 125 <tr bgcolor="ffffea"> | |
| 126 <td width=1% nowrap align=right><span class="form-label">Status</span></td> | |
| 127 <td class="form-text"><display call="menu('status')"></td> | |
| 128 <td width=1% nowrap align=right><span class="form-label">Rate</span></td> | |
| 129 <td class="form-text"><display call="field('rate')"></td> | |
| 130 </tr> | |
| 131 | |
| 132 <tr bgcolor="ffffea"> | |
| 133 <td width=1% nowrap align=right><span class="form-label">Assigned To</span></td> | |
| 134 <td class="form-text"><display call="field('assignedto')"></td> | |
| 135 <td width=1% nowrap align=right><span class="form-label">Customer Name</span></td> | |
| 136 <td class="form-text"><display call="field('customername')"></td> | |
| 137 </tr> | |
| 138 | |
| 139 <tr bgcolor="ffffea"> | |
| 140 <td width=1% nowrap align=right><span class="form-label">Superseder</span></td> | |
| 141 <td class="form-text"><display call="field('superseder', size=40, showid=1)"></td> | |
| 142 <td width=1% nowrap align=right><span class="form-label">Nosy List</span></td> | |
| 143 <td class="form-text"><display call="field('nosy')"></td> | |
| 144 </tr> | |
| 145 | |
| 146 <tr bgcolor="ffffea"> | |
| 147 <td width=1% nowrap align=right><span class="form-label">Change Note</span></td> | |
| 148 <td colspan=3 class="form-text"><display call="note()"></td> | |
| 149 </tr> | |
| 150 | |
| 151 <tr bgcolor="ffffea"> | |
| 152 <td> </td> | |
| 153 <td colspan=3 class="form-text"><display call="submit()"></td> | |
| 154 </tr> | |
| 155 | |
| 156 <property name="messages"> | |
| 157 <tr class="strong-header"> | |
| 158 <td colspan=4><b>Messages</b></td> | |
| 159 </tr> | |
| 160 <tr> | |
| 161 <td colspan=4><display call="list('messages')"></td> | |
| 162 </tr> | |
| 163 </property> | |
| 164 | |
| 165 <property name="files"> | |
| 166 <tr class="strong-header"> | |
| 167 <td colspan=4><b>Files</b></td> | |
| 168 </tr> | |
| 169 <tr> | |
| 170 <td colspan=4><display call="list('files')"></td> | |
| 171 </tr> | |
| 172 </property> | |
| 173 | |
| 174 </table> | |
| 175 | |
| 176 """ | |
| 177 | |
| 178 msgDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 179 <tr> | |
| 180 <property name="date"> | |
| 181 <td><display call="link('date')"></td> | |
| 182 </property> | |
| 183 <property name="author"> | |
| 184 <td><display call="plain('author')"></td> | |
| 185 </property> | |
| 186 <property name="summary"> | |
| 187 <td><display call="plain('summary')"></td> | |
| 188 </property> | |
| 189 </tr> | |
| 190 """ | |
| 191 | |
| 192 msgDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 193 <table border=0 cellspacing=0 cellpadding=2> | |
| 194 | |
| 195 <tr class="strong-header"> | |
| 196 <td colspan=2>Message Information</td> | |
| 197 </td> | |
| 198 | |
| 199 <tr bgcolor="ffffea"> | |
| 200 <td width=1% nowrap align=right><span class="form-label">Author</span></td> | |
| 201 <td class="form-text"><display call="plain('author')"></td> | |
| 202 </tr> | |
| 203 | |
| 204 <tr bgcolor="ffffea"> | |
| 205 <td width=1% nowrap align=right><span class="form-label">Recipients</span></td> | |
| 206 <td class="form-text"><display call="plain('recipients')"></td> | |
| 207 </tr> | |
| 208 | |
| 209 <tr bgcolor="ffffea"> | |
| 210 <td width=1% nowrap align=right><span class="form-label">Date</span></td> | |
| 211 <td class="form-text"><display call="plain('date')"></td> | |
| 212 </tr> | |
| 213 | |
| 214 <tr bgcolor="ffeaff"> | |
| 215 <td colspan=2 class="form-text"> | |
| 216 <pre><display call="plain('content')"></pre> | |
| 217 </td> | |
| 218 </tr> | |
| 219 | |
| 220 <property name="files"> | |
| 221 <tr class="strong-header"><td colspan=2><b>Files</b></td></tr> | |
| 222 <tr><td colspan=2><display call="list('files')"></td></tr> | |
| 223 </property> | |
| 224 | |
| 225 <tr class="strong-header"><td colspan=2><b>History</b></td><tr> | |
| 226 <tr><td colspan=2><display call="history()"></td></tr> | |
| 227 | |
| 228 </table> | |
| 229 """ | |
| 230 | |
| 231 styleDOTcss = """h1 { | |
| 232 font-family: Verdana, Helvetica, sans-serif; | |
| 233 font-size: 18pt; | |
| 234 font-weight: bold; | |
| 235 } | |
| 236 | |
| 237 h2 { | |
| 238 font-family: Verdana, Helvetica, sans-serif; | |
| 239 font-size: 16pt; | |
| 240 font-weight: bold; | |
| 241 } | |
| 242 | |
| 243 h3 { | |
| 244 font-family: Verdana, Helvetica, sans-serif; | |
| 245 font-size: 12pt; | |
| 246 font-weight: bold; | |
| 247 } | |
| 248 | |
| 249 a:hover { | |
| 250 font-family: Verdana, Helvetica, sans-serif; | |
| 251 text-decoration: underline; | |
| 252 color: #333333; | |
| 253 } | |
| 254 | |
| 255 a:link { | |
| 256 font-family: Verdana, Helvetica, sans-serif; | |
| 257 text-decoration: none; | |
| 258 color: #000099; | |
| 259 } | |
| 260 | |
| 261 a { | |
| 262 font-family: Verdana, Helvetica, sans-serif; | |
| 263 text-decoration: none; | |
| 264 color: #000099; | |
| 265 } | |
| 266 | |
| 267 p { | |
| 268 font-family: Verdana, Helvetica, sans-serif; | |
| 269 font-size: 10pt; | |
| 270 color: #333333; | |
| 271 } | |
| 272 | |
| 273 th { | |
| 274 font-family: Verdana, Helvetica, sans-serif; | |
| 275 font-weight: bold; | |
| 276 font-size: 10pt; | |
| 277 color: #333333; | |
| 278 } | |
| 279 | |
| 280 .form-help { | |
| 281 font-family: Verdana, Helvetica, sans-serif; | |
| 282 font-size: 10pt; | |
| 283 color: #333333; | |
| 284 } | |
| 285 | |
| 286 .std-text { | |
| 287 font-family: Verdana, Helvetica, sans-serif; | |
| 288 font-size: 10pt; | |
| 289 color: #333333; | |
| 290 } | |
| 291 | |
| 292 .tab-small { | |
| 293 font-family: Verdana, Helvetica, sans-serif; | |
| 294 font-size: 8pt; | |
| 295 color: #333333; | |
| 296 } | |
| 297 | |
| 298 .location-bar { | |
| 299 background-color: #efefef; | |
| 300 border: none; | |
| 301 } | |
| 302 | |
| 303 .strong-header { | |
| 304 font-family: Verdana, Helvetica, sans-serif; | |
| 305 font-size: 12pt; | |
| 306 font-weight: bold; | |
| 307 background-color: #000000; | |
| 308 color: #ffffff; | |
| 309 } | |
| 310 | |
| 311 .list-header { | |
| 312 background-color: #c0c0c0; | |
| 313 border: none; | |
| 314 } | |
| 315 | |
| 316 .list-item { | |
| 317 font-family: Verdana, Helvetica, sans-serif; | |
| 318 font-size: 10pt; | |
| 319 } | |
| 320 | |
| 321 .list-nav { | |
| 322 font-family: Verdana, Helvetica, sans-serif; | |
| 323 font-size: 10pt; | |
| 324 font-weight: bold; | |
| 325 } | |
| 326 | |
| 327 .row-normal { | |
| 328 background-color: #ffffff; | |
| 329 border: none; | |
| 330 | |
| 331 } | |
| 332 | |
| 333 .row-hilite { | |
| 334 background-color: #efefef; | |
| 335 border: none; | |
| 336 } | |
| 337 | |
| 338 .section-bar { | |
| 339 background-color: #c0c0c0; | |
| 340 border: none; | |
| 341 } | |
| 342 | |
| 343 .system-msg { | |
| 344 font-family: Verdana, Helvetica, sans-serif; | |
| 345 font-size: 10pt; | |
| 346 background-color: #ffffff; | |
| 347 border: 1px solid #000000; | |
| 348 margin-bottom: 6px; | |
| 349 margin-top: 6px; | |
| 350 padding: 4px; | |
| 351 width: 100%; | |
| 352 color: #660033; | |
| 353 } | |
| 354 | |
| 355 .form-title { | |
| 356 font-family: Verdana, Helvetica, sans-serif; | |
| 357 font-weight: bold; | |
| 358 font-size: 12pt; | |
| 359 color: #333333; | |
| 360 } | |
| 361 | |
| 362 .form-label { | |
| 363 font-family: Verdana, Helvetica, sans-serif; | |
| 364 font-weight: bold; | |
| 365 font-size: 10pt; | |
| 366 color: #333333; | |
| 367 } | |
| 368 | |
| 369 .form-optional { | |
| 370 font-family: Verdana, Helvetica, sans-serif; | |
| 371 font-weight: bold; | |
| 372 font-style: italic; | |
| 373 font-size: 10pt; | |
| 374 color: #333333; | |
| 375 } | |
| 376 | |
| 377 .form-element { | |
| 378 font-family: Verdana, Helvetica, aans-serif; | |
| 379 font-size: 10pt; | |
| 380 color: #000000; | |
| 381 } | |
| 382 | |
| 383 .form-text { | |
| 384 font-family: Verdana, Helvetica, sans-serif; | |
| 385 font-size: 10pt; | |
| 386 color: #333333; | |
| 387 } | |
| 388 | |
| 389 .form-mono { | |
| 390 font-family: monospace; | |
| 391 font-size: 12px; | |
| 392 text-decoration: none; | |
| 393 } | |
| 394 """ | |
| 395 | |
| 396 userDOTindex = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 397 <tr> | |
| 398 <property name="username"> | |
| 399 <td><display call="link('username')"></td> | |
| 400 </property> | |
| 401 <property name="realname"> | |
| 402 <td><display call="plain('realname')"></td> | |
| 403 </property> | |
| 404 <property name="organisation"> | |
| 405 <td><display call="plain('organisation')"></td> | |
| 406 </property> | |
| 407 <property name="address"> | |
| 408 <td><display call="plain('address')"></td> | |
| 409 </property> | |
| 410 <property name="phone"> | |
| 411 <td><display call="plain('phone')"></td> | |
| 412 </property> | |
| 413 </tr> | |
| 414 """ | |
| 415 | |
| 416 userDOTitem = """<!-- $Id: htmlbase.py,v 1.1 2001-07-24 10:46:22 anthonybaxter Exp $--> | |
| 417 <table border=0 cellspacing=0 cellpadding=2> | |
| 418 | |
| 419 <tr class="strong-header"> | |
| 420 <td colspan=2>Your Details</td> | |
| 421 </td> | |
| 422 | |
| 423 <tr bgcolor="ffffea"> | |
| 424 <td width=1% nowrap align=right><span class="form-label">Name</span></td> | |
| 425 <td class="form-text"><display call="field('realname', size=40)"></td> | |
| 426 </tr> | |
| 427 <tr bgcolor="ffffea"> | |
| 428 <td width=1% nowrap align=right><span class="form-label">Login Name</span></td> | |
| 429 <td class="form-text"><display call="field('username', size=40)"></td> | |
| 430 </tr> | |
| 431 <tr bgcolor="ffffea"> | |
| 432 <td width=1% nowrap align=right><span class="form-label">Login Password</span></td> | |
| 433 <td class="form-text"><display call="field('password', size=10)"></td> | |
| 434 </tr> | |
| 435 <tr bgcolor="ffffea"> | |
| 436 <td width=1% nowrap align=right><span class="form-label">Phone</span></td> | |
| 437 <td class="form-text"><display call="field('phone', size=40)"></td> | |
| 438 </tr> | |
| 439 <tr bgcolor="ffffea"> | |
| 440 <td width=1% nowrap align=right><span class="form-label">Organisation</span></td> | |
| 441 <td class="form-text"><display call="field('organisation', size=40)"></td> | |
| 442 </tr> | |
| 443 <tr bgcolor="ffffea"> | |
| 444 <td width=1% nowrap align=right><span class="form-label">E-mail address</span></td> | |
| 445 <td class="form-text"><display call="field('address', size=40)"></td> | |
| 446 </tr> | |
| 447 | |
| 448 <tr bgcolor="ffffea"> | |
| 449 <td> </td> | |
| 450 <td class="form-text"><display call="submit()"></td> | |
| 451 </tr> | |
| 452 | |
| 453 <tr class="strong-header"> | |
| 454 <td colspan=2><b>History</b></td> | |
| 455 </tr> | |
| 456 <tr> | |
| 457 <td colspan=2><display call="history()"></td> | |
| 458 </tr> | |
| 459 | |
| 460 </table> | |
| 461 | |
| 462 """ | |
| 463 |
