[Zope-Checkins] CVS: Zope/var - Examples.zexp:1.1
Amos Latteier
amos@zope.com
Fri, 16 Nov 2001 19:00:21 -0500
Update of /cvs-repository/Zope/var
In directory cvs.zope.org:/tmp/cvs-serv21245/var
Added Files:
Examples.zexp
Log Message:
Added examples to Zope. Finally Zope comes with some simple example applications. The current examples include automatic navigation devices, a guestbook, a file library and a shopping cart. The examples make use of new features including ZPT (including macros) and sessions.
I set things up to automatically create an Examples folder in the root if one doesn't already exist. I don't know if this is the right thing to do or not. Maybe folks should have to add examples from the product add list.
If you would like to contribute example applications just let me know. I'm open to contributions.
=== Added File Zope/var/Examples.zexp === (768/868 lines abridged)
ZEXP ((U
OFS.FolderqUFolderqtqNt.}q(Uexamples.cssq(U q(U OFS.ImageqUFileqttQUidq UExamplesq
U__ac_local_roles__q}qUamosq
]qUOwnerqasU_objectsq(}q(U meta_typeqU
Page Templateqh U
index_htmlqu}q(hUFileqh hu}q(hUFolderqh U
Navigationqu}q(U meta_typeqUFolderqUidqU GuestBookqu}q(U meta_typeq UFolderq!Uidq"UFileLibraryq#u}q$(U meta_typeq%UFolderq&Uidq'UShoppingCartq(uth((U !Pq)(hUFolderq*ttQh(U q+(U'Products.PageTemplates.ZopePageTemplateq,UZopePageTemplateq-ttQh#(U q.(hUFolderq/ttQUtitleq0UExample Applicationsq1U_ownerq2(]q3U acl_usersq4ah
tU
Navigationq5(U q6(hUFolderq7ttQh(U q8(hUFolderq9ttQu. ;((U OFS.ImageqUFileqtqNt.}q(UsizeqMSUdataqTS H1, H2, H3, H4, H5, H6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #6699CC;
}
body, .normal {
background: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
}
.small{
background: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
}
.grey{
background: #DDDDDD;
}
.white{
background: #FFFFFF;
}
.bold{
font-weight:bold;
}
.normal{
font-weight:normal;
}
.message{
background: #FFFFAA;
border-width: thin;
border-style: solid;
padding: 10pt;
font-weight:bold;
}
qU_EtagSupport__etagqU
ts05767609.14q U__name__q
Uexamples.cssqUtitleqU Ucontent_typeq
Utext/cssqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu. !P ((U
OFS.FolderqUFolderqtqNt.}q(UaddItemsq(U !Qq(U#Products.PythonScripts.PythonScriptqUPythonScriptqttQUidq UShoppingCartq
U__ac_local_roles__q}qUamosq
]qUOwnerqasU_objectsq(}q(U meta_typeqUScript (Python)qh UcurrentItemsqu}q(hhh UgetItemqu}q(hhh UgetTotalqu}q(hU
Page Templateqh U
[-=- -=- -=- 768 lines omitted -=- -=- -=-]
q6u. v((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (Uentryq
U
html_quoteqU
newline_to_brqtq
Uco_argcountqKubU_paramsqUentryqUidqUformatEntryqU__ac_local_roles__q}qUamosq]qUOwnerqasU_bind_namesq(cShared.DC.Scripts.Bindings
NameAssignments
qoq}qU_asgnsq}q(Uname_containerqU containerqUname_m_selfq Uscriptq!Uname_subpathq"Utraverse_subpathq#Uname_nsq$U_Uname_contextq%Ucontextq&usbU
func_defaultsq'NU_codeq(T c s d Z d S( Nc s- d k l } l } | | | Sd S( N( s
html_quotes
newline_to_br( s Products.PythonScripts.standards
html_quotes
newline_to_brs entry( s entrys
html_quotes
newline_to_br( ( s Script (Python)s formatEntry s ( s formatEntry( ( ( s Script (Python)s <module> s q)U_bodyq*Unfrom Products.PythonScripts.standard import html_quote, newline_to_br
return newline_to_br(html_quote(entry))
q+UScript_magicq,KUwarningsq-)Uerrorsq.)UPython_magicq/U*
q0u. !E ((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqU<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>Example</h1>
<p>This is an example HTML file.</p>
</body>
</html>
qU_EtagSupport__etagqU
ts05822816.58q U__name__q
Uexample.htmlqUtitleqUC:\Temp\example.htmlq
Ucontent_typeqU text/htmlqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu. !D ((U OFS.ImageqUFileqtqNt.}q(UsizeqKUdataqUThis is an example text file.qU_EtagSupport__etagqU
ts05822808.75q U__name__q
Uexample.txtqUtitleqUC:\Temp\example.txtq
Ucontent_typeqU
text/plainqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu. q((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUPigeonsqU__ac_local_roles__q}q Uamosq
]qUOwnerqasu. o((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUCrowsqU__ac_local_roles__q}q Uamosq
]qUOwnerqasu. ((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUPrimatesqU__ac_local_roles__q}q Uamosq
]qUOwnerqasUMonkeysq
(U q(hUFolderqttQU_objectsq(}q(U meta_typeqUFolderqUidqh
utqu. p((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUWhalesqU__ac_local_roles__q}q Uamosq
]qUOwnerqasu. n((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUBatsqU__ac_local_roles__q}q Uamosq
]qUOwnerqasu. ((U OFS.ImageqUFileqtqNt.}q(UsizeqMMU_propertiesq(}q(UidqUtitleq Utypeq
Ustringqu}q(hUcontent_typeq
h
hu}q(hU
guest_nameqh
hutUdataqTM This is an example comment. It can contain multiple lines of text.
Note that you <blink>cannot</blink> include HTML in your comments,
since the HTML is quoted.
This guest book entry is stored in a file named entry_0 in the Entries
folder. To edit the entry, simple edit that file. You can also delete
an entry by deleting its file.qU_EtagSupport__etagqU
ts05745452.64qU__name__qUentry_0qhUAmosqh U h
U
text/plainqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu. q((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUMonkeysqU__ac_local_roles__q}q Uamosq
]qUOwnerqasu.