Hi Ryan,
Finally I was able to implement 'autocompleteusers' option.
The trick was to copy 'autocomplete' directory from cgi-bin to chrome 
directory
Now both 'autocomplete' and 'drop-down' works fine

Highly appreciate your help

On Friday, December 4, 2020 at 7:32:02 PM UTC-5 RjOllos wrote:

> On Friday, December 4, 2020 at 4:19:55 PM UTC-8 evol...@gmail.com wrote:
>
>> 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.
>>
>
> The pyc file is created automatically by the Python interpretter.
>
> For trac_wsgi.py, I'd recommend locating it somewhere other than cgi-bin. 
> Or, write a deploy script that delete www, runs deploy, and then copies 
> $env/trac_wsgi.py to $www/cgi-bi
>
> You'll need to redeploy every time you upgrade Trac and when installing or 
> upgrading most plugins (any plugins that have static assets: JS, CC, 
> Images).
>  
>
>> 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
>>
>
> You've disabled [ticket] restrict_owner, correct?:  
> https://trac.edgewall.org/wiki/TracIni#ticket-restrict_owner-option
>
> The reporter (if available), CC and owner field (in the ticket workflow 
> controls) should be autocompleted. The [autocomplete] section isn't needed 
> unless you have additional fields that you'd like to autocomplete.
>
> Make sure to do a hard-refresh of your browser and then retest. How to do 
> so is described in the box here:
> https://trac.edgewall.org/wiki/TracUpgrade#a6.Refreshstaticresources
>
> Check the console again for errors if the issue persists.
>
> Ryan
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/22a6b39b-1b62-4645-8273-4c894e414f35n%40googlegroups.com.

Reply via email to