close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "darcs": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
- Timestamp:
-
2010-03-12 06:52:23 (15 years ago)
- Author:
-
zooko
- Comment:
-
beginning
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
1 | | = Welcome to Trac 0.11.6 = |
| 1 | = !StringChain = |
2 | 2 | |
3 | | Trac is a '''minimalistic''' approach to '''web-based''' management of |
4 | | '''software projects'''. Its goal is to simplify effective tracking and handling of software issues, enhancements and overall progress. |
| 3 | Sometimes you want to accumulate data from some source while at the same time processing the data that arrived first. The naive way to do it in Python is like this: |
5 | 4 | |
6 | | All aspects of Trac have been designed with the single goal to |
7 | | '''help developers write great software''' while '''staying out of the way''' |
8 | | and imposing as little as possible on a team's established process and |
9 | | culture. |
| 5 | {{{ |
| 6 | def __init__(self): |
| 7 | self.accum = '' # Will hold all unprocessed bytes |
10 | 8 | |
11 | | As all Wiki pages, this page is editable, this means that you can |
12 | | modify the contents of this page simply by using your |
13 | | web-browser. Simply click on the "Edit this page" link at the bottom |
14 | | of the page. WikiFormatting will give you a detailed description of |
15 | | available Wiki formatting commands. |
| 9 | def add_data(self, some_more_data): |
| 10 | # some_more_data is a string |
| 11 | self.accum += some_more_data |
16 | 12 | |
17 | | "[wiki:TracAdmin trac-admin] ''yourenvdir'' initenv" created |
18 | | a new Trac environment, containing a default set of wiki pages and some sample |
19 | | data. This newly created environment also contains |
20 | | [wiki:TracGuide documentation] to help you get started with your project. |
21 | | |
22 | | You can use [wiki:TracAdmin trac-admin] to configure |
23 | | [http://trac.edgewall.org/ Trac] to better fit your project, especially in |
24 | | regard to ''components'', ''versions'' and ''milestones''. |
25 | | |
26 | | |
27 | | TracGuide is a good place to start. |
28 | | |
29 | | Enjoy! [[BR]] |
30 | | ''The Trac Team'' |
| 13 | def process_some(self, how_much): |
| 14 | some = self.accum[:how_much] |
| 15 | del self.accum[:how_much] |
| 16 | }}} |
31 | 17 | |
32 | 18 | == Starting Points == |