[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(Uexamples.cssq(U      q(U	OFS.ImageqUFileqttQUidq	UExamplesq
U__ac_local_roles__q}qUamosq
]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'UShoppingCartq(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
Uexamples.cssqUtitleqU Ucontent_typeq
Utext/cssqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu.      !P      ((U
OFS.FolderqUFolderqtqNt.}q(UaddItemsq(U      !Qq(U#Products.PythonScripts.PythonScriptqUPythonScriptqttQUidq	UShoppingCartq
U__ac_local_roles__q}qUamosq
]qUOwnerqasU_objectsq(}q(U	meta_typeqUScript (Python)qh	UcurrentItemsqu}q(hhh	UgetItemqu}q(hhh	UgetTotalqu}q(hU
Page Templateqh	U

[-=- -=- -=- 768 lines omitted -=- -=- -=-]

q6u.            v((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U	func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq	(Uentryq
U
html_quoteqU
newline_to_brqtq
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!Uname_subpathq"Utraverse_subpathq#Uname_nsq$U_Uname_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+UScript_magicq,KUwarningsq-)Uerrorsq.)UPython_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
Uexample.htmlqUtitleqUC:\Temp\example.htmlq
Ucontent_typeqU	text/htmlqUpreconditionqU 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.txtqUtitleqUC:\Temp\example.txtq
Ucontent_typeqU
text/plainqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu.             q((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUPigeonsqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasu.             o((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUCrowsqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasu.             ((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUPrimatesqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasUMonkeysq
(U      q(hUFolderqttQU_objectsq(}q(U	meta_typeqUFolderqUidqh
utqu.             p((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUWhalesqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasu.             n((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUBatsqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasu.            ((U	OFS.ImageqUFileqtqNt.}q(UsizeqMMU_propertiesq(}q(UidqUtitleq	Utypeq
Ustringqu}q(hUcontent_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/plainqUpreconditionqU U__ac_local_roles__q}qUamosq]qUOwnerqasu.             q((U
OFS.FolderqUFolderqtqNt.}q(UtitleqU UidqUMonkeysqU__ac_local_roles__q}q	Uamosq
]qUOwnerqasu.