controller's URL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

controller's URL

Bilboon
Hello

What is the way of cherrypy to build url of controllers ?

Example :

i have this tree:
A
A.B
A.C

B build a form with action pointing to A.C.
Is there a method to have the direct URL pointing on A.C (like C.absolute_url() in Zope) or must i say explicitely A/C in the form ?

Thanks.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: controller's URL

Christian Wyglendowski-2

On 3/20/07, Bilboon <[hidden email]> wrote:

> Hello
>
> What is the way of cherrypy to build url of controllers ?
>
> Example :
>
> i have this tree:
> A
> A.B
> A.C
>
> B build a form with action pointing to A.C.
> Is there a method to have the direct URL pointing on A.C (like
> C.absolute_url() in Zope) or must i say explicitely A/C in the form ?

You can use the cherrypy.url function (v >= 3.0) or the
cherrypy.tree.url function (v >= 2.2).

Christian
http://www.dowski.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cherrypy-devel
-~----------~----~----~----~------~----~------~--~---