I am completely new in TRAC. I was able to install it on my Windows server and the version is 1.4.2
I created a few users using 'session' command. Now I have users with parameters like name e.g. "John Smith", SID like jsmith and email like jsm...@gmali.com. I create a new ticket and assign it to user e.g. jsmith . This is OK but it's not very friendly for other users to see only jsmith I now that it's possible to provide either SID like jsmith or name like "John Smith" and TRAC will automatically convert it to 'readable' name or even provide the option in drop-down to select the name.
I assume it should be plugin that could manage this. Could someone explain/help how to locate and install plugin to handle names?
Thanks
Hi Ryan, Jeff
Setting option restrict_owner=true worked perfectly fine but I want to use autocompletion.
Here’s what I did:
[components]
autocompleteusers.* = enabled
[autocomplete]
fields = tester, reviewer
multi_fields = users
Unfortunately ‘autocompletion’ does not work. What I was missing?
Thanks
Hi Ryan, Jeff
Setting option restrict_owner=true worked perfectly fine but I want to use autocompletion.
Here’s what I did:
- pip install TracAutocompleteUsersPlugin
- Added to trac.ini
[components]
autocompleteusers.* = enabled
[autocomplete]
fields = tester, reviewer
multi_fields = users
Unfortunately ‘autocompletion’ does not work. What I was missing?
Thanks
Name: Trac
Version: 1.4.2
Summary: Integrated SCM, wiki, issue tracker and project environment
Home-page: https://trac.edgewall.org/
Author: Edgewall Software
Author-email: trac...@googlegroups.com
License: BSD
Location: d:\trac\python27\lib\site-packages
Requires: jinja2, setuptools
Required-by: TracAutocompleteUsersPlugin
--
FYI: I tried to install jinja2 and setuptools but got: Requirement already satisfied.
hi Ryan,Here's what I've got about my package from pip show trac:Name: Trac
Version: 1.4.2
Summary: Integrated SCM, wiki, issue tracker and project environment
Home-page: https://trac.edgewall.org/
Author: Edgewall Software
Author-email: trac...@googlegroups.com
License: BSD
Location: d:\trac\python27\lib\site-packages
Requires: jinja2, setuptools
Required-by: TracAutocompleteUsersPlugin
--
FYI: I tried to install jinja2 and setuptools but got: Requirement already satisfied.
Well ... I tried to debug and set log to DEBUG level but did not find any errors.
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/81a99af2-d605-484f-bd6b-6af811308fa3n%40googlegroups.com.
Hi Eliya,I used the trunk version (for all my plugins, with 1.4.2), such as:pip install svn+https://trac-hacks.org/svn/autocompleteusersplugin/trunkIt was then enabled automatically. I didn't have to make any other changes, after that install command.-jeff
Hi Ryan, jeffActually I am not 'true' web developer and mostly could only follow someone's instructions. Thanks for above suggestions.- Ryan, I do have in trac.ini those lines. I also see in Admin Tab - Plugins that plugin TracAutocompleteUsersPlugin 0.4.6 is 'Enabled'Following Ryan recommendation I tried to open/create a ticket and check Console. When I click on Tab 'Create Ticket' I've got errors in Console. (see attachments). Are they related to my issue?
D:\Trac\NBDR>trac-admin . deploy D:\Trac\NBDR
Error: Resources cannot be deployed to a target directory that is equal to or below the source directory 'd:\trac\NBDR\htdocs'.
Please choose a different target directory and try again.
D:\Trac\NBDR>
Obviously I can't re-deploy at the same location. I want to leave my Project at the same location as it now.
My question: how could I handle it? Could I deploy e.g. to D:\Temp and then move back to D:\Trac\NBDR? Could you advice?
Thanks
hi Ryan,Looks that the next step is to 're-deploy' static assets.In my case Project is located under D:\Trac\NBDR hence I did the following:D:\Trac\NBDR>trac-admin . deploy D:\Trac\NBDR
Error: Resources cannot be deployed to a target directory that is equal to or below the source directory 'd:\trac\NBDR\htdocs'.
Please choose a different target directory and try again.
D:\Trac\NBDR>
Obviously I can't re-deploy at the same location. I want to leave my Project at the same location as it now.
My question: how could I handle it? Could I deploy e.g. to D:\Temp and then move back to D:\Trac\NBDR? Could you advice?
Thanks
I already have www directory under Trac\NBDR :
$ ls /d/Trac/NBDR/www/
cgi-bin/ chrome/ htdocs/ web.config
Currently webserver alias points to -> D:\Trac\nbdr\www
You suggested to deploy to D:\Trac\NBDR\www and point the webserver Aliases to D:\Trac\NBDR\www
I'm affraid it'll cause a conflict because it's already exist.
Could I deploy to existing D:\Trac\nbdr\www like this and don't change Aliases. It sounds to me like deploying to location which already exist. Won't it break anything?
Could I run the following:
trac-admin D:\Trac\NBDR deploy D:\Trac\NBDR\www
Thanks
Hi Ryan,I already have www directory under Trac\NBDR :
$ ls /d/Trac/NBDR/www/
cgi-bin/ chrome/ htdocs/ web.config
Currently webserver alias points to -> D:\Trac\nbdr\www
You suggested to deploy to D:\Trac\NBDR\www and point the webserver Aliases to D:\Trac\NBDR\www
I'm affraid it'll cause a conflict because it's already exist.
Could I deploy to existing D:\Trac\nbdr\www like this and don't change Aliases. It sounds to me like deploying to location which already exist. Won't it break anything?
Could I run the following:
trac-admin D:\Trac\NBDR deploy D:\Trac\NBDR\www
Hi Ryan,
I deleted cgi-bin and htdocs
I ran the script:
D:\Trac\NBDR>trac-admin D:\Trac\NBDR deploy D:\Trac\NBDR\www
Copying resources from:
trac.web.chrome.Chrome
d:\trac\python27\lib\site-packages\trac\htdocs
d:\trac\NBDR\htdocs
autocompleteusers.autocompleteusers.AutocompleteUsers
d:\trac\python27\lib\site-packages\autocompleteusers\htdocs
Creating scripts.
D:\Trac\NBDR>
--
It created new scripts:
$ ls /d/Trac/NBDR/www/htdocs/autocomplete/*
/d/Trac/NBDR/www/htdocs/autocomplete/css:
autocomplete.css indicator.gif
/d/Trac/NBDR/www/htdocs/autocomplete/js:
autocomplete.js autocomplete_perms.js autocomplete_query.js autocomplete_ticket.js format_item.js
--
I restarted webserver.
It failed to start TRAC with 500.
Then I realized that 'new' cgi-bin miss 2 files:
old: $ls /d/Trac/NBDR/www/cgi-bin/
trac.cgi* trac.fcgi* trac.wsgi* trac_wsgi.py* trac_wsgi.pyc
new: $ls /d/Trac/NBDR/www/cgi-bin/
trac.cgi* trac.fcgi* trac.wsgi*
Hence I copied those 2 files and was able to start TRAC.
trac.ini has these blocks:
[components]
autocompleteusers.* = enabled
[autocomplete]
fields = tester, reviewer
multi_fields = users
--
I tried to create a new ticket. I used Cc field to check but it still does not autocomplete users
What else could be wrong?
Thanks
Hi Ryan,
I deleted cgi-bin and htdocs
trac.ini has these blocks:
[components]
autocompleteusers.* = enabled
[autocomplete]
fields = tester, reviewer
multi_fields = users
--
I tried to create a new ticket. I used Cc field to check but it still does not autocomplete users
What else could be wrong?
Thanks
Hi Ryan,Finally I was able to implement 'autocompleteusers' option.The trick was to copy 'autocomplete' directory from cgi-bin to chrome directoryNow both 'autocomplete' and 'drop-down' works fineHighly appreciate your help
Sorry, it was my typo about 'autocomplete' in cgi-bin above
I don't have autocompleteusers directory or file under $env. I have only autocomplete
$ ls www/chrome/ www/htdocs/
www/chrome/:
autocomplete/ common/ site/ web.config
www/htdocs/:
autocomplete/ common/ site/
We are not using Apache but IIS and the path is D:\Trac\nbdr\www
Thanks again, it wasn't easy but I am happy now that with your help I completed the task
Sorry, it was my typo about 'autocomplete' in cgi-bin above
I don't have autocompleteusers directory or file under $env.
I have only autocomplete
$ ls www/chrome/ www/htdocs/
www/chrome/:
autocomplete/ common/ site/ web.config
www/htdocs/:
autocomplete/ common/ site/
We are not using Apache but IIS and the path is D:\Trac\nbdr\www
Thanks again, it wasn't easy but I am happy now that with your help I completed the task