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

2007-07-03 Thread Jeff Kowalczyk
Something in z3c.formdemo r77305 gives the following error (r77253 builds
and runs):

 $ ./bin/buildout 
 Develop: '/software/formdemo/.'
 Develop: '/software/formdemo/z3c.form'
 Traceback (most recent call last):
   File "/tmp/tmpeS3r2n", line 10, in ?
 execfile('/software/formdemo/z3c.form')
 IOError: [Errno 2] No such file or directory:
  '/software/formdemo/z3c.form'
 While:
   Installing.
   Processing develop directory '/software/formdemo/z3c.form'.

 An internal error occured due to a bug in either zc.buildout or in a
 recipe being used:

 AssertionError:

(end)



___
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] KeyErrors in Zope using ZEO

2007-07-03 Thread Maciej Wisniowski
> However, I'm still experiencing intermittent KeyErrors with the session
> stuff.  The line of code that always breaks is "session =
> REQUEST.SESSION"  and it has happened everywhere in my code that I use
> that.  Is there a better way to access the session that I should be
> using?  
I think there is no better way although there are different ways.
Maybe you should think again if you really have to use sessions shared
between zeo clients. If so then you should possibly try Faster (another
session implementation) that is said to be better especially in such
setup with ZEO.

-- 
Maciej Wisniowski
___
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] KeyErrors in Zope using ZEO

2007-07-03 Thread Mike Patterson
Removing the 'name zeostorage' didn't have any affect on the issue.  I 
was able to fix the KeyErrors by increasing the cache-size in the zeo 
client configuration part of the zope.conf though.


However, I'm still experiencing intermittent KeyErrors with the session 
stuff.  The line of code that always breaks is "session = 
REQUEST.SESSION"  and it has happened everywhere in my code that I use 
that.  Is there a better way to access the session that I should be 
using?  The traceback ends like this:


   * Module ZPublisher.HTTPRequest, line 1217, in __getattr__
   * Module ZPublisher.HTTPRequest, line 1177, in get
   * Module Products.Sessions.SessionDataManager, line 96, in
 getSessionData
   * Module Products.Sessions.SessionDataManager, line 183, in
 _getSessionDataObject
   * Module Products.Transience.Transience, line 846, in new_or_existing
   * Module Products.Transience.Transience, line 452, in __setitem__

I'm now using the exact same configuration for sessions as detailed in 
http://www.zopelabs.com/cookbook/1061234337 except the zeo server is on 
a different box than the clients.  Any ideas?


Thanks,
Mike


Bakhtiar A Hamid wrote:

On 5/12/07, Mike Patterson <[EMAIL PROTECTED]> wrote:

Hi,
We've been experiencing two KeyError problems with Zope since moving
to a ZEO environment at the beginning of the year.  On the server that
the ZEO server resides we have 3 Zope instances running, and each of
them gets a KeyError about once or twice a week individually.
Restarting the offending instance takes care of the issue, but I was
wondering if anyone has an idea of why we would be seeing these.

Thanks,
Mike



looks like there may be problems with the cache file.  try not using
the cache file and see whether that helps by removing name zeostrorage
on each clients.


hth

___
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: [Zope3-Users] z3c.form 1.4.0, z3c.formui 1.1.0, and z3c.formdemo 1.2.0 released!

2007-07-03 Thread David Pratt
Many thanks Stephan for these great improvements and the new 
functionality. I have been away for a bit since I am taking a bit of a 
break for a month. Could not help checking out the new group demo though 
- its just excellent! The package and demos are truly the kind of help 
that was needed for form development. Your work has brought significant 
clarity and a pattern for something we all have to tackle.


Roger, also wanted to add my congratulations and best wishes on your new 
family member. Children are a wonderful gift.


Regards,
David


Stephan Richter wrote:

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!


To see the demos: Replace "formdemo" with "formjsdemo" and follow the 
instructions above.



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

___
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: Kein Zugriff mehr auf Zope Root via ZMI (Nico Grubert)

2007-07-03 Thread Nico Grubert
I'm sorry. This message should go to the german DZUG list. The problem 
is solved. Sorry for the irritation.


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