thanks for the suggestion. i believe that's a bug within
tw2.core.template module. i have fixed it for my venv but i think
ralph would want to see this. everything is working fine for me right
now.

On Jul 8, 5:23 pm, Alessandro Molina <[email protected]>
wrote:
> sprox 0.7 got installed and that doesn't support tw2. Keep in mind that
> sprox 0.8 is only available on the private index of tg rc2. if you install
> from pypi you get sprox 0.7.
>
> you can solve the issue by removing tw2 package from venv so that both
> sprox and crud will use tw1
> On Jul 8, 2012 12:18 PM, "Mengu" <[email protected]> wrote:
>
>
>
>
>
>
>
> > i am not using tw in this environment. all i did was "easy_install
> > tgext.crud" and it installed tw and tw.forms instead of tw2 and
> > tw2.forms.
>
> > On Jul 8, 11:23 am, Alessandro Molina <[email protected]>
> > wrote:
> > > You are mixing TW1 and TW2.
> > > That usually happens when you have an old version of sprox that
> > > doesn't support TW2 and a version of tgext.crud that supports it.
>
> > > Check that you actually are using the latest sprox.
>
> > > On Sun, Jul 8, 2012 at 8:00 AM, Mengu <[email protected]> wrote:
> > > > hi all
>
> > > > i'm building an app with tg2.2 and i wanted to use tgext.crud with
> > > > this. however i am getting an interesting error. here it is:
>
> > > > File '/home/mengu/.python-eggs/tgext.crud-0.5.1-py2.7.egg-tmp/tgext/
> > > > crud/templates/get_all.html', line 47 in <Expression
> > > > u"XML(tmpl_context.widget(value=value_list, action=mount_point
> > > > +'.json'))">
> > > >   ${XML(tmpl_context.widget(value=value_list, action=mount_point
> > > > +'.json'))}
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > sprox-0.7.2-py2.7.egg/sprox/viewbase.py', line 104 in __call__
> > > >   return self.__widget__.__call__(*args, **kw)
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > ToscaWidgets-0.9.12-py2.7.egg/tw/core/base.py', line 544 in __call__
> > > >   return self.display(value, **kw)
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > ToscaWidgets-0.9.12-py2.7.egg/tw/core/base.py', line 539 in display
> > > >   kw = self.prepare_dict(value, kw)
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > ToscaWidgets-0.9.12-py2.7.egg/tw/core/base.py', line 582 in
> > > > prepare_dict
> > > >   self.update_params(d)
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > tw.forms-0.9.9-py2.7.egg/tw/forms/datagrid.py', line 121 in
> > > > update_params
> > > >   columns = self._parse(fields)
> > > > File '/home/mengu/projects/newtg2env/lib/python2.7/site-packages/
> > > > tw.forms-0.9.9-py2.7.egg/tw/forms/datagrid.py', line 146 in _parse
> > > >   title, name_or_f = col[:2]
> > > > TypeError: 'SortableColumn' object is not subscriptable
>
> > > > what would be causing this? it seems it is using the latest sprox and
> > > > tw1.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "TurboGears" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > [email protected].
> > > > For more options, visit this group athttp://
> > groups.google.com/group/turbogears?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TurboGears" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/turbogears?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to