Re: [th-users] TagsPlugin and quoting (ab)use
On Sat, Sep 24, 2011 at 11:32 PM, Steffen Hoffmann hoff...@web.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear fellow developers, as I've been spending some time with the TagsPlugin source lately, I've been stumbling over the rather strange habit of quoting that it does. It is not required in the TagsQuery input field, but is getting there, i.e. if you follow tags links that look like `http://localhost:8000/sandbox/tags/%27Test%27` Despite of the handler for '/tags' there is no such thing like a Trac resource 'tags'. This is making all sorts of things more complicated. Consider URL construction with the Href class from trac.web.href, if you'd like to append some query attributes. It seems impossible right now. Anyone able to explain the history and reasons behind this situation? Would dropping the quoting in favor of something like `http://localhost:8000/sandbox/tags/Test?realms=wikiformat=table` do any harm? This looks great for specific tags, but the query syntax supports richer queries, e.g: `http://localhost:8000/sandbox/tags?q=tags1+-tag2realms=wikiformat=table`http://localhost:8000/sandbox/tags/Test?realms=wikiformat=table` Nonetheless, the example I have just specified has no need for quoting, so I'm still not sure why the quoting exists, and see no good reason to stick with it. I'd like to rather fix this than hack around it to resolve other, even related issues. Advise? Suggestions? Thoughts? Sincerely. Steffen Hoffmann (hasienda) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5+PlcACgkQ31DJeiZFuHdMLQCgl4RADroNzR1oRljB89SmdBFD 4PkAoL8w5f/SFnnen4YBCYJv2HE95mzX =GrHM -END PGP SIGNATURE- ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
[th-users] [Trac] Graphviz plugin Format not recognized problem
Hi, I was using Trac Graphviz Plugin on the old Windows Server 2003 / Py-2.5 / Trac-0.11 successfully. Now I tried setting it up on the new Windows 2008 / Py-2.6 / Trac-0.12 server, and I am unsuccessful. Graphviz 2.22.2 is installed, and works fine when invoked from command line (dot -Tpng -Gdpi=96 -oout.png in.dot). I installed TracGaphvizPlugin-0.7.5, and when I use the macro like: {{{ #!graphviz digraph ... (hello-world sample) }}} I get the following error-message-div: Graphviz macro processor has detected an error. Please fix the problem before continuing. The command: C:\...\dot.exe -Tpng -od:\..\gvcache\hash.dot.png -Gdpi=96 failed with the following output: 'Format: png not recognized. Use one of:\r\n' I added debug prints to the macro expansion to track the flow and arguments, which seemed fine. Then I executed the same flow from the Python Interactive Interpreter (encoding arguments, invoking subprocess, writing the content to stdin, waiting on the process) and did not reproduce the issue.. The manual retracing worked fine and produced the png. Any idea what went wrong? Thanks, - Itamar O. ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] Greetings and a question
On Fri, Sep 10, 2010 at 7:34 AM, Michael Renzmann mrenzm...@otaku42.dewrote: Hi. I was trying to set up something similar on my own server, but I was unable to configure my Apache to do this right. If Trac is served on location /, then requests to /svn/ go to Trac, and not to mod_dav_svn... The trick here is that order matters. The following is the basic stuff of what works on t-h.o: === cut === WSGIScriptAlias / /path/to/trac-0.10/cgi-bin/trac.wsgi Directory /path/to/trac-0.10/cgi-bin WSGIApplicationGroup%{GLOBAL} WSGIProcessGrouptrac-hacks-010 Order deny,allow Allow from all /Directory # Stuff that should be served directly by Apache, not by Trac Alias /robots.txt /path/to/trac/htdocs/robots.txt Alias /favicon.ico/path/to/trac/htdocs/favicon.ico Alias /chrome/common /path/to/trac/htdocs/common Alias /chrome/site/path/to/trac/htdocs/site Alias /errorpages /path/to/trac/htdocs/errorpages Alias /raw-attachment /path/to/trac/htdocs/attachments/ # use mod_rewrite to let Apache handle 0.10-style requests for # raw attachments RewriteEngine On RewriteCond %{QUERY_STRING} ^format=raw$ RewriteRule ^/attachment/(.*) /var/trac/trachacks010/attachments/$1 [L] # Subversion repository Location /svn DAV svn SVNPath /path/to/svn # our access control policy AuthzSVNAccessFile /path/to/authzfile # try anonymous access first, resort to real # authentication if necessary. Satisfy any Require valid-user # how to authenticate a user AuthTypeBasic AuthNameTrac Hacks AuthUserFile/path/to/htpasswdfile /Location # Trac login Location /login AuthTypeBasic AuthNameTrac Hacks AuthUserFile/path/to/htpasswdfile Require valid-user /Location === cut === Things should work similar for Trac 0.12. Hope this helps. Bye, Mike Great, it works! Thanks Mike. By the way, why is th.org still running on 0.10? Itamar. ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users
Re: [th-users] Greetings and a question
On Sat, Sep 18, 2010 at 4:19 PM, Andrew Steinborn tuxlover...@gmail.comwrote: On 9/18/2010 10:11 AM, Itamar O wrote: [snip] Great, it works! Thanks Mike. By the way, why is th.org still running on 0.10? Itamar. ___ th-users mailing listth-us...@lists.trac-hacks.orghttps://lists.trac-hacks.org/mailman/listinfo/th-users Many reasons. For one, we have custom hacks that we need to port :) Sounds reasonable :-) Is there an upgrade plan somewhere, specifying what hacks needs porting, and other tasks? I'm asking in order to see whether I can assist in the process. - Itamar. ___ th-users mailing list th-users@lists.trac-hacks.org https://lists.trac-hacks.org/mailman/listinfo/th-users