<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mailman.git/Mailman/database/model, branch master</title>
<subtitle>The GNU Mailing List manager.</subtitle>
<id>https://git.neuromancer.sk/mailman.git/atom/Mailman/database/model?h=master</id>
<link rel='self' href='https://git.neuromancer.sk/mailman.git/atom/Mailman/database/model?h=master'/>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/'/>
<updated>2007-12-08T16:51:36Z</updated>
<entry>
<title>Reorganize the database subpackage, primarily by removing the 'model'</title>
<updated>2007-12-08T16:51:36Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-12-08T16:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=5495accf05d77e1c4ff2855f5e42c2e56f51e45d'/>
<id>urn:sha1:5495accf05d77e1c4ff2855f5e42c2e56f51e45d</id>
<content type='text'>
subdirectory and updating all relevant imports.  Move of the circular
import problems have been eliminated in the process.
</content>
</entry>
<entry>
<title>Complete the port to Storm, at least as far as the current Mailman test suite</title>
<updated>2007-11-17T05:05:23Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-17T05:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=12ace359ccceb507ac2e55c1333f63d3d92af6f7'/>
<id>urn:sha1:12ace359ccceb507ac2e55c1333f63d3d92af6f7</id>
<content type='text'>
is concerned.  This still requires a minor patch to Storm to handle timedelta
types in SQLite.
</content>
</entry>
<entry>
<title>All the simple test fixes are now in, and while there are still some failing</title>
<updated>2007-11-10T18:14:51Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-10T18:14:51Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=58b8ca1c929c5bc0ea1b36fb5e6e683a8830e963'/>
<id>urn:sha1:58b8ca1c929c5bc0ea1b36fb5e6e683a8830e963</id>
<content type='text'>
tests, we're making very good progress.  Just the tough ones are left.  This
change did modify the the schema a bit, for better naming and typing.
E.g. 'type' -&gt; 'request_type' and using a RawStr for a hash type.
</content>
</entry>
<entry>
<title>More Unicodification; fixed several more doctests.</title>
<updated>2007-11-08T23:42:56Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-08T23:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=3d7b9702e4ff97f86025f8d7ae9b29220f5bf264'/>
<id>urn:sha1:3d7b9702e4ff97f86025f8d7ae9b29220f5bf264</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More Unicodification; fixed two more doctests.</title>
<updated>2007-11-08T16:54:25Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-08T16:54:25Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=b28433d0eb1d8cf024f7926cabb37a740571800e'/>
<id>urn:sha1:b28433d0eb1d8cf024f7926cabb37a740571800e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Two more passing tests.</title>
<updated>2007-11-08T11:55:24Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-08T11:55:24Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=73cd0202ff15835139ad4e1d6bfab3a35e804e5b'/>
<id>urn:sha1:73cd0202ff15835139ad4e1d6bfab3a35e804e5b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix two doctests: addresses.txt and mlist-addresses.txt</title>
<updated>2007-11-07T11:55:13Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-07T11:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=c8940f127f99071cb4f256007ece39e6a14a5302'/>
<id>urn:sha1:c8940f127f99071cb4f256007ece39e6a14a5302</id>
<content type='text'>
Remove flush() altogether.  Yee-haw!  Rework queries to be Stormy.  Fix
doctests to be Unicode-ish.
</content>
</entry>
<entry>
<title>Fix two doctests: ack-headers and acknowledgment.</title>
<updated>2007-11-06T23:16:22Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-06T23:16:22Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=d6377c92857c513faf484ef9a91a6b00da789d4b'/>
<id>urn:sha1:d6377c92857c513faf484ef9a91a6b00da789d4b</id>
<content type='text'>
This hacks around an apparent bug in the email package where if you parse a
unicode message string, you still end up getting 8-bit strings out of the
headers, and probably payloads.

The hack is to override Mailman.Message.Message.__getitem__() to force the
header value returned to a Unicode.  It must be ASCII but this is required
anyway by RFC 2822.  It's not perfect, but it lets us get farther without
forcing a detour into fixing the email package.

Other changes:

- Fix the Address table's references, and also update the subscribe() query.
- Fix the Member table's references and add a __init__().
- Fix Roster's get_member() query.
- Fix the Enum class's variable_class attribute.
- UserManager.create_user() has to use Unicodes for real_name.
</content>
</entry>
<entry>
<title>Target Mailman onto the Storm &lt;http://storm.canonical.com&gt; Python ORM.  This</title>
<updated>2007-11-04T23:10:21Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-04T23:10:21Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=46f480dfaa6286ff8950af817de1c35910b37e16'/>
<id>urn:sha1:46f480dfaa6286ff8950af817de1c35910b37e16</id>
<content type='text'>
enables a few interesting things:

1. It makes it easier to do our "pillars of storage" idea, where list data and
   messages could live in one database, but user information live in a
   separate database.

2. It reduces the number of moving parts.  SQLAlchemy and Elixir can both go
   away in favor of just one database layer.

3. No more Unicode/string mush hell.  Somewhere along the way the upgrade to
   SQLAlchemy 0.4 and Elixir 0.4 made the strings coming out the database
   sometimes Unicode and sometimes 8-bit.  This was totally unpredictable.
   Storm asserts that if a property is declared Unicode, it comes in and goes
   out as Unicode.

4. 'flush' is gone.

One cost of this is that Storm does not yet currently support schema
generation.  So I cheat by dumping the trunk's SQLite schema and using that as
a starting place for the Storm-based schema.  I hope that Storm will
eventually address this.

Other related changes include:

- SQLALCHEMY_ENGINE_URL is renamed to DEFAULT_DATABASE_URL.  This may still
  get changed.

Things I still want to fix:

- Ickyness with clearing the databases.
- Really implement multiple stores with better management of the Store
  instances.
- Fix all the circular import nasties.
</content>
</entry>
<entry>
<title>Kill of another now unnecessary append(), fixing the users.txt doctest.</title>
<updated>2007-11-01T03:02:49Z</updated>
<author>
<name>Barry Warsaw</name>
</author>
<published>2007-11-01T03:02:49Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=85473d738ce8ec53ac518819832e0babc3558cf2'/>
<id>urn:sha1:85473d738ce8ec53ac518819832e0babc3558cf2</id>
<content type='text'>
</content>
</entry>
</feed>
