-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On behalf of Zope Corporation and the Zope community I am pleased to
announce the release of Zope 2.8.9.1. You can download the sources
from "http://www.zope.org/Products/Zope/2.8.9.1/",
http://www.zope.org/Products/Zope/2.8.9.1
This bugfix release corrects a problem introduced in 2.8.9, which
prevented starting Zope in "background" / "daemonized" mode.
New features of Zope 2.8.x
- ZODB 3.4 with MVCC (multi version concurrency control) support.
MVCC solves nearly every problem with ZODB read-conflict errors
which is very important for high-traffic Zope sites.
- Extension Classes were rewritten as Python new-style classes making
all features of Python new-style classes available in Zope
objects. This includes support for cyclic garbage collection.
- Integration of Zope 3 technologies through Five
(see http://codespeak.net/z3/five/)
More Information
For more information on what is new in this release, see the
CHANGES.txt files for the release:
"http://www.zope.org/Products/Zope/2.8.9.1/CHANGES.txt",
http://www.zope.org/Products/Zope/2.8.9.1/CHANGES.txt
See also:
"http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView"
http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView
For more information on the available Zope releases, guidance for
selecting the right distribution and installation instructions,
please see:
"http://www.plope.com/Books/2_7Edition/InstallingZope.stx",
http://www.plope.com/Books/2_7Edition/InstallingZope.stx
Reporting Bugs
Please report all the bugs you have found to the Zope bugtracker:
"http://collector.zope.org/Zope",
http://collector.zope.org/Zope
Supported Python versions
At this time the only **supported** and **recommended** Python
versions are 2.3.5 and 2.3.6.
Using Python 2.4.X is **not supported** and **not recommended** at
this time. Python 2.4.X will be supported when a security audit takes
place.
This means that you are using Python 2.4 + Zope 2.8 at **your own
risk**. This warning also applies to binary packages that install Zope
packages ogether with a system wide Python 2.4 installation (e.g.
Fedora, SuSE...).
Such installations are in general not supported. In addition there
some third-party products and Python packages that don't work with
Python 2.4 and can cause trouble when using Python 2.4.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver(a)palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGDCIL+gerLs4ltQ4RAjV8AJ4qc4gChSxhoDQC2E+l+5UbbTr2kgCgiDZf
f23x570Y4wNvsWcS55QZ8+o=
=CNr8
-----END PGP SIGNATURE-----
Hi,
Thank you very much for your answer.
As you suggested, i concatenate the string with an integer to create a
fieldname and then
pass it to zsql object along with language argument. I do everything inside
a Script (Python)
object that accepts 3 arguments (field,index,language)now.
-
result=field+str(index)
res=context.select_sql(field=result, language=language)
print res[0].result
return printed
-
I test this python script inside ZMI and run into problems.
It works only if I explicitly specify the columname like "print
res[0].author_1".
another question- how can one specify row index here?(res[row index]). Each
language has one row.
thanks
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi Laurence, thanks a lot for your help.
I studied the examples and other programs and did a sort of solution
to my problem based on iFrame.
Besides, it's always fun to know something new about zope.
Thanks again.
Cheers,
Alan
> Date: Mon, 26 Mar 2007 16:58:05 +0100
> From: Laurence Rowe <l(a)lrowe.co.uk>
> Subject: [Zope] Re: presenting content in Zope generated outside
>
> Hi Alan,
>
> I had a similar requirement a few years ago and wrote it up here:
> http://plone.org/documentation/how-to/integrate-external-content/
>
> Reading the comments it seems as if someone has made it into a product.
> There is also a product called Windowz which uses iframes:
> http://plone.org/products/windowz
>
> And yes, zope will work with frames (they're just html).
>
> @import is css not html. You need xslt to do that sort of thing with xhtml.
>
> Hope that helps,
>
> Laurence
>
Hi,
I have five fields in the database author1,author2..author5.
Trying to generate a parameter for the select_sql method called result,
I run into an error -cannot add type "int" to string. Could you please
say how to concatenate a string and a number?
please look at the code..
--
<dtml-in "_.range(1,6)">
<dtml-call "REQUEST.set('field','author')">
<dtml-let field=field
index=sequence-index
result="field+index">
<dtml-in "select_sql(field=result , language=language)" >
<dtml-var sequence-key>
</dtml-in >
</dtml-let>
</dtml-in>
--
or is there a better way to generate 5 different sql quesries and display
the result?
thank you.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Starting my Zope 2.8.8 development copy was working fine until I
[easy_]installed i18ndude. Now I get this::
File "/home/peterbe/zope/zope288/lib/python/TAL/TALInterpreter.py",
line 31, in ?
from zope.i18nmessageid import MessageID
ImportError: cannot import name MessageID
That's because of the zope.i18nmessageid that was installed (as an egg)
when installed i18n dude.
I edited TALInterpreter.py to do this, on line 30:
import sys; from pprint import pprint; pprint(sys.path)
Now I get the following when I run ./bin/runzope
peterbe@trillian:~/zope/zope288 $ ./bin/runzope
2007-03-28 10:00:22 INFO ZServer HTTP server started at Wed Mar 28
10:00:22 2007
Hostname: 0.0.0.0
Port: 8080
['/home/peterbe/zope/zope288/lib/python',
'/home/peterbe/zope/zope288/lib/python',
'/home/peterbe/zope/zope288/lib/python/Zope2/Startup',
'/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg',
'/usr/lib/python2.4/site-packages/i18ndude-3.0b1-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.testing-3.4dev_r73174-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.i18nmessageid-3.4dev_r72562-py2.4-linux-i686.egg',
'/usr/lib/python2.4/site-packages/zope.interface-3.4dev_r72681-py2.4-linux-i686.egg',
'/usr/lib/python2.4/site-packages/zope.tal-3.3dev_r72583-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.deprecation-3.4dev_r73271-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.i18n-3.3dev_r72550-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.schema-3.4dev_r73183-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.component-3.4dev_r72903-py2.4.egg',
'/usr/lib/python2.4/site-packages/pytz-2005r-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.event-3.3dev_r72545-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.deferredimport-3.3dev_r72527-py2.4.egg',
'/usr/lib/python2.4/site-packages/zope.proxy-3.4.0a1-py2.4-linux-i686.egg',
'/home/peterbe/zope/zope288/lib/python',
'/usr/lib/python24.zip',
'/usr/lib/python2.4/lib-dynload',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2',
'/usr/lib/python2.4/lib-tk',
'/usr/local/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/gst-0.10',
'/var/lib/python-support/python2.4/pyinotify',
'/var/lib/python-support/python2.4',
'/usr/lib/python2.4/site-packages/gtk-2.0',
'/var/lib/python-support/python2.4/gtk-2.0']
Traceback (most recent call last):
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/run.py",
line 56, in ?
run()
File "/home/peterbe/zope/zope288/lib/python/Zope2/Startup/run.py",
line 21, in run
starter.prepare()
File
"/home/peterbe/zope/zope288/lib/python/Zope2/Startup/__init__.py", line
98, in prepare
self.startZope()
File
"/home/peterbe/zope/zope288/lib/python/Zope2/Startup/__init__.py", line
257, in startZope
Zope2.startup()
File "/home/peterbe/zope/zope288/lib/python/Zope2/__init__.py", line
46, in startup
from Zope2.App.startup import startup as _startup
File "/home/peterbe/zope/zope288/lib/python/Zope2/App/startup.py",
line 32, in ?
import OFS.Application
File "/usr/HOME/peterbe/zope/zope288/lib/python/OFS/Application.py",
line 26, in ?
File
"/home/peterbe/zope/zope288/lib/python/App/ApplicationManager.py", line
32, in ?
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
File
"/home/peterbe/zope/zope288/lib/python/Products/PageTemplates/PageTemplateFile.py",
line 27, in ?
from PageTemplate import PageTemplate
File
"/home/peterbe/zope/zope288/lib/python/Products/PageTemplates/PageTemplate.py",
line 26, in ?
from TAL.TALInterpreter import TALInterpreter, FasterStringIO
File "/home/peterbe/zope/zope288/lib/python/TAL/TALInterpreter.py",
line 31, in ?
from zope.i18nmessageid import MessageID
ImportError: cannot import name MessageID
I thought the first path in sys.path is where it should start to search.
I can happily do this::
peterbe@trillian:~/zope/zope288/lib/python $ python2.4
Python 2.4.4 (#2, Mar 7 2007, 19:12:09)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zope.i18nmessageid import MessageID
>>>
What to do? Why isn't the sys.path order "respected"?
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
Hi Zopistas!
Yesterday evening I installed 2.10.3 for some tests with Zwiki (haven't
tried any of the other 2.10s). I noticed that the wiki logo wasn't
displayed. I think I narrowed it down to the "default" keyword in
tal:replace being treated like "nothing".
**** My testcase (in a blank ZPT):
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"
tal:replace="structure here/notexists|default" />]
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"
tal:replace="structure default" />]
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif"
tal:replace="default" />]
**** Expected behaviour:
In 2.9 these render to 3 little zpt.gif icons in []. Rendered source:
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif" />]
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif" />]
[<img src="http://127.0.0.1:8080/misc_/PageTemplates/zpt.gif" />]
**** What I got:
In 2.10.3 this renders to the html source:
[]
[]
[]
I tested on two machines, but both Mac OS X 10.4 (one PPC, one Intel),
so I'd be glad if someone could try and reproduce it, to see if it's
just on "my" OS / machine combination. If it is, I will of course submit
it to the Collector. Of course if the expected behaviour has changed,
then I must have missed that information.
Regards,
Sascha
Hi!
Some one could help me to construct a correct __bobo_traverse__ or wrapper
for my necesities.
The clues:
I have this model of __bobo_traverse__:
def __bobo_traverse__(self, REQUEST, nombre):
obj = getattr(self, nombre, None)
if obj is None:
self.REQUEST.set('TraversalRequestNameStack',
self.REQUEST["TraversalRequestNameStack"]
+ [nombre])
if hasattr(self, 'index.html'): return getattr(self, 'index.html
')
else:
resultado = self.__call__()
if type(resultado) == type(unicode()): return
WrapperUnicode(resultado)
elif type(resultado) == type(str()): return
WrapperStr(resultado)
elif type(resultado) == type(dict()): return
WrapperDict(resultado)
else: return resultado
return obj
With this Wrapper classes:
class WrapperStr(str):
""" """
__roles__ = None
def __bobo_traverse__(self, REQUEST, nombre):
obj = getattr(self, nombre, None)
if obj is None: return self
else: return obj
class WrapperUnicode(unicode):
""" """
__roles__ = None
def __init__(self, cadena):
self.cadena = cadena
def __bobo_traverse__(self, REQUEST, nombre):
obj = getattr(self, nombre, None)
if obj is None: return self
else: return obj.__of__(self)
def __call__(self):
return self.cadena
def __str__(self):
return str(self.cadena.decode('latin-1'))
class WrapperDict(dict):
""" """
__roles__ = None
def __bobo_traverse__(self, REQUEST, nombre):
obj = getattr(self, nombre, None)
if obj is None: return self
else: return obj
With this version I have the security problem I'm asking this days. The last
opinion was the Wrapper classes are the problem but you could see the
wrappers I can do with the information I have
But if I change the __bobo_traverse__ to this:
def __bobo_traverse__(self, REQUEST, nombre):
obj = getattr(self, nombre, None)
if obj is None:
self.REQUEST.set('TraversalRequestNameStack',
self.REQUEST["TraversalRequestNameStack"]
+ [nombre])
if hasattr(self, 'index.html'): return getattr(self, 'index.html
')
else:
obj = getattr(self, 'lanzador', None)
return obj
Where lanzador is a page template with this code:
<tal:b tal:replace='structure here' />
Then it works perfect!! (we can conclude, then, that Martijn has good clues
about the problem, thanks again!)
Here my petition of help:
Could someone explain or point me to how the wrappers need to be? I don't
like so much the idea that all my work depends on a page template with 1
line of code if I could implement it at product code
Thank you!
--
Mis Cosas
http://blogs.sistes.net/Garito
Hi all,
we are developing a couple of zope apps which now
are becoming pretty complex and, unfortunately,
up to now we're developing TTW since we
haven't yet find
a smart & fast way to do our job avoiding the ZMI.
We've searched a lot around but never found a nice guidence or howto...
It'll be nice to develop by eclipse...
Anyways, since the last upgrade (zope 2.9) even the external editor
doesn't work anymore. (sob...)
Someone suggested us to use a FS dump product, another one instead pointed us
to zope FS products, but, is there any
article/howto on how to make group development/debugging of middle/large sized zope apps
a nice and confortable experience?
Thank you!
Roberto
___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html
Hi;
I had this problem on another server I recently built...and it went away
all by itself! I'm now rebuilding my home server, and it's cropped up
again. Last time, Maciej Wisniowski suggested I go to a zopectl prompt
and type in "import Products.CMFPlone", but apparently that doesn't work
on Zope 2.7.8/Plone 2.1.4. Here is the traceback.
As per suggestions, I tried the Plone list once again. Nobody responded
within an entire week! Somebody responded on this list once before.
Since Zope is the foundation of Plone, do you mind that I post here
so that I can get an answer? I would really like to get an answer to this.
TIA,
Tony
________________________________________________________________________
AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.