Valentin Lorentz
1fa02674a0
Revert "In registry.py, test whether a requested configuration variable is a channel name before creating it automatically. Closes GH-63."
...
This reverts commit c6facc99f3
.
Conflicts:
src/version.py
2011-08-12 01:06:31 +02:00
Valentin Lorentz
c6facc99f3
In registry.py, test whether a requested configuration variable is a channel name before creating it automatically. Closes GH-63.
2011-07-06 11:14:58 +02:00
Valentin Lorentz
d4693ebb69
Add callback (mainly useful for plugins) for config edits. Closes GH-24.
2011-07-01 11:11:39 +02:00
Valentin Lorentz
4dcd7f7fb4
Bug fixes (mainly the &config help internationalization)
2010-11-01 11:42:33 +01:00
Valentin Lorentz
d156ae7474
Add the configuration variable help reloading
2010-10-10 16:46:55 +02:00
James Vega
ef8bd817e8
Make registry.Regexp.error mimic registry.Value.error
...
Regexp.error can't directly call Value.error because it's providing extra
information, so it needs to build the InvalidRegistryValue exception itself
and raise it.
Closes: Sf#2985241
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-11 10:15:39 -04:00
James Vega
0540513387
Decode/encode as 'string_escape' when (de)serializing the registry.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-30 23:03:35 -05:00
James Vega
035a9f2459
Add registry.TemplatedString for config variables which use string.Template
2009-10-15 22:17:36 -04:00
James Vega
67697d8245
src/registry.py: Update StringWithSpaceOnRight to accept the empty string as a valid value (instead of padding a space).
2006-05-01 16:50:02 +00:00
James Vega
adc53b11df
src/registry.py: Update StringSurroundedBySpaces to only be one space if an empty value is set.
2006-05-01 16:49:23 +00:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
5b3ca9bd2d
src/registry.py, test/test_registry.py: Better handling of backslashes in config values.
2006-01-18 00:19:31 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
James Vega
90c000793d
utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace.
2005-02-15 13:57:57 +00:00
Jeremy Fincher
e6beec2989
Removed some more unused imports.
2005-02-04 03:11:02 +00:00
Jeremy Fincher
2a62e79fab
Fixed test failure in PositiveInteger.
2005-02-01 11:57:26 +00:00
James Vega
de89bf0265
Update usage of utils.str functions.
2005-01-31 14:52:27 +00:00
James Vega
28cb5abc65
Update usage of functions in utils.gen.
2005-01-31 13:06:43 +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
f30fcebe41
MINOR removed some extraneous whitespace.
2005-01-21 18:41:17 +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
80f9f7d42a
Let's make this error message a *tad* more useful.
2005-01-14 02:20:53 +00:00
James Vega
6061f49a48
*** empty log message ***
2005-01-06 04:01:16 +00:00
Jeremy Fincher
955bf08255
Rudimentary sorting.
2004-12-02 05:37:04 +00:00
Jeremy Fincher
9ea98a5657
Updated docstring.
2004-11-28 16:29:40 +00:00
James Vega
9a3d196986
Move the Probability class to src/registry.py
2004-11-28 08:05:56 +00:00
Jeremy Fincher
fd4e62599f
Better logging.
2004-11-21 13:31:50 +00:00
James Vega
2fb7041627
Slightly better wording (and matches Float's wording)
2004-11-09 18:41:03 +00:00
Jeremy Fincher
a060f26aa8
Fixed bug #1059544 , InvalidRegistryValues can now show what the name of the registry value is.
2004-11-03 22:58:20 +00:00
Jeremy Fincher
9e813ff778
Added an XXX.
2004-10-24 06:34:28 +00:00
Jeremy Fincher
447a6e63e0
Fixed bug #1052921 .
2004-10-24 06:32:07 +00:00
Jeremy Fincher
76fc8b946e
Removed some useless options from close.
2004-10-03 22:18:12 +00:00
Jeremy Fincher
42f9ea9bfc
Let's catch some exceptions and continue with the output-writing if an exception is raised.
2004-10-03 09:39:39 +00:00
Jeremy Fincher
1ea5e55a8e
Changed to be better, hopefully. We really need to find out where this losing of channel values is happening.
2004-09-30 22:13:47 +00:00
Jeremy Fincher
419d2c0e45
Odd, it didn't commit properly.
2004-09-30 22:03:28 +00:00
Jeremy Fincher
54ccb01b5e
Changed showDefault to _showDefault.
2004-09-30 20:03:54 +00:00
Jeremy Fincher
6ce21297de
Line wrapping, and now more showDefault for long things (since I can't figure out how to wrap it), and line-wrapping of serialized NormalizedString things.
2004-09-30 15:22:50 +00:00
Jeremy Fincher
0874dfd5f3
Abstracted out bool verification in utils.toBool.
2004-09-28 07:22:26 +00:00
James Vega
9291c56e3f
Update to use a help method instead of a help string. Allows sub-classes of
...
Group/Value to define their own help method.
2004-09-25 17:06:05 +00:00
James Vega
50973a10fb
Remove #! lines.
2004-09-20 03:01:50 +00:00
Jeremy Fincher
ab3e0289f1
Style update.
2004-09-16 14:18:56 +00:00
Jeremy Fincher
5f1aa43ee0
Fix0red the bugz0r.
2004-09-14 15:30:16 +00:00
Jeremy Fincher
e1d961c62f
Fixed regexp bug.
2004-09-13 01:21:48 +00:00
Jeremy Fincher
6a417db8bc
Allow groups to have help.
2004-09-11 16:17:40 +00:00
Jeremy Fincher
e98bb7a787
Elucidating comment.
2004-09-10 06:31:39 +00:00
Jeremy Fincher
bebe005584
Fixed Regexp.
2004-09-09 19:13:46 +00:00
Jeremy Fincher
5aa00316ab
Used some supers.
2004-09-09 15:34:13 +00:00
Jeremy Fincher
aad768c188
Added orderAlphabetically.
2004-09-08 22:51:00 +00:00