Software Freedom Law Center

Changeset 112

Show
Ignore:
Timestamp:
05/26/08 11:23:05 (4 months ago)
Author:
bkuhn
Message:

r145@hughes: bkuhn | 2008-05-26 11:22:33 -0400

  • Moved version 7002 to 7148, which is the current svn version in the upstream as of today
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trac.upstream-r7148/contrib/checkwiki.py

    r52 r112  
    5858 "TracUpgrade", 
    5959 "TracWiki", 
    60  "TracWikiMacros", 
    6160 "TracWorkflow", 
    6261 "WikiDeletePage", 
    6362 "WikiFormatting", 
    6463 "WikiHtml", 
     64 "WikiMacros", 
    6565 "WikiNewPage", 
    6666 "WikiPageNames", 
  • branches/trac.upstream-r7148/contrib/workflow/showworkflow

    r52 r112  
    11#!/bin/bash -x 
    22 
     3basedir=`dirname $0` 
    34options="" 
    45while [ $# -gt 1 ]; do 
     
    1718png=`echo "$config" | sed 's/\.ini$/.png/g'` 
    1819 
    19 ./workflow_parser.py $options "$config" > "$dot" 
     20$basedir/workflow_parser.py $options "$config" > "$dot" 
    2021if [ $? -ne 0 ]; then 
    2122    echo "Failed to parse \"$config\", exiting." >&2 
     
    2324fi 
    2425 
     26dot -T png -o "$png" "$dot" 
    2527dot -T ps -o "$ps" "$dot" && ps2pdf "$ps" "$pdf" || exit 1 
    26 dot -T png -o "$png" "$dot" 
    2728kpdf "$pdf" 
  • branches/trac.upstream-r7148/contrib/workflow/workflow_parser.py

    r52 r112  
    4747    # The size value makes it easier to create a useful printout. 
    4848    color_scheme = ColorScheme() 
    49     digraph_lines = ['digraph G {\nrotate=90\ncenter=1\nsize="10,8"\n'] 
     49    digraph_lines = ['digraph G {\ncenter=1\nsize="10,8"\n'] 
    5050    for action, attributes in actions.items(): 
    5151        label = [attributes['name'], ] 
     
    5454        if show_perms: 
    5555            label += attributes['permissions'] 
     56        if 'set_resolution' in attributes: 
     57            label += ['(' + attributes['set_resolution'] + ')']  
    5658        for oldstate in attributes['oldstates']: 
    5759            color = color_scheme.get_color(attributes['name']) 
  • branches/trac.upstream-r7148/doc/README

    r46 r112  
    1 Sorry, for now the only documentation we have is what's on the project website: 
    2 http://trac.edgewall.org/ 
     1New documentation coming soon. 
  • branches/trac.upstream-r7148/setup.cfg

    r105 r112  
    1111msgid_bugs_address = trac-dev@googlegroups.com 
    1212output_file = trac/locale/messages.pot 
     13keywords = _ ngettext:1,2 N_ tag_ 
    1314 
    1415[init_catalog] 
  • branches/trac.upstream-r7148/TESTING-README

    r102 r112  
    1 So, you want to see what's broken?  Eeeexcellent.  Welcome to the testing branch. 
     1 = Testing Readme = 
    22 
     3So, you want to see what's broken?  Eeeexcellent. 
     4 
     5If you are running python < 2.4.4, please see the troubleshooting section. 
     6 
     7 == Quick Start == 
    38First thing to do is run the tests. 
    49If you have genshi and twill installed on your system, you should be able to run the tests like this: 
     
    712}}} 
    813 
     14 == Slow Start == 
    915If you want to test against specific versions of genshi, twill, pygments, etc., you can set those up like this: 
    1016{{{ 
     
    3339 
    3440NOTE: Unlike most unittests, the functional tests share a test fixture across tests.  This means that you can't(*) run just one of the tests by itself. 
    35 You can now run a sub-set of the functional tests: 
     41But you can run a sub-set of the functional tests: 
    3642{{{ 
    3743PYTHONPATH=.:../twill-0.9:../genshi-0.4.4:../pygments-0.8 ./trac/tests/functional/__init__.py 
     
    3945PYTHONPATH=.:../twill-0.9:../genshi-0.4.4:../pygments-0.8 ./trac/versioncontrol/tests/functional.py 
    4046}}} 
    41 Note that that there is a set of functional tests that are run regardless of what subset you choose
     47Note that that there is a set of functional tests that are run regardless of what subset you choose; these tests setup the shared fixture
    4248 
    4349 
    4450(*) Unless you modify the code to comment out the other functional tests.  The test fixture is setup and torn down by `FunctionalTestSuite`, and it runs the tests added to it with `_tester` and `_testenv` set in the testcase objects. 
    4551 
    46 The functional tests require subversion, and use a random port 8000-8999 for the test web server 
     52The functional tests require subversion, and use a random local port 8000-8999 for the test web server. 
    4753 
     54 == Testing output and byproducts == 
    4855There is some logging done: 
    4956 - testing.log 
     
    5865       /trac       -- the Trac environment 
    5966}}} 
     67(Note that running the tests again will automatically delete this test environment and create a new one.  If you want to save a test environment, you will need to rename this directory before running the tests again.) 
    6068 
    6169The command to serve the test environment is: 
     
    6573    --port=8888 testenv/trac 
    6674}}} 
     75This is particularly useful when a test fails and you want to explore the environment to debug the problem. 
     76 
     77 == Test Coverage == 
     78You can now determine statement coverage of unittests and functional tests.  But you'll have to run them separately for now. 
     79 
     80`figleaf` will need to be on your `PATH`.  Set the `FIGLEAF` environment variable to the figleaf command. 
     81 
     82Create a figleaf-exclude file with filename patterns to exclude.  For example: 
     83{{{ 
     84/usr/lib/python.*/.*.py 
     85.*.html 
     86}}} 
     87 
     88Then run the tests something like this: 
     89{{{ 
     90export FIGLEAF=figleaf 
     91figleaf ./trac/test.py -v --skip-functional-tests 
     92mv .figleaf .figleaf.unittests 
     93python trac/tests/functional/testcases.py -v 
     94mv .figleaf .figleaf.functional 
     95figleaf2html --exclude-patterns=../figleaf-exclude .figleaf.functional .figleaf.unittests 
     96}}} 
     97Also, this is very slow; on a decent machine, 10 minutes for the functional tests is normal. 
     98 
     99To run without figleaf, be sure to unset `FIGLEAF`. 
    67100 
    68101-------------------------------------------------------------------------------- 
  • branches/trac.upstream-r7148/THANKS

    r105 r112  
    1717 * Justin Francis 
    1818 * Markus Fuchs                    
     19 * Lele Gaifax 
     20 * Axel Gembe 
    1921 * Eric Gillespie                 epg@netbsd.org 
    2022 * Daniel Kahn Gillmor 
  • branches/trac.upstream-r7148/trac/admin/templates/admin_components.html

    r105 r112  
    7474 
    7575        <py:choose> 
    76           <form py:when="components" method="POST"> 
     76          <form py:when="components" name="component_table" method="POST"> 
    7777            <table class="listing" id="complist"> 
    7878              <thead> 
  • branches/trac.upstream-r7148/trac/admin/templates/admin_enums.html

    r102 r112  
    1414 
    1515    <py:choose test="view"> 
    16       <form py:when="'detail'" class="mod" id="modenum" method="post"> 
     16      <form py:when="'detail'" class="mod" id="modenum" name="modenum" method="post"> 
    1717        <fieldset> 
    1818          <legend>Modify $label_singular</legend> 
     
    4141 
    4242        <py:choose> 
    43           <form py:when="enums" method="POST"> 
     43          <form py:when="enums" id="enumtable" name="enumtable" method="POST"> 
    4444            <table class="listing" id="enumlist"> 
    4545              <thead> 
  • branches/trac.upstream-r7148/trac/admin/templates/admin_milestones.html

    r105 r112  
    1515 
    1616    <py:choose test="view"> 
    17       <form py:when="'detail'" class="mod" id="modmil" method="post"
     17      <form py:when="'detail'" class="mod" id="modmil" method="post" name="modifymilestone"
    1818        <fieldset> 
    1919          <legend>Modify Milestone:</legend> 
     
    9494 
    9595        <py:choose> 
    96           <form py:when="milestones" method="POST"> 
     96          <form py:when="milestones" id="milestone_table" method="POST"> 
    9797            <table class="listing" id="millist"> 
    9898              <thead> 
  • branches/trac.upstream-r7148/trac/admin/templates/admin_versions.html

    r105 r112  
    1515 
    1616    <py:choose test="view"> 
    17       <form py:when="'detail'" class="mod" id="modver" method="post"> 
     17      <form py:when="'detail'" class="mod" id="modver" name="modifyversion" method="post"> 
    1818        <fieldset> 
    1919          <legend>Modify Version:</legend> 
     
    7171 
    7272        <py:choose> 
    73           <form py:when="versions" method="POST"> 
     73          <form py:when="versions" id="version_table" method="POST"> 
    7474            <table class="listing" id="verlist"> 
    7575              <thead> 
  • branches/trac.upstream-r7148/trac/admin/templates/deploy_trac.cgi

    r102 r112  
    1818try: 
    1919    import os 
     20    import tempfile 
    2021    if 'TRAC_ENV' not in os.environ and \ 
    2122       'TRAC_ENV_PARENT_DIR' not in os.environ: 
    2223        os.environ['TRAC_ENV'] = '${env.path}' 
     24    if 'PYTHON_EGG_CACHE' not in os.environ: 
     25        os.environ['PYTHON_EGG_CACHE'] = tempfile.gettempdir() 
    2326    from trac.web import cgi_frontend 
    2427    cgi_frontend.run() 
  • branches/trac.upstream-r7148/trac/admin/templates/deploy_trac.fcgi

    r102 r112  
    1818try: 
    1919    import os 
     20    import tempfile 
    2021    if 'TRAC_ENV' not in os.environ and \ 
    2122       'TRAC_ENV_PARENT_DIR' not in os.environ: 
    2223        os.environ['TRAC_ENV'] = '${env.path}' 
     24    if 'PYTHON_EGG_CACHE' not in os.environ: 
     25        os.environ['PYTHON_EGG_CACHE'] = tempfile.gettempdir() 
    2326    from trac.web import fcgi_frontend 
    2427    fcgi_frontend.run() 
  • branches/trac.upstream-r7148/trac/admin/templates/deploy_trac.wsgi

    r102 r112  
    1515# 
    1616# Author: Noah Kantrowitz <noah@coderanger.net> 
     17import os 
     18import tempfile 
     19 
    1720from trac.web.main import dispatch_request 
     21import pkg_resources 
    1822 
    1923def application(environ, start_request): 
    2024    environ['trac.env_path'] = '${env.path}' 
     25    if 'PYTHON_EGG_CACHE' not in os.environ: 
     26        pkg_resources.set_extraction_path(tempfile.gettempdir()) 
    2127    return dispatch_request(environ, start_request) 
  • branches/trac.upstream-r7148/trac/db/api.py

    r105 r112  
    2222from trac.db.pool import ConnectionPool 
    2323from trac.util.text import unicode_passwd 
     24from trac.util.translation import _ 
    2425 
    2526 
  • branches/trac.upstream-r7148/trac/db/mysql_backend.py

    r105 r112  
    2121from trac.db.util import ConnectionWrapper 
    2222from trac.util import get_pkginfo 
     23from trac.util.translation import _ 
    2324 
    2425_like_escape_re = re.compile(r'([/_%])') 
  • branches/trac.upstream-r7148/trac/db/pool.py

    r105 r112  
    2323 
    2424from trac.db.util import ConnectionWrapper 
     25from trac.util.translation import _ 
    2526 
    2627 
  • branches/trac.upstream-r7148/trac/db/sqlite_backend.py

    r105 r112  
    2323from trac.db.util import ConnectionWrapper 
    2424from trac.util import get_pkginfo 
     25from trac.util.translation import _ 
    2526 
    2627_like_escape_re = re.compile(r'([/_%])') 
  • branches/trac.upstream-r7148/trac/env.py

    r102 r112  
    9999        `base_url` setting also for redirects. This introduces the obvious 
    100100        limitation that this environment will only be usable when accessible 
    101         from that URL, as redirects are frequently used.""") 
     101        from that URL, as redirects are frequently used. ''(since 0.10.5)''""") 
    102102 
    103103    project_name = Option('project', 'name', 'My Project', 
     
    155155         ($(thread)d) Trac[$(basename)s:$(module)s] $(levelname)s: $(message)s 
    156156 
    157          (since 0.11)""") 
     157         (since 0.10.5)""") 
    158158 
    159159    def __init__(self, path, create=False, options=[]): 
  • branches/trac.upstream-r7148/trac/htdocs/css/browser.css

    r46 r112  
    1818h1 .first:link, h1 .first:visited { color: #998 } 
    1919h1 .sep { color: #666; padding: 0 .1em } 
     20h1 .pathentry { float: left } 
    2021 
    2122#jumprev, #jumploc { float: right; font-size: 10px; margin: 0 0 0.6em } 
  • branches/trac.upstream-r7148/trac/htdocs/js/diff.js

    r102 r112  
    8181      .replace("{3}", newOffset).replace("{4}", newLength); 
    8282   
    83     /* remove trailing &nbsp; and join lines (with CRLF for IExplorer) */ 
    84     return $.map(lines, function(l){ return l.replace(/\xa0$/, ''); }) 
    85         .join($.browser.msie ? "\r\n" : "\n"); 
     83    /* remove trailing &nbsp; and join lines (with CR for IExplorer) */ 
     84    for ( var i = 0; i < lines.length; i++ ) 
     85        if ( lines[i] ) 
     86            lines[i] = lines[i].replace(/\xa0$/, ''); 
     87    return lines.join($.browser.msie ? "\r" : "\n"); 
    8688  } 
    8789   
  • branches/trac.upstream-r7148/trac/htdocs/js/expand_dir.js

    r55 r112  
    8383        dataType: "html", 
    8484        success: function(data) { 
    85           var rows = $(data.replace(/^<!DOCTYPE[^>]+>/, "")).filter("tr"); 
     85          // Safari 3.1.1 has some trouble reconstructing HTML snippets 
     86          // bigger than 50k - splitting in rows before building DOM nodes 
     87          var rows = data.replace(/^<!DOCTYPE[^>]+>/, "").split("</tr>"); 
    8688          if (rows.length) { 
    8789            // insert entry rows  
    88             rows.children("td."+td_class).css("padding-left", depth); 
    89             // make all entry rows collapsible but only subdir rows expandable 
    90             enableExpandDir(tr, rows, qargs);  
    91             tr.after(rows); 
     90            $(rows).each(function() { 
     91              row = $(this+"</tr>"); 
     92              row.children("td."+td_class).css("padding-left", depth); 
     93              // make all entry rows collapsible but only subdir rows expandable 
     94              enableExpandDir(tr, row, qargs);  
     95              loading_row.before(row); 
     96            }); 
    9297            // remove "Loading ..." row 
    9398            loading_row.remove(); 
  • branches/trac.upstream-r7148/trac/locale/cs_CZ/LC_MESSAGES/messages.po

    r105 r112  
    1010"Report-Msgid-Bugs-To: trac-dev@googlegroups.com\n" 
    1111"POT-Creation-Date: 2007-06-23 15:38+0200\n" 
    12 "PO-Revision-Date: 2008-05-03 22:36+0200\n" 
     12"PO-Revision-Date: 2008-05-06 11:57+0200\n" 
    1313"Last-Translator: Radek Bartoň <xbarto33@stud.fit.vutbr.cz>\n" 
    1414"Language-Team: cs_CZ <trac-dev@googlegroups.com>\n" 
     
    402402#: trac/admin/templates/admin_milestones.html:100 
    403403#: trac/admin/templates/admin_versions.html:77 trac/templates/about.html:66 
    404 #: trac/templates/error.html:161 
     404#: trac/templates/error.html:162 
    405405msgid "Name" 
    406406msgstr "Jméno" 
     
    11391139msgstr "Sekce" 
    11401140 
    1141 #: trac/templates/about.html:67 trac/templates/error.html:161 
     1141#: trac/templates/about.html:67 trac/templates/error.html:162 
    11421142msgid "Value" 
    11431143msgstr "Hodnota" 
     
    13021302msgstr "Změněno" 
    13031303 
    1304 #: trac/templates/error.html:59 
     1304#: trac/templates/error.html:60 
    13051305msgid "" 
    13061306"==== How to Reproduce ====\n" 
     
    13121312"Během provádění operace " 
    13131313 
    1314 #: trac/templates/error.html:63 
     1314#: trac/templates/error.html:64 
    13151315msgid "operation on `" 
    13161316msgstr "na `" 
    13171317 
    1318 #: trac/templates/error.html:63 
     1318#: trac/templates/error.html:64 
    13191319msgid "" 
    13201320"`, Trac issued an internal error.\n" 
     
    13231323msgstr "` nastala interní chyba Tracu. (Zde, prosím, poskytněte další informace.)" 
    13241324 
    1325 #: trac/templates/error.html:67 
     1325#: trac/templates/error.html:68 
    13261326msgid "" 
    13271327"Request parameters:\n" 
     
    13311331"{{{" 
    13321332 
    1333 #: trac/templates/error.html:72 
     1333#: trac/templates/error.html:73 
    13341334msgid "==== System Information ====" 
    13351335msgstr "==== Systémové informace ====" 
    13361336 
    1337 #: trac/templates/error.html:75 
     1337#: trac/templates/error.html:76 
    13381338msgid "" 
    13391339"==== Python Traceback ====\n" 
     
    13431343"{{{" 
    13441344 
    1345 #: trac/templates/error.html:83 
     1345#: trac/templates/error.html:84 
    13461346#, fuzzy 
    13471347msgid "Create" 
    13481348msgstr "zpoÅŸděna" 
    13491349 
    1350 #: trac/templates/error.html:98 
     1350#: trac/templates/error.html:99 
    13511351msgid "Oops
" 
    13521352msgstr "Hups
" 
    13531353 
    1354 #: trac/templates/error.html:100 
     1354#: trac/templates/error.html:101 
    13551355msgid "Trac detected an internal error:" 
    13561356msgstr "Systém Trac detekoval vnitřní chybu:" 
    13571357 
    1358 #: trac/templates/error.html:105 
     1358#: trac/templates/error.html:106 
    13591359msgid "" 
    13601360"There was an internal error in Trac. It is recommended\n" 
     
    13621362msgstr "V systému Trac nastala vnitřní chyba. Doporučujeme kontaktovat " 
    13631363 
    1364 #: trac/templates/error.html:107 
     1364#: trac/templates/error.html:108 
    13651365msgid "" 
    13661366"Trac\n" 
     
    13681368msgstr "správce totoho systému Trac" 
    13691369 
    1370 #: trac/templates/error.html:108 
     1370#: trac/templates/error.html:109 
    13711371msgid "" 
    13721372"and give him all the information he needs to\n" 
     
    13761376"informace k opětovnému navození situace." 
    13771377 
    1378 #: trac/templates/error.html:113 
     1378#: trac/templates/error.html:114 
    13791379msgid "To that end, you could" 
    13801380msgstr "Můşete také vytvořit záznám o chybě" 
    13811381 
    1382 #: trac/templates/error.html:113 
     1382#: trac/templates/error.html:114 
    13831383msgid "" 
    13841384"a ticket at this\n" 
     
    13861386msgstr "v tomto systému." 
    13871387 
    1388 #: trac/templates/error.html:117 
     1388#: trac/templates/error.html:118 
    13891389msgid "The action that triggered the error was:" 
    13901390msgstr "Údálost, která vyvolala chybu, byla:" 
    13911391 
    1392 #: trac/templates/error.html:123 
     1392#: trac/templates/error.html:124 
    13931393msgid "" 
    13941394"If you think this should work you can reproduce the problem,\n" 
     
    13981398"opětovně navodit, lze uvaÅŸovat o nahlášení chyby vÜvojovému tÜmu Tracu." 
    13991399 
    1400 #: trac/templates/error.html:125 
    1401 msgid "Before you do that, though, please first try" 
    1402 msgstr "NeÅŸ to vÅ¡ak uděláte, zkuste nejprve " 
    1403  
    1404 #: trac/templates/error.html:127 
    1405 msgid "searching" 
    1406 msgstr "nalézt " 
    1407  
    1408 #: trac/templates/error.html:127 
    1409 msgid "" 
    1410 "for similar issues, as it is quite likely that this problem\n" 
     1400#: trac/templates/error.html:126 
     1401#, fuzzy 
     1402msgid "" 
     1403"Before you do that, though, please first try\n" 
     1404"                [1:searching]\n" 
     1405"                for similar issues, as it is quite likely that this " 
     1406"problem\n" 
    14111407"                has been reported before. For questions about " 
    14121408"installation\n" 
    1413 "                and configuration of Trac, please try the" 
    1414 msgstr "" 
     1409"                and configuration of Trac, please try the\n" 
     1410"                [2:mailing list]\n" 
     1411"                instead of filing a ticket." 
     1412msgstr "" 
     1413"NeÅŸ to vÅ¡ak uděláte, zkuste nejprve [1:nalézt] " 
    14151414"jestli podobnÜ problém uÅŸ není evidován, coÅŸ bÜvá časté. Otázky ohledně " 
    1416 "instalace a nastavení systému Trac směřujte do" 
    1417  
    1418 #: trac/templates/error.html:131 
    1419 msgid "mailing list" 
    1420 msgstr "e-mailového fóra " 
    1421  
    1422 #: trac/templates/error.html:131 
    1423 msgid "instead of filing a ticket." 
    1424 msgstr "místo vytváření záznamů." 
    1425  
    1426 #: trac/templates/error.html:135 
     1415"instalace a nastavení systému Trac směřujte do " 
     1416"[2:e-mailového fóra] místo vytváření záznamů." 
     1417 
     1418#: trac/templates/error.html:136 
    14271419msgid "Otherwise, please" 
    14281420msgstr "Opravdové chyby, prosím, " 
    14291421 
    1430 #: trac/templates/error.html:135 
     1422#: trac/templates/error.html:136 
    14311423msgid "" 
    14321424"a new ticket at\n" 
     
    14381430"popiÅ¡te probém a vysvětlete způsob, jak ho znovu navodit." 
    14391431 
    1440 #: trac/templates/error.html:140 
     1432#: trac/templates/error.html:141 
    14411433msgid "Python Traceback" 
    14421434msgstr "VÜpis Pythonu" 
    14431435 
    1444 #: trac/templates/error.html:141 
     1436#: trac/templates/error.html:142 
    14451437msgid "Most recent call last:" 
    14461438msgstr "Nejnovější volání funkce jako poslední:" 
    14471439 
    1448 #: trac/templates/error.html:146 trac/templates/error.html:173 
     1440#: trac/templates/error.html:147 trac/templates/error.html:174 
    14491441msgid "File \"" 
    14501442msgstr "Soubor \"" 
    14511443 
    1452 #: trac/templates/error.html:146 
     1444#: trac/templates/error.html:147 
    14531445msgid "" 
    14541446"\",\n" 
     
    14581450"                        řádek" 
    14591451 
    1460 #: trac/templates/error.html:147 trac/templates/error.html:173 
     1452#: trac/templates/error.html:148 trac/templates/error.html:174 
    14611453msgid ", in" 
    14621454msgstr ", v" 
    14631455 
    1464 #: trac/templates/error.html:151 
     1456#: trac/templates/error.html:152 
    14651457msgid "Code fragment:" 
    14661458msgstr "Zlomek kódu:" 
    14671459 
    1468 #: trac/templates/error.html:159 
     1460#: trac/templates/error.html:160 
    14691461msgid "Local variables:" 
    14701462msgstr "Lokální proměnné:" 
    14711463 
    1472 #: trac/templates/error.html:173 
     1464#: trac/templates/error.html:174 
    14731465msgid "\", line" 
    14741466msgstr "\" řádek" 
    14751467 
    1476 #: trac/templates/error.html:176 
     1468#: trac/templates/error.html:177 
    14771469msgid "Switch to plain text view" 
    14781470msgstr "" 
    14791471 
    1480 #: trac/templates/error.html:179 
     1472#: trac/templates/error.html:180 
    14811473msgid "System Information:" 
    14821474msgstr "Systémové informace:" 
    14831475 
    1484 #: trac/templates/error.html:191 
     1476#: trac/templates/error.html:192 
    14851477msgid "TracGuide" 
    14861478msgstr "TracGuide" 
    14871479 
    1488 #: trac/templates/error.html:191 
     1480#: trac/templates/error.html:192 
    14891481msgid "— The Trac User and Administration Guide" 
    14901482msgstr "— UÅŸivatelská a administrátorská příručka systému Trac."