Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Lennart Regebro
On Sun, Jan 3, 2010 at 02:44, Chris McDonough chr...@plope.com wrote:  But I couldn't really figure out a way to do the moral equivalent of this: .. code-block:: python    a == 1 .. manuel-expect:    True Maybe I missed it. I couldn't either. So I added a sphinx module for Manuel,

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Martijn Faassen
Lennart Regebro wrote: [snip] Also if the above code is deemed as being a Good Idea, I will remove all the usage of zope.testing.doctest from Manuel. This is necessary, as one of the things I need from Manuel is a Python 3 port, and I'm not porting zope.testing.doctest to Python 3. I think

[Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory

2010-01-03 Thread Baiju M
Hi All, I started a project named BlueBream to create a script to setup a Zope project directory. BlueBream use ZTK with some additional packages. BlueBream is based on PasteScript's template plugin. The package is available from PyPI: http://pypi.python.org/pypi/bluebream Source code

Re: [Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory

2010-01-03 Thread Baiju M
On Sun, Jan 3, 2010 at 9:20 PM, Andreas Jung li...@zopyx.com wrote: How is this different from ZopeSkel? Well, it's just yet another PasteScript project template. BlueBream provides a slightly different layout compared to basic_zope . Here are few features: 1. BlueBream project package

Re: [Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory

2010-01-03 Thread Alex Clark
On 2010-01-03, Baiju M mba...@zeomega.com wrote: On Sun, Jan 3, 2010 at 9:20 PM, Andreas Jung li...@zopyx.com wrote: How is this different from ZopeSkel? Well, it's just yet another PasteScript project template. BlueBream provides a slightly different layout compared to basic_zope . Another

Re: [Zope-dev] broken zope.publisher because of new content types in zope.contenttype

2010-01-03 Thread Martijn Faassen
Hey, Roger wrote: Since aaron added new mimetypes e.g. application/javascript, the _implicitResult method in zope.publisher.http.py (line 794) is broken because the method checks for text/* content types if unicode is given: def _implicitResult(self, body): encoding =

[Zope-dev] how to help Martijn (how can we have better discussions?)

2010-01-03 Thread Martijn Faassen
Hi there, A meta-discussion, how dangerous! Let's see whether it can help us improve the way we work together, though. I'll talk about how I think, from my perspective, we can improve the quality of discourse on this mailing list and be more constructive. What lowered the quality of this

[Zope-dev] shrinking the ZTK: a proposed solution

2010-01-03 Thread Martijn Faassen
Hi there, So here's my proposed solution for the ZTK shrinking issue: The ZTK branch 'faassen-smaller' contains Hanno's smaller ZTK. Since Zope 2 forked the ZTK in response and continued to make changes to their fork, I've tried to keep it in sync with the Zope 2 fork. I've created a new

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Benji York
On Sat, Jan 2, 2010 at 8:44 PM, Chris McDonough chr...@plope.com wrote: Python samples in Sphinx docs are generated like so: .. code-block:: python     a == 1 I did a bit of fooling around with Manuel, because I wanted to make sure that the code blocks in my documentation actually worked,

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Martijn Faassen
Martin Aspeli wrote: [snip] We've had good success with http://pypi.python.org/pypi/collective.recipe.sphinxbuilder I'm having trouble with this. I'm trying to set up a narrative_docs directory in a package but: * the documentation on collective.recipe.sphinxbuilder pypi talks about a

Re: [Zope-dev] zope.testing 3.8.6 emits deprecation warnings from itself?

2010-01-03 Thread Benji York
On Wed, Dec 30, 2009 at 7:45 AM, Marius Gedminas mar...@gedmin.as wrote: On Wed, Dec 30, 2009 at 08:58:52AM +0100, Lennart Regebro wrote: On Tue, Dec 29, 2009 at 23:47, Marius Gedminas mar...@gedmin.as wrote:  * support for the INTERPRET_FOOTNOTES feature Then they should use Manuel. Good,

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Benji York
On Sun, Jan 3, 2010 at 4:48 PM, Lennart Regebro rege...@gmail.com wrote: On Sun, Jan 3, 2010 at 22:08, Benji York be...@zope.com wrote: Occasionally you want to show some code but hide the assertions about the effects of the code.  You can do that by putting the tests in a reST comment after

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Benji York
On Sun, Jan 3, 2010 at 6:53 AM, Martijn Faassen faas...@startifact.com wrote: Lennart Regebro wrote: [snip] Also if the above code is deemed as being a Good Idea, I will remove all the usage of zope.testing.doctest from Manuel. This is necessary, as one of the things I need from Manuel is a

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Lennart Regebro
On Sun, Jan 3, 2010 at 23:14, Benji York be...@zope.com wrote: In both of those cases normal doctest blocks seem appropriate. Not if you don't want the output in the formatting, or if you don't want the brackets. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Lennart Regebro
On Sun, Jan 3, 2010 at 23:38, Benji York be...@zope.com wrote: I just took a stab at removing all references to zope.testing.doctest from Manuel and got it to work using the zope.testing trunk (Manuel needs DocTestFailureException). Awesome! That would make it easy to port to Python 3, which I

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Chris McDonough
Lennart Regebro wrote: On Sun, Jan 3, 2010 at 23:14, Benji York be...@zope.com wrote: In both of those cases normal doctest blocks seem appropriate. Not if you don't want the output in the formatting, or if you don't want the brackets. Yeah. I haven't thought about this much, so it

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Benji York
On Sun, Jan 3, 2010 at 6:43 PM, Chris McDonough chr...@plope.com wrote: Yeah.  I haven't thought about this much, so it might be bollocks, but I think something like this is what I'm after: .. code-block-setup::   import sys   from somepackage.testing import DummyModule  

Re: [Zope-dev] shrinking the ZTK: a proposed solution

2010-01-03 Thread Takeshi Yamamoto
I agree and support Martijn's strategy. There are *many* Zope 3 users who are not visible on this discussion. For example, these CMS are based on Zope 3, as you can find the word on the page. http://z3ext.net/news/z3ext-1_0_0-released/ https://makunouchi.jp/products Not only them, but more

Re: [Zope-dev] patterns for using sphinx with the Zope Toolkit?

2010-01-03 Thread Martin Aspeli
Martijn Faassen wrote: Martin Aspeli wrote: [snip] We've had good success with http://pypi.python.org/pypi/collective.recipe.sphinxbuilder I'm having trouble with this. I'm trying to set up a narrative_docs directory in a package but: * the documentation on collective.recipe.sphinxbuilder

Re: [Zope-dev] shrinking the ZTK: what happened (my perspective)

2010-01-03 Thread Martin Aspeli
Martijn Faassen wrote: Hi there, This is a summary of the previous discussions for those who weren't paying attention last week and don't want to read a huge thread coming back from vacations. I'm talking about you in particular, other steering group members. I'll spread it out over multiple

Re: [Zope-dev] how to help Martijn (how can we have better discussions?)

2010-01-03 Thread Martin Aspeli
Martijn Faassen wrote: What lowered the quality of this discussion? I think it is because various people became quite upset and annoyed. That's because I reverted Hanno's changes to the ZTK trunk. I shouldn't have done that just like that, but I needed the subsequent discussion to come up

Re: [Zope-dev] shrinking the ZTK: a proposed solution

2010-01-03 Thread Martin Aspeli
Hi, So here's my proposed solution for the ZTK shrinking issue: The ZTK branch 'faassen-smaller' contains Hanno's smaller ZTK. Since Zope 2 forked the ZTK in response and continued to make changes to their fork, I've tried to keep it in sync with the Zope 2 fork. I've created a new

Re: [Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory

2010-01-03 Thread Baiju M
Hi Alex, Thanks for the feedback. I will look into the bugs you pointed out. On Mon, Jan 4, 2010 at 12:38 AM, Alex Clark acl...@aclark.net wrote: [snip] Another obvious question (sorry ;-), why not just contribute to ZopeSkel (which is currently in need of some active

Re: [Zope-dev] [Announce] BlueBream: Script to setup a Zope project directory

2010-01-03 Thread Baiju M
On Mon, Jan 4, 2010 at 12:38 AM, Alex Clark acl...@aclark.net wrote: Also, there are a few installation issues (fixed by running `mkdir -p` by hand):    http://pastie.org/765137    http://pastie.org/765140 On a closer look, this error puzzling me. The var and its sub-folders are already