Modify ↓
Opened 15 years ago
Last modified 13 years ago
#8623 new enhancement
New field in the template - USERNAME
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Component: | TracWikiPrintPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
I suggest to add following code in order to enhance the fields for substitution in templates :
In def add_headers() add the two "#SUBJECT" rows as following :
extra_content = self.get_extracontent(req)
extra_content = extra_content.replace('#TITLE', title)
extra_content = extra_content.replace('#VERSION', version)
extra_content = extra_content.replace('#DATE', date)
extra_content = extra_content.replace('#SUBJECT', subject)
extra_content = extra_content.replace('#USER', req.remote_user)
if book:
frontpage = self.get_frontpage(req)
frontpage = frontpage.replace('#TITLE', title)
frontpage = frontpage.replace('#VERSION', version)
frontpage = frontpage.replace('#DATE', date)
frontpage = frontpage.replace('#SUBJECT', subject)
frontpage = frontpage.replace('#USER', req.remote_user)
Attachments (2)
Change History (3)
Changed 13 years ago by
| Attachment: | wikiprint.py added |
|---|
comment:1 Changed 13 years ago by
Changed 13 years ago by
| Attachment: | wikiprint.pyc added |
|---|
Note: See
TracTickets for help on using
tickets.



Attached wikiprint.py contains the hotfix from #9854.