User 7c5d5fc97e
23-02-2010 18:37:25
I'm developing marvin view. but I faced with a strange error .
this is original code ( view.html )
mview_param("cell1", "|Ethane\n"
+" Marvin 07119915552D\n"
+"\n"
+" 2 1 0 0 0 0 0 0 0 0999 V2000\n"
+" -0.5625 1.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n"
+" -0.5625 0.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n"
+" 1 2 1 0 0 0 0\n"
+"M END");
this code is well operated in html
but in python this code is a error(?)
when inserting this code, I find a error..
what is the problem..?
[ python code ]
#!/usr/bin/epd
import cgitb; cgitb.enable()
print "Content-Type: text/html\n\n"
print "<body>"
out = '''
<script LANGUAGE="JavaScript1.1" SRC="../../../marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
mview_begin("../../..", 300, 300);
mview_param("rows", "4");
mview_param("cols", "1");
mview_param("cell0", "|../../../mols-2d/caffeine.csmol");
mview_param("cell2", "|Ethane\n Marvin 07119915552D\n\n 2 1 0 0 0 0 0 0 0 0999 V2000\n -0.5625 1.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n -0.5625 0.2500 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0\n 1 2 1 0 0 0 0\nM END");
mview_end()
//-->
</script>
'''
print out
print "</body>"