Re: [Zope-dev] Heads up: tag 2.7 beta 3 Tuesday

2003-11-14 Thread Chris McDonough
Yikes, yes... I really should have looked at this by now. :-( 
Unfortunately, I haven't and I'm still in a time crunch.

I could use some help with this if anyone has the time.  See Steve's
message of Oct. 17 w. subject "SESSION loosing data when system has
multiple users".

On Fri, 2003-11-14 at 15:22, Steve Jibson wrote:
> We're always happy about another beta release, but do you think you guys 
> will have a chance to look into the reported session (thread safety?) 
> errors before beta 3?  I posted and sent some failing test results to 
> Chris a couple of weeks ago.
> 
> Thanks,
> Steve
> 
> 
> Brian Lloyd wrote:
> > I'd like to plan to tag Zope 2.7 beta 3 this coming Tuesday and 
> > release it. Please make sure anything you may still be doing on 
> > the Zope-2_7-branch is wrapped up by Monday evening (EST).
> > 
> > Thanks!
> > 
> > 
> > Brian Lloyd[EMAIL PROTECTED]
> > V.P. Engineering   540.361.1716  
> > Zope Corporation   http://www.zope.com
> > 
> > 
> > ___
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://mail.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope )
> 
> 
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )


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


Re: [Zope-dev] New-style ExtensionClass, ZODB 3.3, and Zope 2.8 status

2003-11-14 Thread Dieter Maurer
Jim Fulton wrote at 2003-11-13 15:22 -0500:
 > ...
 >We need to refactor the way security assertions (permission
 >settings) are stored and accessed.  We need to store required
 >permissions (__permissions__) on objects. When we need to figure
 >out roles, we need to compute them at a higher level. (For
 >example, we could compute the needed roles in the zope security
 >policy It's likely that we can speed security checks when doing
 >this.)
 > 
 > I estimate that the necessary refactoring would take me 3-5
 > days. The vast majority of the required time will be spent writing
 > tests.  I really need to focus on Zope 3 for a while, so I may not
 > be able to get back to this soon.  I think that this is an area
 > where some volunteers could make a big difference.  I'd be happy to
 > work with some folks on this.

Folklore says that Zope cannot protect attributes of simple types
(because they do not provide the method magic that will be lost
for NSEC).

However, whenever I looked at ZopeSecurityPolicy (and I did often),
I could not believe that this is true. I always thought, it would
be easy to provide security declarations for simple type attributes, too.

Of course, Zope cannot check a bare value of simple type, but
usually it has "container" and/or "parent" and then checking would
be easy by looking at related ("__roles__") attributes of the container/parent.

I will see this weekend whether I have been true.
If so, the same mechanism could (in principle) be used for
methods.

Bound methods can even be checked without "container/parent"
as they allow access to the bound instance.

-- 
Dieter

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


[Bug] Zope 2.6.1/2 (was: [Zope-dev] Bug? Handling of attribute names and default values in forms in 2.61 ??)

2003-11-14 Thread Dieter Maurer
Max M wrote at 2003-11-13 18:01 +0100:
 > ...
 > 
 > ...
 >   value="" checked>
 > ...
 > I have tracked the problem to the default value always being added to 
 > the "teachers" list.

You are right! You found a bug.

The easiest way to reproduce it is as follows:

  showRequest: 

Visit the URL: "http:///showRequest?a:list:default=a&a:list=b".
The result will be "form: a --> ['b','a']".

Please file a bug report.

-- 
Dieter

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


Re: [Zope-dev] Heads up: tag 2.7 beta 3 Tuesday

2003-11-14 Thread Steve Jibson
We're always happy about another beta release, but do you think you guys 
will have a chance to look into the reported session (thread safety?) 
errors before beta 3?  I posted and sent some failing test results to 
Chris a couple of weeks ago.

Thanks,
Steve
Brian Lloyd wrote:
I'd like to plan to tag Zope 2.7 beta 3 this coming Tuesday and 
release it. Please make sure anything you may still be doing on 
the Zope-2_7-branch is wrapped up by Monday evening (EST).

Thanks!

Brian Lloyd[EMAIL PROTECTED]
V.P. Engineering   540.361.1716  
Zope Corporation   http://www.zope.com 

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


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


[Zope-dev] Heads up: tag 2.7 beta 3 Tuesday

2003-11-14 Thread Brian Lloyd
I'd like to plan to tag Zope 2.7 beta 3 this coming Tuesday and 
release it. Please make sure anything you may still be doing on 
the Zope-2_7-branch is wrapped up by Monday evening (EST).

Thanks!


Brian Lloyd[EMAIL PROTECTED]
V.P. Engineering   540.361.1716  
Zope Corporation   http://www.zope.com 


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


Re: [Zope-dev] Rendering xml content in ZPT

2003-11-14 Thread Antonio Beamud Montero
I can't find the related issue, I can post a new one. The most closest
is the 258 bug...


El jue, 13-11-2003 a las 17:23, Fred L. Drake, Jr. escribió:
> Antonio Beamud Montero writes:
>  > I have downloaded the last version of PyXML and I have installed using
>  > the python version of Zope 2.6 and all was sucessfully, but doesn't work
>  > either...
> 
> Interesting.
> 
> There should be a reasonable work-around for this; if you could check
> the existing report in the issue tracker and make sure it's complete
> (including the complete error message and any traceback information),
> and assign it to me to look into a work-around, I'd appreciate it.
> 
> 
>   -Fred
-- 
Antonio Beamud Montero <[EMAIL PROTECTED]>


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


Re: [Zope-dev] Bug? Handling of attribute names and default values

2003-11-14 Thread Max M
Tres Seaver wrote:

Can you double check that it is actually the default value, and not a
trailing empty line (I'm guessing that you are posting to 'addTeacher'
from a form with a control like:  '...').


The complete content of the form is below, and it is very simple. I am 
very certain that it is not the problem. I have also checked that it 
isn't an extra checkbox that has been sneaking in there.

I solved the problem by removing the line with the default value in the 
form, and changing the action method to::

def editTeachersAction(self, teachers=None, REQUEST=None):
"Code"
if not teachers:
teachers = []
Which is a better way to do it anyway. But that still leaves the bug in 
the form handling of Zope.

regards Max M



[Back]

Undervisere tilknyttet uv-forløbet






   tal:attributes="value teacher/path; checked 
teacher/selected">
title
















E.g, change the 'teachers:list:default' value to some other string, and
see if that value propagates.
Either way, as a robustness measure I would recommend adding some input
checking to 'addTeacher', e.g.:
def addTeacher( self, teachers ):

""" Add one or more teachers.
"""
teachers = filter( None, teachers ) # strip empty lines
# your processing here
Tres.


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