[Zope] Namespaces

Vitor Varalonga vpedrosa@ciberbit.pt
Wed, 12 Dec 2001 17:09:32 +0000


--------------2B30FB6B5ACF5B6254374320
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

    Hi!!!


    I suppose this topic might not be mystery at all for all those who
have been working with ZOPE for a while, but for me, as a beginner,
it's really starting to look as a pain in the ***.
    The issue is namespaces. I've been dabbling across ZOPE
documentation
and help files, but somehow I never found an appropriate answer to my
problem.
    Let me be more specific. Suppose I have all my files organized in
the following directory tree:

Work
  |
  |-- dmFiles
  |
  |-- sqlFiles
  |
  \-- pyFiles

Consider that all my DTML Documents are located in the root directory
(Work). DTML Methods, SQL Methods and Python Scritps are located
respectively in the folders dmFiles, sqlFiles, pyFiles.
So far so good...
The problems start when I want to code one of the following situations:

- call a Python Script (pyFiles folder) from a DTML Method (dmFiles
folder);
- call a SQL Method (sqlFiles folder) from a Python Script (pyFiles
folder);

What is correct code necessary to implement both this cases?


Thanks in advance,

Vitor Varalonga

--------------2B30FB6B5ACF5B6254374320
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt>&nbsp;&nbsp;&nbsp; Hi!!!</tt>
<br><tt></tt>&nbsp;<tt></tt>
<p><tt>&nbsp;&nbsp;&nbsp; I suppose this topic might not be mystery at
all for all those who</tt>
<br><tt>have been working with ZOPE for a while, but for me, as a beginner,</tt>
<br><tt>it's really starting to look as a pain in the ***.</tt>
<br><tt>&nbsp;&nbsp;&nbsp; The issue is namespaces. I've been dabbling
across ZOPE documentation</tt>
<br><tt>and help files, but somehow I never found an appropriate answer
to my</tt>
<br><tt>problem.</tt>
<br><tt>&nbsp;&nbsp;&nbsp; Let me be more specific. Suppose I have all
my files organized in</tt>
<br><tt>the following directory tree:</tt><tt></tt>
<p><tt>Work</tt>
<br><tt>&nbsp; |</tt>
<br><tt>&nbsp; |-- dmFiles</tt>
<br><tt>&nbsp; |</tt>
<br><tt>&nbsp; |-- sqlFiles</tt>
<br><tt>&nbsp; |</tt>
<br><tt>&nbsp; \-- pyFiles</tt><tt></tt>
<p><tt>Consider that all my DTML Documents are located in the root directory</tt>
<br><tt>(Work). DTML Methods, SQL Methods and Python Scritps are located</tt>
<br><tt>respectively in the folders dmFiles, sqlFiles, pyFiles.</tt>
<br><tt>So far so good...</tt>
<br><tt>The problems start when I want to code one of the following situations:</tt><tt></tt>
<p><tt>- call a Python Script (pyFiles folder) from a DTML Method (dmFiles
folder);</tt>
<br><tt>- call a SQL Method (sqlFiles folder) from a Python Script (pyFiles
folder);</tt><tt></tt>
<p><tt>What is correct code necessary to implement both this cases?</tt>
<br><tt></tt>&nbsp;<tt></tt>
<p><tt>Thanks in advance,</tt><tt></tt>
<p><tt>Vitor Varalonga</tt></html>

--------------2B30FB6B5ACF5B6254374320--