Hi, This is, -I think- not a specific Zope question, but is there a way to: 'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc' not show the '?sortBy=Hostname&sortOrder=asc' part, but without using hidden input fields, or core session product (cookies, etc). Is that even possible? Regards, Tom.
Tom Deprez wrote:
Hi,
This is, -I think- not a specific Zope question, but is there a way to:
'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc'
not show the '?sortBy=Hostname&sortOrder=asc' part,
but without using hidden input fields, or core session product (cookies, etc).
Is that even possible?
Not really ... but you can use Frames to keep the Browser URL box clean ;-) _______________________________________________________________________ Andreas Heckel andreas@easyleading.org
On Thursday 18 April 2002 11:12, Tom Deprez wrote:
Hi,
This is, -I think- not a specific Zope question, but is there a way to:
'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc'
not show the '?sortBy=Hostname&sortOrder=asc' part,
but without using hidden input fields, or core session product (cookies, etc).
Is that even possible?
Yes and No. Create a folder reachable to the namestack called "sortHostname" that holds a property called "sortBy" with value "Hostname". Then this variable will be picked up when going to http://u10190/netwerk/sortHostname/entities Then you'll have to take care of all URL variables via some method since absolute_url() does not need it. I.e: <a href="http://u10190/netwerk/sortHostname/entities">Sort by Hostname</a> <a href="http://u10190/netwerk/sortServername/entities">Sort by Servername</a> No because there are no other methods similar to what you need. Peter
By use of the magic of "traverse_subpath" http://www.zopelabs.com/cookbook/1008823295 you can make it look like this : "http://u10190/netwerk/entities/sortBy/Hostname/sortOrder/asc" which IMHO is a *lot* better :-) on or about, Thursday, April 18, 2002, we have reason to believe that Tom Deprez wrote something along the lines of : TD> Hi, TD> This is, -I think- not a specific Zope question, but is there a way to: TD> 'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc' TD> not show the '?sortBy=Hostname&sortOrder=asc' part, TD> but without using hidden input fields, or core session product (cookies, TD> etc). TD> Is that even possible? TD> Regards, Tom. TD> _______________________________________________ TD> Zope maillist - Zope@zope.org TD> http://lists.zope.org/mailman/listinfo/zope TD> ** No cross posts or HTML encoding! ** TD> (Related lists - TD> http://lists.zope.org/mailman/listinfo/zope-announce TD> http://lists.zope.org/mailman/listinfo/zope-dev ) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team
By use of the magic of "traverse_subpath" http://www.zopelabs.com/cookbook/1008823295 you can make it look like this : "http://u10190/netwerk/entities/sortBy/Hostname/sortOrder/asc"
which IMHO is a *lot* better
:-)
Yes, but.... if you've a lot more of these variables, then even this url can become not so fancy anymore. Tom.
on or about, Thursday, April 18, 2002, we have reason to believe that Tom
Deprez wrote something along the lines of :
TD> Hi,
TD> This is, -I think- not a specific Zope question, but is there a way to:
TD> 'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc'
TD> not show the '?sortBy=Hostname&sortOrder=asc' part,
TD> but without using hidden input fields, or core session product (cookies, TD> etc).
TD> Is that even possible?
TD> Regards, Tom.
TD> _______________________________________________ TD> Zope maillist - Zope@zope.org TD> http://lists.zope.org/mailman/listinfo/zope TD> ** No cross posts or HTML encoding! ** TD> (Related lists - TD> http://lists.zope.org/mailman/listinfo/zope-announce TD> http://lists.zope.org/mailman/listinfo/zope-dev )
-- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team
[Tom Deprez]
By use of the magic of "traverse_subpath" http://www.zopelabs.com/cookbook/1008823295 you can make it look like this : "http://u10190/netwerk/entities/sortBy/Hostname/sortOrder/asc"
which IMHO is a *lot* better
:-)
Yes, but.... if you've a lot more of these variables, then even this url can become not so fancy anymore. [Tom P] Also, it does not conform the the semantics of the http protocol. The url ought to be referencing a resource known as "asc", located at that path. But that's not really what you are getting. Of course, you have made it work, so you could say "so what?" Does it matter? Maybe... consider the corresponding version for a descending sort order: http://u10190/netwerk/entities/sortBy/Hostname/sortOrder/desc No one, especially a machine (an indexing robot, perhaps) but even a person would find it hard, could know that this is just another view of the "entities" resource. The query fragment is there to suggest to the server what kind of view of the resource is desired. I think it's better to stay with the url semantics specified for the web, even if you can make the other way work. Cheers, Tom P
You could use a session variable that is controlled through a post and that session var is then called as only a variable like 'asc' and 'desc' (order by) in your ZSQL method. Paz -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Geir Bækholt Sent: Thursday, April 18, 2002 12:50 PM To: Tom Deprez Cc: zope@zope.org Subject: Re: [Zope] url's By use of the magic of "traverse_subpath" http://www.zopelabs.com/cookbook/1008823295 you can make it look like this : "http://u10190/netwerk/entities/sortBy/Hostname/sortOrder/asc" which IMHO is a *lot* better :-) on or about, Thursday, April 18, 2002, we have reason to believe that Tom Deprez wrote something along the lines of : TD> Hi, TD> This is, -I think- not a specific Zope question, but is there a way to: TD> 'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc' TD> not show the '?sortBy=Hostname&sortOrder=asc' part, TD> but without using hidden input fields, or core session product (cookies, TD> etc). TD> Is that even possible? TD> Regards, Tom. TD> _______________________________________________ TD> Zope maillist - Zope@zope.org TD> http://lists.zope.org/mailman/listinfo/zope TD> ** No cross posts or HTML encoding! ** TD> (Related lists - TD> http://lists.zope.org/mailman/listinfo/zope-announce TD> http://lists.zope.org/mailman/listinfo/zope-dev ) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Tom Deprez wrote:
Hi,
This is, -I think- not a specific Zope question, but is there a way to:
'http://u10190/netwerk/entities?sortBy=Hostname&sortOrder=asc'
not show the '?sortBy=Hostname&sortOrder=asc' part,
but without using hidden input fields, or core session product (cookies, etc).
Is that even possible?
method="POST" ?? ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
participants (7)
-
Andreas Heckel -
Geir B�kholt -
hans -
Paul Zwarts -
Peter Bengtsson -
Thomas B. Passin -
Tom Deprez