Valentin Lorentz
216c5d213f
Replace sys.version_info[0] usages with minisix.PY{2,3}.
2015-08-09 00:23:03 +02:00
Valentin Lorentz
be118c3338
Remove use of fix_dict fixer.
2015-08-08 23:08:49 +02:00
Valentin Lorentz
721cb06dcd
registry: Add a header to the configuration file telling not to edit it.
2015-05-20 13:58:20 +02:00
Valentin Lorentz
4470805b5f
core: Remove useless imports.
2015-03-03 09:02:29 +01:00
Valentin Lorentz
a4398a8773
registry: Add CommaSeparatedSetOfStrings.
2014-08-10 18:07:04 +02:00
Valentin Lorentz
b14ed2c5d9
Config: Prevent variable creation when trying to get the value of a channel-specific variable for a non-channel.
2014-05-31 20:44:56 +02:00
Valentin Lorentz
06fdaa792f
Continue accelerating the 2to3 step (remove fix_map).
2014-01-21 10:57:38 +01:00
Valentin Lorentz
bb7db3ab21
Continue accelerating the 2to3 step (remove fix_except).
2014-01-20 15:49:15 +01:00
Valentin Lorentz
2fda69b4d6
Continue accelerating the 2to3 step (remove fix_raise).
2014-01-20 15:43:55 +01:00
Valentin Lorentz
c1c23f66f4
Continue accelerating the 2to3 step (remove fix_print).
2014-01-20 15:31:09 +01:00
Valentin Lorentz
359d3c633d
registry: Make subvalues inherit privacy. Closes GH-519.
2013-10-06 14:26:03 +00:00
Valentin Lorentz
40675ffdfa
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
plugins/Admin/plugin.py
plugins/BadWords/config.py
plugins/Filter/plugin.py
plugins/Google/plugin.py
plugins/Math/plugin.py
plugins/Misc/plugin.py
plugins/Note/plugin.py
plugins/RSS/plugin.py
plugins/Seen/test.py
plugins/ShrinkUrl/config.py
plugins/ShrinkUrl/plugin.py
plugins/ShrinkUrl/test.py
plugins/Status/plugin.py
plugins/String/config.py
plugins/String/plugin.py
plugins/Time/plugin.py
plugins/Todo/plugin.py
plugins/Web/plugin.py
plugins/__init__.py
scripts/supybot-botchk
setup.py
src/__init__.py
src/callbacks.py
src/commands.py
src/conf.py
src/drivers/Socket.py
src/ircdb.py
src/irclib.py
src/ircutils.py
src/questions.py
src/registry.py
src/schedule.py
src/test.py
src/utils/file.py
src/utils/gen.py
src/utils/net.py
src/utils/web.py
src/world.py
2013-08-24 11:28:29 +02:00
Valentin Lorentz
addb754c68
registry.py: Use %r instead of %s in for formating __nonExistentEntry errors.
2013-07-08 22:51:16 +02:00
Valentin Lorentz
3dba9088b0
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
INSTALL
plugins/ChannelLogger/README.txt
plugins/ChannelStats/README.txt
plugins/Google/plugin.py
plugins/Google/test.py
plugins/Plugin/test.py
plugins/Web/test.py
setup.py
src/callbacks.py
src/ircdb.py
src/irclib.py
src/utils/str.py
test/test_irclib.py
2013-01-01 21:11:24 +01:00
Valentin Lorentz
72bc227e1b
registry: Fix Json unserialization.
2012-12-15 22:00:23 +01:00
Valentin Lorentz
ad3f58efc2
Add the content of the new value of a config var, when it is not compatible with this config type.
2012-12-12 18:47:03 +01:00
Valentin Lorentz
d9f7e0e818
Add editable() method to registry.Json.
2012-12-08 21:13:54 +01:00
Valentin Lorentz
d8bd1f6f92
Add registry.Json.
2012-12-08 20:59:36 +01:00
Valentin Lorentz
4e8c35dd0c
Add context() method to registry.Value objects. Closes GH-430.
...
This method returns a context objet, for use with the 'with' statement.
2012-12-08 20:05:51 +01:00
James McCoy
cef93a6cfd
Use relative imports for all packages under the supybot namespace
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-17 22:12:11 -04:00
James McCoy
82ecf36fcd
Update my name/contact information
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
James McCoy
232aa86a1e
Merge branch 'maint/0.83.4'
2012-09-01 09:13:52 -04:00
Valentin Lorentz
f1165333e5
src/registry.py: Fix encoding issues with Python 3.
2012-08-05 13:28:16 +02:00
Valentin Lorentz
4ffaff0638
Don't use utils.str.chars anymore.
2012-08-05 09:54:34 +02:00
Valentin Lorentz
0b7e4e5ce5
src/registry.py: Fix encoding issue with Python 3.
2012-08-04 22:46:52 +02:00
Valentin Lorentz
4bf39f773f
Use the codecs module in src/registry.py.
2012-08-04 15:48:30 +02:00
Valentin Lorentz
69c18aed08
Make NonExistentRegistryEntry subclass AttributeError.
2012-08-04 15:11:45 +02:00
Valentin Lorentz
d52e501ae8
Use open() instead of file().
2012-08-04 13:13:16 +02:00
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