Re: [Mailman-Developers] PHP Wrappers?

2005-11-23 Thread Ian Eiloart

On 22 Nov 2005, at 17:33, Stephen J. Turnbull wrote:

 Ian == Ian Eiloart [EMAIL PROTECTED] writes:

 Ian Now, sender ACL's already are *just* lists of regular
 Ian expressions. So, what's so hard?

 You're aware that regular expression is not exactly well-defined,
 and that python REs are a unique dialect among regular expression
 languages?

Yes, I'm aware of that. It is an issue that users will have to be  
aware of. However, I don't think it's a killer. I think Python  
regular expressions have enough in common with the PCRE (perl  
compatible regular expressions) library to be useful. For example, I  
think [EMAIL PROTECTED]@(.*\.)?sus(se)?\.ac\.uk$ has the same meaning in both  
dialects.

If I'm wrong, then I can make do with .*sussex\.ac\.uk$ and .*susx\.ac 
\.uk$



-- 
Ian Eiloart
Postmaster,
IT Services
University of Sussex



___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Developers] MysqlMemberships.py

2005-11-23 Thread Fil
 Unfortunately this still doesn't succeed reconnecting to the server: I get
 this traceback:
 
   File /var/local/mailman/Mailman/MysqlMemberships.py, line 141, in 
 _prodServerConnection
 if self.connection.ping() == 0: OperationalError: (2006, 'MySQL server 
 has gone away')

A little bit of hacking makes this problem less painful, but I'm sure I got
it wrong, or it is that my MySQL server goes away quite a lot. I don't
know for sure, anyway, but if you're currently trying my version of
MysqlMemberships.py you might want to update

the patch is @ http://trac.rezo.net/trac/rezo/changeset/59

-- Fil
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Developers] A better way of doing templates?

2005-11-23 Thread Barry Warsaw
Jordi Mallach brings up a good point on the rosetta-users mailing list,
in response to my queries there.

Rosetta doesn't really work with non-po files, so the fact that we have
templates that need translating will cause us some grief.  Well, even
more grief than it has over the years. ;)

Does anybody have any good ideas for handling this in the Mailman 2
tree?  For MM3, it's a top priority that any templating system we use
must support po-ification for i18n.  For Mailman 2.2 it's more difficult
because I don't think we should adopt an entirely new template system.
It's even worse for 2.1 because we're not accepting new features,
although if we came up with something simple and minimally disruptive,
I'd consider it for the benefit of improving the translation process.

Ideas are welcome!
-Barry



signature.asc
Description: This is a digitally signed message part
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp

Re: [Mailman-Developers] MysqlMemberships.py

2005-11-23 Thread John W. Baxter
On 11/23/05 3:38 AM, Fil [EMAIL PROTECTED] wrote:

 Unfortunately this still doesn't succeed reconnecting to the server: I get
 this traceback:
 
   File /var/local/mailman/Mailman/MysqlMemberships.py, line 141, in
 _prodServerConnection
 if self.connection.ping() == 0: OperationalError: (2006, 'MySQL server
 has gone away')
 
 A little bit of hacking makes this problem less painful, but I'm sure I got
 it wrong, or it is that my MySQL server goes away quite a lot. I don't
 know for sure, anyway, but if you're currently trying my version of
 MysqlMemberships.py you might want to update
 
 the patch is @ http://trac.rezo.net/trac/rezo/changeset/59
 
 -- Fil


What sort of setting does the MySQL server you are running have for timing
out idle connections?  Could it be that you aren't hitting it often
enough?  In which case, going away a lot is normal.

(I have that problem regularly with a desktop query client (CocoaMySQL for
Mac OS X).  It responds to a vanished connection by hanging unresponsively
until killed...your code is clearly better than that.  ;-))

  --John


___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Developers] A better way of doing templates?

2005-11-23 Thread Tokio Kikuchi
Hi,

Barry Warsaw wrote:
 Jordi Mallach brings up a good point on the rosetta-users mailing list,
 in response to my queries there.
 
 Rosetta doesn't really work with non-po files, so the fact that we have
 templates that need translating will cause us some grief.  Well, even
 more grief than it has over the years. ;)
 
 Does anybody have any good ideas for handling this in the Mailman 2
 tree?

How about adding current templates into pot/po and pickup and generate
language templates during make install.  I don't know if it could be
done at all but I will look at it this weekend.

As regards the whole translation process, I've already submitted a patch
 to select languages when configuring.  This should help separating the
translations from the main developement code base.
http://sourceforge.net/tracker/index.php?func=detailaid=1298355group_id=103atid=300103

-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Developers] PHP Wrappers?

2005-11-23 Thread Stephen J. Turnbull
 Ian == Ian Eiloart [EMAIL PROTECTED] writes:

Ian I think Python regular expressions have enough in common with
Ian the PCRE (perl compatible regular expressions) library to be
Ian useful. For example, I think [EMAIL PROTECTED]@(.*\.)?sus(se)?\.ac\.uk$
Ian has the same meaning in both dialects.

Ian If I'm wrong, then I can make do with .*sussex\.ac\.uk$ and
Ian .*susx\.ac \.uk$

The semantics of what you just posted are I would like Mailman to
impose and maintain a hack appropriate to my site on all users of this
facility.  I see the attraction of this proposal for a fair number of
users like you, and it's precisely what open source is for: you can
maintain your own variant, in cooperation with those other users.

But when I suggested a 50% solution would be good enough, the 50% I
meant was precisely what you're leaving out: a specification of the
syntax (you deliberately leave the syntax vague!) and semantics of the
data that Mailman passes to the MTA.

-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of TsukubaTennodai 1-1-1 Tsukuba 305-8573 JAPAN
   Ask not how you can do free software business;
  ask what your business can do for free software.
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp