Christian Boos | 29 Jan 19:54
Picon
Favicon

[Trac-dev] Trac 0.12.3rc1 available for testing

Hello,

The first release of the year is getting nearer, if all goes well
0.12.3 will be released next Sunday, 5th of February 2012.

But before that, we need your help to test the 0.12.3rc1 packages
that we made available today:

  http://trac.edgewall.org/wiki/TracDownload#LatestReleaseCandidate

Should you find anything wrong with these packages (missing
files, test failing on some configuration, anything that doesn't
look satisfying for a release), please drop us a note in the
release coordination ticket:

  http://trac.edgewall.org/ticket/10548

While this is a not-so-exciting maintenance release, we
nevertheless fixed close to 80 tickets, so there is some room for
possible breakage in configurations we didn't test. If you could
have a test run on a copy of your production environment and
report back how it went, that would be very much appreciated!

And here's a last call for the translators: please have a look at
updating your .po files! (we did observe the string freeze... but
we didn't actually extract the messages ;-) so there are at least
2 new messages left to translate if you want to reach 100%).

Enjoy!

(Continue reading)

Chris Nelson | 24 Jan 18:54
Favicon

[Trac-dev] I'm having trouble groking cursor.execute()

In the original Team Calendar plugin, I find:

         timetable_cursor.execute('SELECT ondate, username, availability '
                                  'FROM %s '
                                  'WHERE ondate >= "%s" AND ondate <= "%s" '
                                  'GROUP BY ondate, username' % 
(self.table_name,

from_date.isoformat(),

to_date.isoformat(),))

which fails in PostgreSQL.  I changed it to:

         timetable_cursor.execute("SELECT ondate, username, availability "
                                  "FROM %s "
                                  "WHERE ondate >= '%s' AND ondate <= '%s' "
                                  "GROUP BY ondate, username" % 
(self.table_name,

from_date.isoformat(),

to_date.isoformat(),))

That is, I reversed the use of single and double quotes.

Clearly neither of these can work on both MySQL and PostgreSQL.  But 
http://trac-hacks.org/ticket/7115#comment:5 says:

   An even simple alternative for the example above is just to pass it
(Continue reading)

Franz | 24 Jan 14:36
Picon

[Trac-dev] pylint integration in PyDev

Hi,

I added chapter "pylint integration" to
DevelopmentWithEclipseAndPyDev, since I find it very useful, but it
didn't work properly at once, see [1].

Still there is always a error on this line:
from pkg_resources import resource_filename

As it is said on stackoverflow [2] you should use #@UnresolvedImport
to avoid that error. But I am wondering if there is not any other
(more global / nicer solution). Has anyone solved that problem?

Thank you,
Franz

[1] http://trac.edgewall.org/wiki/TracDev/DevelopmentWithEclipseAndPyDev#pylintintegration
[2] http://stackoverflow.com/questions/6336882/pylint-doesnt-like-pkg-resources-resource-filename

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Karsten Fuhrmann | 20 Jan 16:31
Picon
Favicon
Gravatar

[Trac-dev] Combining GET and POST request

Hello,
i am using a POST request for one of my forms but still want to be able to access the get parameters.
The usual
param1 = req.args.get('param1', '')

is not working in the POST request. But the get param is in the URL, when i look at the output of tracd.

127.0.0.1 - - [20/Jan/2012 16:07:19] "POST /svnpermcontrol?param1=admin&param2=on HTTP/1.1" 200 -

Any ideas how to access the get parameters in a post request?

Greetings,
Karsten Fuhrmann
System Administrator
Cartoon-Film Thilo Rothkirch




--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
Olemis Lang | 18 Jan 23:13
Picon

[Trac-dev] Create new ticket vs reopen #9418 (if necessary ;)

Hi all !

My comment posted to #9580 @ t.h.o [1]_ makes me wonder whether it is
convenient to reopen #9418 @ t.e.o
I'll try to be more precise and add further details later , but I just
wanted to know if this is better discussed here in the ML or in the
ticket itself (i.e. #9418 @ t.e.o.)

Thnx in advance !

.. [1] Recursion after installing in Trac 0.13 (dev) <= ThemeEnginePlugin
        (http://trac-hacks.org/ticket/9580#comment:1)

--
Regards,

Olemis

Facebook => http://www.facebook.com/olemis
Twitter => http://www.twitter.com/olemislc (@olemislc)
Blog ES => http://simelo-es.blogspot.com
Blog EN => http://simelo-en.blogspot.com
Quora => http://www.quora.com/olemis
Youtube => http://youtube.com/user/greatsoftw

Featured article : Identificando números primos con expresión regular en Perl
http://feedproxy.google.com/~r/simelo-news/~3/BHr859OSndo/identificando-numeros-primos-con.html
Tweet: parsear RT @yudivian Cual es el equivalente correcto en el
español de "parsear"
Follow @olemislc Reply Retweet   15:58 Jan-18
  Get this email app!
Get a signature like this. CLICK HERE.

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Steffen Hoffmann | 16 Jan 01:06
Picon

[Trac-dev] Call for help in favor of TracTicketsCustomTimeFields


Hello,

I've not been working on ticket t#1942 [1] for a while, but this has not
been due to lack of interest.

Quite the contrary is true: This code has become part of all of my Trac
application. Now I rely on bringing it to Trac core. And I'd certainly
like to obsolete a number of rather awkward attempts to work-around this
limitation in Trac core ASAP too, the most prominent being the
DateFieldPlugin [3].

This is an appeal for mentor-ship since Remy disclosed up-on request on
14-Jan-2012 in IRC channel #trac, that he'd probably not be able to push
this development within the next days/weeks/months but wouldn't mind, if
I'd find someone else to help instead.

First, I've put my Mercurial patch stack to BitBucket tonight [4].

Second, I've to declare, that patches applied cleanly against
trac-r10883, but not anymore. By chance I'd wait for some feedback,
before doing another pass over this.

Third, please feel welcomed to engage. I've granted write access to all
current Trac core developers.

 Think, if you could do something for this development.

I'm no Python professional by no means, will need further guidance on
Trac coding style, especially when it comes to unit and functional
tests. But I'm certainly willing to learn what's required to reach the
goal of this effort.

Not because I can do it all, but I'm confident, that it could be done:
I've started with virtually no Python coding experience 2 years ago.
After some progress my initial patches have been revised and greatly
reworked by Remy. I've done some more work at the end of last December
to adapt to recent changes. Especially Jun's great work to get
configuration and localization for date/time stamps into Trac `trunk`
come to my mind.

It works for me in production - 50+ users and a couple of environments
with hundreds to several thousand tickets, one or two custom time fields
in each. There is even Trac plugin support for custom time fields at
least by Wiki(Ticket)CalendarMacro [5] and  CustomFieldAdminPlugin [6]
(pending patch).

I was rather pessimistic about attempting to resolve such an old ticket.
OTOH I needed it. Simon, Remy and others encouraged me. It can't require
magic to finally bring it home now. Please help.

Looking forward to getting your response.

Sincerely,

Steffen Hoffmann

[1] http://trac.edgewall.org/ticket/1942
[2] http://trac.edgewall.org/wiki/TracTicketsCustomTimeFields
[3] http://trac-hacks.org/wiki/DateFieldPlugin
[4] https://bitbucket.org/hasienda/trac-1942
[5] http://trac-hacks.org/wiki/WikiCalendarMacro
[6] http://trac-hacks.org/wiki/CustomFieldAdminPlugin
Steffen Hoffmann | 15 Jan 21:35
Picon

[Trac-dev] Regression by 10892 for branches/0.12-stable


Hello,

it has been brought to my attention by a request in IRC #trac today,
that a user is experiencing following issue with report 6 in default
configuration on latest stable 0.12:

'My Tickets' is shown _after_ 'Active Tickets'

Before the changeset it was ok. Work-around is to rename groups or use

ORDER BY (COALESCE(owner, '') = '$USER') DESC, ...

instead of

ORDER BY (owner = '$USER') DESC, ...

Hint: The underlying query seem to not get the DESC rule, when the
column is added the new way, as SQL logging reveals ([2] last line).
Well, looks like there is simply no way to attach a 'DESC' to the
__group__ directive, right?

Since I'm not a SQL guru, I start with discussion here rather than
filing a ticket right-away.

Sincerely,

Steffen Hoffmann

[1] http://trac.edgewall.org/changeset/10892
[2] http://pastebin.com/G3criDRQ
Christian Boos | 14 Jan 14:53
Picon
Favicon

[Trac-dev] Release 0.12.3rc1

Hello,

0.12.3 is a long due release, we have nearly everything ready, but
not quite.

== Prepare ChangeLog

I've started it (see the ChangeLog wiki page on t.e.o). There's
room for a few more items, so don't hesitate to suggest some.

== Sync the TracGuide

I've started this as well. If people could review the additions
and spot gross mistakes if any, please tell me (or better,
directly make the change in the Wiki, as I'll do another pass at
getting the last changes from t.e.o just before making the final
release).

See http://trac.edgewall.org/log/cboos?rev=trac-guide-0.12

== Last call for i18n!

Translators from all around the world, this is you last chance to
reach 100% coverage for Trac 0.12.3! You still have a good week
left.

== Tickets left

=== For Jun (jomae)

   - #10121 UnicodeEncodeError: 'ascii' codec can't encode
            character u'\xdc' in position 5: ordinal not in
            range(128)

    I've summarized on this ticket what's left to be done for it:
    2 small patches to apply, AFAICT.

	
=== For me

   - #9976 Permission check of Repository Browser does not work

     Need to go carefully through this one, should be doable this
     WE.  Goes with #10208 anyway.

=== For Felix (fschwarz)

    - #1013 wrong German translation of 'Annotate' in source browser	

      That one should really be easy - there are plenty of
      suggestions in the ticket and the last one in comment:27 looks
      good (kidding, I don't speak German ;-) ).

=== For Rémy (rblank)

   - #10208 AuthzSourcePolicy does not conform to mod_authz_svn rules	

     Probably goes with #9976. We're on it ;-)

My current target is a 0.12.3rc1 release for Sunday evening.
 From that point, we'll encourage people to test it and if no
regression from 0.12.2 is found in a one week period, we'll make
the release (+ eventually the i18n updates which came in the
meantime).

As usual, if for some reason a large fix is needed, we'll extend
the testing period by one more week.

-- Christian

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Chris Nelson | 11 Jan 21:13
Favicon

[Trac-dev] Can't deepcopy() a ticket?

In my TracPM module, I want to give schedulers free reign over ticket 
data.  I used to do:

     def computeSchedule(self, options, tickets):
         # Convert list to dictionary, making copies so schedule can
         # mess with the tickets.
         ticketsByID = {}
         for t in tickets:
             ticketsByID[t['id']] = t

         # Schedule the tickets
         self.scheduler.scheduleTasks(options, ticketsByID)

but changes made by the scheduler were carried back to the caller.  I 
started with:

     def computeSchedule(self, options, tickets):
         # Convert list to dictionary, making copies so schedule can
         # mess with the tickets.
         ticketsByID = {}
         for t in tickets:
             ticketsByID[t['id']] = copy.copy(t)

         # Schedule the tickets
         self.scheduler.scheduleTasks(options, ticketsByID)

         # Copy back the schedule results
         for t in tickets:
             for field in [ 'calc_start', 'calc_finish']:
                 t[field] = ticketsByID[t['id']][field]

But the ticket attritbutes weren't copied, only the references to them. 
  I tried but deepcopy() but that gives:

   File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 
558, in _add_tasks
     self.pm.computeSchedule(options, self.tickets)
   File "build/bdist.linux-x86_64/egg/tracjsgantt/tracpm.py", line 566, 
in computeSchedule
     ticketsByID[t['id']] = copy.deepcopy(t)
   File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
     y = copier(x, memo)
   File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
     y[deepcopy(key, memo)] = deepcopy(value, memo)
   File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
     y = _reconstruct(x, rv, 1, memo)
   File "/usr/lib/python2.6/copy.py", line 322, in _reconstruct
     args = deepcopy(args, memo)
   File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
     y = copier(x, memo)
   File "/usr/lib/python2.6/copy.py", line 235, in _deepcopy_tuple
     y.append(deepcopy(a, memo))
   File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
     y = _reconstruct(x, rv, 1, memo)
   File "/usr/lib/python2.6/copy.py", line 323, in _reconstruct
     y = callable(*args)
   TypeError: __init__() takes exactly 3 arguments (1 given)

Is this a known restriction of some Trac classes?  A bug?  My misuse of 
deepcopy()?

This is in Trac 0.11.6.

Any insight appreciated.

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

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Franz | 11 Jan 08:55
Picon

[Trac-dev] Trac account - where to register?

Hi all,

I would like to have an Trac account, because it's nasty to enter
always my email address to avoid being anonymous. But I haven't found
any page on Trac where I can register for an account - have I missed
it?

Thanks,
Franz

--

-- 
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Ethan Jucovy | 8 Jan 14:44
Picon

[Trac-dev] Trac -> Software Freedom Conservancy?

Hi,


I wanted to ask the community's thoughts on submitting a proposal for Trac to become a member of the Software Freedom Conservancy. [0]

After hearing WANdisco's concerns about sponsoring code contributions without a foundation's guarantees, and Christian's hesitations about changing Trac's established ways in order to become an Apache project, I started to research other open source foundations like the Apache Foundation.  I wanted to see if any reputable foundation existed that could hold Trac's copyright without imposing any changes on Trac's existing license, development infrastructure, and governance.

Of the foundations I researched (which also included the Apache Foundation, the Eclipse Foundation, and the Free Software Foundation) -- the Software Freedom Conservancy looks most promising for Trac:
  • I believe the SFC would accept Trac's existing 3-Clause BSD License without modifications. [1]
  • I believe the SFC would accept Trac's existing informal governance structure and procedures without modifications. [2]
  • I believe the SFC would accept Trac's existing development practices (occurring in the Edgewall Subversion repository with issues tracked in the Edgewall Trac Trac) without modifications. [3]
  • Entering into a relationship with the SFC would not need to be permanent.  The Trac project would be free to leave the SFC in the future. [4]
  • The SFC does seem to be very reputable.  Its current Member Projects include very prominent project, for example Git, Mercurial, PyPy, Inkscape, jQuery, Selenium, Twisted, and Wine. [5]  And its Board of Directors includes Bradley Kuhn[6] (formerly of the Free Software Foundation) and Stormy Peters[7], Head of Developer Engagement at Mozilla. [8]
  • The SFC would also be able to accept and distribute donations earmarked for Trac development which would be tax-deductible in the United States. [9]  It also seems to do some fundraising support on behalf of its member projects if they are interested. [10]
So, I wanted to see what people thought about the idea.  Applications for new projects are accepted twice per year.  The next application deadline is February 1.

Importantly, submitting an application does not imply any obligation to accept membership if it is offered: the SFC FAQ says "Don't worry about “wasting our time” [...] If membership in Conservancy is currently a legitimate consideration for your project, we encourage you to apply.  We'd rather that you apply and turn down an offer for membership than fail to apply and have to wait until the next application round when you're sure." [11] 

The canonical Application Form is not published officially, but it is not secret either, and member projects have published theirs.  Here is an example: [12]

Before agreeing to join the SFC, I imagine it would be best to be sure of a few things -- including how Trac's core developers and "core developers emeritus" felt about it; how the broader Trac community felt about it; whether Trac's membership in the SFC would make WANdisco's executives more comfortable with the idea of sponsoring code contributions; and whether the Apache Foundation's formal guidelines and informal procedures would allow for a healthy relationship between Apache Bloodhound and an upstream BSD-licensed Trac sponsored by the SFC.  Also of course we should make sure that my above statements (that SFC membership would not change Trac's license, governance or infrastructures) are correct.  I'd be happy to take the lead on communicating and researching any or all (or none) of these questions.

For now, since the next application deadline is February 1 -- and because that application would be non-binding -- I thought it was worthwhile to hear people's thoughts on this ASAP, and also to offer to (try to) put together an application in time for the deadline.  I would be happy to do the work to collect and write up the necessary information and submit an application (with the core developers' review of course) on behalf of the Trac team and community.  Let me know what you think.

Thanks, and happy New Year,
Ethan


[1] "All software of the project should be licensed under a license that is listed both as a Free Software license by the Free Software Foundation and as an Open Source license by the Open Source Initiative. All software documentation for the project should be licensed under a license on the preceding lists, or under Creative Commons' CC-By-SA or CC-By or CC-0."  http://sfconservancy.org/members/apply/ -- under "What are the key criteria our project must meet to join?"

[2]  "Substantively, member projects continue to operate in the same way as they did before joining the Conservancy. So long as the project remains devoted to software freedom and operates consistently with the Conservancy's tax-exempt status, the Conservancy does not intervene in the project's development other than to provide administrative assistance. For example, the Conservancy keeps and maintains books and records for the project and assists with the logistics of receiving donations, but does not involve itself with technical or artistic decision making. Projects are asked, however, to keep the Conservancy up to date on their activities." http://sfconservancy.org/members/apply/ -- under "If my project joins the Conservancy, how will it change?"

[3] "Conservancy always avoids making any technical recommendations. [...] Conservancy, for its part, doesn't have a recommended version control system, nor a recommended hosting site, nor anything else like that." http://sfconservancy.org/blog/2011/nov/28/what-npo-for/

[4] "All agreements between member projects and the Conservancy stipulate clearly that the member project can leave the Conservancy with a few months' notice. Federal tax exemption law, though, states that projects must transfer their assets from the Conservancy in a way that is consistent with the Conservancy's not-for-profit tax status — meaning the assets cannot be transferred to an individual or a for-profit entity. Generally, a project would either find another fiscal sponsor or form their own independent tax-exempt non-profit." http://sfconservancy.org/members/apply/





[9] http://sfconservancy.org/members/services/ -- under "Tax-Deductible, Earmarked Donations"


[11] http://sfconservancy.org/members/apply/ -- under "Is our project required to accept membership if offered?"


--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com.
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.

Gmane