RE: [Trac] I want http://mytrac to bypass projects page and open up http://mytrac/trac/airliquide

2011-06-14 Thread Cooke, Mark
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of Rich
 Sent: 13 June 2011 20:32
 To: Trac Users
 Subject: [Trac] I want http://mytrac to bypass projects page 
 and open up http://mytrac/trac/airliquide
 
 I have installed bitnami Trac 0.12.2 on linux (Fedora 15) and I
 currently have to click through the Bitnami welcome page and then
 the projects page just to get to the one and only project that
 exists on our trac server.

Will there only ever be the one project?  I assume so below...

 I *thought* I was rather familiar with .htaccess and RewriteRules, but
 I can't figure out how to bypass the bitnami page and the projects
 page. I've tried about every combination of rewrite rule I can
 imagine, but nothing has worked so far. When I debug the rewrite logs
 I usually find that the matching works, but the rewrite results in
 apache trying to find a physical directory under htdocs named trac
 which doesn't exist so I get an error in the rewrite log something
 like ../htdocs/trac/airliquide/ doesn't exist.

I think you are looking for the solution in the wrong place, try
configuring trac and not apache

 I had seen a reference about how I need to make sure that python
 inherits the rewrite rules, but setting RewriteOptions Inherit for
 the python directory didn't seem to help either.
 
 NOTE: Since trac is not running as root, I have to use port 8080.
 
 Rather than including the complete config files, below are excerpts
 from the config files.
 I removed all of my test rewrite rules.
 
 **
 ***httpd.conf***
 **
 ServerRoot /home/rlyders/trac-0.12.2-0/apache2
 Listen 8080
 LoadModule rewrite_module modules/mod_rewrite.so
 ServerName localhost:8080
 DocumentRoot /home/rlyders/trac-0.12.2-0/apache2/htdocs
 Directory /
 Options FollowSymLinks
 AllowOverride All
 Order deny,allow
 Deny from all
 /Directory
 Directory /home/rlyders/trac-0.12.2-0/apache2/htdocs
 Options Indexes FollowSymLinks
 AllowOverride All
 Order allow,deny
 Allow from all
 /Directory
 ScriptAlias /cgi-bin/ /home/rlyders/trac-0.12.2-0/apache2/cgi-
 bin/
 Directory /home/rlyders/trac-0.12.2-0/apache2/cgi-bin
 AllowOverride All
 Options None
 Order allow,deny
 Allow from all
 /Directory
 Include /home/rlyders/trac-0.12.2-0/trac/conf/trac.conf
 
 **
 ***trac.conf***
 **
 Directory /home/rlyders/trac-0.12.2-0
 Options Indexes MultiViews
 AllowOverride All
 Order allow,deny
 Allow from all
 /Directory
 Location /trac
   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnvParentDir /home/rlyders/trac-0.12.2-0/projects
   PythonOption TracUriRoot /trac
 /Location

Does Bitnami really use mod_python?  Wow.

Anyway, the TracEnvParentDir above tells trac to show the 'projects'
page you dislike.  You can skip that and configure for a single project.
See http://trac.edgewall.org/wiki/TracModPython for all the gory details
(including a warning on mod_python) but this should skip the projects
page:-

PythonOption TracEnv /home/rlyders/trac-0.12.2-0/projects/airliquide

 LocationMatch /trac/[^/]+/login
   AuthType Basic
   AuthName Trac
   AuthUserFile /home/rlyders/trac-0.12.2-0/trac/conf/htpasswd
   Require valid-user
 /LocationMatch
 
 **
 ***trac.ini***
 **
 base_url = http://tractest:8080/
 htdocs_location =

The first part (the BitNami page) I'm afraid I have no ideas, I've never
used BitNami and am a bit of an apache novice.

~ mark c

-- 
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.



RE: [Trac] Re: How Trac integrate with Subversion

2011-06-14 Thread Cooke, Mark
 -Original Message-
 From: trac-users@googlegroups.com On Behalf Of fiona
 Sent: 14 June 2011 02:47
 To: Trac Users
 Subject: [Trac] Re: How Trac integrate with Subversion
 
 I have seen the TracFAQ:-http://trac.edgewall.org/wiki/TracFaq#can-
 trac-automatically-update-a... , I have created the relation between
 ticket and revisions, but everytime I have to resync the ticket-
 changesets,otherwise the section repository changeset will have
 nothing, it does not automatically display the revision in the
 section?

Since you said previously that you are using 0.12, have you read this:

http://trac.edgewall.org/wiki/TracRepositoryAdmin#ExplicitSync

...and have you checked that your post-commit hook is actually working?

‾ mark c

-- 
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] Query tickets from the command line

2011-06-14 Thread W. Martin Borgert

Hi,

this issue has been discussed some years back:

http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html

My Trac system (still 0.11, sorry) runs on a dedicated server
with PostgreSQL, so accessing the database directly is not
possible.

The most practical solution seems to be to download the query
as CSV with the right parameters. Are there any better options?

TIA!

--
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.



Re: [Trac] Query tickets from the command line

2011-06-14 Thread Erik Andersson
On Tue, Jun 14, 2011 at 2:20 PM, W. Martin Borgert deba...@debian.orgwrote:

 Hi,

 this issue has been discussed some years back:

 http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html

 What is your use case? It might help if we understand better what you are
trying to achieve.

 My Trac system (still 0.11, sorry) runs on a dedicated server
 with PostgreSQL, so accessing the database directly is not
 possible.

Why not? Can you connect with ssh to the server?

Cheers / Erik


 The most practical solution seems to be to download the query
 as CSV with the right parameters. Are there any better options?

 TIA!

 --
 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.



-- 
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.



Re: [Trac] Query tickets from the command line

2011-06-14 Thread W. Martin Borgert

Quoting Erik Andersson kir...@gmail.com:

On Tue, Jun 14, 2011 at 2:20 PM, W. Martin Borgert deba...@debian.orgwrote:

this issue has been discussed some years back:

http://www.mail-archive.com/trac-users@googlegroups.com/msg06606.html


What is your use case? It might help if we understand better what you are
trying to achieve.


Tickets with certain properties (custom flag xxx=1) should
be listed in a documentation (id, summary).


My Trac system (still 0.11, sorry) runs on a dedicated server
with PostgreSQL, so accessing the database directly is not
possible.


Why not? Can you connect with ssh to the server?


Not all Trac users have an account on the server (nor do I want
to have them direct access to the database). The query on the
command line must be limited in the same way it is in Trac.

Cheers

--
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] max attachment size (not the usual trac.ini fix)

2011-06-14 Thread Joe
Alright, looking to put tarfiles of our deliveries up on TRAC (~100MB
each).

I have setup the trac.ini file to allow me to put up a maximum of a
500MB file, but when I try to attach a large file I get:

Traceback (most recent call last):
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\main.py, line 423, in _dispatch_request
dispatcher.dispatch(req)
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\main.py, line 164, in dispatch
if handler.match_request(req):
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\attachment.py, line 354, in match_request
req.args['realm'] = realm
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\api.py, line 169, in __getattr__
value = self.callbacks[name](self)
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\api.py, line 443, in _parse_args
fs = cgi.FieldStorage(fp, environ=self.environ,
keep_blank_values=True)
  File D:\usr\python25\Lib\cgi.py, line 534, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
  File D:\usr\python25\Lib\cgi.py, line 657, in read_multi
headers = rfc822.Message(self.fp)
  File D:\usr\python25\Lib\rfc822.py, line 104, in __init__
self.readheaders()
  File D:\usr\python25\Lib\rfc822.py, line 151, in readheaders
line = self.fp.readline()
  File D:\usr\python25\lib\site-packages\trac-0.11.1-py2.5.egg\trac
\web\modpython_frontend.py, line 50, in readline
return self.req.readline(size)
MemoryError

Gah, mod_python is gaking on the large file.  Is there a way to
configure him to let this work?  I know mod_python is a dead dodo,
what do the newer versions of TRAC use in it's place?  Should I bite
the bullet and upgrade and see if it just works with 0.12?

-- 
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] Question concerning trac database size

2011-06-14 Thread Chen
Our trac database is growing steadily. Is there a limit for how big it
can be?

Thanks in advance.

-- 
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.



RE: [Trac] Question concerning trac database size

2011-06-14 Thread Chris Nelson
On 2011-06-14 at 10:36:00, Chen wrote:
 Our trac database is growing steadily. Is there a limit for how big it
 can be?
 
 Thanks in advance.

I would imagine that would depend on what DBMS you are using.  Likely as
the size grows, your performance will get worse and worse so searching
for things will take forever.

We've coming up on 3 years of use and nearly 8k tickets with many, many
attachments and it's slowing down some.  I'd be curious to hear from
other users if they have much bigger installations and how they handle
performance issues.

-- 
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.



Re: [Trac] max attachment size (not the usual trac.ini fix)

2011-06-14 Thread Matthew Caron

configure him to let this work?  I know mod_python is a dead dodo,
what do the newer versions of TRAC use in it's place?


mod_wsgi

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@sixnet.com

--
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] trac-git plugin

2011-06-14 Thread Jan Čermák
Hi, sorry, but i have problem and 2 day I don't know, how solved it.
Plesase, trac said me:

Unsupported version control system git: Can't find an appropriate
component, maybe the corresponding plugin was not enabled?

I follow all steps on http://trac-hacks.org/wiki/GitPlugin but is not
worked. Please, help me. My trac.ini


[git]
cached_repository = true
git_bin = /usr/src/git-dev/git
persistent_cache = true
shortrev_len = 6

[trac]
authz_file =
authz_module_name =
auto_reload = False
backup_dir = db
base_url =
check_auth_ip = false
database = sqlite:db/trac.db
debug_sql = False
default_charset = utf-8
htdocs_location =
ignore_auth_case = false
mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
metanav = login,logout,prefs,help,about
mysqldump_path = mysqldump
never_obfuscate_mailto = false
permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy
permission_store = DefaultPermissionStore
pg_dump_path = pg_dump
repository_dir = /mnt/data/git/repositories/multilogin.git
repository_type = git
repository_sync_per_request =
secure_cookies = False
show_email_addresses = false
show_ip_addresses = false
timeout = 20
use_base_url_for_redirect = False


[components]
tracext.git.* = enabled
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
tracopt.ticket.commit_updater.committicketupdater = enabled



Thanks.

-- 
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] Problem with custom shapes and DiaVisView plugin

2011-06-14 Thread Chris Nelson
I'm using DiaVisView plugin to include diagrams made with Dia 0.97 into a wiki 
page.  I've done this for years and it works great except... Today I started 
trying to do it with a diagram that includes custom shapes and they don't show 
up.  Any thoughts?  Do I need to put my shapes on the server or something?

-- 
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY  12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com 

-- 
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: How Trac integrate with Subversion

2011-06-14 Thread fiona
I have read 
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracke...
,I can't get a list of open issues assigned to me, I must install
issue tracker plugin?how to install? it seems like very complicate. Is
there any simple method?

On 6月2日, 下午2时51分, Cooke, Mark mark.co...@siemens.com wrote:
 (scroll down for comments...)





 On 5月31日, 下午3时30分, Erik Andersson kir...@gmail.com wrote:
  On Tue, May 31, 2011 at 8:59 AM, fiona
  bingxue0...@hotmail.com wrote:
   Now we usetracas the bugtracking systems, when I
  commit some
   modifies, I can't find the ticket in thetrac, I
  don't know how to
   configure the Subversion, if mytracURL is
  http:///trac,how to
   configure and where the ticket locates?

  Hi

  WhatTracversion?

  See:

  http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-
  update-a...

  Cheers / Erik

Hi

Please always reply to list.

2011/5/31 fiona bingxue0...@hotmail.com

 Version istrac.0.12

did you
  read:http://trac.edgewall.org/wiki/TracFaq#can-trac-automatica
  lly-update-a...

  http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-
  update-a...Cheers
/ Erik

  On 6月1日, 上午10时25分, fiona bingxue0...@hotmail.com wrote:
   Hi
   I have
  readhttp://trac.edgewall.org/wiki/TracFaq#can-trac-automatical
  ly-update-a...
   I still can't find the ticket about I commit.anyone can tell me the
   workflow betweentracand Subversion, They work not like
  clearcase and clearquest?

 No,Tracand subversion are two Open Souce separate products by different 
 people, not two parts of one commercial product designed to work with each 
 other.  In fact, subversion is mostly ignorant ofTracwhilstTraconly 
 supports subversion.

  -Original Message-
  From:trac-users@googlegroups.com
  [mailto:trac-users@googlegroups.com] On Behalf Of fiona
  Sent: 01 June 2011 07:24
  To:TracUsers
  Subject: [Trac] Re: HowTracintegrate with Subversion

  I think the workflow as follows:
  one situation is that ontracyou create a ticket and assign to
  someone,when the people commit, there will be a list(including the
  ticket assigned to him),the people can choose the relate item in the
  list;
  the other situation is that when someone commit a bug, there should
  produce a ticket ontrac.
  now it seems to work not like this, really I have a mistake?

 There are however ways to get them to work together.  If you are 
 usingTrac0.12 you can configure the new (optional) CommitTicketUpdater 
 plugin, for previous versions ofTracthere are post-commit scripts.  For more 
 information see 
 theTracFAQ:-http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-update-a...

 If you are using TortoiseSVN on windows, then this can be configured to 
 provide a list of assigned tickets when committing, see the TortoiseSVN 
 help:http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracke...

 I hope that helps...

 ~ Mark C- 隐藏被引用文字 -

 - 显示引用的文字 -

-- 
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.