[Zope] MVC and Zope

Kevin Carlson khcarlso@bellsouth.net
Mon, 17 Feb 2003 11:48:37 -0500


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta content="MSHTML 6.00.2800.1141" name="GENERATOR">
  <style></style>
</head>
<body>
Yes, you're right.&nbsp; However, if you want to use an MVC architecture, it
would seem that the controller script should be able to make a
determination that the resource being requested was something outside
of it's sphere (say a secondary browser request for an image), create a
new context, and return the appropriate object.<br>
<br>
My question, perhaps a bit muddled by the length of the posting, was
how to accomplish that.<br>
<br>
Kevin<br>
<br>
Tino Wildenhain wrote:<br>
<blockquote type="cite"
 cite="mid20030217081415.1a348bd6.tino@zopebuch.de">
  <pre wrap="">On Sun, 16 Feb 2003 17:46:19 -0500
Kevin Carlson <a class="moz-txt-link-rfc2396E" href="mailto:khcarlso@bellsouth.net">&lt;khcarlso@bellsouth.net&gt;</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi everyone,

I posted an email yesterday about a problem I had forwarding a request 
from a python script to a dtml-document.  The problem turned out to be 
centered on the way that the relative URLs were generated.  This got me 
thinking about a larger issue, that of implementing a 
model-view-controller type of architecture within Zope.  Lengthy email 
to follow, bear with me...
    </pre>
  </blockquote>
  <pre wrap=""><!---->
To make it short - you got a lot less trouble if you dont use
relative URLs in Zope. Instead you could use siteroot absolute
URLs, e.g. starting with /

Regards
Tino

  </pre>
</blockquote>
</body>
</html>