Raw Newbie: What's the "<?" tag and how can I learn more abou t it?

Simon Brunning SBrunning at trisystems.co.uk
Wed Nov 13 11:26:08 EST 2002


> From:	KEVIN ZEMBOWER [SMTP:KZEMBOWER at jhuccp.org]
> I'm just now beginning my learning about python, and have to modify a
> system written in python, the ezmlm-browse system, which allows ezmlm
> mailing lists to be accessed via a web interface.
> 
> I've found templates which look like this:
>     <? if body is None ?>
>       <hr><strong>["%(type)s" not shown]</strong>
>     <? else ?>
>       <hr><table width="640">
>       <tr><td>%(markup_urls(html(body)))s</td></tr>
>       </table>
>     <? end ?>
> 
> Obviously, this is python code embedded in HTML, very similar to php in
> HTML, with which I am more familiar. However, I can't find any references
> to the "<?" tag system on the python.org web site. I also can't find any
> references to it in my Learning Python or Programming Python books. I
> suspect that this is that I just don't know the proper terms to search
> for. Where can I learn more about this aspect of python?
> 
> The specific problem I'm working on involves the line '<hr><table
> width="640">'. I'd like to change the width to "100%", but the percent
> sign must be interpreted as a special character. It causes strange errors.
> I've tried escaping it with 'width="100\%"', but this doesn't seem to
> work, either. Any help on this small problem?
> 
> Thanks for your suggestions and help and patience with what I suspect is a
> very newbie question.
 
The "<?" stuff isn't part of core Python, hence your not being able to find
references to it on python.org. It's almost certainly part of a templating
system. Problem is, there are a great many of these for Python - see
<http://www.python.org/cgi-bin/moinmoin/WebProgramming> for many (though
probably not all) of them.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list