An interesting python problem using Zope 2.7.3

R

ranjith g p

Greetings!!!

I ran the following simple string commands in Linux + Python and the results are:

[root@localhost root]# python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Now when the same is run from Zope273 + python + Linux or windows,
the results are,

1. '<a>A'
2. A/
3. A


respectively. Any suggestions?

thanx
 
S

Steve Holden

ranjith said:
Greetings!!!

I ran the following simple string commands in Linux + Python and the results are:

[root@localhost root]# python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

'A</>'



Now when the same is run from Zope273 + python + Linux or windows,
the results are,

1. '<a>A'
2. A/
3. A


respectively. Any suggestions?

thanx

Define "is run from"?

When you enter an expression-statement at the interpreter's interactive
prompt the interpreter computers the result and, if the result is not
None, prints its repr().

How are you getting Zope to print the results? If they are coming
through a web browser, for example, there will be obvious difficulties
with unquoted "<" and ">" characters,

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top