At Friday 4/8/2006 05:21, John P. Looney wrote:
On 8/4/06, Gabriel Genellina <<mailto:gagsl-zope@yahoo.com.ar>gagsl-zope@yahoo.com.ar> wrote: Page Templates are easier to use instead of DTML. True, but this is just starting off, to make sure it works.
if it=='Zope': print "It works!"
KeyError: u'date'
Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error.
This error says that there is nothing known as "date".
"date" was just a DHTML page that had a static string saying 'this would be a date'.
What is a "DHTML page" here? In Zope you have "DTML Methods" and "DTML Documents". Both are OBJECTS, not PAGES. Zope is *not* PHP nor ASP not ..., it's an object-oriented application server used to PUBLISH objects on the web. Please read the Zope Book (Zope3 version available at <http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book>), then came again if you have any questions. Gabriel Genellina Softlab SRL __________________________________________________ Pregunt�. Respond�. Descubr�. Todo lo que quer�as saber, y lo que ni imaginabas, est� en Yahoo! Respuestas (Beta). �Probalo ya! http://www.yahoo.com.ar/respuestas
On 8/4/06, Gabriel Genellina <gagsl-zope@yahoo.com.ar> wrote:
What is a "DHTML page" here?
In Zope you have "DTML Methods" and "DTML Documents". Both are
OBJECTS, not PAGES.
Ah. Sorry. Many years with development of other systems left me using the wrong grammar. The 'page' would be what I'd hoped to display in a browser when I pointed it at my domain name. Zope is *not* PHP nor ASP not ..., it's an object-oriented
application server used to PUBLISH objects on the web. Please read the Zope Book (Zope3 version available at < http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/Fro...
), then came again if you have any questions.
Ok, so, after starting with the book, one of the first things it says is.. Zope 3 has very flexible skinning support, which allows you to alter the
look and, to some extend, the feel of the ZMI. You can reach other skins by using the ++skin++<http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/++skin++>URL namespace. One nice skin is ZopeTop, which is excluded from the Zope X3 3.0.0 release but available in the repository. To see the initial contents screen of the ZopeTop skin, as shown in Figure 2<http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/webgui.html#x1-50002>, you use http://localhost:8080/++skin++ZopeTop/manage.
So, I tried to go to that page, and I got the following in my logs... 89.100.108.118 - - [11/Aug/2006:20:57:54 +0100] "GET /@@singleBranchTree.xmlHTTP/1.1" 200 295 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6" 2006-08-11T20:58:22 ERROR SiteError http://livinghistory.ie:8080/++skin++ZopeTop Traceback (most recent call last): File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 135, in publish object = request.traverse(object) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/browser.py", line 500, in traverse ob = super(BrowserRequest, self).traverse(object) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/http.py", line 451, in traverse ob = super(HTTPRequest, self).traverse(object) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/base.py", line 289, in traverse subobject = publication.traverseName( File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/publication/publicationtraverse.py", line 46, in traverseName ob2 = namespaceLookup(ns, nm, ob, request) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/traversing/namespace.py", line 121, in namespaceLookup return traverser.traverse(name, ()) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/traversing/namespace.py", line 388, in traverse skin = zope.component.getUtility(ISkin, name) File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/component/__init__.py", line 257, in getUtility raise ComponentLookupError(interface, name) ComponentLookupError: (<InterfaceClass zope.publisher.interfaces.browser.ISkin>, u'ZopeTop') I've a feeling it's the same misconfiguration that happened when I tried to go ahead and create an index_html object, which was what I thought I had done when I'd played with Zope 2.3 or whatever, a few years back. John
On 8/11/06, John P. Looney <valen@tuatha.org> wrote:
Zope 3 has very flexible skinning support, which allows you to alter the look and, to some extend, the feel of the ZMI. You can reach other skins by using the ++skin++ URL namespace. One nice skin is ZopeTop, which is excluded from the Zope X3 3.0.0 release but available in the repository. To see the initial contents screen of the ZopeTop skin, as shown in Figure 2, you use http://localhost:8080/++skin++ZopeTop/manage.
So, I tried to go to that page, and I got the following in my logs...
Well, did you install the ZopeTop skin? The error message says that it can't find any skin named ZopeTop.
I've a feeling it's the same misconfiguration that happened when I tried to go ahead and create an index_html object, which was what I thought I had done when I'd played with Zope 2.3 or whatever, a few years back.
Yeah, you can do that in Zope 2. In Zope3 it's not very useful. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
participants (3)
-
Gabriel Genellina -
John P. Looney -
Lennart Regebro