Commit Graph

33 Commits

Author SHA1 Message Date
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
Valentin Lorentz
14609b3bb2 Add self as an argument to methos in src/dbi.py 2012-05-22 21:15:58 -04:00
Valentin Lorentz
1fe4cef61b Import os before using it. 2012-05-22 21:14:42 -04: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
Ali Afshar
4404cdc51a dbi cdb mapping trying to use a non-existent variable. 2005-03-21 15:53:13 +00:00
Jeremy Fincher
cb05dc8484 Fixed a typo in a variable name. 2005-02-01 10:13:23 +00:00
James Vega
ec045afd9c Removed extraneous whitespace, unused imports, and converted some sets.Set() calls to set(). 2005-01-31 15:24:36 +00:00
James Vega
0fde2393e6 Update usage of utils.iter functions. 2005-01-31 15:22:48 +00:00
James Vega
0a89623b70 Update a couple more imports for the utils split up and fix.py removal. 2005-01-30 15:39:39 +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
Jeremy Fincher
4624115909 No need to makeBackupIfSmaller in databases. That's more for configuration files. 2005-01-14 14:46:52 +00:00
Jeremy Fincher
cbba7c6115 Fixed a potential bug. 2004-12-02 04:51:58 +00:00
Jeremy Fincher
9021c5e150 DirMapping is incomplete, but I need some feature additions for DB. 2004-12-01 21:47:02 +00:00
Jeremy Fincher
54b56a8a53 Raise the proper exception. 2004-11-30 04:42:20 +00:00
Jeremy Fincher
744944d8b2 Wrong variable name. 2004-10-29 19:27:25 +00:00
Jeremy Fincher
6ba2120f5f Optimization. 2004-10-04 16:11:08 +00:00
Jeremy Fincher
e3c9464634 Return None if there's nothing in the database. 2004-10-01 21:25:26 +00:00
Jeremy Fincher
0e5cd79a1b eXXXtra eXXXtra, read all about it. 2004-10-01 08:22:48 +00:00
Jeremy Fincher
4cc1e4ba04 Abstracted for some future overriding. 2004-09-30 04:15:32 +00:00
Jeremy Fincher
e01a9d3bc5 Forgot to vacuum, momma's gonna kill me! 2004-09-28 20:09:39 +00:00
Jeremy Fincher
5753195f45 Changed dbi.Record not to use a metaclass. 2004-09-24 20:05:34 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
Jeremy Fincher
acf0a3f3e5 Augmented the add method for Note. 2004-08-24 04:09:15 +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
James Vega
72f36efc18 Fix some problems in Infobot.py's sqlite implementation and genericize
some other errors to better fit in with db abstraction
2004-08-17 20:01:23 +00:00
James Vega
46c71a7521 Add dbi.NoRecordError and update Quotes to use it 2004-08-16 17:34:58 +00:00
Jeremy Fincher
a1a703df32 Let's go to repr. Beware, people, this may invalidate certain databases. 2004-08-12 07:41:05 +00:00
Jeremy Fincher
12ee483f7a Slight bugfixes; returning from a remove is unpossible. 2004-08-11 05:48:55 +00:00
Jeremy Fincher
e5e98fdc2f Initial checkin. 2004-08-11 05:14:15 +00:00