Re: [Zope-dev] [Zope 2.11] Stepping forward and going beta

2007-12-09 Thread Sidnei da Silva
On Dec 9, 2007 5:30 AM, Andreas Jung [EMAIL PROTECTED] wrote:
 Objections? Thoughts?

That branch didn't look like it was far off being finished. Is there a
TODO of what is pending to finish it?

-- 
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
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] Zope Tests: 5 OK

2007-12-09 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Sat Dec  8 13:00:00 2007 UTC to Sun Dec  9 13:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sat Dec  8 20:52:48 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-December/008766.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sat Dec  8 20:54:19 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-December/008767.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Dec  8 20:55:49 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-December/008768.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Dec  8 20:57:19 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-December/008769.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Sat Dec  8 20:58:49 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-December/008770.html

___
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: [Zope 2.11] Stepping forward and going beta

2007-12-09 Thread Hanno Schlichting
Sidnei da Silva wrote:
 On Dec 9, 2007 5:30 AM, Andreas Jung [EMAIL PROTECTED] wrote:
 Objections? Thoughts?
 
 That branch didn't look like it was far off being finished. Is there a
 TODO of what is pending to finish it?

The good news is that all Zope tests are passing and all the heavy
lifting is done. The bad news is that there is one rather nasty minor
problem with the branch.

Now we were able to remove Acquistion wrapping and base classes from a
lot of places in Five. In almost all places this would cause no problem,
and following __parent__ pointers instead would do the trick. The only
place where this turned out to be tricky is the ViewPageTemplateFile aka
ZopeTwoPageTemplateFile of Five (found in
Products.Five.browser.pagetemplatefile).

The main difference between the Zope3 and the former Zope2 version is
the way those get to know the view which they operate on. In Zope3 the
view is always passed in as the first argument to the __call__ method,
the argument is called instance here.

The Zope2 version so far depended on Acquisition to get to the view. As
we removed Acquisition wrapping from a lot of places, the
ViewPageTemplateFile doesn't have any proper AQ context anymore to work
with. For most cases this isn't a problem as the view is passed in as
the first argument as well in Zope2, but looking through the Plone
codebase (which we used as a real-life testcase for interesting uses of
Five technology) it turned out that there are various different ways of
usage out there, which wouldn't pass in the view. Those do work right
with current Zope and obviously need to keep working for BBB reasons.

The only way I found to get this working without reintroducing
AQ-wrapping all over the place again, which kind of defeats the purpose
of this branch, is to walk up the stack frames to get to the view. I
hacked this version just yesterday and it still produces some
TraversalError for 'macros' in some cases. If you want to test this,
just create a Plone instance from the Plone 3 SVN branch, try
inline-editing on the front-page, @@manage-portlets, creating a new
content-rule inside the control panel and looking at the mail control
panel. These all use ViewPageTemplateFiles in various different ways and
so far I haven't been able to get all of them working at the same time.

Hanno

P.S. If you want to see my latest attempt at writing horrible code, this
is the new __call__ method for Five's ViewPageTemplateFile:

def __call__(self, *args, **keywords):
instance = None
# Ensure that the first argument is the instance
if len(args)  0:
instance, args = args[0], args[1:]
if not IBrowserView.providedBy(instance):
# The first arg is not the desired instance. Put the first
# argument back into the list.
args = list(args)
args.insert(0, instance)
instance = None

# XXX! This isn't a particular nice way to get the instance.
def _acquireInstance():
instance = None
for i in range(2, 7):
instance = sys._getframe(i).f_locals['self']
if IBrowserView.providedBy(instance):
break
return instance

if instance is None:
instance = _acquireInstance()

# Copied the code from zope.app.pagetemplate as we need to pass on
# the keywords which might contain one named 'instance', which would
# conflict with the first required arg of that method. KSS does this
# as an example and needs instance to be present in the options.
# TODO: Maybe we should emit a warning for the instance keyword.
namespace = self.pt_getContext(
request=instance.request,
instance=instance, args=args, options=keywords)
debug_flags = instance.request.debug
s = self.pt_render(
namespace,
showtal=getattr(debug_flags, 'showTAL', 0),
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
)
response = instance.request.response
if not response.getHeader(Content-Type):
response.setHeader(Content-Type, self.content_type)
return s

___
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] Last-Minute Gifts on Sale!

2007-12-09 Thread zope-dev
Title: Mens Health Daily Dose



 

  





12/08/07






These are our lowest prices of the year  but they won't last long. So take advantage of these incredible savings now and stock up on all your favorite magazines. 
  SAVE BIG on holiday gifts too with gift subscriptions for everyone on your list  family, friends and co-workers. 
  At just $5 these are terrific as main gifts or stocking stuffers. Click
here to start shopping now and don't forget to  pass this offer along and let everyone know what a great deal you've found. Happy saving!
  
  
  Limited-time offer...Act now!



MENS HEALTH FITSCHOOLS
This program can reform physical education, end childhood obesity, and save a generation. Does your school need our help?





SAVING GENERATION XXL
7 ways to reform Americas physical education  and transform kids from fat to fit





HOW MICHAEL CORY IS SAVING HIMSELF... AND HIS 1,300 KIDS
Cory is the principal at Richard H. Gettys Middle School, in Easley, South Carolina, so all of these kids are his responsibility. Theyre also his motivation for change





NOMINATE YOUR SCHOOL
Mens Health is looking for one elementary or middle school in need of an overhaul of its physical education program. Nominate your school







MENS HEALTH NEWS & ADVICE:
Get the worlds greatest fitness, diet, and sex advice delivered to your inbox 3 times a week.

ABS DIET NEWSLETTER:
The latest scientific research, newest abs exercises, meal plans, success stories and cutting-edge advice for getting a 6-pack and keeping it!

BEST LIFE NEWSLETTER:
Powerful advice from the top doctors, trainers, brokers, career coaches, relationships experts, and entrepreneurs. Its free, its smart, its useful.



Tell a friend



Find out more at MensHealth.com
  Mens Health Personal Trainer  - get in shape now!


Fitness

Sex & Relationships

Health

Guy Wisdom

Weight Loss

Nutrition

Style

Video



PRIVACY POLICY|CONTACT US|UNSUBSCRIBE
COPYRIGHT RODALE, INC. 2007
33 East Minor Street, Emmaus, PA 18098, Attn: Customer Service





 




___
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] [Zope 2.11] Stepping forward and going beta

2007-12-09 Thread Chris McDonough

+1

On Dec 9, 2007, at 2:30 AM, Andreas Jung wrote:


Hi,

the Zope 2.11 beta phase has been delayed for while. The reason for  
holding but the release was Philipps and Hannos work on the


http://svn.zope.org/Zope/branches/philikon-aq/

branch. Unfortunately both can't work (lack of personal time) on the  
branch and finish it in the feature. So I propose to release Zope  
2.11 beta 1
by the end of the year w/o this branch. Zope 2.11 would contain the  
Zope 3.4 and ZODB 3.8 with blob support as major new features.


Objections? Thoughts?

Andreas

--
ZOPYX Ltd.  Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK

E-Publishing, Python, Zope  Plone development, Consulting
___
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 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 )