2.2 saw some performance improvements, mostly related to the backport
of some speed changes from the 2.3 branch to Crank.
For a benchmark you can see: http://blog.axant.it/archives/452
It benchmarks controllers that just return "Hello World" to remove the
overhead of the template rendering which is something TG cannot
improve.
TG code itself is around twice as fast as the 2.1 codebase.
> by the way, wasn't 2.2 was going to use pylonsless branch?
The 2.3 release will be pylons less one, 2.2 is the last pylons based release.
We tried to keep major changes at minimum for each release (2.2
already has switch to crank and tw2) to make sure we can keep the best
possible backward compatibility.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
Le 10/04/2012 17:55, Michael Pedersen a �crit :
> Well, after working on the package updates last night, I worked on
> getting a beta release of TG2.2 out.
Hi,
Thanks all for your work.
Is there already documentation for the 2.2 release, especially on
migrating from 2.1 ? I'd like to test the beta, but not sure where to start.
Thanks,
- --
Jean-Denis Girard
SysNux Syst�mes Linux en Polyn�sie fran�aise
http://www.sysnux.pf/ T�l: +689 50 10 40 / GSM: +689 79 75 27
>
> You won't find it on PyPi, and I have no intention of ever putting it there.
>
> However, you can install it with only slight variation on the normal
> instructions:
>
> easy_install -i http://tg.gy/beta tg.devtools
>
> All of the packages are upgraded as high as they can be. That means that
> only Pylons, Chameleon, repoze.who, and transaction are not at the
> latest possible release.
>
> People, please test this with your code. File tickets. Let us know of
> problems. We're going to release this as our current stable release
> soon. Definitely before the end of May, and hopefully at the end of
> April. Without your feedback, though, we could create problems for you.
> We don't want that, so please let us know.
>
> Many new packages, many internal code changes to fix many bugs, and many
> new features, and no support for Python 2.4. This is a major release.
> Help us get it right.
>
> Thank you.
>
> --
> Michael J. Pedersen
> My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
> Google Talk: m.ped...@icelus.org <mailto:m.ped...@icelus.org>
> -- Twitter: pedersentg
>
> --
> You received this message because you are subscribed to the Google
> Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk+FtIsACgkQuu7Rv+oOo/jCgQCgmiSHZrYPIgCLCdLDhGCLYZrG
7rAAn20eSCIRfcVItA4rGkE3ASKkFXBX
=9MQ/
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 10/04/2012 17:55, Michael Pedersen a écrit :
> Well, after working on the package updates last night, I worked onHi,
> getting a beta release of TG2.2 out.
Thanks all for your work.
Is there already documentation for the 2.2 release, especially on
migrating from 2.1 ? I'd like to test the beta, but not sure where to start.
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
That can be easily fixed by changing tgext/menu/__init__.py to import
tg.util.Bunch,
I think that Michael can change it quite quickly as he is the author
of tgext.menu itself.
On Sat, Apr 21, 2012 at 6:09 AM, Jean-Denis Girard <jd.g...@sysnux.pf> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I made a quick test of my application under tg-2.2 today. I installed in
> a new virtualenv, without any issue. I quickstarted a project and ran
> tests, everything seemed ok.
>
> Then I copied my project but got an error when running paster setup-app:
> File
> "/home/SysNux/tg22_64/lib/python2.6/site-packages/tgext.menu-1.0rc1-py2.6.egg/tgext/menu/__init__.py",
> line 29, in <module>
> from tg.configuration import Bunch
> ImportError: cannot import name Bunch
>
>
> Thanks,
> - --
> Jean-Denis Girard
>
> SysNux Systèmes Linux en Polynésie française
> http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
Hi Allessandro,
I confirm that changing:
from tg.configuration import Bunch
to:
from tg.util import Bunch
in tgext/menu/__init__.py solves my problem.
My application seems to be running fine under tg-2.2 :)
Thanks,
- --
Jean-Denis Girard
SysNux Syst�mes Linux en Polyn�sie fran�aise
http://www.sysnux.pf/ T�l: +689 50 10 40 / GSM: +689 79 75 27
Le 21/04/2012 07:46, Alessandro Molina a �crit :
> It seems that tgext.menu is trying to import Bunch from
> tg.configuration while it relies in tg.util.
> Bunch has always relied in tg.utl.Bunch, it was just imported in
> configuration because configuration itself uses it.
>
> That can be easily fixed by changing tgext/menu/__init__.py to import
> tg.util.Bunch,
> I think that Michael can change it quite quickly as he is the author
> of tgext.menu itself.
>
> On Sat, Apr 21, 2012 at 6:09 AM, Jean-Denis Girard <jd.g...@sysnux.pf> wrote:
> Hi,
>
> I made a quick test of my application under tg-2.2 today. I installed in
> a new virtualenv, without any issue. I quickstarted a project and ran
> tests, everything seemed ok.
>
> Then I copied my project but got an error when running paster setup-app:
> File
> "/home/SysNux/tg22_64/lib/python2.6/site-packages/tgext.menu-1.0rc1-py2.6.egg/tgext/menu/__init__.py",
> line 29, in <module>
> from tg.configuration import Bunch
> ImportError: cannot import name Bunch
>
>
> Thanks,
>>
>> --
>> You received this message because you are subscribed to the Google Groups "TurboGears" group.
>> To post to this group, send email to turbo...@googlegroups.com.
>> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>>
>
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk+S/VYACgkQuu7Rv+oOo/iCfwCfWlHge5mQhKNVF4KssSlJ9WlT
LF4AoJyEza3IF9p5XnQuGedwYhRC5C3D
=XQWi
-----END PGP SIGNATURE-----
On Sat, Apr 21, 2012 at 11:02 PM, Jean-Denis Girard <jd.g...@sysnux.pf> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Le 21/04/2012 08:32, Jean-Denis Girard a écrit :
>> My application seems to be running fine under tg-2.2 :)
>
> Actually I have problem with RestController. I get the following
> validation error:
> Le champ de saisi « '_method' » n'était pas attendu.
> (Input field _method was not expected)
>
> I'm using tw.forms and tw.forms.validators, not tw2.
>
>
> Thanks,
> - --
> Jean-Denis Girard
>
> SysNux Systèmes Linux en Polynésie française
> http://www.sysnux.pf/ Tél: +689 50 10 40 / GSM: +689 79 75 27
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAk+TIFUACgkQuu7Rv+oOo/g6qACeJOU1NVf8gc0g6MHmVKLY3buZ
> El8AnRW8RjTfuEtgIr8bF+vep2fLqsCr
> =7htl
> -----END PGP SIGNATURE-----
>
Le 22/04/2012 00:52, Alessandro Molina a �crit :
> Can you provide more informations or a test case?
There's not much more to say. _method is an hidden field added to the
form as recommended in the documentation for RestController.
Here is an example from my application running fine with tg2.1:
class Edit_group_form(TableForm):
''' Edit group form
'''
fields = [
TextField('display_name', validator=NotEmpty,
label_text='Descriptif',
help_text=u'Entrez un descriptif du groupe'),
HiddenField('_method', validator=None), # Needed by RestController
hiddenField('group_id', validator=Int),
]
submit_text = u'Valider...'
action = '/groups'
method = 'POST'
hover_help = True
edit_group_form = Edit_group_form('edit_group_form')
....
@expose(template="astportal2.templates.form_new")
def edit(self, id=None, **kw):
''' Display edit group form
'''
if not id: id = kw['group_id']
g = DBSession.query(Group).get(id)
v = {'group_id': g.group_id, 'display_name': g.display_name,
'_method': 'PUT'}
tmpl_context.form = edit_group_form
return dict(title = u'Modification groupe ' + g.group_name,
debug='', values=v)
@validate(edit_group_form, error_handler=edit)
@expose()
def put(self, display_name, group_id):
''' Update group in DB
'''
log.info('update %d' % group_id)
g = DBSession.query(Group).get(group_id)
g.display_name = display_name
flash(u'Groupe modifi�')
redirect('/groups/%d/edit' % group_id)
I have tried to create a simple tg2.2 quickstarted application with a
RestController, but I'm getting another error :
TypeError: No object (name: ToscaWidgets per-request storage) has been
registered for this thread
Thanks,
- --
Jean-Denis Girard
SysNux Syst�mes Linux en Polyn�sie fran�aise
http://www.sysnux.pf/ T�l: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk+UnIcACgkQuu7Rv+oOo/h+EQCgk2RBfFODIhjK4v9mTESaKzKG
4uUAni0gLtWB0/c2LmcMq+SA46S7CQO1
=6BSJ
-----END PGP SIGNATURE-----
You are probably trying to use Tw1 while by default TG2.2 quickstarts with Tw2.
This can be easily solved by removing the "prefer_toscawidgets2" line
inside config/app_cfg.py
I wrote a test unit to check for the issue but it seems that on 2.2
isn't there anymore, can you confirm this?
-----BEGIN PGP SIGNED MESSAGE-----Hi Allessandro,
Hash: SHA1
I confirm that changing:
from tg.configuration import Bunch
to:
from tg.util import Bunch
in tgext/menu/__init__.py solves my problem.
My application seems to be running fine under tg-2.2 :)
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
-----BEGIN PGP SIGNED MESSAGE-----Hi Michael,
Hash: SHA1
Le 25/04/2012 17:01, Michael Pedersen a écrit :
> I've just released an updated tgext.menu. It fixes that one line, andI have just upgraded tgext.menu to 1.0rc2 and made a quick test,
> then makes all the changes that were necessary so the tests would run to
> completion again. We're still passing all of them, so that's good.
everything seems fine, thanks.
This morning I also tried to use toscawidget2, and discovered that it
broke tgext.menu; is this a known problem, or are you interested in more
details?
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk+Yy0AACgkQuu7Rv+oOo/iSHACfehKARFsiHzVvP66M2u+h2XMy
STEAn0X9Ue71d19a31SCx/7vCNzX7h83
=dKRv
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 25/04/2012 18:47, Michael Pedersen a écrit :
> What do you mean that tw2 broke tgext.menu? I don't know of problems,Adding: "base_config.use_toscawidgets2 = True" to app_cfg.py generates
> and I would very much like to fix them.
these JS errors:
$("ul.jd_menu").jdMenu is not a function
$("#sidebar").jdMenu is not a function
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
iEYEARECAAYFAk+Y7c8ACgkQuu7Rv+oOo/g6jwCaAmCoKUCNtyrbHieXXuldE4ss
n7AAniyNHFNLOu+6hJ2qZYk3sw51uYvK
=ZkUH
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 26/04/2012 16:58, Michael Pedersen a écrit :
> This morning, when I read this message, I thought it was an issue withI've upgraded tgext.menu to rc3, but I still get the exact same JS errors.
> resource ordering. Came home, ready to tackle that problem. Turns out it
> was not resource ordering.
>
> I didn't wrap the call to jdMenu() in a $(document).ready() block, like
> I should have. This has been fixed, and 1.0rc3 is out. Thanks for
> letting me know about this.
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
iEYEARECAAYFAk+aN1MACgkQuu7Rv+oOo/gd5gCgpXTTC4nURbdJ/7+QgQw0NUxl
UjQAn1Jetl4sDXh6M+LO7YVfqgLqfUKJ
=CliD
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
-----BEGIN PGP SIGNED MESSAGE-----ok, so it means tgext.menu is not compatible with tw2; tw2 is default in
Hash: SHA1
tg2.2 applications, so tgext.menu is not compatible with tg2.2, right ?
Thanks,
- --
Jean-Denis Girard
SysNux Systèmes Linux en Polynésie française
TypeError: 'SortableColumn' object has no attribute '__getitem__'
Well, after working on the package updates last night, I worked on getting a beta release of TG2.2 out.You won't find it on PyPi, and I have no intention of ever putting it there.However, you can install it with only slight variation on the normal instructions:easy_install -i http://tg.gy/beta tg.devtoolsAll of the packages are upgraded as high as they can be. That means that only Pylons, Chameleon, repoze.who, and transaction are not at the latest possible release.People, please test this with your code. File tickets. Let us know of problems. We're going to release this as our current stable release soon. Definitely before the end of May, and hopefully at the end of April. Without your feedback, though, we could create problems for you. We don't want that, so please let us know.Many new packages, many internal code changes to fix many bugs, and many new features, and no support for Python 2.4. This is a major release. Help us get it right.
Thank you.
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg
Well, after working on the package updates last night, I worked on getting a beta release of TG2.2 out.You won't find it on PyPi, and I have no intention of ever putting it there.However, you can install it with only slight variation on the normal instructions:easy_install -i http://tg.gy/beta tg.devtoolsAll of the packages are upgraded as high as they can be. That means that only Pylons, Chameleon, repoze.who, and transaction are not at the latest possible release.People, please test this with your code. File tickets. Let us know of problems. We're going to release this as our current stable release soon. Definitely before the end of May, and hopefully at the end of April. Without your feedback, though, we could create problems for you. We don't want that, so please let us know.Many new packages, many internal code changes to fix many bugs, and many new features, and no support for Python 2.4. This is a major release. Help us get it right.
Thank you.
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/c_36ru4tykYJ.