Re: [Trac] Trac response very slow

2010-07-27 Thread Emmanuel Blot
On Thu, Jul 22, 2010 at 7:56 PM, suntrac sunqu...@yahoo.com wrote:
 I have installed Trac using mod_wsgi and Apache on my QNAP TS-219p. The
 loading of the pages is horribly slow, it takes up to 40 seconds.

QNAP devices are powered by Marvell ARM cores.
They are designed and optimized to provide large data throughput when
serving static files, but are far from being the best CPUs for
power-hungry applications such as Trac.

I'm afraid that there is no solution to this issue - especially since
Trac uses Genshi - but to switch to another server hardware. An AMD or
Intel modern chip would perform far better with Trac.

You may improve the overall speed by a few percents if you switch from
Apache to Lighttpd, but it will stay too slow to be useable anyway.

Really, small ARM cores to not fit Trac power requirements.

Cheers,
Manu

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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.



Re: [Trac] Trac response very slow

2010-07-27 Thread Christian Boos

On 7/27/2010 12:39 PM, Emmanuel Blot wrote:

On Thu, Jul 22, 2010 at 7:56 PM, suntracsunqu...@yahoo.com  wrote:
   

I have installed Trac using mod_wsgi and Apache on my QNAP TS-219p. The
loading of the pages is horribly slow, it takes up to 40 seconds.
 

QNAP devices are powered by Marvell ARM cores.
They are designed and optimized to provide large data throughput when
serving static files, but are far from being the best CPUs for
power-hungry applications such as Trac.
   


Even more so when the server is misconfigured... the OP said: I see 
that messages regarding python and mod_wsgi initialization are repeating.


It looks like every request has to do a full initialization 
(WSGIDaemonProcess ... maximum-requests=1 or another low number, by any 
chance?).


Besides, even the static files are served directly by Trac, seeing all 
the Dispatching ... /chrome/ ... lines).

This is about the worst possible server setup for Trac...

-- Christian

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] Client Access to Tickets

2010-07-27 Thread the_constructor
HI,

I have been using Trac for a number of years in my company, and
utilise the ticket system to track bugs ect in software projects. I
now need to grant my clients access to SOME of the tickets, whilst
leaving other tickets only readable within the project group.

Is there a way that I can give outside users access to the system,
that bypasses the list of projects (because I don't want clients to
see names of projects we are working on), and show them only tickets
that they have been given access to?

Thanks,
Max



-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] Trac 0.12, TracMercurial, Windows and Apache 2.2 Issues

2010-07-27 Thread Shane
Hi,

I have Trac 0.12 hosted by Apache 2.2 using wsgi. Everything is
working fine outside of the source browser. We use Mercurial here and
I've been trying to get the TracMercurial plugin working with an
instance I've created. I placed the plugin in the instance's plugin
directory and modified a few items in the ini file. The plugin seems
to load correctly, but when I access the trac instance, I receive the
message Warning: Can't synchronize with repository
(default) (Unsupported version control system hg: No module named
mercurial). Look in the Trac log for more information.

I set the log settings to file and DEBUG. However, other than two
lines, there's nothing in the log file that mentions Hg at all.
Needless to say, I'm at a loss. The admin says the plugin is active.
What am I missing? Thanks.


2010-07-26 14:38:28,390 Trac[env] INFO:
 environment startup [Trac 0.12]

2010-07-26 14:38:28,421 Trac[loader] DEBUG: Adding plugin
TracMercurial 0.12.0.23dev-r9953 from e:\trac\instances\new\plugins
\tracmercurial-0.12.0.23dev_r9953-py2.6.egg
2010-07-26 14:38:28,467 Trac[loader] DEBUG: Loading hg from e:\trac
\instances\new\plugins\tracmercurial-0.12.0.23dev_r9953-py2.6.egg
2010-07-26 14:38:28,671 Trac[loader] DEBUG: Loading trac.about from c:
\python26\lib\site-packages
2010-07-26 14:38:28,671 Trac[loader] DEBUG: Loading trac.admin.console
from c:\python26\lib\site-packages
2010-07-26 14:38:28,890 Trac[loader] DEBUG: Loading trac.admin.web_ui
from c:\python26\lib\site-packages
2010-07-26 14:38:28,937 Trac[loader] DEBUG: Loading trac.attachment
from c:\python26\lib\site-packages
2010-07-26 14:38:28,937 Trac[loader] DEBUG: Loading trac.db.mysql from
c:\python26\lib\site-packages
2010-07-26 14:38:28,953 Trac[loader] DEBUG: Loading trac.db.postgres
from c:\python26\lib\site-packages
2010-07-26 14:38:28,983 Trac[loader] DEBUG: Loading trac.db.sqlite
from c:\python26\lib\site-packages
2010-07-26 14:38:29,078 Trac[loader] DEBUG: Loading
trac.mimeview.patch from c:\python26\lib\site-packages
2010-07-26 14:38:29,092 Trac[loader] DEBUG: Loading
trac.mimeview.pygments from c:\python26\lib\site-packages
2010-07-26 14:38:29,108 Trac[loader] DEBUG: Skipping
trac.mimeview.pygments = trac.mimeview.pygments [pygments]:
(DistributionNotFound: Pygments=0.6 not found)
2010-07-26 14:38:29,108 Trac[loader] DEBUG: Loading trac.mimeview.rst
from c:\python26\lib\site-packages
2010-07-26 14:38:29,108 Trac[loader] DEBUG: Skipping
trac.mimeview.rst = trac.mimeview.rst [rest]:
(DistributionNotFound: docutils=0.3 not found)
2010-07-26 14:38:29,108 Trac[loader] DEBUG: Loading
trac.mimeview.silvercity from c:\python26\lib\site-packages
2010-07-26 14:38:29,125 Trac[loader] DEBUG: Skipping
trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]:
(DistributionNotFound: SilverCity=0.9.4 not found)
2010-07-26 14:38:29,125 Trac[loader] DEBUG: Loading trac.mimeview.txtl
from c:\python26\lib\site-packages
2010-07-26 14:38:29,140 Trac[loader] DEBUG: Skipping
trac.mimeview.txtl = trac.mimeview.txtl [textile]:
(DistributionNotFound: textile=2.0 not found)
2010-07-26 14:38:29,140 Trac[loader] DEBUG: Loading trac.prefs from c:
\python26\lib\site-packages
2010-07-26 14:38:29,155 Trac[loader] DEBUG: Loading trac.search from c:
\python26\lib\site-packages
2010-07-26 14:38:29,187 Trac[loader] DEBUG: Loading trac.ticket.admin
from c:\python26\lib\site-packages
2010-07-26 14:38:29,203 Trac[loader] DEBUG: Loading trac.ticket.query
from c:\python26\lib\site-packages
2010-07-26 14:38:29,250 Trac[loader] DEBUG: Loading trac.ticket.report
from c:\python26\lib\site-packages
2010-07-26 14:38:29,265 Trac[loader] DEBUG: Loading
trac.ticket.roadmap from c:\python26\lib\site-packages
2010-07-26 14:38:29,280 Trac[loader] DEBUG: Loading trac.ticket.web_ui
from c:\python26\lib\site-packages
2010-07-26 14:38:29,312 Trac[loader] DEBUG: Loading trac.timeline from
c:\python26\lib\site-packages
2010-07-26 14:38:29,312 Trac[loader] DEBUG: Loading
trac.versioncontrol.admin from c:\python26\lib\site-packages
2010-07-26 14:38:29,328 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_authz from c:\python26\lib\site-packages
2010-07-26 14:38:29,328 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_fs from c:\python26\lib\site-packages
2010-07-26 14:38:29,358 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_prop from c:\python26\lib\site-packages
2010-07-26 14:38:29,375 Trac[loader] DEBUG: Loading
trac.versioncontrol.web_ui from c:\python26\lib\site-packages
2010-07-26 14:38:29,375 Trac[loader] DEBUG: Loading trac.web.auth from
c:\python26\lib\site-packages
2010-07-26 14:38:29,453 Trac[loader] DEBUG: Loading trac.web.session
from c:\python26\lib\site-packages
2010-07-26 14:38:29,453 Trac[loader] DEBUG: Loading trac.wiki.admin
from c:\python26\lib\site-packages
2010-07-26 14:38:29,453 Trac[loader] DEBUG: Loading
trac.wiki.interwiki from c:\python26\lib\site-packages
2010-07-26 14:38:29,467 Trac[loader] 

[Trac] Trac Plug-in development: How the instance of the plug-in get access to the plug-in data files

2010-07-27 Thread mic
Hello,
I'm currently writing a plug-in for trac including some flash. My
problem is the program needs to know where some files are (e.g. a
javascript file). How can I address them correctly?
Do I have to do this with the ITemplateProvider?

Best regards
Micha

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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.



Re: [Trac] Trac 0.12, TracMercurial, Windows and Apache 2.2 Issues

2010-07-27 Thread Itamar O
On Mon, Jul 26, 2010 at 9:36 PM, Shane sh...@shanebauer.com wrote:

 Hi,

 I have Trac 0.12 hosted by Apache 2.2 using wsgi. Everything is
 working fine outside of the source browser. We use Mercurial here and
 I've been trying to get the TracMercurial plugin working with an
 instance I've created. I placed the plugin in the instance's plugin
 directory and modified a few items in the ini file. The plugin seems
 to load correctly, but when I access the trac instance, I receive the
 message Warning: Can't synchronize with repository
 (default) (Unsupported version control system hg: No module named
 mercurial). Look in the Trac log for more information.

 I set the log settings to file and DEBUG. However, other than two
 lines, there's nothing in the log file that mentions Hg at all.
 Needless to say, I'm at a loss. The admin says the plugin is active.
 What am I missing? Thanks.

 (snip)


I don't know much about mercurial and mercurial plugin,
but when this warning appears with svn it usually means
that the python-svn bindings are missing.
Are there python-hg bindings?

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] adding comments to trac.ini

2010-07-27 Thread sue
I would like to add commented lines to the trac.ini and I cannot find
out the delimiter anywhere in the documentation or FAQ.  I am new to
trac, so please forgive a newbie question.
Thanks,
Sue

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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.



Re: [Trac] adding comments to trac.ini

2010-07-27 Thread Itamar O
On Tue, Jul 27, 2010 at 8:30 PM, sue sue.sml2...@gmail.com wrote:

 I would like to add commented lines to the trac.ini and I cannot find
 out the delimiter anywhere in the documentation or FAQ.  I am new to
 trac, so please forgive a newbie question.
 Thanks,
 Sue

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


Any line prefixed with the hash sign (#) in the ini is considered a
comment.

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] Trac Plugins - Which is better for managing Parent/Child or Subtasks

2010-07-27 Thread Marjory L. Mackes
Hi All!

Was researching the trac hacks plugins to find one that will allow us to show 
dependencies on tickets.
Our use case is this.   Many times we get a request in that requires us to have 
our Engineering Review Board Research a ticket, and provide a solution or end 
product to be implemented by the developers.
Currently two tickets are created an RFS for the Research and and RFC for the 
Change.Trying to bridge a gap in the workflow that would allow us to 
utilize trac to Flag that the Research action was completed so that the 
Configuration Control Board can approve the RFC for the developers to implement.

Saw two trac hack plugins one for child task and one that does subtasks.Has 
anybody implemented these and if so which one did they find was easier to use.  
 I do like the display on the ticket of the relationships.
Right now we just have a dumb text field that people enter a ticket into or a 
traclink created in the description/comment field, which isn't always obvious.

Using Trac 0.11.0

Thanks
Margie

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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.



Re: [Trac] Client Access to Tickets

2010-07-27 Thread Flatfender
On Mon, Jul 26, 2010 at 7:06 AM, the_constructor m...@nickkruger.com wrote:
 HI,

 I have been using Trac for a number of years in my company, and
 utilise the ticket system to track bugs ect in software projects. I
 now need to grant my clients access to SOME of the tickets, whilst
 leaving other tickets only readable within the project group.

 Is there a way that I can give outside users access to the system,
 that bypasses the list of projects (because I don't want clients to
 see names of projects we are working on), and show them only tickets
 that they have been given access to?

 Thanks,
 Max

I would look at the private-tickets plugin on http://trac-hacks.org

Matt P.

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] mod_wsgi - Apache processes an unlimited increase

2010-07-27 Thread Agustin Henze
Hi all, i have multiple projects of trac(0.12-apache2-mod_wsgi) with
multiples SCMs (bzr, hg, svn, git) and the problem is after this error
http://paste.debian.net/81558/ apache proccesses an unlimited increase.
Any idea?

Thanks in advance, cheers
-- 
TiN


signature.asc
Description: This is a digitally signed message part


[Trac] Re: adding comments to trac.ini

2010-07-27 Thread sue
Thanks! I did try that but had some other syntax error I didn't notice
and thought it was the comment delimiter.
Sue
On Jul 27, 10:35 am, Itamar O itamar...@gmail.com wrote:
 On Tue, Jul 27, 2010 at 8:30 PM, sue sue.sml2...@gmail.com wrote:
  I would like to add commented lines to the trac.ini and I cannot find
  out the delimiter anywhere in the documentation or FAQ.  I am new to
  trac, so please forgive a newbie question.
  Thanks,
  Sue

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

 Any line prefixed with the hash sign (#) in the ini is considered a
 comment.

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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: trac hg

2010-07-27 Thread Christian Boos

Hello,

On 7/27/2010 3:39 PM, ext-simon.stei...@nokia.com wrote:

Hi,

We have trac 0.12 with hg. How can I see the history of a hg branch?
Eg. http://trac.edgewall.org/log/branches/0.5-stable
   


http://trac.edgewall.org/demo-0.12/log/trac.hg/?rev=0.12-stable

you'll start with the latest rev on that branch BUT you'll also see 
revisions from other branches. I still need to finish the follow-first 
mode, and that would only be really useful once the merge changesets ...


I recently started a 0.13 branch of the plugin, so this might happen 
soon ;-)



Can timeline be ordered passed on push/graph order, not local commit order?
   


The order in the timeline is strictly based on the changeset's 
timestamp, nothing else.



I rebase my changes and trac shows the files twice in the changeset.

Eg.
# x.py (modified) (1 diff)
# x.py (modified) (1 diff)

   


This can happen in a merge changeset: you see the diffs against each parent.



Thanks

   


You're welcome, but next time please send a mail to the Trac-users list, 
as I'm not always able to answer in a timely manner.


-- Christian





   


--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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] Cannot load Python bindings for SQLite

2010-07-27 Thread alexus
i did following steps to install setuptools + trac

   85  wget 
http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b
   86  sh setuptools-0.6c11-py2.4.egg
   87  easy_install Trac

now i'm trying to create new env and i'm running into problem, can
someone help me?

[r...@pvrep01 dc]# trac-admin . initenv
Creating a new Trac environment at /var/www/html/trac/dc

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]

Creating and Initializing Project
Initenv for '/var/www/html/trac/dc' failed.
Failed to create environment.
Cannot load Python bindings for SQLite
Traceback (most recent call last):
  File build/bdist.linux-i686/egg/trac/admin/console.py, line 413,
in do_initenv
  File build/bdist.linux-i686/egg/trac/env.py, line 221, in __init__
  File build/bdist.linux-i686/egg/trac/env.py, line 409, in create
  File build/bdist.linux-i686/egg/trac/db/api.py, line 145, in init_db
  File build/bdist.linux-i686/egg/trac/db/api.py, line 195, in get_connector
TracError: Cannot load Python bindings for SQLite
Initenv for '/var/www/html/trac/dc' failed.
1
Traceback (most recent call last):
  File build/bdist.linux-i686/egg/trac/admin/console.py, line 418,
in do_initenv
SystemExit: 1
[r...@pvrep01 dc]#

[r...@pvrep01 dc]# rpm -q sqlite
sqlite-3.3.6-5
[r...@pvrep01 dc]# rpm -q python-sqlite
python-sqlite-1.1.7-1.2.1
[r...@pvrep01 dc]#


any ideas?
thanks!
-- 
http://alexus.org/

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@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.