#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 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
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
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
^.[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
Thanks for the explanation, I didn't understand how that worked.
It's all working fine now :-)
Works for me. Please verify, that inieditor/valid-option-name-chars contains ".". The default does.