Re: [Trac-dev] Trac functional testing

2016-05-27 Thread Olemis Lang
On 5/27/16, figaro wrote: > [...] > > 1- Where do the test cases originate from? Is it only the cases where the > developer has cared to add unit tests to his/her patch? Patches , new features , API changes , ... in theory every new functionality deserves a (few)

[Trac-dev] Status of GenericTrac + MultiProject

2016-03-30 Thread Olemis Lang
I was reading GenericTrac [1]_ and MultiProject [2]_ design docs and I could not find information about a few aspects , notably the APIs to instantiate data access objects , projects resources , etc ... Is there any other web page that (I'm missing / you can recommend me)? Thanks in advance !

Re: [Trac-dev] Re: Python3 question

2016-03-15 Thread Olemis Lang
On 3/15/16, RjOllos wrote: > On Monday, March 14, 2016 at 12:28:32 PM UTC-7, anton wrote: > [...] > > What is your reason for wanting to run on Python 3.5? > [...] I do not know about neither the OP intentions nor the roadmap and goals for Trac Python 3 support but if I was

Re: [Trac-dev] Re: Migrating to Jinja2

2016-02-26 Thread Olemis Lang
On 2/26/16, RjOllos wrote: > On Friday, February 26, 2016 at 2:18:15 PM UTC-8, Dirk Stöcker wrote: >> On Tue, 23 Feb 2016, Christian Boos wrote: > [...] > > Usually plugins are developed to solve a certain problem, not to rewrite >> the same code again and again when someone

Re: [Trac-dev] Re: prereleases for Trac 1.2?

2015-10-01 Thread Olemis Lang
On 9/29/15, RjOllos wrote: > On Tuesday, September 29, 2015 at 10:48:11 AM UTC-7, Tim Graham wrote: >> >> I was wondering if there are any plans to make prereleases (e.g. >> alpha/beta/release candidate) available on PyPI for the Trac 1.2 release >> so >> it can be more easily

Re: [Trac-dev] Writing a new Trac JSON-RPC frontend in JS - framework recommendations?

2015-05-27 Thread Olemis Lang
On 5/26/15, Leho Kraav l...@kraav.com wrote: On 27.05.2015 02:12, Simon Cross wrote: Sounds like an awesome idea, but I would just use a RESTful HTTP API that returns JSON and not JSON-RPC (which I've personally found to be rather clunky). But Trac doesn't have such a thing built in, does

Re: [Trac-dev] Writing a new Trac JSON-RPC frontend in JS - framework recommendations?

2015-05-26 Thread Olemis Lang
Hi Leho ! On 5/26/15, Leho Kraav l...@kraav.com wrote: I'm thinking of experimenting a bit. Trac's UI implementation as it is, is just too slow compared to instant messengers, so that's people defer to. It needs to respond quick and update dynamically. Writing new backend code from scratch is

Re: Licensing and joining procedure WAS: [Trac-dev] Re: trac-hacks organization on GitHub

2015-02-24 Thread Olemis Lang
On 2/22/15, Ryan Ollos rjol...@gmail.com wrote: On Sat, Feb 21, 2015 at 7:21 PM, Olemis Lang ole...@gmail.com wrote: [...] 2. how to join the organization @ Github ? IOW - Only repositories join the organization ? - Will plugin authors join the organization as well ? How ? Plugin

Re: trac-hacks organization on Bitbucket WAS: [Trac-dev] trac-hacks organization on GitHub

2015-02-21 Thread Olemis Lang
On 2/21/15, RjOllos rjol...@gmail.com wrote: On Thursday, February 19, 2015 at 8:27:47 PM UTC-8, Olemis Lang wrote: On 2/19/15, RjOllos rjo...@gmail.com javascript: wrote: I previously raised this topic in (1), but it quickly diverged into other unrelated topics so I've created a new

trac-hacks organization on Bitbucket WAS: [Trac-dev] trac-hacks organization on GitHub

2015-02-19 Thread Olemis Lang
On 2/19/15, RjOllos rjol...@gmail.com wrote: I previously raised this topic in (1), but it quickly diverged into other unrelated topics so I've created a new thread. Posts on Google groups are free, so you can create your own thread if you'd like to talk about something else ;) done ... ;)

Re: [Trac-dev] TracGitServe plugin

2014-12-07 Thread Olemis Lang
On 12/7/14, osimons oddsim...@gmail.com wrote: Hi devs, Hi ! :) With reference to the recent discussions about git, trac and git, git performance, features and more, I've decided that perhaps now is a good time to release a new plugin: TracGitServe plugin right time indeed ! :) [...]

Re: Git performance in Trac (was: [Trac-dev] trac-hacks group on GitHub)

2014-12-05 Thread Olemis Lang
On Fri, Dec 5, 2014 at 10:25 AM, W. Martin Borgert deba...@debian.org wrote: Quoting Ryan Ollos rjol...@gmail.com: [...] It's true that there are a lot of issues that can be improved with Trac, but it should be clear from the number of Git-related issues fixed in 1.0.2 and the

Re: [Trac-dev] trac-hacks group on GitHub

2014-12-04 Thread Olemis Lang
On 12/4/14, W. Martin Borgert deba...@debian.org wrote: Quoting Peter Suter petsu...@gmail.com: On 03.12.2014 16:40, Christopher Nelson wrote: On 2014-06-22 12:12, Olemis Lang wrote: I'm not very fond of git at all , TBH . It does not integrate well with Trac , OT: This is a major problem

Re: [Trac-dev] trac-hacks group on GitHub

2014-06-23 Thread Olemis Lang
On Mon, Jun 23, 2014 at 7:54 AM, Saint Germain saint...@gmail.com wrote: On 22 June 2014 19:16, Olemis Lang ole...@gmail.com wrote: On 6/22/14, Olemis Lang ole...@gmail.com wrote: On 6/22/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: [...] since few days before PyCon 2014

Re: [Trac-dev] trac-hacks group on GitHub

2014-06-23 Thread Olemis Lang
On Mon, Jun 23, 2014 at 10:12 AM, Olemis Lang ole...@gmail.com wrote: Hi ! I've had a look (I wanted to contribute a plugin which integrates Trac/Bloodhound with Piwik) but it seems that there are a lot of dead links in : http://blood-hound.net/products If you talk about : Missing

Re: [Trac-dev] trac-hacks group on GitHub

2014-06-22 Thread Olemis Lang
On 6/22/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: Many users have chosen to host their plugins on GitHub, with a stub page on trac-hacks that points to the GitHub project. The idea of creating a trac-hacks organization on GitHub (0) came to mind again when discussing with a

Re: [Trac-dev] trac-hacks group on GitHub

2014-06-22 Thread Olemis Lang
Sorry , missing link https://bitbucket.org/trac-hacks for further details please read below On 6/22/14, Olemis Lang ole...@gmail.com wrote: On 6/22/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: Many users have chosen to host their plugins on GitHub, with a stub page on trac

Re: [Trac-dev] Queuing a ticket change listener

2014-04-29 Thread Olemis Lang
On 4/28/14, Steffen Hoffmann hoff...@web.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28.04.2014 15:30, Christopher Nelson wrote: I know I can't guarantee the order of ticket change listeners but if I have one that depends on another, is there some way that I can requeue the

Re: [Trac-dev] Queuing a ticket change listener

2014-04-28 Thread Olemis Lang
On 4/28/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: I know I can't guarantee the order of ticket change listeners in theory , no ... in practice yes , you can ... but if I have one that depends on another, is there some way that I can requeue the current listener if it detects

Re: [Trac-dev] Queuing a ticket change listener

2014-04-28 Thread Olemis Lang
On 4/28/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: On Mon, Apr 28, 2014 at 8:43 PM, Olemis Lang ole...@gmail.com wrote: On 4/28/14, Christopher Nelson chris.nelson.1...@gmail.com wrote: I know I can't guarantee the order of ticket change listeners ... entry points in general

[Trac-dev] Running the functional test suite on Mac OS X

2014-04-15 Thread Olemis Lang
Hi ! :) I recently bought a Mac Book Pro laptop which I am using right now to test trac , more exactly running the functional test suite . I'm getting the following error . {{{#!sh File /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py,

[Trac-dev] Re: Running the functional test suite on Mac OS X

2014-04-15 Thread Olemis Lang
On Tue, Apr 15, 2014 at 3:55 PM, Olemis Lang ole...@gmail.com wrote: Hi ! :) I recently bought a Mac Book Pro laptop which I am using right now to test trac , more exactly running the functional test suite . I'm getting the following error . {{{#!sh [...] OSError: [Errno 13

[Trac-dev] Intercept trac server execution using pdb during functional tests

2014-04-15 Thread Olemis Lang
I want trac standlaone to enter debug mode when a failure is detected (in the server) while running the functional test suite . initially I tried to do this {{{#!sh $ python -m pdb trac/tests/functional/__init__.py }}} That obviously did not work as expected because the debugger entered debug

Re: [Trac-dev] Defect in commit_updater permission checks when using ignore_auth_case

2014-02-15 Thread Olemis Lang
I'll take a look to try to identify what might be wrong with it . in #11440 some test cases have been proposed for commit_updater component . Those should be included in forthcoming Trac=1.0.2 , so I guess a few more testing this scenario might be worth the effort as well . Thanks for reporting

Re: [Trac-dev] Debugger for Trac

2014-02-11 Thread Olemis Lang
On Tue, Feb 11, 2014 at 5:51 AM, Franz f.ma...@web.de wrote: [...] thanks for the hint. Using only one thread works fine for all sources inside of Trac Core. But when I try to debug plugin code with PyDev[1] it calls the interface, but not the plugin code. For example: I currently extend

Re: [Trac-dev] Submitting ThemeEnginePlugin .pot to Transifex

2014-02-05 Thread Olemis Lang
On Wed, Feb 5, 2014 at 3:24 PM, Saint Germain saint...@gmail.com wrote: On Wed, 5 Feb 2014 14:50:06 -0500, Olemis Lang ole...@gmail.com wrote : I have started to translate ThemeEnginePlugin . The .pot file has been generated but I do not know how to create a resource for it in Transifex

[Trac-dev] Re: [Trac] Trac Sprint at Pycon North America 2014

2014-02-03 Thread Olemis Lang
On Mon, Feb 3, 2014 at 2:58 PM, Olemis Lang ole...@gmail.com wrote: On Sun, Feb 2, 2014 at 5:03 AM, RjOllos rjol...@gmail.com wrote: We previously (1) discussed having a Trac sprint at PyCon in Montreal. There's finally a 2014 page for the sprints (2), but information is still to be added

[Trac-dev] i18n code is fragile

2014-01-08 Thread Olemis Lang
I'm reviewing and improving the translations of a plugin . I have to say that the code is quite fragile . Briefly , this is what I have : - ${x} in a Genshi template - x = _('string1') in code - x = 'string2' In all cases the i18n domain is the same . In some instances x is already

Re: [Trac-dev] how to detect if req.authname is in a certain user group?

2013-12-17 Thread Olemis Lang
On Dec 17, 2013 11:03 AM, Patrick Schaaf tracha...@bof.de wrote: 2013/12/17 Brettschneider Falk fbrettschnei...@baumer.com how can I programmatically find out in my plugin sources if the current user (e.g. req.authname==”ringo”) is member of the group “beatles”? Run a trac DB query select

Re: [Trac-dev] Trac 0.12.6 / 1.0.2 / 1.1.2

2013-12-16 Thread Olemis Lang
On Sun, Dec 15, 2013 at 4:30 AM, Christian Boos christian.b...@free.frwrote: [...] The ideal model I had in mind for working with Transifex hasn't happened (beyond french and japanese), and that model was to have a language maintainer being both the Transifex team coordinator and the Trac

Re: [Trac-dev] Bug if attachment contains a newline character in attachment.py

2013-11-25 Thread Olemis Lang
On Fri, Nov 22, 2013 at 8:18 PM, RjOllos rjol...@gmail.com wrote: On Friday, November 22, 2013 9:48:37 AM UTC-8, Olemis Lang wrote: On Thu, Nov 21, 2013 at 5:42 PM, RjOllos rjo...@gmail.com wrote: On Thursday, November 21, 2013 5:53:21 AM UTC-8, Chris Nelson wrote: [...] My

Re: [Trac-dev] Bug if attachment contains a newline character in attachment.py

2013-11-25 Thread Olemis Lang
On Mon, Nov 25, 2013 at 10:54 AM, RjOllos rjol...@gmail.com wrote: On Monday, November 25, 2013 7:39:17 AM UTC-8, Olemis Lang wrote: On Fri, Nov 22, 2013 at 8:18 PM, RjOllos rjo...@gmail.com wrote: On Friday, November 22, 2013 9:48:37 AM UTC-8, Olemis Lang wrote: On Thu, Nov 21, 2013

Re: [Trac-dev] Bug if attachment contains a newline character in attachment.py

2013-11-25 Thread Olemis Lang
On Mon, Nov 25, 2013 at 11:47 AM, Jun Omae jun6...@gmail.com wrote: [...] 1. Do not allow uploading such attachments at all 2. Allow uploads and support new line chars in attachments web UI 3. Keep things as they are now i.e. allow uploads and still fail to match attachment web UI

Re: [Trac-dev] Bug if attachment contains a newline character in attachment.py

2013-11-22 Thread Olemis Lang
On Thu, Nov 21, 2013 at 5:42 PM, RjOllos rjol...@gmail.com wrote: On Thursday, November 21, 2013 5:53:21 AM UTC-8, Chris Nelson wrote: [...] My personal feeling is to discourage such an insane filename (report it in a warning?) in the first place. Neither have I encountered such a

Re: [Trac-dev] TypeError: decoding Unicode is not supported

2013-11-14 Thread Olemis Lang
On Thu, Nov 14, 2013 at 9:15 AM, Matheus Santana matheussantanalimaufs...@gmail.com wrote: Hi guys, :) sorry if this maybe is not a TRAC issue as stated by jomae and should not be closed without further investigation, but since I have changed the code my issue is solved:

Re: How to invalidate database manager pool (LRU) cache ? WAS: [Trac-dev] Setting up Trac database with trac-admin

2013-10-17 Thread Olemis Lang
On 10/16/13, Olemis Lang ole...@gmail.com wrote: [...] I attribute this to the fact that the DB connection is still bound to the previous DB (= is that possible ?) which already contains default values ; if so what's the recommended approach to invalidate the DatabaseManager pool ? Shutdown

Re: [Trac-dev] Setting up Trac database with trac-admin

2013-10-17 Thread Olemis Lang
On 10/16/13, Olemis Lang ole...@gmail.com wrote: On 10/16/13, Ethan Jucovy ethan.juc...@gmail.com wrote: On Wed, Oct 16, 2013 at 12:34 AM, Olemis Lang ole...@gmail.com wrote: On 10/15/13, Saint Germain saint...@gmail.com wrote: Sorry to have been unclear. I do not wish to migrate from

Re: How to invalidate database manager pool (LRU) cache ? WAS: [Trac-dev] Setting up Trac database with trac-admin

2013-10-17 Thread Olemis Lang
On 10/17/13, Ethan Jucovy ethan.juc...@gmail.com wrote: On Thu, Oct 17, 2013 at 4:51 PM, Olemis Lang ole...@gmail.com wrote: On 10/16/13, Olemis Lang ole...@gmail.com wrote: [...] I attribute this to the fact that the DB connection is still bound to the previous DB (= is that possible

Re: How to invalidate database manager pool (LRU) cache ? WAS: [Trac-dev] Setting up Trac database with trac-admin

2013-10-17 Thread Olemis Lang
On 10/17/13, Olemis Lang ole...@gmail.com wrote: On 10/17/13, Ethan Jucovy ethan.juc...@gmail.com wrote: On Thu, Oct 17, 2013 at 4:51 PM, Olemis Lang ole...@gmail.com wrote: [...] I started looking into this code today. Not sure how much it matters in tests, but I believe you want

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-16 Thread Olemis Lang
On 10/16/13, Ethan Jucovy ethan.juc...@gmail.com wrote: On Tue, Oct 15, 2013 at 11:44 PM, Drew Carey Buglione drewcbugli...@gmail.com wrote: My reason for desiring to do things this way is simple: I'm running Trac on Heroku, where there is a convention of keeping all private or

Re: [Trac-dev] Setting up Trac database with trac-admin

2013-10-16 Thread Olemis Lang
On 10/16/13, Ethan Jucovy ethan.juc...@gmail.com wrote: On Wed, Oct 16, 2013 at 12:34 AM, Olemis Lang ole...@gmail.com wrote: On 10/15/13, Saint Germain saint...@gmail.com wrote: Sorry to have been unclear. I do not wish to migrate from SQLite to PostgreSQL, I just want to wipe the SQLite

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-16 Thread Olemis Lang
On 10/16/13, Ethan Jucovy ethan.juc...@gmail.com wrote: There's definitely no well supported way to do this, and a plugin wouldn't really be the right approach for the reason Olemis mentioned (chicken/egg). Considering that there's a real use case for this , question is : is it a good

How to invalidate database manager pool (LRU) cache ? WAS: [Trac-dev] Setting up Trac database with trac-admin

2013-10-16 Thread Olemis Lang
On 10/16/13, Olemis Lang ole...@gmail.com wrote: On 10/16/13, Ethan Jucovy ethan.juc...@gmail.com wrote: [...] I will transform this into a component and submit a patch to #11333 ... [...] I've thought about packaging it into a plugin's trac-admin command or submitting a core patch, but I

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-16 Thread Olemis Lang
On 10/16/13, Drew Carey Buglione drewcbugli...@gmail.com wrote: [...] A couple of other (probably minor) things that can be changed TTW and therefore might reset unexpectedly would be the project name, url, default timezone and language, and logging configuration. The other thing that

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-15 Thread Olemis Lang
On 10/15/13, Drew Carey Buglione drewcbugli...@gmail.com wrote: Hello, all! :) I'm attempting to create what I believe should be a very simple Trac plugin. All I want to do is set the database string from an environmental variable. I've been playing around with this for a bit now, and I

Re: [Trac-dev] Setting up Trac database with trac-admin

2013-10-15 Thread Olemis Lang
On 10/15/13, Saint Germain saint...@gmail.com wrote: Hello, :) I've started a draft project with SQLite and I would like now to continue with Postgresql. Is is possible to create a Trac database with trac-admin without creating a complete new environment ? I understand your requirements

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-15 Thread Olemis Lang
On 10/15/13, Saint Germain saint...@gmail.com wrote: On Tue, 15 Oct 2013 17:07:13 -0500, Olemis Lang ole...@gmail.com wrote : I'm attempting to create what I believe should be a very simple Trac plugin. All I want to do is set the database string from an environmental variable. I've

Re: [Trac-dev] Setting database string from environmental variable?

2013-10-15 Thread Olemis Lang
On 10/15/13, Drew Carey Buglione drewcbugli...@gmail.com wrote: Noah, I appreciate the reply; that is a solution I had considered. However, it feels like such a kludgy solution. Is there really no Trac-sanctioned way to write a plugin that will do what I'm asking? It seems to me that this

Re: [Trac-dev] Setting up Trac database with trac-admin

2013-10-15 Thread Olemis Lang
On 10/15/13, Saint Germain saint...@gmail.com wrote: On Tue, 15 Oct 2013 18:30:09 -0500, Olemis Lang ole...@gmail.com wrote : I've started a draft project with SQLite and I would like now to continue with Postgresql. Is is possible to create a Trac database with trac-admin without

Re: [Trac-dev] SimpleMultiProject plugin installation

2013-10-11 Thread Olemis Lang
On Fri, Oct 11, 2013 at 2:21 AM, Brettschneider Falk fbrettschnei...@baumer.com wrote: Hi, Apache(tm) Bloodhound implements full support for multiple projects , in the sense that new (product) environments are implemented inside the (now global) environment , thus sharing a single DB .

Re: [Trac-dev] SimpleMultiProject plugin installation

2013-10-10 Thread Olemis Lang
This message might be a bit OT in the sense that it's mostly about Bloodhound , but related in the sense that it's about multi-product . I'm sending it to the list in spite of clarifying what's the current (and expected) state of MP support in Bloodhound , which might be helpful to the OP . On

[Trac-dev] [ClientForm] Test infrastucture crashes on submitting unicode values

2013-08-13 Thread Olemis Lang
Hi! :) I'm writing some tests requiring unicode values in URLs and also uploaded via form submits. In the later case I'm getting the following (client-side) error message {{{#!py Traceback (most recent call last): [...] File /path/to/trac/trac/tests/functional/better_twill.py, line 169, in

Re: [Trac-dev] Genshi issue considered as spam

2013-07-16 Thread Olemis Lang
On 7/15/13, Jonas Borgström jo...@borgstrom.se wrote: On 07/10/2013 07:09 AM, Olemis Lang wrote: Hi ! I'm trying to create this issue against Genshi issue tracker *snip* I always receive «Submission rejected as potential spam» , so I give up . After some investigation it turns out

[Trac-dev] Re: Genshi issue considered as spam

2013-07-10 Thread Olemis Lang
On 7/10/13, Olemis Lang ole...@gmail.com wrote: Hi ! I'm trying to create this issue against Genshi issue tracker [...] I always receive «Submission rejected as potential spam» , so I give up . Indeed , it seems to be worst than I thought : there's no way I can create any issue for Genshi

[Trac-dev] Genshi issue considered as spam

2013-07-09 Thread Olemis Lang
Hi ! I'm trying to create this issue against Genshi issue tracker = Type: defectPriority:blocker Milestone: 0.7 Component: XPath support Version: devel Keywords: xpath, qualified names, attribute axis Consider the following script {{{#!py

[Trac-dev] Functional tests of admin panels

2013-05-27 Thread Olemis Lang
Hi! :) I've been rewriting Trac functional testing infrastructure (mostly test environments) so as to run the test suite against other component managers (namely product environments [1]_) . The fact is that some tests are failing in there (while still running them against global Trac

Re: [Trac-dev] Trac l10n not available after setup.py develop

2013-05-09 Thread Olemis Lang
On 5/8/13, Remy Blank remy.bl...@pobox.com wrote: Olemis Lang wrote: Well actually it does not quite fit into my original message . easy_install will setup.py install Trac et al. and my question is about achieving the same result with Trac package in editable state (i.e. setup.py develop

Re: [Trac-dev] Trac l10n not available after setup.py develop

2013-05-08 Thread Olemis Lang
On 5/8/13, Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote: Steffen Hoffmann writes: On 07.05.2013 20:40, Olemis Lang wrote: After installing Trac with setup.py develop translations are not available . Nevertheless I noticed that there are some l10n distribute commands at hand ... Sure you

Re: [Trac-dev] Trac l10n not available after setup.py develop

2013-05-08 Thread Olemis Lang
On 5/8/13, Olemis Lang ole...@gmail.com wrote: On 5/8/13, Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote: Steffen Hoffmann writes: [...] [1] http://babel.edgewall.org/ [2] http://trac.edgewall.org/ticket/9439#comment:19 Hope this helps, I'll take a look , thanks :) Well actually

[Trac-dev] Trac l10n not available after setup.py develop

2013-05-07 Thread Olemis Lang
After installing Trac with setup.py develop translations are not available . Nevertheless I noticed that there are some l10n distribute commands at hand ... {{{ #!sh $ /srv/venv/python/trac/trac-mq/bin/python setup.py --help-commands [...] Extra commands: update_catalog_traciniupdate

Re: [Trac-dev] Error building Trac API docs in PDF format

2013-05-04 Thread Olemis Lang
On 5/2/13, Christian Boos cb...@bct-technology.com wrote: On 5/2/2013 12:37 AM, Olemis Lang wrote: How could I generate API docs in PDF format . At present I noticed the following error . Is this possible at all ? Do I need to install something else ? ... Or is it that api apidoc-pdf make

[Trac-dev] Error building Trac API docs in PDF format

2013-05-01 Thread Olemis Lang
How could I generate API docs in PDF format . At present I noticed the following error . Is this possible at all ? Do I need to install something else ? ... Or is it that api apidoc-pdf make target is not working ? {{{ #!sh $ make apidoc-pdf It looks like you don't have a Makefile.cfg file yet.

[Trac-dev] Debugging functional tests using Eclipse PyDev

2013-04-25 Thread Olemis Lang
Hi ! I'm running the Trac XmlRpcPlugin test suite (i.e. functional tests) using Eclipse PyDev . I'm able to intercept execution by setting breakpoints in test code itself . Nevertheless they will not work neither in plugin code nor in Trac core because it's executed in another (tracd) process .

Internal errors @t.e.o WAS: [Trac-dev] Re: IResourceChangeListener listener interface

2013-04-22 Thread Olemis Lang
JFTR , while posting messages to trac:ticket:11148 I've received a substantial number of ''Internal Server Error'' responses . Perhaps something valuable is discovered in that instance if logging is turned on . -- Regards, Olemis. Apache™ Bloodhound contributor

Re: Internal errors @t.e.o WAS: [Trac-dev] Re: IResourceChangeListener listener interface

2013-04-22 Thread Olemis Lang
On 4/22/13, Christian Boos christian.b...@free.fr wrote: On 4/22/2013 7:20 PM, Olemis Lang wrote: JFTR , while posting messages to trac:ticket:11148 I've received a substantial number of ''Internal Server Error'' responses . Perhaps something valuable is discovered in that instance if logging

Re: [Trac-dev] Re: IResourceChangeListener listener interface

2013-04-16 Thread Olemis Lang
Thanks osimons and cboos for your replies . On 4/16/13, Christian Boos christian.b...@free.fr wrote: On 4/15/2013 12:09 PM, osimons wrote: [...] The commonly used 'fix' to improve documentation for generic calling is of course to have 'context' refer to some sort of data structure description

Re: [Trac-dev] IResourceChangeListener listener interface

2013-04-13 Thread Olemis Lang
On 4/12/13, Andrej Golcov and...@digiverse.si wrote: Like I said in a message sent to d...@bloodhound.apache.org (= citation missing) if I had to choose among an architecture that would have to be changed every time a new event type is needed and another more stable in time I'd rather choose

Re: [Trac-dev] IResourceChangeListener listener interface

2013-04-11 Thread Olemis Lang
On 4/10/13, Olemis Lang ole...@gmail.com wrote: [...] During some time I've noticed some things that have not been included in the patch and I'd also like to put under your consideration as well . I'll prepare a summary with references to previous discussions we've had in d

Re: [Trac-dev] IResourceChangeListener listener interface

2013-04-10 Thread Olemis Lang
On 4/10/13, Andrej Golcov and...@digiverse.si wrote: Yes, it's nice. The context however in the IResourceChangeListener can be confused with a RenderingContext which is often passed as context as well. Maybe changecontext? or changeinfo? Interesting that Olemis pointed out the same issue on

[Trac-dev] Re: [RFC] Improvements to resource API

2013-04-02 Thread Olemis Lang
On 3/31/13, Olemis Lang ole...@gmail.com wrote: Hi ! :) I'm trying to expand the scope of the resources hierarchy in Apache™ Bloodhound . [...] FYI . I've written a proposal about all this . Details may be seen here [1]_ So, after all this , my questions are : - What option would

[Trac-dev] [RFC] Improvements to resource API

2013-03-31 Thread Olemis Lang
Hi ! I'm trying to expand the scope of the resources hierarchy in Apache™ Bloodhound . For those not familiar with what's been done in there , in advance I'll mention that an environment can contain many products (i.e. projects) and for each one of them there will be a product environment [1]_

Re: [Trac-dev] how to query a local db from trac

2013-03-22 Thread Olemis Lang
On 3/22/13, comadreha comadr...@gmail.com wrote: Hi! :) I have a trac system that is connected to a local oracle db (for authorization purposes). More specifically, the connection with the local oracle db is achieved using a python plugin (it is a .py code inside the plugin folder). I

Re: [Trac-dev] Re: Trac internals' database simplification

2013-03-07 Thread Olemis Lang
On 3/6/13, Leho Kraav l...@kraav.com wrote: [...] On 05.03.2013 23:47, Olemis Lang wrote: I'd advocate using the second . Let's just choose the ORM ;) My spidey sense is telling me world doesn't really need yet another web framework. I think it would make (at least for business) sense

Re: [Trac-dev] Re: Trac internals' database simplification

2013-03-07 Thread Olemis Lang
On 3/6/13, Leho Kraav l...@kraav.com wrote: [...] On 05.03.2013 23:47, Olemis Lang wrote: I'd advocate using the second . Let's just choose the ORM ;) My spidey sense is telling me world doesn't really need yet another web framework. I think it would make (at least for business) sense

Re: [Trac-dev] Re: Trac internals' database simplification

2013-03-05 Thread Olemis Lang
On 3/5/13, Leho Kraav l...@kraav.com wrote: On Monday, March 4, 2013 3:20:28 PM UTC+2, Javier Domingo wrote: Hi, :) I am looking into trac's code, and I have found that there is no DAL. It has a very flexible database design, but it is not an efficient design for a database that will have

Re: [Trac-dev] Re: Trac internals' database simplification

2013-03-05 Thread Olemis Lang
On 3/5/13, Olemis Lang ole...@gmail.com wrote: On 3/5/13, Leho Kraav l...@kraav.com wrote: On Monday, March 4, 2013 3:20:28 PM UTC+2, Javier Domingo wrote: [...] see SQL Alchemy Trac bridge , and do a similar thing for Trac . oops ! ... and do a similar thing for **Django ORM

[Trac-dev] Unicode error in Trac wiki formatter (i.e. wiki text)

2013-03-03 Thread Olemis Lang
Hi ! For Apache™ Bloodhound I've been translating most of the unit tests in Trac test suite in order to implement an equivalent multi-product architecture [3]_ . All such test cases are ok . Afterwards I've been developing brand new product prefixes , and thereby I chose to reuse the very same

[Trac-dev] Re: Unicode error in Trac wiki formatter (i.e. wiki text)

2013-03-03 Thread Olemis Lang
Quick follow-up ... On 3/3/13, Olemis Lang ole...@gmail.com wrote: Hi ! For Apache™ Bloodhound I've been translating most of the unit tests in Trac test suite in order to implement an equivalent multi-product architecture [3]_ . All such test cases are ok . Afterwards I've been developing

Re: [Trac-dev] Starting development

2013-02-05 Thread Olemis Lang
On 2/5/13, Guilherme Souza souza.guilherm...@gmail.com wrote: Hello guys, i was at this step http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup#Startingtracindevelopmentmode when i got a problem, the step says: cd test source bin/activate but I didn't found any directory

Re: [Trac-dev] Creating a setup.py for a plugin

2013-01-23 Thread Olemis Lang
On 1/23/13, Christopher Nelson chris.nelson.1...@gmail.com wrote: Any chance you are missing __init__.py in your package directory? You need at least an empty __init__.py file. There have been several occasions when I omitted it, and I think that I saw the same error that you are seeing,

Re: [Trac-dev] Creating a setup.py for a plugin

2013-01-21 Thread Olemis Lang
On 1/21/13, Christopher Nelson chris.nelson.1...@gmail.com wrote: [...] Help! [...] In 0.11.6, I can test my changes to query.py with my TracPM code but that's not ported to or tested in 1.0 yet [...] I put my code in trac/sample-plugins/sampleQueryPreprocessor/sampleQueryPreprocessor.py

Re: [Trac-dev] ticket workflow actions and ticket change

2013-01-16 Thread Olemis Lang
On 1/16/13, Brettschneider Falk fbrettschnei...@baumer.com wrote: Hi, :) Olemis Lang wrote: JFTR ... this [1]_ is what it will look like in Bloodhound 0.4.0 ( to be released soon as release voting process PMC + IPMC is in progress at the moment) . Is the position of workflow action UI ok

Re: [Trac-dev] ticket workflow actions and ticket change

2013-01-16 Thread Olemis Lang
On 1/16/13, Olemis Lang ole...@gmail.com wrote: [...] There's always a change to improve on what we have and release something for Apache™ Bloodhound 0.6.0 (or whatever other version comes next ;) Indeed it should be 0.5.0 :-$ -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com

Re: [Trac-dev] ticket workflow actions and ticket change

2013-01-15 Thread Olemis Lang
On 1/15/13, Brettschneider Falk fbrettschnei...@baumer.com wrote: Hi, users here talk to me they don't understand why changing the ticket to a new workflow state (via Action) is hidden in Modify Ticket and not placed in parallel to it. They say workflow is a different thing than modifying

Re: [Trac-dev] How to programmatically create an Environment?

2013-01-08 Thread Olemis Lang
On 1/8/13, Vigneshwaran Raveendran vigneshwaran2...@gmail.com wrote: Hi Olemis, :) On Monday, January 7, 2013 10:04:29 PM UTC+5:30, Olemis Lang wrote: On 1/7/13, Vigneshwaran Raveendran vigneshw...@gmail.com javascript: wrote: jfyi ... or you could also use trachacks:RestOnTracPlugin

Re: [Trac-dev] How to programmatically create an Environment?

2013-01-07 Thread Olemis Lang
On 1/7/13, Vigneshwaran Raveendran vigneshwaran2...@gmail.com wrote: Hi Trac team, :) I have installed Trac and configured it with mod_python. I have my own application that will send a REST call to Trac to create an environment programmatically instead of me using trac-admin everytime.

Re: [Trac-dev] How to programmatically create an Environment?

2013-01-07 Thread Olemis Lang
On 1/7/13, Olemis Lang ole...@gmail.com wrote: On 1/7/13, Vigneshwaran Raveendran vigneshwaran2...@gmail.com wrote: [...] Is there some way I can make a (global) plugin intercept the url request and do my job without needing an environment? You have some options at hand : [...] - Adopt

Re: [Trac-dev] Some findings on Python unit testing for Trac plugins

2012-12-29 Thread Olemis Lang
On 12/28/12, Steffen Hoffmann hoff...@web.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, :) here are some recent findings, that other plugin authors/maintainers may find helpful as well: I noticed that component names in the 'enable' attribute to

Re: [Trac-dev] Access request object in ITicketChangeListener methods

2012-12-19 Thread Olemis Lang
On 12/19/12, Andrej Golcov and...@digiverse.si wrote: Thanks everybody for the useful response. Hi Andrej ! IRequestHandler are appropriate. I wanted to use a request object to call add_warning in case of possible indexing errors, of cause, if the call is in web context. you have a few

Re: [Trac-dev] Access request object in ITicketChangeListener methods

2012-12-17 Thread Olemis Lang
On 12/17/12, Ethan Jucovy ethan.juc...@gmail.com wrote: On Mon, Dec 17, 2012 at 6:25 AM, Andrej Golcov and...@digiverse.si wrote: I'm implementing code listening on ITicketChangeListener interface calls. I would like to call add_warning in addition to logging just in case if something go

[Trac-dev] Fwd: Custom doctype

2012-12-02 Thread Olemis Lang
I'm forwarding this message to this ML because I've not received any reply in trac-users , so maybe there's more chance to have some feedback from trac-devs . I look forward to your suggestions . Thanks in advance ! -- Forwarded message -- From: Olemis Lang ole...@gmail.com Date

Re: [Trac-dev] [RFC] DB access rewritten using DAO or alike. WAS: [BEP-0003] Request to reject /ticket/product prefix/sequence ID routes

2012-11-21 Thread Olemis Lang
On 11/21/12, Remy Blank remy.bl...@pobox.com wrote: Olemis Lang wrote: The ultimate goal would be to eliminate the current dependency with hard-coded SQL queries based on current database schema (i.e. things happening on top of DB connection abstraction layer, but beneath Trac business logic

Re: [Trac-dev] Print statements in unit tests

2012-11-20 Thread Olemis Lang
On 11/19/12, RjOllos ry...@physiosonics.com wrote: When I put `print` statements inside a unit test case I don't see any output in the console window. Any idea of why this might be? Maybe stdout is redirect somewhere else , or your messages are entangled in the tons of prose output by unittest

Re: [Trac-dev] Print statements in unit tests

2012-11-20 Thread Olemis Lang
On 11/20/12, Ryan Ollos rjol...@gmail.com wrote: On Tue, Nov 20, 2012 at 2:11 PM, Ryan Ollos rjol...@gmail.com wrote: [...] You should use the log in functional tests and anywhere you have access to an environment (= indeed if that's the case those will be functional tests already ;) .

[Trac-dev] [RFC] DB access rewritten using DAO or alike. WAS: [BEP-0003] Request to reject /ticket/product prefix/sequence ID routes

2012-11-20 Thread Olemis Lang
discussion in bloodhound-...@incubator.apache.org mailing list . On 11/20/12, Olemis Lang ole...@gmail.com wrote: On 11/20/12, Gary Martin gary.mar...@wandisco.com wrote: On 20/11/12 09:24, Peter Koželj wrote: [...] I suspect there is no way that we can introduce multiproduct without making

Re: [Trac-dev] A plugin idea

2012-09-28 Thread Olemis Lang
On 9/28/12, Steffen Hoffmann hoff...@web.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27.09.2012 22:33, Olemis Lang wrote: On 9/27/12, Christopher Nelson chris.nelson.1...@gmail.com wrote: Am I crazy or would it be useful to be able to embed the tabular output of a report

Re: [Trac-dev] A plugin idea

2012-09-28 Thread Olemis Lang
On 9/28/12, Steffen Hoffmann hoff...@web.de wrote: On 28.09.2012 23:11, Olemis Lang wrote: with all respect ... afaics I'd not use this because it seems to me that they do not respect Trac permissions and other access control mechanisms . Saved reports are the way to go because they are under

Re: [Trac-dev] Getter/setter idiom in Trac (or Python, for that matter)

2012-08-15 Thread Olemis Lang
On 8/15/12, Norman Harman njhar...@gmail.com wrote: Python idiom is to not write getter / setters until (if) you need them. Use attributes instead. Python Descriptors enable this. http://docs.python.org/howto/descriptor.html class Foo(): def __init__(self): self.something = None

Re: [Trac-dev] Selecting a single Extension Point

2012-03-21 Thread Olemis Lang
On Wed, Mar 21, 2012 at 4:33 PM, Chris Nelson chris.nel...@sixnet.comwrote: On 03/21/2012 03:15 PM, Peter Suter wrote: On 21.03.2012 19:36, Chris Nelson wrote: [...] ... Based on the rest of your description, I would have thought ExtensionOption is exactly what you want: task_sorter

Re: [Trac-dev] (Quite ?) Advanced template expansion in Genshi template ...

2012-02-22 Thread Olemis Lang
On Tue, Feb 21, 2012 at 6:16 PM, Simon Cross hodges...@gmail.com wrote: I don't know exactly how to achieve this from inside Trac, but directly from Python you want something like: from genshi.template import MarkupTemplate from genshi import Stream def to_str(gnrtr):    return

  1   2   >