[Zope-Checkins] SVN: Zope/trunk/lib/python/StructuredText/Zwiki.py Remove module that doesn't work and isn't being used.

2006-01-17 Thread Philipp von Weitershausen
Log message for revision 41347:
  Remove module that doesn't work and isn't being used.
  

Changed:
  D   Zope/trunk/lib/python/StructuredText/Zwiki.py

-=-
Deleted: Zope/trunk/lib/python/StructuredText/Zwiki.py
===
--- Zope/trunk/lib/python/StructuredText/Zwiki.py   2006-01-17 07:56:19 UTC 
(rev 41346)
+++ Zope/trunk/lib/python/StructuredText/Zwiki.py   2006-01-17 08:39:07 UTC 
(rev 41347)
@@ -1,84 +0,0 @@
-##
-#
-# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE
-#
-##
-
-from Html   import HTML
-from ST import DOC
-import re
-
-
-This is the new structured text type.
-
-
-class Zwiki_Title:
-def __init__(self,str=''):
-self.expr1   = re.compile('([A-Z]+[A-Z]+[a-zA-Z]*)').search
-self.expr2   = re.compile('([A-Z]+[a-z]+[A-Z]+[a-zA-Z]*)').search
-self.str= [str]
-self.typ= Zwiki_Title
-
-def type(self):
-return '%s' % self.typ
-
-def string(self):
-return self.str
-
-def __getitem__(self,index):
-return self.str[index]
-
-def __call__(self,raw_string,subs):
-
-
-The raw_string is checked to see if it matches the rules
-for this structured text expression. If the raw_string does,
-it is parsed for the sub-string which matches and a doc_inner_link
-instance is returned whose string is the matching substring.
-If raw_string does not match, nothing is returned.
-
-
-if self.expr1(raw_string):
-start,end   = self.expr1(raw_string).span()
-result  = Zwiki_Title(raw_string[start:end])
-result.start,result.end = self.expr1(raw_string).span()
-return result
-elif self.expr2(raw_string):
-start,end   = self.expr2(raw_string).span()
-result  = Zwiki_Title(raw_string[start:end])
-result.start,result.end = self.expr2(raw_string).span()
-return result
-else:
-return None
-
-def span(self):
-return self.start,self.end
-
-class Zwiki_doc(DOC):
-
-def __init__(self):
-DOC.__init__(self)
-
-Add the new type to self.types
-
-self.types.append(Zwiki_Title())
-
-class Zwiki_parser(HTML):
-def __init__(self):
-HTML.__init__(self)
-self.types[Zwiki_Title] = self.zwiki_title
-
-def zwiki_title(self,object):
-result = 
-for x in object.string():
-result = result + x
-result = a href=%s%s/a % (result,result)
-#result = dtml-wikiname %s % result
-self.string = self.string + result

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope-dev] [Zope 2.10] ZPT going Unicode

2006-01-17 Thread Martijn Faassen

Dieter Maurer wrote:

Tino Wildenhain wrote at 2006-1-13 16:45 +0100:


...
Maybe just have new uZPT with Unicode and leave the old ZPT allone?
Maybe with limited ability to add old ZPT from ZMI or such.

This would solve the backward-compatibility problems and would be a more
smooth transition w/o the need of upgrade hacks and strict hacks
(after all, we arent perl/php ;))



I fear it is not that easy:

  Unless we set Python's defaultencoding to the site encoding
  (and we have such a thing), Python cannot mix Unicode and non-Unicode.

  Thus, your old ZPT's would need to use only other old ZPT's and
  old Python scripts and old methods (returning encoded texts)
  while strict ZPT's would need to use only new (strict) ZPT's, scripts
  and methods. Quite unfeasible...


Right, and setting Python's default encoding is out of the question.

Regards,

Martijn



___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )


[Zope-dev] Zope tests: 8 OK

2006-01-17 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Mon Jan 16 12:01:02 2006 UTC to Tue Jan 17 12:01:02 2006 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:02:28 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004026.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:03:58 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004027.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:05:28 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004028.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:06:58 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004029.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:08:28 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004030.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:09:58 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004031.html

Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:11:29 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004032.html

Subject: OK : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Mon Jan 16 21:12:59 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004033.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )


[Zope-dev] Re: Deprecation process issues

2006-01-17 Thread Florent Guillaume

Tres Seaver wrote:

I've noticed a couple of problems with recent deprecation decisions (for
OFS.content_types and zLOG).  The major one is that the deprecation
warning waw added without removing the code in the core which depends on
the deprecated feature.  The most obvious sign of this is that the tests
no longer run clean, but are cluttered up with warning output.


Yes this is a major pain. Such that in my sandboxes the first thing I do is 
comment out the warning in zLOG.


Florent


Another issue is that at least one of those choices (the zLOG one)
seemed to land without accounting for the legitimate use cases which the
new blessed method doesn't address (e.g, logging levels not offered by
the standard 'logging' module).

I'm about to check in changes which clean out the use of
OFS.content_types, but am less willing to clean up the zLOG uses until
the other use cases are addressed.



--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] ZPT backward compatibility

2006-01-17 Thread Dieter Maurer
Jim Fulton wrote at 2006-1-16 13:36 -0500:
 ...
2. If we decide to change something, even if it's backward incompatible,
we need to change Zope itself to do things the new way before we expect
other people to and before we introduce the deprecation warning.
If there isn't a valid new way of doing something, then we can't deprecate
the old way.

I am very happy that you write this.

-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: ZPT backward compatibility

2006-01-17 Thread Dieter Maurer
Andreas Jung wrote at 2006-1-16 19:55 +0100:
 ...
Well, I brought this issue up on zope-dev to discuss this issue directly.
but with almost zero feedback :-) Also another related posting to zope-zpt 
got _zero_ anwers.

I have seen some answers -- though not too many...

Note also that zpt@zope.org is a very low activity list.
For it, a few answers is already a lot...


-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: ZPT backward compatibility

2006-01-17 Thread Tino Wildenhain
Dieter Maurer schrieb:
 Andreas Jung wrote at 2006-1-16 19:55 +0100:
...
 I have seen some answers -- though not too many...
 
 Note also that zpt@zope.org is a very low activity list.
 For it, a few answers is already a lot...

Add to it the fact the zpt@zope.org was due to be retired
anyway ;)
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] Re: ZPT backward compatibility

2006-01-17 Thread Fred Drake
On 1/17/06, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Add to it the fact the zpt@zope.org was due to be retired
 anyway ;)

Though retirement for the list was discussed, it was decided not to
retire it since it was still the best place for implementors to
discuss matters.  The implementations in Zope 2 and Zope 3 are not the
only implementations, and the other implementors are justifiably not
interested in joining Zope-specific lists.


  -Fred

--
Fred L. Drake, Jr.fdrake at gmail.com
There is no wealth but life. --John Ruskin
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )


[Zope] Zope 2.7 with postgresql 8.1 anyone?

2006-01-17 Thread David

Is anyone using successfully Zope 2.7 with postgresql 8.1?

Or any other version of Zope?

What is your database adapter product? We're using Pyscopg (happily  
using 1.1x with Zope 2.7 and pg 7.3/4), but have problems getting it  
to work with either Psycopg 1.2x (protocol missmatch errors) or  
Psycopg 2.x (transactions are getting aborted for no reason).


We're happy to dabble, but would like to know that it is working in  
principle. We're on a delivery schedule and don't want to be  
dependant on bug fixes still required.


Thanks!

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Jens Vagelpohl


On 17 Jan 2006, at 11:37, Tino Wildenhain wrote:


Hi,

I'm getting bounces of messages sent to zope@zope.org
with aparently large binary attachments. Luckily they
are too big to get thru automatically.

Looks like spammers are around and faking identities.

Is it possible to enhance the list software to check
gpg keys of posts?


What exactly would that do? Would you want to force everyone to use  
gpg keys? Sounds just a bit unrealistic.


jens

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Products for XML-RPC

2006-01-17 Thread José Carlos Senciales

Hi ,

I´m looking for a Product for Zope to call any generic object.method with 
permission checking and with

a generic object response to caller.

Do you know some product for this? or it´s not neccesary a product to make 
it.



thanks.
jose 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Products for XML-RPC

2006-01-17 Thread Andreas Jung



--On 17. Januar 2006 13:04:37 +0100 José Carlos Senciales 
[EMAIL PROTECTED] wrote:



Hi ,

I´m looking for a Product for Zope to call any generic object.method
with permission checking and with
a generic object response to caller.

Do you know some product for this? or it´s not neccesary a product to
make it.




huh? Any published method of a Zope object (having security assertions and 
a doc string) can be called through XML-RPC without any further magic..


-aj




pgpUBaVqs9z2F.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Martijn Pieters
On 1/17/06, Tino Wildenhain [EMAIL PROTECTED] wrote:
 I'm getting bounces of messages sent to zope@zope.org
 with aparently large binary attachments. Luckily they
 are too big to get thru automatically.

The bounces themselves are fake perhaps? Why would you get bounces
otherwise; you are not the sender nor registered as a mailman admin
for the list.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Tino Wildenhain

Jens Vagelpohl schrieb:



...
What exactly would that do? Would you want to force everyone to use  gpg 
keys? Sounds just a bit unrealistic.


Yes, I feared it. After all it was just an idea.
Alternatively the ability to register trusted
MTAs with an address could help and would be completely
transparent for those who dont care.

I guess its a lot of work either and I dont know the
internals of Mailman good enough.

++Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Tino Wildenhain

Martijn Pieters schrieb:

On 1/17/06, Tino Wildenhain [EMAIL PROTECTED] wrote:


Alternatively the ability to register trusted
MTAs with an address could help and would be completely
transparent for those who dont care.



Unfortunately the nature of open source communities around a domain
name is such that locking down the number of IP addresses that are
authorized to send @zope.org mail is a bad idea. Maybe not so much for
the @zope.org domain right now; the problem is more prominent with
@python.org for example, but in the future things can and will be
different.


Actually my idea was to register email:authoritative-MTA
And if a user does ot register his MTA with his email address,
the check just cant be done and the email is handled
as usual. But if there is an entry for an address it could be checked
and the email denied in the mail from: phase.

++Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Martijn Pieters
On 1/17/06, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Alternatively the ability to register trusted
 MTAs with an address could help and would be completely
 transparent for those who dont care.

Unfortunately the nature of open source communities around a domain
name is such that locking down the number of IP addresses that are
authorized to send @zope.org mail is a bad idea. Maybe not so much for
the @zope.org domain right now; the problem is more prominent with
@python.org for example, but in the future things can and will be
different.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Products for XML-RPC

2006-01-17 Thread Paul Winkler
On Tue, Jan 17, 2006 at 01:11:33PM +0100, Andreas Jung wrote:
 
 
 --On 17. Januar 2006 13:04:37 +0100 Jos?? Carlos Senciales 
 [EMAIL PROTECTED] wrote:
 
 Hi ,
 
 I??m looking for a Product for Zope to call any generic object.method
 with permission checking and with
 a generic object response to caller.
 
 Do you know some product for this? or it??s not neccesary a product to
 make it.
 
 
 
 huh? Any published method of a Zope object (having security assertions and 
 a doc string) can be called through XML-RPC without any further magic..

Yep.  Or, if XML-RPC doesn't float your boat, *and* the client and server
are both Zope instances, you might also check out ZSyncer, which as
of version 0.7 has methods callRemote() and callManyRemote() which
provide exactly this feature.  You just prepare a dictionary
identifying the remote path(s) and method(s) to call along with
arguments, and you get back native python objects.
(The response is sent back to you as pickles which are transparently
unpickled.)

There's no UI for using this, it's just provided so you can use zsyncer
to script remote control features.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Andrew Sawyers
IIRC, all of the zope mailing lists only accept mail from subscribers -
so these are likely just someone spoofing the sender address.  No reason
to try and handle this on the list server side IMNSHO.

Andrew
On Tue, 2006-01-17 at 12:37 +0100, Tino Wildenhain wrote:
 Hi,
 
 I'm getting bounces of messages sent to zope@zope.org
 with aparently large binary attachments. Luckily they
 are too big to get thru automatically.
 
 Looks like spammers are around and faking identities.
 
 Is it possible to enhance the list software to check
 gpg keys of posts?
 
 Just an idea...
 
 ++Tino
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] Spam-Bounces

2006-01-17 Thread Tino Wildenhain

Andrew Sawyers schrieb:

IIRC, all of the zope mailing lists only accept mail from subscribers -
so these are likely just someone spoofing the sender address.  No reason
to try and handle this on the list server side IMNSHO.


Of course they are. Thats the whole point :-) On which side do you think
it can be handled instead?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Spam-Bounces

2006-01-17 Thread Andrew Sawyers
I'm a little confused, if that's the whole point, not sure what the
point is.  Perhaps I jumped the gun by replying :).

I guess I would setup a local procmail rule or posfix rule to not accept
mail with these attachments?  If the mail is not going through the zope
mailservers, I'm not sure how one would logically deal with this
spoofing problem?  One options is enforcing this with SPF records - we
could get Mark to set this up on the zope.org side perhaps?

Andrew

On Tue, 2006-01-17 at 15:39 +0100, Tino Wildenhain wrote:
 Andrew Sawyers schrieb:
  IIRC, all of the zope mailing lists only accept mail from subscribers -
  so these are likely just someone spoofing the sender address.  No reason
  to try and handle this on the list server side IMNSHO.
 
 Of course they are. Thats the whole point :-) On which side do you think
 it can be handled instead?

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


Re: [Zope] Spam-Bounces

2006-01-17 Thread Tino Wildenhain

Andrew Sawyers schrieb:

I'm a little confused, if that's the whole point, not sure what the
point is.  Perhaps I jumped the gun by replying :).

I guess I would setup a local procmail rule or posfix rule to not accept
mail with these attachments?  If the mail is not going through the zope
mailservers, I'm not sure how one would logically deal with this
spoofing problem?  One options is enforcing this with SPF records - we
could get Mark to set this up on the zope.org side perhaps?


Well I certainly cannot setup procmail rules on every list members
host ;) I cannot prevent somebody to send to the list faking my
sender. But the idea was to enable the list manager soft to
filter that if the member wants it.

As long as there are large attachments, the bounce happens anyway
but what if the spammers go below 100kb so the attachment rule
isnt triggered anymore?

++Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] five i18n

2006-01-17 Thread Jürgen Herrmann
hi all!

does anybody have a five product that uses i18n that i can have a look at?
i don't seem to get it right...

thanks  regards,
juergen
___

 XLhost.de - eXperts in Linux hosting 

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de

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


Re: [Zope] five i18n

2006-01-17 Thread Lennart Regebro
On 1/17/06, Jürgen Herrmann [EMAIL PROTECTED] wrote:
 hi all!

 does anybody have a five product that uses i18n that i can have a look at?
 i don't seem to get it right...

Yeah, the CalZope trunk does it:
http://svn.nuxeo.org/trac/pub/browser/CalZope/trunk/

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] five i18n

2006-01-17 Thread Martijn Pieters
On 1/17/06, Jürgen Herrmann [EMAIL PROTECTED] wrote:
 does anybody have a five product that uses i18n that i can have a look at?
 i don't seem to get it right...

See Philipps tutorial on the subject:

  http://worldcookery.com/files/fivei18n/

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MySql 5.0, ZMySQLDA and stored procedures

2006-01-17 Thread Greg Fischer
Yeah, I put up a patch on the MySQLDb Sourceforge page a long time ago for that. Doing almost the same thing. Only I made it so you specify the client flag in the Zope connection object. Doesnt do any good for windows though, they still have a problem with the mysql lib. (I think I posted a bug on that too)
GregOn 1/16/06, Cameron Beattie [EMAIL PROTECTED] wrote:
I was getting the following error when attempting to call a stored procedurevia a Z SQL Method:_mysql_exceptions.OperationalError: (1312, etcSo I made the following change to/usr/lib/zope/lib/python/Products/ZMySQLDA/db.py:
def _parse_connection_string(self, connection):kwargs = {'conv': self.conv, 'client_flag': 65536 #inserted by CSB }I then restarted Zope. I can now successfully call stored procedures. There
may be a better way to do it. Feel free to advise if so.Apologies if this information has already been posted.Cameron___Zope maillist-
Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!**(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )-- 
Greg Fischer1st Byte Solutionshttp://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.7 with postgresql 8.1 anyone?

2006-01-17 Thread Dieter Maurer
David wrote at 2006-1-17 09:37 +:
Is anyone using successfully Zope 2.7 with postgresql 8.1?
 ...
What is your database adapter product? We're using Pyscopg (happily  
using 1.1x with Zope 2.7 and pg 7.3/4), but have problems getting it  
to work with either Psycopg 1.2x (protocol missmatch errors)

What protocols?

This sounds more like a mismatch between the Postgres client
and postgres server versions rather than a psycopg problem.


Psycopg 2.x (transactions are getting aborted for no reason).

One of our consultants was using psycopg 2.x with Postgres 8
and did not report problems. However, he did not do heavy work.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MySql 5.0, ZMySQLDA and stored procedures

2006-01-17 Thread Dieter Maurer
Cameron Beattie wrote at 2006-1-17 17:37 +1300:
I was getting the following error when attempting to call a stored procedure 
via a Z SQL Method:
_mysql_exceptions.OperationalError: (1312, etc

You consult your MySQL documentation to find out what the error
code 1312 means...

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-17 Thread Dieter Maurer
Paul Winkler wrote at 2006-1-16 14:32 -0500:
On Mon, Jan 16, 2006 at 07:48:45PM +0100, Dieter Maurer wrote:
 Synchronization modifies bobobase_modification_time on the target.

Yep.
 
 A safe method to check whether you have a current state is to
 register the bobobase_modification_time (on source and target)
 that resulted from the synchronization.
 A resynchronization is necessary when the bobobase_modification_time
 moved away from the registered sync_bobobase_times.

Ahhh, now I see. Thank you, this is probably cheaper than
most of my ideas.
I could store that info in a BTree of some flavor.

An alternative would be a persistent subobject of the synchronized
object (such that its modification does not modify the
bobobase_modification_time of the primary object).


I just notice that synchronization of structured (e.g. ObjectManager)
objects might be a problem. As subobjects might also be synchronizable,
they, too, should get the correct times.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Autoconnect with ZMySQLDA 2.0.9

2006-01-17 Thread Dieter Maurer
Dennis Allison wrote at 2006-1-16 17:37 -0800:
 ...
What's the recommend approach to re-establish the connection?

You reopen the connection (usually the db object has all necessary
information) and then raise an exception derived from
ZODB.POSException.ConflictError (in order to let your request
be repeated).


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ANN: ZSyncer 0.7.1-beta1 released

2006-01-17 Thread Paul Winkler
On Tue, Jan 17, 2006 at 07:13:53PM +0100, Dieter Maurer wrote:
 Paul Winkler wrote at 2006-1-16 14:32 -0500:
 On Mon, Jan 16, 2006 at 07:48:45PM +0100, Dieter Maurer wrote:
  Synchronization modifies bobobase_modification_time on the target.
 
 Yep.
  
  A safe method to check whether you have a current state is to
  register the bobobase_modification_time (on source and target)
  that resulted from the synchronization.
  A resynchronization is necessary when the bobobase_modification_time
  moved away from the registered sync_bobobase_times.
 
 Ahhh, now I see. Thank you, this is probably cheaper than
 most of my ideas.
 I could store that info in a BTree of some flavor.
 
 An alternative would be a persistent subobject of the synchronized
 object (such that its modification does not modify the
 bobobase_modification_time of the primary object).

That's not good: unless i find a suitable core zope class to use,
if the user ever uninstalls ZSyncer, all of his objects are broken!

in general, i don't like to pile more data onto the poor user's
unsuspecting objects. I have done it, i just don't like it :-)
 
 I just notice that synchronization of structured (e.g. ObjectManager)
 objects might be a problem. As subobjects might also be synchronizable,
 they, too, should get the correct times.

Ugh, yes, that's a problem.
 
-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope MailTemplates

2006-01-17 Thread Erik Myllymaki
I haven't delved too deeply here, but I think Zope MailTemplates are wrapping 
any subject longer than 70 characters.


Is there any way to turn this feature off?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope MailTemplates

2006-01-17 Thread Tino Wildenhain
Erik Myllymaki schrieb:
 I haven't delved too deeply here, but I think Zope MailTemplates are
 wrapping any subject longer than 70 characters.
 
 Is there any way to turn this feature off?

No, its just standard. Where is the problem?
rfc822 headers can be wrapped.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope MailTemplates

2006-01-17 Thread Erik Myllymaki

the complaint is not mine but is from the marketing department :)

in Thunderbird (on Windows anyway) it adds a black mark in place of the newline 
:-0

I was just curious. Thanks.

One other thing though, is that when using MailTemplates, i haven't found a way 
to include BCC and CC recipients without altering MailHost.py.




Tino Wildenhain wrote:

Erik Myllymaki schrieb:


I haven't delved too deeply here, but I think Zope MailTemplates are
wrapping any subject longer than 70 characters.

Is there any way to turn this feature off?



No, its just standard. Where is the problem?
rfc822 headers can be wrapped.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Where oh where is Repozo

2006-01-17 Thread Jonathan Cyr




Didn't think of that... and it
wont mess with my config.

Thanks,

-Jon

Hkan Johansson wrote:

On Jan 16, 2006, at 22:52, Jonathan Cyr wrote:
  
  
  Does the Zope Wiki article on Repozo tell you
where to find it, maybe I missed it. I actually looked for quite a
while. Maybe it just needs to be a little clearer... or maybe I need a
smack in the head.


I didn't have much success anyway, I setup my Zope/ZEO setup using
SuSE 9.0's onboard Python and PIL installs, which, at the time, seemed
an easy way to reproduce a ZEO client machine over and over.


Upon running repozo, it can't find the pieces of Zope/ZODB, it needs
to run, and I get an immediate traceback refering to the import of
ZODB. After trying to adjust the pythonpath (wouldn't stick), and
trying to drop repozo in the right directory. I couldn't get it to
work. And, frankly, with everything Zope/Python/PIL working fine, I
didn't mess with it very hard, fearing breaking it.


Using SuSE's YAST installed Python seems to be my mistake... but It
made sense at the time, and the right versions and everything... and
although it works, upgrading Zope and using repozo are major drawbacks.


I'll have to build a new box, correctly, and migrate to it.


In any case, thanks for your time,


-Jon

  
  
I had the same problem with repozo. I "solved" it by modifying the
repozo.py file and adding "sys.path.append( PATH/TO/ZOPE/lib/python )"
right before the "from ZODB.FileStorage ..." line.
  
It's not a beautiful fix, but it works.
  
  
___
  
Zope maillist - Zope@zope.org
  
http://mail.zope.org/mailman/listinfo/zope
  
** No cross posts or HTML encoding! **
  
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
  
http://mail.zope.org/mailman/listinfo/zope-dev )
  
  


-- 
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]


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


Re: [Zope] Autoconnect with ZMySQLDA 2.0.9

2006-01-17 Thread Dennis Allison

After some investigation, this appears to be a mysql bug or brain-dead 
semantics for mysql_ping.

See http://lists.mysql.com/mysql/190441 and 
http://bugs.mysql.com/bug.php?id=14057
http://bugs.mysql.com/bug.php?id=2845

Dieter Mauer suggests the right thing is to catch the exception and then 

   reopen the connection (usually the db object has all necessary
   information) and then raise an exception derived from
   ZODB.POSException.ConflictError (in order to let your request
   be repeated).
 
The problem appear to be present in 4.0.XX and 4.1.XX.  Is it still there 
in MySQL 5.0.  And does MySQL-Python and ZMYSQLDA grock MySQL-5.0?

-d


On Mon, 16 Jan 2006, Dennis Allison wrote:

 I have been seeing occasional release unlocked lock errors from a 
 storage error in a two-phase commit which really comes from a Lost 
 connection to MySQL server during query.  Apparently this arises from 
 a failure of self.db.ping() to find a connected database as the 
 transaction is opened.
 
 It is possible that the connection has really timed out.
 
 Looking at the code it appears that ZMySQLDA does not attempt to 
 recreate the connection.  Is that correct? 
 
 What's the recommend approach to re-establish the connection?
 
 -d
 
 

-- 


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


Re: [Zope] Zope 2.7 with postgresql 8.1 anyone?

2006-01-17 Thread Infor Gates
I am used Zope 2.7.x and 2.8.x with Postgresql 8.0.x. They do not have any problems. I am using psycopg 1.1.21 and Windowz XP. Iave not tried psycopg 1.2.xDavid [EMAIL PROTECTED] wrote: Is anyone using successfully Zope 2.7 with postgresql 8.1?Or any other version of Zope?What is your database adapter product? We're using Pyscopg (happily  using 1.1x with Zope 2.7 and pg 7.3/4), but have problems getting it  to work with either Psycopg 1.2x (protocol missmatch errors) or  Psycopg 2.x (transactions are getting aborted for no reason).
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Products have incorrect home attribute

2006-01-17 Thread George Lee
After migrating to a new server, several of my Zope products have an
incorrect home attribute that specifies where they live on the
filesystem. However, when I try to change these attributes using an
external method, the attributes do not change. Any help?

Peace,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Products have incorrect home attribute

2006-01-17 Thread Andreas Jung



--On 18. Januar 2006 01:24:34 -0500 George Lee [EMAIL PROTECTED] 
wrote:



After migrating to a new server, several of my Zope products have an
incorrect home attribute that specifies where they live on the
filesystem.


What and where is the 'home' attribute?

-aj

pgpnG4zLUkZ1u.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Products have incorrect home attribute

2006-01-17 Thread Dario Lopez-Kästen

George Lee wrote:

After migrating to a new server, several of my Zope products have an
incorrect home attribute that specifies where they live on the
filesystem. However, when I try to change these attributes using an
external method, the attributes do not change. Any help?

Peace,
George


I dunno if this relates to your specific case (and apologies for perhaps 
stating the obvious). Did you delete the *.pyc files after moving the 
products?


pyc files contain information about their paths, and they do not get 
recompiled if their source file is unchanged.


hth,
/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Products have incorrect home attribute

2006-01-17 Thread Andreas Jung



--On 18. Januar 2006 08:19:25 +0100 Martijn Pieters [EMAIL PROTECTED] 
wrote:



On 1/18/06, Andreas Jung [EMAIL PROTECTED] wrote:

What and where is the 'home' attribute?


In lib/python/App/Product.py line 549:

  product.home=home

'home' is the product path as determined by
OFS.Application.install_product; it looks, from a cursory glance, that
this should be reset every time Zope is restart.



huuh...never seen that...looks like a culprit...who actually uses that 
information? Isn't package_home() doing the same?


-aj

pgpVTphkZTSjm.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope-DB] I need urgent help !!!

2006-01-17 Thread Charlie Clark

On 2006-01-16 at 13:59:49 [+0100], [EMAIL PROTECTED] wrote:
 HEllo my name is Gustavo I am from chile(southamerica), my english is not
 so good, sorry for that, well my cuestion is the next, i need do a web
 single sign-on whit my plone (ZOPE) web sites, i have a apache2.0 server
 too, i need help whit these item because my job depend of taht, any answer
 send me to my mail adress [EMAIL PROTECTED], thank you very much, and i
 hope for your help, bye bye...

Gustavo,

whether your English is good or not, your question is too vague. It is 
possible to integrate Zope's authentication system with others for a single 
sign-on but you need to provide more information about the system you wish 
to integrate with. If you search zope.org for UserFolder then you will see 
some of the solutions available.

Charlie
-- 
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
  Python/Zope Consulting and Support ...http://www.egenix.com/
  mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
  mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2005-10-17: Released mxODBC.Zope.DA 1.0.9http://zope.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope-DB] dealing with dropped database connections

2006-01-17 Thread martin f krafft
Hi,

a client of mine complains about dropped database connections
(SybaseDA), which wreak havoc. For instance, if the network goes
down for a while, the DA is left in an irrecoverable state.

Short of a regular wget to the manage interface to restart the DA,
what can be done? Is this something about SybaseDA (which is no
longer maintained), or a common problem?

What would you advise, short of hunting down the problem and fixing
it?

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED]
 
invalid/expired pgp (sub)keys? use subkeys.pgp.net as keyserver!
spamtraps: [EMAIL PROTECTED]
 
the surest way to corrupt a youth is to instruct him to hold in
 higher esteem those who think alike than those who think
 differently.
  -- friedrich nietzsche


signature.asc
Description: Digital signature (GPG/PGP)
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db