From ea487dccfe17945f70b3f87812e2f93afa5178c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 17 Nov 2010 22:03:22 +0100 Subject: [PATCH] Add __all__ --- proteus/__init__.py | 1 + proteus/config.py | 1 + proteus/pyson.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/proteus/__init__.py b/proteus/__init__.py index c8cd5efa8c..71c672342b 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -4,6 +4,7 @@ A library to access Tryton's models like a client. ''' __version__ = "0.0.1" +__all__ = ['Model', 'Wizard'] from types import NoneType import threading import datetime diff --git a/proteus/config.py b/proteus/config.py index fa1baef8d4..6a7b2a620b 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -4,6 +4,7 @@ Configuration functions for the proteus package for Tryton. """ from __future__ import with_statement +__all__ = ['set_trytond', 'set_xmlrpc', 'get_config'] import xmlrpclib import threading from decimal import Decimal diff --git a/proteus/pyson.py b/proteus/pyson.py index b3d375bb30..5eca3cb6a6 100644 --- a/proteus/pyson.py +++ b/proteus/pyson.py @@ -1,5 +1,7 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. +__all__ = ['PYSONEncoder', 'PYSONDecoder', 'Eval', 'Not', 'Bool', 'And', 'Or', + 'Equal', 'Greater', 'Less', 'If', 'Get', 'In', 'Date', 'DateTime'] import sys if sys.version_info < (2, 6): import simplejson as json