[Zope-dev] Zope BOF at Comdex in Vegas?

2001-11-02 Thread Michael R. Bernstein

As the only (AFAICT) Zope user in Las Vegas, I'd like to propose that
Zopistas that are here for Comdex (Nov 10th through 16th) get together
for a Birds Of a Feather gathering.

This could be a dinner or just meeting for drinks, depending on what
people would like.

How many people would be interested? Does anyone have a preferred
time-frame?

Here's hoping to meet some of you,

Michael Bernstein.



___
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] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

2001-11-02 Thread Dieter Maurer

Kolb, Hap writes:
 > any attempt to submit a document to my newly created document library under
 > zope 2.4.2 yields the following error (traceback appended below):
 > 
 >  Error Type: NameError
 >  Error Value: global name 'ZopeTime' is not defined
 > 
 > Now that's an error so basic that I suspect that it's me who is doing
 > something wrong---if I only knew what...!
The "ZopeTime" problem came up recently in different contexts
(--> list archives).

It may be that this is the effect of the formerly called
"Security Jihad", now called "Security Cleanup",
which removed the "__allow_access_to_unprotected_subobjects__=1"
and now requires explicite permission assignments for all roles.
Maybe someone forgot to add the "ZopeTime" permission declaration...

Try to add "ZopeTime__roles__= None" in "OFS.ApplicationManager"
somewhere near the definition of "ZopeTime".


Dieter

___
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.4.2 DTML Method Bug

2001-11-02 Thread Matthew T. Kromer

Steve Alexander wrote:

> Casey Duncan wrote:
>
>>
>> It would be nice if this patch could make it into 2.4.3b3. 
>
>
>
> I just got a fresh CVS checkout, and Matt has committed this to CVS.
>
> I don't know if there will be a 2.4.3b release, (Brian? Matt?), but if 
> there is, this patch will be in it. 


I didn't really give other developers enough time to make changes they 
wanted to make but were putting off (not that I know of any, but that's 
the whole point) into the Zope-2_4-branch to cut a beta release today, 
so I'm going to do that on Monday.   I dont think it will take more than 
90 minutes or so to do, so Zope 2.4.3b1 should probably land about noon 
on Monday.


___
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] User Folders and Zope security

2001-11-02 Thread brian.r.brinegar.1

On Fri, 2 Nov 2001, Stephan Richter wrote:

>
> >We would like something in "Work" that says if the authenticated user is
> >staff they get the local role "Staff" The user would be defined in the
> >User Folder in the root.
>
> I think the problem is rather trivial. Since you wrote your own user folder
> it is so easy to add custom roles.
>
> Do you have the directory path? I guess so.
>
> So you should able to figure out whether a user is a member of a certain
> group by parsing the path.
> Then you create the roles based on the group behavior.
>
> All you gotta do now is to overwrite the API method getRoles(self) (in
> User) and add the new roles to the return list. This way it is always
> generated on the fly and if the user changes directories the roles will
> change as well.

We have two folders and a user folder in the root:

/folder1
/folder2
/acl_users

inside of each of the folders I have a script called authorize that
returns a list of roles for that context based on user information.

if someone accesses /folder1 and gets the manager role I wanted it to be
tied to the folder1 object. Not available within folder2 so having it just
add those roles to getRoles doesn't work. Because the roles are associated
with the user folder in the root, not the folder.

--Brian Brinegar
  ECN Web Technician
  MSEE 104 A 494-3106
  http://www.geeksoft.net/



___
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.4.2 DTML Method Bug

2001-11-02 Thread Steve Alexander

Casey Duncan wrote:

> 
> It would be nice if this patch could make it into 2.4.3b3. 


I just got a fresh CVS checkout, and Matt has committed this to CVS.

I don't know if there will be a 2.4.3b release, (Brian? Matt?), but if 
there is, this patch will be in it.

--
Steve Alexander
Software Engineer
Cat-Box limited


___
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.4.2 DTML Method Bug

2001-11-02 Thread Casey Duncan

On Friday 02 November 2001 06:51 am, Steve Alexander allegedly wrote:
> Matthew T. Kromer wrote:
> > I think that is fixed but I'm not positive that its in 2.4.2  -- I know
> > its on my 2_4 branch; I think we just barely missed this for 2.4.2 -- I
> > see the change going into the log about a week later.
> >
> > I'll ask Brian if we're going to put out a 2.4.3 to include the fix.
>
> Matt,
>
> Please see my report in the new Collector.
> The patch at the end of this email is better than the one in the
> Collector, and also not mangled by stx :-)
>
>
> Your fix in the trunk does only fixes the symptom. It does not address
> the problem of DTML Methods not being reenterant.
>
[snip]
>
> Here's my patch. As a bonus, we get rid of an unqualified except:
> statement.
>

Steve,

Your fix seems correct to me, just swallowing the exception is probably a 
subtle security hole at worst at best it is just sweeping things "under the 
rug" as it were.

It might be worth stating that constructs such as:

try: foo
except: pass

Smack of bad form and should be avoided at all costs... They can make 
debugging a nightmare.

It would be nice if this patch could make it into 2.4.3b3. Thanks Steve!

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



[Zope-dev] User Folders and Zope security

2001-11-02 Thread brian.r.brinegar.1

We have a custom UserFolder that authenticates users agains a PH
directory. This means that we have the same 30,000 or so users defined in
all of our user folder instances.

Seeing no reason to redefine users in multiple user folders we made a
decission to place one user folder in the root of our system and then
grant users local roles on an object by object basis.

Everything works great!

Problem:
We would like to have some roles assigned dynamically based on user
information. For example: A role called "Staff" if the PH directory has
the user listed as staff. We would like to be able to do this on an object
by object basis, but have the roles only exist for a single request. So
we don't have to give 15,000 people a local role and then track who leaves
and who gets hired.

Example:
Folder hierarchy:

/Work

We would like something in "Work" that says if the authenticated user is
staff they get the local role "Staff" The user would be defined in the
User Folder in the root.

We're open to any solutions/comments.

Thanks,

--Brian Brinegar
  ECN Web Technician
  MSEE 104 A 494-3106
  http://www.geeksoft.net/



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



Re: [Zope-dev] Re: [Zope] CoreSession Urgent !!!

2001-11-02 Thread Chris McDonough

This is unrelated to Michael's original problem, but...

> However, I kinda find this funcitonality a bit useless since the two
> objects are not all that independent. All it allows (since you are not
> allowed yet to have two session_id_mgr) is to set different varialbes
> with different timeout values. Can be usefull, but not truly persistant
> where you want it to be. For instance, a simple session cookie that has
> only the userid would be nice to keep forever, whereas the rest of the
> session data expires with the browser session. Not currently possible.

Actually this is incorrect.  First of all, you can have several 
session_id_mgrs.  Tey're a bit tricky to install because you can't add a 
sessionidmgr in a place where another sessionidmgr can be acquired. 
This is explained in the docs.  A common setup would be to have two 
folders, A and B and to create A.session_id_mgr and B.session_id_mgr.

Second of all, different data managers can point at different data 
containers.  And data containers can have different timeouts like you 
said.  And if you put a data container in your "main" ZODB ( or at least 
in some non-RAM-backed storage), and set its timeout to "0", things that 
are put into it will never expire.  This is what you seem to want.  This 
is also explained further in the docs.

Cheers,

- C


___
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] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

2001-11-02 Thread Casey Duncan

Hmmm, it looks to me like a DTML method is being called when a document is 
being indexed. Do you have a DTML Method somewhere named "date"?

If so, try renaming it. I'm not sure why it should pick it up instead of the 
date document property. Let me know if my hypothesis is true, if it is that 
looks like a subtle bug in way documents are acquiring their properties.

Let me know.

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

On Friday 02 November 2001 05:25 am, Kolb, Hap allegedly wrote:
> Hi,
>
> any attempt to submit a document to my newly created document library under
> zope 2.4.2 yields the following error (traceback appended below):
>
>   Error Type: NameError
>   Error Value: global name 'ZopeTime' is not defined
>
> Now that's an error so basic that I suspect that it's me who is doing
> something wrong---if I only knew what...!
>
> Any help would be highly appreciated!
>
> Best, ...hap
>
>
> Traceback (innermost last):
[snip]
> /data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
> line 495, in recordify
>   File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py, line
> 188, in __call__
> (Object: date)
>   File
> /data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py,
> line 546, in __call__
> (Object: date)
>   File
> /data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py,
> line 231, in eval
> (Object: ZopeTime().Date())
> (Info: ZopeTime)
>   File , line 2, in f
> (Object: guarded_getattr)
> NameError: (see above)

___
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] BTrees and Page Templates

2001-11-02 Thread Christian Theune

Hi.

Following bugs me:

I have a list of BTrees (the list is generated bt the pkg_remotePackages)
that store information about a software package. What i found is,
that the btrees (presented in the loop by 'package') can't 
be accessed in the Page Templates.

When using the python expression, AccessControl.ZopeGuards.guarded_getitem
prevents the display, and when using the path traversal of the page templates
i get a 'not' found, probably the same problem as the AccessControl in the
python expression. 

Any Ideas (other than creating a list of dictionaries for temporarily use,
which would not solve the problem itself ...)?

--- Here the page template:


  




download!
  
 


Regards, Christian

-- 
Christian Theune - [EMAIL PROTECTED]
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])

___
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.4.2 DTML Method Bug

2001-11-02 Thread Steve Alexander

Matthew T. Kromer wrote:

> 
> 
> I think that is fixed but I'm not positive that its in 2.4.2  -- I know 
> its on my 2_4 branch; I think we just barely missed this for 2.4.2 -- I 
> see the change going into the log about a week later.
> 
> I'll ask Brian if we're going to put out a 2.4.3 to include the fix.


Matt,

Please see my report in the new Collector.
The patch at the end of this email is better than the one in the 
Collector, and also not mangled by stx :-)


Your fix in the trunk does only fixes the symptom. It does not address 
the problem of DTML Methods not being reenterant.

Your fix is to wrap in a try-except the act of removing validate from 
the __dict__ of the dtml method object:

try: del self.__dict__['validate']
except: pass

If you have a dtml method object that calls itself (that is, __call__ is 
called when a __call__ is already executing), then the validate 
attribute will be removed before the outer call is finished.


Here's my patch. As a bonus, we get rid of an unqualified except: statement.

This is a patch against the trunk.

*** DTMLMethod.py.orig  Fri Nov  2 11:45:54 2001
--- DTMLMethod.py   Fri Nov  2 11:47:45 2001
***
*** 180,186 

   security=getSecurityManager()
   security.addContext(self)
! self.__dict__['validate'] = security.DTMLValidate
   try:

   if client is None:
--- 180,192 

   security=getSecurityManager()
   security.addContext(self)
!
! if self.__dict__.has_key('validate'):
! fist_time_through=0
! else:
! self.__dict__['validate'] = security.DTMLValidate
! first_time_through=1
!
   try:

   if client is None:
***
*** 200,207 

   finally:
   security.removeContext(self)
! try: del self.__dict__['validate']
! except: pass

   have_key=RESPONSE.headers.has_key
   if not (have_key('content-type') or have_key('Content-Type')):
--- 206,213 

   finally:
   security.removeContext(self)
! if first_time_through:
! del self.__dict__['validate']

   have_key=RESPONSE.headers.has_key
   if not (have_key('content-type') or have_key('Content-Type')):


You could also only add the dtml method to the security context on the 
first time through, although I think this would break the detection of 
excessive recursion. So, I haven't done that.

--
Steve Alexander
Software Engineer
Cat-Box limited


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



RE: [Zope-dev] Re: [Zope] CoreSession Urgent !!!

2001-11-02 Thread Paul Zwarts

There is no problem to reference to session data managers. I have two
called userSession and siteSession and I set them one after another:




However, I kinda find this funcitonality a bit useless since the two
objects are not all that independent. All it allows (since you are not
allowed yet to have two session_id_mgr) is to set different varialbes
with different timeout values. Can be usefull, but not truly persistant
where you want it to be. For instance, a simple session cookie that has
only the userid would be nice to keep forever, whereas the rest of the
session data expires with the browser session. Not currently possible.

Don't know if this helps

Paul Zwarts




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of michael kobald
Sent: Friday, November 02, 2001 12:18 PM
To: Andreas Jung; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Zope-dev] Re: [Zope] CoreSession Urgent !!!

Hi,
thanks for hammering it out.
The problems persit on my Site(2.3.3) under Win2k and OSX.
CST 0.8 works fine.
You tried to use 2 session Manager in 1 Transaktion simultaneously ?
perhaps
in 1 method ?

micha

- Original Message -
From: "Andreas Jung" <[EMAIL PROTECTED]>
To: "michael kobald" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 6:33 PM
Subject: Re: [Zope] CoreSession Urgent !!!


> Michel,
>
> I tried to reproduce the problem without success. I installed
> CST 0.9 under Linux and XP and hammered it with ab. I did not get
> any errors, sorry :-(
>
> Andreas
> - Original Message -
> From: "michael kobald" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 09:26
> Subject: [Zope] CoreSession Urgent !!!
>
>
> > Hi,
> > i am have a big Problem with CoreSession 0.9 (Zope 2.3.3 Win2000
Server).
> > I have 2 Session Data Mangers (dieter and session_mgr).
> > I i want call the getSessionData() of them both method in 1
Transaction.
> Via
> > calling foo3
> > I get the error msgs below.
> > I need to call both Data Mangers in 1 Transaction !
> >
> > By the way: Zope 2.4.2 hangs for the rest of his live after the 2.
calling
> > of foo3
> >
> > Please Help
> >
> > michael
> >
> >
> > Code:
> > def a(self):
> > """khjkjh"""
> > data = self.dieter.getSessionData()
> > data.set('dfd', 'dsd')
> > return None
> >  def b(self):
> > """hjhjh"""
> > data2 = self.session_mgr.getSessionData()
> > return None
> >
> >  def foo3(self, REQUEST):
> > """hhjh"""
> > #return "dgffdg"
> > c = self.a()
> > #get_transaction().commit(1)
> > d= self.b()
> > #data = self.session_mgr.getSessionData()
> > return "huhuh"
> >
> > First Call
> >
> >
> >
> >
> >
> >
> >
> > Error Type: error
> >   Error Value: release unlocked lock
> >
> >
> >
> >
> >
> > Traceback (innermost last):
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line
223,
in
> > publish_module
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line
187,
in
> > publish
> >   File E:\Beehive\TeDeLine\lib\python\Zope\__init__.py, line 221, in
> > zpublisher_exception_hook
> > (Object: Traversable)
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line
175,
in
> > publish
> >   File E:\Beehive\TeDeLine\lib\python\Zope\__init__.py, line 235, in
> commit
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\Transaction.py, line 335,
in
> > commit
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\Connection.py, line 657,
in
> > tpc_finish
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\BaseStorage.py, line 219,
in
> > tpc_finish
> > (Object: SessionStorage)
> > error: (see above)
> > Second Call:
> > Error Type: TransactionErrorError Value: A serious error, which was
> probably
> > a system error, occurred in a previous database transaction. This
> > application may be in an invalid state and must be restarted before
> database
> > updates can be allowed. Beware though that if the error was due to a
> serious
> > system problem, such as a disk full condition, then the application
may
> not
> > come up until you deal with the system problem. See your application
log
> for
> > information on the error that lead to this problem.
> >
> >
> >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>


___
Zope-Dev 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] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

2001-11-02 Thread Paul Zwarts

Hi,

Are you using 



instead of 



ZopeTime I suspect doesn't come from the local namespace.

Cheers,
Paul Zwarts

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Kolb, Hap
Sent: Friday, November 02, 2001 11:26 AM
To: '[EMAIL PROTECTED]'
Subject: [Zope-dev] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

Hi,

any attempt to submit a document to my newly created document library
under
zope 2.4.2 yields the following error (traceback appended below):

Error Type: NameError
Error Value: global name 'ZopeTime' is not defined

Now that's an error so basic that I suspect that it's me who is doing
something wrong---if I only knew what...!

Any help would be highly appreciated!

Best, ...hap


Traceback (innermost last):
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/Zope/__init__.py, line
226, in zpublisher_exception_hook
(Object: library)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/mapply.py,
line
160, in mapply
(Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py,
line
195, in __call__
(Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py
,
line 546, in __call__
(Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py,
line
212, in render
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py,
line
221, in render_try_except
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py,
line
148, in render
(Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py,
line
133, in render
(Object: addDocumentFile(REQUEST))
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py,
line
231, in eval
(Object: addDocumentFile(REQUEST))
(Info: REQUEST)
  File , line 2, in f
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/DocumentStore.p
y,
line 355, in addDocumentFile
(Object: Documents)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/ObjectManager.py,
line
324, in _setObject
(Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwar
enes
s.py, line 114, in manage_afterAdd
(Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwar
enes
s.py, line 184, in index_object
(Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/CatalogPlus.py,
line 122, in catalog_object
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 382, in catalogObject
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 495, in recordify
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py,
line
188, in __call__
(Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py
,
line 546, in __call__
(Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py,
line
231, in eval
(Object: ZopeTime().Date())
(Info: ZopeTime)
  File , line 2, in f
(Object: guarded_getattr)
NameError: (see above)

___
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] Re: [Zope] CoreSession Urgent !!!

2001-11-02 Thread michael kobald

Hi,
thanks for hammering it out.
The problems persit on my Site(2.3.3) under Win2k and OSX.
CST 0.8 works fine.
You tried to use 2 session Manager in 1 Transaktion simultaneously ? perhaps
in 1 method ?

micha

- Original Message -
From: "Andreas Jung" <[EMAIL PROTECTED]>
To: "michael kobald" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 6:33 PM
Subject: Re: [Zope] CoreSession Urgent !!!


> Michel,
>
> I tried to reproduce the problem without success. I installed
> CST 0.9 under Linux and XP and hammered it with ab. I did not get
> any errors, sorry :-(
>
> Andreas
> - Original Message -
> From: "michael kobald" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 09:26
> Subject: [Zope] CoreSession Urgent !!!
>
>
> > Hi,
> > i am have a big Problem with CoreSession 0.9 (Zope 2.3.3 Win2000
Server).
> > I have 2 Session Data Mangers (dieter and session_mgr).
> > I i want call the getSessionData() of them both method in 1 Transaction.
> Via
> > calling foo3
> > I get the error msgs below.
> > I need to call both Data Mangers in 1 Transaction !
> >
> > By the way: Zope 2.4.2 hangs for the rest of his live after the 2.
calling
> > of foo3
> >
> > Please Help
> >
> > michael
> >
> >
> > Code:
> > def a(self):
> > """khjkjh"""
> > data = self.dieter.getSessionData()
> > data.set('dfd', 'dsd')
> > return None
> >  def b(self):
> > """hjhjh"""
> > data2 = self.session_mgr.getSessionData()
> > return None
> >
> >  def foo3(self, REQUEST):
> > """hhjh"""
> > #return "dgffdg"
> > c = self.a()
> > #get_transaction().commit(1)
> > d= self.b()
> > #data = self.session_mgr.getSessionData()
> > return "huhuh"
> >
> > First Call
> >
> >
> >
> >
> >
> >
> >
> > Error Type: error
> >   Error Value: release unlocked lock
> >
> >
> >
> >
> >
> > Traceback (innermost last):
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line 223,
in
> > publish_module
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line 187,
in
> > publish
> >   File E:\Beehive\TeDeLine\lib\python\Zope\__init__.py, line 221, in
> > zpublisher_exception_hook
> > (Object: Traversable)
> >   File E:\Beehive\TeDeLine\lib\python\ZPublisher\Publish.py, line 175,
in
> > publish
> >   File E:\Beehive\TeDeLine\lib\python\Zope\__init__.py, line 235, in
> commit
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\Transaction.py, line 335, in
> > commit
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\Connection.py, line 657, in
> > tpc_finish
> >   File E:\Beehive\TeDeLine\lib\python\ZODB\BaseStorage.py, line 219, in
> > tpc_finish
> > (Object: SessionStorage)
> > error: (see above)
> > Second Call:
> > Error Type: TransactionErrorError Value: A serious error, which was
> probably
> > a system error, occurred in a previous database transaction. This
> > application may be in an invalid state and must be restarted before
> database
> > updates can be allowed. Beware though that if the error was due to a
> serious
> > system problem, such as a disk full condition, then the application may
> not
> > come up until you deal with the system problem. See your application log
> for
> > information on the error that lead to this problem.
> >
> >
> >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>


___
Zope-Dev 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] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

2001-11-02 Thread Kolb, Hap

Hi,

any attempt to submit a document to my newly created document library under
zope 2.4.2 yields the following error (traceback appended below):

Error Type: NameError
Error Value: global name 'ZopeTime' is not defined

Now that's an error so basic that I suspect that it's me who is doing
something wrong---if I only knew what...!

Any help would be highly appreciated!

Best, ...hap


Traceback (innermost last):
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/Zope/__init__.py, line
226, in zpublisher_exception_hook
(Object: library)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py, line
195, in __call__
(Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py,
line 546, in __call__
(Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py, line
212, in render
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py, line
221, in render_try_except
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py, line
148, in render
(Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py, line
133, in render
(Object: addDocumentFile(REQUEST))
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py, line
231, in eval
(Object: addDocumentFile(REQUEST))
(Info: REQUEST)
  File , line 2, in f
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/DocumentStore.py,
line 355, in addDocumentFile
(Object: Documents)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/ObjectManager.py, line
324, in _setObject
(Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwarenes
s.py, line 114, in manage_afterAdd
(Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwarenes
s.py, line 184, in index_object
(Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/CatalogPlus.py,
line 122, in catalog_object
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 382, in catalogObject
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 495, in recordify
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py, line
188, in __call__
(Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py,
line 546, in __call__
(Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py, line
231, in eval
(Object: ZopeTime().Date())
(Info: ZopeTime)
  File , line 2, in f
(Object: guarded_getattr)
NameError: (see above)

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