diff --git a/createclient.py b/bin/createclient similarity index 99% rename from createclient.py rename to bin/createclient index 4eedf8c..d6811b3 100755 --- a/createclient.py +++ b/bin/createclient @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # -*- coding: UTF-8 -*- # # Copyright (C) 2007 by Jan Dittberner. diff --git a/bin/listclients b/bin/listclients new file mode 100755 index 0000000..0a8683a --- /dev/null +++ b/bin/listclients @@ -0,0 +1,33 @@ +#!/usr/bin/python +# -*- coding: UTF-8 -*- +# +# Copyright (C) 2007 by Jan Dittberner. +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. + +import sqlalchemy + +from gnuviechadmin import client, exceptions + +def main(): + session = sqlalchemy.create_session() + query = session.query(client.Client) + + for row in query.select(): + print row + +if __name__ == "__main__": + main() diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b79b46c --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +# -*- python -*- +# -*- coding: UTF-8 -*- +# +# Copyright (C) 2007 by Jan Dittberner. +# +# This program 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 2 of the License, or +# (at your option) any later version. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. +# +# Version: $Id$ + +from distutils.core import setup + +setup(name='gnuviechadmin', + version='0.1', + description='gnuviechadmin server administration suite', + author='Jan Dittberner', + author_email='jan@dittberner.info', + url='http://www.gnuviech-server.de/gnuviechadmin', + packages=['gnuviechadmin'], + scripts=['bin/createclient', 'bin/listclients'], + )