|
------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Tue, 20 Dec, 12:56 |
| <br...@iterative.com> |
lt;span class="cx"> def __str__(self):
</span><span class="cx"> return self.msg % {'cell_description' : self.cell_description,
</span><span class="cx"> 'cell_value' : self.cell_value}
</span><ins>+
+
+#### Utility #####
+
+class Viewer(trellis.Component):
+ component = trellis.attr(None)
+ cell_name = trellis.attr(None)
+
+ @trellis.perform
+ def view_it(self):
+ value = getattr(self.component, self.cell_name, None)
+ if None not in (self.component, self.cell_name, value):
+ print &quot;%s changed to: %s&quot; % (self.cell_name, value)
</ins></span></pre></div>
<a id="trunkChandlerPlatformchandlertime_servicespy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/time_services.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -32,16 +32,21 @@
</span><span class="cx"> tz = TimeZone.default
</span><span class="cx"> return datetime.fromtimestamp(activity.Time._now, tz)
</span><span class="cx">
</span><ins>+def timestamp(dt):
+ # timegm returns an int number of seconds, which is probably good
+ # enough for our purposes, but make tests expect a float, in
+ # case we decide to replace it with something with a little more
+ # resolution
+ return float(timegm(dt.astimezone(TimeZone.utc).timetuple()))
+
</ins><span class="cx"> def setNow(dt):
</span><span class="cx"> if dt is not None and dt.tzinfo is None:
</span><span class="cx"> dt = dt.replace(tzinfo=ICUtzinfo.default)
</span><span class="cx">
</span><del>- timetuple = dt.astimezone(TimeZone.utc).timetuple()
-
</del><span class="cx"> # this ignores calendar.timegm (or time.mktime) range limits and
</span><span class="cx"> # MAXYEAR/MINYEAR, since a now timestamp really shouldn't be outside those
</span><span class="cx"> # ranges
</span><del>- new_timestamp = timegm(timetuple)
</del><ins>+ new_timestamp = timestamp(dt)
</ins><span class="cx">
</span><span class="cx"> activity.Time.auto_update = False
</span><span class="cx"> activity.Time.advance(new_timestamp - activity.Time._now)
</span><span class="lines">@@ -54,7 +59,6 @@
</span><span class="cx"> &quot;&quot;&quot;The number of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Sat, 22 Apr, 09:40 |
| <jgreen6...@yahoo.com> |
lt;span class="info">--- trunk/Chandler-App/chandler/event.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-App/chandler/event.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -1,14 +1,16 @@
</span><span class="cx"> from datetime import datetime, timedelta, time
</span><span class="cx"> import peak.events.trellis as trellis
</span><ins>+import peak.events.activity as activity
</ins><span class="cx"> from peak.util.addons import AddOn
</span><span class="cx">
</span><span class="cx"> from chandler.core import *
</span><del>-from chandler.time_services import TimeZone
</del><ins>+from chandler.time_services import TimeZone, timestamp, nowTimestamp
+from chandler.triage import Triage, NOW, LATER
</ins><span class="cx">
</span><del>-
</del><span class="cx"> one_hour = timedelta(hours=1)
</span><span class="cx"> zero_delta = timedelta(0)
</span><span class="cx"> midnight = time(0, tzinfo=TimeZone.floating)
</span><ins>+EVENT_TRIAGE_WEIGHT = 2.0
</ins><span class="cx">
</span><span class="cx"> class Event(Extension):
</span><span class="cx"> trellis.attrs(
</span><span class="lines">@@ -30,6 +32,12 @@
</span><span class="cx"> return datetime.combine(self.base_start.date(), midnight)
</span><span class="cx">
</span><span class="cx"> @trellis.compute
</span><ins>+ def is_started(self):
+ if self.start is None:
+ return True
+ return bool(activity.Time[timestamp(self.start) - nowTimestamp()])
+
+ @trellis.compute
</ins><span class="cx"> def duration(self):
</span><span class="cx"> if not self.is_day:
</span><span class="cx"> return self.base_duration
</span><span class="lines">@@ -72,6 +80,12 @@
</span><span class="cx"> raise BadDurationError(self.base_duration)
</span><span class="cx">
</span><span class="cx">
</span><ins>+def event_triage(item):
+ if not Event.installed_on(item):
+ return (-1, None)
+ status = NOW if Event(item).is_started else LATER
+ return (EVENT_TRIAGE_WEIGHT, status)
+
</ins><span class="cx"> class NaiveTimezoneError(ConstraintError):
</span><span class="cx"> cell_description = &quot;base_start&quot;
</span><span class="cx">
</span><span class="lines">@@ -113,6 +127,7 @@
</span><span class="cx"> return bool(self.event and not self.event.implied_transparency)
</span><span class="cx">
</span><span class="cx">
</span><del>-# implied transparency
</del><ins>+def event_triage_position(item):
+ pass
</ins><span class="cx">
</span><span class="cx"> # is_between
</span></span></pre></div>
<a id="trunkChandlerAppchandlertriagepy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-App/chandler/triage.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-App/chandler/triage.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-App/chandler/triage.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -1,4 +1,5 @@
</span><span class="cx"> import peak.events.trellis as trellis
</span><ins>+from peak.util import plugins
</ins><span class="cx"> from peak.util.addons import AddOn
</span><span class="cx"> from chandler.time_services import nowTimestamp
</span><span class="cx"> from chandler.core import ConstraintError
</span><span class="lines">@@ -9,15 +10,34 @@
</span><span class="cx"> LATER = 200.0
</span><span class="cx"> DONE = 300.0
</span><span class="cx">
</span><ins>+TRIAGE_HOOK = plugins.Hook('chandler.domain.triage')
+POSITION_HOOK = plugins.Hook('chandler.interaction.triage_position')
+
</ins><span class="cx"> ### Domain model ###
</span><span class="cx">
</span><span class="cx"> class Triage(AddOn, trellis.Component):
</span><span class="cx"> trellis.attrs(
</span><ins>+ _item=None,
</ins><span class="cx"> manual=None,
</span><del>- auto=None
</del><ins>+ auto_source=None
</ins><span class="cx"> )
</span><span class="cx">
</span><ins>+ def __init__(self, item, **kwargs):
+ self._item = item
+
</ins><span class="cx"> @trellis.compute
</span><ins>+ def auto(self):
+ if self.auto_source:
+ pass # make use of auto_source when reminders have been fleshed out
+ else:
+ positions = list(TRIAGE_HOOK.query(self._item))
+ # default to NOW if nothing else applies
+ positions.append((0, NOW))
+ max_weight, position = max(positions)
+ return position
+
+
+ @trellis.compute
</ins><span class="cx"> def calculated(self):
</span><span class="cx"> if self.manual is not None:
</span><span class="cx"> return self.manual
</span></span></pre></div>
<a id="trunkChandlerAppsetuppy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-App/setup.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-App/setup.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-App/setup.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,5 +11,12 @@
</span><span class="cx"> install_requires=['Chandler-Platform'],
</span><span class="cx"> test_suite = 'test_suite',
</span><span class="cx"> packages = find_packages(),
</span><del>- namespace_packages = ['chandler']
</del><ins>+ namespace_packages = ['chandler'],
+ entry_points = &quot;&quot;&quot;
+ [chandler.domain.triage]
+ event = chandler.event:event_triage
+
+ [chandler.interaction.triage_position]
+ event = chandler.event:event_triage_position
+ &quot;&quot;&quot;
</ins><span class="cx"> ),
</span></span></pre></div>
<a id="trunkChandlerPlatformTimeServicestxt"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/TimeServices.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/TimeServices.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/TimeServices.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -137,8 +137,17 @@
</span><span class="cx"> &gt;&gt;&gt; getNow()
</span><span class="cx"> datetime.datetime(2008, 9, 30, 10, 0, tzinfo=&lt;ICUtzinfo: US/Eastern&gt;)
</span><span class="cx">
</span><ins>+Timestamps
+==========
+
+Timestamps are float values measuring seconds since the UTC epoch.
+timemachine provides a convenience function for getting timestamps:
+
+&gt;&gt;&gt; timestamp(oct1)
+1222880400.0
+
</ins><span class="cx"> There's also a time_services-aware function for getting a current
</span><del>-timestamp (seconds since the UTC epoch).
</del><ins>+timestamp.
</ins><span class="cx">
</span><span class="cx"> &gt;&gt;&gt; nowTimestamp()
</span><span class="cx"> 1222783200.0
</span></span></pre></div>
<a id="trunkChandlerPlatformchandlercorepy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/core.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/core.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/core.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -66,3 +66,16 @@
</span><span class="cx"> def __str__(self):
</span><span class="cx"> return self.msg % {'cell_description' : self.cell_description,
</span><span class="cx"> 'cell_value' : self.cell_value}
</span><ins>+
+
+#### Utility #####
+
+class Viewer(trellis.Component):
+ component = trellis.attr(None)
+ cell_name = trellis.attr(None)
+
+ @trellis.perform
+ def view_it(self):
+ value = getattr(self.component, self.cell_name, None)
+ if None not in (self.component, self.cell_name, value):
+ print &quot;%s changed to: %s&quot; % (self.cell_name, value)
</ins></span></pre></div>
<a id="trunkChandlerPlatformchandlertime_servicespy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/time_services.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -32,16 +32,21 @@
</span>&l |
Mon, 01 Jan, 05:31 |
| <mblackm...@oxlug.org> |
lt;span>
<span class="info">--- trunk/Chandler-Platform/chandler/core.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/core.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -66,3 +66,16 @@
</span><span class="cx"> def __str__(self):
</span><span class="cx"> return self.msg % {'cell_description' : self.cell_description,
</span><span class="cx"> 'cell_value' : self.cell_value}
</span><ins>+
+
+#### Utility #####
+
+class Viewer(trellis.Component):
+ component = trellis.attr(None)
+ cell_name = trellis.attr(None)
+
+ @trellis.perform
+ def view_it(self):
+ value = getattr(self.component, self.cell_name, None)
+ if None not in (self.component, self.cell_name, value):
+ print &quot;%s changed to: %s&quot; % (self.cell_name, value)
</ins></span></pre></div>
<a id="trunkChandlerPlatformchandlertime_servicespy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/time_services.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -32,16 +32,21 @@
</span><span class="cx"> tz = TimeZone.default
</span><span class="cx"> return datetime.fromtimestamp(activity.Time._now, tz)
</span><span class="cx">
</span><ins>+def timestamp(dt):
+ # timegm returns an int number of seconds, which is probably good
+ # enough for our purposes, but make tests expect a float, in
+ # case we decide to replace it with something with a little more
+ # resolution
+ return float(timegm(dt.astimezone(TimeZone.utc).timetuple()))
+
</ins><span class="cx"> def setNow(dt):
</span><span class="cx"> if dt is not None and dt.tzinfo is None:
</span><span class="cx"> dt = dt.replace(tzinfo=ICUtzinfo.default)
</span><span class="cx">
</span><del>- timetuple = dt.astimezone(TimeZone.utc).timetuple()
-
</del><span class="cx"> # this ignores calendar.timegm (or time.mktime) range limits and
</span><span class="cx"> # MAXYEAR/MINYEAR, since a now timestamp really shouldn't be outside those
</span><span class="cx"> # ranges
</span><del>- new_timestamp = timegm(timetuple)
</del><ins>+ new_timestamp = timestamp(dt)
</ins><span class="cx">
</span><span class="cx"> activity.Time.auto_update = False
</span><span class="cx"> activity.Time.advance(new_timestamp - activity.Time._now)
</span><span class="lines">@@ -54,7 +59,6 @@
</span><span class="cx"> &quot;&quot;&quot;The number of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Mon, 24 Dec, 15:48 |
| Parlante |
Event(item).add()
</span><span class="cx"> &gt;&gt;&gt; event.start is None
</span><span class="lines">@@ -32,7 +34,7 @@
</span><span class="cx"> Normally, however, you'll want events to have a start time.
</span><span class="cx">
</span><span class="cx"> &gt;&gt;&gt; from datetime import datetime
</span><del>-&gt;&gt;&gt; from chandler.time_services import TimeZone
</del><ins>+&gt;&gt;&gt; from chandler.time_services import TimeZone, setNow
</ins><span class="cx"> &gt;&gt;&gt; cinco_de_mayo = datetime(2008, 5, 5, 18, tzinfo=TimeZone.pacific)
</span><span class="cx"> &gt;&gt;&gt; event.base_start = cinco_de_mayo
</span><span class="cx"> &gt;&gt;&gt; event.start
</span><span class="lines">@@ -144,6 +146,52 @@
</span><span class="cx"> &gt;&gt;&gt; event.is_day
</span><span class="cx"> False
</span><span class="cx">
</span><ins>+Passage of time
+===============
+
+Events have an *is_started* cell tracking whether ``start`` has arrived.
+As time passes, these cells are automatically updated by the Trellis.
+
+&gt;&gt;&gt; from peak.events.activity import Time
+&gt;&gt;&gt; next_year = datetime(2009, 3, 16, 10, tzinfo=TimeZone.pacific)
+&gt;&gt;&gt; setNow(next_year)
+&gt;&gt;&gt; item2 = Item()
+&gt;&gt;&gt; event2 = Event(item2).add()
+
+If an event doesn't have a start time, it's considered started:
+
+&gt;&gt;&gt; event2.is_started
+True
+
+We'll use a Viewer_ to display when *is_started* changes values.
+
+XXX document Viewer somewhere more appropriate
+
+&gt;&gt;&gt; viewer = Viewer(component=event2, cell_name=&quot;is_started&quot;)
+is_started changed to: True
+&gt;&gt;&gt; event2.base_start = next_year + timedelta(minutes=2)
+is_started changed to: False
+&gt;&gt;&gt; Time.advance(180)
+is_started changed to: True
+&gt;&gt;&gt; event2.base_start = next_year + timedelta(minutes=5)
+is_started changed to: False
+&gt;&gt;&gt; event2.all_day = True
+is_started changed to: True
+
+Events and Triage Status
+========================
+
+Events are automatically triaged based on ``is_started``. If the
+event hasn't started, its triage status will be
+:const:`~chandler.triage.LATER`, otherwise it will be
+:const:`~chandler.triage.NOW`.
+
+&gt;&gt;&gt; viewer.component = Triage(item2)
+&gt;&gt;&gt; viewer.cell_name = 'calculated'
+calculated changed to: 100.0
+&gt;&gt;&gt; event2.all_day = False
+calculated changed to: 200.0
+
</ins><span class="cx"> Recurrence
</span><span class="cx"> ==========
</span><span class="cx">
</span><span class="lines">@@ -287,3 +335,4 @@
</span><span class="cx"> Chandler translates the standard CANCELLED value into 'fyi'.
</span><span class="cx">
</span><span class="cx"> .. _iCalendar: http://tools.ietf.org/html/rfc2445
</span><ins>+.. _Viewer: http://peak.telecommunity.com/DevCenter/Trellis#model-view-controller-and-the-observer-pattern
</ins></span></pre></div>
<a id="trunkChandlerAppTriageInteractiontxt"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-App/Triage-Interaction.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-App/Triage-Interaction.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-App/Triage-Interaction.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -20,9 +20,6 @@
</span><span class="cx"> &gt;&gt;&gt; item_position.position
</span><span class="cx"> 100.0
</span><span class="cx"> &gt;&gt;&gt; item_triage = Triage(item)
</span><del>-&gt;&gt;&gt; item_triage.auto = LATER
-&gt;&gt;&gt; item_position.position
-200.0
</del><span class="cx">
</span><span class="cx"> ``position`` is based on two cells, ``default_position`` and
</span><span class="cx"> ``pinned_position``. ``pinned_position`` is used to hold an item
</span><span class="lines">@@ -96,8 +93,10 @@
</span><span class="cx"> useful except for testing.
</span><span class="cx">
</span><span class="cx"> Usually, position will be a float measuring seconds since the epoch
</span><del>-for some time. It's value is found by applying all chandler.interaction.triage_position
-hooks on the item and choosing the largest.
</del><ins>+for some time. It's value is found by applying all
+:ref:`chandler.interaction.triage_position
+&lt;triage-position-hook-central&gt;` hooks on the item and choosing the
+largest.
</ins><span class="cx">
</span><span class="cx"> XXX should use, define, explain triage_position entry point
</span><span class="cx"> triage_position eps should return ``None`` if they don't apply, or
</span></span></pre></div>
<a id="trunkChandlerAppTriagetxt"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-App/Triage.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-App/Triage.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-App/Triage.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -2,6 +2,8 @@
</span><span class="cx"> Triage Status - Domain Model
</span><span class="cx"> ==============================
</span><span class="cx">
</span><ins>+.. module:: chandler.triage
+
</ins><span class="cx"> Triage status is based on three states:
</span><span class="cx">
</span><span class="cx"> ============ ============
</span><span class="lines">@@ -19,42 +21,50 @@
</span><span class="cx"> &gt;&gt;&gt; from chandler.core import Item
</span><span class="cx"> &gt;&gt;&gt; item = Item()
</span><span class="cx"> &gt;&gt;&gt; item_triage = Triage(item)
</span><del>-
-``auto`` and ``manual`` are writable cells, ``calculated`` is
-read-only.
-
-&gt;&gt;&gt; item_triage.manual = NOW
-&gt;&gt;&gt; item_triage.auto = LATER
</del><span class="cx"> &gt;&gt;&gt; item_triage.calculated
</span><span class="cx"> 100.0
</span><span class="cx">
</span><del>-``calculated`` is the final, user facing triage status. If ``manual``
-is ``None`` (the default), ``calculated`` will be based on ``auto``.
-Otherwise, ``manual`` takes precedence over ``auto``.
</del><ins>+:attr:`~Triage.calculated` is the &quot;real&quot; value that should be used for
+displaying the current triage status. It's read-only, based on
+:attr:`~Triage.manual` and :attr:`~Triage.auto`.
</ins><span class="cx">
</span><del>-&gt;&gt;&gt; item_triage.manual = None
</del><ins>+Triage status can be directly set using :attr:`~Triage.manual`. If
+set, :attr:`~Triage.manual` overrides triage status from other
+sources.
+
+&gt;&gt;&gt; item_triage.manual = LATER
</ins><span class="cx"> &gt;&gt;&gt; item_triage.calculated
</span><span class="cx"> 200.0
</span><span class="cx">
</span><del>-If both ``auto`` and ``manual`` are ``None``, the default, calculated
-is ``NOW``.
-
-&gt;&gt;&gt; item2 = Item()
-&gt;&gt;&gt; item2_triage = Triage(item2)
-&gt;&gt;&gt; item2_triage.manual is item2_triage.auto is None
-True
-&gt;&gt;&gt; item2_triage.calculated
-100.0
-
</del><span class="cx"> Triage status must be either ``None``, or an AM, Michael Jenkins wrote:
>>>>>>>
>>>>>>>> Hi Guys,
>>>>>>>>
>>>>>>>> Really would really appreciate a response/acknowledgement
>>>>>>>> from someone
>>>>>>>> human.
>>>>>>>>
>>>>>>>> I posted error messages yesterday regarding a failure on my
>>>>>>>> local
>>>>>>>> machine of the desktop copy of chandler. Seems it happened at
>>>>>>>> about same
>>>>>>>> time as the main hub went down.
>>>>>>>>
>>>>>>>> So I cannot recover from the hub - seems to be old data - not
>>>>>>>> sure how
>>>>>>>> far you guys rolled it back.
>>>>>>>>
>>>>>>>> I am thus utterly dependant on the snapshot - for me this is
>>>>>>>> serious.
>>>>>>>>
>>>>>>>> I cannot find much in way of support for this problem. I
>>>>>>>> managed to
>>>>>>>> find the menu item which pointed me towards rebuilding from
>>>>>>>> the snapshot
>>>>>>>> but get this error message below
>>>>>>>>
>>>>>>>> Please do not leave me hanging guys. I look forward to a
>>>>>>>> response
>>>>>>>>
>>>>>>>> regards
>>>>>>>>
>>>>>>>> Michael
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Seconds since last error: 292
>>>>>>>> Chandler Version: 1.0.2
>>>>>>>> OS: nt
>>>>>>>> Platform Type: win32
>>>>>>>> Platform Details: Windows-XP-5.1.2600
>>>>>>>> Architecture:
>>>>>>>> Python Version: 2.5.1 (r251:54863, Nov 28 2007, 17:53:19)
>>>>>>>> [MSC v.1310 32
>>>>>>>> bit (Intel)]
>>>>>>>> Traceback (most recent call last):
>>>>>>>> File "C:\Program Files\Chandler.py", line 101, in main
>>>>>>>> return realMain()
>>>>>>>> File "C:\Program Files\Chandler.py", line 80, in realMain
>>>>>>>> app = wxApplication(redirect=redirect,
>>>>>>>> useBestVisual=useBestVisual)
>>>>>>>> File "C:\Program Files\release\bin\lib\site-packages\wx
>>>>>>>> \_core.py",
>>>>>>>> line 7901, in __init__
>>>>>>>> self._BootstrapApp()
>>>>>>>> File "C:\Program Files\release\bin\lib\site-packages\wx
>>>>>>>> \_core.py",
>>>>>>>> line 7498, in _BootstrapApp
>>>>>>>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>>>>>>>> File "C:\Program Files\application\Application.py", line 377,
>>>>>>>> in OnInit
>>>>>>>> options)
>>>>>>>> File "C:\Program Files\application\Utility.py", line 1101, in
>>>>>>>> openRepositoryOrBackup
>>>>>>>> view = openRepository(options, repoDir)
>>>>>>>> File "C:\Program Files\application\Utility.py", line 1070, in
>>>>>>>> openRepository
>>>>>>>> view = initRepository(repoDir, options)
>>>>>>>> File "C:\Program Files\application\Utility.py", line 684, in
>>>>>>>> initRepository
>>>>>>>> repository.open(**kwds)
>>>>>>>> File "c:\program
>>>>>>>> files\release\bin\lib\site-packages\chandlerdb-0.7_37-py2.5-
>>>>>>>> win32.egg\chandlerdb\persistence\DBRepository.py",
>>>>>>>> line 970, in open
>>>>>>>> raise RepositoryRunRecoveryError, recover
>>>>>>>> RepositoryRunRecoveryError: True
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> chandler-users mailing list
>>>>>>>> chandler-users@osafoundation.org
>>>>>>>> http://lists.osafoundation.org/mailman/listinfo/chandler-users
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
chandler-users mailing list
chandler-users@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/chandler-users
|
Sat, 09 Apr, 03:30 |
| b...@code-bear.com |
|
Sat, 13 Sep, 09:29 |
| b...@code-bear.com |
F6-A1D7-83EA5DF2191B@osafoundation.org>/2 |
Sat, 13 Sep, 09:29 |
| ler |
bly good
+ # enough for our purposes, but make tests expect a float, in
+ # case we decide to replace it with something with a little more
+ # resolution
+ return float(timegm(dt.astimezone(TimeZone.utc).timetuple()))
+
</ins><span class="cx"> def setNow(dt):
</span><span class="cx"> if dt is not None and dt.tzinfo is None:
</span><span class="cx"> dt = dt.replace(tzinfo=ICUtzinfo.default)
</span><span class="cx">
</span><del>- timetuple = dt.astimezone(TimeZone.utc).timetuple()
-
</del><span class="cx"> # this ignores calendar.timegm (or time.mktime) range limits and
</span><span class="cx"> # MAXYEAR/MINYEAR, since a now timestamp really shouldn't be outside those
</span><span class="cx"> # ranges
</span><del>- new_timestamp = timegm(timetuple)
</del><ins>+ new_timestamp = timestamp(dt)
</ins><span class="cx">
</span><span class="cx"> activity.Time.auto_update = False
</span><span class="cx"> activity.Time.advance(new_timestamp - activity.Time._now)
</span><span class="lines">@@ -54,7 +59,6 @@
</span><span class="cx"> &quot;&quot;&quot;The number of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Sun, 23 Aug, 19:35 |
| ls |
mp (seconds since the UTC epoch).
</del><ins>+timestamp.
</ins><span class="cx">
</span><span class="cx"> &gt;&gt;&gt; nowTimestamp()
</span><span class="cx"> 1222783200.0
</span></span></pre></div>
<a id="trunkChandlerPlatformchandlercorepy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/core.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/core.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/core.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -66,3 +66,16 @@
</span><span class="cx"> def __str__(self):
</span><span class="cx"> return self.msg % {'cell_description' : self.cell_description,
</span><span class="cx"> 'cell_value' : self.cell_value}
</span><ins>+
+
+#### Utility #####
+
+class Viewer(trellis.Component):
+ component = trellis.attr(None)
+ cell_name = trellis.attr(None)
+
+ @trellis.perform
+ def view_it(self):
+ value = getattr(self.component, self.cell_name, None)
+ if None not in (self.component, self.cell_name, value):
+ print &quot;%s changed to: %s&quot; % (self.cell_name, value)
</ins></span></pre></div>
<a id="trunkChandlerPlatformchandlertime_servicespy"></a>
<div class="modfile"><h4>Modified: trunk/Chandler-Platform/chandler/time_services.py (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Chandler-Platform/chandler/time_services.py 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -32,16 +32,21 @@
</span><span class="cx"> tz = TimeZone.default
</span><span class="cx"> return datetime.fromtimestamp(activity.Time._now, tz)
</span><span class="cx">
</span><ins>+def timestamp(dt):
+ # timegm returns an int number of seconds, which is probably good
+ # enough for our purposes, but make tests expect a float, in
+ # case we decide to replace it with something with a little more
+ # resolution
+ return float(timegm(dt.astimezone(TimeZone.utc).timetuple()))
+
</ins><span class="cx"> def setNow(dt):
</span><span class="cx"> if dt is not None and dt.tzinfo is None:
</span><span class="cx"> dt = dt.replace(tzinfo=ICUtzinfo.default)
</span><span class="cx">
</span><del>- timetuple = dt.astimezone(TimeZone.utc).timetuple()
-
</del><span class="cx"> # this ignores calendar.timegm (or time.mktime) range limits and
</span><span class="cx"> # MAXYEAR/MINYEAR, since a now timestamp really shouldn't be outside those
</span><span class="cx"> # ranges
</span><del>- new_timestamp = timegm(timetuple)
</del><ins>+ new_timestamp = timestamp(dt)
</ins><span class="cx">
</span><span class="cx"> activity.Time.auto_update = False
</span><span class="cx"> activity.Time.advance(new_timestamp - activity.Time._now)
</span><span class="lines">@@ -54,7 +59,6 @@
</span><span class="cx"> &quot;&quot;&quot;The number of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Wed, 28 Jun, 18:45 |
| or |
;/span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Mon, 11 Apr, 12:09 |
| or |
;/span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Mon, 11 Apr, 12:09 |
| sut |
r of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Fri, 06 Mar, 15:55 |
| sut |
r of seconds betwen the UTC epoch and now.&quot;&quot;&quot;
</span><span class="cx"> return activity.Time._now
</span><span class="cx">
</span><del>-
</del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Fri, 06 Mar, 15:55 |
| sut |
ext/plain |
Fri, 06 Mar, 15:55 |
| ung |
mails reappear in dashboard - can this be prevented |
Tue, 20 Jan, 04:07 |
| w.@osafoundation.org> |
lt;/del><span class="cx"> class TimeZone(trellis.Component, context.Service):
</span><span class="cx">
</span><span class="cx"> default = trellis.attr(ICUtzinfo.default)
</span></span></pre></div>
<a id="trunkHookstxt"></a>
<div class="modfile"><h4>Modified: trunk/Hooks.txt (33 => 34)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Hooks.txt 2008-10-10 17:51:48 UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Sat, 24 May, 21:02 |
| w.@osafoundation.org> |
UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Sat, 24 May, 21:02 |
| w.@osafoundation.org> |
UTC (rev 33)
+++ trunk/Hooks.txt 2008-10-10 22:24:21 UTC (rev 34)
</span><span class="lines">@@ -11,8 +11,8 @@
</span><span class="cx"> Main hooks
</span><span class="cx"> ==========
</span><span class="cx">
</span><del>-Below are Chandler's most frequently used Hooks. See the index_ for a
-complete list.
</del><ins>+Below are Chandler's most frequently used Hooks. See &quot;hook&quot; in the
+index_ for a complete list.
</ins><span class="cx">
</span><span class="cx"> ..
</span><span class="cx"> When documenting a hook, add a Sphinx index directive, like
</span><span class="lines">@@ -22,17 +22,38 @@
</span><span class="cx"> and use :ref: to link to associated use and registration documentation.
</span><span class="cx">
</span><span class="cx">
</span><ins>+.. index:: hook; chandler.domain.triage
+.. _triage-hook-central:
+
+Triage
+------
+
+.. describe:: triage_callable(entry) -&gt; (weight, triage_status)
+
+ Return (-1, None) if triage can't be calculated for the entry,
+ otherwise a float weight and :mod:`~chandler.triage` value.
+
+.. seealso::
+
+ :ref:`triage-hook`
+ ..
+
+ :ref:`event-triage-position`
+ ..
+
+
</ins><span class="cx"> .. index:: hook; chandler.interaction.triage_position
</span><ins>+.. _triage-position-hook-central:
</ins><span class="cx">
</span><span class="cx"> Triage position
</span><span class="cx"> ---------------
</span><span class="cx">
</span><del>-*chandler.interaction.triage_position* provides callables like:
</del><ins>+&quot;chandler.interaction.triage_position&quot; provides callables like:
</ins><span class="cx">
</span><del>-.. describe:: triage_position_callable(entry) -&gt; (weight, position)
</del><ins>+.. describe:: triage_position_callable(entry) -&gt; position
</ins><span class="cx">
</span><del>- Return (-1, None) if triage_position can't be calculated for the
- entry, otherwise a float weight and position timestamp.
</del><ins>+ Return None if triage_position can't be calculated for the
+ entry, otherwise a position timestamp.
</ins><span class="cx">
</span><span class="cx"> .. seealso::
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
ne 7901, in __init__
>> self._BootstrapApp()
>> File "C:\Program Files\release\bin\lib\site-packages\wx\_core.py",
>> line 7498, in _BootstrapApp
>> return _core_.PyApp__BootstrapApp(*args, **kwargs)
>> File "C:\Program Files\application\Application.py", line 377, in
>> OnInit
>> options)
>> File "C:\Program Files\application\Utility.py", line 1101, in
>> openRepositoryOrBackup
>> view = openRepository(options, repoDir)
>> File "C:\Program Files\application\Utility.py", line 1070, in
>> openRepository
>> view = initRepository(repoDir, options)
>> File "C:\Program Files\application\Utility.py", line 684, in
>> initRepository
>> repository.open(**kwds)
>> File "c:\program files\release\bin\lib\site-packages
>> \chandlerdb-0.7_37-py2.5-win32.egg\chandlerdb\persistence
>> \DBRepository.py", line 970, in open
>> raise RepositoryRunRecoveryError, recover
>> RepositoryRunRecoveryError: True
>>
>> Michael
>>
>> Sheila Mooney wrote:
>>> Micheal,
>>>
>>> Don't worry about the .chex file. If you can't find one, we can't
>>> create one from the repository backup.
>>>` 5߷2߷
:߷G߷@۷ |
Sat, 24 May, 21:02 |
| w.@osafoundation.org> |
[No Subject] |
Sat, 24 May, 21:02 |
| w.@osafoundation.org> |
ead |
Sat, 24 May, 21:02 |