Modify

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#11351 closed defect (worksforme)

Can not add options to [intertrac]

Reported by: anonymous Owned by: Dirk Stöcker
Priority: normal Component: TracIniAdminPanelPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Tried to add the following : -

Add Section name - intertrac - works Add option "p" - works Add value to "p" "sometrac" - works Add option "sometrac.title" - fails with error message: -

Warning:

The option name "sometrac.title" is invalid. No new fields have been added.

Format for intertrac section can be found here: -

http://trac.edgewall.org/wiki/InterTrac

[intertrac] # -- Example of setting up an alias: t = trac

# -- Link to an external Trac: trac.title = Edgewall's Trac for Trac trac.url = http://trac.edgewall.org

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Dirk Stöcker

Resolution: worksforme
Status: newclosed

Works for me. Please verify, that inieditor/valid-option-name-chars contains ".". The default does.

comment:2 Changed 10 years ago by anonymous

Resolution: worksforme
Status: closedreopened

The default value did not contain a "." character, so in the ini-editor section I have added a "." just after the "^" character and saved

valid-option-name-chars = ^.[a-zA-Z0-9\-_\:]+$ valid-section-name-chars = ^.[a-zA-Z0-9\-_]+$

I added an option nj (worked OK)

nj

I added a value in intertrac (worked OK)

nj = newtrac

I then tried adding an option

newtrac.title

and still received the same warning.

Warning:

  • The option name "newtrac.title" is invalid.
  • No new fields have been added.

comment:3 Changed 10 years ago by Dirk Stöcker

Resolution: worksforme
Status: reopenedclosed

^.[a-zA-Z0-9\-_]+$

This means: start with any character, than at least one of a-z, A-Z, 0-9, -, _, : follows.

The defaults are:

section: ^[a-zA-Z0-9\-_\:]+$ option: ^[a-zA-Z0-9\-_\:.]+$

You can test RegExp here: http://regex101.com/#python

comment:4 Changed 10 years ago by anonymous

Thanks for the explanation, I didn't understand how that worked.

It's all working fine now :-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dirk Stöcker.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.