[Zope-Checkins] SVN: Zope/trunk/ - Collector #1773: by default user accounts are now encrypted for

2005-08-03 Thread Andreas Jung
Log message for revision 37677:
- Collector #1773: by default user accounts are now encrypted for
  security reasons
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/AccessControl/User.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2005-08-03 00:47:00 UTC (rev 37676)
+++ Zope/trunk/doc/CHANGES.txt  2005-08-03 08:23:14 UTC (rev 37677)
@@ -53,6 +53,9 @@
 
 Bugs fixed
 
+  - Collector #1773: by default user accounts are now encrypted for
+security reasons
+
   -  As developed in a long thread starting at
  http://mail.zope.org/pipermail/zope/2005-July/160433.html
  there appears to be a race bug in the Microsoft Windows socket

Modified: Zope/trunk/lib/python/AccessControl/User.py
===
--- Zope/trunk/lib/python/AccessControl/User.py 2005-08-03 00:47:00 UTC (rev 
37676)
+++ Zope/trunk/lib/python/AccessControl/User.py 2005-08-03 08:23:14 UTC (rev 
37677)
@@ -450,7 +450,7 @@
 isAUserFolder=1
 maxlistusers = DEFAULTMAXLISTUSERS
 
-encrypt_passwords = 0
+encrypt_passwords = 1
 
 manage_options=(
 (

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


[Zope-dev] File System Directory Files Permission Setting

2005-08-03 Thread Evrim Ozcelik
Is there a way to set zope permissions for files that are linked to zope with file system directory view. For example, i have a
zope python script which must only be executed by users that have
manager role. In order to do this i think i have 2 alternatives:




1- I can control the permission in the zope python script script



user = getAuthenticatedUser() 

if(user has manager role):

 

else:

 go to login



2- I can put a special file like .metadata file and set the python script zope permissions. (I don't know how can i do this)



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


[Zope-dev] Re: File System Directory Files Permission Setting

2005-08-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Evrim Ozcelik wrote:
 Is there a way to set zope permissions for files that are linked to zope 
 with file system directory view. For example, i have a zope python script 
 which must only be executed by users that have manager role. In order to do 
 this i think i have 2 alternatives:
  
 1- I can control the permission in the zope python script script
 
 user = getAuthenticatedUser() 
 if(user has manager role):
 
 else:
 go to login
 
 2- I can put a special file like .metadata file and set the python script 
 zope permissions. (I don't know how can i do this)

First, FSPythonScript, DirectoryView, etc. are from CMFCore -- the more
appropriate list for this question would be [EMAIL PROTECTED] (CC'ed).

Second:  the .metadata file allows you to change a number of settings
for filesystem-based objects, including title, cache manager, proxy
roles, and the role permission map.  In your case, the map is the
important setting:  you want to restrict the View permission to the
Manager role, e.g:

 [security]
 View = 0:Manager

Where the '0:' bit turns off the Acquire? flag.


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

iD8DBQFC8OVK+gerLs4ltQ4RAkLyAJ0V3MGg0Vq5wd5Dsz6v7LpRIdFhgACfQihx
BAJF8cTx890GdYKxvFgrc+Q=
=BYMu
-END PGP SIGNATURE-

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


[Zope-dev] Username/userid separation

2005-08-03 Thread Leonardo Rochael Almeida
Hi,

I've started the lra-userid_username_separation-branch (from
Zope-2_8-branch to start from a stable point) in order to implement
proper userid/username separation in Zope.

I don't intend to change the default user folder implementation, just
the ZMI interface for owner and local roles so that they keep using
userid for storage like they currently do but use usernames for display
(specifically acl_users.getUserById(id).getUserName()). The intent is to
never leak the userid to the ZMI (except for url query strings and
such), and to never store the username persistently.

The motivating usecase is an LDAP (eDirectory) authenticated system
where the username for a user can change, but not the internal ID (a
string).

This will also help ActiveDirectory integration, which also has an
internal ID to reference users.

I remember there being a discussion about this in the list archives, but
a Google search didn't help much.

Are there any other projects in this area that I should colaborate with
instead of duplicating efforts?

Are there any considerations I should be aware of?

Is the Proposals wiki pages still used for this kind of change?

Cheers, Leo

-- 
Leonardo Rochael Almeida [EMAIL PROTECTED]
Enfold Systems

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


Re: [Zope-dev] Username/userid separation

2005-08-03 Thread Tino Wildenhain
Am Mittwoch, den 03.08.2005, 21:01 -0300 schrieb Leonardo Rochael
Almeida:
 Hi,
 
 I've started the lra-userid_username_separation-branch (from
 Zope-2_8-branch to start from a stable point) in order to implement
 proper userid/username separation in Zope.
 
 I don't intend to change the default user folder implementation, just
 the ZMI interface for owner and local roles so that they keep using
 userid for storage like they currently do but use usernames for display
 (specifically acl_users.getUserById(id).getUserName()). The intent is to
 never leak the userid to the ZMI (except for url query strings and
 such), and to never store the username persistently.
 
 The motivating usecase is an LDAP (eDirectory) authenticated system
 where the username for a user can change, but not the internal ID (a
 string).
 
 This will also help ActiveDirectory integration, which also has an
 internal ID to reference users.
 
 I remember there being a discussion about this in the list archives, but
 a Google search didn't help much.
 
 Are there any other projects in this area that I should colaborate with
 instead of duplicating efforts?
 
 Are there any considerations I should be aware of?

Are you aware of the PAS (Pluggable Auth Service) project?

http://cvs.zope.org/Products/PluggableAuthService/

They already have a separation of uid and login.
What this product could use is just some polishing
and a lot of documentation for the users.

All the other things you mention (including a LDAP
plugin) are already done.



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


AW: [Zope] Re: Oracle 9.2.0.2

2005-08-03 Thread Happle Dr., Klaus Martin
Very nice, so I can try it also with SQLRelay. The troubelsome is that SQLRelay 
comes not with a DB API 2.0 compatible Wrapper so we can't test it immediatly. 
The possible solutions to write a wrapper for SQLRelay or to reimplemented the 
database access in our scripts/environmnet taking up much time and so dependend 
from our time.

To the difficult bug in DCOracle2, I found the problem:

For the fetch of LONG variables the authors used a Long fetch holder 
LongFetch and the Oracle OCIDefineByPos in the OCI_DYNAMIC_FETCH mode. But in 
this mode one important variable (also two other variables but we can focus our 
interest to the important variable: the indicator which signalize NULL value) 
is ignored! see Oracle Call Interface, Programmer's Guide indp (IN/OUT), 
alenp (IN/OUT), rcodep (OUT) are Ignored for dynamic binds. (page 15-68, ..., 
15-77)

So the methods to give the values from a field reported non-deterministically 
None because the indicator variable which is declared but not initialized can 
have every value and the if-statement

indp = self-rs-indp;

/* If the indicator is -1 (NULL) and the fetch result is
 * OCI_SUCCESS or OCI_SUCCESS_WITH_INFO, return None.
 */
if (*indp == -1 
(self-rs-fetchResultCode==OCI_SUCCESS_WITH_INFO || 
 self-rs-fetchResultCode==OCI_SUCCESS)) {
Py_INCREF(Py_None);
(TRACES)
return Py_None;
}

in ResultSetItem_value can non-deterministically return a Py_None.

The problem is that the authors doesn't synchronize the pointer of LongFetch 
with the pointer of the ResultSet-Object in the case of a OCI_DYNAMIC_FETCH 
mode, so we can results with wrong value None for non empty long fields 
(because the indicator is an noninitialized pointer).

When I synchronize the pointer with:
rs-indp = lf-ind; //KMH, 2.8.2005 synchronisation of 
dynamicFetch with ResultSet
rs-rcodep = lf-rcode; //KMH, 2.8.2005 
synchronisation of dynamicFetch with ResultSet at the points where the 
LongFetch are initialized (show longFetchInit) so the pointer variable indp of 
the ResultSet-Object become the correct value.

For the pointer alenp I have yet no solution because it was a ub2 pointer and 
the LongFetch have no equivalent (eg. the length is a long and so on). An 
adequate solution is only necessary when we would used the compiler symbol 
ZEROLENISNULL because in this case the values for non empty long fields can 
also results a None.

Klaus Happle

-Ursprüngliche Nachricht-
Von: Maciej Wisniowski [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 1. August 2005 11:09
An: Dieter Maurer; zope@zope.org
Betreff: Re: [Zope] Re: Oracle 9.2.0.2



A colleague of mine currently hunts a difficult bug in DCO2 which 
causes wrong query results with a probability of about 0.0025 (non 
empty long fields are non-deterministically reported as None).


He also tried cx_Oracle. It is more reliable but by a factor of 4 
slower than DC02.
  

And what with SQLRelay? I did only one stupid test but SQLRelay was faster than 
DCOracle2 in it. SQLRelay has function that allows to set buffer size and 
optimize it to specific kind of queries.

-- 
Maciej Wisniowski
___
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] rendering the contents of ..

2005-08-03 Thread J Cameron Cooper

David Bear wrote:

On 8/1/05, J Cameron Cooper [EMAIL PROTECTED] wrote:


David Bear wrote:


I am looking at a couple way of producing a qotd solution.

one way is to put quotes in a folder. Then use objectvalues on the
folder  and randomly select one of the items. I get get the objectid.
but I don't know what I use to get the 'content' of the object.. what
is the method to get the 'rendered' and unrendered content of an
object.

In this case I'm using objects of type file (setting content type to
text/plain) (ofcourse the content is plain text)

I may find the using a zpt, html, or stx object will work better. I'm
hoping there is a method to get either a rendered view of the file,
(if zope knows how to render it) or unrendered, and I'll worry about
rendering it elsewhere.


The contents of a File object can be gotten at simply by calling it. You



sorry to be dense here. Its been a long time since I read the zope
book. I have the following code:
=
from Products.PythonScripts.standard import html_quote
import random
request = container.REQUEST
RESPONSE =  request.RESPONSE
# Return a string identifying this script.
q = container.quotes.objectIds()
print random.choice(q)()
return printed
=

But this returns an TypeError, str is not callable. How do I get this
code to return a random object from the quotes container?


Of course it does. What does 'objectIds' return? Answer: a list of ids 
(strings) and not objects. If you want objects, you must ask a different 
way, as another message provides.


Also, there's not particular reason to use the 'print' facility. You may 
simply say::


  return random.choice(q)()

and get the same effect.

--jcc


can also get at the underlying data with the 'data' attribute, which is
useful if the contents are large (since it provides a 'Pdata' object
rather than a string.) This is just as it says in
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixB.stx

Other object types, like those that have to do rendering, you can just
call for the rendered content. Methods 'document_src' or 'read' will
usually work for the source.

   --jcc
--
Building Websites with Plone
http://plonebook.packtpub.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] RE: Blobs in Interbase

2005-08-03 Thread Ashley Lloyd



Bob, you're a star!

I unpacked it, restarted Zope, and there it 
was!

Marvellous, I've now got a kinterbase installed 
that works.

Thats the good news.

The bad news is I still can't update the blob field 
- I still get errors. I think, unless anyone here has any more ideas, I'll have 
to go and bother people in another mailing list.

I've tried absolutely everything I can think of - 
sqlvar tags of type string and nb, trying cast(... as blob) in the sql (doesn't 
seem to work), I've even just tried setting it to 'Hello world', without using 
any dtml variables at all, and it won't accept it. 
From what I've read elsewhere, there are tools in 
some software (mostly for Delphi I believe), that will allow updates of text 
blob fields, so I was hoping that kinterbasdb had something in it as well, but 
if it does, it isn't working on mine!!

The interbase version is 6.0-6.1, if that jogs any 
memories for anyone.

Thanks once again to everyone who has tried to help 
me.

Kind regards

Ashley
Ashley Lloyd wrote: 
  Hi Bob,

If you don't mind doing that, I'd really appreciate it.
Nothing I seem to be trying to install at the moment seems to be working.

As with Phil, mine is from a Plone install, but I have got other versions of
Python elsewhere, (I think there's even an old Zope standalone instance
still lurking somewhere, altho I don't think it can run) just to confuse
matters.
Anyway, my Zope is even older - 2.6.1, so hopefully it'll be compatible.

Thanks very much again for your help.

Ashley

- Original Message - 
From: "Bob Corriher" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Ashley Lloyd" [EMAIL PROTECTED]; zope@zope.org
Sent: Tuesday, August 02, 2005 4:01 PM
Subject: Re: [Zope] RE: Blobs in Interbase


  
Hi Phil  Ashley,

I also have kinterbasedbDA working on Windows. It is with an older
version of Zope (2.6.4). The DA version is 1.1.1.1. The kinterbasdb
version is 3.0.1. It uses a dll called _kinterbasedb.dll, instead of a
pyd. I don't remember the exact installation process anymore, but I
think I just grabbed it from another working site. If you like, I could
zip it up and send it to you.

The site uses blobs (all sub_type text) in many places, so maybe
older/other versions don't support this as well.

Bob Corriher
CTO
P-Wave Inc.

Philip Kilner wrote:


  Hi Ashley,

Can't help you on the blob front...

Ashley Lloyd wrote:


  
I've had trouble installing kinterbase (it complains about LDAP..?), so
at the moment I use gvib. I've pencilled in quite a bit of time today to
try to get kinterbase installed.
Unfortunately I'm on Windows, which I'm guessing contributes to the
installation problems!



...but I can confirm that KIinterbaseDA works nicely on Windows - I've
been happily using it for some time, and haven't had any issues at all
(BTW, I don't use LDAP and KInterbaseDA has never mentioned it!). The
only problem I had at install time was getting my head around the
distinction between the Python part and the Zope DA part.

HTH




  
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/1/2005



  
  

  No virus found in this outgoing message.Checked by AVG 
  Anti-Virus.Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 
  8/1/2005
___
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] How to instruct my Zope to use another pytrhon than the one it was budled with.

2005-08-03 Thread tomatbiz-tominfo
Hello everybody,
its a hot day here today and pytho-zope-plone is the
best   refreshment of them all...
By the way i run on windows and my weapons bay as
follows :
 Zope Version (mast be 2.7.0)
(unreleased version, python 2.3.3, win32)

Python Version
2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit
(Intel)]

System Platform
win32

SOFTWARE_HOME
C:\Program Files\Plone 2\Zope\lib\python

ZOPE_HOME
C:\Program Files\Plone 2\Zope

INSTANCE_HOME
C:\Program Files\Plone 2\Data

CLIENT_HOME
C:\Program Files\Plone 2\Data\var

Network Services
ZServer.HTTPServer.zhttp_server (Port: 80)
ZServer.HTTPServer.zhttp_server (Port: 8080)


I also have another Python version on my system and i
was wondering how could i tell Zope to use that one
instead of the one it comes with from the installation
executable package.






___ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 

___
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] RE: Blobs in Interbase

2005-08-03 Thread Bob Corriher

Hi Ashley,

One down, one to go. I've used this adapter with Interbase 6.0 with no 
problems, although I've since upgraded to Firebird.


Perhaps you could send the error traceback you get, we could get some 
clues from that. Also, the metadata from the table that shows the 
problem. It's got to be in there somewhere.


Bob Corriher
CTO
P-Wave Inc.


Ashley Lloyd wrote:


Bob, you're a star!
 
I unpacked it, restarted Zope, and there it was!
 
Marvellous, I've now got a kinterbase installed that works.
 
Thats the good news.
 
The bad news is I still can't update the blob field - I still get 
errors. I think, unless anyone here has any more ideas, I'll have to 
go and bother people in another mailing list.
 
I've tried absolutely everything I can think of - sqlvar tags of type 
string and nb, trying cast(... as blob) in the sql (doesn't seem to 
work), I've even just tried setting it to 'Hello world', without using 
any dtml variables at all, and it won't accept it.
From what I've read elsewhere, there are tools in some software 
(mostly for Delphi I believe), that will allow updates of text blob 
fields, so I was hoping that kinterbasdb had something in it as well, 
but if it does, it isn't working on mine!!
 
The interbase version is 6.0-6.1, if that jogs any memories for anyone.
 
Thanks once again to everyone who has tried to help me.
 
Kind regards
 
Ashley



Ashley Lloyd wrote:


Hi Bob,

If you don't mind doing that, I'd really appreciate it.
Nothing I seem to be trying to install at the moment seems to be working.

As with Phil, mine is from a Plone install, but I have got other versions of
Python elsewhere, (I think there's even an old Zope standalone instance
still lurking somewhere, altho I don't think it can run) just to confuse
matters.
Anyway, my Zope is even older - 2.6.1, so hopefully it'll be compatible.

Thanks very much again for your help.

Ashley

- Original Message - 
From: Bob Corriher [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: Ashley Lloyd [EMAIL PROTECTED]; zope@zope.org
Sent: Tuesday, August 02, 2005 4:01 PM
Subject: Re: [Zope] RE: Blobs in Interbase


 


Hi Phil  Ashley,

I also have kinterbasedbDA working on Windows. It is with an older
version of Zope (2.6.4). The DA version is 1.1.1.1. The kinterbasdb
version is 3.0.1. It uses a dll called _kinterbasedb.dll, instead of a
pyd. I don't remember the exact installation process anymore, but I
think I just grabbed it from another working site. If you like, I could
zip it up and send it to you.

The site uses blobs (all sub_type text) in many places, so maybe
older/other versions don't support this as well.

Bob Corriher
CTO
P-Wave Inc.

Philip Kilner wrote:

   


Hi Ashley,

Can't help you on the blob front...

Ashley Lloyd wrote:


 


I've had trouble installing kinterbase (it complains about LDAP..?), so
at the moment I use gvib. I've pencilled in quite a bit of time today to
try to get kinterbase installed.
Unfortunately I'm on Windows, which I'm guessing contributes to the
installation problems!



   


...but I can confirm that KIinterbaseDA works nicely on Windows - I've
been happily using it for some time, and haven't had any issues at all
(BTW, I don't use LDAP and KInterbaseDA has never mentioned it!). The
only problem I had at install time was getting my head around the
distinction between the Python part and the Zope DA part.

HTH




 


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/1/2005


   




No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/1/2005





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 8/1/2005

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

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


Re: [Zope] Zope 2.8 and conflict errors

2005-08-03 Thread Maciej Wisniowski

It might. ZEO adds network overhead to ZODB transactions,
which generally increases the likelihood of conflict errors.


I've created ZEO and executed the same test 
with my application.


Tests were done with SQLRelay backend (DCOracle2 is 
running now ;))


I have tested this with 50, 55, 60 and 70 users.
with 50 users: no 'HTTP/1.1 500' errors
with 55 users: no 'HTTP/1.1 500' errors
with 60 users: no 'HTTP/1.1 500' 1 error for 1800 urls requested
with 65 users: no 'HTTP/1.1 500' 4 errors for 1950 urls requested

All errors are with OOBTree and as I can see 
with tempstorage.TemporaryStorage. They look like:


li  Module ZPublisher.Publish, line 187, in publish_module_standard/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 161, in publish/li
li  Module ZPublisher.Publish, line 151, in publish/li
li  Module Zope2.App.startup, line 158, in zpublisher_exception_hook/li
li  Module ZPublisher.Publish, line 119, in publish/li
li  Module Zope2.App.startup, line 215, in commit/li
li  Module transaction._manager, line 84, in commit/li
li  Module transaction._transaction, line 381, in commit/li
li  Module transaction._transaction, line 379, in commit/li
li  Module transaction._transaction, line 424, in _commitResources/li
li  Module ZODB.Connection, line 462, in commit/li
li  Module ZODB.Connection, line 503, in _commit/li
li  Module ZODB.Connection, line 526, in _store_objects/li
li  Module tempstorage.TemporaryStorage, line 200, in store/li
/ulConflictError: 
database conflict error (oid 0x0944, class BTrees._OOBTree.OOBTree, 
serial this txn started with 0x035f134dc11a2977 2005-08-03 12:29:45.258327, serial 
currently committed 0x035f1357051c7199 2005-08-03 12:39:01.197916)



So far I see that DCOracle2 version of my app caused 9 errors for 
the same scenario with 50 users. These are conflict errors with 
DCOracle2.DA.Procedure and in ZEO.ClientStorage...


--
Maciej Wisniowski

___
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] How to instruct my Zope to use another pytrhon than the oneit was budled with.

2005-08-03 Thread Jim Abramson
 
 I also have another Python version on my system and i was 
 wondering how could i tell Zope to use that one instead of 
 the one it comes with from the installation executable package.
 
If you start up using the runzope.bat script in ZOPE_HOME/bin, just edit
the value of PYTHON to point to the desired alternate executable.  Don't
automatically expect things to work smoothly on the first try - watch
the output from startup and see if you need to pull missing dependencies
into the sys.path (edit the value of PYTHONPATH if this is necessary) -
or if the executable is even compatible at all (version,
distribution/standard library, etc).

Jim
___
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] PCNG 1.2.7 does exception when being added.

2005-08-03 Thread Vlada Macek
I have the following configuration, both Zope and Plone are up to date
to these branches:

svn://svn.zope.org/repos/main/Zope/branches/Zope-2_8-branch
https://svn.plone.org/svn/plone/bundles/2.1

Plone version: Plone 2.1-beta2 (svn/unreleased)
Zope version: Zope (Zope 2.8.1-b1, python 2.3.5, linux2)
Python 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12
Browser(s) and version(s): Firefox 1.0.4
Operating system: Linux Debian 3.1 (Sarge) stable


When I install PloneCollectorNG 1.2.5 from tar.gz and try to add the
pcng tracker from Plone, the following error will always rise:

Error Type
BadRequest
Error Value
The id plaintext_lexicon is invalid - it is already in use.

The full log item from the Plone Error Log is attached.

Is it that PCNG 1.2.7 cannot be used with recent SVN Zope/Plone? If so,
couldn't this be mentioned somewhere in the docs, please?

Thanks in advance.

-- 

\//\/\
(Sometimes credited as 1494 F8DD 6379 4CD7 E7E3 1FC9 D750 4243 1F05 9424.)


Čas
2005/08/03 18:45:45.912 GMT+2
Jméno uživatele
admin (admin)
Adresa URL požadavku
http://localhost:8080/HIS/sczescwerheerhdfb/createObject
Typ výjimky
BadRequest
Hodnota výjimky
The id plaintext_lexicon is invalid - it is already in use.

Traceback (innermost last):

* Module ZPublisher.Publish, line 113, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Products.CMFFormController.FSControllerPythonScript, line 105, in 
__call__
* Module Products.CMFFormController.Script, line 141, in __call__
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 163, in _exec
* Module None, line 16, in createObject
  FSControllerPythonScript at /HIS/createObject used for 
/HIS/sczescwerheerhdfb
  Line 16
* Module Products.ATContentTypes.lib.constraintypes, line 274, in 
invokeFactory
* Module Products.CMFCore.PortalFolder, line 408, in invokeFactory
* Module Products.CMFCore.TypesTool, line 930, in constructContent
* Module Products.CMFCore.TypesTool, line 340, in constructInstance
* Module Products.CMFCore.TypesTool, line 571, in _constructInstance
* Module Products.PloneCollectorNG.Collector, line 4, in addPloneCollectorNG
* Module OFS.ObjectManager, line 293, in _setObject
* Module Products.PloneCollectorNG.Collector, line 122, in manage_afterAdd
* Module Products.PloneCollectorNG.Collector, line 146, in setup_tools
* Module Products.PloneCollectorNG.Collector, line 162, in _setup_catalog
* Module Products.BTreeFolder2.BTreeFolder2, line 431, in _setObject
* Module Products.PloneCollectorNG.Collector, line 952, in manage_afterAdd
* Module Products.CMFCore.CatalogTool, line 184, in _initIndexes
* Module OFS.ObjectManager, line 265, in _setObject
* Module OFS.ObjectManager, line 84, in checkValidId

BadRequest: The id plaintext_lexicon is invalid - it is already in use.

REQUEST
form
type_name   'PloneCollectorNG'
cookies
tree-s  
'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWxzsQJGvGlQiSNkfR5wuSsQDKJCbqAQD1tBZ8'
zmi_top_frame   ''
zmi_use_css '1'
I18N_LANGUAGE   'cs'
dtpref_cols '95%'
__ac_name   'admin'
wstyle  ''
dtpref_rows '25'
photo_display   'large'
_ZopeId '40204748A18SzYLK0d0'
lazy items
other
zmi_top_frame   ''
tree-s  
'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWxzsQJGvGlQiSNkfR5wuSsQDKJCbqAQD1tBZ8'
URL3'http://localhost:8080'
URL2'http://localhost:8080/HIS'
AUTHENTICATION_PATH ''
LANGUAGE'cs'
AUTHENTICATED_USER  admin
type_name   'PloneCollectorNG'
SERVER_URL  'http://localhost:8080'
traverse_subpath[]
SESSION id: 11230875371247919349, token: 40204748A18SzYLK0d0, contents: []
dtpref_cols '95%'
__ac_name   'admin'
dtpref_rows '25'
ACTUAL_URL  'http://localhost:8080/HIS/sczescwerheerhdfb/createObject'
_ZopeId '40204748A18SzYLK0d0'
URL 'http://localhost:8080/HIS/sczescwerheerhdfb/createObject'
I18N_LANGUAGE   'cs'
wstyle  ''
PUBLISHED   FSControllerPythonScript at /HIS/createObject used for 
/HIS/sczescwerheerhdfb
controller_state
Products.CMFFormController.ControllerState.ControllerState object at 
0x4226364c
TraversalRequestNameStack   []
LANGUAGE_TOOL   Products.PloneLanguageTool.LanguageTool.LanguageBinding 
instance at 0x4488c90c
zmi_use_css '1'
BASE1   'http://localhost:8080'
BASE2   'http://localhost:8080/HIS'
BASE3   'http://localhost:8080/HIS/sczescwerheerhdfb'
BASE4   'http://localhost:8080/HIS/sczescwerheerhdfb/createObject'
URL1'http://localhost:8080/HIS/sczescwerheerhdfb'
photo_display   'large'
URL0http://localhost:8080/HIS/sczescwerheerhdfb/createObject
URL1http://localhost:8080/HIS/sczescwerheerhdfb
URL2

Re: [Zope] PCNG 1.2.7 does exception when being added.

2005-08-03 Thread Andreas Jung



--On 3. August 2005 19:11:18 +0200 Vlada Macek [EMAIL PROTECTED] wrote:


I have the following configuration, both Zope and Plone are up to date
to these branches:

svn://svn.zope.org/repos/main/Zope/branches/Zope-2_8-branch
https://svn.plone.org/svn/plone/bundles/2.1

Plone version: Plone 2.1-beta2 (svn/unreleased)
Zope version: Zope (Zope 2.8.1-b1, python 2.3.5, linux2)
Python 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12
Browser(s) and version(s): Firefox 1.0.4
Operating system: Linux Debian 3.1 (Sarge) stable


When I install PloneCollectorNG 1.2.5 from tar.gz and try to add the
pcng tracker from Plone, the following error will always rise:

Error Type
BadRequest
Error Value
The id plaintext_lexicon is invalid - it is already in use.



PCNG is not ready for Plone 2.1. Especially the UI breaks in Plone 2.1
after a quick test last week. Unfortunately there won't be a fixed version 
available before November or so (vacation, conferences etc.).


-aj




pgp2OIWq0YFHW.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] PUT_factory fight

2005-08-03 Thread Dieter Maurer
Garito wrote at 2005-8-2 12:34 +0200:
 ...
Could anyone find the mistake?

You forgot to tell us what problem you observe...
You say you were fighting but that is not enough.
What happened precisely?

-- 
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] NauSchduler problem

2005-08-03 Thread Dieter Maurer
Barry Drake wrote at 2005-8-2 14:00 -0700:
 ...
The Script Python that sends the digest works fine
when tested alone, but when I run it from NS the URL,
gotten from obj.absolute_url(), is replace with the
physical path.

And what is it otherwise?

Note that absolute_url combines the physical path
with request information.

When you use it from the scheduler, there probably is not request.
Therefore, you may get only the physical path part...

-- 
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] When Debug Spinning Zope doesn't work

2005-08-03 Thread Dieter Maurer
Paul Winkler wrote at 2005-8-1 12:12 -0400:
 ...
But, what
does it mean when I get nothing at all from info threads in gdb?  

That gdb does not understand the OS structures.

I found that gdb has significant problems to understand
core files of multithreaded applications and
is easily confused by many normal behaviour of such applications.

The first thing, I usually do, when I again hit a GDB problem is
to upgrade GDB (in the hope that the new version learned a bit...)

-- 
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] test for the existence of a nodeValue

2005-08-03 Thread Dieter Maurer
Jon Bowlas wrote at 2005-8-2 19:08 +0100:
 ...
I'm pretty new to python and zope but would like to know how I can adapt
this script below to test to see if nodeValue actually contains a value and
if it doesn't then I would like to return a default value I can check for
using my zpt that references this script:

You probably should work through the Python tutorial you will
find on http://python.org;.

 ...
if not nodes:

return ''

return nodes[0].childNodes[0].nodeValue

Try:

nodeValue = nodes[0].childNodes[0].nodeValue
if not nodeValue: return someFault
return nodeValue

-- 
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] zserver blocking behavior with a slow request

2005-08-03 Thread Dieter Maurer
Jim Abramson wrote at 2005-8-2 13:07 -0400:
 ...
I have 8 zserver threads and a ZODB pool size of 10.  I'm fairly certain
I'm not maxing these out.  So is this blocking effect just expected
behavior for zope?

No, there should be no blocking.


Although some colleagues reported similar behaviour
with a (non Zope/ZServer) multithreaded application
connecting to Oracle.

They could not yet find the cause of their problem...


-- 
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] Mount points

2005-08-03 Thread Pascal Peregrina
Ok will do.

Thanks 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Dieter Maurer
Sent: 03 August 2005 18:36
To: Pascal Peregrina
Cc: zope@zope.org
Subject: Re: [Zope] Mount points

Pascal Peregrina wrote at 2005-8-2 19:39 +0100:
Is there a way to automount clientstorages ?
(I mean by just editing zope.conf and restarting the Zope instance)

No

Currently I have to add a ZODB Mount Point object through ZMI...

You can automate this mount point creation in a script of yourself...

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


**
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] ZMI manage main and zpt to provide reasonable view of content type

2005-08-03 Thread David Pratt
Hi.  I have been working on a product in that works with filesystem 
content for CMF.  I have my content types developed and they are all 
registered and working fine but my hitch has to do with edit and views 
screens.  I want to emulate the way that the ZMI handles things because 
the manage_main screen is smart enough to display an edit area if 
content type is text/html etc. while it will display binary files 
without an edit area etc.


Where is manage_main for ZMI located to look at what it is doing so 
that I can potentially emulate its behavior in my edit and view ZPT?  I 
am not certain how many behaviors it has based on the type it gets - 
maybe there are really only a few.


Alternatively, if there are suggestions on what I could do in my ZPT to 
display the right view based on the object's content type, this would 
be quite welcome.  I don't want to resort to constructing a list of all 
content types (mime types)  and testing against these so am hoping I 
can hook into zope's functionality that is already doing this for ZMI.  
Many thanks.


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 )


[Zope] Re: ZMI manage main and zpt to provide reasonable view of content type

2005-08-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Pratt wrote:
 Hi.  I have been working on a product in that works with filesystem
 content for CMF.  I have my content types developed and they are all
 registered and working fine but my hitch has to do with edit and views
 screens.  I want to emulate the way that the ZMI handles things because
 the manage_main screen is smart enough to display an edit area if
 content type is text/html etc. while it will display binary files
 without an edit area etc.
 
 Where is manage_main for ZMI located to look at what it is doing so that
 I can potentially emulate its behavior in my edit and view ZPT?  I am
 not certain how many behaviors it has based on the type it gets - maybe
 there are really only a few.

 $ZOPE/lib/python/OFS/dtml/fileEdit.dtml

 Alternatively, if there are suggestions on what I could do in my ZPT to
 display the right view based on the object's content type, this would be
 quite welcome.  I don't want to resort to constructing a list of all
 content types (mime types)  and testing against these so am hoping I can
 hook into zope's functionality that is already doing this for ZMI.  Many
 thanks.


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

iD8DBQFC8REJ+gerLs4ltQ4RAiBsAJ90AZ48N8dXegbuz+R/6lvUxuNIRQCdEbgR
TGjLiz6dwjVs/larYlXRitY=
=OefI
-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] zserver blocking behavior with a slow request

2005-08-03 Thread Jim Abramson
I'm finding that once a user requests a page which runs a 
 particularly slow sql (say up to 5 minutes),   any other 
 subsequent requests seem to take the hit as well, and return 
 very slowly.
 Take a look at DadlockDebugger product - you'll see what is 
 happening with your Zope threads.
 

Thanks, this looks quite handy, I am going to give it a whirl (I assume
that threadframe module dependency hasn't yet hosed anyone's Linux
machine - funny how a disclaimer can inspire paranoia)

 Isn't it better idea to execute long running query outside of 
 zope - external method or sth, and only check for results 
 even with simple page reload? We did something like this with 
 pdf generation and this worked as expected, but of course you 
 need some additional work to create such thing.
 

Yes I agree, in my case those SELECTs aren't *supposed* to be taking 5
minutes.  That's a separate problem.  However when such a problem bites
I don't want all of my users to suffer, just the unlucky one who
requested the doomed sql to be run.

   So is this blocking effect just expected behavior for zope?
 We are using Zope and Oracle too, and even 10 threads... and 
 I didn't noticed something like this. What is your processor 
 doing then? What is the CPU(s?) load.

The single CPU isn't loaded at all.  But if DeadlockDebugger doesn't
turn up any good clues I will do some investigating at the system level.

Thanks for advice,
Jim
___
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] zserver blocking behavior with a slow request

2005-08-03 Thread Jim Abramson
 I have 8 zserver threads and a ZODB pool size of 10.  I'm fairly 
 certain I'm not maxing these out.  So is this blocking effect just 
 expected behavior for zope?
 
 No, there should be no blocking.
 
 
 Although some colleagues reported similar behaviour with a 
 (non Zope/ZServer) multithreaded application connecting to Oracle.
 
 They could not yet find the cause of their problem...
 

Interesting.  Are you aware if your colleagues' was a python(/dcoracle2)
app?

thx
Jim


___
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] NauSchduler problem

2005-08-03 Thread Barry Drake
Dieter,
Thank you.  I replaced the call

obj.absolute_url()

with

obj.getPhysicalPath()

and prepended the portal URL in my code.  That way the
URL is not overwritten with the physical path by
NauScheduler.

Barry

--- Dieter Maurer wrote:

 Barry Drake wrote at 2005-8-2 14:00 -0700:
  ...
 The Script Python that sends the digest works fine
 when tested alone, but when I run it from NS the
 URL,
 gotten from obj.absolute_url(), is replace with the
 physical path.
 
 And what is it otherwise?
 
 Note that absolute_url combines the physical path
 with request information.
 
 When you use it from the scheduler, there probably
 is not request.
 Therefore, you may get only the physical path
 part...
 
 -- 
 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 )


[Zope] MVC Approach

2005-08-03 Thread Thomas Adams

Hi all,

I'm a newbie to Zope, using version 2.7.3 (okay it is not the newest one)
and I want to know if there is something
like a MVC approach available for Zope, i.e. Model-View-Controller
approach, as it is for instance in Java with  the Struts framework from 
Apache.


To be more specific:

- The Model consists of several python classes implementing business logic
(the pendant to Enterprise Java Beans or simple Java Beans)

- The Views producing  the visual appearance of the business objects
 (in java or more specific in Struts these are the custom tag libraries)

- The Controller, as a kind of glue between the two above, is 
controlling the work/process-flow

 (in java with servlets and in struts with actions classes (as a minimum) )

To transfer this appraoch to Zope, I'm not sure:

Views:
DTML-Document and/or DTML-Methods?

Controller:
PythonScripts?

Models:
I'm absolutely not sure, Pluggable brains? (the Zope book has a example 
but only as a handling of resultsets)


So if has anybody a hint if there are some resources
in the web, please post it.

P.S: I don't know Zope 3 (Is that apossible answer of my questions?)

Thasnks in advance
Regards
Thomas Adams







begin:vcard
fn:Thomas Adams
n:Adams;Thomas
adr;quoted-printable:;;Schwanthalerstr. 184;M=C3=BCnchen;Bayern;80339;Deutschland
email;internet:[EMAIL PROTECTED]
tel;work:089 55 186 500
tel;home:089 54 03 28 96
version:2.1
end:vcard

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


Re: [Zope] Zope 2.8 and conflict errors

2005-08-03 Thread Maciej Wisniowski

I've lost context here... is this good or bad? ;-)


 I'm keenly interested in your results, so 
 please let me know.


I've just send my results ;)

Good or bad... it depends. It's much better than 
it was with Zope 2.8.0, it is better than with 
Zope 2.7.2 but it is not perfect because 
errors are still here.


Our application will have about 500 users or more.
Of course they won't be working simultaneously and 
app will be running on much faster machines than 
one used for tests but I suppose that some errors

will appear.

For me these results seems really good. 
Another good thing is that the SQLRelayDA is going 
to be more stable than DCOracle2 and is even faster 
than DCO2. I have almost ready products, scripts and

changes to SQLRelayDA that can convert application
from DCO2 to SQLRelay with one click and we are 
going to resign from DCO2, but still more testing 
is necessary.



Previously you've written that:

Zope 2.8.0 ships with a TemporaryStorage 
implementation (used by sessions in the default
configuration) which does not implement MVCC.  
The one in 2.8.1 (now in beta) and better will

implement MVCC

so I hope that maybe next 
Zope 2.8.x release will be using MVCC for OOBTree 
(if this is the point?). Does anybody know 
something about that?


--
Maciej Wisniowski

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

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


Re: [Zope] Zope 2.8 and conflict errors

2005-08-03 Thread Chris McDonough
On Wed, 2005-08-03 at 23:02 +0200, Maciej Wisniowski wrote:
 Previously you've written that:
 
 Zope 2.8.0 ships with a TemporaryStorage 
 implementation (used by sessions in the default
 configuration) which does not implement MVCC.  
 The one in 2.8.1 (now in beta) and better will
 implement MVCC
 
 so I hope that maybe next 
 Zope 2.8.x release will be using MVCC for OOBTree 
 (if this is the point?). Does anybody know 
 something about that?

MVCC only really relates to storages.  Individual database objects don't
participate in MVCC.   If you put your OOBTrees in a storage that
supports MVCC, you get it for free.

- C


___
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] MVC Approach

2005-08-03 Thread Thomas Adams

Asad Habib schrieb:


Hi Thomas. If you plan to implement MVC, my advice would be to stick to
Java technology - it's by far the best for implementing MVC - I mean
literally the best! You may want to look at JSF or the Spring frameworkas
alternatives to Struts.

- Asad


On Wed, 3 Aug 2005, Thomas Adams wrote:

 


Hi all,

I'm a newbie to Zope, using version 2.7.3 (okay it is not the newest one)
and I want to know if there is something
like a MVC approach available for Zope, i.e. Model-View-Controller
approach, as it is for instance in Java with  the Struts framework from
Apache.

To be more specific:

- The Model consists of several python classes implementing business logic
(the pendant to Enterprise Java Beans or simple Java Beans)

- The Views producing  the visual appearance of the business objects
 (in java or more specific in Struts these are the custom tag libraries)

- The Controller, as a kind of glue between the two above, is
controlling the work/process-flow
 (in java with servlets and in struts with actions classes (as a minimum) )

To transfer this appraoch to Zope, I'm not sure:

Views:
DTML-Document and/or DTML-Methods?

Controller:
PythonScripts?

Models:
I'm absolutely not sure, Pluggable brains? (the Zope book has a example
but only as a handling of resultsets)

So if has anybody a hint if there are some resources
in the web, please post it.

P.S: I don't know Zope 3 (Is that apossible answer of my questions?)

Thasnks in advance
Regards
Thomas Adams








   




 


Hi Asad ,

I was afraid of that ;-(. But let me spin around yet:

- Views:
   --- Editing/Creating business objects:
   ZPT's/DTML's with appropriate properties managing view 
concerns, genaralized  for a  category
  of possible (already standardised) business/zope objects 
(gaining from aquisition rules)

   --- Displaying Results: Pluggable Brains as subclass of above ones

- Model : 
   Perhaps Zope Products ???, handling business logic , I'm not sure if 
that would work, perhaps a so

   called workaround with.interfacing and so on.

- Controllers:
  really PhytonSricpts, I think so, or alternatively dtml-methods


So, why I'm asking:

I want to implement a standardized web application (at this time it's 
only a stupid
choose and buy like any other so called e-commerce/shopping cart system 
, but my
intention is to make it almost configurable in all three aspects (i know 
... but William S. wrote

#
#And enterprises of great pith and moment
#With this regard their currents turn awry,
#And lose the name of action. - Soft you now!
#The fair Ophelia! Nymph, in thy orisons
#Be all my sins remember'd.
  ;-))

Is that totally wrong?
or is that a so called acceptable (but not ideal) approach?

Thanks in Advance
Thomas  Adams



begin:vcard
fn:Thomas Adams
n:Adams;Thomas
adr;quoted-printable:;;Schwanthalerstr. 184;M=C3=BCnchen;Bayern;80339;Deutschland
email;internet:[EMAIL PROTECTED]
tel;work:089 55 186 500
tel;home:089 54 03 28 96
version:2.1
end:vcard

___
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] Nothing in undo list

2005-08-03 Thread robert rottermann

I created a folder and added a acl_users.

When a user from this acl_users logs in and manipulates things in Zope 
and Plone

he can not see anything in the undo_list.
If I enter as a user that is declared in the root acl_users he can see 
and undo all the

manipulations.
Both of this users are managers.

What could be the reason for this.?
What sould I do that everyone can undo his/her modifications?

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