[Trac] Re: trac-post-commit-hook.py - MySQL (Apache server and Windows)

2009-10-19 Thread Erik Bray

On Fri, Oct 16, 2009 at 3:58 AM, hare har...@gmail.com wrote:

 I used an old python script file. Now I am using this :
 http://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook

 I do not see any errors , nut after I do SVN commit TRAC ticket is not
 getting updated.

 I am using the script files in this link without any modifications :
 http://trac.edgewall.org/browser/branches/0.11-stable/contrib

Right.  I don't know why you were using such an ancient version of the
hook script before, but a recent version should work.  Are you sure
the hook script is being executed at all?

--~--~-~--~~~---~--~~
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: trac-post-commit-hook.py - MySQL (Apache server and Windows)

2009-10-15 Thread Erik Bray

On Wed, Oct 14, 2009 at 10:49 AM, hare har...@gmail.com wrote:

 Hello All,

 The SVN post-commit-hook provided by trac-edgewall is compatible only
 with
 sqlite.

 Does anyone have experience with MySQL? I am trying to make it work
 but not
 successful yet.

 Please give me answer or some pointers. I tried googling but no use.

 kind regards, hare

Exactly what problems are you having? As far as I can tell there's
nothing in the post-commit hook that specific to any DB backend,
SQLite or otherwise.

--~--~-~--~~~---~--~~
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 there macro/plugin to have attributes or properties for each wiki page?

2009-10-13 Thread Erik Bray

On Tue, Oct 13, 2009 at 1:05 PM, Uku Buku Babaka ukub...@gmail.com wrote:

 Hi guys, I am looking for something that can provide list of
 properties (editable) to each wiki page.
 I was looking at TagsPlugin, but this is only tagging. I need
 something really similar but in way of variable=value, or tag=value.
 Plus maybe macros to generate list of wikipages where the variable
 (property) is presented, or additionally have some value, or even
 criteria to accept value into range. Maybe the plugin is already
 existing and I am blind to find it on Trac-Hacks.

 Is there something like this already implemented? Can you help please
 pointing me?

I think maybe you should be less vague in your requirements.  I doubt
that exactly what you're looking for is already out there, but there
may be something that can be adapted.

--~--~-~--~~~---~--~~
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 get rid of ?version=32 at end of URLs?

2009-10-05 Thread Erik Bray

On Thu, Oct 1, 2009 at 12:02 PM, Steve Strobel
steve.stro...@link-comm.com wrote:

 I often leave multiple tickets and wiki pages open in browser tabs
 for a long time.  Sometimes I refresh a page and find that it does
 not contain the latest updates because a specific version number is
 specified in the URL.  It seems that Trac automatically specifies the
 version number after editing a ticket or wiki page and clicking the
 submit changes button.  I would prefer that it not specify the
 version.  Is there an easy way to change that?  I didn't find one in
 Trac-Hacks.  I am using Trac V0.11.1 but would be happy to update if
 it would make any difference.  Thanks for any suggestions.

 Steve

I believe that particular annoyance has been fixed in more recent versions.

--~--~-~--~~~---~--~~
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: Internal Error for TracForge with Trac 0.11

2009-10-05 Thread Erik Bray

On Mon, Oct 5, 2009 at 3:10 AM, vishnu vishnu.ku...@mahiti.org wrote:

 Hi Erik,

 Thanks for that.
 I had bypassed that warning manually.
 But does this warning mean that the code for 0.11 is not at all
 usable?

 I am just helping in some development, if i can provide support that
 way.

 So, just wanna know if the errors can be debugged or do i just sit
 until the usable code comes out?

 Vishnu

Well, the problem you posted about was a traceback from a template
file being missing.  It looks like TracForge's setup.py wasn't been
updated to include .html templates (as opposed to .cs templates).

--~--~-~--~~~---~--~~
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: Internal Error for TracForge with Trac 0.11

2009-09-30 Thread Erik Bray

On Wed, Sep 30, 2009 at 7:22 AM, vishnu vishnu.ku...@mahiti.org wrote:

 Hi,

 Does anyone know whats this error?

 I am trying this, so that I can recommend the setup to a org.

 Vishnu

From TracForge's setup.py:

4   import os
5   if os.getlogin() != 'coderanger':
6   print 'DO NOT USE THIS CODE YET.'
7   import sys
8   sys.exit(1)


That's there for a reason.

--~--~-~--~~~---~--~~
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: Trac Report SQL Query and Last Modified Date

2009-09-28 Thread Erik Bray

On Sun, Sep 27, 2009 at 1:43 PM, zdgman zdg...@gmail.com wrote:

 Hello All,

 I am trying to get the lastmodified column in this query on the Trac
 Dev Site

 http://trac.edgewall.org/report/20

 I know how to create lastmodified as a date but can't seem to get it
 listed out as a day's since last updated.  Would it be possible for me
 to see the SQL query from the edgewall site?

 Thanks.

If you want the number of days since the ticket was last modified,
that's just simple math: Take the current date/time as a unix
timestamp, subtract the modified time, and divide by (3600 * 24).

--~--~-~--~~~---~--~~
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: trac commercial support? looking for hiring trac developer.

2009-09-25 Thread Erik Bray

On Fri, Sep 25, 2009 at 2:14 AM, sylvain sylvain.vi...@gmail.com wrote:

 Hi,

 Seems not interesting anyone. :-(

 Do you know a way I could reach EdgeWall's development team?

 May be I can hire them to develop the code in order to speedup some
 part of trac which may slow down my setup?

 Regards,
 Sylvain.

What exactly do you need done?

--~--~-~--~~~---~--~~
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 to retrieve style and color informations

2009-09-22 Thread Erik Bray

2009/9/19 Fräntz Miccoli frantz.micc...@gmail.com:

 Hello people,

 I'm building an application using track CSV reports, when I use a
 register report I got columns : __color__,__group__,__style__ in the
 CSV file. I would like to get these columns even for a custom query.
 I would like to know which col to had to my request : query?
 groupdesc=1group=priorityformat=csvorder=prioritycol=idcol=summarycol=typecol=statuscol=prioritycol=resolutioncol=descriptioncol=milestonecol=componentcol=timecol=changetime

 Thank you

 Fräntz

The custom query page already allows you to select which field to
group by.  Color/style I'm not so sure about though. Don't think
that's really supported yet.  Perhaps there could be a ticket for
something to that effect; but to implement such functionality with the
flexibility provided by an SQL query would be extremely complicated.
I don't really have any ideas at the moment, but it might be worth
thinking about at least...

--~--~-~--~~~---~--~~
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: svn question

2009-09-21 Thread Erik Bray

On Fri, Sep 18, 2009 at 11:37 PM, Ariel Balter ar...@arielbalter.com wrote:
 All of a sudden I'm getting an SVN problem.  I have this in my apache2.conf

  Location /svn/heartstuff
      DAV svn
      SVNParentPath /svn
      SVNListParentPath On
      AuthType Basic
      AuthName Subversion Repository for HeartStuff
      AuthUserFile /trac/heartstuff/.htpass
      Require valid-user
  /Location

 Tortoise SVN is giving me  Error: Could not open the requested SVN
 filesystem

 However, my trac site can still see the repository!

Then this is an SVN/Apache problem, and not a Trac problem.  My guess
would be that you're not using SVNParentPath correctly, but it's hard
to say without more details.

--~--~-~--~~~---~--~~
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: Accessing wiki page name in page

2009-09-18 Thread Erik Bray

On Fri, Sep 18, 2009 at 11:41 AM, Chris Nelson chris.nel...@sixnet.com wrote:
 Is there a way to include the wiki page name in the page?  I know this may be 
 generally redundant but I want to create a template that includes 
 [[ThisPageName]] (or whatever) so that I don't have to edit it when I use it.

You'd have to use a wiki macro that returns the page name.  Could
probably already be one, but I don't know.

--~--~-~--~~~---~--~~
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] Fwd: Unable to add, remove, or edit milestones.

2009-09-17 Thread Erik Bray

From: kiano giraffe.jac...@gmail.com
Date: Thu, Sep 17, 2009 at 1:58 PM
Subject: Re: Unable to add, remove, or edit milestones.
To: Erik Bray hyugaricd...@gmail.com


This seems to be a similar issue. Adding a new milestone with the
command:

 milestone add NEWMS

adds the milestone, and the new milestone can be seen with:

 milestone list

However, trac doesn't show the new milestone on the website.
Restarting the webserver did not help either.

Performing the same exact steps on another server works. The
difference is the server environment and trac version. Here are the
current environment variables:

trac 0.10.4
python 2.5.2
ubuntu 8.04

Any ideas?


On Aug 6, 12:10 pm, Erik Bray hyugaricd...@gmail.com wrote:
 On Wed, Aug 5, 2009 at 5:48 PM, Chadleychadkings...@gmail.com wrote:

  Hello,

  I installed Trac and SVN on my 9.0.4 Ubuntu server. They both appear
  to be working correctly, except I can't add/edit/remove any of the
  milestone from the web interface. Right now, the permissions in the
  trac directory are 755 and chown was set to www-data:www-data. I've
  tried 777 permissions and still no luck. At this point, I have no clue
  why this isn't working.

  Just to make sure I did this right, I double checked my installation
  against Trac's installation guide (http://trac.edgewall.org/wiki/0.11/
  TracOnUbuntu) and the steps match up. (I've put my installation in a
  different directory, but I highly doubt that matters.)

  (And, it also appears that I cannot attach files to the wiki. I get
  the same results. All the page does it click back to the section you
  were just at, with no noticeable difference).

  Thanks in advance.

 You're probably using Python 2.6.  Upgrade to the latest Trac release.

--~--~-~--~~~---~--~~
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: Does Trac comply with Section 508?

2009-09-11 Thread Erik Bray

On Thu, Sep 10, 2009 at 5:27 PM, Mikemike.e.char...@gmail.com wrote:

 Hi all,

 I was wondering if Trac complies with Section 508 of the
 Rehabilitation Act. I work for the government, and would like to use
 Trac to manage our projects, but the government requires that all
 services on the web comply with Section 508 for accessibility reasons.

 Here's more information on what this is:

 http://www.section508.gov/index.cfm

 Thanks very much

I love how that site is itself horribly broken.  But what else is new?
 I've worked in government space, but I still never get used to it.

I don't know if Trac complies, but it could probably be made to if
necessary.  Wouldn't be a bad idea.

--~--~-~--~~~---~--~~
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: customization of email notification

2009-09-11 Thread Erik Bray

On Fri, Sep 11, 2009 at 4:42 AM, bubacoobuba...@gmail.com wrote:

 Hi, please can I somehow customize email notification? e.g. I don't
 want to have changes information. Or I want only comment from last
 change.

 Can I do it without modifying notification.py? Have you noticed a hack/
 plugin for that?

 Thank you

There's a Genshi text template for the ticket notifications.  The
easiest place to start would be to modify that.

--~--~-~--~~~---~--~~
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: trying to add an admin user.

2009-09-10 Thread Erik Bray

On Thu, Sep 10, 2009 at 8:29 AM, Stewartstewart.mathe...@gmail.com wrote:

 Yep I can see my name when I am logged in to trac. I also added
 TRAC_ADMIN to the anonymous user.  I still cant see the admin tab. I
 cant work this one out. Why cant I see the admin tab?

What version of Trac are you running? It was never mentioned...

--~--~-~--~~~---~--~~
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: trying to add an admin user.

2009-09-09 Thread Erik Bray

On Tue, Sep 8, 2009 at 3:23 PM, Marjory L. Mackesmlmac...@praxiseng.com wrote:
 You probably need to restart trac

That shouldn't be necessary for modifying permissions.

 From: Stewart
 Sent: Tue 9/8/2009 3:05 PM
 To: Trac Users
 Subject: [Trac] trying to add an admin user.

 Hello,

 I have my trac up and running and I am trying to add myself as an
 admin user. I ran the add permissions command and that worked but when
 I go to trac I dont see the admin link. Why cant i see this link?

What command did you run exactly?

--~--~-~--~~~---~--~~
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: AccountManager Plugin and Python2.6

2009-09-09 Thread Erik Bray

On Wed, Sep 9, 2009 at 10:51 AM, Rosalyn
Hatcherr.s.hatc...@reading.ac.uk wrote:

 Hi,

 Has anyone got the AccountManager Plugin to work with Python2.6 (Trac
 0.11.5)?

 After the demise of our webserver hard-drive, we now have Python2.6
 installed (Previously was using 2.5).
 I have reinstalled Trac (moving from 0.11.2.1 to 0.11.5 in the process).

 I regenerated the .egg file for the AccountManager Plugin
 (TracAccountManager-0.2.1dev_r5836-py2.6.egg).

 But when I go to the Trac page the Login link is no longer shown.

 I think I'm right in saying I don't need to run the Trac upgrade script
 for minor upgrades - do I?

 Any help much appreciated, I'm at a loss as to what to try next.  There
 are no errors in the trac.log or apache log files.

 Thanks,
 Rosalyn.

Do you have DEBUG logging enabled in Trac?  Is there a line like
Trac[loader] DEBUG: Loading acct_mgr.web_ui from
/path/to/TracAccountManager-0.2.1dev_r5836-py2.6.egg in the log when
you first start up the web server (and make a request)?  Otherwise
it's not being loaded by Trac for some reason.

--~--~-~--~~~---~--~~
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: wiki page hierarchy

2009-09-02 Thread Erik Bray

On Mon, Aug 31, 2009 at 1:01 PM, Roger
Oberholtzerroger.oberholt...@gmail.com wrote:

 On Mon, 2009-07-06 at 12:13 -0400, Erik Bray wrote:
 On Fri, Jul 3, 2009 at 9:19 AM, Roger
 Oberholtzerroger.oberholt...@gmail.com wrote:
 
 
  This is a variation on a question I asked a while back. It is not the
  same question.
 
  In the trac wiki, I can enter a name like wiki/page/subpage and this
  page/subpage will be created. Is it the case that I cannot import pages
  this way via the trac-admin command? I know how to import pages in a
  directory, and that works fine. But it seems that sub-directories are
  not imported. Is this correct/expected behavior? I have some hundreds of
  pages that will be generated automatically and [[Include]] in various
  wiki pages. I want to put them in a make like page/subpage.
 
  Have I missed the obvious?

 This functionality isn't built in as far as I know. But I recall a
 while back that we implemented some version of this.  I should go find
 that and maybe upstream the patch...


 I would like to persue this as a possible future feature. Erik, did you
 find a patch? Or should it be added as a ticket on the trac site? I have
 asked here first so I do not add a ticket for something that is only my
 own misunderstanding.

 In fact, I do not need the wiki page import to follow sub-directories
 recursively. I could also be happy with importing a directory and
 telling that the whole directory should go in some 'subdirectory' in the
 trac wiki. I'm flexible.

Sounds like it would be worth making a ticket for, if there isn't
already one (there may be, but not that I know of).  I'll see if I
already have some of this functionality implemented somewhere.

--~--~-~--~~~---~--~~
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: Webadmin

2009-09-02 Thread Erik Bray

On Wed, Sep 2, 2009 at 1:26 AM, ramesh. saadhviramesh.saad...@gmail.com wrote:
 Hi,

 Am using http://trac-hacks.org/wiki/HideValsPlugin, they recommended to use
 webadmin


 Am running this trac locally in windows XP, it seems webadmin plugin is
 inbuilt with trac 0.11.5rc1, please assist me how to use it, am able to
 enable the plugin but and am not able to see the webadmin screen,what i have
 to do to overcome this issue please check the attached screen shot and
 trac.ini configuration

 Am able to enable the options in webadmin plugin , but its not showing it is
 enabled.
 -
 webadmin.* = enabled
 webadmin.basics.projectadminpage = enabled
 webadmin.logging.loggingadminpage = enabled
 webadmin.perm.permissionadminpage = enabled
 webadmin.plugin.pluginadminpage = enabled
 webadmin.ticket.componentadminpage = enabled
 webadmin.ticket.milestoneadminpage = enabled
 webadmin.ticket.priorityadminpage = enabled
 webadmin.ticket.severityadminpage = enabled
 webadmin.ticket.tickettypeadminpage = enabled
 webadmin.ticket.versionadminpage = enabled
 webadmin.web_ui.adminmodule = enabled
 -

 The check box are always showing the status that i didn't selected,

 I dont know whats happening.

 This is the environment system information

 System Information

 Trac: 0.11.5rc1
 Python: 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
 (Intel)]
 setuptools: 0.6c9
 SQLite: 3.6.11
 pysqlite: 2.5.5
 Genshi: 0.5.1
 Subversion: 1.4.5 (r25188)
 jQuery:1.2.6
 Thanks,
 Ramesh V

You don't need to enable anything.  The webadmin plugin is the plugin
that used to provide all the pages under /admin.  As you can see,
that's already built in.

--~--~-~--~~~---~--~~
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: Flash + Trac 10.4 + trac_form_token?

2009-08-26 Thread Erik Bray

On Thu, Aug 20, 2009 at 3:10 PM, jbiesingerjake.biesin...@gmail.com wrote:

 I have a question on using Flash to post to trac 10.4-- I have a
 simple flash page embedded into one of my template pages which I'd
 like to be able to post back to trac. The post uses a single variable
 buttonVar. But when trying to post, I get a 400 error and the logs
 say WARNING: 400 Bad Request (Missing or invalid form token. Do you
 have cookies enabled?)

 The header for the post (as viewed by FireBug) includes
 trac_form_token so I'm not sure why trac isn't seeing it but then
 again I'm not doing anything special in Flash to include the
 trac_form_token. I know in the newer versions of trac you can have a
 hidden form called trac_form_token and trac will embed the form token
 directly, allowing you to read it from flash or javascript or
 whatever, but is that possible using 10.4?  Is there another way to
 allow the post but maintain the security of the trac_form_token?


 Trac version 10.4
 Python 2.4.4

 Thanks!
 Jake Biesinger

The value of the form token should be in a cookie trac_form_token.
I don't know much about Flash or action script, but I assume it's
possible to retrieve a cookie value.  Then just send the token as the
value of a __FORM_TOKEN argument in your POST request.

--~--~-~--~~~---~--~~
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: Errno 31 Too many links in xmlrpclib while uploading tickets

2009-08-21 Thread Erik Bray

On Thu, Aug 20, 2009 at 6:28 PM, Lukasz Szybalskiszybal...@gmail.com wrote:

 On Thu, Aug 20, 2009 at 5:13 PM, Lukasz Szybalskiszybal...@gmail.com wrote:
 Hello,
 I am uploading tickets to trac. 500 a day. After almost a month+ I've
 received this error.


 Traceback (most recent call last):
  File xxx.py, line 115, in module
    
 filename=server.ticket.putAttachment(number,file_name,file_name,xmlrpclib.Binary(open(os.path.join(folder_name,file_name)).read()))
  File /usr/lib/python2.5/xmlrpclib.py, line 1147, in __call__
    return self.__send(self.__name, args)
  File /usr/lib/python2.5/xmlrpclib.py, line 1437, in __request
    verbose=self.__verbose
  File /usr/lib/python2.5/xmlrpclib.py, line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File /usr/lib/python2.5/xmlrpclib.py, line 1340, in _parse_response
    return u.close()
  File /usr/lib/python2.5/xmlrpclib.py, line 787, in close
    raise Fault(**self._stack[0])
 xmlrpclib.Fault: Fault 2: '[Errno 31] Too many links:
 '/home/trac/trac/attachments/ticket/32433'' while executing
 'ticket.putAttachment()'



 Is there a way to close the xmlrpclib.ServerProxy. I think that is
 what caused this error. Every time I upload a file I create a service
 that connects to trac. I do that because the filename of the file I
 want to upload comes on stdin.


 I found this:
 http://www.wlug.org.nz/EMLINK



 Too Many Links

 There are too many hard links to a file or directory on a filesystem.
 The exact number allowed is file-system dependent. Eg
 /usr/src/linux-2.4.19/include/linux/sysv_fs.h contains

    enum {

        XENIX_LINK_MAX = 126, /* ?? / SYSV_LINK_MAX = 126, / 127? 251?
 / V7_LINK_MAX = 126, / ?? */ COH_LINK_MAX = 1,

    };
 while /usr/src/linux-2.4.19/include/linux/ext3_fs.h has

       1. define EXT3_LINK_MAX 32000

 and /usr/src/linux-2.4.19/include/linux/reiserfs_fs.h has

       1. define REISERFS_LINK_MAX (MAX_US_INT - 1000)

 (for maximum unsigned integer on the system).

 This could be caused by a directory having too many subdirectories
 (each subdirectory has .. as a hardlink to it's parent directory which
 causes that directory's hardlink count to be increased by one. So yes,
 this does mean that you are limited to 32000 subdirectories in one
 directory in ext3, even if you have hashdirs enabled.) As a
 consequence of this you can stat(2) a directory and add one (for ..)
 and you will know how many directories are in the current directory.
 (or subtract one (for .) to find out how many subdirectories there
 are).

 Some file systems (such as FAT) don't have hardlinks so the hardlink
 count can't overflow, and you can't rely on the hardlink count of a
 directory to be representive of how many subdirectories it has.

 What a confusing world we live in.


 I did reach the 32000 tickets. I have exactly:
 31999 folder for ticket# on my ext3.

  ls -l |wc -l
 31999

 How do I increase that number on ext3?

 Thanks,
 Lucas

Well, when lots of SVN users started hitting limits like that for
revisions, they just added a second directory level to handle the
situation.  I don't think many Trac instances have, to this point,
been used in a such a way that they've hit this limit.

--~--~-~--~~~---~--~~
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: [trac]: html how to get ticket params‏

2009-08-19 Thread Erik Bray

2009/8/18 aurelien villejoubert a.villejoub...@hotmail.fr:
 hello

 i am trying to modify the report_view.html, i want to print on this page
 some param from ticket( for example ticket.id as in ticket.html), but i
 don't know how it works.
 I don't understand how ticket.html can get those params and i don't find the
 link between the files .html and .py.

 if someone can help me and or explain me how it works, it would be great
 thanks

 and excuse me for my english, i am french

Most every page you see in Trac is rendered by a Trac Component that
implements the IRequestHandler interface.  The IRequestHandler
interface requires a method called process_request().  It returns the
name of a Genshi template (such as ticket.html) and a dictionary
containing all the data that will be passed into the template when
it's rendered.  Typically, that data is also built up in
process_request().

You can see a subset of the data passed to the template for a specific
page by adding hdfdump=1 to the URL, if you have TRAC_ADMIN
privileges.  Or you can see even more if you use the TracDeveloper
plugin.

--~--~-~--~~~---~--~~
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: edit trac.ini using python/shell

2009-08-11 Thread Erik Bray

On Tue, Aug 11, 2009 at 4:03 AM, alindalindsha...@gmail.com wrote:

 After some more searching I found a library python-configobj
 http://www.voidspace.org.uk/python/configobj.html#downloading
 Am I suppose to use some other thing.
 IMHO this will work fine for me.
 Thanks.

 On Aug 11, 12:42 pm, alind sharma alind_...@yahoo.com wrote:
 I want to edit trac.ini using python/shell. Whats the best way to do it.
 Want something like I should be able to read trac.ini into some sort of 
 dictionary/list, check if some option is present in the dictionary, and edit 
 its value. There are some options that I want to add like
 track.hg* = enabled,
 webauth plugin = disbaled
 webadming = enabled
 etc. If something like this is already present then it will be fine, 
 otherwise i will write one myself. Can anybody guide me towards the best way 
 of achieving this. Thanks in advance.

  Alind Sharma

Why bother? If you already have Trac, just use what Trac uses: from
trac.config import Configuration.

--~--~-~--~~~---~--~~
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: Unable to add, remove, or edit milestones.

2009-08-06 Thread Erik Bray

On Wed, Aug 5, 2009 at 5:48 PM, Chadleychadkings...@gmail.com wrote:

 Hello,

 I installed Trac and SVN on my 9.0.4 Ubuntu server. They both appear
 to be working correctly, except I can't add/edit/remove any of the
 milestone from the web interface. Right now, the permissions in the
 trac directory are 755 and chown was set to www-data:www-data. I've
 tried 777 permissions and still no luck. At this point, I have no clue
 why this isn't working.

 Just to make sure I did this right, I double checked my installation
 against Trac's installation guide (http://trac.edgewall.org/wiki/0.11/
 TracOnUbuntu) and the steps match up. (I've put my installation in a
 different directory, but I highly doubt that matters.)

 (And, it also appears that I cannot attach files to the wiki. I get
 the same results. All the page does it click back to the section you
 were just at, with no noticeable difference).

 Thanks in advance.

You're probably using Python 2.6.  Upgrade to the latest Trac release.

--~--~-~--~~~---~--~~
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: Trac doesn't work with Virtual Hosts - Authentication information not available

2009-08-04 Thread Erik Bray

On Tue, Aug 4, 2009 at 6:28 AM, Marcsantusm...@gmail.com wrote:

 Yes the problem is that apache is not prompting the login form in /
 login. It just goes straight to Trac.

 I have fixed it now, I've set the logging level to debug and saw this

 [Tue Aug 04 03:21:06 2009] [debug] mod_deflate.c(632): [client myip]
 Zlib: Compressed 4133 to 1507 : URL /include/error.php, referer:
 http://myproject.url.com/

 I removed this line from my apache conf:

 ErrorDocument 401 /include/error.php?401

 It was my custom error handler.

 What I did now is set: ErrorDocument 401 default inside the Location /
 login

 Everything works now, anybody able to explain the mechanism behind the
 401 with Trac?

 Thanks!

Simpler: Put a '#' in front of the 'ErrorDocument 401' line :)

--~--~-~--~~~---~--~~
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: Trac doesn't work with Virtual Hosts - Authentication information not available

2009-08-03 Thread Erik Bray

On Sat, Aug 1, 2009 at 10:56 PM, Marcsantusm...@gmail.com wrote:

 Here is my VirtualHost configuration

 VirtualHost *:80
    ServerName myproject.host.com
    # We can't use Location / because then /login also gets sent to
 mod_python
    Location /
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/trac/myproject/
        PythonOption TracUriRoot /
        SetEnv PYTHON_EGG_CACHE /var/trac/.egg-cache/
    /Location

    Location /login
        AuthType Basic
        AuthName Trac (Subversion) access
        AuthUserFile /etc/apache2/svn.passwd
        Require valid-user
    /Location
 /VirtualHost

 The problem is that the Login location does not work. Trac' (NOT
 mod_python), hijacks everything and sends it to itself. Even setting
 SetHandler None in Location /login does nothing.

 The famous Authentication information not available message appears.
 Apache never is able to handle the Location /login, Trac hijacks it.

 Has anybody ever solved this long-standing issue? It seems to be a
 problem with Trac, because other mod_python apps like Django use the
 SetHandler None solution and it works fine.

 Using DocumentRoot does no difference whatsoever.

 Thanks.

If I understand correctly, you *want* Trac to handle /login.  Trac has
a request handler for /login that handles generating the Trac cookie
if authentication information is provided by the server.  Otherwise
Apache is just authenticating /login and then doing nothing at that
location.

--~--~-~--~~~---~--~~
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: Edit Wiki/ New Tickets

2009-07-29 Thread Erik Bray

On Tue, Jul 28, 2009 at 12:44 PM, mateomatthewigles...@gmail.com wrote:

 I recently install trac tool on a XP system, Im using SQLite and
 tracd, does anyone know why I can't see the edit and attach option for
 the wiki and also I can't enter any new ticket.

http://trac.edgewall.org/wiki/TracPermissions

--~--~-~--~~~---~--~~
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 to configure trac in httpd.conf if i have multiple projects

2009-07-29 Thread Erik Bray

On Wed, Jul 29, 2009 at 6:23 AM, cracklinux crackcrackubu...@gmail.com wrote:

 hi,
 i have added trac.conf in /etc/httpd/conf.d which will include in
 httpd.conf.
 so my trac.conf is

 Location /svn/trac/first_pro
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /svn/trac/first_pro
    PythonOption TracUriRoot /svn/trac/first_pro

    AuthType Basic
    AuthName trac browser
    AuthPAM_Enabled on
    Require group ocusers
    Require valid-user
 /Location

 where /svn/trac/first_pro is created according to my repository (svn)
 project first_pro
 and have around 30 projects so i think its not best way to add 30
 blocks like this so what is the solution to make things easy.
 and have to run trac-admin /svn/trac/first_pro initenv  this for
 every project is it standard we need follow are is there any other
 specific thing that can auto search in repose and do with one time
 taking configs. i don't know it exist are not for better
 administration iam asking this.

Use TracEnvParentDir:
http://trac.edgewall.org/wiki/TracModPython#Settingupmultipleprojects

--~--~-~--~~~---~--~~
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: removing all tickets

2009-07-27 Thread Erik Bray

On Mon, Jul 27, 2009 at 12:23 PM, David Starrdst...@trapeze.com wrote:

 Hi again just a quick question here.. What's the safest way to
 remove all the tickets from a Trac db?

 Thanks again!
 -David

What do you mean by safest?  Now matter how you do it, once they're
gone, they're gone.

--~--~-~--~~~---~--~~
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: Problem with Trac configuration (using mod_python)

2009-07-20 Thread Erik Bray

On Sat, Jul 18, 2009 at 5:32 AM, soumochatwith...@gmail.com wrote:

 Hi,

 For a demo project , I've installed the following on Fedora
 1. Package trac-0.11.3-4.fc11.noarch
 2. Package subversion-1.6.1-5.fc11.i586
 (Two additional packages python-genshi and python-pygments were also
 installed as dependency with Trac)

 To run Trac using apache web server and mod_python, I've added the
 following lines to trac.conf file
 IfModule mod_python.c
 Location /trac/demo
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /srv/trac/demo
    SetEnv PYTHON_EGG_CACHE /tmp
    PythonInterpreter trac

    AuthType Basic
    AuthName demo
    AuthUserFile /opt/svn/svn-demo.htpasswd
    Require valid-user
 /Location
 /IfModule

 IfModule mod_dav.c
 Location /svn/demo
    DAV svn
    SVNPath /srv/svn/demo
 /Location
 /IfModule

 By default, on httpd.conf, the documentroot is /var/www/html and that
 value I did not change.
 Now when I try to access trac with the url http://host.com/trac/
 demo, it does not load the images and css and gives the following
 error on the page No handler could be found for demo.

 Then I manually created subfolders 'trac' and 'demo' under /var/www/
 html and now the error is gone but its still not loading the css and
 image files. But in the url if I put 'http://host.com/trac/demo/
 abc' (or any text in place of abc), the page loads properly.

 So, my questions are
 1. why do I need to manually create subfolders under /var/www/html
 where I've explicitly defined the location of my project under
 Location ? In that case what change should I made in the conf file
 so that I dont have to create the folders manually? (I used alias in
 httpd.conf but it didn't work).

You shouldn't have to. Post your full httpd.conf.

 2. what do I need to change in the configuration file if I want to
 access trac demo project with the url 'http://host.com/trac/demo'
 instead of 'http://host.com/trac/demo/abc'?
 (Note : when I put 'http://host.com/trac/demo/abc/xyz' then its giving
 404 error though).

Set 'PythonOption TracUriRoot /trac/demo'. mod_python can get confused
without it.

--~--~-~--~~~---~--~~
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: File Uploads dont work

2009-07-16 Thread Erik Bray

On Thu, Jul 16, 2009 at 7:48 AM, Rufinustherufi...@gmail.com wrote:

 Hi,

 I have a trac (0.11.2) installation (with python 2.6) on my server in
 which everything is working, except the file upload. The strange thing
 is, i get no error, the attach file page is just displayed again.

 the whole trac directory is own by the apache user and group. the
 attachment directory has 0777 rights (i know is not neccessary, but im
 hopeless here :-)

 the only thing which is writen to the debug log is the same i get for
 most of the pages (seems it has nothing todo with the upload itself)

 2009-07-16 13:45:46,306 Trac[main] DEBUG: Dispatching Request POST
 u'/attachment/wiki/WikiStart/'
 2009-07-16 13:45:46,345 Trac[PyGIT] DEBUG: PyGIT.Storage instance
 151528396 constructed
 2009-07-16 13:45:46,345 Trac[PyGIT] DEBUG: requested weak
 PyGIT.Storage instance 151528396 for '/home/git/repositories/
 project.git/'
 2009-07-16 13:45:46,345 Trac[git_fs] INFO: disabled CachedRepository
 for '/home/git/repositories/project.git/'
 2009-07-16 13:45:46,350 Trac[chrome] DEBUG: Prepare chrome data for
 request
 2009-07-16 13:45:46,356 Trac[session] DEBUG: Retrieving session for ID
 u'ludwig'
 2009-07-16 13:45:46,370 Trac[PyGIT] DEBUG: PyGIT.Storage instance
 151528396 destructed
 2009-07-16 13:45:46,388 Trac[main] DEBUG: 485 unreachable objects
 found.

This is just debugging info from the garbage collector. Isn't anything
you have to worry about.

 the setup uses modpython (if its important ?)

 any idea how to fix this ?

You might also want to check your Apache logs for insight.

--~--~-~--~~~---~--~~
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: time_created in ticket notification email, possible?

2009-07-02 Thread Erik Bray

2009/7/2 Álvaro J. Iradier alvaro.irad...@polartech.es:

 Hi,

 I'm trying to add the time the ticket was opened to the ticket
 notification email. I modify ticket_notify_email.txt, but it looks
 like $ticket.time_created is blank. Can I get this information
 somewhere?

 Thanks.

Hm, it seems to work for me.  What version of Trac are you using, and
what are the actual contents of your template?

--~--~-~--~~~---~--~~
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: [task] Locking Ticket # while working on it?

2009-06-19 Thread Erik Bray

On Thu, Jun 18, 2009 at 7:09 AM, Aaron D.
Marascotrac-m...@revragnarok.com wrote:
 Re the wiki collisions (which is slightly off-topic of the original
 subject), we simply ported the Wikipedia {{inuse}} template (1) to Trac's
 wiki format, but not with all the options. It's basically a very lame manual
 lock, but works 99.44% of the time.

 (1) http://en.wikipedia.org/wiki/Template:Inuse

Of course, we did this *before* better handling of wiki collisions was
implemented.  I basically never use it anymore since Trac works pretty
well now as it is.  Just need to get collision handling working for
tickets now...(which for me, as with the OP, tends to be a much bigger
problem).

--~--~-~--~~~---~--~~
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: Trac Active Directory Authentication?

2009-06-19 Thread Erik Bray

On Fri, Jun 19, 2009 at 2:56 AM, Þehra Þensehra_...@yahoo.com wrote:
 They told me to to integrate trac with active directory authentication.
 I've installed trac.
 I read from the trac documentation that I have to install apache for active
 directory integration.
 But I do not know how to accomplish this?

 Any help will be appreciated.

 Thanks.

In your case, (i.e. don't even have Apache) you might be better off
using the AccountManager plugin and the LDAP auth plugin that's
available for it.  Take a look on trac-hacks.org for these.  It's a
fairly common use case so you should also be able to find a lot of
existing threads on this mailing list about getting that set up.

--~--~-~--~~~---~--~~
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: Add a parameter to a report

2009-06-19 Thread Erik Bray

On Fri, Jun 19, 2009 at 7:48 AM,
zineb.benam...@gmail.comzineb.benam...@gmail.com wrote:

 Hi all,

 I have a very important modification to do on the trac platform.
 On my reports list, I created a report which is a kind of statistics.
 I would like to make this statictics be calculated according to two
 date times ( for example between X and Y)
 and it must be possible for the user to choose those two date time in
 two text areas on the same interface.

 Is it possible to do?
 please i need a big help

 Thanks,

 Zineb

Hard to say without more details.  It sounds like you can just use two
dynamic variables in a report.  This is already possible, though with
the downside that users would have to append values for the variables
to the URL by hand.  In Trac 0.12 there's a better UI for entering
dynamic variable values when selecting a report to run.

--~--~-~--~~~---~--~~
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: Deduplicating the timeline

2009-06-18 Thread Erik Bray

On Wed, Jun 17, 2009 at 11:16 AM, Chris
Mulliganchris.mulli...@gmail.com wrote:

 Our trac has gotten vastly more busy recently as we bring more
 projects into one install. I have one idea on how to help smooth the
 amount of work our team goes through. I'd like to dedupe the timeline
 so it only shows each unique wiki page/ticket once, for the last time
 it was edited. So if there were 8 edits to ticket 12345 it would only
 show up once, at the time of the last edit.

 Has anyone seen a plugin to do this, or something like it? Seems like
 it wouldn't be that hard to implement, although I haven't worked with
 the timeline code before.

This sort of thing has been discussed before.  And recently too!  I
just can't remember where :/  Anyways, definitely an idea that's been
bandied about, but I don't think there's really been a concrete
solution for it yet, unfortunately.

--~--~-~--~~~---~--~~
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: Concatenate multiple row data into single row

2009-06-18 Thread Erik Bray

On Thu, Jun 18, 2009 at 2:06 AM, rishikeshrishimishra1...@gmail.com wrote:

 I have a sub-query which selects some rows from a table. I want to
 concatenate these rows in a single row.

 Example:

 Column1
 Row1
 Row2
 Row3
 Row4

 I want this result as:
 Column1
 Row1Row2Row3Row4

 Looking for a solution with Single query

Well, your example is too abstract to provide an actual query, but you
would have to use JOINs to do this.

--~--~-~--~~~---~--~~
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: accessing ticket fields

2009-06-18 Thread Erik Bray
On Thu, Jun 18, 2009 at 11:01 AM, Dan Winslowdwins...@aiminstitute.org wrote:
 In plugin code, I am trying to access the value of the ‘owner’ field. Can
 anyone guide me on how to do this? My latest attempt is



 from trac.ticket.model import Ticket

 …

     try:

     tkt = Ticket(self.env, res.id)

     except TracError:

     return None # Ticket doesn't exist

     disabled = True



 which almost works….except at runtime it says that ‘NameError: global name
 'res' is not defined’. The ‘res’ is not currently passed into the method I
 am in

  (  def filter_stream(self, req, method, filename, stream, data): ).



 If there’s a better way, in code, to obtain the value of the current ticket
 ‘owner’, please let me know.

Ah...after a close look, this provides just enough context (more than
your previous post) to divine what you're trying to do.

Assuming that you're filtering on the ticket page
(filename=='ticket.html') you want data['ticket'].

--~--~-~--~~~---~--~~
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: Trac compatible with Python 3?

2009-06-16 Thread Erik Bray

Though I'm sure that if someone had the time to spend and wanted to
spend it working on a 3.0 port of Genshi, no one would stop them from
trying.  Though I don't think it would be a very straightfoward
conversion.

On Mon, Jun 15, 2009 at 4:08 PM, Noah Kantrowitzn...@coderanger.net wrote:

 No, nor is it going to happen anytime soon. SQLite should work, but it will
 take time for the other DB bindings to be available. Also Genshi is going to
 be hard to port, since it uses a lot of python internals. Maybe in a year or
 two.

 --Noah

 -Original Message-
 From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com]
 On Behalf Of pgacv2
 Sent: Monday, June 15, 2009 6:22 AM
 To: Trac Users
 Subject: [Trac] Trac compatible with Python 3?


 Hello,

 I did some quick searching online and in the archives of this list but
 found no answer. I'm sure it's been asked before. Is the current
 version of Trac compatible with Python 3? And if not, is it in the
 works? There's no mention of it in the roadmap.

 Thanks,

 Pedro




 


--~--~-~--~~~---~--~~
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: Printing out request

2009-06-16 Thread Erik Bray

On Tue, Jun 16, 2009 at 4:28 PM, Dan Winslowdwins...@aiminstitute.org wrote:
 How can I print out all of the fields in the req structure?




Your best bet would be to get the TracDeveloper plugin.  Look for it
on trac-hacks.

--~--~-~--~~~---~--~~
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: Restricting fields based on userid matching owner?

2009-06-15 Thread Erik Bray

On Mon, Jun 15, 2009 at 2:46 PM, Dan Winslowdwins...@aiminstitute.org wrote:
 Anyone know of a way to restrict fields based on whether or not the current
 user matches the owner? In other words, fields that only the current owner
 may change.

You'd probably have to write a plugin.  Not sure if anything exists
that does exactly that.  Pretty simple though--I'm working on a
workflow plugin that does something similar, on top of many other
things.

--~--~-~--~~~---~--~~
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: SVNserve or Apache server with Trac?

2009-06-12 Thread Erik Bray

On Thu, Jun 11, 2009 at 5:56 AM, jm voodoo childjmdev...@hotmail.fr wrote:

 Hi Trac-Users!


 Which is the most simpliest way to Browse SVN source with Trac?

 Run SVN with SVNserve or Apache server?

 I can't browse my source With a SVN server, I want to try to run SVN with
 apache, seems more simple,

 Am I right?


 Thanks,


 jm.

Please don't start new threads by replying to unrelated threads.

As for your question, it's irrelevant to Trac how you serve your SVN
repository, since Trac accesses the repository directly.

I prefer serving the repository through Apache, but there's no reason
you can't also do both, depending on your needs.

--~--~-~--~~~---~--~~
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 to set the data globally in Trac system

2009-06-12 Thread Erik Bray

On Thu, Jun 11, 2009 at 7:12 AM, prabhakarprabhakar2...@gmail.com wrote:

 Hi,

  i need to set the data globally, means suppose i have set one
 variable name as Temp_var with some data. i want to access that
 variable in whole Trac.
 e.g:
  auth.name is global variable that contains current login user name
 and it is accessible for whole Trac, similarly i want to set global
 variable like auth.name

 can anybody suggest me

It would probably help if you explained in more detail what it is
you're trying to build, and what you need this variable to hold and
what it will be used by.

--~--~-~--~~~---~--~~
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: error validating fields

2009-06-08 Thread Erik Bray

On Fri, Jun 5, 2009 at 3:55 PM, Dan Winslowdwins...@aiminstitute.org wrote:
 I am attempting to modify some plugin code, despite my lack of python
 knowledge. I wanted to add type checking to the validator plugin, and so I
 added the modified  the function. With a trac.ini entry of



 [fieldscheck]

 int_fields=Hours



 and running this code :



     def validate_ticket(self, req, ticket):

     Make sure required fields for the next state have been

     the ticket will be in have been entered.



     state = self._get_state(req, ticket)



     editcheck_fields = self.config.getlist('fieldscheck','int_fields')



     errors = [(field_name, '%s must be an integer' % field_name)

   for field_name in editcheck_fields

   if self._is_not_integer(ticket[field_name])]



     required_fields = self.config.getlist('ticketvalidator',

   state + '.required')



     errors = errors + [(field_name, '%s is required' % field_name)

   for field_name in required_fields

   if self._is_empty(ticket[field_name])]



     return errors





 I get :

 TypeError: cannot concatenate 'str' and 'list' objects



 On the line :



 if self._is_not_integer(ticket[field_name])]



 I get the feeling this is just a python problem of mine and not something
 intrinsic to TRAC, but I thought I’d ask you guys anyways.



 Thanks in advance.

Probably need to see the rest of the code to be sure what the actual
problem is.  Also, your _is_not_integer() and _is_emtpy() methods seem
unnecessary.  The former can be replaced with `not
ticket[field_name].isdigit()` and the latter with `not
ticket[field_name]`, at least as far as I can tell from how they're
being used.

--~--~-~--~~~---~--~~
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: Rendering of vCard attachments

2009-06-05 Thread Erik Bray

On Fri, Jun 5, 2009 at 6:14 AM, W. Martin Borgertdeba...@debian.org wrote:

 Hi,

 can trac render vCards attached to tickets? Currently they are
 displayed as text, but I'ld prefer a table format or hCard.

 If this feature does not yet exist: I assume that implementing
 this should be easy. But where would I start?

 TIA

You could write a plugin. Look into the
trac.mimeview.api.IHTMLPreviewRenderer interface.  There are also a
few Components in trac.mimeview.api that implement it, which you can
look at for examples.

--~--~-~--~~~---~--~~
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: Subscribing to additional features

2009-06-02 Thread Erik Bray

On Tue, Jun 2, 2009 at 2:58 PM, abalter ariel.bal...@gmail.com wrote:

 I'm using the Announcer plugin that allows me to subscribe to wiki
 pages, i.e. I will get an email if they change.

 I would like to also be able to get notifications of new blog posts by
 others, new forum topics, and comments/updates to these.

 Does anyone know a way to do this?

 Thanks, Ariel (abalter)

Well, part of the point of the announcer plugin seems to be that it's
very extensible.  So you could either write plugins for it that hook
it into the blog/forum plugins, or ask the authors of those plugins
about adding optional support for the announcer plugin.

--~--~-~--~~~---~--~~
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 there a way to have default page template in TRAC Wiki?

2009-05-27 Thread Erik Bray

On Tue, May 26, 2009 at 6:36 PM, yoheeb yoh...@gmail.com wrote:

 On May 26, 4:03 pm, Erik Bray hyugaricd...@gmail.com wrote:
 On Tue, May 26, 2009 at 2:24 PM, Christopher Barker

 chris.bar...@noaa.gov wrote:

  Erik Bray wrote:
  What would really be neat would be if there could be some template
  variable fields that need to be filled in when creating a page from a
  template.  Some date fields come to mind, for example.  I smell a
 well, in theory, you could combine a ticket template, with the
 PageVariableMacro.  Although, according to the hak PageVariableMacro
 hasn't been made to work with 0.11 yet.

I had something much simpler in mind.  The author of a template could
define some template variables (using a ${foo} syntax) and from those
variables a set of inputs would be displayed for a user to fill out
when they first create a page from that template.

Some additional syntax could go in to specify field types, and to mark
a field as required.  I wouldn't want to go crazy with it though.
Nothing so complicated that it would have to involve the ticket
system.

This is something I've kind of had in mind for a while.  For example,
we make wiki pages for meetings, and our Meeting template already has
what are essentially template variables for Date, Time,
Location, Participants, etc...  This plugin would make it easier
to find those fields and make sure they get filled out.

--~--~-~--~~~---~--~~
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 there a way to have default page template in TRAC Wiki?

2009-05-26 Thread Erik Bray

On Sun, May 24, 2009 at 12:55 PM, Christopher Barker
chris.bar...@noaa.gov wrote:
 Christian Boos wrote:
 You've given a perfect specification for the
 http://trac.edgewall.org/wiki/PageTemplates feature, available in Trac
 since 0.11 ;-)

 Thanks, I really thought I'd looked for that!

 -Chris

What would really be neat would be if there could be some template
variable fields that need to be filled in when creating a page from a
template.  Some date fields come to mind, for example.  I smell a
plugin idea...
(Although with such a feature available, users would have to carefully
evaluate whether a wiki page is really what they want, and not a
ticket).

--~--~-~--~~~---~--~~
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 there a way to have default page template in TRAC Wiki?

2009-05-26 Thread Erik Bray

On Tue, May 26, 2009 at 2:24 PM, Christopher Barker
chris.bar...@noaa.gov wrote:

 Erik Bray wrote:
 What would really be neat would be if there could be some template
 variable fields that need to be filled in when creating a page from a
 template.  Some date fields come to mind, for example.  I smell a
 plugin idea...
 (Although with such a feature available, users would have to carefully
 evaluate whether a wiki page is really what they want, and not a
 ticket).

 I think that could be very useful for things that really do belong in
 Wiki pages. I you write it, I'm likely to use it! ;-)

 -Chris

I agree it would be useful.  Just seems to open up a lot of potential
for abuse.  But hey, if it's what people want to do, why stop them?
I'll consider working on such a thing when I have some time...

--~--~-~--~~~---~--~~
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: not able to delete the project

2009-05-20 Thread Erik Bray

On Wed, May 20, 2009 at 7:36 AM, prabha prabhakar2...@gmail.com wrote:

 Hi

 i have created one plugin named as projectmaintenance plugin. this
 plugin is basically user for delete and archive the projects purpose.

 main problem is that once you can open the project iam not able to
 delete the project, it will give an error like unable to delete the
 file trac.db file used by some another persons even i have close the
 databse.


 can anybody suggest how to close the environment for example open
 environment purpose i have used self.open_env

 in the same way how to close the environment.

Stop the server process?

--~--~-~--~~~---~--~~
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: Having Trouble Configuring SessionStore

2009-05-12 Thread Erik Bray

On Sun, May 10, 2009 at 10:49 AM, Bob Fitterman fitter...@gmail.com wrote:
 I am attempting to get a SessionStore configuration to work, but having no
 luck. The relevant sections of trac.ini are shown here:

   [account-manager]
   account_changes_notify_addresses =
   authentication_url =
   force_passwd_change = true
   generated_password_length = 8
   hash_method = HtDigestHashMethod
   notify_actions = []
   password_store = SessionStore

   [components]
   acct_mgr.* = enabled
   acct_mgr.admin.accountmanageradminpage = enabled
   acct_mgr.api.accountmanager = enabled
   acct_mgr.db.sessionstore = enabled
   acct_mgr.htfile.abstractpasswordfilestore = disabled
   acct_mgr.htfile.htdigeststore = disabled
   acct_mgr.htfile.htpasswdstore = disabled
   acct_mgr.http.httpauthstore = disabled
   acct_mgr.notification.accountchangelistener = enabled
   acct_mgr.notification.accountchangenotificationadminpanel = enabled
   acct_mgr.pwhash.htdigesthashmethod = enabled
   acct_mgr.pwhash.htpasswdhashmethod = disabled
   acct_mgr.svnserve.svnservepasswordstore = disabled
   acct_mgr.web_ui.accountmodule = enabled
   acct_mgr.web_ui.emailverificationmodule = enabled
   acct_mgr.web_ui.loginmodule = enabled
   acct_mgr.web_ui.registrationmodule = enabled
   trac.web.auth.loginmodule = enabled
   webadmin.* = enabled

 Trac comes up fine (it was already running okay with HtDigestStore enabled),
 but when I click on Login now, I get an error message: Trac Error
 Authentication information not available. Please refer to the installation
 documentation. I've poked around but can't really figure out where I'm
 going wrong or where to be looking for logged messages that might give me a
 clue to what's misconfigured. I'm running Trac 0.11.1 on Debian.

A few this I noticed:
 * You already have acct_mgr.* = enabled.  This enables all components
in the acct_mgr package, so all those other acct_mgr.foo = enabled
lines are redundant.  The only lines you need are the ones that
explicitly disable components.
 * webadmin.* = enabled should be removed.  The functionality of the
webadmin plugin is built into Trac 0.11.
 * You need trac.web.auth.loginmodule = disabled for the account
manager plugin to handle authentication.

--~--~-~--~~~---~--~~
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: It's hard to remove this plugin ... gggrrr

2009-05-04 Thread Erik Bray

On Mon, May 4, 2009 at 11:37 AM, Olemis Lang ole...@gmail.com wrote:

 Hello.

 Recently I tried to remove a plugin so as to install a new version and
 I just can't. This time I'm running trac 0.11 using FastCgi. I have
 installed a plugin in an env's plugin folder. Nonetheless,

 - All other envs can see the plugin (first thing I dont understand
 very well :-/ )
 - When I access plugin admin page for those envs, Uninstall button is
 always disabled, so there is no way I can remove it doing so.
 - If I remove it from the file system directly then it is still shown
 in admin page (all envs ) even if it's *really* gone
 - On enabling / disabling its components, the env gets broken ...

 Pls. What's happenning ? How can I remove that plugin?

You or somebody else probably installed the plugin system-wide at some
point along the line.  Check to see if there's an egg for the plugin
in /usr/lib/python2.x/site-packages or
/usr/local/lib/python2.x/site-packges or whatever your platform's
equivalents are.

--~--~-~--~~~---~--~~
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: More milestone statuses

2009-04-17 Thread Erik Bray

On Thu, Apr 16, 2009 at 2:17 PM, Jennifer A. Drummond j...@io.com wrote:

 On Thu, Apr 16, 2009 at 01:47:48PM -0400, Chris Nelson wrote:
 I have nearly 60 milestones on my Roadmap.  Of course we can't be
 actively working on all of them at once.  Some of them are in a
 planning stage with no real work going on.  Others are tentative at
 best.  I'd love to have more milestone statuses than open and closed
 so I cold have pending or future or domant or something and
 filter my roadmap down to what we're really working on.  Am I alone
 in this?

 You're definitely not alone. I dream at night about having time to add
 functionality to the milestone system.

I wish my dreams were as exciting as yours ;)

In all seriousness though, it would be pretty neat if Milestones had
custom status and workflows like tickets.

--~--~-~--~~~---~--~~
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: can trac be used as a quality management system?

2009-04-17 Thread Erik Bray

On Thu, Apr 16, 2009 at 8:10 PM, Si Chen sichen1...@gmail.com wrote:

 Hi there, I'm from the opentaps Open Source ERP + CRM project
 (www.opentaps.org)  We've been using trac internally for over a year
 now--thanks so much, everybody.

 We need a quality management system for manufacturing companies which
 use our software.  The requirement is for a module which can store
 templates of tests with testing steps and range of acceptable values
 at each step.  When the QC process begins, the test template needs to
 create a series of tasks which a user could execute one by one and
 record the values from each test.  If the results are within the
 limits, then the item has passed tests.
 Otherwise, the item has failed the tests.

 Could trac be modified to support
 (a) a template of tasks
 (b) workflow to manage the series of tasks?

Absolutely, though not necessarily right out of the box, depending on
what your requirements are.  We're using a modified version of the
ticket system for QA tracking, and if it's workflows you want that's
probably the best place to start.  There are some plugins out there
that already give you more control over the ticket system than there
is out of the box.

--~--~-~--~~~---~--~~
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: Error: Forbidden when trying to access browser

2009-04-16 Thread Erik Bray

On Wed, Apr 15, 2009 at 6:26 PM, George Nychis gnyc...@cmu.edu wrote:
 Hi all,

 I have BROWSER_VIEW granted to anonymous (verified), but whenever I try to
 browse the source it says: Error: Forbidden.  The web server does have
 access to the repository also:
 drwxrwxr-x  7 www  svn   512 Sep 24  2008 cgran

 Any thoughts?

 Thanks!
 George

You probably don't have anonymous read access to the root of your
repository in your authz file.

--~--~-~--~~~---~--~~
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: Login to trac is not woking any more

2009-04-15 Thread Erik Bray

On Tue, Apr 14, 2009 at 8:54 AM, Heinrich Götzger goetz...@gmx.de wrote:

 Hi,

 I'm running Trac 0.11.2 on a gentoo box for more than a year now.

 For some reason trac refuses to give access to any registered user at
 all now.

 The only way which I'm able to get into trac right now is to grant
 TRAC-ADMIN to group anonymous. But this is not what I want.

 It looks like to me if there  would be some mess with the groups.
 Shouldn't it be group 'authenticated' after login and not 'anonymous'?

 If I log in as admin, The login user is not able to view any page.
 I get following in the log:

snip
 I've no idea how this can be solved. Thanks for sharing some thoughts.

 Cheers

 Heinrich

I don't have an immediate answer to your problem, but I can tell you
that if you're running Trac 0.11.x you really shouldn't have that
webadmin.* = enabled in your [components] section.

--~--~-~--~~~---~--~~
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: selectively show descriptions in ticket queries

2009-04-15 Thread Erik Bray

On Tue, Apr 14, 2009 at 6:02 PM, jevans jevans...@gmail.com wrote:

 Hi,

 The bugbase we're moving from had a split window in report views with
 one part showing the long description of the selected ticket.  And of
 course moving to Trac we miss that.

 Trac's query module has a check box to include the description for
 each ticket.  And happily, it doesn't seem to take much longer to
 perform a query with this option.  Of course if many tickets have long
 descriptions with steps to repeat, the list can be quite long.

 My question
 I see the filters and columns can be hidden or shown without reloading
 the page.  Could something similar be done for individual tickets when
 the description option is checked?  Perhaps with a master toggle to
 show/hide all?

 Thanks,
 jevans

This could easily be done as a plugin.  On the other hand, it doesn't
sound to me like too bad an idea for a core feature.  It would only
require a few lines maybe in query.js...

--~--~-~--~~~---~--~~
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 to hide the attachment files....

2009-04-09 Thread Erik Bray

On Thu, Apr 2, 2009 at 4:43 AM, Duc Do Minh duc.dominhd...@gmail.com wrote:

 Could you please show me how to hide the attachment files, how to make
 a link tree on the same page, something like a folder tree, how to
 change the color of linked text, because normally  on Trac page the
 linked text is red and where is all code to format the text on a page
 and in the table?

 Thank you very much!
 Best regards

Whoa, slow down there.  You just asked four questions in one sentence.
 Let me break this up a bit for you:

1. You would like to hide attachments.  By this I assume you'd like
to make the attachments list on wiki pages and tickets collapsible.
This would have to be done as a plugin.  I'm sure this has been asked
before, and it's possible that there are even existing
implementations.

2. You would like something like a folder tree [of links].  What
links?  Where?  Do you mean attachments?  Attachments don't have a
directory structure, so it would be meaningless.  For something like
that you might just want to use version control.

3. You would like to change the color of links (and presumably other
things too).  See
http://trac.edgewall.org/wiki/TracInterfaceCustomization.

4. You've asked for the location of the code to format the text on a
page and in the table.  This is so vague that I think I'll just have
to point you to http://trac.edgewall.org/browser/trunk as your answer.

--~--~-~--~~~---~--~~
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: Dynamic pull-down population

2009-04-09 Thread Erik Bray

On Thu, Apr 9, 2009 at 8:26 AM, Jeff Hammel jham...@openplans.org wrote:

 I hope to write an interface, IComputedFieldProvider (or similar), soon which 
 will fake computed fields with an ITemplateStreamFilter.  A better solution 
 would be to patch Trac core to do this.  But yeah, its a common problem and 
 its annoying to do.  See (e.g.) the TracHoursPlugin for an example of this 
 (field: totalhours).

How would something like this work with queries/reports?  That's the
main issue I haven't been able to resolve in trying to develop this
sort of functionality.  The simple answer would be to store the
computed value of the field in Trac's DB, but how would it know when
to update the value?

--~--~-~--~~~---~--~~
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: Trac plugin contract development

2009-03-30 Thread Erik Bray

On Mon, Mar 30, 2009 at 10:37 AM, Chris Nelson chr...@sixnetio.com wrote:

 yoheeb wrote:
 I am not sure where this thread is headed, but I sure hope trac-hacks
 doesn't become a trac specific rent-a-coder site.

 As a matter of fact, this seems like something that is perfect for
 rent-a-coder, or on of the dozen similar sites.  They already have
 the bidding structure in place (configurable, open bid, closed bids,
 etc.) the milestone and payment methods.  They handle the payment
 processing, etc.  Then each party can work out all the little details
 on their own.

 that's my nickel anyway.

 A link at Trac-Hacks or Edgewall that said, You may be able to sponsor
 some Trac development at link to rent-a-coder or something would be
 perfect for me.  It would steer people looking for Trac development to a
 specific site where, one hoped, Trac developers would therefore hang
 out.  I don't want to post my requests on 3-4 sites.

I suppose to add to that there could be a link somewhere prominent on
trac-hacks with a note encouraging Trac plugin developers who might be
willing to write plugins for a bounty to sign up at rent-a-coder.

--~--~-~--~~~---~--~~
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: Whitespaces in Trac 0.11.3

2009-03-28 Thread Erik Bray

On Wed, Mar 25, 2009 at 11:17 AM, worms worm...@gmail.com wrote:

 Hello,

 I have installed Trac for the first time and am starting to get my
 project setup in it and I have a question about whitespace.

 Whenever is tried to set up a component, milestone, ticket type, etc.
 with a space in the name I get an error like this when I then try to
 click on the new component for example:

 Component asdf%20asdf does not exist.

 This occurs when click on the component in the list of components.

 I've searched the FAQ, this group and looked through some of the trac
 tickets.

 Can white space be used in the names of these items?

 Thanks,
 --lance

In short, yes, you should be able to use spaces.  Why it's not working
for you I'm not sure though :/  What browser are you using?  How do
you have Trac configured?

--~--~-~--~~~---~--~~
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: Customise Ticket View

2009-03-28 Thread Erik Bray

On Fri, Mar 27, 2009 at 8:07 AM, Olemis Lang ole...@gmail.com wrote:

 On Fri, Mar 27, 2009 at 5:45 AM, RobinP robin.pell...@gmail.com wrote:

 Hi Folks,

 is there an easy way to change the ticket view so that the comments
 are separated out from the change history.  If there are only a few
 comments they tend to get buried by all the tickets status changes, so
 I'd prefer to have just comments shown directly underneath the ticket
 description, then the rest of the change history lower down.
 So far I didn't find a plugin to help me do this, but maybe there is
 one...


 Perhaps this is the case where modifying the built-in template is the
 only choice ... I wish I was wrong anyway ... ;)

I'd have to take a closer look to be sure, but it seems like something
that could likely be accomplished through an ITemplateStreamFilter
plugin.

--~--~-~--~~~---~--~~
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: Trouble configuring authentication for new install

2009-03-18 Thread Erik Bray

On Sun, Mar 15, 2009 at 4:23 PM, Fitter Man b...@jhu.edu wrote:
 I have just installed Trac, but I'm having trouble getting the authorization
 configured. Immediately after clicking on the Login link, the error message
 Authentication information not available. is displayed.

 I am running under Apache with FCGI. tracd isn't an option because of the
 shared hosting environment I'm running in, but if it will help to use it for
 diagnosing this problem, I can start it at the command line. I am running
 Python 2.4.4, Trac 0.11.1, TracAccountManager 0.2.1dev-r5273. (Yeah, maybe
 that is too bleeding edge.)

 I only want to use SessionStore authentication. Here are two relevant
 sections of the trac.ini file.

 [account-manager]
 account_changes_notify_addresses =
 authentication_url =
 force_passwd_change = true
 generated_password_length = 8
 hash_method = HtDigestHashMethod
 htdigest_realm =
 notify_actions = []
 password_file =
 /home/myusername/trac_projects/trac_builder/trac_builder.passwd
 password_format = htpasswd
 password_store =
 SessionStore,HtDigestStore,HtPasswdStore,HttpAuthStore,SvnServePasswordStore

   ... lines omitted...

 [components]
 acct_mgr.* = enabled
 acct_mgr.admin.accountmanageradminpage = enabled
 acct_mgr.api.accountmanager = enabled
 acct_mgr.htfile.abstractpasswordfilestore = enabled
 acct_mgr.htfile.htdigeststore = disabled
 acct_mgr.htfile.htpasswdstore = disabled
 acct_mgr.http.httpauthstore = disabled
 acct_mgr.notification.accountchangelistener = enabled
 acct_mgr.notification.accountchangenotificationadminpanel = enabled
 acct_mgr.pwhash.htdigesthashmethod = enabled
 acct_mgr.pwhash.htpasswdhashmethod = enabled
 acct_mgr.svnserve.svnservepasswordstore = disabled
 acct_mgr.web_ui.accountmodule = enabled
 acct_mgr.web_ui.emailverificationmodule = enabled
 acct_mgr.web_ui.loginmodule = enabled
 acct_mgr.web_ui.registrationmodule = enabled
 trac.web.auth.loginmodule = enabled
 webadmin.* = enabled

 Other attempts included (1) setting the following parameters (diff from
 above and in the correct section)

 password_store = SessionStore
 acct_mgr.pwhash.htdigesthashmethod = enabled
 acct_mgr.pwhash.htpasswdhashmethod = disabled

 and (2) trying it with the two hash method values switched (i.e. htdigest =
 disabled, htpasswd = enabled). I have also tried setting all the options in
 the acct_mgr to enabled, but it didn't change the behavior. The server is
 up, if I let anonymous users have TRAC_ADMIN I can see and set all these
 parameters from the admin section of the site, but I'm stumped as to how to
 get this to work. I am 100% certain I have overlooked something painfully
 obvious or there is some version magic I am hoping someone out there will
 spot for me.

You're all over the place with that configuration.  You're mixing
settings for different authentication backends that have nothing to do
with each other.  Just throw out any settings you have related to the
account manager plugin and reread this:
http://trac-hacks.org/wiki/AccountManagerPlugin#HtPasswdStore

--~--~-~--~~~---~--~~
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: AuthzSVNAccessFile problem for trac

2009-03-18 Thread Erik Bray

On Sun, Mar 15, 2009 at 10:21 PM, Billy Zhu billy_...@infosys.com wrote:
 Hi Erik,

 Thanks for your reply.
 But before I sent my request, I have viewed all of trac wiki.
 I still do not find the answer.
 And I have configured trac.ini.
 The following is relevant trac section configuration.

 I think the problem is not here.
 I do not know which ones roles which is relevant to trac , can be set in my 
 AuthzSVNAccessFile.
 At present, I customize some roles to take effect in svn path.
 But it is not to take effect in trac path.
 This is the point.

 Thanks advance And Best Regards!
 Billy

 [trac]
 authz_file = D:/Repositories/trac-users.conf

Is D:/repositories/trac-users.conf an SVN authz file?

--~--~-~--~~~---~--~~
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: Trac installation and configuration woes

2009-03-16 Thread Erik Bray

On Sun, Mar 15, 2009 at 12:59 AM, jan gestre plugger.l...@gmail.com wrote:


 On Sun, Mar 15, 2009 at 4:53 AM, Bruno Matos bruno.ma...@gmail.com wrote:

 plugger.l...@gmail.com wrote:
  Hi Guys,
 
  I've been trying to install Trac for weeks already on my Fedora 10
  box, tried every install possible as described in the documentation
  pages as well and now that I've finally installed it via source file,
  another problem came up. I've ran trac-admin projectname initenv and
  was able to see the page but the login page does not work. There's a
  warning on the main page that says Warning: Can't synchronize with
  the repository (/svn/repos does not appear to be a Subversion
  repository.).
 Is this your svn folder for the project?
 Go to the initenv dir, there is a conf subdir inside and edit the
 trac.ini file to see if all configuration is OK.

 Look in the Trac log for more information., I already
  ran out of ideas. FYI I've a subversion server working on this box and
  just want to add trac for bug tracking and project management facility
  but I can't make it work.

 Hi Bruno,
 I already resolved this issue on my own, made a mistake during initenv. My
 problem now is logout button is not working.
 Jan

If you're using HTTP authentication it can't work.

--~--~-~--~~~---~--~~
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: Code blocks in bullet points

2009-03-13 Thread Erik Bray

On Wed, Mar 11, 2009 at 5:54 PM, Robert Dailey rcdai...@gmail.com wrote:

 On Mar 11, 9:56 am, Erik Bray hyugaricd...@gmail.com wrote:
 Put the curly braces at the beginning of the line, like this:

 = Header =
 * Bullet Point One. Code Example:
 {{{
 Some Code Sample

 }}}

 It should automatically indent to inside the bullet point.

 Thank you! This worked great. This is a bit unrelated, but is there a
 way to provide a header text above the code sample? For example, I
 want the word 'Example: to show up right above the top line of the
 code snippet box.

= Header =
* Bullet Point One.[[BR]]Code Example:
{{{
Some Code Sample

}}}

--~--~-~--~~~---~--~~
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: AuthzSVNAccessFile problem for trac

2009-03-13 Thread Erik Bray

On Fri, Mar 13, 2009 at 12:32 AM, Billy Zhu billy_...@infosys.com wrote:
 Hi all,



 Svn1.5.5 + apache 2.2.11 + trac0.11



 I configure my AuthzSVNAccessFile in svn.

 The configuration is successful to take effect in svn.



 And I try to make relevant configuration in trac.



 When a authorized user log on trac and click on “Browse Source” menu.



 He still can view all folder and files of my svn repository.



 And it is failed to take effect in trac.



 The following is configuration items in httpd.conf:

 ==

 Location /projects/semi

 DAV svn

 SVNPath D:/Repositories/svn/semi

 SVNListParentPath on

 AuthType Basic

 AuthName Subversion Repository

 AuthUserFile D:/Repositories/project-users.db

 AuthzSVNAccessFile D:/Repositories/svn-users.conf

 Require valid-user

 /Location



 Location /trac/semi

 SetHandler mod_python

 PythonInterpreter main_interpreter

 PythonHandler trac.web.modpython_frontend

 PythonOption TracEnv D:/Repositories/trac/semi

 PythonOption TracUriRoot /trac/semi

 SVNPath D:/Repositories/svn/semi

 AuthzSVNAccessFile D:/Repositories/svn-users.conf

 /Location



 location /trac/semi/login

 AuthType Basic

 AuthName Infosys

 AuthUserFile D:/Repositories/project-users.db

 AuthzSVNAccessFile D:/Repositories/svn-users.conf

 Require valid-user

 /location



 LocationMatch /trac/[^/]+/login

 AuthType Basic

 AuthName Infosys

 AuthUserFile D:/Repositories/project-users.db

 AuthzSVNAccessFile D:/Repositories/svn-users.conf

 Require valid-user

 /LocationMatch

 =



 How to limit a authorized user to browser part of sources on trac?



 Thanks in advance!

 Billy

Set the path to your authz file in your trac.ini.  Check the TracIni
wiki page in Trac's docs to find the exact section/option.

--~--~-~--~~~---~--~~
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: permission denied: fastcgi: apr_dir_open() failed

2009-03-11 Thread Erik Bray

On Tue, Mar 10, 2009 at 1:02 AM, Liam Elbourne liamelbou...@gmail.com wrote:
 Hi All,
 I've been having a lot of trouble getting trac running on Fedora 8 (on a
 intel core 2 quad cpu server). After a fairly painless installation on
 macosx (leopard), I needed to get trac running on my Fedora linux server. To
 cut a long story short tracd can serve the project, but when trying to view
 it with apache at https://localhost/trac; I get (for the base directory,
 where I've set TRAC_ENV_PARENT_DIR as /usr/local/trac; I've installed Trac
 10.5):
 ***
 Available Projects

 * ProjectName: Error
  (the user apache requires read_and_write permissions to the database file
 /usr/local/trac/Project/db/trac.db and the directory it is located in.)
 ***
 And when I go to https://localhost/trac/ProjectName; I see:

 ***
 Internal Server Error
 500 Internal Server Error (the user apache requires read_and_write
 permissions to the database file /usr/local/trac/Project/db/trac.db and the
 directory it is located in.)
 TracGuide etc etc
 etc etc
 *
 which is clearly a trac page. As I said, these are fine when served with
 tracd (ie tracd -p 8000 -e /usr/local/trac).

 All of the relevant directories were initially chowned and chmoded for
 apache, and subsequently as part of troubleshooting were chmoded to 777
 (chmod -R 777 /usr/local/trac), with no change in the situation.
 The output from the Apache error_log has the following after the usual start
 up messages :
 ***
 error] (13)Permission denied: FastCGI: apr_dir_open() failed
 [notice]..
 [notice].
 [error] (13)Permission denied: FastCGI: apr_dir_open() failed
 [notice] FastCGI: process manager initialized (pid n)
 [notice] Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8b SVN/1.4.4
 mod_fastcgi/2.4.6 configured - resuming normal operations
 
 which suggests that fastcgi is failing to open a directory - tried LogLevel
 debug to get more detail here but to no avail. The only discussion I could
 find on this problem related to the location of the python egg cache so I
 set that explicitly (SetEnv PYTHON_EGG_CACHE /tmp/eggs) and gave
 /tmp/eggs appropriate ownership and permissions, which made no difference
 to the error message from apache or trac. The mod_fastcgi dev list responded
 that maybe a directory was missing in answer to a query about the
 error_log message. As I said above, it would be nice to know what
 apr_dir_open() is actually failing on, but I don't know if that is what is
 causing the trac problem, although it seems likely the two are connected.
 Any suggestions would be greatly appreciated. As I said, I have Trac running
 on my MBP under Leopard, being served by apache 2, with SVN as the source
 repository (which I did as a test, to see if it would be suitable for use,
 which it certainly is, obviously having it running on my laptop is not going
 to very useful to anyone but myself...), so I'm a bit stumped by the
 difficulty I've had getting it going on a linux box. The only major
 difference I can see between the two installations is that the Mac had
 mod_fastcgi 2.4.2, whereas the current version is 2.4.6, which is what I
 installed on the Fedora box, is 2.4.6. I tried to install 2.4.2 but there
 doesn't seem to be a copy available anymore. I should mention that SVN is
 running fine, and can be accessed via https.
 Regards,
 Liam Elbourne.

I'm not sure what exactly would cause something like this--I've never
seen anything like it before, and I'm not versed in issues with
running Apache in OSX.  But it would probably be helpful to post your
Apache config.  Also, have you tried using a different frontend such
as mod_python or mod_wsgi?

--~--~-~--~~~---~--~~
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: Code blocks in bullet points

2009-03-11 Thread Erik Bray

On Tue, Mar 10, 2009 at 6:05 PM, Robert Dailey rcdai...@gmail.com wrote:

 Hi,

 I'm trying to create a code sample under a bullet point entry. For
 example:

 = Header =
 * Bullet Point One. Code Example:
  {{{
  Some Code Sample
  }}}

 However, the code sample above is not indented to the same place as
 the text applied to that bullet point. How can I made the code sample
 block show up right under the bullet point text with proper alignment?

Put the curly braces at the beginning of the line, like this:

= Header =
* Bullet Point One. Code Example:
{{{
Some Code Sample
}}}

It should automatically indent to inside the bullet point.

--~--~-~--~~~---~--~~
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: Trac and php 5.2.8

2009-02-26 Thread Erik Bray

On Thu, Feb 26, 2009 at 9:30 AM, Oliver Marshall
oliver.marsh...@g2support.com wrote:
 Hi chaps,



 Before we upgrade our php install to 5.2.8 from 5.2.5 I thought I would ask
 whether there are any known issues with Trac should we upgrade to 5.2.8.



 Anything to be aware of ?

The only extent to which Trac cares about PHP is the use of PHP's
syntax highlighter, the output of which probably hasn't changed,
though you could check on that.

Regardless, Pygments includes PHP support, and will generally be
preferred over the other PHP renderer IIRC.  So if you have Pygments
installed your PHP version is moot.

--~--~-~--~~~---~--~~
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: query questions

2009-02-26 Thread Erik Bray

On Thu, Feb 26, 2009 at 3:38 PM, Christian Unger
christian.un...@mac.com wrote:

 I'd like to know which tickets I modified in timeframe.

 I'd like to know which tickets have not been modified in timeframe or since.

 who can shed some light here?

SELECT * FROM ticket WHERE min time = changetime = max time;

I believe this capability has also been added to the custom query
module in trunk.  In the meantime an SQL report is necessary.

--~--~-~--~~~---~--~~
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: Install TestCaseManagementPlugin failed

2009-02-24 Thread Erik Bray

On Tue, Feb 24, 2009 at 5:22 AM, Billy Zhu billy_...@infosys.com wrote:
 Hi all,



 I am trying to install “testmanagementplugin0.4.0” into
 TSVN(Trac0.11+SVN1.5.5+Apache2.2.11).



 I followed the section “Configuration steps required” to setup the plugin,
 which is mentioned by https://trac-hacks.org/wiki/TestCaseManagementPlugin



 The following error happened when I finished above steps and log on my trac
 server.



 ===

 Traceback (most recent call last):

   File C:\Python25\Lib\site-packages\trac\web\api.py, line 339, in
 send_error

     'text/html')

   File C:\Python25\Lib\site-packages\trac\web\chrome.py, line 683, in
 render_template

     template = self.load_template(filename, method=method)

   File C:\Python25\Lib\site-packages\trac\web\chrome.py, line 659, in
 load_template

     self.templates = TemplateLoader(self.get_all_templates_dirs(),

   File C:\Python25\Lib\site-packages\trac\web\chrome.py, line 406, in
 get_all_templates_dirs

     dirs += provider.get_templates_dirs()

   File build\bdist.win32\egg\testManagementPlugin\testManager.py, line
 116, in get_templates_dirs

     return [resource_filename(__name__, 'templates')]

   File C:\Python25\Lib\site-packages\pkg_resources.py, line 841, in
 resource_filename

     self, resource_name

   File C:\Python25\Lib\site-packages\pkg_resources.py, line 1311, in
 get_resource_filename

     return self._extract_resource(manager, zip_path)

   File C:\Python25\Lib\site-packages\pkg_resources.py, line 1322, in
 _extract_resource

     zip_stat = self.zipinfo[zip_path]

 KeyError: 'testManagementPlugin\\templates'

You should reinstall the plugin.  However you installed it before, the
templates/ directory wasn't included in the installation (in
particular, it sounds like you installed a .egg file that for some
reason was missing this directory).  Probably your best bet is to use
easy_install with the the path to the trunk of this plugin's SVN
repository.

--~--~-~--~~~---~--~~
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: problem editing trac.ini and httpd.conf

2009-02-20 Thread Erik Bray

On Thu, Feb 19, 2009 at 5:07 AM, eri x ermalt...@gmail.com wrote:
 Hi,when i edit manually trac.ini or httpd.conf  then when i try to login in
 trac trac says no admin panel available ore something like this,

That would happen if you're not logged in.  Also, editing httpd.conf
shouldn't have any effect until you restart Apache.

 fortunately i made a backup of both files and copying these files trac
 recognize them
 but if i try to copy their content in the files used by trac trac doesn't
 recognize them, i have a sospect the gedit that i use insert some charater
 in the files and then they are non recognized by trac, if this is the
 problem can you suggest me an editor that doesn't modify the file header.

Possibly, but I'd be surprised.  I usually use vim, but sometimes I
use gedit and don't have any problem with it.

 2)trac sometimes recognize the changes after i have made them,sometimes i
 should restart the computer so that trac can recognize them

Some changes will require a restart, some won't.  Regardless, you
don't need to reboot your entire computer.  Just restart the web
server.

--~--~-~--~~~---~--~~
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: problem with form authentication

2009-02-20 Thread Erik Bray

On Thu, Feb 19, 2009 at 10:43 AM, eri x ermalt...@gmail.com wrote:


  I am trying to access http://localhost/trac/tesi/admin

 [account-manager]
 authentication_url = http://hostname/path
 force_passwd_change = false
 htdigest_realm = /home/svntest01/TRAC/authz
 password_file = /home/svntest01/TRAC/trac.htpasswd
 password_store = HtPasswdStore

 I have not configured other things other than components in trac.ini and
 apache configuration.

These settings don't even make sense.  If you're trying to use
HtPasswdStore, authentication_url and htdigest_realm aren't needed
(and your setting for htdigest_realm wouldn't make sense even if it
were needed--tt has nothing to do with authz).  Also make sure you
have acct_mgr.htfile.HtPasswdStore = enabled under [components].  I'd
suggest carefully rereading everything under
http://trac-hacks.org/wiki/AccountManagerPlugin#HtPasswdStore

--~--~-~--~~~---~--~~
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: logout problem

2009-02-18 Thread Erik Bray

On Mon, Feb 16, 2009 at 11:05 AM, eri x ermalt...@gmail.com wrote:
 Hi, i istalled Account manager plugin but i have 2 problems.
 1)I changed the httpd.conf and trac.ini to avoid apache login and to use
 track login but apache continue to did the login and i don't know what to do
 in trac.ini i put in components this  trac.web.auth.LoginModule=disabled
 and in apache i have this config
 Location /trac/tesi
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracLocale it_IT.UTF-8
PythonOption TracEnv /home/svntest01/TRAC/tesi
PythonOption TracUriRoot /trac/tesi
#AuthType Basic
#AuthName Tesi
#AuthUserFile /home/svntest01/TRAC/trac.htpasswd
#Require valid-user
 /Location
 2)i can't do dhe logout from the track menu, when i click on the tab nothing
 happens

Do you have AccountManager otherwise set up correctly?  Does the
form-based login work?  Did you remember to set
acct_mgr.web_ui.LoginModule = enabled?

--~--~-~--~~~---~--~~
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: user registration for SVN Trac using LDAP

2009-02-18 Thread Erik Bray

On Tue, Feb 17, 2009 at 9:43 AM, Jeff Hammel jham...@openplans.org wrote:
 +1 on this.  While auth is complex in trac, I'd rather have configurability 
 and malleability than tailoring towards perceived common use cases.

 Jeff

Though I still argue that the AccountManager plugin, or at least parts
of it (including form-based login and user registration) should come
with Trac and should be the default configuration.

Most users seem to want to be able to just install Trac and have it
handle user registration, like they're used to with other web
applications, such as bulletin board software.

It always seems like 90% of the support questions on trac-users are
related to setting up authentication and user management.  Now of
course there are lots of users who have more advanced use cases, but
there's no reason Trac wouldn't be able to maintain its existing
flexibility for those cases.  But I'm getting off topic so I'll stop
there...

--~--~-~--~~~---~--~~
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: pre-revprop-change problem

2009-02-18 Thread Erik Bray

On Wed, Feb 18, 2009 at 11:14 AM,  alberto.giord...@gefran.com wrote:

 Hi all,
 maybe this is a silly question.
 I'm trying to use the pre-revprop-change hook in svn to limit the
 modification of the commit message only to a single user.
 My pre-revprop-change file is as follows:

 #!/bin/sh
 #
 REPOS=$1
 REV=$2
 USER=$3
 PROPNAME=$4
 ACTION=$5

 #
 # Allow to the user MyUser to change the revision properties, e.g: change
 the commit message
 #
 if [ $USER = MyUser ]; then exit 0; fi
 echo Only the MyUser user can change revprops 2
 exit 1

 The owner of the file isApache and the right are 0755. The user I log into
 SmartSVN (the SVN client I use) is MyUser. But when I try to change the
 commit message I got the following ?

 Any idea ?

 TIA

 Alberto Giordano

You should probably ask in the SVN users group--this has nothing
directly to do with Trac.

--~--~-~--~~~---~--~~
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: logout problem

2009-02-18 Thread Erik Bray

On Wed, Feb 18, 2009 at 11:36 AM, Yunior Armando Hernandez Andrade
yahernan...@estudiantes.uci.cu wrote:
 I got this same problem in trac but without any plug-in , don't know why when 
 I set the authentication to be tested when accessing trac's location then I 
 could't logout. I solved by moving the authentication part to the location of 
 the login page in trac and all solved.

You couldn't log out because HTTP authentication has no notion of
logging out.  You can search this mailing list for the dozens of other
posts on that topic.

--~--~-~--~~~---~--~~
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: user registration for SVN Trac using LDAP

2009-02-18 Thread Erik Bray

On Wed, Feb 18, 2009 at 11:48 AM, Olemis Lang ole...@gmail.com wrote:

 On Wed, Feb 18, 2009 at 2:07 PM, Erik Bray hyugaricd...@gmail.com wrote:
 or at least parts
 of it (including form-based login and user registration) should come
 with Trac

 +1

 and should be the default configuration.


 +0.5 ... this depends on «strategic decisions» ...

 - default to form based auth if you want to ease the task to specific
 users not familiar with HTTP auth mechanisms ...

 - default to HTTP auth if you want to be consistent with standards
 (... are there stds for form-based auth ? ...) and RFCs ... and be
 backwards compatible, and allow seamless integration with of other
 services built on top of Trac (e.g. XML-RPC ;) ...

You have a point there, and this argument has been brought up before.
With AccountManager-like functionality built into Trac, it would also
make sense to ask authentication-related questions as part of
trac-admin initenv.  As for XML-RPC and the like, that's where the
HttpAuth plugin is incredibly useful.

--~--~-~--~~~---~--~~
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: Trac Upgrade problems...

2009-02-13 Thread Erik Bray

On Fri, Feb 13, 2009 at 10:22 AM, Gem gemma.came...@gmail.com wrote:

 Hi all,

 My svn admin guy upgraded trac from 0.10.3 to 0.11 yeasterday and I am
 having no end of issues:

 1. my svn hooks no longer work. I have disabled these for now to allow
 commits
 2. trac-admin trac env resync does not work to pick up the latest
 changes in the history. Logs which reference a ticket are not added to
 the ticket history.
 3. my trac-admin version is still 0.10.3:
  trac-admin - The Trac Administration Console 0.10.3

 4. when I try to do the upgrade I get the following:
 trac-admin trac env upgrade
 Command failed: Database newer than Trac version


 Now unfortunately the svn admin guy has gone home for the day... He
 also doesn't know too much about trac (he hadn't heard of it up until
 a day before he did the upgrade).

 Would you guys be able to help me or at least point me in the right
 direction? I'm more bothered about my trac-admin being out of date
 than my svn hooks. Since I turned them off people can commit ok and
 they are a secondary issue which I can post later if rectifying the
 other issues doesn't help with them!

 Thanks in advance,

 Gem

It sounds like they didn't fully remove the previous Trac
installation, and you have a little of both.  As for the
post-commit-hook, there's a new version of that in the Trac 0.11
source code under the /contrib directory that needs to be installed.

--~--~-~--~~~---~--~~
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: Trac Upgrade problems...

2009-02-13 Thread Erik Bray

On Fri, Feb 13, 2009 at 12:24 PM, Gem gemma.came...@gmail.com wrote:

 On 13 Feb, 15:49, Erik Bray hyugaricd...@gmail.com wrote:
 It sounds like they didn't fully remove the previous Trac
 installation, and you have a little of both.  As for the
 post-commit-hook, there's a new version of that in the Trac 0.11
 source code under the /contrib directory that needs to be installed.

 Thanks for that, I'd already spotted the post-commit hook. ( :

 Can you suggest a way forward? Would it be removing trac and starting
 again?

That might be the best approach.  Can't say much more without knowing
exactly how your system was set up in the first place, or how the
upgrade was done.

--~--~-~--~~~---~--~~
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: Question about how to use the Workflow api from a external script, eg email2trac

2009-02-11 Thread Erik Bray

On Wed, Feb 11, 2009 at 3:50 AM, Noah Kantrowitz n...@coderanger.net wrote:


 On Feb 11, 2009, at 12:38 AM, Bas van der Vlies wrote:


 I have tried to post it to the trac-dev list without any luck the
 last 2
 days. That is why i am posting this question to this list.

 I want to implement the Workflow mechanism in email2trac, eg when i
 ticket is closed and the reporter sends another email. it will reopen
 the ticket and clears the resolution. For some sites this is not
 appropriate and they asked me if i could implement the Workflow
 mechanism.  So i looked at the api and tried to implement it, but am
 failing because i have not a valid 'req' variable. I have looked at
 the sources but i think  it is set by the fcgi or mod_python.

 {{{
 controller = ConfigurableTicketWorkflow(self.env)
 print controller.actions['reopen']
 b = controller.get_ticket_changes(req, tkt, 'reopen')
 }}}

 It is failing in get_ticket_changes because it checks if we have the
 right permisiions but this will fail in the req.perm(resource)
 statement

 There doesn't seem to be an API for this that I can find. Functions
 should be added either in the model or TicketSystem to handle all the
 workflow logic. It seems pretty mated to the web UI right now.

I've been meaning to bring that up actually, since we recently had to
write some scripts to mass-update some tickets and that had to make
sure to follow workflow logic.  I understand that some actions in the
default workflow depend on request arguments and such, so it's not
completely trivial to refactor.  But it definitely be incorporated
somehow into the TicketSystem IMO.  Is there a ticket for this
already?  I can't seem to find it if there is.

--~--~-~--~~~---~--~~
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: Installing Trac - Choices

2009-02-10 Thread Erik Bray

On Tue, Feb 10, 2009 at 8:36 AM, ray ray.jos...@cdicorp.com wrote:

 I would like to learn how to install, use and maintain Trac.  I am an
 end user with little tech support.  I will need to provide the
 resources to support the installation.

 To get started, I have gone through the install info on the website.
 There are many choices.  It would be great to better understand the
 ramifications of each choice.  Additionally, a simplified
 architectural diagram would go a long way in helping me understand how
 it all fits together and maybe I could better understand the
 implications of the choices that must be made.

 The only sure things I have at the moment are:
 1) A need to Trac(k).
 2) Users have Windows boxes.
 3) The server (for now) will be on a Windows XP Professional box.
 4) Apache and SVN (and TSVN client) are currently being tested for
 document management.

 I would very much appreciate a link to a simplified architectural
 diagram and to any resources that would help me understand the
 installation choices.  Additionally, the installation docs address
 Python 2.5 and I find 2.4.6, 2.5.3, 2.6.1 and 3.0; what are the
 concerns/considerations here?

I don't know any specifics because I don't use them, but there are a
few pre-packaged Trac installers out there for windows, as well as
various Trac appliance VMs.  Try Googling around and searching this
newsgroup.  Depending on how specialized your needs our I'd say that's
the way to go for a lot of users starting out.

--~--~-~--~~~---~--~~
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: Error running Trac-admin

2009-02-10 Thread Erik Bray

On Tue, Feb 10, 2009 at 8:47 AM, Oliver Marshall
oliver.marsh...@g2support.com wrote:
 Hi chaps,



 I'm seeing the following error on a box running Trac-admin. One of the end
 users with enough techy know-how to cause damage, but not enough to know
 much of anything, SSH'd in to the box to update it and make it feel newer
 (seriously) and afterwards lots of things didn't work.



 The error I get when running trac-admin is;



 Traceback (most recent call last):

   File /usr/bin/trac-admin, line 21, in module

 from trac.scripts.admin import run

 ImportError: No module named scripts.admin

 Any ideas what the error relates to ? I've tried using aptitude to remove
 and reinstall trac but that hasn't worked (aptitude was used apparently to
 install it in the first place).

It sounds like they tried to upgrade Trac to a newer version, but it
wrong.  trac.scripts.admin no longer exists.  Rather, your
/usr/bin/trac-admin should look something like:

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Trac==0.11.2','console_scripts','trac-admin'
__requires__ = 'Trac==0.11.2'
import sys
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('Trac==0.11.2', 'console_scripts', 'trac-admin')()
)



I'm assuming here that you had a Trac 0.10.x version, and that it was
upgraded to Trac 0.11.2.  Hard to say much beyond that though without
more details.  (In the future I'd say don't give admin accounts to
users who don't know what they're doing.)

--~--~-~--~~~---~--~~
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: Interception of notification workflow

2009-02-05 Thread Erik Bray

On Wed, Feb 4, 2009 at 9:46 PM, Dave McCoy its...@gmail.com wrote:

 Thanks Erik.

 Should I write my code directly inside this api.py?

Definitely not.  That's the whole point of having interfaces ;)  You
can write a plugin with a component that implements that interface.
See http://trac.edgewall.org/wiki/TracDev/PluginDevelopment and
related pages for the basics.  You can also look at lots of existing
plugins to get the idea.  Though the best place to look is the Trac
source itself, since all the Trac components are based on the same
architecture.



 On Feb 5, 7:27 am, Erik Bray hyugaricd...@gmail.com wrote:
 On Wed, Feb 4, 2009 at 4:40 AM, Dave McCoy its...@gmail.com wrote:

  Hi, I would like to do some additional actions on top of email
  notification for every creation/update of the ticket? How can I
  intercept the workflow in this case? For example, I want to trigger a
  program (not necessary python code). Please guide me.

  TIA,
  Dave

 ITicketChangeListener:http://trac.edgewall.org/browser/trunk/trac/ticket/api.py#L112

--~--~-~--~~~---~--~~
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 there an easy way to get all changesets given a ticket in Python?

2009-02-05 Thread Erik Bray

On Thu, Feb 5, 2009 at 11:23 AM, Stodge sto...@gmail.com wrote:

 Let me clarify this. Currently when a commit occurs, my custom post-
 commit script adds the changeset number to a list in a custom field.
 I'm using a custom wiki processor to format a custom history when the
 ticket is viewed. However, a comment is added to the ticket when I
 modify the custom field, which I don't want. If I could get all
 changeset for a ticket, then I wouldn't need to update the custom
 field after a commit.

 Thanks

 On Feb 5, 11:09 am, Stodge sto...@gmail.com wrote:
 Is there an easy way to get all changesets given a ticket in Python? I
 want to change the post-commit hook so it doesn't add a comment when a
 changeset is created that references a ticket. Subsequently I want
 access to all changes for the ticket so I can generate some a custom
 history for the ticket.

 Thanks

Though I'm not exactly clear on what your end goal is for doing this,
might I suggest simply adding a database table mapping tickets to
changesets?  Then your post-commit script could instead just update
that table instead of a field in the ticket, and your wiki macro could
also display this history from that table.

--~--~-~--~~~---~--~~
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: Ticket_Clone Plug-in Error

2009-02-05 Thread Erik Bray

On Wed, Feb 4, 2009 at 4:40 PM, Benson bens...@gmail.com wrote:
 Hi,



 I installed the ticket_clone.py file in my
 C:\Python25\Lib\site-packages\ticket_clone.py directory, restarted Apache
 Server, and no ticket_clone.pyc file were created.  I proceeded to run the
 .py file from the IDLE and received the following error message:



 Traceback (most recent call last):

   File C:\Python25\Lib\site-packages\ticket_clone.py, line 5, in module

 from genshi.filters import Transformer

 ImportError: cannot import name Transformer



 I would appreciate any help.

 Thanks in advance,
 Alan

You need to update to the latest version of Genshi.

--~--~-~--~~~---~--~~
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: Trac 0.11.2.1, mod_wsgi, Basic Authentication - Authentication information not found

2009-02-05 Thread Erik Bray

On Thu, Feb 5, 2009 at 11:33 AM, Radha
srimanthula.radhakris...@gmail.com wrote:

 PLEASE DO NOT CLOSE THIS AS A DUPLICATE ISSUE. PLEASE HELP ME! ITS
 PROBABLY SOMETHING TOO SIMPLE, BUT STILL, I HAVEN'T BEEN ABLE TO TRACK
 IT DOWN, SO PLEASE BEAR WITH ME.

 I do understand there have been a lot of duplicates around this area,
 and I am sick and tired of browsing through the instructions time and
 again, looking through the issues again and again and haven't found a
 solution.

 Maybe, the instructions need to be re-written. I can definitely do
 that once I find some information on how to get it resolved.

 Here's my set up.

 Windows XP SP2, Apache 2.2.11, Trac 0.11.2.1, mod_wsgi, BASIC
 authentication.

 Folder layout: Root: D:/MyTrac TracProject: D:/MyTrac/TracProjects
 AccessLogs?: D:/MyTrac/TracLogs/AccessLogs ErrorLogs?: D:/MyTrac/
 TracLogs/ErrorLogs WSGIScripts: D:/MyTrac/TracWSGIScripts
 PasswordDigests?: D:/MyTrac/TracBasicAuth

 When I try to log into my trac installation, I get the most (in)famous
 error:

 Trac Error

 Authentication information not available. Please refer to the
 installation documentation.

 Please, please help me root out this problem. I've hit my head on this
 one for the last 4 days, with no result at all.

 My virtual server configuration and the .wsgi that I use are mentioned
 below.

 My Virtual Server configuration:
 VirtualHost *:80
ServerName  localhost
ServerAlias localhost
DocumentRoot D:/MyTrac/TracProjects
CustomLog D:/MyTrac/TracLogs/AccessLogs/MyTracAccessLog.log common
ErrorLog D:/MyTrac/TracLogs/ErrorLogs/MyTracErrorLog.log
#WSGIDaemonProcess localhost processes=2 threads=15 display-name=%
 {GROUP}
#WSGIProcessGroup localhost
Directory D:/MyTrac/TracProjects
Order allow,deny
Allow from all
/Directory
Directory D:/MyTrac/TracWSGIScripts
Order allow,deny
Allow from all
/Directory
Directory D:/MyTrac/TracBasicAuth
Order allow,deny
Allow from all
/Directory


# Link to list out all Trac Projects
WSGIScriptAlias /TracProjects D:/MyTrac/TracWSGIScripts/
 AllProjects.wsgi

# Settings for MySandbox
Location /TracProjects/Sandbox1
AuthType Basic
AuthName MySandboxAuth
AuthUserFile 
 D:\MyTrac\TracProjects\MySandbox\MySandbox.htpasswd
Require valid-user
/Location
WSGIScriptAlias /TracProjects/MySandbox D:/MyTrac/TracBasicAuth/
 MySandbox.wsgi
 /VirtualHost

 MySandbox.wsgi:
 import sys
 sys.stdout = sys.stderr
 import os
 os.environ['TRAC_ENV_PARENT_DIR'] = 'D:/MyTrac/TracProjects'
 os.environ['TRAC_ENV'] = 'D:/Trac/TracProjects/MySandbox'
 os.environ['PYTHON_EGG_CACHE'] = 'D:/MyTrac/TracEggCache/MySandbox'
 import trac.web.main
 application = trac.web.main.dispatch_request

 Regards,
 Radha.

Hi,
I have a lot of comments but not enough time, so I'll make it short
for now.  The first comment is that you need to be clear on whether
you're trying to host a single Trac environment, or multiple
environments.  You're mixing the methods for doing those, leading to a
lot of confusion.  You should only a need a single wsgi script.  So if
you're trying to do multiple projects, just have something like:

trac.wsgi
import sys
sys.stdout = sys.stderr
import os
os.environ['TRAC_ENV_PARENT_DIR'] = 'D:/MyTrac/TracProjects'
os.environ['PYTHON_EGG_CACHE'] = 'D:/MyTrac/TracEggCache'
import trac.web.main
application = trac.web.main.dispatch_request

And in the Apache config have:
WSGIScriptAlias /TracProjects /path/to/trac.wsgi

Get rid of that existing Location directive and instead put in
LocationMatch ^/TracProjects/[^/]+/login
/LocationMatch

Put all your authentication-configuration in there.  Honestly, the
first step I would take would be to wipe out what you already have and
start fresh

--~--~-~--~~~---~--~~
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: Weekly notification

2009-02-04 Thread Erik Bray

On Tue, Feb 3, 2009 at 4:32 PM, dreker davidre...@gmail.com wrote:

 Hi,

 I was wondering of there was an add-on or plugin where I could send a
 notification at the end of the week to all employees notifying them
 which tickets were not resolved. I saw your TracNotification page, but
 did not seem to resolve this question. Muchly appreciated.

 David

Not that I know of, but this could be accomplished with a simple
script.  If you wanted to you could run it as a cron job to do it
automatically at the end of the week.  I have something similar going.

--~--~-~--~~~---~--~~
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: Insert the ticket owner in the subject of notification

2009-02-04 Thread Erik Bray

On Wed, Feb 4, 2009 at 10:28 AM, Mihamina Rakotomandimby (R12y)
miham...@lab.vectoris.fr wrote:

 Flatfender wrote:
 I would like to add the ticket owner (at the time of notifying).
 What file should I hack in order to do so?
 Try adding $ticket.owner to the ticket_subject_template line in trac.ini

 I finally found:
 subject = self.ticket['owner']+' '+self.format_subj(summary)
 in trac/ticket/notification.py

 Then restart Apache
 The restart is mandatory...

Or you could just use flatfender's suggestion and use the
ticket_subject_template option.  This is exactly what it's for.  No
code modifications necessary.

--~--~-~--~~~---~--~~
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: Interception of notification workflow

2009-02-04 Thread Erik Bray

On Wed, Feb 4, 2009 at 4:40 AM, Dave McCoy its...@gmail.com wrote:

 Hi, I would like to do some additional actions on top of email
 notification for every creation/update of the ticket? How can I
 intercept the workflow in this case? For example, I want to trigger a
 program (not necessary python code). Please guide me.

 TIA,
 Dave

ITicketChangeListener:
http://trac.edgewall.org/browser/trunk/trac/ticket/api.py#L112

--~--~-~--~~~---~--~~
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: Multiple projects and permissions

2009-02-04 Thread Erik Bray

On Tue, Feb 3, 2009 at 5:58 PM, cambo_frog cambo_f...@yahoo.com wrote:

 Hi All,
 I am new to trac and svn, but have both setup and working OK with
 Apache.

 I have Apache setup on Windows XP to use multiple projects( trac
 environments) using the following in httpd.conf:

snip
 I can add a permission for a single project, e.g.
 trac-admin E:/trac-projects/trac-test permission add admin TRAC_ADMIN

 I cannot add permissions to the trac projects parent directory (E:/
 trac-projects).
 I guess that's because the parent directory doesn't contain a trac
 environment, but is there any way of adding permissions to all
 projects under TracEnvParentDir (E:/trac-projects) or do all
 permissions have to be set per project?

 Thanks in advance for your help.

How about for /D %p in (e:\trac-projects\*) do @trac-admin %p
permission add admin TRAC_ADMIN?

--~--~-~--~~~---~--~~
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: Trac backup port

2009-02-02 Thread Erik Bray

On Mon, Feb 2, 2009 at 11:42 AM, Emmanuel Blot manu.b...@gmail.com wrote:

 Considering that Trac has no built in backup capabilities I'm not sure
 exactly what you mean.

 trac-admin hotcopy over HTTP for example...

I do backups by performing trac-admin hotcopy and then rsyncing it to
the backup server.  You could tunnel an SSH connection over HTTP and
rsync through that.

--~--~-~--~~~---~--~~
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: install question re Apache

2009-02-02 Thread Erik Bray

On Sat, Jan 31, 2009 at 6:31 PM, woodcocs woodc...@hotmail.com wrote:

 I managed to install Trac and it seems to work.
 I've started the test server
 C:\svn-repos\sesametracd --port 8000 C:\svn-repos\sesame
 and then put the following in my browser
 http://127.0.0.1:8000/
 which caused the Trac page to display.

 I'm not sure what I need to put in Apache's httpd.conf

 A book and the wiki both referred to trac.cgi,  but that file doesn't
 seem to be used in the latst release.

 Any advice?

Don't use CGI for one.  The perferred methods of running Trac in
Apache are mod_wsgi, mod_python, or fcgi.  mod_wsgi seems to be the
most recommended these days, though I still use mod_python (since I'm
already using it for other things).  All of these are documented in
the Trac installation docs.  Though depending on your needs, tracd may
work fine for you as well.

--~--~-~--~~~---~--~~
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: TracAccountManger Plugin, TracUserManager plugin, ldap auth and form based logins

2009-02-02 Thread Erik Bray

On Mon, Feb 2, 2009 at 1:58 PM, Flatfender flatfen...@gmail.com wrote:

 Hi all,

 We're running trac 0.11, we we're doing http auth via ldap to our AD
 server, all that worked fine.  But we now have some shared
 workstations and want to make sure when someone logs out, that they
 http auth doesn't get in the way if they don't close their browser.  I
 wanted to implement the form based login. Is this possible with http
 auth. the Trac account manager page shows how to configure it for http
 auth, but right now it's not validating users.  It lets any
 combination of username/password in.  Before I posted my configs I
 wanted to see if this was even possible.

If you poke around trac-hacks.org and Google, people have written LDAP
passwordstore implementations for use with AccountManager.  Should
also work for HTTP auth, since in that case the login form just passes
authentication on to the web server, so if you're having trouble
getting that working it's a problem with your configuration.

--~--~-~--~~~---~--~~
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: Needed Accountmanager Plugin URL

2009-02-02 Thread Erik Bray

On Mon, Feb 2, 2009 at 9:09 AM, karthik karthikeyanr2...@gmail.com wrote:

 hI,

 Can u  give me the URL or SVN Link to download the
 Accountmanagerplugin for TRAC 0.11.1

 As i tried to download accountmanagerplugin with easy_install it gives
 the following error

 easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
 407:Proxy Authentication Required Error

 Rgds,
 Karthikeyan

Nothing wrong with that URL.  You are behind a web proxy.  You could
try it with http_proxy=http://username:passw...@host:port easy_install
url

Or otherwise, ask your local sysadmin for help.

--~--~-~--~~~---~--~~
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: Trac backup port

2009-02-02 Thread Erik Bray

On Sat, Jan 31, 2009 at 5:28 AM, vinay vinay...@gmail.com wrote:

 Is it possible to trac backup to a machine which has only port 80
 open ? Any workarounds or suggestions ?

 -vinay

Considering that Trac has no built in backup capabilities I'm not sure
exactly what you mean.  Use any sort of backup solution that can work
over HTTP.

--~--~-~--~~~---~--~~
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: Trac tutorial

2009-01-29 Thread Erik Bray

On Thu, Jan 29, 2009 at 8:28 AM, Olemis Lang ole...@gmail.com wrote:

 On Thu, Jan 29, 2009 at 3:38 AM, Noah Kantrowitz n...@coderanger.net wrote:

 As I mentioned in the Pycon thread, I am indeed teaching a tutorial
 this year at PyCon on Trac plugins. PyCon registration is now open so
 if you are interested go sign up! It is a 3 hour class with direct
 hands-on training from yours truly. See https://us.pycon.org/2009/ for
 more information about the conference and https://us.pycon.org/2009/register/
  to register. Hope to see lots of you there!


 :) ... its very cool to see Trac represented in PyCon ...

 ... a question about this ... is there any option at hand so that some
 confs at PyCon be recorded, uploaded to a public site (e.g. Youtube )
 and shared  ... just like DjangoCon 2008 ?

 What about your specific talk ?

 .. [1] Playlist: DjangoCon 2008 Sessions
 (http://www.youtube.com/view_play_list?p=D415FAF806EC47A1)

 --
 Regards,

 Olemis.


Much of PyCon 2008 was recorded and put online.  Just search Google
Video.  I'm sure even more of an effort will be made to do so this
year.  I don't think the tutorial sessions are put online though, but
I could be wrong.

--~--~-~--~~~---~--~~
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: can not get up running subversion (source folder empty)

2009-01-26 Thread Erik Bray

On Fri, Jan 23, 2009 at 9:27 AM, miroslav_karpis
karpis_miros...@yahoo.com wrote:

 Hi All,

 I have just today installed Trac - I have followed the 'Trac-Windows
 installation instructions' (http://trac.edgewall.org/wiki/
 TracOnWindows) but:

 - I'm running Trac under Windows server 2003
 - I don't have installed Apache (do I need it?)
 Steps I did:
 1- I have installed TortoiseSVN (I hope that it's ok - that I didn't
 install subversion. Reason is that I don't have Apache)
 2- I have creader a directory and execudet SVN on top of it - SVN
 created file and folder structure (folders: conf, hooks, locks...etc).
 Folders like 'Branches' or 'Trunk' were not created
 3 - During creating the Trac project I have added that path to my new
 SVN
 4 - everything went well - no error message
 5 - When I logged in my Trac project and looked in to 'Browse
 Resource' - it is empty. Only I see is message 'No files found'

 Please, what am I doing wrong - what did I miss?

 Thanks...

SVN repositories are empty upon creation.  What were you expecting?
It doesn't enforce any particular structure within the repo.  You need
to check out a working copy of the repo and start adding to it.

--~--~-~--~~~---~--~~
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: HTML Entities in wik pages

2009-01-22 Thread Erik Bray

I think the main point is that it would be nice to be able to somehow
type in named HTML entities in a wiki page, and have them unescaped.
It's easier to type lte; than it is to configure an easy to use input
method for arbitrary symbols.  I'm not saying it's Trac's job to solve
that problem.  It's just something I've run into before myself.

On Tue, Jan 20, 2009 at 12:14 AM, Noah Kantrowitz n...@coderanger.net wrote:

 Not sure what you mean by that, but if it is a Unicode character just
 type it in using whatever input method you prefer. My point is that
 the wiki system handles HTML escaping for you. Assuming you do mean
 some = unicode glyph, it wouldn't need to be escaped anyway.

 --Noah

 On Jan 19, 2009, at 8:49 PM, Chris Nelson wrote:


 Noah Kantrowitz wrote:
 On Jan 19, 2009, at 4:52 PM, Chris Nelson wrote:
 Sorry if this is obvious -- it seems it should be but I didn't find
 the answer -- but how can I put HTML Entities like le; in a wiki
 page.  Perhaps I should ask a more general question, how can I put
 symbols like less-equals, etc. in wiki pages?

 Just put  in the wiki page ...

 That's lt;  I want less-than-or-equals

 


 


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



  1   2   3   >