Re: [Zope-dev] egg issues: adding namespace boilerplate Products / patching testrunner

2007-04-16 Thread Chris Withers

Dieter Maurer wrote:

If possible, add it at the end of module:

   My XEmacs version loses the ability to recognize function
   and class definitions after the first top level try: ... except ...:.


Maybe you should fix your editor then? ;-)

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] egg issues: adding namespace boilerplate Products / patching testrunner

2007-04-15 Thread Wichert Akkerman
Previously whit wrote:
 2 items:
 
 1. how does everyone feel about adding the following boilerplate to all 
 occurences of Products/__init__.py to enable the easy creation of 
 Product eggs?

Aren't we asking people to move to using python packages instead? I'm -1
on requiring such changes to Products.

Wichert.

-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] egg issues: adding namespace boilerplate Products / patching testrunner

2007-04-13 Thread Dieter Maurer
whit wrote at 2007-4-13 10:43 -0500:
2 items:

1. how does everyone feel about adding the following boilerplate to all 
occurences of Products/__init__.py to enable the easy creation of 
Product eggs?

try:
 __import__('pkg_resources').declare_namespace(__name__)

except ImportError:
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)

If you add this monster, please add also a manifest comment
which indicates what it is for.


If possible, add it at the end of module:

   My XEmacs version loses the ability to recognize function
   and class definitions after the first top level try: ... except ...:.



-- 
Dieter
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )