[Zope] Newbie: One location for SQL-methods site-wide

Jorge O. Martinez jmartinez@eMediaMillWorks.com
Wed, 24 Jul 2002 14:40:56 -0400


Don't know if I this helps, but have you tried the Transparent Folders product? 
Check it out, you can put everything you need in one place (say /SQL), but they 
will actually be available in root.

Regards,

Jorge M.

Thomas Weholt wrote:
> I got a folder called SQL in the root-folder containing SQL-methods I use
> site-wide. I got a DTML-method, taking two parameters, also in the
> root-folder I call site-wide using SQL-methods in the mentioned folder. When
> I try to use the DTML-method in a DTML-document in a sub-folder I get an
> error, saying "global name 'SQL' is not defined". The sub-folder contain a
> SQL-folder also, with SQL-methods used in that part of the site.
> 
> I call my DTML-method like so in a DTML-document in a subfolder :
> <dtml-var expr="dmViewComments(com_object=1, com_object_id=coi)">
> 
> The DTML-method dmViewComments in the root-folder look something like this :
> <dtml-call "SQL.sqlmViewComments(REQUEST)">
> <!-- and then some more code -->
> 
> I need a way to store DTML- and SQL-methods in the root-folder and call them
> site-wide. Can I somehow make a special folder that makes it contents
> available site-wide, while being defined one place for easy maintenance?
> 
> Best regards,
> Thomas
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 



-- 
Jorge O. Martinez
MIS Senior Associate
FDCH-eMedia Inc.
2400 Forbes Blvd., Suite 200
Lanham, MD 20706
E-mail  => jmartinez@eMediaMillWorks.com
Phone   => (301)731-1228 ext. 105
Fax     => (301)731-0937