[Trac] Re: Is it possible to use different versions of a plugin in multi-project environment?

2009-06-08 Thread Christian Boos

Sneha wrote:
 Hi All,

 We are working on multi-project Trac environment. we have modified a
 plugin to suit a project's requirement. Is it possible to install this
 modified version of the plugin for a certain project and use the
 default (unmodified) version of the same plugin in all other?
   

Not unless the modified plugin also uses a modified package name (i.e. 
if the source lived in tracpluginsomething/, rename that folder to 
tracpluginmysomething/ and update the setup.py file accordingly).
Or refactor the change you did so that it only gets activated when some 
option is selected in trac.ini, and turn this on/off in the different 
environments.

Hope this helps!

-- Christian

 We are using easy-install --always-unzip  command to install plugins
 for all projects.

 Thanks,
 Sneha
 


   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Is it possible to use different versions of a plugin in multi-project environment?

2009-06-08 Thread Sneha

Thanks Christian for the quick reply. The solution is really helpful.

Thanks,
Sneha
On Jun 8, 1:32 pm, Christian Boos cb...@neuf.fr wrote:
 Sneha wrote:
  Hi All,

  We are working on multi-project Trac environment. we have modified a
  plugin to suit a project's requirement. Is it possible to install this
  modified version of the plugin for a certain project and use the
  default (unmodified) version of the same plugin in all other?

 Not unless the modified plugin also uses a modified package name (i.e.
 if the source lived in tracpluginsomething/, rename that folder to
 tracpluginmysomething/ and update the setup.py file accordingly).
 Or refactor the change you did so that it only gets activated when some
 option is selected in trac.ini, and turn this on/off in the different
 environments.

 Hope this helps!

 -- Christian

  We are using easy-install --always-unzip  command to install plugins
  for all projects.

  Thanks,
  Sneha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Is it possible to use different versions of a plugin in multi-project environment?

2009-06-08 Thread Graham Dumpleton



On Jun 8, 6:32 pm, Christian Boos cb...@neuf.fr wrote:
 Sneha wrote:
  Hi All,

  We are working on multi-project Trac environment. we have modified a
  plugin to suit a project's requirement. Is it possible to install this
  modified version of the plugin for a certain project and use the
  default (unmodified) version of the same plugin in all other?

 Not unless the modified plugin also uses a modified package name (i.e.
 if the source lived in tracpluginsomething/, rename that folder to
 tracpluginmysomething/ and update the setup.py file accordingly).
 Or refactor the change you did so that it only gets activated when some
 option is selected in trac.ini, and turn this on/off in the different
 environments.

Or use mod_wsgi daemon mode and delegate each project to a different
process group. This exact case is described in mod_wsgi documentation
for Trac integration. See:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac

Graham

 Hope this helps!

 -- Christian

  We are using easy-install --always-unzip  command to install plugins
  for all projects.

  Thanks,
  Sneha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Is it possible to use different versions of a plugin in multi-project environment?

2009-06-08 Thread yoheeb

Wow, so cool.  I am repeatedly amazed at how thorough the Trac dev/
features/implementation has been up to now.  There is practically no
use case that hasn't been thought of and a supporting implementation
put in place in core for it, much of which has already been
implemented by way of plugin, macro, patch, or other

This is one thing I wouldn't of even thought of, but I see how useful
it would be.

Kudo's
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---