Re: [Zope-dev] Unicode id's and utf8 url encoding

2003-11-11 Thread Tres Seaver
On Mon, 2003-11-10 at 22:13, Stuart Bishop wrote:

 Hi. I think the last thread on this issue was:
   http://aspn.activestate.com/ASPN/Mail/Message/zope-Dev/1843637
 
  From my reading of RFC2396 and RFC2277, the character set encoding for 
 URLs is UTF8. This is confirmed by 
 http://www.w3.org/International/O-URL-code.html .
 
 Does this settle the issue on how to handle non-ascii strings in URLs? 
 If so, is their anything stopping us allowing Unicode ids in Zope? This 
 would involve patching OFS.ObjectManager.checkValidId to accept strings 
 not in [0-9a-zA-Z\$\-_\.\+!\*'(),], and writing replacement 
 urllib.quote and urllib.unquote methods for use by HTTPRequest.py.
 
 If this is deemed a sane plan, I'd like to try getting this into Zope 
 2.7.

-1 for 2.7, as each introduction of new Unicode features has
historically been accompanied by a whole raft of new bugs, which are
mostly not reproducible (or at least hide) on the system where the
feature was developed.  We are trying hard to get to stability for 2.7,
with a beta planned for this week.

+1 for 2.7.1 and 2.8.


 It would also be worth fixing Python's urllib.quote and urllib.unquote 
 methods, but that is an issue for a seperate mailing list...

ROIGHT!

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com



___
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] Unicode id's and utf8 url encoding

2003-11-11 Thread Toby Dickenson
On Tuesday 11 November 2003 14:23, Tres Seaver wrote:
 On Mon, 2003-11-10 at 22:13, Stuart Bishop wrote:
  Hi. I think the last thread on this issue was:
  http://aspn.activestate.com/ASPN/Mail/Message/zope-Dev/1843637
 
   From my reading of RFC2396 and RFC2277, the character set encoding for
  URLs is UTF8. This is confirmed by
  http://www.w3.org/International/O-URL-code.html .
 
  Does this settle the issue on how to handle non-ascii strings in URLs?

if only browser always worked that way :-(

  If so, is their anything stopping us allowing Unicode ids in Zope? This
  would involve patching OFS.ObjectManager.checkValidId to accept strings
  not in [0-9a-zA-Z\$\-_\.\+!\*'(),], and writing replacement
  urllib.quote and urllib.unquote methods for use by HTTPRequest.py.

+1 on starting a prototype now, but I cant see this landing before 2.8.

This is going to break every use equivalent to getattr(some_object, id). Its 
not obvious to me how this can be cleanly resolved in zope 2.


-- 
Toby Dickenson


___
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] Unicode id's and utf8 url encoding

2003-11-11 Thread Andreas Jung


--On Dienstag, 11. November 2003 14:41 Uhr + Toby Dickenson 
[EMAIL PROTECTED] wrote:

if only browser always worked that way :-(

 If so, is their anything stopping us allowing Unicode ids in Zope? This
 would involve patching OFS.ObjectManager.checkValidId to accept strings
 not in [0-9a-zA-Z\$\-_\.\+!\*'(),], and writing replacement
 urllib.quote and urllib.unquote methods for use by HTTPRequest.py.
+1 on starting a prototype now, but I cant see this landing before 2.8.

This is going to break every use equivalent to getattr(some_object, id).
Its  not obvious to me how this can be cleanly resolved in zope 2.
Best to come up with a proposal to discuss all related issues. Btw.
I heard some requests from the community to support the new
international naming scheme for domain names (nothing I care about
very much but it sounds that is very much related).
-aj



___
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
 |   loc src=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] Zope 2.7 beta 3

2003-11-11 Thread robert
Thanks, now I am happy.
What is runzope for ?
should that not be eliminated ?
 
Robert

Am Dienstag, 11. November 2003 00:25 schrieb Chris McDonough:
 runzope never detaches from the terminal... use zopectl start
 instead.  Unlike previous versions of Zope, 2.7 doesn't handle its own
 daemonizing.  Instead it relies on an external program to do its
 daemonizing (Guido's zdaemon, which is invoked by zopectl).

 On Mon, 2003-11-10 at 14:57, robert wrote:
  Thank you very much,
  it worked perfectly.
 
  Now I have a problem/question:
  setting
 
  debug-mode off
 
  does not detach runzope from the terminal from which it was started.
 
  Is there some more settings I have to do?
 
  thanks
  Robert
 
  Am Montag, 10. November 2003 17:18 schrieb Tres Seaver:
   On Mon, 2003-11-10 at 11:15, robert wrote:
great news.
give him my congratulations .
   
Is there a description someplace how to install 2.7 from CVS.
  
 $ cd /tmp
 $ cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository \
   co -r Zope-2_7-branch -d Zope-2.7-head Zope
 $ cd Zope-2.7-head
 $ ./configure  make  make inplace
  
   Tres.

-- 
mit freundlichen Grüssen

Robert Rottermann
www.redCOR.ch


___
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] Zope 2.7 beta 3

2003-11-11 Thread Chris McDonough
No, it lets you run nondaemonized.  That's still useful.

On Tue, 2003-11-11 at 11:03, robert wrote:
 Thanks, now I am happy.
 What is runzope for ?
 should that not be eliminated ?
  
 Robert
 
 Am Dienstag, 11. November 2003 00:25 schrieb Chris McDonough:
  runzope never detaches from the terminal... use zopectl start
  instead.  Unlike previous versions of Zope, 2.7 doesn't handle its own
  daemonizing.  Instead it relies on an external program to do its
  daemonizing (Guido's zdaemon, which is invoked by zopectl).
 
  On Mon, 2003-11-10 at 14:57, robert wrote:
   Thank you very much,
   it worked perfectly.
  
   Now I have a problem/question:
   setting
  
   debug-mode off
  
   does not detach runzope from the terminal from which it was started.
  
   Is there some more settings I have to do?
  
   thanks
   Robert
  
   Am Montag, 10. November 2003 17:18 schrieb Tres Seaver:
On Mon, 2003-11-10 at 11:15, robert wrote:
 great news.
 give him my congratulations .

 Is there a description someplace how to install 2.7 from CVS.
   
  $ cd /tmp
  $ cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository \
co -r Zope-2_7-branch -d Zope-2.7-head Zope
  $ cd Zope-2.7-head
  $ ./configure  make  make inplace
   
Tres.


___
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 )