Expert Python Programming - ZC Buildout recipe that installs and configures a Trac server.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
This package is part of the Expert Python Programming book written by Tarek Ziadé.
For more information, go to http://atomisator.ziade.org
Change history
0.2.3 (2010-04-24)
Fixed plugins svn paths [tarek]
0.1.0 (2008-06-16)
Created recipe with ZopeSkel [Tarek Ziade].
Detailed Documentation
Example usage
We’ll start by creating a buildout that uses the recipe:
>>> write('buildout.cfg',
... """
... [buildout]
... parts = trac
... index = http://pypi.python.org/simple
...
... [trac]
... recipe = pbp.recipe.trac
... project-name = My project
... project-url = http://example.com
... repos-type = hg
... repos-path = sqlite:${buildout:directory}/var/svn
... buildbot-url = http://buildbot.example.com
... header-logo = ${buildout:directory}/my_logo
... smtp-server = localhost
... smtp-port = 25
... smtp-from = tarek@ziade.org
... smtp-replyto = tarek@ziade.org
... """)
Let’s run the buildout:
>>> res = system(buildout)
This creates a trac instance:
>>> ls(join(sample_buildout, 'parts', 'trac')) - README - VERSION d attachments d conf d db d htdocs d log d plugins d templates
With a trac.ini file. Let’s check its content:
>>> f = join(sample_buildout, 'parts', 'trac', 'conf', 'trac.ini')
>>> from ConfigParser import ConfigParser
>>> parser = ConfigParser()
>>> null = parser.read([f])
>>> parser.get('trac', 'repository_type')
'hg'
>>> parser.get('trac', 'repository_dir')
'/sample-buildout/var/svn'
>>> parser.get('project', 'descr')
'My example project'
>>> parser.get('project', 'name')
'My project'
>>> parser.get('project', 'url')
''
>>> parser.get('components', 'tracext.hg.*')
'enabled'
>>> parser.get('navadd', 'buildbot.url')
'http://buildbot.example.com'
Contributors
Tarek Ziade, Author
Download
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pbp.recipe.trac-0.2.3.tar.gz.
File metadata
- Download URL: pbp.recipe.trac-0.2.3.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a2e3387eda98c2115a5d06aa478240fc47158b68a50dc3c54736b540268d007
|
|
| MD5 |
ff5adf79fb4e9951e41895103515928b
|
|
| BLAKE2b-256 |
ffcc698d21b92024f06c42035ab19335c5140777e1b30c4ac1bbf886140243ce
|