[Zope] A little DTML problem?

François-Régis CHALAOUX fchalaou@strasbourg.synthelabo.fr
Fri, 23 Apr 1999 11:04:57 +0100


Hi All,

I simplified my dtml document with the remark from Richard Jones, thanks Richard I learn every day with this cool mailing-list:)

It seems better but have always a problem to  give 'view_domain_of_soft' 'idsoftware' to drink. 

'idsoftware'  is obtained with 'view_software' sql method.

FR 8-)


DTML document PART
==================

	<!--#in view_software-->
		<form ACTION="test_index_do(REQUEST)">
		<INPUT TYPE="RADIO" NAME="softid:int" VALUE="<!--#var idsoftware-->">
		<strong><!--#var softname--> <!--#var sversion--></strong><BR>
			<!--#in "view_domain_of_soft(_['idsoftware'])"-->
				<INPUT TYPE="HIDDEN" NAME="domain:int" VALUE="<!--#var domname-->">
				<!--#var domname--><br>
			<!--#/in-->
	<!--#/in-->
		<input type="submit" name="Submit" value="Submit"><br><br>
		</form>

SQL METHOD : view_software
========================
select * from software

SQL METHOD : view_domain_of_soft
==============================
argument : idsoftware

select distinct Y.domname from softdomain X, domain Y 
where idsoftware=<!--#sqlvar idsoftware type=int--> AND (X.iddomain = Y.iddomain)


ERROR
=======

<!--
 Error type:  Bad Request
 Error value: ['idsoftware']
 -->
</body>
</html>
<!--
Traceback (innermost last):
  File C:\Program Files\zopesite\lib\python\ZPublisher\Publish.py, line 877, in publish_module
  File C:\Program Files\zopesite\lib\python\ZPublisher\Publish.py, line 590, in publish
    (Info: /GadSoft_0-1/DBALS/commun/add_softdomain)
  File C:\Program Files\zopesite\lib\python\OFS\DTMLDocument.py, line 212, in __call__
    (Object: add_softdomain)
  File C:\Program Files\zopesite\lib\python\OFS\DTMLDocument.py, line 208, in __call__
    (Object: add_softdomain)
  File C:\Program Files\zopesite\lib\python\DocumentTemplate\DT_String.py, line 513, in __call__
    (Object: add_softdomain)
  File C:\Program Files\zopesite\lib\python\DocumentTemplate\DT_In.py, line 675, in renderwob
    (Object: view_software)
  File C:\Program Files\zopesite\lib\python\DocumentTemplate\DT_In.py, line 620, in renderwob
    (Object: view_domain_of_soft(_['idsoftware']))
  File C:\Program Files\zopesite\lib\python\DocumentTemplate\DT_Util.py, line 266, in eval
    (Object: view_domain_of_soft(_['idsoftware']))
  File <string>, line 0, in ?
  File C:\Program Files\zopesite\lib\python\Shared\DC\ZRDB\DA.py, line 381, in __call__
    (Object: CopySource)
  File C:\Program Files\zopesite\lib\python\Shared\DC\ZRDB\Aqueduct.py, line 149, in _argdata
    (Object: CopySource)
Bad Request: (see above)

-->