From 857b8cbc8acd8caec21311de9c41357a79039e8c Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 10 Oct 2009 11:18:56 -0400 Subject: database/model reorganization. Model classes go in mailman.model. Stock database support goes in mailman.database. Move stuff out of mailman/database/__init__.py. --- src/mailman/database/language.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/mailman/database/language.py (limited to 'src/mailman/database/language.py') diff --git a/src/mailman/database/language.py b/src/mailman/database/language.py deleted file mode 100644 index 8adc5c4a5..000000000 --- a/src/mailman/database/language.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (C) 2006-2009 by the Free Software Foundation, Inc. -# -# This file is part of GNU Mailman. -# -# GNU Mailman is free software: you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free -# Software Foundation, either version 3 of the License, or (at your option) -# any later version. -# -# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -# more details. -# -# You should have received a copy of the GNU General Public License along with -# GNU Mailman. If not, see . - -"""Model for languages.""" - -from __future__ import absolute_import, unicode_literals - -__metaclass__ = type -__all__ = [ - 'Language', - ] - - -from storm.locals import * -from zope.interface import implements - -from mailman.database import Model -from mailman.interfaces import ILanguage - - - -class Language(Model): - implements(ILanguage) - - id = Int(primary=True) - code = Unicode() -- cgit v1.2.3-70-g09d2