Mailing List Archive

2.8 odds and ends
I just tried a fresh-fresh checkout which has at least three problems:

- Adding Plone or CMF site fails:

Site Error

An error was encountered while publishing this resource.

TypeError
Sorry, a site error occurred.

Traceback (innermost last):

* Module ZPublisher.Publish, line 186, in publish_module_standard
* Module ZPublisher.Publish, line 143, in publish
* Module Zope.App.startup, line 204, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 112, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 191, in _exec
* Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
* Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<FSPageTemplate at /portal/index_html>

TypeError: unbound method pt_getContext() must be called with
ZopePageTemplate instance as first argument (got nothing instead) (Also, an
error occurred while attempting to render the standard error message.)


- bin/mkzopeinstance.py does not seem to create the instance home directory
properly

- zope starts on 127.0.0.1:8080 but not on all other IP addresses available
(were there some
changes lately?)...I had to set ip-address to the official IP to get
access over WLAN.

Andreas
_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: 2.8 odds and ends [ In reply to ]
Hi!


Andreas Jung wrote:
> - Adding Plone or CMF site fails:
[...]
> TypeError: unbound method pt_getContext() must be called with
> ZopePageTemplate instance as first argument (got nothing instead) (Also,
> an error occurred while attempting to render the standard error message.)

Please use CMF 1.5 beta(2) or a HEAD checkout. There were some changes
for Zope 2.8 compatibilty that didn't go in the 1.4 branch and I believe
this is one of the fixed issues.


HTH, Yuppie

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: 2.8 odds and ends [ In reply to ]
Andreas Jung wrote:
> I just tried a fresh-fresh checkout which has at least three problems:
>
> - Adding Plone or CMF site fails:

I can't reproduce this problem with plain CMF:

$ cd ~/projects/Zope-CVS/Zope-SVN-trunk
$ svn up
At revision 27701.
$ bin/mkzopeinstance.py --dir /tmp/z28_cmf15
# .... set up instance with CMF 1.5 HEAD
$ cd /tmp/z28_cmf15
$ bin/zopectl
# now add a CMFSite through the ZMI without error.


> - bin/mkzopeinstance.py does not seem to create the instance home
> directory properly

Mine just worked fine.

> - zope starts on 127.0.0.1:8080 but not on all other IP addresses
> available (were there some changes lately?)...I had to set ip-address
> to the official IP to get access over WLAN.

I can reproduce this one. This is definitely a backward-incompatible
change, which needs to be either reverted or defended (maybe Python's
underlying behavior changed?) The default definitely used to be "bind
to all interfaces."

Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders
Re: 2.8 odds and ends [ In reply to ]
yuppie wrote:
> Hi!
>
>
> Andreas Jung wrote:
>
>> - Adding Plone or CMF site fails:
>
> [...]
>
>> TypeError: unbound method pt_getContext() must be called with
>> ZopePageTemplate instance as first argument (got nothing instead)
>> (Also, an error occurred while attempting to render the standard error
>> message.)
>
>
> Please use CMF 1.5 beta(2) or a HEAD checkout. There were some changes
> for Zope 2.8 compatibilty that didn't go in the 1.4 branch and I believe
> this is one of the fixed issues.

I just sent Andreas a one-line patch which fixes that for 1.4.7:

--- CMFCore/FSPageTemplate.py 2004-09-28 13:47:40.551858578 -0400
+++ CMFCore/FSPageTemplate.py.z28 2004-09-28 13:47:37.184290587 -0400
@@ -212,7 +212,7 @@
security.declareProtected(ViewManagementScreens, 'document_src')
document_src = ZopePageTemplate.document_src

- pt_getContext = ZopePageTemplate.pt_getContext
+ pt_getContext = ZopePageTemplate.pt_getContext.im_func

ZScriptHTML_tryParams = ZopePageTemplate.ZScriptHTML_tryParams


Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com

_______________________________________________
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders