[Zope-Checkins] SVN: Zope/branches/2.10/ The REQUEST should not accept holds after it has been closed.

2007-06-29 Thread Stefan H. Holek
Log message for revision 77228:
  The REQUEST should not accept holds after it has been closed.
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py
  U   Zope/branches/2.10/lib/python/ZPublisher/tests/testBaseRequest.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===
--- Zope/branches/2.10/doc/CHANGES.txt  2007-06-29 09:21:26 UTC (rev 77227)
+++ Zope/branches/2.10/doc/CHANGES.txt  2007-06-29 09:49:45 UTC (rev 77228)
@@ -8,6 +8,8 @@
 
 Bugs fixed
 
+  - The REQUEST no longer accepts holds after it has been closed.
+
   - Collector #1441: WebDAV compatibility with Windows Web Folders
 restored by adding a configuration variable that controls the
 sending of the non-standard MS-Author-Via and Public

Modified: Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py
===
--- Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py 2007-06-29 
09:21:26 UTC (rev 77227)
+++ Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py 2007-06-29 
09:49:45 UTC (rev 77228)
@@ -634,7 +634,8 @@
 def _hold(self, object):
 Hold a reference to an object to delay it's destruction until mine
 
-self._held=self._held+(object,)
+if self._held is not None:
+self._held=self._held+(object,)
 
 def exec_callables(callables):
 result = None

Modified: Zope/branches/2.10/lib/python/ZPublisher/tests/testBaseRequest.py
===
--- Zope/branches/2.10/lib/python/ZPublisher/tests/testBaseRequest.py   
2007-06-29 09:21:26 UTC (rev 77227)
+++ Zope/branches/2.10/lib/python/ZPublisher/tests/testBaseRequest.py   
2007-06-29 09:49:45 UTC (rev 77228)
@@ -247,6 +247,17 @@
 self.assertRaises(NotFound, r.traverse, 'folder/simpleSet')
 self.assertRaises(NotFound, r.traverse, 'folder/simpleFrozenSet')
 
+def test_hold_after_close(self):
+# Request should no longer accept holds after it has been closed
+r = self.makeBaseRequest()
+r._hold(lambda x: None)
+self.assertEqual(len(r._held), 1)
+r.close()
+# No more holding from now on
+self.assertEqual(r._held, None)
+r._hold(lambda x: None)
+self.assertEqual(r._held, None)
+
 from ZPublisher import NotFound
 
 import zope.interface

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/trunk/ Merged 2.10 branch r77227:77228 into the trunk.

2007-06-29 Thread Stefan H. Holek
Log message for revision 77233:
  Merged 2.10 branch r77227:77228 into the trunk.
  
  The REQUEST should not accept holds after it has been closed.
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/ZPublisher/BaseRequest.py
  U   Zope/trunk/lib/python/ZPublisher/tests/testBaseRequest.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2007-06-29 10:11:35 UTC (rev 77232)
+++ Zope/trunk/doc/CHANGES.txt  2007-06-29 10:12:02 UTC (rev 77233)
@@ -102,7 +102,8 @@
 
 Bugs Fixed
 
- .working
+  - The REQUEST no longer accepts holds after it has been closed.
+
   - Five.browser.metaconfigure.page didn't protect names from interface
 superclasses (http://www.zope.org/Collectors/Zope/2333)
 

Modified: Zope/trunk/lib/python/ZPublisher/BaseRequest.py
===
--- Zope/trunk/lib/python/ZPublisher/BaseRequest.py 2007-06-29 10:11:35 UTC 
(rev 77232)
+++ Zope/trunk/lib/python/ZPublisher/BaseRequest.py 2007-06-29 10:12:02 UTC 
(rev 77233)
@@ -634,7 +634,8 @@
 def _hold(self, object):
 Hold a reference to an object to delay it's destruction until mine
 
-self._held=self._held+(object,)
+if self._held is not None:
+self._held=self._held+(object,)
 
 def exec_callables(callables):
 result = None

Modified: Zope/trunk/lib/python/ZPublisher/tests/testBaseRequest.py
===
--- Zope/trunk/lib/python/ZPublisher/tests/testBaseRequest.py   2007-06-29 
10:11:35 UTC (rev 77232)
+++ Zope/trunk/lib/python/ZPublisher/tests/testBaseRequest.py   2007-06-29 
10:12:02 UTC (rev 77233)
@@ -247,6 +247,17 @@
 self.assertRaises(NotFound, r.traverse, 'folder/simpleSet')
 self.assertRaises(NotFound, r.traverse, 'folder/simpleFrozenSet')
 
+def test_hold_after_close(self):
+# Request should no longer accept holds after it has been closed
+r = self.makeBaseRequest()
+r._hold(lambda x: None)
+self.assertEqual(len(r._held), 1)
+r.close()
+# No more holding from now on
+self.assertEqual(r._held, None)
+r._hold(lambda x: None)
+self.assertEqual(r._held, None)
+
 from ZPublisher import NotFound
 
 import zope.interface

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-dev] Zope Tests: 5 OK

2007-06-29 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Jun 28 12:00:00 2007 UTC to Fri Jun 29 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Jun 28 20:54:44 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007954.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Jun 28 20:56:15 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007955.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Jun 28 20:57:47 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007956.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Jun 28 20:59:19 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007957.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Jun 28 21:00:50 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007958.html

___
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 )


[Zope-dev] Re: State of 'Zope211-3.4-integration' branch

2007-06-29 Thread Philipp von Weitershausen

On 28 Jun 2007, at 17:03 , Andreas Zeidler wrote:

On Jun 25, 2007, at 10:05 AM, Philipp von Weitershausen wrote:

On 21 Jun 2007, at 23:47 , Andreas Zeidler wrote:

On Jun 21, 2007, at 9:07 PM, Tres Seaver wrote:
ah, here it is:  http://svn.zope.org/?rev=76408view=rev should  
fix

the zclasses problem, if i'm not totally mistaken.


That change needs backporting, I think, to the ZODB 3.6 line  
(for 2.9)

and 3.7 line (for 2.10).


true, but i think philipp was only asking about 2.11 for the time  
being.  i agree the fix should be backported, though.  i'd even  
volunteer to do it, if nobody else wants to... :)


That would be great, especially since we're on the verge of new  
maintenance releases for 2.9 and 2.10.


i did the backporting of jim's fix[1] to the 3.6 and 3.7 branches  
of zodb this morning and created two branches[2,3] of zope 2.9 and  
2.10 with no further changes except the updated externals (pointing  
at the zodb branches, of course).  all tests are passing, that is  
for the zodb branches as well as for both zope branches, and  
especially for zclasses, run individually and together with all  
other tests.


so i reckon the fix could go into the next releases of 2.9 and  
2.10, provided they are using new releases of zodb 3.6 and 3.7 in  
turn.  plenty of work for andreas, i guess... :)


If I know Andreas he won't do ZODB releases... So, apart from  
updating version.txt, CHANGES.txt, etc. and making a tag, I don't  
think there would be much else to a ZODB release... *wink* :)




___
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 )


[Zope] z3c.form 1.4.0, z3c.formui 1.1.0, and z3c.formdemo 1.2.0 released!

2007-06-29 Thread Stephan Richter
Hello everyone,

again thanks to the great feedback we received -- especially from David Pratt, 
Roy Mathew, and Joachim Werner -- we were able to fine-tune our new form 
framework even more to make it as robust of a foundation as possible for your 
projects! New features include group support, fully internationalized widgets 
for number and calendar fields, a richer select widget, refined form 
templates, and of course a new demo!

BTW, congratulations to Roger who became father for the third time last 
weekend!

Again for the curious and impatient ...
---

There is also a new demo, of course! The Questionnaire demo provides a form 
for filling out a simple questionaire about someones Zope community 
involvement and then provides a very simple results page. Technically this 
demo (available for the DIV- and Table-based layouts) demonstrates the usage 
of groups, a new feature of this release, as well as writing attribute value 
adapters.

To run the demos do the following::

  $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo
  $ cd formdemo
  $ python bootstrap.py
  $ ./bin/buildout -N
  $ ./bin/demo fg

Now you can access the demo under:

  http://localhost:8080/


On the Javascript Front
---

Paul has made some great progress recently and we have now two demos working, 
including a fully Javascript-driven calculator. I'll leave it up to Paul to 
decide whether he wants to make an announcement, but he will be definitely 
promoting his work at EuroPython!

secretTo see the demos: Replace formdemo with formjsdemo and follow the 
instructions above./secret


Changes
---

z3c.form


- Feature: The select widget grew a new ``prompt`` flag, which allows you to
  explicitely request a selection prompt as the first option in the selection
  (even for required fields). When set, the prompt message is shown. Such a
  prompt as option is common in Web-UIs.

- Feature: Allow no value message of select widgets to be dynamically
  changed using an attribute value adapter.

- Feature: Internationalized data conversion for date, time, date/time,
  integer, float and decimal. Now the locale data is used to format and parse
  those data types to provide the bridge to text-based widgets. While those
  features require the latest zope.i18n package, backward compatibility is
  provided.

- Feature: All forms now have an optional label that can be used by the UI.

- Feature: Implemented groups within forms. Groups allow you to combine a set
  of fields/widgets into a logical unit. They were designed with ease of use
  in mind.

- Feature: Button Actions -- in other words, the widget for the button field
  -- can now be specified either as the actionFactory on the button field or
  as an adapter.

- Bug: Recorded all public select-widget attributes in the interface.


z3c.formui
~~

- Feature: Registered all defined macros for each form template. Also, added
  more slots to the templates providing more hooks for customization.

- Feature: Added a macro/slot for the required info, which explains how
  required fields are marked.

- Feature: Added support for form labels.

- Feature: Added support for groups to templates.


z3c.formdemo


- Feature: Added new field promptChoiceField to the All Widgets demo
  demonstrating the prompt message of the select widget.

- Feature: Increased the integer default value of All Widgets demo to show
  off our new internationalized converter.

- Feature: Made ``bytesField`` and ``passwordField`` non-required, since they
  do not show their default values prohibiting the form to successfully
  submit, which can be annoying when playing around.

- Feature: New Questionnaire demo shows how to use groups effectively. It
  also demonstrates how the label of buttons and widgets can be changed using
  attribute value adapters.


Enjoy!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope products that allows people to Add Commentsto publications

2007-06-29 Thread Max M

Shane Graber skrev:


A quick look at svn
(http://squishdot.svn.sourceforge.net/viewvc/squishdot/) shows no
activity for 11 months, which also lends itself to this inference.
I'm not meaning to sound harsh so I hope it doesn't come across this
way.


Ahh ... spoken as a true Plone developer. You are too used to minor 
versions breaking stuff.


The upshot of the dev team moving their time and efforts to zope 3 is 
that the zope 2 base stays very stable :-s


I have some stuff from years ago that runs unchanged on recent zope 2's

If it it aint broke ... :-)


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope] Zope products that allows people to Add Commentsto publications

2007-06-29 Thread Chris Withers

Shane Graber wrote:

So in order to be running the latest code base the implementer should
be doing a svn/trunk checkout of SquishDot?  It would be helpful to
have this posted someplace on squishdot.org. 


It sure would, that's why the article you refer to below suggests doing 
just that ;-)



Besides, this post
really makes it sound like it is/will not be significantly maintained:

http://www.squishdot.org/1177282074/index_html


It's your choice to read it like that ;-)


A quick look at svn
(http://squishdot.svn.sourceforge.net/viewvc/squishdot/) shows no
activity for 11 months, which also lends itself to this inference.


Wow, it really *has* been 11 months...
I can assure you, I still care a *lot* abotu Squishdot and have several 
sites (including a few customer ones!) that use it. So if something 
breaks, I will fix it.


I just don't want to do a release with that awful dtml skin, but I don't 
have time to replace it...


cheers,

Chris

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

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