Ticket #6656 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

UNC path enhancement

Reported by: YouLi Assigned to: cboos
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

unc_patch.diff (1.7 kB) - added by YouLi on 02/17/10 15:19:36.
diff file

Change History

02/17/10 15:19:36 changed by YouLi

  • attachment unc_patch.diff added.

diff file

02/17/10 15:40:27 changed by cboos

Thanks for the patch! This probably needs to use trac.util.text.unicode_quote though.

06/16/11 21:07:37 changed by cboos

  • status changed from new to 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]

06/16/11 21:08:04 changed by cboos

  • status changed from assigned to closed.
  • resolution set to fixed.

(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.


Add/Change #6656 (UNC path enhancement)




Change Properties
Action