Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Strange uri_for behaviour

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


mromani at ottotecnica

May 26, 2008, 6:10 AM

Post #1 of 7 (362 views)
Permalink
Strange uri_for behaviour

Hi,
I'm writing an app from scratch, using dbic and tt as db and
template systems.
When I put something like this:

Catalyst.uri_for('create')

in a template, the url that gets into the page is not
<controller>/create, as I expected, but rather

/tt/create

which is of course wrong.

I have done some search but could not find any pointers for where to
start looking...

Any hints ?

Thank you in advance.

PS: Catalyst, DBIx::Class and Template::Toolkit are at their latest
revisions.

--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


omega at palle

May 26, 2008, 6:35 AM

Post #2 of 7 (346 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

Upgrade Catalyst::Runtime to 5.7014

- andreas

On May 26, 2008, at 3:10 PM, Marcello Romani wrote:

> Hi,
> I'm writing an app from scratch, using dbic and tt as db and
> template systems.
> When I put something like this:
>
> Catalyst.uri_for('create')
>
> in a template, the url that gets into the page is not <controller>/
> create, as I expected, but rather
>
> /tt/create
>
> which is of course wrong.
>
> I have done some search but could not find any pointers for where to
> start looking...
>
> Any hints ?
>
> Thank you in advance.
>
> PS: Catalyst, DBIx::Class and Template::Toolkit are at their latest
> revisions.
>
> --
> Marcello Romani
> Responsabile IT
> Ottotecnica s.r.l.
> http://www.ottotecnica.com
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


mromani at ottotecnica

May 26, 2008, 7:06 AM

Post #3 of 7 (343 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

Andreas Marienborg ha scritto:
> Upgrade Catalyst::Runtime to 5.7014
>
> - andreas
>
> On May 26, 2008, at 3:10 PM, Marcello Romani wrote:
>
>> Hi,
>> I'm writing an app from scratch, using dbic and tt as db and
>> template systems.
>> When I put something like this:
>>
>> Catalyst.uri_for('create')
>>
>> in a template, the url that gets into the page is not
>> <controller>/create, as I expected, but rather
>>
>> /tt/create
>>
>> which is of course wrong.
>>
>> I have done some search but could not find any pointers for where to
>> start looking...
>>
>> Any hints ?
>>
>> Thank you in advance.
>>
>> PS: Catalyst, DBIx::Class and Template::Toolkit are at their latest
>> revisions.
>>
>> --
>> Marcello Romani
>> Responsabile IT
>> Ottotecnica s.r.l.
>> http://www.ottotecnica.com
>>
>> _______________________________________________
>> List: Catalyst[at]lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive:
>> http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>

That fixed it, thank you!

--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


marcus at nordaaker

May 26, 2008, 11:41 AM

Post #4 of 7 (344 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

On 26. mai. 2008, at 15.10, Marcello Romani wrote:

> Hi,
> I'm writing an app from scratch, using dbic and tt as db and
> template systems.
> When I put something like this:
>
> Catalyst.uri_for('create')
>
> in a template, the url that gets into the page is not <controller>/
> create, as I expected, but rather
>
> /tt/create
>
> which is of course wrong.
>
> I have done some search but could not find any pointers for where to
> start looking...
>
> Any hints ?

Hi Marcello.

This is a bug in Catalyst 5.7013, released last week. 5.7014, released
yesterday, fixes this issue. Sorry about the trouble

Marcus
--
Managing a thousand monkeys on typewriters.

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


orasnita at gmail

May 26, 2008, 1:07 PM

Post #5 of 7 (335 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

Hi,

From: "Marcus Ramberg" <marcus[at]nordaaker.com>> On 26. mai. 2008, at 15.10,
Marcello Romani wrote:
> This is a bug in Catalyst 5.7013, released last week. 5.7014, released
> yesterday, fixes this issue. Sorry about the trouble

Please tell us which modules should be updated for installing the correct
version.

Catalyst::Runtime is enough?
(I have also installed Catalyst in the last weekend...)

Thank you.

Octavian


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


cochranb at speakeasy

May 26, 2008, 5:50 PM

Post #6 of 7 (334 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

> Hi Marcello.
>
> This is a bug in Catalyst 5.7013, released last week. 5.7014, released
> yesterday, fixes this issue. Sorry about the trouble
>
> Marcus
Well, that taught me how to start CPAN and type "ls mramberg" and then
"install MRAMBERG/Catalyst-Runtime-5.7014.tar.gz". If you type "install
mramberg/Catalyst-Runtime-5.7014.tar.gz" it fails. The author's name has
to be uppercased. So I guess I have learned a new trick.

Bob Cochran


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


mromani at ottotecnica

May 26, 2008, 11:15 PM

Post #7 of 7 (333 views)
Permalink
Re: Strange uri_for behaviour [In reply to]

Octavian Rasnita ha scritto:
> Hi,
>
> From: "Marcus Ramberg" <marcus[at]nordaaker.com>> On 26. mai. 2008, at
> 15.10, Marcello Romani wrote:
>> This is a bug in Catalyst 5.7013, released last week. 5.7014, released
>> yesterday, fixes this issue. Sorry about the trouble
>
> Please tell us which modules should be updated for installing the
> correct version.
>
> Catalyst::Runtime is enough?
> (I have also installed Catalyst in the last weekend...)

I installed C::R (by hand, because my cpan mirror only had 5.7013) and
the bug went away, so I guess installing C::R is enough.

>
> Thank you.
>
> Octavian
>
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>


--
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.