How does Zope.org site implement "Printable Page" option
How does Zope.org site implement "Printable Page" option I see the pp=1 and presume this is some kind of var. I have reason to want to do this, and I kindof get the idea, but I would like to know how the pro's do it!! Thanks -- Robert Geiger robert@geigers.net
on Friday, February 25, 2000 Robert Geiger wrote : RG> How does Zope.org site implement "Printable Page" option RG> I see the pp=1 and presume this is some kind of var. RG> I have reason to want to do this, and I kindof get the idea, RG> but I would like to know how the pro's do it!! RG> Thanks RG> -- RG> Robert Geiger RG> robert@geigers.net I have no affiliation with zope.org, but i did implement a printable page feature quite similar to the one you talk about.. try something like this in your standard_html_header [untested code] <dtml-if pp> <!--simple header with no stylesheets or navigation--> <HTML> <HEAD><TITLE><dtml-var title_or_id> - printable version</TITLE></HEAD> <BODY> <!--end simple header--> <dtml-else> .... your ordinary standard_html_header comes here... </dtml-if> If you use a lot of tables and nesting to create your navigation, you might have to do something similar in the footer too... -- Geir B Hansen web-developer/designer geirh@funcom.com http://www.funcom.com
Hey guys. I'm currently in a minor bidding war with the Oracle group here over whether we re-implement some intranet programs in Zope or in Oracle WebDB. I've got them on just about everything, except calling stored procedures. Now, I know that ZOracleDA supports Stored Procedures. So I'm guessing that something like the following would work, but I'll be buggered if I can figure out how. ZOracleDA Connection : oracle_da External Method : find_target(search_string) Oracle Package : Program1 Oracle Procedure : Proc1 def find_target(self, search_string): c=self.oracle_da.cursor() s=self.oracle_da.procedures.Program1.Proc1(search_string,c) return c.fetchall() Am I missing something? I can't even get --
import DCOracle dbh=DCOracle.Connect('user/pass@DB1') c=dbh.cursor() sth=dbh.procedures.pgm1_api.find_target('spam',c) Traceback (innermost last): File "<stdin>", line 1, in ? File "/usr/share/zope/lib/python/Products/ZOracleDA/DCOracle/ociProc.py", line 324, in __getattr__ raise error, 'no usable procedure named '+name oci.error: no usable procedure named pgm1_api.find_target
-- to work. HELP me stave off the Evil Empire ( and my own impending descent into uselessness ) Thanks, Monty Names have been changed to protect the innocent.
participants (3)
-
Geir B Hansen -
Monty Taylor -
Robert Geiger