[Zope3-Users] worldcookery.browser.widget.DynamicSequenceWidget

2006-02-24 Thread Marco Mariani

How should I modify the custom widget in the recipe examples to make it work 
with 3.2.0 ?
As it is, the program does not work from chapter 7 onward

I get this on zope.app.form.browser.SimpleInputWidget at every attempt to 
display the widget:

instance = self._widget_factory(*args)
TypeError: __init__() takes exactly 4 arguments (3 given)



If I take out the widget tags from browser/configure.zcml, the default widget 
works ok (but has a bug when I add two empty rows).



Other things I've already fixed with info from this list are the BrowserMenu 
and response.write
I guess for newcomers a page describing the few changes would be really useful.

thanks

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-24 Thread Lennart Regebro
On 2/24/06, Martijn Pieters [EMAIL PROTECTED] wrote:
 On 2/23/06, Lennart Regebro [EMAIL PROTECTED] wrote:
  Not to mention, doctests are not debuggable from WingIDE. ;-)

 In 2.1 you can; the following is the equivalent of pdb.set_trace():

   wingdbstub.debugger.Break()

 :)

Oh, cool. I need to get 2.1. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-24 Thread Stephan Richter
On Thursday 23 February 2006 17:18, Chris McDonough wrote:
 On Feb 23, 2006, at 4:51 PM, Stephan Richter wrote:
  So, I take it that you are a second voter in favor of not requiring  
  all tests
  to be doctests.

 If the ZSCP thing takes off, I think test/doc req'ts should be  
 somewhat looser than mandating a particular test/doc framework  
 (something along the lines of must have good test coverage and  
 appropriate narrative documentation, maybe with examples of what  
 this means that could be in doctest format by default).  Would that  
 be acceptable?

If there is enough outcry by developers, then yes. ;-)

The problem is that it becomes hard to verify that documentation does not 
deteriorate over time. That means we need certification manager overhead to 
check that; and it would actually be a difficult task. With doctests I can at 
least force the developer to update the documentation examples, and if s/he 
is interested in his package at all, s/he will update the text around it as 
well.

BTW, I have no problem to make the requirements tool independent. I could do 
the following changes:

Doctest-based Testing -- Documentation-based Testing

Actually I just did.

Maybe I should also change::

Minimal Documentation -- Minimal, Testable Documentation
Complete Documentation -- Complete, Testable Documentation

Mmmh, now that I look at the matrix, I really think I should have a small 
explanatory snippet for each metric (below the matrix).

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Install Error: Sax

2006-02-24 Thread Laurence Rowe

You need to install the python-xml package.

Laurence

Steve Wedig wrote:

Hello,

I'm having an install problem for Zope 3.2.0, and I would appreciate
any help you can offer!

I'm running FreeBSD 6 and I had Z3 installed. Everything was wonderful :)

My friend recompiled most of the system, and this apparently involved
an update to most of ports, including sax, and python. At this point
Zope no longer would start up due to this error:

ImportError: /usr/local/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:
Undefined symbol PyUnicodeUCS4_Decode

I figured it was due to the new Python, so I reinstalled Python 2.4.2
from python.org. That didn't fix the problem, so I decided to
reinstall Zope 3.2.0.

./configure works, however when I call make, I get this error:
several traceback lines
File /usr/local/lib/python2.4/site-packages/_xmlplus/sax/saxexts.py,
line 75, in make_parser
sys.modules[parser_name].create_parser = _create_parser
KeyError: 'xml.sax.drivers2.drv_pyexpat'
*** Error code 1

Basically, I'm not sure how to proceed :-/ Although it may be silly, I
tried to comment out the offending line in saxexts.py, but that causes
errors.

So does anyone know about this?

Thanks for you time,
Steve


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] syncing object view after an attribute change

2006-02-24 Thread Gary Poster


On Feb 21, 2006, at 8:22 AM, Joel Moxley wrote:


Hi all,

I've been developing an app, and I keep running into this problem.
Briefly, the object view loaded in my page will be one step out of
sync with a change I make on the object.  This seems to be something
very basic that I am missing, but I have not been able to find an
appropriate fix and instead rely on the simple workaround of pressing
refresh in my browser.

By way of an example, I have a parent container with child objects.
In the container page template view, I have a simple input form that
calls a function deleting all child objects.

td colspan=7 tal:define=result view/formClearAll
  form
input type=submit name=CLEAR_ALL value=Clear All/
  /form
/td

When I press Clear All, the new page shows the views on the old
child objects.  When I press refresh, the new page now correctly has
removed the child objects.

Can someone please give me a pointer on how to remedy this and get my
views back in sync?


This sounds like an update bug: you are rendering, or collecting some  
data for the rendering, before you have finished updating your data  
for the transaction.  This is why formlib has two explicit stages,  
update and render.  I'd think about dividing up your work in those  
two categories: you'll probably catch what the problem is.


Gary
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope3 debian/testing ZopeXMLConfigurationError

2006-02-24 Thread Chris Withers

Stefane Fermigier wrote:


You should probably report this to the Debian Zope packaging team.


...and then once you've given up on package builds, try compiling from 
source ;-)


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users