Valentin Lorentz
19a8df5b46
Fix typo in registry.close().
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-07-30 23:23:51 -04:00
Valentin Lorentz
8bacf6734d
Fix typo in registry.close().
2012-07-30 11:18:02 +02:00
James McCoy
4c01cb93e0
registry: Use the correct variable name setName creates the child entry
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
Conflicts:
src/registry.py
2012-05-25 18:14:45 +02:00
James McCoy
8ab33bccb4
registry: Use the correct variable name setName creates the child entry
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-05-22 22:46:35 -04:00
Valentin Lorentz
c83481bd9c
Use self instead of non-existing variable name.
2012-05-02 21:06:22 +02:00
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
fa199022e1
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>
(cherry picked from commit ef8bd817e8
)
2010-08-24 19:44:31 -04:00
James Vega
e13d3d6943
Decode/encode as 'string_escape' when (de)serializing the registry.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-08-24 19:43:24 -04: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
James Vega
8cc4a98d9e
Use a better docstring for NonNegativeInteger.
2004-09-03 13:51:06 +00:00
Jeremy Fincher
f6fbe4eb27
Made register more useful, should fix some Services.identify bugs.
2004-08-27 20:10:17 +00:00
Jeremy Fincher
f0a5207117
Let's setValue by default, that's more useful.
2004-08-27 04:32:50 +00:00
Jeremy Fincher
48f58cc4de
Elucidating comment.
2004-08-23 12:27:47 +00:00
Jeremy Fincher
8936208e02
Bah.
2004-08-22 14:36:43 +00:00
Jeremy Fincher
980762492b
Uh, one wonders why I didn't do this in the first place. Just fix the bugs that are already there, Jeremy.
2004-08-22 06:24:45 +00:00
Jeremy Fincher
6ecf2ae6ea
Let's hope this doesn't break anything too serious.
2004-08-21 09:14:59 +00:00
Jeremy Fincher
535d872cab
Information-gathering and robustitude.
2004-08-20 21:17:34 +00:00
Jeremy Fincher
fac96b16dc
Fix for problem with channelvalues not being removed on setValue.
2004-08-20 16:45:48 +00:00
Jeremy Fincher
ed63bc5435
I think there are bugs here, some tests are failing, but it's late and I can't figure out why.
2004-08-20 06:58:25 +00:00
Jeremy Fincher
a4c8384e49
Boomshakalaka\!
2004-08-20 04:35:27 +00:00
Jeremy Fincher
e844d9c943
This should fix the problems with children of ChannelValues.
2004-08-20 03:43:02 +00:00
Jeremy Fincher
b22e3c44e2
Changed supplyDefault to _supplyDefault and added %s handling for supybot.nick.alternates.
2004-08-17 20:43:25 +00:00
Jeremy Fincher
f89bb167d1
Various updates.
2004-08-17 06:36:51 +00:00
Jeremy Fincher
0b699e8ad8
Must...save...bytes...
2004-08-16 18:47:23 +00:00
Jeremy Fincher
1c84dd676b
Renamed to _children.
2004-08-11 17:05:33 +00:00
Jeremy Fincher
775b542126
Useless imports, a nice little bugz0r, found by PyChecker.
2004-08-11 07:30:43 +00:00
Jeremy Fincher
2ebbc80a95
Removed testing code, it's never used.
2004-08-08 17:35:32 +00:00
Jeremy Fincher
50c8cfaf26
Unregister should remove the node from the cache as well.
2004-08-05 18:47:03 +00:00
Jeremy Fincher
2429c1c6f7
Added SpaceSeparatedSetOfStrings.
2004-08-02 12:34:06 +00:00
Jeremy Fincher
3234af10e7
Fix for bug #998311 ; we should now work fine with channels with dots in their names.
2004-08-02 10:47:05 +00:00
Jeremy Fincher
74e3cce0a2
Slightly nicer fix, I don't know why I didn't think of this before.
2004-08-01 18:08:55 +00:00
James Vega
7834a2c50b
Now registry.Regexp updates properly
2004-08-01 16:33:56 +00:00
Jeremy Fincher
b6ba7955ac
With some clearer thinking, I believe this is the proper implementation of tmpDir. If there's something wrong with it, send me a note or write a test and it'll be fixed.
2004-08-01 12:46:03 +00:00
Jeremy Fincher
a2feec9ac0
Added NonNegativeInteger.
2004-07-31 12:09:52 +00:00
Jeremy Fincher
823bfb040f
Added utils.AtomicFile and converted our uses of 'w' to it. This rocks.
2004-07-31 10:21:07 +00:00
Jeremy Fincher
9250d3ab32
Tons of differences, moved some registry values around, also changed some internal attributes of registry thingies.
2004-07-31 05:00:43 +00:00
Jeremy Fincher
30abebecbe
Some random commits, NormalizedString, etc.
2004-07-29 09:51:38 +00:00
Jeremy Fincher
0f12c4bb19
Refactored a little.
2004-07-28 02:56:44 +00:00
Jeremy Fincher
c515e925b8
Added an __call__ on Groups so a better error message is raised.
2004-07-25 11:06:56 +00:00
Jeremy Fincher
3f08089a32
Added registry.split.
2004-07-24 21:40:47 +00:00
Jeremy Fincher
f9c61271ea
w00, less path mungingEXCLAIMEXCLAIM
2004-07-24 05:18:26 +00:00
James Vega
315810d08e
yay! no more stray whitespace
2004-07-21 19:36:35 +00:00
Jeremy Fincher
70efdfbea1
Slight cleanups.
2004-07-21 18:49:27 +00:00
Jeremy Fincher
fd6cb44549
Let's return the node, just in case it turns out to be useful. Of course, we know it turns out to be useful, or else we wouldn't be adding this...
2004-07-20 05:39:58 +00:00
Jeremy Fincher
8ab613dbed
Remove bracketSyntax, make brackets channel-specific.
2004-05-07 16:14:02 +00:00
Jeremy Fincher
0c51ead69d
Minor stylistic update (I think).
2004-05-07 11:41:32 +00:00
Jeremy Fincher
e3b690f933
Added userdata registry.
2004-04-30 18:24:35 +00:00
Jeremy Fincher
2c2e21e765
Fixed bug #941101 .
2004-04-29 11:49:24 +00:00
Jeremy Fincher
8eb20228af
Changed an exception raised.
2004-04-18 02:47:12 +00:00
Jeremy Fincher
4923fc4a6c
Oops, wrong commit.
2004-04-16 08:27:27 +00:00
Jeremy Fincher
a4b54566e9
Uncommented something I didn't understand. Good thing I saw this before the release :)
2004-04-16 08:13:55 +00:00
Jeremy Fincher
d5ee023bfa
Updated some design of the Values.
2004-04-13 01:01:52 +00:00