Google Groups Home
Help | Sign in
TurboGears 0.9a5 released!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Dangoor  
View profile  
(2 users)  More options Apr 29 2006, 7:45 am
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Sat, 29 Apr 2006 07:45:52 -0400
Local: Sat, Apr 29 2006 7:45 am
Subject: TurboGears 0.9a5 released!
Just in time for today's documentation sprint, and packed with more
goodies than originally planned, TurboGears 0.9a5 ("incredible") is
out!

As of now, there are no docs for the new features, but we'll start
correcting that at 10AM Eastern today (join us at #turbogears on
freenode if you dare!).

Several people put in quite a bit of effort this week to make this
release possible (many of the folks in the Contributors section below
were quite active on the trunk list this week). The plan is for this
to be the last 0.9 alpha release, so we pulled out the stops to get
the last upheavals done.

0.9a5 (April 26, 2006)
----------------------

*Backwards Incompatibilties*

* An identity login form must have a submit button having the name
  specified in the config file (identity.form.submit).  If you have a
  commented identity.form.submit value and used the default login.kid
  file, you will need to add 'name="login"' to the login.kid submit
  button.
* In widgets, the base Widget class no longer supports a validator.
  If you need a validator you should use the InputWidget class
* In widgets, the display and the adjust_value methods have a slightly
  different signature (if you happen to use the "convert" parameter,
  you just need to use it as a keyword parameter and not a
  positional one.)
* decorator() should be applied to the function accepting the function
  being decorated ("entangle" by convention), not the caller.
* Removed keyword argument "argsink" from decorator(),
  weak_signature_decorator() should be used instead.

*Deprecations*

* In widgets, template_vars in widgets are now called "params" and
  options_for has been renamed params_for
* In widgets, the update_data method has been renamed update_params
* Identity has moved to PEP8 style naming. Changed userId, groupId, and
  permissionId to be user_name, group_name, and permission_name.
* visit_id has been deprecated in favor of visit_key
* SQL scripts to migrate PostgreSQL and MySQL identity databases are
  available (http://trac.turbogears.org/turbogears/ticket/737)

*Features*

* Dramatically improved and unified logging configuration. Config files
  can now use the options in Python's logging module for log formats
  and output.
* TurboGears now includes an enhanced version of Irmen de Jong's
  Kronos scheduler, allowing you to schedule tasks that run in
  separate threads or processes periodically.
* For Python 2.3 users, there is a convenient new decorator syntax
  that comes from Phillip Eby's PEAK.

Here's is the equivalent of @expose():

    [expose()]
    def index(self):
        pass

* Added a new turbogears.start_server function which will help ease
  the transition to 1.1 *and* adds the ability to use Ian Bicking's
  EvalException. You must turn on tg.fancy_exception to use it
  at this point.
* In widgets, if the widget you are using provides a default validator,
  for example a SelectionWidget, you can tweak its parameters
  by just passing a dictionary of those parameters as validator
  (for example, validator=dict(not_empty=True))
* In widgets, every attribute listed inside params now supports callables
  automatically (the attribute will be called for computation at request
  time)
* Some improvements to the ImageButton widget
* More customization hooks for CheckBoxList, RadioButtonList, TableForm
  and ListForm
* Decimals are properly jsonified (#472)
* datetime.date instances are properly jsonified (#759)
* Commas are supported in number validation (#720)
* It's now possible to determine what permissions are required for
  a given controller method (#603)

*Changes*

* Identity model classes are now placed directly into the model.py of
  a quickstarted project. This new setup is much easier to change,
  since requirements for the identity model vary dramatically. Another
  advantage is that quickstart projects that don't need identity
  start off with cleaner code, and projects that do need identity
  need almost no additional configuration or setup.
* quickstart projects include a "json.py" file as a home for JSON
  view code.
* i18n "scan" command has been changed to "collect" to match the
  admi18n Toolbox tool
* If you quickstart a project while in an svn checkout, files are no
  longer automatically "svn add"ed. This corrects some problems that
  people ran into with that behavior.
* The "prod.cfg" file in quickstart projects is now called
  "sample-prod.cfg" to reflect that it is just used as a sample that
  you copy to your real production servers (#762).
* The various classes used to make dictionaries look like normal
  objects have been replaced by turbogears.util.Bunch (#779)

*Fixes*

* Model Designer can now handle joins to the same table (#769)
* Unicode values sent to the turbogears.url function are utf8 encoded.
* NotEmpty validator works with CheckBoxList now. (#696)
* Grid widget's css has been improved to not interact with other
  widgets (#729, thanks to mark@cyberware)
* the "self" parameter is no longer accidentally removed by validation
* tg_format is properly stripped out for JSON requests (#740)
* calendar widget language fixes (many language files needed patching)
* DataController's float columns are properly converted (#707)
* str values in Kid templates are now assumed to be utf8 rather than
  ASCII (changeable via kid.encoding) (#743)
* The flash message set on the current request takes precedence over the
  one in the cookie (#747)
* py:match was being used in the default templates in a way that would
  drop the text from the first node. (#785)
* AutoCompleteField widget's only_suggest now works correctly when
  there is only one item listed (#750)
* Lots of HTML cleanup

*Project Updates*

* TurboGears now uses ConfigObj 4.3.0 for configuration
* MochiKit upgraded to 1.3
* simplejson upgraded to 1.3
* CherryPy upgraded to 2.2.1
* Kid upgraded to 0.9.1
* FormEncode upgraded to 0.5.1
* PasteScript upgraded to 0.5.1

*Contributors*

Alberto Valverde González, Jeff Watkins, Max Ischenko, Michele Cella,
Simon Belak, Jorge Godoy, Patrick Lewis, Jorge Vargas, Joost Moesker,
Joseph Tate, Philip Walls, Bob Ippolito, Steve Bergman, Andrey Lebedev,
Brian Beck, Roger Demetrescu.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Vargas  
View profile  
 More options Apr 29 2006, 12:05 pm
From: "Jorge Vargas" <jorge.var...@gmail.com>
Date: Sat, 29 Apr 2006 12:05:05 -0400
Local: Sat, Apr 29 2006 12:05 pm
Subject: Re: [TurboGears] TurboGears 0.9a5 released!

doc sprint channel is now #tg-sprint

On 4/29/06, Kevin Dangoor <dang...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jvanasco  
View profile  
 More options Apr 29 2006, 2:31 pm
From: "jvanasco" <jvana...@gmail.com>
Date: Sat, 29 Apr 2006 18:31:56 -0000
Local: Sat, Apr 29 2006 2:31 pm
Subject: Re: TurboGears 0.9a5 released!
Can someone add .9a5 to trac as a revision?  I listed a bug/patch and
enchancement regarding SQLalchemy already, but .9a4 is still the latest
option

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "sqllite script to 0.9a5 [ was Re: [TurboGears] Re: TurboGears 0.9a5 released!]" by Bob Kuehne
Bob Kuehne  
View profile  
(1 user)  More options Apr 29 2006, 2:59 pm
From: Bob Kuehne <bobkue...@gmail.com>
Date: Sat, 29 Apr 2006 14:59:50 -0400
Local: Sat, Apr 29 2006 2:59 pm
Subject: sqllite script to 0.9a5 [ was Re: [TurboGears] Re: TurboGears 0.9a5 released!]

hi, i'm no expert at sql, but i took a stab at the intent behind the  
other two (mysql/postgresql) sql identity upconvert scripts, and  
created one for sqllite. i believe this is correct (it runs), but i'd  
feel better if someone more conversant in sqlite could double-check,  
validate, and streamline this. otherwise, kevin, please add it to  
ticket 737.

  identity-migrate-09a4-to-09a5-sqlite.sql
< 1K Download

  identity-migrate-09a4-to-09a5-sqlite.sql
1K Download

thanks! bob


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "TurboGears 0.9a5 released!" by Kevin Dangoor
Kevin Dangoor  
View profile  
 More options Apr 29 2006, 3:15 pm
From: "Kevin Dangoor" <dang...@gmail.com>
Date: Sat, 29 Apr 2006 15:15:14 -0400
Local: Sat, Apr 29 2006 3:15 pm
Subject: Re: [TurboGears] Re: TurboGears 0.9a5 released!
On 4/29/06, jvanasco <jvana...@gmail.com> wrote:

> Can someone add .9a5 to trac as a revision?  I listed a bug/patch and
> enchancement regarding SQLalchemy already, but .9a4 is still the latest
> option

Done

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jvanasco  
View profile  
 More options Apr 29 2006, 3:35 pm
From: "jvanasco" <jvana...@gmail.com>
Date: Sat, 29 Apr 2006 19:35:59 -0000
Local: Sat, Apr 29 2006 3:35 pm
Subject: Re: TurboGears 0.9a5 released!
Thanks.  Just updated my patch/bug entries to .9a5

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michele Cella  
View profile  
 More options Apr 30 2006, 5:54 am
From: "Michele Cella" <michele.ce...@gmail.com>
Date: Sun, 30 Apr 2006 09:54:27 -0000
Local: Sun, Apr 30 2006 5:54 am
Subject: Re: TurboGears 0.9a5 released!
One important thing we forgot to mention.

TG 0.9a5 ships with FE 0.5.1 that fixes some long standing issue with
how not_empty works inside validators, basically this means that now
*every* validator has not_empty=False by default, this was the case
even before but now this is respected hence if you were using a
validator like Int() and not providing not_empty to mark it as required
you should now take care of doing this.

Example:

>>> from turbogears import validators
>>> int = validators.Int()
>>> int.not_empty
False
>>> int.to_python('')
>>> int.not_empty = True
>>> int.not_empty
True
>>> int.to_python('')

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/home/michele/Progetti/TurboGears/svn/1.0/thirdparty/formencode/formencode /api.py",
line 305, in to_python
    raise Invalid(self.message('empty', state), value, state)
formencode.api.Invalid: Please enter a value


While before 0.9a5 using Int() and to_python('') will have raised a
"Please enter an integer value" exception.

Another handy feature related to this is that now it's pretty easy to
tweak some defaults parameter for such form fields that are already
providing a validator, for example if you use any SelectionField
(SingleSelectField, MultipleSelectField, CheckBoxList, RadioButtonList)
the validator is automatically guessed and not required by default, if
you want to mark the field as required without passing a whole new
validator you can pass a dict as validator in this way:

widgets.MultipleSelectField(..., validator=dict(not_empty=True))

Ciao
Michele


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "sqllite script to 0.9a5 [ was Re: [TurboGears] Re: TurboGears 0.9a5 released!]" by Olli Wang
Olli Wang  
View profile  
 More options May 6 2006, 1:22 am
From: "Olli Wang" <olliw...@gmail.com>
Date: Fri, 05 May 2006 22:22:44 -0700
Local: Sat, May 6 2006 1:22 am
Subject: Re: sqllite script to 0.9a5 [ was Re: [TurboGears] Re: TurboGears 0.9a5 released!]
hi, could you tell me how to use the
identity-migrate-09a4-to-09a5-sqlite.sql? i'm new and totally have no
idea >"<

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge Godoy  
View profile  
 More options May 6 2006, 5:11 pm
From: Jorge Godoy <jgo...@gmail.com>
Date: Sat, 6 May 2006 18:11:21 -0300
Local: Sat, May 6 2006 5:11 pm
Subject: Re: [TurboGears] Re: sqllite script to 0.9a5 [ was Re: [TurboGears] Re: TurboGears 0.9a5 released!]
Em Sábado 06 Maio 2006 02:22, Olli Wang escreveu:

> hi, could you tell me how to use the
> identity-migrate-09a4-to-09a5-sqlite.sql? i'm new and totally have no
> idea >"<

For the PostgreSQL version there are instructions on the ticket where you
found the file.  It is basically to run it through psql in your database.  
For MySQL you'd have to grab the other file and then use it.

But note that this fixes it for the standard SQL Object provider.  I haven't
checked if it updates the tables to work with a default quickstarted project
using the model inside the project instead of the old style where it was
defined in TG itself...

--
Jorge Godoy      <jgo...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google