Re: [Zope-DB] Multiple databases connection

2006-06-08 Thread Federico Di Gregorio
On mer, 2006-06-07 at 18:49 -0700, Infor Gates wrote:
 Is there anyway where we can have a dynamically database connection to
 each branch database with only one zope application (instead of
 multiples of the same application).
 
 We are using Zope 2.8.6, Postgresql 8.0.4 with Psycopg-1.1.21
 connector.

I don't understand what you mean by dynamically database connection,
but Zope supports connections to multiple databases by simply creating
muiltiple connections objects (Z Psycopg Connection objects in your
case).

federico

-- 
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer[EMAIL PROTECTED]
INIT.D Developer   [EMAIL PROTECTED]
  L'unica cosa che riesco a produrre con una certa precisione nella mia
   vita sono i dubbi.  -- Natale Titotto


signature.asc
Description: This is a digitally signed message part
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] psycopg insert into unicode problem

2005-11-02 Thread Federico Di Gregorio
Il giorno mer, 02/11/2005 alle 12.07 +0100, [EMAIL PROTECTED]
ha scritto:
[snip]
 (azon=id, nev=name)
 The postgres database is unicode encoded. What shall I do in order to
 insert these texts into database via zope? (with psql I can insert it
 smoothly.)

Pass a utf-8 encoded string or use a version of psycopg that supports
unicode strings and pass a unicode object.
 
-- 
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer[EMAIL PROTECTED]
INIT.D Developer   [EMAIL PROTECTED]
  Spesso crescere ed andare a vivere da soli è l'unico modo di restare
   bambini. -- Alice Fontana


signature.asc
Description: This is a digitally signed message part
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-dev] help

2004-03-11 Thread Federico Di Gregorio
Il gio, 2004-03-11 alle 11:30, Vandana Bajaj ha scritto:
 /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so:
 undefined symbol: PyType_IsSubtype

you probably built psycopg using python 2.2/2.3 and your zope still uses
python 2.1. see psycopg's FAQ about building with the python packaged
with zope (http://wiki.initd.org/Projects/PsycopgFaq).

-- 
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer[EMAIL PROTECTED]
INIT.D Developer   [EMAIL PROTECTED]
   Don't dream it. Be it. -- Dr. Frank'n'further


signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata
___
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] Using psycopg cursor in a product

2002-02-08 Thread Federico Di Gregorio

Il ven, 2002-02-08 alle 12:47, de ZORZI Frederic ha scritto:
  Hi all,
  Is it possible to use cursors and their functions (dictfetchall, 
  fetchone...)  with zpsycopg connection ?
  
 
 Easy stupid :) :
 
 conn = getattr(self, self.connection_id)
 db = conn().db
   
 curs = db.cursor()
 curs.execute(select * from support limit 2)
 return %s % curs.dictfetchall()
 
 
 Now, how about managing transactions ?

zope manages them for you. you get a commit() at the end of the page and
a rollback() in case of an uncatched exception. if you want to do
transaction management yourself, create your own connection/cursor in an
external method.

ciao,
federico

-- 
Federico Di Gregorio
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
INIT.D Developer   [EMAIL PROTECTED]
 One key. One input. One enter. All right. -- An american consultant
   (then the system crashed and took down the *entire* network)



msg09360/pgp0.pgp
Description: PGP signature


RE: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Federico Di Gregorio

On 12 Jul 2001 15:20:16 +0200, Paul Zwarts wrote:
 I've had this problem as well, although I changed from ZPopPy to
 psycopg0.99.4 which solved the problem. What I found in REdhat Linux 7.1,
 where the ps -ef command now queries more info from its children, I finally
 saw the status of my dbms threads. The Zope hanging maybe wasnt zope
 directly. It still translated requests BUT I saw in ps -ef:
 
 postgresql db01 UPDATE waiting.
 
 This is where the hang is. Several emails from Dieter just confused me more.
 Something about Zope not having imlicit commits on transactions, so you had
 to make sure a dtml-call transaction().commit() was placed somehwere. This
 seemed to solve some problems at the time for me although I got alot of :
 
 Warning: COMMIT, No transacion in progress

never, never, never do that with psycopg. psycopg cooperates with zope
(that *does* commit on transactions) and has real transaction control.
with zope+psycopg you'll get a commit (or abort) just at the end of the
requested page.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  All'inizio ho scritto un programma proprietario, in esclusiva per il
   cliente; e mi ha succhiato un pezzo di
   anima.   -- Alessandro Rubini


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



Re: [Zope-dev] ZPL and GPL

2001-06-27 Thread Federico Di Gregorio

hi,

i wanted to draw myself from this thread before annoying the whole list,
so i'll take paul mail as an excuse to write some final comments.

On 27 Jun 2001 09:06:16 -0400, Paul Everitt wrote:
 1) I wanted to specifically address something in Michael's post here. 
 We fully expect people to profit from Zope, even if that means for-fee, 
 intact redistributions.  They simply have to provide credit.  Others may 
 have a different philosophy, but that's ours.  This is similar in some 
 regards to Perl's and Apache, I believe.

i think that nobody (ever gpl-oriented people like me) have anything
against making profit from free software. profit means more time and
resources to write even better software, profit is *good*. 

 2) We specifically expect to produce a packaged version of Zope.  It's 
 clear that it's the only way to appeal to the mainstream market.  We 
 hope others do the same.

that's a business strategy. good or bad has nothing to do with
licensing. i wish you all possible luck with a packaged version of zope.
i'll even buy one if includes a well-written well-printed manual about
zope internals... ;-)

 3) Regarding other posts, our license is nearly identical to Apache's 
 license, close enough legally to say it is the same.  Therefore, to say 
 Zope isn't free enough is to say Apache isn't free enough.  Anybody that 
 says that loses a fair amount of credibility, at least with me.  Apache 
 is an example of a crossover success (open and commercial) that I think 
 provides a fantastic role model.

again, i agree. apache. *is* free. zope *is* free. end of the argument.

 4) Any changes in the license are likely to be more in the direction of 
 an Apache-style license.

let me try to explain why this is bad and a gpl-compatible license will
be better. a lot of people, like me, wants other use their work, even
for making money. but we want something back. this is why the gpl is
good. if you use my work you can:

1/ release your sources under a gpl compatible license; or

2/ give me some money for an alternate license: this is good because
i'll use the money to write even more software (see it as an exchange,
you can keep your sources propietary but you finance someone for writing
free code that will be made available to the community.)

the main problem with licenses like tha apache one is that they allow
people to use public, free code without giving *anything* back.

with its current license dc is forcing *me* to release under a license
that i don't like (ZPL) because if i release my software unsed the gpl
nobody will be able to redistribute it. this will make more and more
people like me abandon zope first or later (i hope later). the current
license surely does not push away companies that don't want to open
their sources but what good come from that? nothing. no software for us
and no money for dc.

what if the zpl would be gpl-compatible? the situation will be reversed.
a lot of people will continue to write and distribute zope products and
the occasional company not wanting to release will pay dc and other
developers for an alternate license. this will make *everybody* happy.

as i said before the *worst* case for zope going gpl-compatible is the
no-harm situation, while going apache-like is a little harm to some
entusiast developers and surely no good.

i finished. no more mail on this argument, and sorry for my bad english,
i wrote this one in an hurry...

federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Don't dream it. Be it. -- Dr. Frank'n'further


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



Re: [Zope-dev] PostgreSQL Zope 2.4.0b1

2001-06-23 Thread Federico Di Gregorio

On 23 Jun 2001 22:59:02 +0200, Andreas Heckel wrote:
 Hi,
 is somebody out there who got ZPyGreSQLDA or any other DA for Postgres
 working with Zope2.4.01b ?

psycopg works with 2.4.0b1 with a little modification to db.py. the
modification is documented in the mailing list archives:

http://lists.initd.org/pipermail/psycopg/2001-June/000185.html

somebody said such a modification is not needed with cvs zope, so we are
holding it back until the final 2.4.0 is out.

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Don't dream it. Be it. -- Dr. Frank'n'further


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



Re: [Zope-dev] Re: ZPL and GPL licensing issues

2001-06-22 Thread Federico Di Gregorio

On 22 Jun 2001 09:33:22 -0700, Simon Michael wrote:
 Thanks for a most illuminating thread. Slight clarification to a
 comment of yours Shane -
 
 Shane Hathaway [EMAIL PROTECTED] writes:
  GPL code together.  ZWiki is just in a strange position because the
  GPL is not actually in effect.
 
 I'm not sure I'd use those words - the license is certainly fully in
 effect, I'd say, if not exactly enforced by a battalion of lawyers.
 
 One of the consequences being that someone re-distributing zope 
 zwiki together, under their default licenses, is technically in
 violation right now, I think we are all agreeing.

right.

 I'm not aware of anyone doing this right now, though there was a zwiki
 package for Debian GNU/linux at one point. Would Debian be in
 violation shipping both zope  zwiki packages on a cd ? If they
 thought so, sooner or later one or the other would get dropped from
 the distribution. Unfortunate and detrimental to both zwiki and zope.
 In principle this would apply to all linux distributions.

not only. i can assure you that somebody in debian find even a single
line of gpl code in the zope main packge zope will be removed from the
distribution until license compatibility is (re)estabilished. same story
for zope products currently available in debian. i don't have all that
time, so i wont be the guy doing that, but, first or later, someone will
surely try to track down all the licens incompatibilities in zope debian
packages. just look at the kde/qt problem (now fortunately resolved...)

 Does this serve as an example of a problem with the current situation
 for DC management ?
 
 Another would be the fact that DC's own options are limited if it (DC)
 ever had the desire to distribute or sell something leveraging
 zwiki. Sure, it could convince me that LGPL makes better sense, or
 offer me a large sum of money to draw up a special alternate license
 (hey, on the double :-). But this would have to be repeated with each
 developer where the situation arose.

right. maybe dc has some to gain froma gpl-compatible zope and not only
the no-harm i detailed before.

 Probably better to update the ZPL to solve this problem in one sweep,
 ensure that zope is participating fully within the preeminent sphere
 of software creativity, and earn a whole bunch of new support from the
 world developer community.
 
 And python did it.
 
 And there's no downside to making yourself GPL-compatible that I can
 think of.

absolutely. ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  99.% still isn't 100% but sometimes suffice. -- Me


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



Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Federico Di Gregorio

i'll try to answer as clearly as possible but remeber that what follows
are *my* oppinions, not mixad live's nor debian's.

On 21 Jun 2001 10:52:28 +0200, Erik Enge wrote:
 On Wed, 20 Jun 2001, Gregor Hoffleit wrote:
[snip]
 If I have the proprietory program P (that is the clients business-process
 workflow application *phew*) as a Zope Python Product and then we have
 Morten's GUM under the GPL, which also is a Zope Python Product, can P
 application utilise GUM without having to be relicensed as GPL?  (And I
 realise that the word utilise is ambigous, that was intentional.)

if your product derives from GUM or uses internal interfaces, no, you
can't. if your product uses only well the defined external api or access
gum through zope, then, imho, yes.

 Another question which I feel is very related, and to which I cannot get
 any real clarification:  Can Zope run GPL Zope Python Products without
 being relicensed as GPL?

good question. imho, licensing a zope product under gpl is a non-sense
because you won't be able to use it (usually products inherit on zope
classes) and respect the gpl at the same time. that's why i always
release under a double license. i really hope dc will release zope under
a gpl compatible license soon or later.

 use [...] in your work, what does that mean?  Subclassing?  Interaction
 between the products in a management-interface?

i personally consider subclassing as linking.

 Hm.  What about a ZPL Zope Python Product and a GPL Zope Python
 Product?  Isn't the problem exactly the same?

yes. terrible, terrible problem. but, please don't see that as a
license war. different people like different licenses for different
reasons and that's Right (TM). this war is just all of us trying to
cooperate to put free software to a better use.

federico 

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  The number of the beast: vi vi vi. -- Delexa Jones


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



Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Federico Di Gregorio

On 21 Jun 2001 11:08:30 -0400, Jim Penny wrote:
[snip]
 OK, consider this from another point of view.  If I have an operating
 system may I install a piece of GPL software on the operating system?
 May I redistribute the operating system?  With the GPL software?
 May I invoke/run the GPL software?
 
 My understanding is that the answer to every one of these is yes.

yes. only if it is free. only if it is free. yes, but only because gpl
allows for gpl code linking with the major components of the os even if
they are proprietary.

 May I modify the GPL software and distribute it without giving
 downstream the same opportunity.  Clearly no.
 
 Now, s/operating system/zope/g
 
 Do the answers to the questions change?  And, if so, why?
 
 From my perspective, and I think from fog's the answer is that
 it should not change the answers.

err, no. if you write an external module using only python code, as long
as you use a gpl-compatible python to run zope, you can call your
external code from zope. if you write a product suclassing dc code,
you're effectively 'linking' and gpl limitations apply. 

 Maybe the easy way out of this is to simply declare zope an
 operating system rather than an application.  Snippy
 thoughts cut here.

eheh. nice try... :)

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Don't dream it. Be it. -- Dr. Frank'n'further


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



Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Federico Di Gregorio

On 21 Jun 2001 11:39:37 -0400, Jim Penny wrote:
 On Thu, Jun 21, 2001 at 05:18:40PM +0200, Federico Di Gregorio wrote:
  On 21 Jun 2001 11:08:30 -0400, Jim Penny wrote:
  [snip]
   OK, consider this from another point of view.  If I have an operating
   system may I install a piece of GPL software on the operating system?
   May I redistribute the operating system?  With the GPL software?
   May I invoke/run the GPL software?
   
   My understanding is that the answer to every one of these is yes.
  
  yes. only if it is free. only if it is free. yes, but only because gpl
  allows for gpl code linking with the major components of the os even if
  they are proprietary.
 
 Uh, you might want to reconsider the only if it is free parts.  After
 all Interix had a business of selling GPL software for a non-free
 OS.  Now Microsoft has that business (NT Services for Unix Pack).
 IBM distributes gcc and perl.  Cygwin sells GPL software for non-free
 OS's.

ops. ok, poorly worded. third parties can distribute only if the os is
free, vendor can do as he please, obviously...

[snip]
  err, no. if you write an external module using only python code, as long
  as you use a gpl-compatible python to run zope, you can call your
  external code from zope. if you write a product suclassing dc code,
  you're effectively 'linking' and gpl limitations apply. 
 
 GPL limitations apply to whom:  To you, the developer?  To a
 downstream user invoking the product via dtml-call or dtml-var or their
 pythonish equivalents?  To a downstream developer who modifies your
 product and redistibutes the modified product?  To a downstream
 developer who writes a component that invokes the GPL component?
 
 In my mind the only sensible answers are developer - no,
 user - no (but see Jerome Alet's codacil), downstream modifier - yes,
 downstream developer who uses - no.
 
 The only other sensible option is that, indeed, no one may distribute
 GPL components for Zope, including the original developer.

as i said before, writing gpl code subclassing zope is a non-sense. even
the author cannot, imho, redistribute its work with a plain gpl attached
to it. the gpl says that if you link with gpl code *all* the code should
be gpl or gpl-compatible (major os components like clibs, compilers, etc
are an exception). so even the author cannot do that without licensing
under gpl plus some exception (as a special exception you're allowed to
link this code with zope or any other zope product distributed under the
zpl.) see the (in)famous gpl vs. qt thread in the debian mailing lists
for an in-depth analisys of this problem.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  The number of the beast: vi vi vi. -- Delexa Jones


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



Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-21 Thread Federico Di Gregorio

On 21 Jun 2001 12:07:36 -0600, Bill Anderson wrote:
[snip]
  err, no. if you write an external module using only python code, as long
  as you use a gpl-compatible python to run zope, you can call your
 
 No, No, no, NO!
 
 The License of PYTHON only applies to modifications, derivations, etc.
 of _PYTHON_, NOT anything _written_ in it.


you stand right here. i was thinking about psycopg that actually is C
code that gets linked to python. but the border is not that clear. the
question, as always, is: what if i subclass python core classes
(released under the python license)? but that's a purely academical
question, i think...

federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  All programmers are optimists. -- Frederick P. Brooks, Jr.


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



RE: [Zope-dev] ZPL and GPL licensing issues

2001-06-20 Thread Federico Di Gregorio

On 20 Jun 2001 10:38:03 -0500, Steve Drees wrote:
 Here comes the liscence wars again.
 
 Still haven't figured out how GPL became the holy grail.

the terms on the gpl are (by choice) the strictiest (does that word even
exists?) ever seen in a free software license. but a lot of people
'believe' in free software and have elected the gpl as their license of
choice. because of their true faith :) they are also pickier at license
compatibility. i am sure that the QPL and the ZPL are completely
incompatible but nobody cares because nobody really thinks that one is
better than the other... 

anyway, don't see it as a war. it is more like natural selection... 

federico (a real believer :) )

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de liberté si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra


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



RE: [Zope-dev] ZPL and GPL licensing issues

2001-06-20 Thread Federico Di Gregorio

On 20 Jun 2001 18:27:08 +0200, Erik Enge wrote:
 On 20 Jun 2001, Federico Di Gregorio wrote:
 
  i am sure that the QPL and the ZPL are completely incompatible but
  nobody cares because nobody really thinks that one is better than the
  other...
 
 I might be misunderstanding here, if that's the case I appologies.

no, you're quite right. but we have two different problems here:

1/ your problem
2/ wheter a gpl zope product can exists

first some notes on 2. i don't know if python code loading other python
code counts as linking but if that is the case, no gpl zope product
can exists (same problem with python, but there is at least one
gpl-compatible release of python around.) 

for example, that's why psycopg, for example, is released under a double
license. you can use the gpl if your product is gpl'ed or the zpl when
using zpsycopgda in zope (and only then: you can include psycopg in your
code without respecting the gpl *only* when using zope and zpsycopgda.)

to your problem now... 

 Just to clarify, for us at Thingamy (and I'm quite sure this is the real
 case behind the license issues) it comes down to business-issues.  I do
 very much care whether or not I can use a GPL Zope Python Product with my
 ZPL/TPL Zope Python Product.  If I can't, and someone tells me I need to
 relicense my product as GPL it would be very bad.

 An example could be if I had application G, Z, P.  G is a GPL'ed Zope
 Python Product, Z is a ZPL/TPL Zope Python Product and P is some
 proprietory stuff I developed for my client.  Now, if the proprietory
 application P interacts with my Z application and Z needs to become GPL,
 then that would/could require the proprietary stuff I did for the client
 to become GPL as well.

you are quite right. but here, again, we have a lexical problem. are
zope products really linked? gpl forbids liking but there is no problem,
for example, in piping the data froma gpl'ed program to a proprietary
one. i can only say that **if** zope products count as linked, you can't
in any way use gpl code without releasing *all* the code under a gpl
compatible license (P included.)

anyway, is much better for you to ask the author of the gpl'ed program
for an alternate license. a lot of people will be happy to allow you to
use the program in a proprietary software for a little (or not so
little) fee... and if you have those problems is because you think
you'll make some money out of it, right?

other people won't and your only option is to rewrite the product or
(much better!) ask the customer to release under the gpl.

 Then, I get hell.  If the client has to disclose their business
 trade-secrets, the stuff that really makes them them, I'd be sued so hard
 I'd see stars for another three decades :)

i'll finish with some bad words, sorry: if the client is so worried
about intellectual property and secrets why is he even thinking about
free software? free software is good in a lot (in a different context i
would say 'all') of cases but imposes some constraints ont your work and
(unfortunately) *even* on your clients.

ciao,

federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de liberté si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra


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



Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-20 Thread Federico Di Gregorio

On 20 Jun 2001 13:12:20 -0400, Jim Penny wrote:

 Also, as an aside, if this really concerns you, you might wish to
 consider contacting the author of the GPL product.  There is nothing
 to prevent him from giving you different licensing terms.  For
 most GPL authors, this comes down to a simple question:  Are
 you trying to be excellent unto them, or are you trying to
 use slash and burn agriculture.  If you are using, improving,
 giving feedback, writing documentation, helping publicise, or
 otherwise aiding them, they are likely to cut you a bit of slack.
 If you see the author as someone you can simply take advantage of,
 he is not so likely to cooperate with you.

i think this express extremely what i (we?) feel. as long as you give
back *something* you're wellcome.

ciao,
federico

-- 

Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  The reverse side also has a reverse side.  -- Japanese proverb


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



Re: [Zope-dev] Threads Optimizing Linux.

2001-04-16 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Aitor Grajal Crespo's letter:
 Hello , my question is a bit complex ( for me ). I have :
 
 - Linux RH 6.1
 - python 1.5.2 --with-thread (source compiled)
 - zope 2.2.x or zope 2.3.x (source compiled)
 
 In any program in python with Linux (inclusive Zope), the threads are processes,i.e, 
they consume memory and dont share it.

this is completely wrong. threads under linux have a different pid
but are created setting the CLONE flag so they share almost anything
(address space, shared objects, etc.)

 In Linux, I have Zope running with 4 Threads. I have five processes and everyone 
consuming about 12 MB = 12 * 5 MB = 60 MB

this is what top tell you, but try using memstat to show the real
memory consumed by each process...

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  All programmers are optimists. -- Frederick P. Brooks, Jr.

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



[Zope-dev] Re: zope nautilus cabal

2001-04-13 Thread Federico Di Gregorio

this is true. i tried to acces zope on my local machine at the address

http://localhost:9673/

(note: *without* the manage!) and nautilus showed me everything. both
mozilla and netscape show the welcome page. if i add manage nautilus
simply refuse to authenticate. my impression is that even if http:
is specified, nautilus uses some other kind of protocol (webdav?)
to read the contents of the url.

the bad thing is that you can read (not modify) every single document
in the zope db. 

ciao,
federico
 
Scavenging the mail folder uncovered [EMAIL PROTECTED]'s letter:
 Hi, here in mixad have found a "mysterious" bug with zope and
 nautilus.  We are investigating if is a bug or a feature. 
 
 The problem is that nautilus can browse the internals of zope directory 
 without authentication. 
 
 The method is pointing nautilus to http://www.foo.bar:9673 simply. 
 
 Please can someone try to reproduce the bug ? The version of the 
 sw is:
 
 
 ii  libnautilus0   1.0-3  Shared libraries that part of Nautilus
 ii  libncurses55.2.20010318-1 Shared libraries for terminal handling
 
 ii  nautilus   1.0-3  file manager and graphical shell
 rc  nautilus-trilo 1.0-2  Nautilus component framework for services
 
 ii  zope   2.3.1-1The Z Object Publishing Environment 
 
 
 
 Regards 
 
 Andrea Fanfani
 -- 
 Andrea Fanfani 
 Era  talmente intelligente  che, datogli  in  mano un  cubo di  Rubik,
 riusciva a mangiarlo in 15 secondi netti. (Anonimo)
 



-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Abandon the search for Truth; settle for a good fantasy. -- Anonymous

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



Re: [Zope-dev] RE: your mail

2001-04-10 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Randall F. Kern's letter:
 Read committed is faster, but I have not done any tests to know how much
 faster.  Read committed mode doesn't support concurrent updates either,
 but fails silently.  In other words, given to concurrent queries:
 
 update foo set a = a + 1
 update foo set a = a + 2
 
 Assuming these overlap, and a starting value of 0 for "a", read
 committed mode would result in "a" either being 1 or 2; serializable
 mode (with my patch) would result in "a" getting set to 3.

this is, imho, the Right Thing (TM), so psycopg will stay serializable.
thank you again for the patch.

federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   God is real. Unless declared integer. -- Anonymous FORTRAN programmer

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



[Zope-dev] Re: your mail

2001-04-09 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Randall F. Kern's letter:

[snip]
 Concurrent updates are not supported in the serializable transaction
 mode; if one transaction tries to update (or delete) a row that has
 already been updated by a concurrent uncommitted transaction, the second
 transaction will fail with a "concurrent update" error.

mmm... are they supported in the read commited mode? if yes it will be
easy to add this mode as on option to psycopg cursors and use it in zope.
do you know how much faster would it be compared to the serialized mode?

 Given that the default transaction mode for these DAs is Serializable,
 and Zope has this nifty support for ConflictErrors and retrying
 transactions already, I propose Postgres DAs should convert the
 concurrent update serialization errors into ConflictErrors
 automatically.
 
 I've been running this way for a few days, and everything seems great.
 Any reasons why this might be good/bad/ugly very welcome.  (Like: is it
 safe to throw a ConflictError at any random time during processing?
 From a quick glance at ZODB it seems they are only thrown at commit time
 now)
 
 Here is a small patch to ZPsyccopgDA 0.5.1 that implements this change:

thank you very much for the patch. i am waiting to know what others think
about it (i am not a ZODB expert) before we incorporate it.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Don't dream it. Be it. -- Dr. Frank'n'further

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



[Zope-dev] New PostgreSQL Database Adapters: psycopg and ZpsycopgDA

2001-02-28 Thread Federico Di Gregorio

Hi *,

the guys here at initd (http://initd.org/) arre happy to announce
the release of psycopg, a Python/PostgreSQL driver module and ZPsycopgDA, 
a Zope Database Adapter based on the psycopg driver. 

Now, I'll answer the questions you asked... (_what_ questions? well... 
follow me...)

Q. Why another postgresql dba? we already have pygres and popy!

A. That's true. We had some ideas about a performant, thread-safe
   driver and we wanted to hack a little bit. the resulting driver is
   slim, fast, with clean code and some nice features (see below.)
   Writing a Zope DBA was a logical consequence only because we use it.

Q. Should I switch to psycopg and zpsycopgda?

A. Not if you are happy with your current driver [and i hope it is popy ;-)]
   The only real reason is if you want the advanced features you can find
   only in psycopg:

   1/ level-2 thread safety
   2/ advanced type-casting system
   3/ automatic management of multiple phisical connections to the DB
  (one per thread) to speed up queries
   4/ extremely clean and maintainable code
   
   also, in a future release (0.5) zpsycopgda will support db and table 
   management from zope management screens.

Q. Hey! you're from MIXAD LIVE, is psycopg a popy fork?

A. No, psycopg is 100% clean code. we had some ideas on how a db driver
   should workin a heavily multithreaded environment and we wanted to
   test them. that's all.

Q. Where can I download it?
A. http://initd.org/Software/psycopg (tarball and precompiled debian packages)


ciao and good hacking,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de libert si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra

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



[Zope] Re: [Fwd: [Zope] PoPy Installation. Where's the BEEF?]

2001-01-12 Thread Federico Di Gregorio

 The PoPy module is not installed
 
 So, it looks like I need to install PoPy.  I went to www.mixadlive.com (PoPy
 PeOpLe :) and couldn't find
 it there (I don't speak Italian, so it may be right under my nose).  I've
 searched the
 Zope archives and didn't see any leads there.
 
 Can anyone give me a pointer?

popy and zpopyda moved to sourceforge some weeks ago, try 
http://popy.sourceforge.net

hope this helps,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Put a GNOME on your desktop! [http://www.gnome.org]
  -- brought to you by One Line Spam

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




Re: [Zope-dev] Internationalization

2001-01-05 Thread Federico Di Gregorio

On Thu, Jan 04, 2001 at 12:02:17PM -0700, [EMAIL PROTECTED] wrote:
 Hello,
 
 
 Has anyone translated a site within Zope ? I have tried the ZBabel
 Translation System (http://www.zope.org/Members/TheJester/ZBabel) and
 didn't think it did really what I was after.
 
 I need to translate the site into French , German , and Japanese .
 
 I assume the best way is to pull the different languages from a database
 via a python external method or just Zmysql

you can use the Translator product (that does *not* use an external database.)
try our cvs via html interface (cvs.mixadlive.com) or download directly
from the zope site: http://www.zope.org/Members/fog/Translator/

ciao,
federico


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




[Zope] Re: translator / zbabel

2001-01-05 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Olaf Zanger's letter:
 hi there,
 
 i'm searching for a i18n product,
 
 on translator i seam to miss "xmlio".

use attached xmlio.py (put it in $ZOPE_HOME/lib/python/Shared)
you don't have to use the makefile. just untar the tarball into
$ZOPE_HOME. (i use the makefile when i develop to automatically
copy files and to produce the distribution tarball.)

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
 A short story: I want you. I love you. I'll miss you. -- Me

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




Re: [Zope] PoPy1.4 Installed:

2000-12-18 Thread Federico Di Gregorio

 Here Is some tips to install PoPy DA on a RH6.2
 
 First: You have to use Postgres7.0 with PoPy1.4
 - download the Postgres7.0 with the development libraries (the development
 RPM from the Postgres download)
 - Download the Popy1.4.1 and the ZPopyDA0.7
 - untar Popy1.4.1
 - $./configure

mmm... 

./configure --postgreql-includes=/usr/include/pgsql

is much better (do a ./configure --help to display all the configuration
options...)

 - change the Makefile ... the include path isn't /usr/include/postgres but
 it's /usr/include/pgsql

not required if you do as above.

 - the file /usr/include/pgsql/os.h is a broken link .. we have to solve this
 prob

yes, this is a problem.

 - copy the popymodule.so in the [zopedir]/lib/python

no. popy should live in the *python* hierarchy. just do a "make install"
and make will take care of installing it in the right directory
(usually /usr/lib/python1.5/site-packages or the local alternative.)

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  All programmers are optimists. -- Frederick P. Brooks, Jr.

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




Re: [Zope] PoPy and system tables

2000-11-27 Thread Federico Di Gregorio

 can anybody out there tell me why this query fails 
 although PoPyDA is connected as postgres superuser ?
 
 select * from pg_class

at now popy tries to dereference every oid thinking it is a large object.
obviously that is not tru for oids of system tables... *grin*

hope this helps,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
 Best friends are often failed lovers. -- Me

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




[Zope] Best wishes

2000-11-24 Thread Federico Di Gregorio

Dear PoPy and ZPoPyDA users,

 last days, a lots of stuff happened here at MIXAD LIVE. the most
important to you is that source code for the programs is not in our cvs server
anymore and the home page was moved to the official Zope site[1]. To make it
short, thierry and eric decided to not work for MIXAD LIVE anymore.

   so, what will change for you PoPy users? hopefully nothing... we'll
continue to submit patches (we are using the product a lot) and to host the
mailing list (unless they wants to move it away.) i will personally keep on
packaging PoPy and ZPoPyDA for the Debian distribution. we also want to
transfer to thierry the copyright of all the work done by us on the programs,
to give him total freedom. i think PoPy and ZPoPyDA will grow better and
better in the future.

what can i say more? maybe "good luck" to them and "keep on hacking"...

federico

[1] http://www.zope.org/Members/tm/ZPoPyDA

--
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de liberté si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra


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




[Zope] Re: [Soft] [Fwd: [Zope] Multi-lingual sites and workflow]

2000-11-02 Thread Federico Di Gregorio

 I was wondering if anyone here has used Zope to create
 bilingual/multi-lingual/localised websites.

we used to create various multi-lingual websites (one of them is in
8 different ones...) we also developed a product to help localisation,
the Translator. you can find it at the zope web site or directly from
us (www.mixadlive.com.)

ciao,
federico

-- 
Federico Di Gregorio [http://www.bolinando.com/fog] {Friend of Penguins}
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
 Best friends are often failed lovers. -- Me

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




[Zope] Re: [Soft] [Fwd: [Zope] PoPy]

2000-10-31 Thread Federico Di Gregorio

first of all, always install the latest versions of popy and zpopyda.
you can get them on our website, www.mixadlive.com. you don't need
to compile the .py files of the database adapter, zope takes care
of loading them through python that will compile them on the fly.

please, when a compilation fails, send use some more information,
at least the compiler error message and, if you can, installed
packages/programs, etc...

hope this helps,
federico

p.s. if you use the Debian distribution you can install popy and zpopyda
by simply invoking "apt-get install python-popy zope-popyda"

 I am new with Zope and I don't know Python.
 I want to use Zope with PostgreSQL.
 I have installed PoPy-1.2.1 and compiled the module PoPymodule.so.
 I have also installed ZPoPyDA.0.7 in /lib/python/Products/ZPoPyDA/.
 My problem is I don't know if I have to compile the Phyton files in
 ZPoPyDA ?
 I have tried, and some errors appeared :
 
 when compiling __init__.py :
 ImportError: No module named Globals
 when compiling PoPy_db.py :
 The PoPy module is old: Update your version of PoPy
 
 So, I tried to install PoPy-1.3.6, but I failed!
 
 Is there someone who could help me ??? :-(

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Those who do not study Lisp are doomed to reimplement it. Poorly.
 -- from Karl M. Hegbloom .signature

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




[Zope-dev] ZOracleDA not working with 2.2.1?

2000-09-15 Thread Federico Di Gregorio

Hi *,

after upgrading to latest Zope we are having problems with the
ZOracleDA product. The first SQLMethod **after** a call to an external
method using DCOracle to update the db, fails with an error saying that
the connection is closed. (connection can't be re-opened, the only way
out is to restart zope, sigh.)

anybody experienced the same problem? is ZOracleDA non-compatible
with Zope 2.2.1?

ciao and tahnk you very much (as always),
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
 A short story: I want you. I love you. I'll miss you. -- Me

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




[Zope] Re: [Soft] [Fwd: [Zope] compile ZPoPyDA product problems]

2000-08-02 Thread Federico Di Gregorio

hi,

  I keep getting the same compile error -
  
  gcc - shared PoPymodule.o -lpq -o PoPymodule.so
  /usr/i486-suse-linux/bin/ld: cannot find -lpq
 
 -Find libpq.so on your machine.
 -Edit the last? (going from memory) line of Makefile, adding
-L/directory/that/holds/your_libpq 
  (just the directory, not the filename) right before -lpq

with the new versions of PoPy you can simply do:

./configure --with-postgres-libs=/directory/that/holds/your_libpq

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Debian. The best software from the best people [see above]
  -- brought to you by One Line Spam

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




[Zope] Re: [Fwd: [Zope] Announce: ZBabel a Translation Assistant for Zope]

2000-07-19 Thread Federico Di Gregorio

hi *,

i read with much interest this thread about ZBabel, because
it seems to do something like the Translator product. 

 Suppose web site in source language has something like this:
 
 'Click A href="{fieldX(someVar.A)}"here/A, for {fieldY(someVar.B)}'
 
 With suitably horrific DTML instead of ' ' and {}.
 
 Rendered english result would be, for some particular dynamic instance of
 someVar:
 
 'Click A href="http://www.zope.org/"here/A for Zope'
 
 Translator for language X decides to reverse the positions of fieldA and
 fieldB and use 3 separate substrings, because it is too abrupt for that
 language, so translates to something like:
 
 'If you would like {fieldY(someVar.B)}, click A
 href="{fieldX(someVar.A)}"this link/A, please'
 
 There are now 3 substrings in the translation because it would be rude not
 to start or end with something like "please" in language X, and it reads
 better with the fields reversed in that language.
 
 Final rendered result becomes (in language X):
 
 'If you would like Zope, click A href="http://www.zope.org/"this link/A,
 please'
 
 depending on the particular value of someVar at the time.

ok. Translator allows for that using just one (1) translated string.
you create a translator and put inside it a translated item (naming
it my_localized_text, for example):

language1:

Click A href="dtml-var "someVar.A""here/A, 
for dtml-var "someVar.B"  

language2:

If you would like dtml-var "someVar.B", click A
href="dtml-var "someVar.A""this link/A, please.

Then in the main body of your page you put:

dtml-lvar my_localized_text

and you get exactly what you want.

BTW, Translator also allow you to take an url of a localized object,
to do stuff like:

img src="dtml-lvar first_logo_png url" usemap=...

At now, the Transaltor does not support at now an easy way to generate
catalogues (as ZBabel does, i think.) I'll add that in a future release.
Or, if the author of ZBabel wants, we can try to merge the two projects
to and produce a single, usefull product.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  99.% still isn't 100% but sometimes suffice. -- Me

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




[Zope] Re: Fwd: [Zope] postgres DA

2000-06-02 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Paolo Comitini's letter:

 what's the current status of ZPygreSQLDA and ZPoPyDA? if i were to choose,
 which should i use?  and the reasons for using it?
 
 i understand that ZPoPyDA is level 2 thread safety, and not quite sure what
 ZPygreSQLDA thread safety is.

I can only say that we started writing PoPy and ZPoPyDA because pygresql
(and the adapter based on it) are *not* thread safe. we were experimenting
deadlocks in zope when you mix db access from sql methods and external
methods in the same page.

on the other hand PoPy is pretty new and, before using it in production,
needs more testing. i think it will stabilize pretty soon, because we will
use it to build the web sites for our customers really soon now and that 
will apport a lot of testing/debugging.

make your choice and be happy,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  The reverse side also has a reverse side.  -- Japanese proverb

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




[Zope] ZPoPyDA license (was: [Zope] Thread-safe PostgreSQL adaptor?)

2000-06-01 Thread Federico Di Gregorio

hi,

Hannu Krosing [EMAIL PROTECTED] wrote:

  This database adapter is released under the GPL Licence.
 
 AFAIK this is the only DA with GPL license.
 Both Zope and python have much freer licenses making GPL probably 
 a poor choice if you "aims to replace the current ZPygresql DA".
 
 What is the reason behind GPL'ing it ? 

we strongly belive in free software.

 If you you hope to make money selling commercial licences I doubt it will
 work.

absolutely! it will never work! if you go for free software you have to make
money on other things than licenses. that's why we choosed the gpl.

 Many peaople are afraid of contaminating their work with smallish GPL products
 and would rather use inferior but free products.

many people try to *speculate* by using free software without giving
back to the community. imho a license that allows that is a bad license.

the only good reason for changing the license would be Digital Creations
asking us to do so because they want to include ZPoPyDA in one of their
products but don't want to be binded by the gpl. we are using zope and
making money out of it and i don't like if they can't do the same with
out work.

but, for now, both PoPy and ZPoPyDA will remain GPL.

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  All programmers are optimists. -- Frederick P. Brooks, Jr.

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