[Zope-CMF] Weird absolute_url() results

Dieter Maurer dieter@handshake.de
Wed, 19 Mar 2003 23:11:06 +0100


Fearless Froggie wrote at 2003-3-19 12:09 -0800:
 > I created a custom folderish CMF product that I use to
 > create hierarchical folders in my CMF site. But when I
 > use absolute_url() to get the address of one of these
 > folders, I get odd results.
 > 
 > Instead of "www.my_domain.com/portal/my_folder", I get
 > "www.my_domain.com/portal/portal/my_folder". It is
 > adding extra "portal"'s to the url. 
 > 
 > Does anybody have any ideas of why it would do this?

URL generation is strongly tight to acquisition structure.
Your "my_folder" seems to be in a strange acquisition structure.

Shane made a small tool, "showaq", to visualize the
acquisition structure. It a little module with a function
"showaq" that can be used as External Method.
Very useful to analyse acquisition problems...


Dieter