[Trac] Re: Trac and SVN

2009-09-23 Thread RobinP

Trac also has a hotcopy command:  http://trac.edgewall.org/wiki/TracBackup


On 2 sep, 10:50, Cooke, Mark mark.co...@siemens.com wrote:
  Hello everyone

 Hello

  I am new to Trac and I have a basic question.
  I have Trac and SVN installed and run on linux. My question is how
  can I have the files related to Trac (such as tickets,wikipages and
  etc) be backed up by SVN automatically?

 I think the simple answer is you can't.  How have you got Trac
 configured?  A modern install of svn uses its own file system under a
 root directory.  This is completely separate from the Trac files that
 are stored in their own environment directories, backed up by a database
 (are you using PostgreSQL or SQLite?).

 I am running on windows and I have a scheduled batch file run
 automatically.  This in turn runs the svn hotbackup.py script on my
 various repositories.  Then it stops the tracd and postgresql services,
 zips the trees and saves them, then restarts postgresql and tracd (I'm
 not allowed to run apache atm).  I am sure you could set up something
 similar (and probably better) on linux...

 Unless of course someone else here knows better?  I'm only a recent
 admin, upgraded from user by my new company!

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



[Trac] Re: Finding broken wiki links

2009-06-25 Thread RobinP

Exactly, this is where I got to with the code snippet I posted
before.  It's surely not hard to do this because Trac does it already,
but doing it as a standalone app is another matter...

On Jun 24, 6:50 am, Ted Gifford tedford...@gmail.com wrote:
  what about a SQL query directly on the database?
  What would be the problem?

 Might be a bit harder to parse the wiki markup.

 Ted
--~--~-~--~~~---~--~~
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: Finding broken wiki links

2009-06-22 Thread RobinP

Nice idea Ted, and very close, but no banana - unfortunately wget
doesn't support NTLM authentication.  curl does support that but does
not do recursive downloading.  I tried a few open source link
checkers, but either they don't support NTLM (LinkChecker and
Webcheck) or don't give me fine grained enough control to prevent
generating 10s of 1000s of links to trawl through (Xenu).

So at the moment it's back to my original idea, which would be to get
each Wiki page from the DB (this is easy since I have physical access
to the DB), then render them to HTML, and finally check each link in
the rendered page.  This means I can easily limit it to just pages
from the wiki.

So could anyone throw me a quick bit of Trac code I could use to
render the pages once I have them from the DB?  It's only this middle
part I now have trouble with, it has to be Trac code but something
must exist to do this already.  I found
trac.wiki.formatter.format_to_html (sounds like the right thing) but
couldn't work out how to instantiate a resource for it.  I got this
far ...

wikidom = wiki_page_from_DB
env = trac.env.Environment(path = 'path to my trac env', create =
False)
resource = ''
context = trac.mimeview.api.Context(resource)
trac.wiki.formatter.format_to_html(env, context, wikidom)

Any help much appreciated folks...

--~--~-~--~~~---~--~~
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] Finding broken wiki links

2009-06-17 Thread RobinP

Hi Folks,

I've just moved some stuff around in my source code, and now some of
my Trac links are broken.  Is there any way of finding all broken
links so I can fix them?  Thx.
--~--~-~--~~~---~--~~
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: Roadmap 'show completed' default status

2009-04-16 Thread RobinP

DOH!  Hangs head

I *did* have the link set up with ?show=all at the end, in trac.ini.
Removing that solves the problem.  Thanks for the comments folks.

On Apr 15, 3:05 pm, jevans jevans...@gmail.com wrote:
 RobinP wrote:
  Hi Folks,

  on the roadmap page, is it possible to set the default value for the
  'Show already completed milestones' checkbox?  I mostly want this to
  be unticked as I normally want to focus on uncompleted work, but this
  is not the default. It's also annoying when I navigate away from the
  page and back again, and the checkbox is ticked again.

 You could save your own roadmap link with ?show=all at the end.
 - jevans
--~--~-~--~~~---~--~~
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] Roadmap 'show completed' default status

2009-04-15 Thread RobinP

Hi Folks,

on the roadmap page, is it possible to set the default value for the
'Show already completed milestones' checkbox?  I mostly want this to
be unticked as I normally want to focus on uncompleted work, but this
is not the default. It's also annoying when I navigate away from the
page and back again, and the checkbox is ticked again.
--~--~-~--~~~---~--~~
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] Customise Ticket View

2009-03-27 Thread RobinP

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

--~--~-~--~~~---~--~~
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 page needs refresh

2009-03-25 Thread RobinP

Thx for that, it seems to be working now and I'm not quite sure what I
did to fix it.  I think it was something to do with the fact that my
SSPI wasn't quite working properly, because that's the only thing I've
been fiddling with.

For the record, here's my new httpd.conf section (noticed I switched
off Basic athentication):

#=
# Trac Setup
#=
Location /trac
#
# Trac with mod_python
#
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir E:/TRAC_ENV
PythonOption TracUriRoot /trac

#
# Authentication
#

# use and enable SSPI authentication
AuthType SSPI
SSPIAuth On

# authentication realm
   AuthName Trac

# do not allow any other form of authentication for Trac
SSPIAuthoritative On

# only authenticate users in this domain
SSPIDomain PRODUCTION

# do not pass domain to Trac as part of login name
SSPIOmitDomain On

# do not allow basic authentication if SSPI fails
SSPIOfferBasic Off

# make username lowercase when passing to Trac
SSPIUsernameCase lower

# user must be authenticated
   Require valid-user
/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] Edit page needs refresh

2009-03-24 Thread RobinP

Hi Folks,

My problem is that whenever I perform some sort of edit, the page
needs to be refreshed before I see the effect.

E.g.
 delete a milestone - I still see the milestone when I get back to the
roadmap page, but it disappears on refresh
 add a comment to a ticket - I don't see the comment until I refresh
the page

Editing the Wiki seems to work fine.

I am running Trac 0.11.4rc1/Apache/sqlite/Windows
Auth is with SSPI from Windows domain, in httpd.conf I have

Location /trac
# Trac with mod_python
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir E:/TRAC_ENV
PythonOption TracUriRoot /trac

# Authentication
AuthType SSPI
AuthName Trac
SSPIAuth On
SSPIAuthoritative Off
SSPIDomain my domain
SSPIOmitDomain On
SSPIOfferBasic On
SSPIBasicPreferred On
SSPIUsernameCase lower
Require valid-user
/Location

My user has TRAC_ADMIN permissions.

Any help much appreciated...

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