<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sage Trac</title>
	<atom:link href="http://www.sagetrac.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sagetrac.org</link>
	<description>...our random ramblings</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:55:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Trac Plugins</title>
		<link>http://www.sagetrac.org/trac-plugins</link>
		<comments>http://www.sagetrac.org/trac-plugins#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:37:24 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=104</guid>
		<description><![CDATA[To use egg based plugins in Trac, you need to have setuptools (version 0.6) installed. To install setuptools, download the bootstrap module ez_setup.py and execute it as follows: $ python ez_setup.py If the ez_setup.py script fails to install the setuptools release, you can download it from PyPI and install it manually. Plugins can also consist [...]]]></description>
			<content:encoded><![CDATA[<p>To use egg based plugins in Trac, you need to have setuptools<span class="Apple-style-span"> (version 0.6) installed.</span></p>
<div id="main">
<div id="content" class="wiki">
<div class="wikipage searchable">
<p>To install <tt>setuptools</tt>, download the bootstrap module ez_setup.py and execute it as follows:</p>
<pre class="wiki">$ python ez_setup.py</pre>
<p>If the <tt>ez_setup.py</tt> script fails to install the setuptools release, you can download it from PyPI and install it manually.</p>
<p>Plugins can also consist of a single <tt>.py</tt> file dropped into either the environment or global <tt>plugins</tt> directory.</p>
<h2 id="InstallingaTracPlugin">Installing a Trac Plugin</h2>
<h3 id="ForaSingleProject">For a Single Project</h3>
<p>Plugins are packaged as <a class="ext-link" href="http://peak.telecommunity.com/DevCenter/PythonEggs">Python eggs</a>. That means they are ZIP archives with the file extension <tt>.egg</tt>.</p>
<p>If you have downloaded a source distribution of a plugin, and want to build the <tt>.egg</tt> file, follow this instruction:</p>
<ul>
<li>Unpack the source. It should provide a setup.py.</li>
<li>Run:
<pre class="wiki">$ python setup.py bdist_egg</pre>
</li>
</ul>
<p>Then you will have a *.egg file. Examine the output of running python to find where this was created.</p>
<p>Once you have the plugin archive, you need to copy it into the <tt>plugins</tt> directory of the project environment. Also, make sure that the web server has sufficient permissions to read the plugin egg.</p>
<p>To uninstall a plugin installed this way, remove the egg from <tt>plugins</tt> directory and restart web server.</p>
<p>Note that the Python version that the egg is built with must<br />
match the Python version with which Trac is run. If for<br />
instance you are running Trac under Python 2.3, but have<br />
upgraded your standalone Python to 2.4, the eggs won&#8217;t be<br />
recognized.</p>
<p>Note also that in a multi-project setup, a pool of Python interpreter instances will be dynamically allocated to projects based on need, and since plugins occupy a place in Python&#8217;s module system, the first version of any given plugin to be loaded will be used for all the projects. In other words, you cannot use different versions of a single plugin in two projects of a multi-project setup. It may be safer to install plugins for all projects (see below) and then enable them selectively on a project-by-project basis.</p>
<h3 id="ForAllProjects">For All Projects</h3>
<h4 id="Withan.eggfile">With an .egg file</h4>
<p>Some plugins (such as <a class="ext-link" title="SpamFilter in Trac project trac" href="http://trac.edgewall.org/intertrac/SpamFilter">SpamFilter</a>) are downloadable as a <tt>.egg</tt> file which can be installed with the <tt>easy_install</tt> program:</p>
<pre class="wiki">easy_install TracSpamFilter</pre>
<p>If <tt>easy_install</tt> is not on your system see the Requirements section above to install it. Windows users will need to add the <tt>Scripts</tt> directory of their Python installation (for example, <tt>C:\Python23\Scripts</tt>) to their <tt>PATH</tt> environment variable (see easy_install Windows notes for more information).</p>
<p>If Trac reports permission errors after installing a zipped egg and you would rather not bother providing a egg cache directory writable by the web server, you can get around it by simply unzipping the egg. Just pass <tt>--always-unzip</tt> to <tt>easy_install</tt>:</p>
<pre class="wiki">easy_install --always-unzip TracSpamFilter-0.2.1dev_r5943-py2.4.egg</pre>
<p>You should end up with a directory having the same name as the zipped egg (complete with <tt>.egg</tt> extension) and containing its uncompressed contents.</p>
<p>Trac also searches for globally installed plugins.</p>
<h4 id="Fromsource">From source</h4>
<p><tt>easy_install</tt> makes installing from source a snap. Just give it the URL to either a Subversion repository or a tarball/zip of the source:</p>
<pre class="wiki">easy_install http://svn.edgewall.com/repos/trac/sandbox/spam-filter</pre>
<h4 id="Enablingtheplugin">Enabling the plugin</h4>
<p>Unlike plugins installed per-environment, you&#8217;ll have to explicitly enable globally installed plugins via trac.ini. This also applies to plugins installed in the path specified in the <tt>[inherit] plugins_dir</tt> configuration option. This is done in the <tt>[components]</tt> section of the configuration file, for example:</p>
<pre class="wiki">[components]
tracspamfilter.* = enabled</pre>
<p>The name of the option is the Python package of the plugin. This should be specified in the documentation of the plugin, but can also be easily discovered by looking at the source (look for a top-level directory that contains a file named <tt>__init__.py</tt>.)</p>
<p>Note: After installing the plugin, you need to restart your web server.</p>
<h4 id="Uninstalling">Uninstalling</h4>
<p><tt>easy_install</tt> or <tt>python setup.py</tt> does not have an uninstall feature. Hower, it is usually quite trivial to remove a globally installed egg and reference:</p>
<ol>
<li>Do <tt>easy_install -m [plugin name]</tt> to remove references from <tt>$PYTHONLIB/site-packages/easy-install.pth</tt> when the plugin installed by setuptools.</li>
<li>Delete executables from <tt>/usr/bin</tt>, <tt>/usr/local/bin</tt> or <tt>C:\\Python*\Scripts</tt>. For search what executables are there, you may refer to <tt>[console-script]</tt> section of <tt>setup.py</tt>.</li>
<li>Delete the .egg file or folder from where it is installed, usually inside <tt>$PYTHONLIB/site-packages/</tt>.</li>
<li>Restart web server.</li>
</ol>
<p>If you are uncertain about the location of the egg, here is a small tip to help locate an egg (or any package) &#8211; replace <tt>myplugin</tt> with whatever namespace the plugin uses (as used when enabling the plugin):</p>
<pre class="wiki">&gt;&gt;&gt; import myplugin
&gt;&gt;&gt; print myplugin.__file__
/opt/local/python24/lib/site-packages/myplugin-0.4.2-py2.4.egg/myplugin/__init__.pyc</pre>
<h2 id="SettingupthePluginCache">Setting up the Plugin Cache</h2>
<p>Some plugins will need to be extracted by the Python eggs runtime (<tt>pkg_resources</tt>), so that their contents are actual files on the file system. The directory in which they are extracted defaults to &#8216;.python-eggs&#8217; in the home directory of the current user, which may or may not be a problem. You can however override the default location using the <tt>PYTHON_EGG_CACHE</tt> environment variable.</p>
<p>To do this from the Apache configuration, use the <tt>SetEnv</tt> directive as follows:</p>
<pre class="wiki">SetEnv PYTHON_EGG_CACHE /path/to/dir</pre>
<p>This works whether you are using the CGI or the mod_python front-end. Put this directive next to where you set the path to the Trac environment, i.e. in the same <tt>&lt;Location&gt;</tt> block.</p>
<p>For example (for CGI):</p>
<pre class="wiki"> &lt;Location /trac&gt;
   SetEnv TRAC_ENV /path/to/projenv
   SetEnv PYTHON_EGG_CACHE /path/to/dir
 &lt;/Location&gt;</pre>
<p>or (for mod_python):</p>
<pre class="wiki"> &lt;Location /trac&gt;
   SetHandler mod_python
   ...
   SetEnv PYTHON_EGG_CACHE /path/to/dir
 &lt;/Location&gt;</pre>
<blockquote><p><em>Note: SetEnv requires the <tt>mod_env</tt> module which needs to be activated for Apache. In this case the SetEnv directive can also be used in the <tt>mod_python</tt> Location block.</em></p></blockquote>
<p>For FastCGI, you&#8217;ll need to <tt>-initial-env</tt> option, or whatever is provided by your web server for setting environment variables.</p>
<blockquote><p><em>Note: that if you already use -initial-env to set the project directory for either a single project or parent you will need to add an additional -initial-env directive to the FastCgiConfig directive. I.e.<br />
</em></p></blockquote>
<pre class="wiki">FastCgiConfig -initial-env TRAC_ENV=/var/lib/trac -initial-env PYTHON_EGG_CACHE=/var/lib/trac/plugin-cache</pre>
<h3 id="Abouthookscripts">About hook scripts</h3>
<p>If you have set up some subversion hook scripts that call the Trac engine &#8211; such as the post-commit hook script provided in the <tt>/contrib</tt> directory &#8211; make sure you define the <tt>PYTHON_EGG_CACHE</tt> environment variable within these scripts as well.</p>
<h2 id="Troubleshooting">Troubleshooting</h2>
<h3 id="Issetuptoolsproperlyinstalled">Is setuptools properly installed?</h3>
<p>Try this from the command line:</p>
<pre class="wiki">$ python -c "import pkg_resources"</pre>
<p>If you get <strong>no output</strong>, setuptools <strong>is</strong> installed. Otherwise, you&#8217;ll need to install it before plugins will work in Trac.</p>
<h3 id="DidyougetthecorrectversionofthePythonegg">Did you get the correct version of the Python egg?</h3>
<p>Python eggs have the Python version encoded in their filename. For example, <tt>MyPlugin-1.0-py2.4.egg</tt> is an egg for Python 2.4, and will <strong>not</strong> be loaded if you&#8217;re running a different Python version (such as 2.3 or 2.5).</p>
<p>Also, verify that the egg file you downloaded is indeed a ZIP archive. If you downloaded it from a Trac site, chances are you downloaded the HTML preview page instead.</p>
<h3 id="Isthepluginenabled">Is the plugin enabled?</h3>
<p>If you install a plugin globally (i.e. <em>not</em> inside the <tt>plugins</tt> directory of the Trac project environment) you will have to explicitly enable it in trac.ini. Make sure that:</p>
<ul>
<ul>
<li>you actually added the necessary line(s) to the <tt>[components]</tt> section</li>
<li>the package/module names are correct</li>
</ul>
</ul>
<p>li&gt;the value is “enabled&#8221;, not e.g. “enable”</p>
<h3 id="Checkthepermissionsontheeggfile">Check the permissions on the egg file</h3>
<p>Trac must be able to read the file.</p>
<h3 id="Checkthelogfiles">Check the log files</h3>
<p>Enable logging and set the log level to <tt>DEBUG</tt>, then watch the log file for messages about loading plugins.</p>
<h3 id="Verifyyouhaveproperpermissions">Verify you have proper permissions</h3>
<p>Some plugins require you have special permissions in order to use them. WebAdmin, for example, requires the user to have TRAC_ADMIN permissions for it to show up on the navigation bar.</p>
<h3 id="Isthewrongversionofthepluginloading">Is the wrong version of the plugin loading?</h3>
<p>If you put your plugins inside plugins directories, and certainly if you have more than one project, you need to make sure that the correct version of the plugin is loading. Here are some basic rules:</p>
<ul>
<li>Only one version of the plugin can be loaded for each running Trac server (ie. each Python process). The Python namespaces and module list will be shared, and it cannot handle duplicates. Whether a plugin is <tt>enabled</tt> or <tt>disabled</tt> makes no difference.</li>
<li>A globally installed plugin (typically <tt>setup.py install</tt>) will override any version in global or project plugins directories. A plugin from the global plugins directory will be located before any project plugins directory.</li>
<li>If your Trac server hosts more than one project (as with <tt>TRAC_ENV_PARENT_DIR</tt> setups), then having two versions of a plugin in two different projects will give uncertain results. Only one of them will load, and the one loaded will be shared by both projects. Trac will load the first found &#8211; basically from the project that receives the first request.</li>
<li>Having more than one version listed inside Python site-packages is fine (ie. installed with <tt>setup.py install</tt>) &#8211; setuptools will make sure you get the version installed most recently. However, don&#8217;t store more than one version inside a global or project plugins directory &#8211; neither version number nor installed date will matter at all. There is no way to determine which one will be located first when Trac searches the directory for plugins.</li>
</ul>
<h3 id="Ifalloftheabovefailed">If all of the above failed</h3>
<p>OK, so the logs don&#8217;t mention plugins, the egg is readable, the python version is correct <em>and</em> the egg has been installed globally (and is enabled in the trac.ini) and it still doesn&#8217;t work or give any error messages or any other indication as to why? Hop on the <a class="ext-link" title="IrcChannel in Trac project trac" href="http://trac.edgewall.org/intertrac/IrcChannel">IrcChannel</a> and ask away.</p>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/trac-plugins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trac Flow Work</title>
		<link>http://www.sagetrac.org/trac-flow-work</link>
		<comments>http://www.sagetrac.org/trac-flow-work#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:36:19 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=101</guid>
		<description><![CDATA[Environments upgraded from 0.10 When you run trac-admin &#60;env&#62; upgrade, your trac.ini will be modified to include a [ticket-workflow] section. The workflow configured in this case is the original workflow, so that ticket actions will behave like they did in 0.10. There are some significant &#8220;warts&#8221; in this; such as accepting a ticket sets it [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">Environments upgraded from 0.10</span></p>
<div id="main">
<div id="content" class="wiki">
<div class="wikipage searchable">
<p>When you run <tt>trac-admin &lt;env&gt; upgrade</tt>, your <tt>trac.ini</tt> will be modified to include a <tt>[ticket-workflow]</tt> section.<br />
The workflow configured in this case is the original workflow, so that ticket actions will behave like they did in 0.10.</p>
<p>There are some significant &#8220;warts&#8221; in this; such as accepting a ticket sets it to &#8216;assigned&#8217; state, and assigning a ticket sets it to &#8216;new&#8217; state. Perfectly obvious, right?<br />
So you will probably want to migrate to &#8220;basic&#8221; workflow; contrib/workflow/migrate_original_to_basic.py may be helpful.</p>
<h3 id="Environmentscreatedwith0.11">Environments created with 0.11</h3>
<p>When a new environment is created, a default workflow is configured in your trac.ini. This workflow is the basic workflow (described in <tt>basic-workflow.ini</tt>), which is somewhat different from the workflow of the 0.10 releases.</p>
<h2 id="AdditionalTicketWorkflows">Additional Ticket Workflows</h2>
<p>There are several example workflows provided in the Trac source tree; look in contrib/workflow for <tt>.ini</tt> config sections. One of those may be a good match for what you want. They can be pasted into the <tt>[ticket-workflow]</tt> section of your <tt>trac.ini</tt> file.</p>
<p>Here are some diagrams of the above examples.</p>
<h2 id="BasicTicketWorkflowCustomization">Basic Ticket Workflow Customization</h2>
<p>Note: Ticket &#8220;statuses&#8221; or &#8220;states&#8221; are not separately defined. The states a ticket can be in are automatically generated by the transitions defined in a workflow. Therefore, creating a new ticket state simply requires defining a state transition in the workflow that starts or ends with that state.</p>
<p>Create a <tt>[ticket-workflow]</tt> section in <tt>trac.ini</tt>.<br />
Within this section, each entry is an action that may be taken on a ticket.<br />
For example, consider the <tt>accept</tt> action from <tt>simple-workflow.ini</tt>:</p>
<pre class="wiki">accept = new,accepted -&gt; accepted
accept.permissions = TICKET_MODIFY
accept.operations = set_owner_to_self</pre>
<p>The first line in this example defines the <tt>accept</tt> action, along with the states the action is valid in (<tt>new</tt> and <tt>accepted</tt>), and the new state of the ticket when the action is taken (<tt>accepted</tt>).<br />
The <tt>accept.permissions</tt> line specifies what permissions the user must have to use this action.<br />
The <tt>accept.operations</tt> line specifies changes that will be made to the ticket in addition to the status change when this action is taken. In this case, when a user clicks on <tt>accept</tt>, the ticket owner field is updated to the logged in user. Multiple operations may be specified in a comma separated list.</p>
<p>The available operations are:</p>
<ul>
<li>del_owner &#8212; Clear the owner field.</li>
<li>set_owner &#8212; Sets the owner to the selected or entered owner.
<ul>
<li><em>actionname</em><tt>.set_owner</tt> may optionally be set to a comma delimited list or a single value.</li>
</ul>
</li>
<li>set_owner_to_self &#8212; Sets the owner to the logged in user.</li>
<li>del_resolution &#8212; Clears the resolution field</li>
<li>set_resolution &#8212; Sets the resolution to the selected value.
<ul>
<li><em>actionname</em><tt>.set_resolution</tt>may optionally be set to a comma delimited list or a single value.
<pre class="wiki">Example:

resolve_new = new -&gt; closed
resolve_new.name = resolve
resolve_new.operations = set_resolution
resolve_new.permissions = TICKET_MODIFY
resolve_new.set_resolution = invalid,wontfix</pre>
</li>
</ul>
</li>
<li>leave_status &#8212; Displays &#8220;leave as &lt;current status&gt;&#8221; and makes no change to the ticket.</li>
</ul>
<p><strong>Note:</strong> Specifying conflicting operations (such as <tt>set_owner</tt> and <tt>del_owner</tt>) has unspecified results.</p>
<pre class="wiki">resolve_accepted = accepted -&gt; closed
resolve_accepted.name = resolve
resolve_accepted.permissions = TICKET_MODIFY
resolve_accepted.operations = set_resolution</pre>
<p>In this example, we see the <tt>.name</tt> attribute used. The action here is <tt>resolve_accepted</tt>, but it will be presented to the user as <tt>resolve</tt>.</p>
<p>For actions that should be available in all states, <tt>*</tt> may be used in place of the state. The obvious example is the <tt>leave</tt> action:</p>
<pre class="wiki">leave = * -&gt; *
leave.operations = leave_status
leave.default = 1</pre>
<p>This also shows the use of the <tt>.default</tt> attribute. This value is expected to be an integer, and the order in which the actions are displayed is determined by this value. The action with the highest <tt>.default</tt> value is listed first, and is selected by default. The rest of the actions are listed in order of decreasing <tt>.default</tt> values.<br />
If not specified for an action, <tt>.default</tt> is 0. The value may be negative.</p>
<p>There are a couple of hard-coded constraints to the workflow. In particular, tickets are created with status <tt>new</tt>, and tickets are expected to have a <tt>closed</tt> state. Further, the default reports/queries treat any state other than <tt>closed</tt> as an open state.</p>
<p>While creating or modifying a ticket workfow, <tt>contrib/workflow/workflow_parser.py</tt> may be useful. It can create <tt>.dot</tt> files that <a class="ext-link" href="http://www.graphviz.org/">GraphViz</a> understands to provide a visual description of the workflow.</p>
<p>This can be done as follows (your install path may be different).</p>
<pre class="wiki">cd /var/local/trac_devel/contrib/workflow/
sudo ./showworkflow /srv/trac/PlannerSuite/conf/trac.ini</pre>
<p>And then open up the resulting <tt>trac.pdf</tt> file created by the script (it will be in the same directory as the <tt>trac.ini</tt> file).</p>
<p>After you have changed a workflow, you need to restart apache for the changes to take effect. This is important, because the changes will still show up when you run your script, but all the old workflow steps will still be there until the server is restarted.</p>
<h2 id="Example:AddingoptionalTestingwithWorkflow">Example: Adding optional Testing with Workflow</h2>
<p>By adding the following to your [ticket-workflow] section of trac.ini you get optional testing. When the ticket is in new, accepted or needs_work status you can choose to submit it for testing. When it&#8217;s in the testing status the user gets the option to reject it and send it back to needs_work, or pass the testing and send it along to closed. If they accept it then it gets automatically marked as closed and the resolution is set to fixed. Since all the old work flow remains, a ticket can skip this entire section.</p>
<pre class="wiki">testing = new,accepted,needs_work,assigned,reopened -&gt; testing
testing.name = Submit to reporter for testing
testing.permissions = TICKET_MODIFY

reject = testing -&gt; needs_work
reject.name = Failed testing, return to developer

pass = testing -&gt; closed
pass.name = Passes Testing
pass.operations = set_resolution
pass.set_resolution = fixed</pre>
<h2 id="Example:Addsimpleoptionalgenericreviewstate">Example: Add simple optional generic review state</h2>
<p>Sometimes Trac is used in situations where &#8220;testing&#8221; can mean different things to different people so you may want to create an optional workflow state that is between the default workflow&#8217;s <tt>assigned</tt> and <tt>closed</tt> states, but does not impose implementation-specific details. The only new state you need to add for this is a <tt>reviewing</tt> state. A ticket may then be &#8220;submitted for review&#8221; from any state that it can be reassigned. If a review passes, you can re-use the <tt>resolve</tt> action to close the ticket, and if it fails you can re-use the <tt>reassign</tt> action to push it back into the normal workflow.</p>
<p>The new <tt>reviewing</tt> state along with its associated <tt>review</tt> action looks like this:</p>
<pre class="wiki">review = new,assigned,reopened -&gt; reviewing
review.operations = set_owner
review.permissions = TICKET_MODIFY</pre>
<p>Then, to integrate this with the default Trac 0.11 workflow, you also need to add the <tt>reviewing</tt> state to the <tt>accept</tt> and <tt>resolve</tt> actions, like so:</p>
<pre class="wiki">accept = new,reviewing -&gt; assigned
[…]
resolve = new,assigned,reopened,reviewing -&gt; closed</pre>
<p>Optionally, you can also add a new action that allows you to change the ticket&#8217;s owner without moving the ticket out of the <tt>reviewing</tt> state. This enables you to reassign review work without pushing the ticket back to the <tt>new</tt> status.</p>
<pre class="wiki">reassign_reviewing = reviewing -&gt; *
reassign_reviewing.name = reassign review
reassign_reviewing.operations = set_owner
reassign_reviewing.permissions = TICKET_MODIFY</pre>
<p>The full <tt>[ticket-workflow]</tt> configuration will thus look like this:</p>
<pre class="wiki">[ticket-workflow]
accept = new,reviewing -&gt; assigned
accept.operations = set_owner_to_self
accept.permissions = TICKET_MODIFY
leave = * -&gt; *
leave.default = 1
leave.operations = leave_status
reassign = new,assigned,reopened -&gt; new
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY
reopen = closed -&gt; reopened
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE
resolve = new,assigned,reopened,reviewing -&gt; closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY
review = new,assigned,reopened -&gt; reviewing
review.operations = set_owner
review.permissions = TICKET_MODIFY
reassign_reviewing = reviewing -&gt; *
reassign_reviewing.operations = set_owner
reassign_reviewing.name = reassign review
reassign_reviewing.permissions = TICKET_MODIFY</pre>
<h2 id="Example:Limittheresolutionoptionsforanewticket">Example: Limit the resolution options for a new ticket</h2>
<p>The above resolve_new operation allows you to set the possible resolutions for a new ticket. By modifying the existing resolve action and removing the new status from before the <tt>-&gt;</tt> we then get two resolve actions. One with limited resolutions for new tickets, and then the regular one once a ticket is accepted.</p>
<pre class="wiki">resolve_new = new -&gt; closed
resolve_new.name = resolve
resolve_new.operations = set_resolution
resolve_new.permissions = TICKET_MODIFY
resolve_new.set_resolution = invalid,wontfix,duplicate

resolve = assigned,accepted,reopened -&gt; closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY</pre>
<h2 id="AdvancedTicketWorkflowCustomization">Advanced Ticket Workflow Customization</h2>
<p>If the customization above is not extensive enough for your needs, you can extend the workflow using plugins. These plugins can provide additional operations for the workflow (like code_review), or implement side-effects for an action (such as triggering a build) that may not be merely simple state changes. Look at sample-plugins/workflow for a few simple examples to get started.</p>
<p>But if even that is not enough, you can disable the ConfigurableTicketWorkflow component and create a plugin that completely replaces it.</p>
<h2 id="AddingWorkflowStatestoMilestoneProgressBars">Adding Workflow States to Milestone Progress Bars</h2>
<p>If you add additional states to your workflow, you may want to customize your milestone progress bars as well. See TracIni.</p>
<h2 id="someideasfornextsteps">some ideas for next steps</h2>
<p>New enhancement ideas for the workflow system should be filed as enhancement tickets against the <tt>ticket system</tt> component. If desired, add a single-line link to that ticket here. Also look at the [th:wiki:AdvancedTicketWorkflowPlugin] as it provides experimental operations.</p>
<p>If you have a response to the comments below, create an enhancement ticket, and replace the description below with a link to the ticket.</p>
<ul>
<li>the &#8220;operation&#8221; could be on the nodes, possible operations are:
<ul>
<li><strong>preops</strong>: automatic, before entering the state/activity</li>
<li><strong>postops</strong>: automatic, when leaving the state/activity</li>
<li><strong>actions</strong>: can be chosen by the owner in the list at the bottom, and/or drop-down/pop-up together with the default actions of leaving the node on one of the arrows.</li>
</ul>
</li>
</ul>
<p><em>This appears to add complexity without adding functionality; please provide a detailed example where these additions allow something currently impossible to implement.</em></p>
<ul>
<li>operations could be anything: sum up the time used for the activity, or just write some statistical fields like</li>
</ul>
<p><em>A workflow plugin can add an arbitrary workflow operation, so this is already possible.</em></p>
<ul>
<li>set_actor should be an operation allowing to set the owner, e.g. as a &#8220;preop&#8221;:
<ul>
<li>either to a role, a person</li>
<li>entered fix at define time, or at run time, e.g. out of a field, or select.</li>
</ul>
</li>
</ul>
<p><em>This is either duplicating the existing <tt>set_owner</tt> operation, or needs to be clarified.</em></p>
<ul>
<li>Actions should be selectable based on the ticket type (different Workflows for different tickets)</li>
</ul>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/trac-flow-work/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bakers, Chefs, Cooks &#8211; Oh My!</title>
		<link>http://www.sagetrac.org/bakers-chefs-cooks-oh-my</link>
		<comments>http://www.sagetrac.org/bakers-chefs-cooks-oh-my#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:32:56 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=95</guid>
		<description><![CDATA[Bakers love to use shortcuts to make their baking easier, but there is a genuine lack of satisfaction if your creations aren’t 100% made from scratch. This is why searching for and using cake recipes on Recipe Bridge can be the most rewarding baking experience. From the basic sponge cake, to the seven tiered wedding [...]]]></description>
			<content:encoded><![CDATA[<p>Bakers love to use shortcuts to make their baking easier, but there is a genuine lack of satisfaction if your creations aren’t 100% made from scratch. This is why searching for and using <a title="cake recipes from scratch" href="http://www.recipebridge.com/r/cake-recipes">cake recipes</a> on Recipe Bridge can be the most rewarding baking experience.</p>
<p>From the basic sponge cake, to the seven tiered wedding cake, to the savory fish cake – all recipes come with clear and specific instructions designed to make the whole cake-baking experience so much simpler.</p>
<p>If you are a beginner, first try making some Rock Cakes. They are simple, don’t take long to bake, are great to share and are absolutely delicious. All you need is self raising flour, egg, sugar, milk, mixed spice, butter and currants. The dough for these cakes is easy to make and can be formed into whatever size cake you like. They only take 10-15 minutes to bake and are perfect served with a hot cup of tea as an afternoon treat to keep those hunger pangs at bay!</p>
<p>During the festive season, it is the perfect time to try and make a Traditional Christmas Cake. Not only is this creation packed full of booze and loads of seasonal fruits, the mixed spice and cinnamon that go into it give it a rich yet warming winter flavor. It can take 2 ½ to 3 hours to bake but if you have taken the time to do it properly and have topped it with melted chocolate; it will be well worth the wait.</p>
<p>If you are looking for something more complicated still, try a <a title="recipe search" href="http://www.recipebridge.com">recipe search</a> for the lightly textured Sponge Cake. Although a recipe such as this requires a lot of whisking and patience to ensure you get the right texture for each layer, the result is a phenomenally sweet yet delightful dessert which can be served with all the family at large gatherings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/bakers-chefs-cooks-oh-my/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Pumped, Ripped &amp; Ready for Summer</title>
		<link>http://www.sagetrac.org/get-pumped-ripped-ready-for-summer</link>
		<comments>http://www.sagetrac.org/get-pumped-ripped-ready-for-summer#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:31:23 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=127</guid>
		<description><![CDATA[Body building is not just about looking good but also being able to push yourself and enhance your strength. The best bodybuilding supplements for building muscle can help you boost your levels of endurance whilst simultaneously building muscle and therefore strength. Vigorous exercise can take its toll on your body, so it is important to [...]]]></description>
			<content:encoded><![CDATA[<p>Body building is not just about looking good but also being able to push yourself and enhance your strength. The best <a title="bodybuilding supplements" href="http://www.crazymuscle.com">bodybuilding supplements</a> for building muscle can help you boost your levels of endurance whilst simultaneously building muscle and therefore strength. Vigorous exercise can take its toll on your body, so it is important to use muscle mass supplements to keep yourself healthy and your muscles well supported.</p>
<p>Muscle supplements, such as <a title="Kynoselen" href="http://www.crazymuscle.com/products/injectables/kynoselen">Kynoselen</a> and <a title="Parabol" href="http://www.crazymuscle.com/products/bulk-mass-supplements/parabol">Parabol</a> can be taken with meals and are convenient for fitting into your exercise regime and diet plans. Usually found in tablet form, supplements for muscle building are easy to consume and can be taken with you to work or when you’re at the gym.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/get-pumped-ripped-ready-for-summer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advertising Right, the First Time</title>
		<link>http://www.sagetrac.org/advertising-right-the-first-time</link>
		<comments>http://www.sagetrac.org/advertising-right-the-first-time#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:29:46 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=91</guid>
		<description><![CDATA[Depending on the types of advertising ideas you employ to make an effective advertising campaign, you will know that online advertising has recently proven to be a much more valuable way of promoting your product, brand, or company. With the growth of the internet has come the growth of internet advertising including CPM (Click Per [...]]]></description>
			<content:encoded><![CDATA[<p>Depending on the types of <a title="advertising ideas" href="http://www.gourmetads.com/blog/food-advertising-ideas">advertising ideas</a> you employ to make an effective advertising campaign, you will know that online advertising has recently proven to be a much more valuable way of promoting your product, brand, or company.</p>
<p>With the growth of the internet has come the growth of internet advertising including CPM (Click Per Impression) advertising and Private Exchanges. Where traditional forms of marketing can be expensive and not totally effective, different forms of internet marketing are not only cheaper than traditional media, but they are also a lot more efficient.</p>
<p>The idea of <a title="cpm advertising" href="http://www.gourmetads.com">cpm advertising</a> is to pay per one thousand ‘impressions’ on an internet ad. Using geographical analytics, certain adverts can be displayed to specific demographics so that adverts that get clicks can generate revenue.</p>
<p>As well as CPM advertising, Private Exchanges have also gained popularity amongst publishers and advertisers over the past year. A <a title="private exchange" href="http://www.gourmetads.com/solutions/private-ad-exchange">private exchange</a> is a marketing platform where Real Time Bidding (RTB) can take place between both publishers and advertisers. Publishers can use these platforms to target specific buyers and use these marketplaces as a way to sell on unsold inventory i.e. advertising spaces.</p>
<p>A private exchange allows publishers more control than an open exchange – open exchanges can mean that any advertiser has the possibility of purchasing your inventory. However, a private exchange allows the publisher to privately sell specific inventory to relevant advertisers and control the price. For example, a food publisher with many associate sites may have spare inventory left to fill; with this in mind, the space can be filled by an advertiser’s food product or recipe book etc.</p>
<p>Along with banner ads, pre roll video advertising, mobile advertising and social network advertising, both CPM and private exchange have proven to be amongst the most popular <a title="advertising trends" href="http://www.gourmetads.com/blog/advertising-trends-2011">advertising trends</a> of 2011. With the ever growing use of the internet, next year is sure to bring up many new media marketing methods.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/advertising-right-the-first-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Foreclosure Help</title>
		<link>http://www.sagetrac.org/how-to-get-foreclosure-help</link>
		<comments>http://www.sagetrac.org/how-to-get-foreclosure-help#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:28:48 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=89</guid>
		<description><![CDATA[There are a few different stages of foreclosure. This is the process that can occur when a homeowner fails to pay his or her mortgage on time or in full. Not being able to pay is often not the owner’s fault and can be the result of death, divorce, or unemployment. If a homeowner fails [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few different stages of foreclosure. This is the process that can occur when a homeowner fails to pay his or her mortgage on time or in full. Not being able to pay is often not the owner’s fault and can be the result of death, divorce, or unemployment. If a homeowner fails to make the first payment but then manages to get up to date with payments soon after, the foreclosure process need not go ahead.</p>
<p>Many <a title="foreclosure laws" href="http://www.foreclosurelawyers.com">foreclosure laws</a> can vary from state to state, but one of the general laws is that when a payment isn’t made, a lender gives the homeowner 90 days to make a payment. If this payment demand is ignored and not met, then proceedings begin shortly afterwards.</p>
<p>Some extreme cases will see people being evicted from their homes, so to avoid this extremity many people hire a reliable foreclosure lawyer to get them through the proceedings. These lawyers can then assist the homeowner with negotiations for an alternative payment plan that will suit both parties – the owner can then keep their house and the lender can still benefit from payment (albeit a different contract to the original one).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/how-to-get-foreclosure-help/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We Love our Dogs</title>
		<link>http://www.sagetrac.org/we-love-our-dogs</link>
		<comments>http://www.sagetrac.org/we-love-our-dogs#comments</comments>
		<pubDate>Wed, 21 Dec 2011 17:28:07 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=76</guid>
		<description><![CDATA[Ideal for training your dog, pet containment systems have gained popularity over the past few years due to their effective and humane training method. With an electric fence for dogs or cats, you can keep your pet safe within a space without totally restricting their movement. Training your cat or dog to stay in your [...]]]></description>
			<content:encoded><![CDATA[<p>Ideal for training your dog, pet containment systems have gained popularity over the past few years due to their effective and humane training method. With an <a title="electric fence for dogs" href="http://www.dogguard.com">electric fence for dogs</a> or cats, you can keep your pet safe within a space without totally restricting their movement.</p>
<p>Training your cat or dog to stay in your front or back yard can be difficult, especially if they like to break the rules! Even when you have taught them to stay within a particular space, it can then be difficult to teach them that jumping in your pool, burying things in the sandbox or digging up your vegetable patch is wrong.</p>
<p>A <a title="dog fence wireless" href="http://www.dogguard.com/products/pet-containment/system-overview">dog fence wireless</a> system can come either with or without a wire that you bury around the perimeters of your home. Some wireless systems simply send out a signal which sends a correction to the receiver on your dog or cat’s collar when they go out of their designated area.</p>
<p>The correction is no more than a mild electric shock (similar to the feeling you get with static) although this is seen to be cruel by some, it is genuinely not painful to your pet. As cats are smaller animals, even less severe corrections are sent to the cat’s collar when using a <a title="cat fencing" href="http://www.dogguard.com/products/pet-containment/cat-and-small-animals">cat fence</a> system.</p>
<p>Keep your pet safe in a cost effective and humane way by using a wireless pet fence – it is the best training method you could employ.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/we-love-our-dogs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time for a Massage</title>
		<link>http://www.sagetrac.org/time-for-a-massage</link>
		<comments>http://www.sagetrac.org/time-for-a-massage#comments</comments>
		<pubDate>Wed, 21 Dec 2011 16:19:45 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=114</guid>
		<description><![CDATA[Often used for treating both upper and lower back pain, chiropractic massages have also been known to treat other ailments as well. A Bellevue chiropractor is a medical expert who is trained in the field of spine manipulation where they use their hands to massage areas around the spine. An Issaquah massage can loosen tense [...]]]></description>
			<content:encoded><![CDATA[<p>Often used for treating both upper and lower back pain, chiropractic massages have also been known to treat other ailments as well. A <a href="http://www.chosenchiropractic.com" title="Bellevue chiropractor">Bellevue chiropractor</a> is a medical expert who is trained in the field of spine manipulation where they use their hands to massage areas around the spine.</p>
<p>An <a title="Issaquah massage" href="http://www.myspine.us">Issaquah massage</a> can loosen tense back muscles which can mean that you can move with more ease so that you feel more relaxed overall. The idea of chiropractic care is mainly about relieving the pressure in your muscles. By stimulating your muscles with a relaxing chiropractic massage, your circulation can improve and oxygen can flow better around your body – which is great for keeping your brain alert as this can improve your mental capacity too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/time-for-a-massage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Thanksgiving everybody!</title>
		<link>http://www.sagetrac.org/happy-thanksgiving-everybody</link>
		<comments>http://www.sagetrac.org/happy-thanksgiving-everybody#comments</comments>
		<pubDate>Mon, 21 Nov 2011 01:16:09 +0000</pubDate>
		<dc:creator>SageTrac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sagetrac.org/?p=81</guid>
		<description><![CDATA[Less than one week to go! I&#8217;ve been tasked with the dessert this year, so I thought it would be a good idea to talk about my plan of attack. The pumpkin pie has been a traditional American dish practically ever since the invention of the pumpkin! This pastry covered delight has become a meal [...]]]></description>
			<content:encoded><![CDATA[<p>Less than one week to go! I&#8217;ve been tasked with the dessert this year, so I thought it would be a good idea to talk about my plan of attack.</p>
<p>The pumpkin pie has been a traditional American dish practically ever since the invention of the pumpkin! This pastry covered delight has become a meal baked not only at Halloween, a time of year when pumpkins take on the form of scary orange lanterns, but also all throughout the season. The pumpkin pie can be dated all the way back to the first English settlers that&#8230;haha did you think I would go on with all of this history???</p>
<p>I think a pumpkin pie dessert will be too traditional for my blood, so I think I will go with something very unconventional and make a chocolate cake infused with graham crackers and marshmallow fondant. I looked at many different recipes, but this is the best <a title="Fondant recipe" href="http://www.recipebridge.com/r/fondant-recipes" target="_blank">fondant recipe</a> that I found. Let&#8217;s hope it goes well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sagetrac.org/happy-thanksgiving-everybody/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

