Opened 4 years ago

Closed 3 years ago

#6656 closed defect (fixed)

UNC path enhancement

Reported by: YouLi Owned by: cboos
Priority: normal Component: WikiGoodiesPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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)

unc_patch.diff (1.7 KB) - added by YouLi 4 years ago.
diff file

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by YouLi

diff file

comment:1 Changed 4 years ago by cboos

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

comment:2 Changed 3 years ago 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]

comment:3 Changed 3 years ago by cboos

  • Resolution set to fixed
  • Status changed from assigned to 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]


[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 Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cboos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.