Re: [Zope-dev] Rendering xml content in ZPT

2003-11-14 Thread Antonio Beamud Montero
I can't find the related issue, I can post a new one. The most closest
is the 258 bug...


El jue, 13-11-2003 a las 17:23, Fred L. Drake, Jr. escribió:
> Antonio Beamud Montero writes:
>  > I have downloaded the last version of PyXML and I have installed using
>  > the python version of Zope 2.6 and all was sucessfully, but doesn't work
>  > either...
> 
> Interesting.
> 
> There should be a reasonable work-around for this; if you could check
> the existing report in the issue tracker and make sure it's complete
> (including the complete error message and any traceback information),
> and assign it to me to look into a work-around, I'd appreciate it.
> 
> 
>   -Fred
-- 
Antonio Beamud Montero <[EMAIL PROTECTED]>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-13 Thread Florent Guillaume
Please define "doesn't work" a bit better.

Florent

Antonio Beamud Montero wrote:
I have downloaded the last version of PyXML and I have installed using
the python version of Zope 2.6 and all was sucessfully, but doesn't work
either...
El jue, 13-11-2003 a las 16:11, Fred L. Drake, Jr. escribió:

Florent Guillaume writes:
> That's a packaging bug in the packaged Linux binary versions of Zope
> 2.6.* that Zope Corp won't fix, cf the bug tracker (and anyway there
> will be no binary versions for Zope 2.7.*). The package is missing some
> shared library files for expat.
> 
> You'll have to use your own installation of python.

Another solution would be to use the bundled Python to install a
recent version of PyXML; Expat is bundled directly and does not
require any external libraries.
This is also the approach taken in newer versions of Python (2.3 and
newer).
 -Fred
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-13 Thread Fred L. Drake, Jr.

Antonio Beamud Montero writes:
 > I have downloaded the last version of PyXML and I have installed using
 > the python version of Zope 2.6 and all was sucessfully, but doesn't work
 > either...

Interesting.

There should be a reasonable work-around for this; if you could check
the existing report in the issue tracker and make sure it's complete
(including the complete error message and any traceback information),
and assign it to me to look into a work-around, I'd appreciate it.


  -Fred

-- 
Fred L. Drake, Jr.  
PythonLabs at Zope Corporation

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-13 Thread Antonio Beamud Montero
I have downloaded the last version of PyXML and I have installed using
the python version of Zope 2.6 and all was sucessfully, but doesn't work
either...

El jue, 13-11-2003 a las 16:11, Fred L. Drake, Jr. escribió:
> Florent Guillaume writes:
>  > That's a packaging bug in the packaged Linux binary versions of Zope
>  > 2.6.* that Zope Corp won't fix, cf the bug tracker (and anyway there
>  > will be no binary versions for Zope 2.7.*). The package is missing some
>  > shared library files for expat.
>  > 
>  > You'll have to use your own installation of python.
> 
> Another solution would be to use the bundled Python to install a
> recent version of PyXML; Expat is bundled directly and does not
> require any external libraries.
> 
> This is also the approach taken in newer versions of Python (2.3 and
> newer).
> 
> 
>   -Fred
-- 
Antonio Beamud Montero <[EMAIL PROTECTED]>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-13 Thread Fred L. Drake, Jr.

Florent Guillaume writes:
 > That's a packaging bug in the packaged Linux binary versions of Zope
 > 2.6.* that Zope Corp won't fix, cf the bug tracker (and anyway there
 > will be no binary versions for Zope 2.7.*). The package is missing some
 > shared library files for expat.
 > 
 > You'll have to use your own installation of python.

Another solution would be to use the bundled Python to install a
recent version of PyXML; Expat is bundled directly and does not
require any external libraries.

This is also the approach taken in newer versions of Python (2.3 and
newer).


  -Fred

-- 
Fred L. Drake, Jr.  
PythonLabs at Zope Corporation

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-13 Thread Florent Guillaume
In article <[EMAIL PROTECTED]> you write:
> Hi all:
> I have downloaded Zope-2.6.2-linux2-x86 and I have created a page
> template with xml content, but when I try to test it the next message
> appears:
> 
> Error Type: ImportError
> Error Value: cannot import name expat
> 
> Is this a bug?

That's a packaging bug in the packaged Linux binary versions of Zope
2.6.* that Zope Corp won't fix, cf the bug tracker (and anyway there
will be no binary versions for Zope 2.7.*). The package is missing some
shared library files for expat.

You'll have to use your own installation of python.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-11 Thread Antonio Beamud Montero
Hi all:
I have downloaded Zope-2.6.2-linux2-x86 and I have created a page
template with xml content, but when I try to test it the next message
appears:

Error Type: ImportError
Error Value: cannot import name expat

Is this a bug?

El lun, 10-11-2003 a las 18:08, Sidnei da Silva escribió:
> On Mon, Nov 10, 2003 at 05:50:46PM +0100, Antonio Beamud Montero wrote:
> | Hi all:
> | I have problems to rendering data if the ZPT is xml content-type.
> | I have include xmlns:tal namespace definition and a replacemente of an
> | attribute in the xml text with
> |   http://localhost"; tal:attributes="src here/absolute_url">
> | 
> | But this replacement is ignored and if I try to view this method,  the
> | xml is exactly the same...
> | 
> | What I need to do to rendering this document appliying changes?
> 
> Try python:here.absolute_url(). If that works, then you hit a bug in
> the C Security Policy, which has been fixed by Chris McDonough in the
> last bugday.
-- 
Antonio Beamud Montero <[EMAIL PROTECTED]>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-10 Thread Sidnei da Silva
On Mon, Nov 10, 2003 at 05:50:46PM +0100, Antonio Beamud Montero wrote:
| Hi all:
| I have problems to rendering data if the ZPT is xml content-type.
| I have include xmlns:tal namespace definition and a replacemente of an
| attribute in the xml text with
|   http://localhost"; tal:attributes="src here/absolute_url">
| 
| But this replacement is ignored and if I try to view this method,  the
| xml is exactly the same...
| 
| What I need to do to rendering this document appliying changes?

Try python:here.absolute_url(). If that works, then you hit a bug in
the C Security Policy, which has been fixed by Chris McDonough in the
last bugday.

-- 
Sidnei da Silva <[EMAIL PROTECTED]>
http://awkly.org - dreamcatching :: making your dreams come true
http://plone.org/about/team#dreamcatcher

You scratch my tape, and I'll scratch yours.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )