[Checkins] SVN: zope.deferredimport/trunk/ Recreated README.txt removing non-essential information.

Alexander Heavner alex at zope.com
Thu Feb 15 11:57:50 EST 2007


Log message for revision 72611:
  Recreated README.txt removing non-essential information. 
  Removed test.py because it is no longer needed.
  

Changed:
  A   zope.deferredimport/trunk/README.txt
  D   zope.deferredimport/trunk/test.py

-=-
Added: zope.deferredimport/trunk/README.txt
===================================================================
--- zope.deferredimport/trunk/README.txt	2007-02-15 16:55:25 UTC (rev 72610)
+++ zope.deferredimport/trunk/README.txt	2007-02-15 16:57:49 UTC (rev 72611)
@@ -0,0 +1,19 @@
+zope.deferredimport Package Readme
+==================================
+
+Overview
+--------
+
+Often, especially for package modules, you want to import names for
+convenience, but not actually perform the imports until necessary.
+The zope.deferredimport package provided facilities for defining names
+in modules that will be imported from somewhere else when used.  You
+can also cause deprecation warnings to be issued when a variable is
+used, but we'll get to that later.
+
+The zope.deferredimport.define function can be used to define one or
+more names to be imported when they are accessed.  Simply provide
+names as keyword arguments with import specifiers as values.  The
+import specifiers are given as strings of the form "module:name",
+where module is the dotted name of the module and name is a, possibly
+dotted, name of an object within the module.


Property changes on: zope.deferredimport/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Deleted: zope.deferredimport/trunk/test.py
===================================================================
--- zope.deferredimport/trunk/test.py	2007-02-15 16:55:25 UTC (rev 72610)
+++ zope.deferredimport/trunk/test.py	2007-02-15 16:57:49 UTC (rev 72611)
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Sample test script using zope.testing.testrunner
-
-see zope.testing testrunner.txt
-
-$Id$
-"""
-
-import os, sys
-
-src = os.path.join(os.path.split(sys.argv[0])[0], 'src')
-sys.path.insert(0, src) # put at beginning to avoid one in site_packages
-
-from zope.testing import testrunner
-
-defaults = [
-    '--path', src,
-    '--package', 'zope.deferredimport',
-    '--tests-pattern', '^tests$',
-    ]
-
-sys.exit(testrunner.run(defaults))
-



More information about the Checkins mailing list