[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/zopeorg_types - casestudy_edit.py:1.1 casestudy_edit_form.pt:1.1 casestudy_view.pt:1.1 howto_edit.py:1.1 howto_edit_form.pt:1.1 howto_view.pt:1.1 tip_edit.py:1.1 tip_edit_form.pt:1.1 tip_view.pt:1.1 zsp_edit.py:1.1 zsp_edit_form.pt:1.1 zsp_view.pt:1.1

Sidnei da Silva sidnei at x3ng.com.br
Wed Feb 12 10:26:51 EST 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/zopeorg_types
In directory cvs.zope.org:/tmp/cvs-serv31743/zopeorg_types

Added Files:
	casestudy_edit.py casestudy_edit_form.pt casestudy_view.pt 
	howto_edit.py howto_edit_form.pt howto_view.pt tip_edit.py 
	tip_edit_form.pt tip_view.pt zsp_edit.py zsp_edit_form.pt 
	zsp_view.pt 
Log Message:
Gaak! You cant have a skin path with `products` in the url on CMF from CVS.

=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/casestudy_edit.py ===
## Script (Python) "casestudy_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=title, summary, logo, external_url, text_format, case_facts, case_facts_file, problem, problem_file, solution, solution_file, SafetyBelt
##title=
##
context.setTitle(title)
context.setSummary(summary)
context.setLogo(logo)
context.setExternalURL(external_url)
context.setCaseFacts(text_format, case_facts, case_facts_file, SafetyBelt)
context.setProblem(text_format, problem, problem_file, SafetyBelt)
context.setSolution(text_format, solution, solution_file, SafetyBelt)

context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/casestudy_edit_form?portal_status_message=Case%20Study%20changed.')


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/casestudy_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Case Study Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="casestudy_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr><th>Title</th><td>
	<input type="text" name="title:text" size="50" value=""
	       tal:attributes="value here/Title"></td></tr>
      <tr><th>Summary</th>
          <td><textarea name="summary:text" rows="5" cols="80"
                    tal:content="here/Summary">edit me!</textarea>
         </td>
      </tr>
      <tr><th>Logo</th><td>
	<input type="text" name="logo:text" size="50" value=""
	       tal:attributes="value here/Logo"></td></tr>
      <tr><th>External URL</th><td>
	<input type="text" name="external_url:text" size="50" value=""
	       tal:attributes="value here/ExternalURL"></td></tr>
      <tr><th>Format</th>
          <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th class="TextField"> Case Facts </th>
          <td class="TextField">
          <textarea name="case_facts:text" rows="10" cols="80"
                    tal:content="here/editableCaseFacts">edit me!</textarea>
          </td>
      </tr>
      <tr><th> Upload Case Facts </th><td><input type="file" name="case_facts_file" size="25"></td></tr>
      <tr><th class="TextField"> Problem </th>
          <td class="TextField">
          <textarea name="problem:text" rows="10" cols="80"
                    tal:content="here/editableProblem">edit me!</textarea>
          </td>
      </tr>
      <tr><th> Upload Problem</th><td><input type="file" name="problem_file" size="25"></td></tr>
      <tr><th class="TextField"> Solution </th>
          <td class="TextField">
          <textarea name="solution:text" rows="10" cols="80"
                    tal:content="here/editableSolution">edit me!</textarea>
          </td>
      </tr>
      <tr><th> Upload Solution</th><td><input type="file" name="solution_file" size="25"></td></tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/casestudy_view.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Master Template</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>
<div metal:fill-slot="main">

    <img src="logo.jpg"
         tal:condition="here/getLogo"
         tal:attributes="src python:here.getLogo().absolute_url()" />

    <p tal:condition='here/ExternalURL'>
       <a href="#" tal:attributes="href here/ExternalURL"
          tal:content="here/ExternalURL">
          External URL
      </a>
   </p>

    <h1 tal:condition="here/Summary">Summary</h1>
 
    <p tal:condition="here/Summary"
       tal:content="here/Summary">Summary</p>

    <h1 tal:condition="here/CaseFacts">Case Facts</h1>
 
    <span tal:condition="here/CaseFacts"
          tal:replace="structure here/CaseFacts" />

    <h1 tal:condition="here/Problem">Problem</h1>
 
    <span tal:condition="here/Problem"
          tal:replace="structure here/Problem" />

    <h1 tal:condition="here/Solution">Solution</h1>
 
    <span tal:condition="here/Solution"
          tal:replace="structure here/Solution" />

</div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/howto_edit.py ===
## Script (Python) "howto_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=text_format, text, file, SafetyBelt
##title=
##
context.edit(text_format, text, file, SafetyBelt)
context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/howto_edit_form?portal_status_message=Document%20changed.')

=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/howto_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Howto Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="howto_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr><th>Title</th><td tal:content="here/Title">Howto Title</td></tr>
      <tr><th>Description</th><td
    tal:content="here/description">This is a good HowTo.</td></tr>
      <tr><th>Format</th>
          <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th> Upload </th><td><input type="file" name="file" size="25"></td></tr>
      <tr><th class="TextField"> Edit </th>
          <td class="TextField">
          <textarea name="text:text" rows="20" cols="80"
                    tal:content="here/EditableBody">edit me!</textarea>
          </td>
      </tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/howto_view.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">

<div class="Desktop">
 <table>
 <tr>
          <td height="20">
<div class="aTitle" tal:content="structure here/Title">Document Title</div></td></tr>
  <tr valign="top">
          <td height="1" bgcolor="#000000"><img src="../zpt_images/c.gif" width="360" height="1" border="0" alt=""
                                                          tal:attributes="src string:c.gif"></td>
        </tr>
		<tr><td>&nbsp;</td></tr>
  <tr>
    <td><div metal:use-macro="here/content_byline/macros/byline">By Me</div></td>
  </tr>
  <tr>
    <td><div class="Description" tal:content="here/Description"></div></td>
  </tr>
  <tr>
    <td><div tal:replace="structure here/CookedBody">Cooked Body</div></td>
  </tr>
  <tr>
  <td><div class="Discussion">
   <span tal:replace="structure here/viewThreadsAtBottom"
         tal:condition="here/viewThreadsAtBottom|nothing"></span>
  </div>
  </td>
  </tr>
  </table>
</div>
</div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/tip_edit.py ===
## Script (Python) "tip_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=text_format, text, file, SafetyBelt
##title=
##
context.edit(text_format, text, file, SafetyBelt)
context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/tip_edit_form?portal_status_message=Document%20changed.')

=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/tip_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Howto Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="howto_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr><th>Title</th><td tal:content="here/Title">Howto Title</td></tr>
      <tr><th>Description</th>
          <td tal:content="here/description">This is a good Tip.</td>
      </tr>
      <tr><th>Format</th>
          <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th> Upload </th><td><input type="file" name="file" size="25"></td></tr>
      <tr><th class="TextField"> Edit </th>
          <td class="TextField">
          <textarea name="text:text" rows="10" cols="80"
                    tal:content="here/EditableBody">edit me!</textarea>
          </td>
      </tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/tip_view.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Master Template</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>
<table>
   <tr><td>this will be a navbar, some day</td></tr>
</table>
<div metal:fill-slot="main">
    <div tal:replace="structure here/content_byline">by bob</div>
    <div tal:replace="structure here/CookedBody">bob's news</div>
    <div tal:replace="structure here/viewThreadsAtBottom">bob sucks.</div>
  </div>
 <p>powered by that z thing</p>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/zsp_edit.py ===
## Script (Python) "zsp_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=company, summary, location, text_format, logo, external_url, contact_info=None, phone_info=None, service_info, service_info_file, SafetyBelt
##title=
##
context.setCompany(company)
context.setSummary(summary)
context.setLocation(location)
context.setLogo(logo)
context.setExternalURL(external_url)
context.setContactInfo(contact_info)
context.setPhoneInfo(phone_info)
context.setServiceInfo(text_format, service_info, service_info_file, SafetyBelt)

context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1 +
 '/zsp_edit_form?portal_status_message=ZSP%20changed.')


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/zsp_edit_form.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">ZSP Edit Form</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>

<div metal:fill-slot="main">

   <h2>Edit <span tal:replace="here/id">This</span></h2>
   
   <form action="zsp_edit" method="post" enctype="multipart/form-data">
    <input type="hidden" name="SafetyBelt"
           tal:attributes="value here/SafetyBelt">
    <table>
      <tr>
	<th>
	  Company
	</th>
	<td>
	  <input type="text" name="company:text" size="50" value=""
	  tal:attributes="value here/Company">
	</td>
      </tr>
      <tr>
	<th>
	  Summary
	</th>
	<td>
	  <textarea name="summary:text" rows="5" cols="80"
	  tal:content="here/Summary">edit me!</textarea>
	</td>
      </tr>
      <tr>
	<th>
	  Logo
	</th>
	<td>
	  <input type="text" name="logo:text" size="50" value=""
	  tal:attributes="value here/Logo">
	</td>
      </tr>
      <tr>
	<th>
	  External URL
	</th>
	<td>
	  <input type="text" name="external_url:text" size="50" value=""
	  tal:attributes="value here/ExternalURL">
	</td>
      </tr>
      <tr>
	<th>
	  Location
	</th>
	<td>
	  <input type="text" name="location:text" size="50" value=""
	  tal:attributes="value here/Location">
	</td>
      </tr>
      <tr>
	<th>
	  Contact Info
	</th>
	<td>
	  <table>
	  <tal:block repeat="info here/ContactInfo">
	    <tr>
	      <td class="label">Name</td>
	      <td>
		<input type="text" name="contact_info.name:text:records"
		size="30" value=""
		tal:attributes="value info/name">
	      </td>
	    </tr>
	    <tr>
	      <td class="label">
		Email
	      </td>
	      <td>
		<input type="text" name="contact_info.email:text:records"
		size="30" value=""
		tal:attributes="value info/email">
	      </td>
	    </tr>
	    <tr>
	      <td class="label">
		Info
	      </td>
	      <td>
		<input type="text" name="contact_info.info:text:records"
		size="30" value=""
		tal:attributes="value info/info">
	      </td>
	    </tr>
	    <tr><td></td><td><hr width="200px" /></td></tr>
	</tal:block>
	    <tr>
	      <td class="label">
		Name
		</td>
		<td>
		  <input type="text" name="contact_info.name:text:records"
		  size="30" value="">
		</td>
	      </tr>
	      <tr>
		<td class="label">
		  Email
		</td>
		<td>
		  <input type="text" name="contact_info.email:text:records"
		  size="30" value="">
		</td>
	      </tr>
	      <tr>
		<td class="label">
		  Info
		</td>
		<td>
		  <input type="text" name="contact_info.info:text:records"
		  size="30" value="">
		</td>
	      </tr>
	    </table>

	  </td>
	</tr>
	<tr>
	  <th>
	    Phone Info
	  </th>
	  <td>
	    <table>
	      <tal:block repeat="info here/PhoneInfo">
	      <tr>
		<td class="label">Phone</td>
		<td>
		  <input type="text" name="phone_info.phone:text:records"
		  size="15" value=""
		  tal:attributes="value info/phone">
		</td>
		<td class="label">
		  Info
		</td>
		<td>
		  <input type="text" name="phone_info.info:text:records"
		  size="15" value=""
		  tal:attributes="value info/info">
		</td>
	      </tr>
	      </tal:block>
	      <tr>
		<td class="label">
		  Phone
		</td>
		<td>
		  <input type="text" name="phone_info.phone:text:records"
		  size="15" value="">
		</td>
		<td class="label">
		  Info
		</td>
		<td>
		  <input type="text" name="phone_info.info:text:records"
		  size="15" value="">
		</td>
	      </tr>
	    </table>

	</td>
    </tr>

    <tr>
      <th>Format</th>
      <td><input type="radio" name="text_format"
                     value="structured-text"
                     tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
	      <label for="cb_structuredtext">structured-text</label>
	      <input type="radio" name="text_format" value="html"
              tal:attributes="checked python: path('here/text_format') == 'html'" />
	      <label for="cb_html">html</label>
          </td>
      </tr>
      <tr><th class="TextField"> Service Info </th>
          <td class="TextField">
          <textarea name="service_info:text" rows="10" cols="80"
                    tal:content="here/editableServiceInfo">edit me!</textarea>
          </td>
      </tr>
      <tr><th> Upload Service Info </th><td><input type="file" name="service_info_file" size="25"></td></tr>
      <tr><td> <br /> </td>
          <td><input type="submit" value=" Change "></td>
      </tr>
    </table>
   </form>

  </div>
</body>
</html>


=== Added File Products/ZopeOrg-NV/skins/zopeorg_types/zsp_view.pt ===
<html metal:use-macro="here/main_template/macros/master">

<head>
<title tal:content="here/Title">Master Template</title>
<link rel="stylesheet" type="text/css" href="/portal/Global.css" />
</head>
<body>
<div metal:fill-slot="main">

    <h1 tal:condition="here/Company">Company</h1>

    <img src="logo.jpg"
         tal:condition="here/getLogo"
         tal:attributes="src python:here.getLogo().absolute_url()" />

    <p tal:condition='here/ExternalURL'>
       <a href="#" tal:attributes="href here/ExternalURL"
          tal:content="here/ExternalURL">
          External URL
      </a>
   </p>

    <h1 tal:condition="here/Summary">Summary</h1>
 
    <p tal:condition="here/Summary"
       tal:content="here/Summary">Summary</p>

    <h1 tal:condition="here/ContactInfo|here/PhoneInfo|nothing">Contact</h1>

    <ul tal:condition="here/ContactInfo|here/PhoneInfo|nothing">
      <li tal:condition="here/ContactInfo" tal:repeat="info here/ContactInfo">
        <a href="#" tal:attributes="href string:mailto:${info/email}"
           tal:omit-tag="not:info/email">
          <span tal:replace="info/name"/>
          <span tal:condition="info/email"
                tal:replace="string:<${info/email}>"/>
        </a>
        <span tal:condition="info/info"
              tal:replace="info/info" />

      </li>

      <li tal:condition="here/PhoneInfo" tal:repeat="info here/PhoneInfo">
          <span tal:replace="info/phone"/>
          <span tal:condition="info/info"
                tal:replace="string: - ${info/info}"/>
      </li>

    </ul>
      
    <h1 tal:condition="here/ServiceInfo">Service Info</h1>
 
    <span tal:condition="here/ServiceInfo"
          tal:replace="structure here/ServiceInfo" />


</div>
</body>
</html>





More information about the zopeorg-checkins mailing list