Can import pylons.url but not tg.url

5 views
Skip to first unread message

Gustavo Narea

unread,
Jan 2, 2009, 12:32:27 PM1/2/09
to turbogea...@googlegroups.com
Hello,

I'm working on Ticket #2114 and I'm trying to use tg.url in
tg.configuration.AppConfig.add_auth_middleware(). However, when I import
tg.url at the top of tg.configuration I get this:
http://paste.chrisarndt.de/paste/7f200f532fbf442e946c1362abc163c7

However, if I replace "from tg.controllers import url" (or "from tg import
url") with "from pylons import url", I get no error.

What's the problem?

I'm using the latest revision of TG2 and devtools.

Cheers.
--
Gustavo Narea <http://gustavonarea.net/>.

Get rid of unethical constraints! Get freedomware:
http://www.getgnulinux.org/

Lukasz Szybalski

unread,
Jan 4, 2009, 11:08:28 PM1/4/09
to turbogea...@googlegroups.com
On Fri, Jan 2, 2009 at 11:32 AM, Gustavo Narea <m...@gustavonarea.net> wrote:
>
> Hello,
>
> I'm working on Ticket #2114 and I'm trying to use tg.url in
> tg.configuration.AppConfig.add_auth_middleware(). However, when I import
> tg.url at the top of tg.configuration I get this:
> http://paste.chrisarndt.de/paste/7f200f532fbf442e946c1362abc163c7
>
> However, if I replace "from tg.controllers import url" (or "from tg import
> url") with "from pylons import url", I get no error.
>
> What's the problem?
>
> I'm using the latest revision of TG2 and devtools.
>

There was a switch from tg.url to use routs url I think; not sure if
that helps...

Lucas

Mark Ramm

unread,
Jan 4, 2009, 11:45:03 PM1/4/09
to turbogea...@googlegroups.com
Hmm, I can't reproduce that right now.

Perhaps you had a strange intermediary state where I accidentially had
url called new_url in tg, but current trunk appears to work and all
the url tests are passing.
--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

Gustavo Narea

unread,
Jan 8, 2009, 2:44:46 PM1/8/09
to turbogea...@googlegroups.com, Mark Ramm
Hello, Mark.

On Monday January 5, 2009 05:45:03 Mark Ramm wrote:
> Hmm, I can't reproduce that right now.
>
> Perhaps you had a strange intermediary state where I accidentially had
> url called new_url in tg, but current trunk appears to work and all
> the url tests are passing.

Now I have a fresh virtualenv with the latest trunk and the problem is still
present. Can you please try the attached patch?

tg-patch-2114.diff

Lukasz Szybalski

unread,
Jan 10, 2009, 12:24:43 AM1/10/09
to turbogea...@googlegroups.com, Mark Ramm
On Thu, Jan 8, 2009 at 1:44 PM, Gustavo Narea <m...@gustavonarea.net> wrote:
> Hello, Mark.
>
> On Monday January 5, 2009 05:45:03 Mark Ramm wrote:
>> Hmm, I can't reproduce that right now.
>>
>> Perhaps you had a strange intermediary state where I accidentially had
>> url called new_url in tg, but current trunk appears to work and all
>> the url tests are passing.
>
> Now I have a fresh virtualenv with the latest trunk and the problem is still
> present. Can you please try the attached patch?
>
>
Any news on the commit status of this patch?

Thanks,
Lucas

Gustavo Narea

unread,
Jan 13, 2009, 4:25:06 PM1/13/09
to turbogea...@googlegroups.com
On Saturday January 10, 2009 06:24:43 Lukasz Szybalski wrote:
> Any news on the commit status of this patch?

I have no idea, it's still broken for me. Has anybody been able to try the
patch successfully?

Lukasz Szybalski

unread,
Jan 21, 2009, 4:54:53 PM1/21/09
to TurboGears Trunk


On Jan 2, 11:32 am, Gustavo Narea <m...@gustavonarea.net> wrote:
> Hello,
>
> I'm working on Ticket #2114 and I'm trying to use tg.url in
> tg.configuration.AppConfig.add_auth_middleware(). However, when I import
> tg.url at the top of tg.configuration I get this:http://paste.chrisarndt.de/paste/7f200f532fbf442e946c1362abc163c7
>
> However, if I replace "from tg.controllers import url" (or "from tg import
> url") with "from pylons import url", I get no error.
>
> What's the problem?
>
> I'm using the latest revision of TG2 and devtools.
>

I've just installed the tg2b3 :

virtualenv --no-site-packages tg2b3env
source tg2b3env/bin/activate
easy_install -i http://www.turbogears.org/2.0/downloads/current/index
tg.devtools

........


python
Python 2.4.4 (#2, Oct 22 2008, 19:52:44)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tg.controllers import url
>>>

Can you try above from scratch?

Thanks,
Lucas
Reply all
Reply to author
Forward
0 new messages