Valentin Lorentz
30c56ae19f
Add support for arguments to addPeriodicEvent callbacks.
2012-12-19 19:48:46 +01:00
Valentin Lorentz
8211aab92e
Fix issue typo in schedule.removeEvent.
2012-08-04 15:57:47 +02:00
Valentin Lorentz
9723e14a4d
Prevent possible race conditions in scheduler.
2012-06-09 16:54:19 +02:00
James McCoy
edca443eed
Just create schedule.schedule/drivers.Twisted.poller without any guard
...
These module-level variables had historically been created such that reloading
the module wouldn't redefine the variable. However, none of our code reloads
the modules and the guard to prevent redefining the variable was broken so it
would've been redefined anyway.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
Conflicts:
src/schedule.py
2012-05-25 18:14:10 +02:00
Valentin Lorentz
9352322075
Fix typo in schedule.
2012-05-02 20:58:56 +02:00
Valentin Lorentz
446349357d
Check globals() instead of catching NameError.
2012-05-02 20:58:36 +02:00
Valentin Lorentz
8558640a00
schedule: Add parameters args and kwargs.
2012-04-04 15:55:08 +02:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
James Vega
2c96a65704
asserts should have an associated message.
2005-03-22 14:45:21 +00:00
Jeremy Fincher
5fd6bbb52d
Completely restructured our utils modules.
...
Tons of changes. Here's the summary of things that matter most:
* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
* It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary. It's
premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon. That'll be the
next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
5019d10a1b
Updated license years.
2005-01-19 13:33:05 +00:00
Jeremy Fincher
8ca625d339
Initial import.
2005-01-19 13:14:38 +00:00
James Vega
dbfec8afb9
Add supybot module
2007-04-22 20:10:26 +00:00
James Vega
50973a10fb
Remove #! lines.
2004-09-20 03:01:50 +00:00
Jeremy Fincher
142349847b
Allow periodic events not to run the first time.
2004-09-08 22:51:30 +00:00
Jeremy Fincher
887e92a12b
Don't make those error logs if we're testing.
2004-09-06 08:20:26 +00:00
Jeremy Fincher
58176d41a9
Elucidating log.
2004-08-25 04:25:06 +00:00
Jeremy Fincher
fbb348b6e7
Copyright updates. Again, more is left to be done, but this is my part.
2004-08-23 13:14:06 +00:00
Jeremy Fincher
ad1b36a643
Added rescheduleEvent.
2004-08-19 16:58:42 +00:00
Jeremy Fincher
4b40f18825
Gave the schedule driver a proper name.
2004-07-27 05:18:34 +00:00
Jeremy Fincher
f9c61271ea
w00, less path mungingEXCLAIMEXCLAIM
2004-07-24 05:18:26 +00:00
Jeremy Fincher
7aa35058f7
Commented a possible optimization.
2004-04-13 00:12:23 +00:00
Jeremy Fincher
7f6c401e74
Comment some of my intentions.
2004-04-13 00:06:57 +00:00
Jeremy Fincher
07585182af
Add a heapify because our modifications don't guarantee that the heap property is preserved.
2004-04-13 00:05:30 +00:00
Stéphan Kochen
1feffe91ac
That shouldn't be there.
2004-04-12 20:58:37 +00:00
Jeremy Fincher
1d27db449b
Fixed forgotten import.
2004-03-30 21:09:02 +00:00
Jeremy Fincher
87f4d36d6f
Fixed tests.
2004-02-13 09:50:46 +00:00
Jeremy Fincher
d3dcc62d1b
Offer a reset method.
2004-02-13 04:43:06 +00:00
Jeremy Fincher
e45ad03ef4
Robustitude\!
2004-02-12 13:27:02 +00:00
Jeremy Fincher
86eb377442
Handle a possible suck-100%-cpu bug if drivers._drivers contains only the schedule driver.
2004-02-09 07:09:06 +00:00
Jeremy Fincher
44aebd9536
Slight style update.
2004-01-02 22:29:03 +00:00
Jeremy Fincher
1f441c54bd
Forgot to return the name in addEvent.
2004-01-01 20:00:29 +00:00
Jeremy Fincher
48166f4895
Huge update to the logging infrastructure.
2003-11-26 18:21:12 +00:00
Jeremy Fincher
a4284e7924
Added __revision__ strings.
2003-11-25 08:38:19 +00:00
Jeremy Fincher
970c819e79
Changed fix.py to munge __builtins__ rather than requiring a "from fix import *" statement.
2003-10-05 12:47:19 +00:00
Jeremy Fincher
6bd138c4eb
Added docstrings.
2003-10-04 12:45:44 +00:00
Jeremy Fincher
644eb1c248
Removed inapplicable comment.
2003-09-22 14:00:26 +00:00
Jeremy Fincher
015bb9ef53
Fixed bug in addPeriodicEvent with a name.
2003-09-22 13:50:59 +00:00
Jeremy Fincher
55384617d4
Converted schedule over to heapq from bisect.
2003-08-29 14:18:18 +00:00
Jeremy Fincher
ca646716b1
Removed spaces at the end of lines.
2003-08-20 16:26:23 +00:00
Jeremy Fincher
73a5de98eb
Scheduler implementation changes to be (hopefully) more efficient, to pop() rather than pop(0).
2003-04-17 10:08:32 +00:00
James Vega
c803e5e9d8
Added vim:set ... : strings to source in order to keep file formatting
...
consistent between developers. Jeremy should be adding the equivalent
settings for emacs soon.
2003-03-24 08:41:19 +00:00
Jeremy Fincher
7801c84d84
Initial revision
2003-03-12 06:26:59 +00:00