[Zope3-Users] 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
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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

2007-06-29 Thread Martin Hefler

Hi,

I had the same problem, when I was updating version 1.3.0 to 1.4.0.

After checking out to a new directory it works fine.

Regards
Martin


Am 29.06.2007 um 11:43 schrieb Darryl Cousins:


Hi,

On Fri, 2007-06-29 at 03:50 -0400, 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!


Sincere congratulations indeed!



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.


The questionnaire returned with errors (because groups return
RequiredMissing errors). Should fields be selected to name and age  
only?

If not, then is there a template registration missing perhaps for the
fieldsets?

...


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


Amazing. It sent me diving into jquery packages. You all have  
provided a

wonderful set of tools. Thank you. Thank you.

Regards,
Darryl




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


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


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


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

2007-06-29 Thread Darryl Cousins
Hi,

On Fri, 2007-06-29 at 03:50 -0400, 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!

Sincere congratulations indeed!

 
 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.

The questionnaire returned with errors (because groups return
RequiredMissing errors). Should fields be selected to name and age only?
If not, then is there a template registration missing perhaps for the
fieldsets?

...
 
 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

Amazing. It sent me diving into jquery packages. You all have provided a
wonderful set of tools. Thank you. Thank you.

Regards,
Darryl

 
 
 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

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


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

2007-06-29 Thread Darryl Cousins
Hi,

On Fri, 2007-06-29 at 12:03 +0200, Martin Hefler wrote:
 Hi,
 
 I had the same problem, when I was updating version 1.3.0 to 1.4.0.
 
 After checking out to a new directory it works fine.

Yep, right you are.

Regards,
Darryl

 
 Regards
 Martin
 
 
 Am 29.06.2007 um 11:43 schrieb Darryl Cousins:
 
  Hi,
 
  On Fri, 2007-06-29 at 03:50 -0400, 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!
 
  Sincere congratulations indeed!
 
 
  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.
 
  The questionnaire returned with errors (because groups return
  RequiredMissing errors). Should fields be selected to name and age  
  only?
  If not, then is there a template registration missing perhaps for the
  fieldsets?
 
  ...
 
  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
 
  Amazing. It sent me diving into jquery packages. You all have  
  provided a
  wonderful set of tools. Thank you. Thank you.
 
  Regards,
  Darryl
 
 
 
  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
 
  ___
  Zope3-users mailing list
  Zope3-users@zope.org
  http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org

[Zope3-Users] Problems with internationalization

2007-06-29 Thread Jeremy Cook

Hi,

I have been trying to internationalize my application and add a Norwegian
translation but am stuck. By default I am getting only English for things
like date in news items and so on.

Using chapter 9 of the Philipp von Weitershausen book, I have tried various
things.

Using ++lang++test, ++lang++de, ++lang++no (or ++anything-else) always
results in a system error occurred, with an error message Can only shift
leading traversal names to application names. I do not understand this
error message or what it is trying to tell me.

Also, trying to start to create the NO translation by running i18nextract
also results in a serious error which seems non trivial to work around.

Can anyone shed any light on either of these two problems? I seem to be
missing something fundamental here?

Jeremy

C:\NLRK-Zope.\bin\i18nextract -p lib\python\wcsite -d wcsite -o locale
base path: 'C:\\NLRK-Zope\\'
search path: C:\NLRK-Zope\lib\python\wcsite
exclude dirs: []
domain: 'wcsite'
output file: 'C:\\NLRK-Zope\\lib\\python\\wcsite\\locale\\wcsite.pot'
There was an error processing C:\NLRK-Zope\lib\python\wcsite\rss.pt
Traceback (most recent call last):
 File C:\Python24\Lib\site-packages\zope\app\locales\extract.py, line
399, in
tal_strings
   p.parseFile(filename)
 File C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py, line 122,
in p
arseFile
   self.parseString(data)
 File C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py, line 128,
in p
arseString
   self.feed(data)
 File C:\Python24\lib\HTMLParser.py, line 108, in feed
   self.goahead(0)
 File C:\Python24\lib\HTMLParser.py, line 148, in goahead
   k = self.parse_starttag(i)
 File C:\Python24\lib\HTMLParser.py, line 268, in parse_starttag
   self.handle_starttag(tag, attrs)
 File C:\Python24\Lib\site-packages\zope\tal\htmltalparser.py, line 150,
in h
andle_starttag
   self.getpos())
TALError: empty HTML tags cannot use tal:content: 'link', at line 12, column
3,
in file C:\NLRK-Zope\lib\python\wcsite\rss.pt



--
[EMAIL PROTECTED]tlf: +47 55 58 40 65
Parallab  Bergen Centre for Computational Science
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


AW: [Zope3-Users] z3c.form 1.4.0, z3c.formui 1.1.0, and z3c.formdemo 1.2.0 released!

2007-06-29 Thread Roger Ineichen
Hi Stephan

[...]

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

Thanks, everything is fine here and I'm back online next monday.

Regards
Roger Ineichen

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