delete script for python in zope

from Products.PythonScripts.standard import html_quote
request = container.REQUEST
response =  request.response

list=request.list


for i in list:
   context.sqldeleteparticular(list=i)

return '''<html><head>      <script language="javascript" src="http://exam.cusat.ac.in/erp5/cusat/basetemplate/js/jquery-min.js"></script>
              <script>
               $(function(){
                $("#form5").submit();
               });
               </script>
         </head> <img src="http://exam.cusat.ac.in/erp5/cusat/images/load">
           <form action="check_login" id="form5" method="post">
           <input type="hidden" name="username" value="%s">
           <input type="hidden" name="password" value="%s">
           <p>plz wait........</p>
           </form></html>'''% (request.username,request.password)




Note:
====

where list is the iteam getting from from page to python

and
.sqldeleteparticular is the zsqlmethod where u write the query for delete the contains


No comments:

Post a Comment