Zope ү қ:
-. Zope - CGI қ ұ өң - (ZServer) қ қ.
Ө -қ қ ғ. Zope - қ -қ құғ ү .
қ. Zope қ: Python, Perl ә өң DTML (Document Template Markup Language, құ ң ).
ң қ. Zope ө ұ қ қ (ZODB) ұқ қ. қ қ ү қ .
қ қ . Zope ө ә қ ә қ Қ- қ : Oracle, PostgreSQL, MySQL, Sybase ә ..
Zope ө WWW қ қ, URI құ ү ғ . Zope , қ ө , қ ү қ ә, (folders) ғ. құ, , -, қ ә ..
Zope құ DTML ғ HTML қ, SSI (Server-Side Include) қ ә қ ү. , құ қ ү қғ :
<!- #var document_title ->
, Zope өң , ә ө Python ғ ә . қ ә қ, қ қ ә ө (, SELECT қ) ғ ү.
Қ ң Zope құ ү ө, ө TAL- , ZPT (Zope Page Templates, Zope ң ) қ. құ ғ құ ғ, қғ ө ү . TAL ң TAL ң ғ XML- . ң ү :
xmlns:tal=http://xml.zope.org/namespaces/tal
TAL ң ә ә ( ә ә ). әң TALES (Template Attribute Language Expression Syntax, TAL әң ) ғ, TAL-ә ғ.
|
|
, ZPT, TAL ү , ұ . , Zope құ қ ү ( TITLE), қ :
<title tal:content="here/title">Doc Title</title>
, HTML , ғ - ң ұ қ HTML- ө (tal ң ғ қғ ғ). ұ here/title TALES ө . Doc Title ә -ң ғ қ қ ә here/title өң ә , ғ Zope құң title қ .
:
Zope- қ . Қ ғ ү , қ ә ұ ү. Id қ ә , title қ ә ө. ғұ ү , ұ қ қғ (Zope- ұ ө ү Page Template қ ):
<ul>
<li tal:define="s modules/string"
tal:repeat="el python:s.digits">
<a href="DUMMY"
tal:attributes="href string:/digit/$el"
tal:content="el">SELECTION</a>
</li>
</ul>
ұ ә :
<ul>
<li><a href="/digit/0">0</a></li>
<li><a href="/digit/1">1</a></li>
<li><a href="/digit/2">2</a></li>
<li><a href="/digit/3">3</a></li>
<li><a href="/digit/4">4</a></li>
<li><a href="/digit/5">5</a></li>
<li><a href="/digit/6">6</a></li>
<li><a href="/digit/7">7</a></li>
<li><a href="/digit/8">8</a></li>
<li><a href="/digit/9">9</a></li>
</ul>
ұ ә қ:
Python ө (ұ s Python қғ)ә string.digits ө el ң - қғ .
TAL ө қ ұ ғ , қ (ұ href қғ) .
ғқ құ . , ү ө қ : ғғ ң ұ, , , , Python .
Zope қ - , ң ң ғғ қ ү, "өi"ә "қ" ғ ү .
|
|
қ құғ ә ө: (acquisition) .
(құ, , , қ қ ә ..) Example қ . ғ ө қ ғ қ. ҳ қ ү қ ң қ ғ . Zope-ң ө ң ұ , Zope ү қ қ, ә , , өң қ қ , ү ү ә қ ү ү .
ң ққ, -қ ғ . , Example ң (ң note) қ Zigzag қ . қ Example ғғ note қ index_html ққ. Қ index_html URI қ http://zopeserver/Example/ . Zigzag-ғ note (ә Example қ) қ , URI: http://zopeserver/Zigzag/Example/ . , Zope әү , қ, Unix-: ғ ү , қ ү. , ә қ ғ .
ұ ә -қ Python- қң ү өқ қ. -қ ү ң ң қ - CGI- қ. ү - ү қ . ң, -қ құғ ү ғ ұ Zope .