Re: [Zope] ZEO with Multiple Storages

2006-09-14 Thread Martijn Pieters

On 9/14/06, Jonathan [EMAIL PROTECTED] wrote:

If you mean having zope commit a single transaction to multiple storages,
then 'vanilla' zope won't do it (Zope Corp has a commercial product called
ZRS which does this type of thing).


No, that's not true. ZRS is used to create hot read-only or stand-by
copies of a ZEO server (and all storages within such a server are
copied).

One ZEO server can deal with multiple storages just fine. Transactions
involving multiple storages commit just fine.


First off, does this make any sense? Is it worth pursuing?


I think so.

I would think, but do not know for sure, that transactions only
involving one storage should not delay transactions involving other
storages.


Secondly, I
assume that where an object is stored does not limit what other objects it
can access in a transaction (e.g. object A could add a property to object
B if they were in different storages) because all changes would occur in a
client. (this ties into the single transaction committing to multiple
storages)


You assume correctly.

Note that a stock Zope install already runs multiple storages; one for
Session data (tempstorage) and one for all other data.


Lastly, any thoughts on how we could split up our existing data.fs file?
One thought I had was to attempt to import/export data.


Either before or after upgrading to 2.9 (probably best after to take
advantage of the more robust ZODB), export and import.


--
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] ZEO with Multiple Storages

2006-09-14 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 08:54, Martijn Pieters wrote:

One ZEO server can deal with multiple storages just fine. Transactions
involving multiple storages commit just fine.


Caveat: You buy nothing by having a single ZEO process serve several  
ZODBs when you're trying to decrease commit times. You should run a  
ZEO process per ZODB you're serving out, that way the writes can be  
segregated and parallelized. That also makes it easier to move  
processes/databases around disks/hosts to spread I/O load.


jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFCQSiRAx5nvEhZLIRAhihAKC7V0lCz3deSz0vN/0RhvdWmFAj0ACgoguT
I8NDYcUbz5t25xniZZ1akfo=
=63My
-END 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 )


[Zope] Localizer/TranslationService question

2006-09-14 Thread Pascal Peregrina
Hi,

Does anyone know if Localizer requires iTools/iHotFix to work with Zope 2.8
if I only use MessageCatalogs (and not plain files) ?

(I'm downloading the Products from here:
http://www.ikaaro.org/download/index.html)

Until now I was using the 1.0.1 version of Localizer.

Thanks.

Pascal



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Localizer/TranslationService question

2006-09-14 Thread Marco Bizzarri

IIRC, iHotfix is required by Localizer when you have a version like 1.1 or 1.2

I think itools is also required, regardless of version (1.0, 1.1, 1.2)

Regards
Marco

You could try to ask to the localizer mailing list... it is not very
active, but it is responsive ;)

Regards
Marco

On 9/14/06, Pascal Peregrina [EMAIL PROTECTED] wrote:

Hi,

Does anyone know if Localizer requires iTools/iHotFix to work with Zope 2.8
if I only use MessageCatalogs (and not plain files) ?

(I'm downloading the Products from here:
http://www.ikaaro.org/download/index.html)

Until now I was using the 1.0.1 version of Localizer.

Thanks.

Pascal



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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 )




--
Marco Bizzarri
http://notenotturne.blogspot.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] Is there any setting in plone site? Which can restrict for login to newly registered users.

2006-09-14 Thread Krishna Shukla








Hi All,

Is there any setting in plone site?

Which can restrict for login to newly registered users.

I have some strange problem.

I have one site, there the users which are registering newly
they are not able to login. But old users are able to login

Regards,

Krishna Shukla








-
Disclaimer
-

This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.

-___
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] ZEO with Multiple Storages

2006-09-14 Thread Jonathan


- Original Message - 
From: Martijn Pieters [EMAIL PROTECTED]

To: Jonathan [EMAIL PROTECTED]
Cc: Brian Brinegar [EMAIL PROTECTED]; zope@zope.org
Sent: Thursday, September 14, 2006 2:54 AM
Subject: Re: [Zope] ZEO with Multiple Storages



On 9/14/06, Jonathan [EMAIL PROTECTED] wrote:

If you mean having zope commit a single transaction to multiple storages,
then 'vanilla' zope won't do it (Zope Corp has a commercial product 
called

ZRS which does this type of thing).


No, that's not true. ZRS is used to create hot read-only or stand-by
copies of a ZEO server (and all storages within such a server are
copied).

One ZEO server can deal with multiple storages just fine. Transactions
involving multiple storages commit just fine.


Yes and No!

Yes: a single zeo server can deal with multiple storages (ie. a storage can 
contain mount points to other storages)


Yes: if a single transaction creates/modifies multiple objects and each of 
those objects is stored in a different storage (all storages 'served up' by 
a single zeo server), then the single transaction will commit those objects 
to their respective storages with no problem. (however, there are little/no 
performance improvements in this scenario)


No:  if a single transaction creates/modifies a single object, that single 
object can not be stored over multiple storages (ie. you cannot achieve RAID 
'disk striping' type of performance improvements)



However, that being said there may be some improvement, if the application 
is disk-bound, by giving each storage its own disk subsystem (never tried 
this myself, but it may buy some small performance improvement).  For the 
cost/effort involved I would stick to having a single zeo server 'serve up' 
a single storage, and have each zeo server on its own hardware platform 
(much more scalable, easy to implement).



Jonathan 



___
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] ZEO with Multiple Storages

2006-09-14 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 13:56, Jonathan wrote:

Yes: a single zeo server can deal with multiple storages (ie. a  
storage can contain mount points to other storages)


That's misleading wording, a storage knows nothing at all about  
mounts. The storage server can't do anything except for reading from  
and writing to ZODB databases. Mounting is a client concept only.


jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFCVdQRAx5nvEhZLIRAkACAJwM7Cv0+dmnjgtsGsnYhYb6Vzl8BwCgqO8Y
z4WxwoWO/XOrRkW8FwLZx9k=
=4Lax
-END 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] ZEO with Multiple Storages

2006-09-14 Thread Jonathan


- Original Message - 
From: Jens Vagelpohl [EMAIL PROTECTED]

To: [Zope] List Mailing zope@zope.org
Sent: Thursday, September 14, 2006 9:21 AM
Subject: Re: [Zope] ZEO with Multiple Storages



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 13:56, Jonathan wrote:

Yes: a single zeo server can deal with multiple storages (ie. a  storage 
can contain mount points to other storages)


That's misleading wording, a storage knows nothing at all about  mounts. 
The storage server can't do anything except for reading from  and writing 
to ZODB databases. Mounting is a client concept only.


P.S.  Or is the mount point  totally controlled by zope.conf and nothing 
relating to the 'mount point' is stored in the storage?



Jonathan 



___
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] ZEO with Multiple Storages

2006-09-14 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 15:34, Jonathan wrote:
Yes: a single zeo server can deal with multiple storages (ie. a   
storage can contain mount points to other storages)


That's misleading wording, a storage knows nothing at all about   
mounts. The storage server can't do anything except for reading  
from  and writing to ZODB databases. Mounting is a client concept  
only.


P.S.  Or is the mount point  totally controlled by zope.conf and  
nothing relating to the 'mount point' is stored in the storage?


You got it.

jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFCV48RAx5nvEhZLIRAsLWAKCIYC9D+/QpX6oq3QvHvWSBtMMCGQCfY5fS
LLsShBUeXJI+O6FSZRiYqxw=
=/czT
-END 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] ZEO with Multiple Storages

2006-09-14 Thread Jonathan


- Original Message - 
From: Jens Vagelpohl [EMAIL PROTECTED]

To: [Zope] List Mailing zope@zope.org
Sent: Thursday, September 14, 2006 9:21 AM
Subject: Re: [Zope] ZEO with Multiple Storages



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 13:56, Jonathan wrote:

Yes: a single zeo server can deal with multiple storages (ie. a  storage 
can contain mount points to other storages)


That's misleading wording, a storage knows nothing at all about  mounts. 
The storage server can't do anything except for reading from  and writing 
to ZODB databases. Mounting is a client concept only.


I didn't say that the storage 'knew' anything about mount points.  I simply 
stated that a storage can contain mount points to other storages (storages 
contain objects, if one of those objects happens to be a mount point to 
another storage the storage containing the 'mount point' object doesn't 
care).


So the wording is not misleading (if the storage doesn't contain the mount 
point object, where is it stored?)



Jonathan



___
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] Is there any setting in plone site? Which can restrict for login to newly registered users.

2006-09-14 Thread Chris Withers

Krishna Shukla wrote:

Is there any setting in plone site?

Which can restrict for login to newly registered users.


Duno, why don't you ask on a plone list?

cheers,

Chris

PS: Lose the obnoxious tail off your email if you want to post to public 
mailing lists...


--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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] a LocalFS that works

2006-09-14 Thread Alan

Hi list,

I am playing with two Zope servers version:

Zope 2.9.3-, python 2.4.2, darwin
and
Zope 2.8.5-final, python 2.3.5, sunos5

My problem is where to find a LocalFS that works? I tried version 1.0,
I patched it, but it didn't work. I also saw things like
LocalFS-1.3-andreas.tar.gz (even 1.7!) but from 2004/2005 or
PloneLocalFS (or now PloneSingleLocalFS!), but alpha. To summarize, I
am lost.

A link would be very welcome. Thanks in advance.

Cheers,
Alan

--
Alan Wilter S. da Silva, D.Sc. - Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.

http://www.bio.cam.ac.uk/~awd28

___
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] a LocalFS that works

2006-09-14 Thread Dennis Allison

Alan,

We use LocalFS-1.7-andreas.tar.gz with some local extensions with Zope 
2.9.X. I would recommentd that you use it.  The andreas LocalFS series 
is needed for the more recent Zopes.  


On Thu, 14 Sep 2006, Alan wrote:

 Hi list,
 
 I am playing with two Zope servers version:
 
 Zope 2.9.3-, python 2.4.2, darwin
  and
 Zope 2.8.5-final, python 2.3.5, sunos5
 
 My problem is where to find a LocalFS that works? I tried version 1.0,
 I patched it, but it didn't work. I also saw things like
 LocalFS-1.3-andreas.tar.gz (even 1.7!) but from 2004/2005 or
 PloneLocalFS (or now PloneSingleLocalFS!), but alpha. To summarize, I
 am lost.
 
 A link would be very welcome. Thanks in advance.
 
 Cheers,
 Alan
 
 

-- 

___
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] Jython port of Zope

2006-09-14 Thread james . burton

Hi, does Zope run on Jython, or is anyone working on making it do so? Any
pointers would be very helpful.

Sorry if this is an faq, I can't search the archive of this group because I
can't reach yahoo groups...

Regards,
-
James Burton
Notice to recipient:
The information contained in this electronic mail message is intended only for 
the use of the individual to whom it is addressed and may contain information 
which is privileged and confidential, the disclosure of which is prohibited by 
law. If the reader of this message is not the intended recipient, please note 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error please 
notify the sender immediately. Thank you in anticipation of your co-operation.

You can visit our website at http://www.brighton-hove.gov.uk

Please consider the environment, only print out this email if absolutely 
necessary.
___
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] Localizer/TranslationService question

2006-09-14 Thread Pascal Peregrina
Ok thanks for the replies... I just tried all versions :)

Actually this page...
http://www.ikaaro.org/download/index.html
...really shows the dependecies between versions.

So:
Localizer 1.0.1 does not require iHotFix/itools
Localizer 1.1.2 requires iHotFix 0.6.1 and itools 0.9.4
Localizer 1.2a1 requires iHotFix 0.11.0 and itools 0.7.0

Be careful, it's a little messy: you can not use the latest of each, because
there are incompatibilities (for example, some stuff was moved from a web to
http subpackage in itools somewhere between 0.11.0 and latest version, which
makes iHotFix 0.7.0 not work properly).

Conclusion: personally, I will remain on 1.0.1 :))
But now that our sites have hundreds of messages in several languages, I
might try to move the MessageCatalog implementation from PersistentMapping
to Btree (I mean for storing the messages in ZODB).

Pascal


 De : Marco Bizzarri [EMAIL PROTECTED]
 Date : Thu, 14 Sep 2006 13:00:00 +0200
 À : Pascal Peregrina [EMAIL PROTECTED]
 Cc : zope@zope.org
 Objet : Re: [Zope] Localizer/TranslationService question
 
 IIRC, iHotfix is required by Localizer when you have a version like 1.1 or 1.2
 
 I think itools is also required, regardless of version (1.0, 1.1, 1.2)
 
 Regards
 Marco
 
 You could try to ask to the localizer mailing list... it is not very
 active, but it is responsive ;)
 
 Regards
 Marco
 
 On 9/14/06, Pascal Peregrina [EMAIL PROTECTED] wrote:
 Hi,
 
 Does anyone know if Localizer requires iTools/iHotFix to work with Zope 2.8
 if I only use MessageCatalogs (and not plain files) ?
 
 (I'm downloading the Products from here:
 http://www.ikaaro.org/download/index.html)
 
 Until now I was using the 1.0.1 version of Localizer.
 
 Thanks.
 
 Pascal
 
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.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 )
 
 
 
 -- 
 Marco Bizzarri
 http://notenotturne.blogspot.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: Re: [Zope] a LocalFS that works

2006-09-14 Thread Alan

Thanks Dennis,

I couldn't find the version you mentioned but I got that:

http://www.easyleading.org/Downloads/LocalFS-1.7rc1-andreas.tar.gz/view

and I had to do this in LocalFS.py:
#from OFS.content_types import find_binary
from zope.app.content_types import find_binary

And it worked in my  Zope 2.9.3-, python 2.4.2, darwin.

Does anyone know if the either the patched version above will work
with Zope 2.8.5-final, python 2.3.5, sunos5? I am not the admin there
and I just want to save her time having problems if I request her such
Product to be installed.

Cheers,
Alan


On 14/09/06, Dennis Allison [EMAIL PROTECTED] wrote:


Alan,

We use LocalFS-1.7-andreas.tar.gz with some local extensions with Zope
2.9.X. I would recommentd that you use it.  The andreas LocalFS series
is needed for the more recent Zopes.


On Thu, 14 Sep 2006, Alan wrote:

 Hi list,

 I am playing with two Zope servers version:

 Zope 2.9.3-, python 2.4.2, darwin
  and
 Zope 2.8.5-final, python 2.3.5, sunos5

 My problem is where to find a LocalFS that works? I tried version 1.0,
 I patched it, but it didn't work. I also saw things like
 LocalFS-1.3-andreas.tar.gz (even 1.7!) but from 2004/2005 or
 PloneLocalFS (or now PloneSingleLocalFS!), but alpha. To summarize, I
 am lost.

 A link would be very welcome. Thanks in advance.

 Cheers,
 Alan



--





--
Alan Wilter S. da Silva, D.Sc. - Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.

http://www.bio.cam.ac.uk/~awd28

___
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: Re: [Zope] a LocalFS that works

2006-09-14 Thread Dennis Allison

That's the one you want.  If forgot that it was still a release candidate.

The Plone version has some additional features that Plone uses, but if you 
are not using Plone this should be what you want.


On Thu, 14 Sep 2006, Alan wrote:

 Thanks Dennis,
 
 I couldn't find the version you mentioned but I got that:
 
 http://www.easyleading.org/Downloads/LocalFS-1.7rc1-andreas.tar.gz/view
 
 and I had to do this in LocalFS.py:
 #from OFS.content_types import find_binary
 from zope.app.content_types import find_binary
 
 And it worked in my  Zope 2.9.3-, python 2.4.2, darwin.
 
 Does anyone know if the either the patched version above will work
 with Zope 2.8.5-final, python 2.3.5, sunos5? I am not the admin there
 and I just want to save her time having problems if I request her such
 Product to be installed.
 
 Cheers,
 Alan
 
 
 On 14/09/06, Dennis Allison [EMAIL PROTECTED] wrote:
 
  Alan,
 
  We use LocalFS-1.7-andreas.tar.gz with some local extensions with Zope
  2.9.X. I would recommentd that you use it.  The andreas LocalFS series
  is needed for the more recent Zopes.
 
 
  On Thu, 14 Sep 2006, Alan wrote:
 
   Hi list,
  
   I am playing with two Zope servers version:
  
   Zope 2.9.3-, python 2.4.2, darwin
and
   Zope 2.8.5-final, python 2.3.5, sunos5
  
   My problem is where to find a LocalFS that works? I tried version 1.0,
   I patched it, but it didn't work. I also saw things like
   LocalFS-1.3-andreas.tar.gz (even 1.7!) but from 2004/2005 or
   PloneLocalFS (or now PloneSingleLocalFS!), but alpha. To summarize, I
   am lost.
  
   A link would be very welcome. Thanks in advance.
  
   Cheers,
   Alan
  
  
 
  --
 
 
 
 
 

-- 

___
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] Jython port of Zope

2006-09-14 Thread Andreas Jung



--On 14. September 2006 16:15:57 +0100 [EMAIL PROTECTED] 
wrote:




Hi, does Zope run on Jython, or is anyone working on making it do so? Any
pointers would be very helpful.


Zope only runs on CPython, not on Jython.

-aj

pgpUIdskfOoox.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] Jython port of Zope

2006-09-14 Thread Paul Winkler
On Thu, Sep 14, 2006 at 05:38:26PM +0200, Andreas Jung wrote:
 --On 14. September 2006 16:15:57 +0100 [EMAIL PROTECTED] 
 wrote:
 
 
 Hi, does Zope run on Jython, or is anyone working on making it do so? Any
 pointers would be very helpful.
 
 Zope only runs on CPython, not on Jython.

... and that is very unlikely to change, since zope ships
with a number of C extensions.

-- 

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] PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3...

2006-09-14 Thread Pascal Peregrina
Title: PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3...



Hi,

I would like to know the right way to manage messages and store them in ZODB with Zope2+Five or Zope3.
Currently, in Zope2, I use Localizer MessageCatalog objects.
Is there a new way already available through Five?
(note that I dont want to use flat files for translations, they must be ZODB stored for my use case)

Thanks.

Pascal


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Simple high-level question - mabye about WEBDAV?

2006-09-14 Thread Steve
I am looking to extend a zope portal to allow authenticated users to
upload/download files... the idea being to support a shared drive
containing various files available over HTTPS and available anywhere
there is web-access.  Ideally this notional 'web-drive' should be
accessible using Windows Web Folders -but I'd also like for it to
support ACL-style permissions with respect to file-access by other
authenticated users.

Are there any products which already address this requirement?


___
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] Simple high-level question - mabye about WEBDAV?

2006-09-14 Thread Chris McDonough

Take a look at Plone Desktop from enfold systems...

On Sep 14, 2006, at 12:08 PM, Steve wrote:


I am looking to extend a zope portal to allow authenticated users to
upload/download files... the idea being to support a shared drive
containing various files available over HTTPS and available anywhere
there is web-access.  Ideally this notional 'web-drive' should be
accessible using Windows Web Folders -but I'd also like for it to
support ACL-style permissions with respect to file-access by other
authenticated users.

Are there any products which already address this requirement?


___
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] ZPT based on files in local filesystem folder

2006-09-14 Thread Dieter Maurer
Alan wrote at 2006-9-14 01:41 +0100:
 ...
For the moment, I would be more insterested in a external method or
similar rather than LocalFS or any other product that I have to
install in my zope server.

Any commentary or advice would be very welcome.

If you like an External Method for this, just write it.
It is trivial...



-- 
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] ZEO with Multiple Storages

2006-09-14 Thread Dieter Maurer
Brian Brinegar wrote at 2006-9-13 21:22 -0400:
 ... partioning large data sets onto different storages ...
First off, does this make any sense?

I makes sense and we do it successfully with our large editorial
system.


However, ensure that each storage is self contained data wise:

  e.g. do not put data in one storage and have them catalogued
  in a different one.

Otherwise, selective backup of individual storages will introduce
inconsistencies.

Is it worth pursuing?

Yes.

Secondly, I 
assume that where an object is stored does not limit what other objects 
it can access in a transaction (e.g. object A could add a property to 
object B if they were in different storages) because all changes would 
occur in a client. (this ties into the single transaction committing to 
multiple storages)

Right.



-- 
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] ZEO with Multiple Storages

2006-09-14 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-9-14 15:50 +0200:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 14 Sep 2006, at 15:34, Jonathan wrote:
 Yes: a single zeo server can deal with multiple storages (ie. a   
 storage can contain mount points to other storages)

 That's misleading wording, a storage knows nothing at all about   
 mounts. The storage server can't do anything except for reading  
 from  and writing to ZODB databases. Mounting is a client concept  
 only.

 P.S.  Or is the mount point  totally controlled by zope.conf and  
 nothing relating to the 'mount point' is stored in the storage?

You got it.

I am not sure about the most recent Zope/ZODB versions.

But, up to Zope 2.8/ZODB 3.4, Jonathan was right:

  Beside configuration, there have been MountPoint objects
  in the ZODB that handled the mounting magic.

  While not completely impossible, I would be very surprised if the need
  for MountPoint objects were dropped in newer Zope versions...



-- 
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] Simple high-level question - mabye about WEBDAV?

2006-09-14 Thread Chris McDonough

OK, well, Zope works out of the box with DAV clients, so...

(and please keep conversations on the list)...

- C

On Sep 14, 2006, at 1:32 PM, Steve wrote:


Chris McDonough wrote:

Take a look at Plone Desktop from enfold systems...


Thanks for the suggestion... that's interesting, but far more involved
than what I'm aiming for... For example, I definitely don't want to
require any special client software, and a big feature of the Plone
Desktop seems to be integration with the Win32 file-system - whereas I
don't need that per-se... any user-friendly UI would suit me just  
fine.


I guess I might have better described that I what this to be a bit  
like

an https based ftp-site with file uploads and downloads etc...  a
simple, secure mechanism for exchange of arbitrary files between users
of the portal... I don't really need or want content-management per- 
se


Steve





___
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] Simple high-level question - mabye about WEBDAV?

2006-09-14 Thread Steve
Chris McDonough wrote:
 OK, well, Zope works out of the box with DAV clients, so... 
I've read that too... but (maybe I'm just being dumb here) I can't
connect to my zope server via the Add Network Place wizard just by
specifying a URL for my zope-server which my web-browser accesses fine.
Can you point me at a how-to?  How does this integrate with
permissions?  Will I need a web-based interaction to set-up ACLs for files?



___
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] Simple high-level question - mabye about WEBDAV?

2006-09-14 Thread Chris McDonough

How does it not work?

Webfolders doesn't allow setting permissions on folders or files on a  
share.  You'll need to do this through Zope's security interface via  
a browser.


I suspect the situation is this: you will likely need a need a  
content management or a fat client or both if you want users to be  
able to manage security via a normal (nothing really normal about  
it, IMO, but...) Explorer window.


Zope has a completely different security model than either UNIX or  
Windows, so something needs to map its notion of security to the  
client's.  Plain-old-webfolders won't help here.


I wonder why you don't just use a Windows share here?  What does Zope  
give you that it wouldn't in this case?


- C

On Sep 14, 2006, at 1:53 PM, Steve wrote:


Chris McDonough wrote:

OK, well, Zope works out of the box with DAV clients, so...

I've read that too... but (maybe I'm just being dumb here) I can't
connect to my zope server via the Add Network Place wizard just by
specifying a URL for my zope-server which my web-browser accesses  
fine.

Can you point me at a how-to?  How does this integrate with
permissions?  Will I need a web-based interaction to set-up ACLs  
for files?






___
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] lipo error in comiling zope 2.9.4 on Mac OS X 10.4.7

2006-09-14 Thread cristopher pierson ewing

Hi,

using Python 2.4.3 installed via package on a Mac G4 with OS X 10.4.7. 
I'm trying to compile zope 2.9.4 and getting the following error trace in 
the terminal window:


AccessControl/cAccessControl.c:629: error: initializer element is not 
constant
AccessControl/cAccessControl.c:629: error: (near initialization for 
'imPermissionRoleType.tp_setattro')
AccessControl/cAccessControl.c:2215: error: initializer element is not 
constant
AccessControl/cAccessControl.c:2215: error: (near initialization for 
'dtml_methods[1].ml_name')
AccessControl/cAccessControl.c:2215: error: initializer element is not 
constant
AccessControl/cAccessControl.c:2215: error: (near initialization for 
'dtml_methods[1].ml_meth')
AccessControl/cAccessControl.c:2215: error: initializer element is not 
constant
AccessControl/cAccessControl.c:2215: error: (near initialization for 
'dtml_methods[1]')

AccessControl/cAccessControl.c: In function 'initcAccessControl':
AccessControl/cAccessControl.c:2229: error: initializer element is not 
constant
AccessControl/cAccessControl.c:2229: error: (near initialization for 
'RestrictedDTMLMixinType.ob_type')

lipo: can't figure out the architecture type of: /var/tmp//ccLGX4ik.out
error: command 'gcc' failed with exit status 255
make: *** [build] Error 1


There's a bunch more of the same AccessContral/cAccessControl.c: error 
messages above those I copied here, but they didn't seem to germane to the 
problem.


Any ideas what throws this error?  Is this possibly a problem with a gcc 
for the g4 architecture vs. one for the new i386 architecture?


Any suggestions most welcome!

Cris


Cris Ewing
CME and Telehealth Web Services
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: [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 )


[Zope] Re: ZEO with Multiple Storages

2006-09-14 Thread Brian Brinegar
  One ZEO server can deal with multiple storages just fine.
  Transactions involving multiple storages commit just fine.

 Caveat: You buy nothing by having a single ZEO process serve several
 ZODBs when you're trying to decrease commit times. You should run a
 ZEO process per ZODB you're serving out, that way the writes can be
 segregated and parallelized. That also makes it easier to move
 processes/databases around disks/hosts to spread I/O load.

Just to clarify, you are saying that a single ZEO server would not be
able to deal with multiple storages simultaneously and that a
transaction in one storage would block transactions in all other storages.

However, if we were to run multiple ZEO processes this would not be the
case?

-Brian
___
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] Re: lipo error in comiling zope 2.9.4 on Mac OS X 10.4.7

2006-09-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

cristopher pierson ewing wrote:
 Hi,
 
 using Python 2.4.3 installed via package on a Mac G4 with OS X 10.4.7.
 I'm trying to compile zope 2.9.4 and getting the following error trace
 in the terminal window:
 
 AccessControl/cAccessControl.c:629: error: initializer element is not
 constant
 AccessControl/cAccessControl.c:629: error: (near initialization for
 'imPermissionRoleType.tp_setattro')
 AccessControl/cAccessControl.c:2215: error: initializer element is not
 constant
 AccessControl/cAccessControl.c:2215: error: (near initialization for
 'dtml_methods[1].ml_name')
 AccessControl/cAccessControl.c:2215: error: initializer element is not
 constant
 AccessControl/cAccessControl.c:2215: error: (near initialization for
 'dtml_methods[1].ml_meth')
 AccessControl/cAccessControl.c:2215: error: initializer element is not
 constant
 AccessControl/cAccessControl.c:2215: error: (near initialization for
 'dtml_methods[1]')
 AccessControl/cAccessControl.c: In function 'initcAccessControl':
 AccessControl/cAccessControl.c:2229: error: initializer element is not
 constant
 AccessControl/cAccessControl.c:2229: error: (near initialization for
 'RestrictedDTMLMixinType.ob_type')
 lipo: can't figure out the architecture type of: /var/tmp//ccLGX4ik.out
 error: command 'gcc' failed with exit status 255
 make: *** [build] Error 1
 
 
 There's a bunch more of the same AccessContral/cAccessControl.c: error
 messages above those I copied here, but they didn't seem to germane to
 the problem.
 
 Any ideas what throws this error?  Is this possibly a problem with a gcc
 for the g4 architecture vs. one for the new i386 architecture?
 
 Any suggestions most welcome!

Somebody is defining NULL as a non-constant?  That is pretty weird, to
say the least.

Line 629:
NULL,   /* tp_setattro  */

Lines 2213-6:
static struct PyMethodDef dtml_methods[] = {
  {guarded_getattr, (PyCFunction)dtml_guarded_getattr,
   METH_VARARGS|METH_KEYWORDS,  },
  {NULL,NULL}
};

Line 2229 invokes the PURE_MIXIN_CLASS macro (defined in
ExtensionClass/ExtensionClass.h).




Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCcev+gerLs4ltQ4RAvGzAJ4ybmehgrPTbBuIjXn0jZet+Dyl7ACfX/8N
t61o8jfZGVOpf4ujXpnSwCE=
=8+VM
-END 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 )


[Zope] Remove/Ignore P and other HTML tags

2006-09-14 Thread Zhi-Wei Lu
I am a system administrator who maintains our Zope servers.  I don't  
know that much
about python or zope, just enough to upgrade and trouble shooting  
from time to time.
Of course, the developers who have developed the system are no longer  
here.


I try to move a site from Zope 2.7.4 (python 2.4) to a new server  
with Zope 2.9.4 (python 2.4.3),
after some struggle, I have fixed most of the problems, but one that  
I don't have much clue.  I hope

that expert here can shed some light for me.

Here are section of code that displays part the of some abstract
dtml-let
rand1=get_random_image()
cap1=get_folder_title(name=rand1)
text=get_abstract_sample(name=rand1)
   table cellpadding=0 cellspacing=0tr

The function get_abstract_sample
is here

for object in container.research.objectValues():
  a = object.getId()
  if (a == name):
text = object.research_description_html.read()
  else:
 pass

text = str(text)

return text[0:400] + '...'

The above code work fine for the 2.7.4 server, but fails for 2.9.4  
server, it will

ask for authentication password for 2.9.4, no user/password combination
will work.  If I  modify it as follows (for 2.9.4 server)

for object in container.research.objectValues():
  a = object.getId()
  if (a == name):
text = object.research_description_html

text = str(text)

return text[0:400] + '...'

Getting rid of read() for the 2.9.4 server solve the authentication  
problem and

display the web page but with some unpleasant
P and other HTML tags literally (It doesn't for the old 2.7.4 server).

I would love to hear suggestions and advices from this group to get  
rid of

the literal P and other HTML tags.  Thank you very much for your help.

Thank you very much for your attention.

Zhi-Wei Lu
Institue for Data Analysis and Visualization (IDAV)
UC Davis Phone:(530) 752-0494
Davis, CA 95616Fax: (530) 752-8894


___
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] Remove/Ignore P and other HTML tags

2006-09-14 Thread Paul Winkler
On Thu, Sep 14, 2006 at 03:52:30PM -0700, Zhi-Wei Lu wrote:
 I am a system administrator who maintains our Zope servers.  I don't  
 know that much
 about python or zope, just enough to upgrade and trouble shooting  
 from time to time.
 Of course, the developers who have developed the system are no longer  
 here.
 
 I try to move a site from Zope 2.7.4 (python 2.4) to a new server  
 with Zope 2.9.4 (python 2.4.3),
 after some struggle, I have fixed most of the problems, but one that  
 I don't have much clue.  I hope
 that expert here can shed some light for me.
 
 Here are section of code that displays part the of some abstract
 dtml-let
 rand1=get_random_image()
 cap1=get_folder_title(name=rand1)
 text=get_abstract_sample(name=rand1)
table cellpadding=0 cellspacing=0tr
 
 The function get_abstract_sample
 is here
 
 for object in container.research.objectValues():
   a = object.getId()
   if (a == name):
 text = object.research_description_html.read()
   else:
  pass


Unless you omitted something, that's a really long
and slow way to do this:

 text = container.research[name].read()

Don't iterate over all items when you only care about one of
them and know what it's called :)
But that's not your problem...

 The above code work fine for the 2.7.4 server, but fails for 2.9.4  
 server, it will
 ask for authentication password for 2.9.4, no user/password combination
 will work.  If I  modify it as follows (for 2.9.4 server)
 
 for object in container.research.objectValues():
   a = object.getId()
   if (a == name):
 text = object.research_description_html
 
 text = str(text)
 
 return text[0:400] + '...'
 
 Getting rid of read() for the 2.9.4 server solve the authentication  
 problem and

We don't know what kind of objects you have. But this sounds like
the code for object is lacking some security declarations, and zope
2.7 was too permissive.

 display the web page
  but with some unpleasant
 P and other HTML tags literally (It doesn't for the old 2.7.4 server).

 I would love to hear suggestions and advices from this group to get  
 rid of
 the literal P and other HTML tags.  Thank you very much for your help.

Hmm, you never showed us where this text actually gets put into the
page.  In the example you gave, it gets assigned in a dtml-let
tag, and that's the last we saw of it.
Perhaps you have something like dtml-var text html_quote=1?

If so, remove the html_quote attribute.

See http://www.plope.com/Books/2_7Edition/AppendixA.stx#1-20

-- 

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] Remove/Ignore P and other HTML tags

2006-09-14 Thread David H

Zhi-Wei Lu wrote:



for object in container.research.objectValues():
  a = object.getId()
  if (a == name):
text = object.research_description_html.read()
  else:
 pass

text = str(text)

return text[0:400] + '...'


ZhiWei,

Just post a good fragment of

your text[ 0 : 400 ]  that pops your literal p and other 
non-translated html stuff and likely someone will solve it quick.  I'm 
thinking an analogie to ZPT's structure keyword 


Paul is right - the permission scheme did change.  I know it annoyed the 
hell out of me :-)  But not sure if thats your issue


David

___
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] POST sucks.

2006-09-14 Thread Paul Winkler
On Wed, Sep 13, 2006 at 10:02:56AM +0200, Igor Stroh wrote:
 Doing a lot web services developoment lately, I find tcpflow? very
 usefull (and much easier to use then ethereal), e.g.:
 `tcpflow -c -i eth0 port 8080`
 will sniff on port 8080 (interface eth0) in interactive mode, so
 you'll see the data fly by, already decoded and ready to be
 copypasted into SOAPUI? :)
 
 
 ?: http://www.circlemud.org/~jelson/software/tcpflow/
 ?: http://www.soapui.org/

Nice! tcpflow is simple and handy.

Anybody know of something like soapui that supports xml-rpc?
Bonus points for json-rpc.

-- 

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 )