On 14/03/2013 08:01, Marius Gedminas wrote:
What's the official location of RelStorage? I see two source trees:
* http://zope3.pov.lt/trac/browser/relstorage/trunk
* https://github.com/zodb/relstorage
They have the same commits (~1 year old).
..and one more just for good measure:
Hi All,
I used to do this:
import transaction
with transaction:
... print 'hello'
...
Traceback (most recent call last):
File console, line 1, in module
AttributeError: __exit__
When did that stop working and what should I now do instead?
cheers,
Chris
--
Simplistix - Content
On 06/02/2013 11:47, Wichert Akkerman wrote:
You can also use the transaction manager directly instead of the bound methods
transaction lifts out of it:
import transaction
with transaction.manager:
pass
yeah, this is what I'll do.
Chris
--
Simplistix - Content Management, Batch
On 10/01/2013 20:48, Jim Fulton wrote:
It isn't just CI: people may have projects running from SVN checkouts,
which we break without warning (the Plone devs have been notorious for
causing such breakage for years).
I still think breakage is better. If they're using trunk, without
pinning a
Hi Jens,
On 18/08/2012 09:39, Jens Vagelpohl wrote:
Legally this must be a fork then and I'm not sure it can be released as
official Zope Foundation software anymore if you make releases from GitHub.
Reason: the ZF can no longer ascertain that only official ZF contributor
agreement signers
I'm not going to dignify this with a fuller response other than to say
that Jean-Paul Smets' entire email is nothing but bullshit written to
try and promote an inferior competing product ;-)
Chris
On 18/08/2012 13:31, Jean-Paul Smets wrote:
Hi,
I approve your position Jens.
Moving to git
Hi All,
Got this:
Getting distribution for 'zope.interface'.
In file included from
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
from
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
On 30/06/2012 18:12, Tres Seaver wrote:
How have other people solved this?
For repoze.sendmail, I did two fixups for Python 2.5:
- - I changed 'install_requires' in setup.py based on sys.version_info
https://github.com/repoze/repoze.sendmail/blob/master/setup.py
- - I pinned the verstion
Hi All,
While trying to debug another problem, I re-ran some Jenkins jobs for
two of my packages, which promptly failed under Python 2.5:
http://jenkins.simplistix.co.uk/job/testfixtures-buildout/
http://jenkins.simplistix.co.uk/job/checker-buildout/
Now, the issue here is that
On 20/12/2011 10:44, Jim Fulton wrote:
What's wrong with mod_wsgi?
Debugging with it seems to be a pain, so you end up using different
servers in development and production.
I'm pretty sure if you ask Graham there'll be a simple way to run Apache
mod_wsgi in a way that lets you debug in
On 05/01/2012 21:07, Fred Drake wrote:
On Thu, Jan 5, 2012 at 1:47 PM, Chris Withersch...@simplistix.co.uk wrote:
Is there any way in ZConfig to allow a file that looks like this:
...
...or some other way of spelling multi-line values for a key?
Nope, sorry. I played with adding that at
Hi Fred,
Is there any way in ZConfig to allow a file that looks like this:
somesection
key1 value1
key2
multi
line
value
/key2
/somesection
...or some other way of spelling multi-line values for a key?
If so, how do I phrase it in the schema?
cheers,
Chris
--
Simplistix - Content
On 20/12/2011 07:08, Wolfgang Schnerring wrote:
as advanced as we've come to know. What do people use here, what are
your experiences and ideas?
What's wrong with mod_wsgi?
Chris
--
Simplistix - Content Management, Batch Processing Python Consulting
- http://www.simplistix.co.uk
On 17/11/2011 16:32, Tres Seaver wrote:
Note that this question is *not* suitable for loudest voice on zope-dev
wins ressolution. The software belongs to the Zope Foundation, which
will make any such decision.
Small point: the software is open source and anyone who wants can
maintain it
On 09/11/2011 13:17, Benji York wrote:
If this is the case, perhaps Manuel shouldn't do anything with
countTestCases? (I know it would drop the test count, but that's not
*that* important, right? ;-) - and at least all the test runners would
agree...)
Meh. Having a good count in complaint
Hi Benji,
On 08/11/2011 11:10, Jonathan Lange wrote:
Mark has somewhat misdirected the thread here, either that or I've got in a
muddle, anyway, the issue at hand is that nose ignores
TestCase.countTestCases(). Any nose people know what that is?
Not a nose person, but it's usual to report on
Any idea what mx1.emailsrvr.com doesn't like?
Is it Bejni's address, the email in question or that isn't coming from
server1.simplistix.co.uk?
cheers,
Chris
(trying again to get around the crazy zope.org obsession with banning
.eml attachments - ie: Thunderbird and others forwarded
Hi Benji,
On 03/11/2011 12:31, Benji York wrote:
If you will tell me how you wired up Manuel and nose, I'd love to add a
how-to section to the Manuel docs.
The only hiccup is that nose doesn't respect a test_suite function by
default, so I wrote a plugin to make it do the right thing:
Hi All,
I'm experimenting with using nose as an alternative to zope.testrunner
so I can take advantage of the junit and cobertura compatible xml output
offered.
However, it appears that doctest counting is different between the two:
$ bin/test -m testfixtures.tests.test_docs
Running
Hi Michael,
On 03/11/2011 09:12, Michael Howitz wrote:
Run both test runners with the option -vv to see which tests are run.
(I did this for your code and the list of tests seems to be equal.)
Cool, I'd done this already, but it's good to have someone else verify
this :-)
Though this is no
On 03/11/2011 10:54, Matthew Wilkes wrote:
On 2011-11-03, at 0025, Chris Withers wrote:
I'm experimenting with using nose as an alternative to zope.testrunner
so I can take advantage of the junit and cobertura compatible xml output
offered.
Using http://pypi.python.org/pypi
On 03/11/2011 11:05, Jim Fulton wrote:
On Thu, Nov 3, 2011 at 5:14 AM, Chris Withersch...@simplistix.co.uk wrote:
Hi Michael,
On 03/11/2011 09:12, Michael Howitz wrote:
Run both test runners with the option -vv to see which tests are run.
(I did this for your code and the list of tests
On 28/10/2011 08:46, yuppie wrote:
Is that the fault of the publisher? AFAICT the biggest security problem
of Zope2 is this line in OFS.SimpleItem.Item:
# Allow (reluctantly) access to unprotected attributes
__allow_access_to_unprotected_subobjects__=1
I'm not familiar with the
On 29/09/2011 15:22, Laurence Rowe wrote:
On 29 September 2011 10:33, Chris McDonoughchr...@plope.com wrote:
On Tue, 2011-09-27 at 12:40 -0400, Tres Seaver wrote:
This bootstrap is from Jim's '2' branch of zc.buildout:
On 23/09/2011 19:16, Charlie Clark wrote:
Am 23.09.2011, 09:36 Uhr, schrieb Chris Withersch...@simplistix.co.uk:
t tried zope.interface 3.8.0 on MacOS X Lion and got:
Oh you brave boy! Given what Apple managed with Snow Leopard I've held off
Lion so far and I always use the MacPorts
On 27/09/2011 02:47, Chris McDonough wrote:
In case anyone is interested, I've made a stab at porting
zope.sqlalchemy to Python 3 at
http://svn.zope.org/zope.sqlalchemy/branches/chrism-py3/ . Several
tests still fail. I could use some help fixing them.
Have you tried running the tests by
On 22/09/2011 10:10, Chris McDonough wrote:
On Thu, 2011-09-22 at 10:10 +0200, Hanno Schlichting wrote:
On Thu, Sep 22, 2011 at 9:03 AM, Chris McDonoughchr...@plope.com wrote:
I've made tags for zope.interface 3.8.0 and zope.component 3.11.0, as
described in a recent thread to this list, but
On 15/09/2011 07:11, Chris McDonough wrote:
zope.registry also currently provides a minor API in the way of an
adapts decorator. This could (and should) be moved back into
zope.component; it's actually not used internally by zope.registry now
(although some decoy imports would make you think
On 26/08/2011 02:17, Charlie Clark wrote:
Regarding Withers suggestion - should we be looking to move these
libraries to the WSGI namespace? Or are there real use cases outside the
web world?
As with Tim, I use both of these libraries plenty of the time outside of
web work...
cheers,
Chris
On 25/08/2011 06:24, Jim Fulton wrote:
Maybe something like zope.plugins would be better. When I try
to explain zope.component to people, I often explain it as a good
generic plugin mechanism.
If we're renaming, we could also consider dropping the zope bit.
I never will understand the
Hi All,
I'm happy to announce a new release of TestFixtures with the following
changes:
- Removed the dependency on zope.dottedname.
- Implement the ability to mock out dict and list
items using testfixtures.Replacer and
testfixtures.replace.
- Implement the ability to remove attributes
Hmm, might have been helpful to include docs for these new bits:
On 19/07/2011 09:36, Chris Withers wrote:
- Implement the ability to mock out dict and list
items using testfixtures.Replacer and
testfixtures.replace.
- Implement the ability to remove attributes and dict
items using
On 28/06/2011 18:28, Johannes Raggam wrote:
on http://www.zope.org/Products/Zope/swpackage_releases
there are zope 2.8.12, 2.9.12, 2.10.13 and 2.11.8 available, where on
launchpad they are not.
Not to mention that http://www.zope.org/Products/ is out of date and
lists Zope 2.11.4 as the
Hi All,
Apologies for the cross post, but this problem is occurring with a
repoze.bfg app running on apache using mod_wsgi, and the exception is
suggesting something zope.interface related...
So, firstly, it only happens intermittently, and I haven't been able to
figure out any pattern to the
On 12/06/2011 21:48, Chris McDonough wrote:
Currently if you ask a registry to singly-adapt an object to an
interface, and the object you're trying to adapt implements that
interface, here's what happens:
from zope.component.registry import Components
c = Components()
from zope.interface
On 13/06/2011 15:26, Charlie Clark wrote:
In order to get the object itself back from such an adaptation, you need
to use the default= argument.
I know that the question has been answered but your question makes me ask
another: why would you want to adapt an object with itself?
I have
Hi All,
I found a link off the new site (which looks great, btw) to:
http://zodb.zope.org/
...but this name doesn't resolve for me, does it for other people?
Chris
On 10/05/2011 05:55, Andreas Jung wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi there,
I am happy to announce
On 10/05/2011 22:31, Jens Vagelpohl wrote:
...but this name doesn't resolve for me, does it for other people?
The link is incorrect. It should point to www.zodb.org.
Where would I got to fix it?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing Python Consulting
On 11/05/2011 06:45, Andreas Jung wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
On 10/05/2011 22:31, Jens Vagelpohl wrote:
...but this name doesn't resolve for me, does it for other people?
The link is incorrect. It should point to www.zodb.org.
Where would I
On 11/05/2011 06:52, Andreas Jung wrote:
How do existing Zope contributors help out?
Please make your notes. We will pick them up and incorporate
for the final version. Further changes should be made by the webmaster
which is currently Michael Haubenwaller.
This sounds a lot like we don't
Hi All,
I'm happy to announce a new release of TestFixtures.
This release adds a utcnow method to test_datetime that behaves
identically to the now method:
http://packages.python.org/testfixtures/api.html#testfixtures.tdatetime.utcnow
The package is on PyPI and a full list of all the links to
On 30/03/2011 12:29, Wolfgang Schnerring wrote:
(Shameless plug: ;-) gocept.zestreleaser.customupload is a plugin for
zest.releaser that allows uploading the created egg via scp. We use this
to put our non-public eggs into a folder that's served (and htpasswd
protected) by an Apache or
Hi Christian,
On 25/03/2011 16:49, Christian Theune wrote:
the German speaking Zope Users Group (DZUG e.V.) organizes a series of 4
sprints this year to support feature development within the proximity of
the ZTK and solve problems encountered by Zope, Plone and Python developers.
snip
Hi All,
This is particularly problematic when using the common case of
SQLAlchemy declaratively mapped model classes.
The attached unit test when run will fail with:
Error in test test_provideAdapter (test_sa.TestAdapter)
Traceback (most recent call last):
File
On 27/02/2011 17:22, Tres Seaver wrote:
TypeError: 'DeclarativeMeta' object is not iterable
Why is that and how should I register an adapter against such a class?
UTSL: the 'required' argument passed to 'registerAdapter' is supposed
to be a sequence of interfaces or classes, not a single
Hi Jim,
The current __exit__ for transaction managers looks like this:
def __exit__(self, t, v, tb):
if v is None:
self.commit()
else:
self.abort()
..which means that if you're using the transaction package as a context
manager and, say, a
On 24/02/2011 11:38, Laurence Rowe wrote:
Hi Jim,
The current __exit__ for transaction managers looks like this:
def __exit__(self, t, v, tb):
if v is None:
self.commit()
else:
self.abort()
..which means that if you're using the
Hi All,
I'm happy to announce a new release of TestFixtures.
This release adds a helper for tests of code using zope.component:
http://packages.python.org/testfixtures/components.html
The package is on PyPI and a full list of all the links to docs, issue
trackers and the like can be found
On 08/09/2009 18:04, Chris Withers wrote:
Coming back to this ancient thread...
...and once more, only a year and a half later ;-)
What I'd really like to do is write a Manuel plugin that will be part of
testfixtures' TempDirectory and would handle the following:
.. topic:: some/dir
On 02/12/2010 08:15, Malthe Borch wrote:
I always found configuration overrides (e.g. ZCML'sincludeOverrides
directive) to be difficult to manage and hard to get right.
How about an alternative where you can put a priority on a
configuration context like so:
adapter zcml:priority=100 ...
On 10/11/2010 14:23, Christian Theune wrote:
I'd like to keep this out of the server: rotation is a system
administration task where I'd like to rely on the policies and tools
provided by the system environment.
I just use logrotate's copytruncate option :-)
Chris
--
Simplistix - Content
Switching to zope-dev as this has become a Zope question:
On 04/11/2010 14:17, Shane Hathaway wrote:
On 11/04/2010 06:32 AM, Chris Withers wrote:
I have the following config for the temp_folders of my ZODB instances:
zodb_db temporary
relstorage destination
mysql
Hi All,
In Zope 2.12, try putting the following in a TTW ZPT:
tal:c content=#8250;/
...nothing more, nothing less.
On save, I get:
Compilation failed
type 'exceptions.UnicodeEncodeError': 'ascii' codec can't encode
character u'\u203a' in position 0: ordinal not in range(128)
If I try and
On 11/10/2010 19:00, Alan Runyan wrote:
Try with a smaller batch (whatever you are doing) and profile it.
I 100% agree with what ajung says. post a profile of your batch run
that takes ~30 minutes.
Related to this, what http load testing tools do people around here
recommend?
cheers,
On 12/10/2010 16:00, Charlie Clark wrote:
Traceback (most recent call last):
File stdin, line 1, inmodule
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u203a' in
position 0: ordinal not in range(256)
ISO-8859-15 is, of course, Latin-1 + the €
Yes, but I don't see why
On 13/10/2010 11:10, Charlie Clark wrote:
Am 13.10.2010, 12:06 Uhr, schrieb Chris Withersch...@simplistix.co.uk:
So why on earth is iso8859_15 being picked instead of utf-8?
I would guess this is the default-publisher-encoding of your system.
I don't have one set.
So, is iso-8859-15 the
On 13/10/2010 11:19, Charlie Clark wrote:
Maybe your question is actually why is the XML entity being converted to
character data at all?
I guess so...
My naive experience is that this just works in Zope 2.9 and just
breaks in 2.12.
Maybe your question is actually why is the XML entity
On 13/10/2010 13:47, Marius Gedminas wrote:
On Wed, Oct 13, 2010 at 08:53:08AM +0100, Chris Withers wrote:
Hi All,
In Zope 2.12, try putting the following in a TTW ZPT:
tal:c content=#8250;/
Are you sure you didn't mean
tal:c content=string:#8250;/
Ah, d'oh! Thanks for the catch
Anyone seen this or know what it means?
Traceback (innermost last):
Module ZPublisher.Publish, line 130, in publish
Module ZServer.HTTPResponse, line 266, in setBody
Module ZPublisher.HTTPResponse, line 330, in setBody
Module ZPublisher.HTTPResponse, line 485, in _encode_unicode
Module
Hi All,
Just finished upgrading a medium sized project from Zope 2.9 to 2.12.
One part of that does a batch of static copies of a Zope-served site.
I guess I was hoping for a bit of a speed up, so was slightly horrified
to see the batch, which used to take 11hrs, now takes 13 hrs. This has
On 11/10/2010 13:32, Hanno Schlichting wrote:
My only guess here is that you are calling a lot of page templates and
those have gotten slower. When we switched to Unicode based templates
in Zope 2.10, that move has of course cost some performance. Dealing
with Unicode instead of bytes is
On 11/10/2010 16:53, David Glick wrote:
Are there any docs on how to get Chameleon to work with classic,
ZODB-based page templates?
Just use cmf.pt: http://pypi.python.org/pypi/cmf.pt
Ah, okay, well, I'm not using anything CMF, so I opted for just five.pt.
Unfortunately, this hits a unicode
Hi All,
Unless I'm missing something, the encoding text field that forms part of
the file upload form on page template instances is completely ignored
since it's not used in the pt_upload method of ZopePageTemplate instances.
Am I missing anything?
Chris
--
Simplistix - Content Management,
On 28/09/2010 12:55, Tres Seaver wrote:
On 09/28/2010 03:36 AM, Chris Withers wrote:
On 28/09/2010 00:12, Marius Gedminas wrote:
--- ./OFS/History.py.orig 2010-09-28 02:11:56.535745440 +0300
+++ ./OFS/History.py2010-09-28 02:12:00.043764683 +0300
@@ -151,6 +151,9
Hi All,
Try this:
- edit a page template
- edit it again
- go to the history tab, and use the Copy to present button to bring
back your first edit.
On the edit tab, you will correctly see the text you brought back.
However, if you render the template, the old text will be used.
It's only if
On 21/09/2010 23:59, Marius Gedminas wrote:
On Tue, Sep 21, 2010 at 07:39:46PM +0100, Chris Withers wrote:
So, would anyone object if I change the default, on both trunk and the
2.12 branch to some variant of:
class BasicEncodingConflictResolver(object):
implements
On 22/09/2010 03:50, Andreas Jung wrote:
I also strongly object such a change in the default behavior.
I'm sorry, but WHAT?
I did a
lot of testing of the current implementation and configuration with
various browsers and Zope applications and add-ons in order to make the
Zope 3 ZPT engine
On 21/09/2010 21:18, Andreas Jung wrote:
I can not recall all details but at the time of the integration of the
Zope 3 ZPT engine the unicode resolver approach was the best thinkable
solution for dealing all possible edgecase where encoding issues may pop
*for the sake of backwards
On 22/09/2010 09:58, Andreas Jung wrote:
If you think it is crap then I cam happy to accept that (and I don't
mind much because Zope 2 is not my radar right now). You are committer
and you can fix my crap. Blame me for having written this crap but you
could also blame me for having on this
Hi All,
It's been a a while since I had a good rant on a Zope list, but this
really takes the biscuit.
Andreas, what on *earth* were you thinking with PreferredCharsetResolver?!
I like the idea of IUnicodeEncodingConflictResolver, but
PreferredCharsetResolver is in the realms of totally
On 21/09/2010 19:32, Hanno Schlichting wrote:
Because there's not all that many people left using plain Zope 2 and
upgrading to new versions.
Well, or they assume they must be doing something wrong because of this
default.
The rest is using Plone, which has its own version of this:
def
On 05/09/2010 15:03, Wichert Akkerman wrote:
On 2010-9-4 00:43, Chris Withers wrote:
On 03/09/2010 17:21, Tres Seaver wrote:
I am not sure if this is best done in plone.recipe.zope2instance or
Zope2.Startup.zopectl. They have differing versions of ZopeCmd. Perhaps
On 09/09/2010 21:47, Jim Fulton wrote:
2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource
manager:MultiObjectResourceAdapter forZODB.DB.TransactionalUndo
object at 0x2d509f0 at 47516176
Traceback (most recent call last):
File
On 03/09/2010 17:21, Tres Seaver wrote:
I am not sure if this is best done in plone.recipe.zope2instance or
Zope2.Startup.zopectl. They have differing versions of ZopeCmd. Perhaps
the plone.recipe.zope2instance code should be merged into Zope2's
original as well?
I don't know anything about
Hi All,
After a recent upgraded to Zope 2.12, I'm now seeing errors like the
following when using IE (version 8) or Safari (version 4.0.3) to view
page templates. Chrome and Firefox work fine.
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module
Marco Bizzarri wrote:
No solution, actually, but I would suggest to sniff the traffic between
you and the server; I suspect different headers cause problems, here.
Of that I have no doubt.
What does Zope2's publisher do with requested encodings and the like now?
Why would this be causing
Charlie Clark wrote:
Am 31.08.2010, 12:05 Uhr, schrieb Chris Withers ch...@simplistix.co.uk:
What does Zope2's publisher do with requested encodings and the like now?
Why would this be causing problems?
I can't remember exactly where but preferred_charset is looked for. It
isn't set
Vladislav Vorobiev wrote:
Maybe not the best solution but I use this hack:
zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py
Indeed, certainly not a good solution.
This implies that things should be unicode by the time they get here.
Now, the decoding shouldn't be dependent on anything the
Laurence Rowe wrote:
architecture i386): Mach-O executable i386
This is telling you that the executable contains versions for ppc and
i386 (no x86_64, so no 64bit version). Another way to confirm this is
at the python prompt with: import sys; sys.maxint
That's annoying, I was hoping
Tim Hoffman wrote:
on linux
t...@chrome:~$ file /usr/bin/python2.5
/usr/bin/python2.5: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
t...@chrome:~$
Right, so the linux boxes are 32-bit as I suspected:
$ file
Tres Seaver wrote:
Now, how in gdb do I find out what it was that was trying to be imported?
(should any sort of import cause a core dump?!)
http://wiki.python.org/moin/DebuggingWithGdb
Things you learn, thanks for that :-)
Okay, another interesting data point; this appears to be related to
Marius Gedminas wrote:
What adapter might that be and what's the right way to get it
registered in a unit test?
DefaultTraversable, I think, and
from zope.app.testing import setup
setup.setUpTraversal()
Various other features need various other components, e.g. if your
Tres Seaver wrote:
Binary search is your friend:
- - Is it only one of the ZPTs which cause the crash?
Dunno this yet, will try and find out...
- - Can you trim out parts of its content and make it not crash?
Yep, if I leave the ZPTs out, it's fine ;-)
Also, you might try exporting to
Hi All,
So, here the story; I have a zodb that's been around for many years.
In it, it has a folder containing a few ZPTs and python scripts.
This server is now running Zope 2.12.
If I zexp export that folder and import into a clean 2.12 instance, the
import works fine, but when I try to go to
Tres Seaver wrote:
It's the sudden death I have issue with, not a peep of logging anywhere...
Two options there:
- - Run under gdb.
gdb says:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xb0186cec
[Switching to process
...often appears to be empty when it shouldn't be.
Has anyone else observed this?
Chris
--
Simplistix - Content Management, Batch Processing Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist - Zope-Dev@zope.org
Chris Withers wrote:
...often appears to be empty when it shouldn't be.
Has anyone else observed this?
The answer turned out to be ZODB 2.10b4 being used on the storage server
side.
I found a clue in the ChangeLog but it sure would be nice if there was
some logging of some sort to warn
Here's an example:
2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource
manager: MultiObjectResourceAdapter for ZODB.DB.TransactionalUndo
object at 0x2d509f0 at 47516176
Traceback (most recent call last):
File transaction-1.1.0-py2.6.egg/transaction/_transaction.py, line
475,
Hi All,
When trying to test a template in a unit test, I get the following
exception:
- Expression: PathExpr standard:u'options/myobject/SomeProperty'
...
File
Zope2-2.12.7-py2.6-macosx-10.3-fat.egg/Products/PageTemplates/Expressions.py,
line 79, in boboAwareZopeTraverse
Andreas Jung wrote:
/Users/ajung/sandboxes/occ/eggs/zc.recipe.egg-1.3.0-py2.6.egg/zc/recipe/egg/egg.py,
line 159, in install
if options.query_bool('dependent-scripts', 'false'):
AttributeError: 'dict' object has no attribute 'query_bool'
Not sure who is in charge and where the related
Hi All,
If I got to the Interfaces tab of a Page Template in the ZMI of a
plain Zope 2.12 instance, it simply renders the template.
Should that tab be there?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing Python Consulting
- http://www.simplistix.co.uk
Hi All,
If a PageTemplate's content type is set to text/plain, the edit form
bombs out with:
2010-08-18 19:40:01 ERROR Zope.SiteErrorLog 1282156801.210.45371719052
http://localhost:8080/index_html/pt_editAction
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Hi All,
The pt_edit method of the ZopePageTemplate appears to have sprouted a
string.strip() as its first line.
While I'm use this is fine for xml and html templating, it's
unacceptable for text/plain templates.
This appears to have been introduced here:
Hi All,
I'm in the process of egg-ifying some Zope 2 Products of mine (first up
is MailTemplates) and I'm curious as to how add-in products work in an
egg-based Zope setup.
Do I need to include anything in zope.conf or some zcml somewhere?
If not how are products picked up? Where can I find
Jens Vagelpohl wrote:
I understand that. But it must be possible to do that programatically in
my code. I mean, setup.py --long-description obviously executes Python
code, which I may be able to execute myself in my current interpreter
session by importing and executing stuff from setuptools.
Hanno Schlichting wrote:
For a general Python package to be picked up, you would need to add a
regular ZCML slug into the etc/package-includes directory of your
instance.
What does a regular ZCML slug look like?
If your package is a namespace package in the 'Products' namespace,
then it
Hanno Schlichting wrote:
On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers ch...@simplistix.co.uk wrote:
What does a regular ZCML slug look like?
My first Google hit is this
http://worldcookery.com/files/ploneconf05-five/step2.html :)
yeah yeah...
Okay, but what about:
include package
Hanno Schlichting wrote:
If you have a package, which isn't in the Products namespace and
still want its initialize to be called, you need to add some bits to
your configure.zcml:
five:registerPackage package=. initialize=.initialize /
Right, that's the bit I was after :-)
Chris
--
Charlie Clark wrote:
As you know, I don't use Plone either. I'm also evil but in a different
way! The recipe just sets up a Zope 2 instance, which I believe is a bit
tricky to work on all platforms.
It's a piece of piss and needs no special recipes:
Chris Withers wrote:
Hanno Schlichting wrote:
On Mon, Jul 26, 2010 at 7:36 PM, Chris Withers ch...@simplistix.co.uk
wrote:
...is currently useless, as far as I can see.
I thought the -p option was an artifact of zdaemon, which zopectl just
didn't support. I took it as a case of the lower
1 - 100 of 1829 matches
Mail list logo