problems with manage_delObject()
I currently have a hyperlink, that is used to delete an object that resides within the OOSStorage folder. [<a href="outofstock/OOSStorage/manage_delObject(<dtml-var id>)">SHIPPED</A>] The <dtml-var id> is interpreted just fine, but what it tells me when I click on the URL gives me a; (start error notice) Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: http://160.100.0.1/inventory/backorders/outofstock/OOSStorage/manage_delObje cts%2820000428164227%29 (end error notice) [NOTE: 20000428164227 is the ID, I am assuming %28 and %29 are either the '()' or the '<>'] Can anyone give me any pointers on deleting an object directly through a hyperlink. I think I am on the right track but am missing something when trying to use the 'manage_delObjects()' function. Any enlightenment would be extremely appreciated. Best regards, MJ Stahl
"M.J. Stahl" wrote:
I currently have a hyperlink, that is used to delete an object that resides within the OOSStorage folder.
[<a href="outofstock/OOSStorage/manage_delObject(<dtml-var id>)">SHIPPED</A>]
<a href="whatever/manage_delObject?id=<dtml-var id>"> Calling a method with () is a python convention. HTTP has no convention of calling anything, we just use the convention that the query string (everthing after the ? in a URL) is a list of name=value pairs seperated by &. This is per the CGI specification. -Michel
At 02:57 PM 3/9/00 -0800, you wrote:
"M.J. Stahl" wrote:
I currently have a hyperlink, that is used to delete an object that resides within the OOSStorage folder.
[<a href="outofstock/OOSStorage/manage_delObject(<dtml-var id>)">SHIPPED</A>]
<a href="whatever/manage_delObject?id=<dtml-var id>">
Thank you Michel, After trying your suggestion I came upon this problem: A white screen with "No Items were specified!" at the address: ../BOStorage/manage_delObjects?id=20000428164227 (BOStorage is where the objects are stored and I verified the id# 20000428164227) Thanks. -M.
participants (2)
-
M.J. Stahl -
Michel Pelletier