Changeset 34:0ca99253b4ce in documentViewer for zpt


Ignore:
Timestamp:
Apr 11, 2006, 5:27:57 PM (18 years ago)
Author:
casties
Branch:
default
Message:

version 0.2.3 - first version with access control!

  • defaults to open when no access info
  • uses any logged in user for local access
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_main.zpt

    r31 r34  
    1 <html>
     1<html tal:define="docinfo options/docinfo; pageinfo options/pageinfo">
    22<head>
    33<link rel="stylesheet" href="template/docuviewer_css" type="text/css">
    44</head>
    5 <body tal:define="docinfo options/docinfo; pageinfo options/pageinfo" tal:condition="docinfo/numPages">
     5<body tal:condition="docinfo/numPages">
    66<div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
     7<tal:block tal:condition="python:here.accessOK(docinfo)">
    78<table border="0" width="100%" height="100%">
    89  <tr>
     
    1516  </tr>
    1617</table>
     18</tal:block>
     19<tal:block tal:condition="not:python:here.accessOK(docinfo)">
     20<div class="errortext">Sorry, access to this document is restricted.</div>
     21</tal:block>
    1722</body>
    18 <body tal:define="docinfo options/docinfo; pageinfo options/pageinfo" tal:condition="not:docinfo/numPages">
     23<body tal:condition="not:docinfo/numPages">
    1924<div class="errortext">Sorry, document doesn't exist.</div>
    2025</body>
Note: See TracChangeset for help on using the changeset viewer.