Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-07 Thread Adrian Hungate

I would like to second this idea.

Adrian...

--
The difficulty of tactical maneuvering consists in turning the devious into
the direct, and misfortune into gain.
- Sun Tzu


- Original Message -
From: Mario Valente [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, March 06, 2002 3:47 PM
Subject: Re: [Zope-dev] Zope 2.6 planning - call for contributors!



   Hi:

   I would like to propose my Paste Reference/symlink hack for
  inclusion into Zope 2.6

   C U!

   -- Mario Valente



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



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



[Zope-dev] multiple database connections

2002-03-07 Thread Jerome Alet

Hi,

First I have to say I've not tried what is discussed below, I'm just
thinking about how this could be done...

Say I have several relationnal databases, both have an identical
structure.

Since these databases are identical, all my ZSQL methods can be used with
any of them.

So I plan to architecture my Folder tree like that :

Level0
|
+-- ZSQLMethod1
+-- ZSQLMethod2
+-- ...
+-- Level1-1
|   |
|   +-- DAConnection
|   +-- ... some stuf specific to this database ...
|
+-- Level1-2
|
+-- DAConnection
+-- ... some stuff specific to this database ...

Each DAConnection connects to a different database, but the id is
identical in order for the ZSQL methods to find it in whichever folder
they are called.

Now the problem is : one can't create a ZSQL method if there's no
DAConnection at the same level or above.

I suppose that creating all my ZSQL methods in for example Level1-1, then
cuttingpasting them in Level0 could work, but I find this very counter
intuitive. And if this would work, then the ZSQL methods wouldn't be
editable anymore since at Level0 there's no DA... 

So my question is : why the hell can't developpers create ZSQL methods as
they see fit, and be allowed to type-in the name of a possibly
not-yet-existing Database Connection ? After all, creating ZSQL methods
isn't for end users, so maybe Zope could trust developpers in knowing
exactly what they want to do...

Adding a free text field and allowing a Free entry in the drop-down list
in the ZSQL method creation form would help. The Test tab form could also
be modified to allow the developper to choose any DA at test time. 

Any comment or a solution to do this the right way ?

thanks in advance.

Jerome Alet - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


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



Re: SV: SV: [Zope-dev] Small Alert - Temp Solution - more...

2002-03-07 Thread Shane Hathaway

On Thu, 7 Mar 2002, Magnus Heino wrote:

  What browser are you using?  Strange things like this happen for me
  occasionally after a Mozilla upgrade, but I just delete the cookies for
  the site and everything goes back to normal.  I figure someone at
  Netscape is just fiddling with the cookie code. :-)

 I'm using IE6.

 It isn't just this one. http://collector.zope.org/Zope/251 and
 http://collector.zope.org/Zope/260 also does different things when using
 VHM.

It would be helpful if you would run tcpwatch and figure out exactly what
interaction is happening between Zope and the browser.  Just use tcpwatch
-p 3128 and set localhost:3128 as your proxy server.

http://hathaway.freezope.org/Software/TCPWatch

Then delete all the stored cookies for your site and see if the problem
disappears.

Shane



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



[Zope-dev] Join the Zope team

2002-03-07 Thread Brian Lloyd

Hi all,

Zope Corp. is looking to add a Project Manager / Technical Lead to 
our team. You can find a full description of the position here:

http://www.zope.com/Corporate/CareerOpportunities/

The position is roughly 50 / 50 engineering and project management. 
In addition to planning and executing customer engagements, you will 
be working with team members and management to develop and deliver 
high quality solutions.

The ideal candidate will have:

  - Deep technical knowledge of Zope / CMF and Python, and experience
building high-quality production systems with these tools

  - Experience managing software projects for internal and external 
customers

  - Strong planning, requirements anaysis and documentation skills

  - Experience managing the full lifecycle of a software project 
from inception to delivery and support

If you are interested in working with us, please send your resume and 
salary requirements in .pdf format to [EMAIL PROTECTED]


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.361.1716  
Zope Corporation   http://www.zope.com 

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



Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-07 Thread Mario Valente


  Hi:

  I think that the possibility of having inactive objects, objects that
 are instantied, exist in the ZODB and in the folder tree but are
 invisibile to the Zope machinery (acquisition, rendering, itemizing)
 by setting/unsettting a property flag would also be something of
 extreme usefulness.

  C U!

  -- Mario Valente



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



Re: [Zope-dev] multiple database connections

2002-03-07 Thread Andy McKay

On March 7, 2002 03:28 am, kapil thangavelu wrote:
 part of this goes back to the old who is zope's target audience days, when
 content managers were supposed to use the zmi directly. plus its just
 generally less confusion, imo.

Getting rid of this assumption will solve lots of daft little issues like 
that for example why does a ZSQL Method need to be tied to a database at all? 

I've hacked ZSQL Method so you can change the database its connected to on 
the fly, this allows you to use one Method on multiple databases (for example 
switching between a development and production database).
--
  Andy McKay

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



[Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jerome Alet

Hi,

I've just tested webDAV access for the very first time using cadaver,
so maybe this is a known problem.

I've locked some objects using cadaver's lock command, and then opened
a browser keeping cadaver's connection opened.

then I've searched for this locks using the ZMI and also a method of 
my own.

All worked fine, the locks were found.

Then some time later I've retried to find the locks, and both the
ZMI and my method returned no lock. However in cadaver the locks
still seemed to be there... 

Then I've unlocked the objects and relocked them in cadaver and 
retried, this time the locks were found again...

I hadn't the time to do some more testing but I find this
surprising.

Does anyone have seen the same problem ?

FYI Zope 2.5.0 + Python 2.1.2 both up-to-date Debian Woody
packages.

bye,

Jerome Alet

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



Re: [Zope-dev] multiple database connections

2002-03-07 Thread Jerome Alet

On Thu, Mar 07, 2002 at 03:28:28AM -0800, kapil thangavelu wrote:
 On Thursday 07 March 2002 02:34 am, you wrote:
 
  not-yet-existing Database Connection ? After all, creating ZSQL methods
  isn't for end users, so maybe Zope could trust developpers in knowing
  exactly what they want to do...
 
 that said, zope doesn't stop a *developer* from doing it themselves.

Thanks!

Jerome Alet

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



Re: [Zope-dev] Zope 2.6 project updated

2002-03-07 Thread Craeg K. Strong

Stephan Richter wrote:

 I am afraid I must second this opinion.  We recently looked at 
 OrderedFolder, thinking to subclass it
 to produce our Slideshow product.   The idea was to make a 
 lightweight web-based replacement for PowerPoint
 where you can define the order of the slides and can hide/show them 
 individually.

 Actually, there SmartWizard (of course built with OF), whcih can be 
 used for Slideshows. I used it for all my talks last year.

For some reason we missed that one :-( Of course, we also wanted 
functionality like selectively hiding slides
(that way you can have lots of slides in a standard slideshow and choose 
subsets for a particular presentation).
Still, the Products _are_ quite similar.  

We might be able to collaborate, but I suspect the Zope-2 architectural 
limitations will make it pretty difficult.
For example, we have three products that are related by inheritance, and 
even though _we_ wrote all of them,
it was interesting how much extra work it was to make them extensible in 
this way.   With the Zope-3 architecture
it would be _much_ easier.

 We found that it was actually easier to create our own 
 OrderedFolder base class and subclass it rather than
 use OF because of the extra functionality we did not want.

 Really? You should just have used OrderedObjectManager as base class.

Are you referring to the latest (0.4 IIRC) release?  We did our work 
before that came out...

 I am willing to help out.   I would love to see this functionality in 
 2.6 and carry it forward to 3.0...

 Ordering and the Limit code is already in the Zope 3 core. The 
 advanced Folder version there is know as LoadedFolder. 

Excellent!   I think Zope-3 anticipation is building to a fever 
pitch ;-)

--Craeg


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



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Andreas Jung


- Original Message - 
From: Jerome Alet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 07, 2002 13:38
Subject: [Zope-dev] WebDAV locks disappearing...


 Hi,
 
 I've just tested webDAV access for the very first time using cadaver,
 so maybe this is a known problem.
 
 I've locked some objects using cadaver's lock command, and then opened
 a browser keeping cadaver's connection opened.
 
 then I've searched for this locks using the ZMI and also a method of 
 my own.
 
 All worked fine, the locks were found.
 
 Then some time later I've retried to find the locks, and both the
 ZMI and my method returned no lock. However in cadaver the locks
 still seemed to be there... 
 
 Then I've unlocked the objects and relocked them in cadaver and 
 retried, this time the locks were found again...
 

perhaps a problem with the lock timeout ? i think webdav clients
can specify a timeout for locks.  for further investigations
you can use the WebDAVLogger product to capture webdav related
traffic.

 - aj 


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



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jerome Alet

On Thu, Mar 07, 2002 at 01:55:45PM -0500, Andreas Jung wrote:

 From: Jerome Alet [EMAIL PROTECTED]
  
  All worked fine, the locks were found.
  
  Then some time later I've retried to find the locks, and both the
  ZMI and my method returned no lock. However in cadaver the locks
  still seemed to be there... 
 
 perhaps a problem with the lock timeout ? i think webdav clients
 can specify a timeout for locks.  

I don't think so since the client still saw the locks.
The Zope server however showed that they had disappeared, as
seen from the ZMI and from my method's result.

 for further investigations
 you can use the WebDAVLogger product to capture webdav related
 traffic.

Ok I'll try to do this.

thanks for the tip !

bye,

Jerome Alet


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



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jeffrey P Shell

A WebDAV client may request a timeout length for a lock, but it's basically
just a suggestion.  You say you investigated again some time later.
Zope's default timeout is thirty minutes.  Clients can ask for longer ones
and Zope will obey, but the 30 minutes is granted for 'infinite' timeout
requests (the spec says that the server may decide the timeout time
independent of the clients request).  The timeout should get refreshed with
every HTTP request made by you (the lock owner).  But the timeout also
exists so that the problem of Person X locks a document for editing, and
then leaves in a hurry (forgetting to release his lock).  Person Y really
needs to edit the document, but it's held hostage by X's lock.

Cadaver may be caching the locks.  Since HTTP/WebDAV are stateless, you have
to refresh your listing in order to see if locks are still there.  Most GUI
based WebDAV clients have a refresh listing option, which is the only way
they can know of new members in a collection and new lock states.

On 3/7/02 11:38 AM, Jerome Alet [EMAIL PROTECTED] wrote:

 Hi,
 
 I've just tested webDAV access for the very first time using cadaver,
 so maybe this is a known problem.
 
 I've locked some objects using cadaver's lock command, and then opened
 a browser keeping cadaver's connection opened.
 
 then I've searched for this locks using the ZMI and also a method of
 my own.
 
 All worked fine, the locks were found.
 
 Then some time later I've retried to find the locks, and both the
 ZMI and my method returned no lock. However in cadaver the locks
 still seemed to be there...
 
 Then I've unlocked the objects and relocked them in cadaver and
 retried, this time the locks were found again...
 
 I hadn't the time to do some more testing but I find this
 surprising.
 
 Does anyone have seen the same problem ?
 
 FYI Zope 2.5.0 + Python 2.1.2 both up-to-date Debian Woody
 packages.

-- 
Jeffrey P Shell 
www.cuemedia.com



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



Re: [Zope-dev] WebDAV locks disappearing...

2002-03-07 Thread Jerome Alet

On Thu, Mar 07, 2002 at 02:32:47PM -0700, Jeffrey P Shell wrote:
 A WebDAV client may request a timeout length for a lock, but it's basically
 just a suggestion.  You say you investigated again some time later.
 Zope's default timeout is thirty minutes.  Clients can ask for longer ones
 and Zope will obey, but the 30 minutes is granted for 'infinite' timeout
 requests (the spec says that the server may decide the timeout time
 independent of the clients request).  The timeout should get refreshed with
 every HTTP request made by you (the lock owner).  But the timeout also
 exists so that the problem of Person X locks a document for editing, and
 then leaves in a hurry (forgetting to release his lock).  Person Y really
 needs to edit the document, but it's held hostage by X's lock.
 
 Cadaver may be caching the locks.  Since HTTP/WebDAV are stateless, you have
 to refresh your listing in order to see if locks are still there.  Most GUI
 based WebDAV clients have a refresh listing option, which is the only way
 they can know of new members in a collection and new lock states.

Thanks for the informations, I'll try to restest more carefully in the
light of your message.

bye,

Jerome Alet

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



TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-07 Thread sean . upton

You know, the funny thing is that TF really accomplishes the goals of a
ZMI/UI-improvement hack (unclutter a view of a folder to VISUALLY separate
the software/content/presentation space) implemented, IMHO, in the wrong
place.  I would think there is another way that a Folder UI could be
uncluttered without the magic of TF, and that is add translucency (items
are there, but obscured from view) to the UI layer - that is, the ability to
VISUALLY unclutter different users' views of objects in a folder via ZMI;
views could be stored per user.  

For example, you could select ZSQL Methods and RDB connections in a folder
to be hidden from everybody but the Database programmer; you could keep
these and Python Scripts obscured from the view of a content person or
presentation designer, etc.  Well, they wouldn't be hidden, but visually
'compacted' and relegated to a small drop-down box at the bottom of the page
to unclutter it... so the standard tabled object list wouldn't iterate over
objectIds() or objectValues(), but instead a higher-level filter function.
A complimentary filter function would render the 'hidden' objects as a
sequence as well.


__ZMI manage_main Now:__

===\===\===\===\--- ZMI tabs
% :::===

TP.NAME. .SZ. ..LM..
[]--  --
[]--  --
[]--  --
[]--  --
[]--  --

[RN][CT][CP][DL][I/E][SA]  --- Buttons
for checked


__ZMI With Translucency:___

===\===\===\===\--- ZMI tabs
% :::===

TP.NAME. .SZ. ..LM..
[]--  --
[]--  --
[]--  --
[]--  --
[]--  --

[RN][CT][][][][][Hide] --- New HideBtn

Hidden Items:
[Select Item... [v]
[Open][Unhide][ViewAll]--- Buttons for
doing things
  ^ with hidden
  | items
  |
  +--- ViewAll =
pop-up new
window


This would be more visually convenient.  I'm thinking of trying to
monkey-patch OFS.Folder to just do this. 

Of course, with these kind of modifications, for any given folder, there's
no mandatate that anything need to be hidden at all.  Thoughts?

Sean

-Original Message-
From: Casey Duncan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 12:02 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope-dev] Zope 2.6 and OrderedFolders


On Wednesday 06 March 2002 02:49 pm, [EMAIL PROTECTED] allegedly
wrote:
 Is this a suggestion that TF go into the core?  One other (major) problem
 with TF is that it breaks session tracking site-wide, or at least the
 ability to have more than one session id manager per Zope instance in CST;
 I'm not sure about sessions in Zope 2.5...

 TF seems to have too much normalcy-hijacking magic to go into the core, if
 you ask me...

 Sean

-1 on TF in the core. Nice hack, but too much magic and there are
significant 
performance implications if I remember correctly.

Also Zope 3 will render TF superfluous.

/---\
  Casey Duncan, Sr. Web Developer
  National Legal Aid and Defender Association
  [EMAIL PROTECTED]
\---/

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



Re: TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-07 Thread Leonardo Rochael Almeida


On Thu, 2002-03-07 at 19:39, [EMAIL PROTECTED] wrote:
 You know, the funny thing is that TF really accomplishes the goals of a
 ZMI/UI-improvement hack (unclutter a view of a folder to VISUALLY separate
 the software/content/presentation space) implemented, IMHO, in the wrong
 place.  I would think there is another way that a Folder UI could be
 uncluttered without the magic of TF, and that is add translucency (items
 are there, but obscured from view) to the UI layer - that is, the ability to
 VISUALLY unclutter different users' views of objects in a folder via ZMI;
 views could be stored per user.  
 
 [...]

Maybe you could have a 'Views' tab where you could configure groups of
filters where each filter would be configured like a 'Find Objects'
query. Then, in the 'Contents' tab you'd have buttons to switch between
those views and the default view, which show all objects.

-- 
Ideas don't stay in some minds very long because they don't like
solitary confinement.


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



Re: TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-07 Thread Eric Roby

I think this is an excellent alternative to handle the UI aesthetics.  The
other part of this issue (for me) is the acquisition of these objects.  Even
if they are hanging out in the root, I would still like to be able to put
templates in a template folder, scripts in a scripts folder etc... and not
have to go through a great deal of fanfare to acquire them.  It would be
nice to be able to define mappings (or not) for the acquision process to
evaluate once the trail hits root and before it looks in REQUEST.  This
feature of TF is really nice (just dangerous).

Eric



 You know, the funny thing is that TF really accomplishes the goals of a
 ZMI/UI-improvement hack (unclutter a view of a folder to VISUALLY separate
 the software/content/presentation space) implemented, IMHO, in the wrong
 place.  I would think there is another way that a Folder UI could be
 uncluttered without the magic of TF, and that is add translucency (items
 are there, but obscured from view) to the UI layer - that is, the ability
to
 VISUALLY unclutter different users' views of objects in a folder via ZMI;
 views could be stored per user.

 For example, you could select ZSQL Methods and RDB connections in a folder
 to be hidden from everybody but the Database programmer; you could keep
 these and Python Scripts obscured from the view of a content person or
 presentation designer, etc.  Well, they wouldn't be hidden, but visually
 'compacted' and relegated to a small drop-down box at the bottom of the
page
 to unclutter it... so the standard tabled object list wouldn't iterate
over
 objectIds() or objectValues(), but instead a higher-level filter function.
 A complimentary filter function would render the 'hidden' objects as a
 sequence as well.


 __ZMI manage_main Now:__
 
 ===\===\===\===\--- ZMI tabs
 % :::===

 TP.NAME. .SZ. ..LM..
 []--  --
 []--  --
 []--  --
 []--  --
 []--  --

 [RN][CT][CP][DL][I/E][SA]  --- Buttons
 for checked


 __ZMI With Translucency:___
 
 ===\===\===\===\--- ZMI tabs
 % :::===

 TP.NAME. .SZ. ..LM..
 []--  --
 []--  --
 []--  --
 []--  --
 []--  --

 [RN][CT][][][][][Hide] --- New HideBtn
 
 Hidden Items:
 [Select Item... [v]
 [Open][Unhide][ViewAll]--- Buttons for
 doing things
   ^ with hidden
   | items
   |
   +--- ViewAll =
 pop-up new
 window
 

 This would be more visually convenient.  I'm thinking of trying to
 monkey-patch OFS.Folder to just do this.

 Of course, with these kind of modifications, for any given folder, there's
 no mandatate that anything need to be hidden at all.  Thoughts?

 Sean


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



[Zope-dev] zope transaction bug?

2002-03-07 Thread Ross J. Reedstrom

Hey all - 
Boy, it's been a long time since I've hung around here. Anyway, I think
we've found a bug somewhere in the zope transaction machinery. Every
now and then, a backend will get into 'idle in transaction' state. After
that, no work on that backend ever commits - the 'END' query just never
gets sent.

Careful analysis of the log files indicated that the ZpsycopgDA instance
started 'losing' proper transactional control after an admin who was
logged in via an exUserFolder that _also_ used that DA for authentication
used the management interface to undo a Zope transaction. The transaction
in question was merely an edit on a DTML file. No db interaction beyond
the authentication. Either a successful or an unsuccessful attempt to
rollback causes the problem.

Seems the Zope transactional machinery has 'forgotten' that our connection
needs to be told about transaction boundries.

We can make this happen at will, with Zope 2.4.3 or 2.5.0, exUserFolder
0.10.7, and ZpsycopgDA 1.0.5. It does require using the usAuth (User
Supplied Auth source) part of exUserFolder. Our developer who's somewhat
familiar with the guts of exUserFolder thinks that this is probably still
a bug in Zope, since all usAuth does is use customized ZSQL methods to
change where various strings are stored in the DB.

We're seeing similar problems with ZpopyDA, but haven't tested it
thoroughly to see if it's the same trigger.

I've constructed the test case for this: it's available at:

http://wallace.ece.rice.edu/xact-bug.tar.gz

That tarball contains an SQL schema script, zexp, and minimal instructions
for replicating the problem.

Anyone have any clues as to where to look to fix this? We're losing
commits to our database, whenever a developer tries to Undo something:
not good!

Ross
-- 
Ross Reedstrom, Ph.D. [EMAIL PROTECTED]
Executive Director  phone: 713-348-6166
Gulf Coast Consortium for Bioinformatics  fax: 713-348-6182
Rice University MS-39
Houston, TX 77005

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