Hi,
First of all congratulations on a great project! I had a Trac database
up and running in a couple of days. Admittedly I had already
implemented a Subversion system, but other than that I am a web server
newbie.
Now I am trying to set up a multi project system for the company. What
I envision is allowing suitably authorised users to create projects via
a web page. When a project is created a subversion repository will be
set up and a trac database created and configured. The
TracMultipleProjects page of the wiki goes part of the way and I have
got that Apache config up and running. The bit I am struggling with now
is automatically setting up the Trac database. There is no
non-interactive way of doing an initenv. Once the environment is
initialised I can get the project ini file and edit that, but changing
user access privileges and other trac-admin config is a bit harder
(requiring direct access to the database I think. arrgh!).
Has anyone written any code that will set up priviledges based on
command line arguments or a file?
Another idea which should be quite easy to implement is to add more
power to the priviledges "add" and "remove" commands by allowing regexp
matching. Does SQLite support some sort of wild cards? If so you could
just pass that straight through.
It would be useful to be able to change all of the configuration using
command line arguments to trac-admin as this would enable easy scripting
for administration purposes.
If no one has done any of this I might just have to learn python and
dust of my severley limited SQL knowledge. ;-) Is the database schema
documented anywhere?
Thanks for your time...
Felix
First of all congratulations on a great project! I had a Trac database
up and running in a couple of days. Admittedly I had already
implemented a Subversion system, but other than that I am a web server
newbie.
Now I am trying to set up a multi project system for the company. What
I envision is allowing suitably authorised users to create projects via
a web page. When a project is created a subversion repository will be
set up and a trac database created and configured. The
TracMultipleProjects page of the wiki goes part of the way and I have
got that Apache config up and running. The bit I am struggling with now
is automatically setting up the Trac database. There is no
non-interactive way of doing an initenv. Once the environment is
initialised I can get the project ini file and edit that, but changing
user access privileges and other trac-admin config is a bit harder
(requiring direct access to the database I think. arrgh!).
Has anyone written any code that will set up priviledges based on
command line arguments or a file?
Another idea which should be quite easy to implement is to add more
power to the priviledges "add" and "remove" commands by allowing regexp
matching. Does SQLite support some sort of wild cards? If so you could
just pass that straight through.
It would be useful to be able to change all of the configuration using
command line arguments to trac-admin as this would enable easy scripting
for administration purposes.
If no one has done any of this I might just have to learn python and
dust of my severley limited SQL knowledge. ;-) Is the database schema
documented anywhere?
Thanks for your time...
Felix