Algunos tips para los proyectos con TRAC

Desde hace algunos meses utilizo TRAC para la administrción de mis proyectos personales. Esta página tiene como objetivo guardar un registro de los pasos que debo seguir para crear un nuevo proyecto incluyendo el código fuente en Mercurial.

# trac-admin directorio_del_proyecto initenv

ahora debemos proporcionar el nombre del proyecto:
Nom du projet [My Project]> La2010 for CUDA       
Ahora debemos de dar información sobre la base de datos de TRAC. En nuestra instalación utilizamos PostgreSQL así que como ya está configurado presionamos ENTER sin agregar nada más
Connection à la base de données [sqlite:db/trac.db]> 
A continuación hay que agregar los permisos del administrador
# trac-admin /var/opt/trac/solsys permission add admin TRAC_ADMIN
Despues hacemos un upgrade
# trac-admin /var/opt/trac/solsys upgrade
Finalmente vamos al directorio (si es que hemos hecho otras cosas) y lanzamos el comando:
# cd /var/opt/trac/
# tracd --port 8000 --auth="musym,musym/.htpass,localdomain"  /var/opt/trac/musym/
Y modificamos el archivo /var/opt/trac/solsys/config/trac.ini para que se vea de la siguiente manera:
# -*- coding: utf-8 -*-

[TracPM]
default_estimate = 4.0
estimate_pad = 0.0
hours_per_estimate = 1
milestone_type = milestone
parent_format = %s

[account-manager]
account_changes_notify_addresses = 

[attachment]
max_size = 262144
max_zip_size = 2097152
render_unsafe_content = false

[browser]
color_scale = True
downloadable_paths = /trunk, /branches/*, /tags/*
hide_properties = svk:merge
intermediate_color = 
intermediate_point = 
newest_color = (255, 136, 136)
oldest_color = (136, 136, 255)
oneliner_properties = trac:summary
render_unsafe_content = false
wiki_properties = trac:description

[changeset]
max_diff_bytes = 10000000
max_diff_files = 0
wiki_format_messages = true

[components]
tracext.hg.* = enabled
graphviz.* = enabled
tracopt.ticket.commit_updater.* = enabled
mastertickets.* = enabled
tracjsgantt.* = enabled

[header_logo]
alt = (please configure the [header_logo] section in trac.ini)
height = -1
link = 
src = site/your_project_logo.png
width = -1

[hg]
node_format = short
show_rev = yes

[inherit]
htdocs_dir = 
plugins_dir = 
templates_dir = 

[logging]
log_file = trac.log
log_level = DEBUG
log_type = log

[milestone]
stats_provider = DefaultTicketGroupStatsProvider

[milestone-groups]
closed = closed,rejected
closed.order = 0
closed.css_class = closed
closed.label = closed
closed.overall_completion = true
active = *
active.order = 1
active.css_class = open
active.label = active

[mimeviewer]
max_preview_size = 262144
mime_map = text/x-dylan:dylan, text/x-idl:ice, text/x-ada:ads:adb
mime_map_patterns = text/plain:README|INSTALL|COPYING.*
pygments_default_style = trac
pygments_modes = 
tab_width = 8
treat_as_binary = application/octet-stream, application/pdf, application/postscript, application/msword,application/rtf,

[notification]
admit_domains = 
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = true
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains = 
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc = 
smtp_always_cc = 
smtp_default_domain = 
smtp_enabled = false
smtp_from = trac@localhost
smtp_from_author = false
smtp_from_name = 
smtp_password = 
smtp_port = 25
smtp_replyto = trac@localhost
smtp_server = localhost
smtp_subject_prefix = __default__
smtp_user = 
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = false
use_short_addr = false
use_tls = false

[project]
admin = 
admin_trac_url = .
descr = My example project
footer = Visit the Trac open source project at
http://trac.edgewall.org/ icon = common/trac.ico name = La2010 for CUDA url = [query] default_anonymous_query = status!=closed&cc~=$USER default_query = status!=closed&owner=$USER items_per_page = 100 ticketlink_query = ?status=!closed [report] items_per_page = 100 items_per_page_rss = 0 [revisionlog] default_log_limit = 100 graph_colors = ['#cc0', '#0c0', '#0cc', '#00c', '#c0c', '#c00'] [roadmap] stats_provider = DefaultTicketGroupStatsProvider [search] min_query_length = 3 [tags] listtagged_items_per_page = 100 [ticket] default_cc = default_component = default_description = default_keywords = default_milestone = default_owner = < default > default_priority = major default_resolution = fixed default_severity = default_summary = default_type = defect default_version = max_comment_size = 262144 max_description_size = 262144 preserve_newlines = default restrict_owner = false workflow = ConfigurableTicketWorkflow [ticket-custom] blocking = text blocking.label = Blocking blockedby = text blockedby.label = Blocked By [ticket-workflow] accept = new -> assigned accept.operations = set_owner_to_self accept.permissions = TICKET_MODIFY leave = * -> * leave.default = 1 leave.operations = leave_status reassign = new,assigned,reopened -> new reassign.operations = set_owner reassign.permissions = TICKET_MODIFY reopen = closed -> reopened reopen.operations = del_resolution reopen.permissions = TICKET_CREATE resolve = new,assigned,reopened -> closed resolve.operations = set_resolution resolve.permissions = TICKET_MODIFY [timeline] abbreviated_messages = True changeset_collapse_events = false changeset_long_messages = false changeset_show_files = 0 default_daysback = 30 max_daysback = 90 newticket_formatter = oneliner ticket_show_details = false [trac] authz_file = authz_module_name = auto_preview_timeout = 2.0 auto_reload = False backup_dir = db base_url = database = postgres://hugo:*******@localhost:5432/tracdb debug_sql = False default_charset = utf-8 default_date_format = iso8601 default_dateinfo_format = relative default_handler = WikiModule default_language = default_timezone = Europe/Paris genshi_cache_size = 128 htdocs_location = ignore_auth_case = false jquery_location = jquery_ui_location = jquery_ui_theme_location = mainnav = wiki, timeline, roadmap, browser, tickets, newticket, search metanav = login, logout, prefs, help, about mysqldump_path = mysqldump never_obfuscate_mailto = false permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy permission_store = DefaultPermissionStore pg_dump_path = pg_dump repository_dir = /var/lib/mercurial-server/repos/hugo/solsys repository_sync_per_request = (default) repository_type = hg resizable_textareas = true secure_cookies = False show_email_addresses = false show_ip_addresses = false timeout = 20 use_base_url_for_redirect = False use_xsendfile = false [trac-jsgantt] option.caption = Resource option.colorby = priority option.comp = 1 option.datedisplay = mm/dd/yyyy option.dur = 1 option.enddate = 1 option.expandclosedtickets = 1 option.format = day option.formats = day|week|month|quarter option.hoursperday = 8.0 option.omitmilestones = 0 option.openlevel = 999 option.res = 1 option.sample = 0 option.schedule = alap option.showdep = 1 option.startdate = 1 option.usermap = 1 [versioncontrol] allowed_repository_dir_prefixes = [wiki] ignore_missing_pages = false max_size = 262144 render_unsafe_content = false safe_schemes = cvs, file, ftp, git, irc, http, https, news, sftp, smb, ssh, svn, svn+ssh split_page_names = false

Probablemente algún día expique el contenido del archivo.