*please seen my comments below.*

On Monday, December 14, 2015 at 3:12:01 PM UTC-5, RjOllos wrote:
>
> On Mon, Dec 14, 2015 at 11:52 AM, Ahmed M. <[email protected] <javascript:>
> > wrote:
>
>> Still no luck.
>> The ticketsidebarprovider plugin comes with a 'hello world' test and that 
>> works; I can see the Hello World sidebar. As for the ticketmover plugin, 
>> still nothing.
>> Is there anything I can do to debug this? may be if you can give me a few 
>> things to test\check I can do that and send them over to you.
>>
>
> If there's a problem with the plugin we'll almost certainly see an error 
> in the logs. Otherwise, it's probably an installation issue. 
>
 
>
>> By the way, the trac projects I have are located in 
>> C:\trac\swtrac, C:\trac\hwtrac and C:\trac\chtrac. How do one of those know 
>> about the other? I guess my question is about how the plugin really works 
>> to move one ticket to another database. 
>>
>
> The plugin knows about all of the Trac projects because they have the same 
> parent directory:
>
> https://trac-hacks.org/browser/ticketmoverplugin/trunk/ticketmoverplugin/web_ui.py?rev=15110&marks=64#L57
>
> http://trac.edgewall.org/browser/tags/trac-1.0.9/trac/web/main.py?marks=757-758#L751
>
> You can see from the code that trac.env_paths or trac.env_parent_dir needs 
> to be set in the environment. This depends on Apache and the cgi or fcgi 
> script being correctly configured. If you are using the cgi or fcgi script 
> created by TracAdmin deploy you shouldn't need to worry about it.
>
> Are you using mod_python or mod_wsgi? If using mod_wsgi, have you set 
> TRAC_ENV_PARENT_DIR?
> http://trac.edgewall.org/wiki/TracModWSGI#Thetrac.wsgiscript
>
*Thanks, that's what I was missing. I didn't set up the trac environment 
variable in my wsgi file becasue i was using the one that is generated 
during the deploy operation. I simplified the wsgi file to: *
*{{{*
*import sys*
*sys.stdout = sys.stderr*

*import os*
*os.environ['TRAC_ENV_PARENT_DIR'] = 'C:\\trac'*
*os.environ['PYTHON_EGG_CACHE'] = 'C:\\trac\\egg_cache'*

*import trac.web.main*

*application = trac.web.main.dispatch_request*
*}}}*

*Now the ticket mover works BUT I see an error after I login (see 
attached).*
*My Apache config has this for each of my trac projects:*
*{{{*
*# point to where the wsgi script is *
*WSGIScriptAlias /swtrac C:/trac/swtrac/cgi-bin/trac.wsgi*
*# Tell Apache that this is an ok directory to use ... *
*<Directory C:/trac/swtrac/cgi-bin>*
*    WSGIApplicationGroup %{GLOBAL}*
*    <IfModule mod_authz_core.c>*
*        Require all granted*
*    </IfModule>*
*</Directory>*
*}}}*

>
>
> If using mod_python, have you set TracEnvParentDir?
> http://trac.edgewall.org/wiki/TracModPython#Settingupmultipleprojects
>
> Also, please make sure to post below the text you are replying to so that 
> it's completely unambiguous which comments are replying to. Thanks!
>
*Roger That! *

>
> - 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to