Opened 16 years ago
Closed 14 years ago
#6656 closed defect (fixed)
UNC path enhancement
| Reported by: | Ricky | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Component: | WikiGoodiesPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
I modified the regular expression to let UNC path to identify path and file name within hard bracket.
Such as [\\svr1\work\sixtrak\gateway\ipm_firmware\xvers\etms4_7_1000.fwb Current release firmware] will show Current release firmware as a wiki link.
Also if you have space within the URL like ["\\svr1\work\sixtrak\gateway\ipm firmware\xvers\etms4_7_1000.fwb" Current release firmware], you can specify your URL with quotes and it works as well.
The diff file is attached
Attachments (1)
Change History (4)
Changed 16 years ago by
| Attachment: | unc_patch.diff added |
|---|
comment:1 Changed 16 years ago by
Thanks for the patch! This probably needs to use trac.util.text.unicode_quote though.
comment:2 Changed 14 years ago by
| Status: | new → assigned |
|---|
The second suggested form:
["\\svr1\work\sixtrak\gateway\ipm firmware\xvers\etms4_7_1000.fwb" Current release firmware]
will conflict with the one of the internal free link (i.e. a syntax provided by the WikiModule in Trac), so this can't be used.
Instead, I'll add an unc: link resolver:
[unc:"\\svr1\work\sixtrak\gateway\ipm firmware\xvers\etms4_7_1000.fwb" Current release firmware]
comment:3 Changed 14 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
(In [10300]) WikiGoodiesPlugin: UNC path syntax extended to support [unc_path label] forms.
In more details, the following two new syntaxes are now supported:
[\\svr1\work\sixtrak\gateway\ipm_firmware\xvers\etms4_7_1000.fwb Current release firmware]
and:
[unc:\\svr1\work\sixtrak\gateway\ipm_firmware\xvers\etms4_7_1000.fwb Current release firmware] [unc:"\\svr1\work\sixtrak\gateway\ipm firmware\xvers\etms4_7_1000.fwb" Current release firmware]
Closes #6656.



diff file