Re: [Zope3-Users] Adapting a builtin?

2005-12-06 Thread Michael Howitz
On Tue, 2005-12-06 at 18:44 -0500, Paul Winkler wrote: Hi, Is it possible to register an adapter for a builtin type such as str? All the adapter examples I see use an interface for the for attribute. Something like: adapter for=str provides=.interfaces.IHTTPConnection

Re: [Zope3-Users] Adapting a builtin?

2005-12-12 Thread Michael Howitz
On Mon, 2005-12-12 at 18:06 -0500, Paul Winkler wrote: [...] # toward the end of # tests/testtests/test_AcceleratedHTTPCacheManager.py # def test_XXXinterface(self): url = 'http://www.google.com' from Products.StandardCacheManagers.interfaces

Re: [Zope3-Users] Re: Creating objects in software space when making site

2006-03-07 Thread Michael Howitz
'_SampleContainer__data' Any idea? How about calling super(Centershock, self).__init__(*args, **kw) But this will not work because during __init__ you have no context which is needed by the site manager. Try to subscribe to the ObjectAddedEvent. -- Mit freundlichen Grüßen Michael Howitz

Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-26 Thread Michael Howitz
Am Montag, den 27.03.2006, 11:52 +0900 schrieb [EMAIL PROTECTED]: Hi, I got a ploblem with SimpleVocabulary/SimpleTerm. Here is the situation of that. (1) I used Zope3.2 on Windows XP. (2) I made : a vocabulary, and a Choice field with the vocabulary, and a

Re: [Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

2006-03-28 Thread Michael Howitz
Am Montag, den 27.03.2006, 18:31 +0900 schrieb [EMAIL PROTECTED]: I'd like to ask one more question. Why does SimpleVocabulary.fromValues/fromItems() not set 'title' ? Is there any good reason? Current implementation is unconvenient for non-ascii people. Sure. Maybe a new method is needed

Re: [Zope3-Users] container protectName

2006-03-28 Thread Michael Howitz
Am Mittwoch, den 29.03.2006, 01:56 -0500 schrieb Pete Taylor: Hi all (yet again ;) ), I ran into this issue on a project I worked on before, but I ended up changing the design before it became a significant issue. this time around, i don't see a way by it. i have a class that derives from

Re: [Zope3-Users] container protectName

2006-03-29 Thread Michael Howitz
Am Mittwoch, den 29.03.2006, 12:22 -0500 schrieb Pete Taylor: That worked immediately... Thank you sir. other than being really smart, how did you know to look at that? I had the same problem some time ago. ;) I guess I don't understand some of the implied permissions, esp when they

Re: [Zope3-Users] principalfolder breaks manager

2006-03-30 Thread Michael Howitz
defined via ZCML. All other users you have to do zope.app.securitypolicy.principalpermission \ import principalPermissionManager principalPermissionManager.grantAllPermissionsToPrincipal(mpgsite.test) -- Mit freundlichen Grüßen Michael Howitz

Re: [Zope3-Users] TAL and Decimals

2006-04-05 Thread Michael Howitz
Am Dienstag, den 04.04.2006, 11:24 -0500 schrieb David Johnson: I am reading a decimal field from a database and trying to display it in a page template. What is the TAL to do this? Among other things, I’ve tried: div tal:replace=python: u'%f' % (item.price) / Which generates the follow

Re: [Zope3-Users] Adapting multiple times

2006-04-05 Thread Michael Howitz
Am Mittwoch, den 05.04.2006, 08:48 +0200 schrieb Frank Burkhardt: Hi, I've got objects implementing interface IMyObject and two adapters: IMyObject - ISearchable ISearchable - ISearchableEN I would like to use a TextIndex to do fulltext search on objects implementing

Re: [Zope3-Users] Seeking Explicit Acquisition Support re Climbing Containment Hierarchy

2006-04-06 Thread Michael Howitz
Am Mittwoch, den 05.04.2006, 09:36 -0500 schrieb Jeff Rush: I know that Zope3 dropped 'implicit' acquisition, but is there any support for *explicit* acquisition that walks the __parent__ containment hierarchy. Something that follows the same rules as traverse() to look up a name, but

Re: [Zope3-Users] Security in Code, example, why does this work?

2006-04-10 Thread Michael Howitz
Reinhold Strobl wrote: Hi, (...) So can code always access everything, or not? In Zope 3 there is also the concept of trusted and untrusted code like in Zope 2 See http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ShortTutorial/short.pdf pages 88 - 94 (esp. page 94) In

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Michael Howitz
Florian Lindner wrote: Hello, I've a PluggableAuthentication and want to add and register some plugins to it. Adding works fine: principal_folder = zope.app.authentication.principalfolder.PrincipalFolder(prefix = cs) pau[PrincipalFolder] = principal_folder and I think I can select it

Re: [Zope3-Users] Creating PluggableAuthentication problem.

2006-04-18 Thread Michael Howitz
Tobias Weber wrote: Hello! I try to add a PluggableAuthentication and a PrincipalFolder automatically. When I add a principal to the PrincipalFolder it works fine, but the authentification of the User fails. When I add one more PluggableAuthentication manually and choose the automatically

Re: [Zope3-Users] formlib problem

2006-04-18 Thread Michael Howitz
Stéphane Brault wrote: Hi, I can't use formlib, when I run the example in the form.txt I get this error: Traceback (most recent call last): File pyshell#29, line 1, in -toplevel- print MyForm(None, request)() File pyshell#26, line 6, in __call__ widgets =

Re: [Zope3-Users] Dynamic Typing: Are checks on interface compliance possible?

2006-05-18 Thread Michael Howitz
Reinhold Strobl wrote: Hi, what I am looking for is something like PyChecker for Zope interfaces. I mean PyChecker aims to address the benefit of static typed languages and their compile-time checkings. In Zope, there is no forced interface compliance. But is there a possibility or program,

Re: [Zope3-Users] testing using placefulSetUp, zcml and events

2006-06-07 Thread Michael Howitz
Achim Domma wrote: Hi, I have a content object I want to set up in a IObjectCreatedEvent event handler. I want to use the interactive interpreter to play with this, but it looks like my configure.zcml is not parsed and executed if I use placefulSetUp. This is correct, placefulSetUp is used

Re: [Zope3-Users] runzope gives error in zope.conf

2006-10-31 Thread Michael Howitz
David Walker wrote: [...] The referenced line in zope.conf is: formatter zope.exceptions.log.Formatter [...] I’m running Windows XP and have installed Zope-3.2.1.win32-py2.4. [...] Any ideas? Looks like Issue 719: http://www.zope.org/Collectors/Zope3-dev/719 It says that this problem is

Re: [Zope3-Users] imports cleanup

2007-03-15 Thread Michael Howitz
Am 15.03.2007 um 01:52 schrieb Christophe Combelles: [...] Is there a tool or a method to automatically clean or detect unused imports ? In your Zope3-Instance there should be a python script called importchecker which can detect unused imports. hth, mac

Re: [Zope3-Users] Re: Invariants and forms

2007-08-15 Thread Michael Howitz
description of the examples says. -- Yours sincerely, Michael Howitz gocept gmbh co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon: +49 345 12298898 · fax: +49 345 12298891 ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] how to use invariant/validator? (z3c.form=1.6 and z3c.formui=1.3)

2007-09-21 Thread Michael Howitz
to see where the exception occurres? -- Yours sincerely, Michael Howitz gocept gmbh co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon: +49 345 12298898 · fax: +49 345 12298891 ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] XMLRPC Method with **kwargs

2007-12-13 Thread Michael Howitz
(self, data): return self.context.renderCode(**data) -- Yours sincerely, Michael Howitz gocept gmbh co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon: +49 345 12298898 · fax: +49 345 12298891 ___ Zope3-users mailing list Zope3

Re: [Zope3-Users] How do I find out references to objects in ZODB

2008-05-13 Thread Michael Howitz
a news article. Do I have to keep track of object referencing in ZODB myself through events or there are some built-in mechanism in ZODB to take care of this for me? Hi, maybe gocept.reference[1] can help you. [1] http://pypi.python.org/pypi/gocept.reference/0.2 -- Yours sincerely, Michael

[Zope3-Users] New release of zc.recipe.egg needed

2008-05-28 Thread Michael Howitz
for this package) here to volunteer for a release? Yours sincerely, -- Michael Howitz · [EMAIL PROTECTED] · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development

[Zope3-Users] z3c.menu vs. z3c.menu.simple

2008-09-17 Thread Michael Howitz
? Yours sincerely, -- Michael Howitz · [EMAIL PROTECTED] · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development

Re: [Zope3-Users] Windows Vista, Buildout python-cjson

2008-09-19 Thread Michael Howitz
, -- Michael Howitz · [EMAIL PROTECTED] · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope3-users

[Zope3-Users] z3c.menu.ready2go release request

2008-12-13 Thread Michael Howitz
Hi, some weeks ago a bug in z3c.menu.ready2go was fixed but there was no new release since then. I'd like to use this bug-fixed version as the bug has also bitten me, so I'd like to request a new release of the package. Thanks in advance. Yours sincerely, -- Michael Howitz · m

Re: [Zope3-Users] Why does schema validation not work in this example?

2009-01-18 Thread Michael Howitz
'. test_class.number = 'asdf' results in the exception you expect. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone

Re: [Zope3-Users] Best way to represent a foreign key in ZODB

2009-03-04 Thread Michael Howitz
have a look at http://pypi.python.org/pypi/gocept.reference Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting

Re: [Zope3-Users] Best way to represent a foreign key in ZODB

2009-03-04 Thread Michael Howitz
...@lists.plone.org/msg02411.html (sounds a bit similar especially because I do not understand Italian :) Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8

Re: [Zope3-Users] Module zope has no global viewlet

2009-04-14 Thread Michael Howitz
it and move on. Did you declare zope.viewlet as an install requirement in the setup.py of your project? Maybe zopeproject does not do this automatically. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http

Re: [Zope3-Users] Module zope has no global viewlet

2009-04-14 Thread Michael Howitz
in the bin/paster and other scripts. KGS only defines the versions of packages which can be used together. This does not mean that all these packages get installed. To use one package (aka install it) you have to declare it as install dependency in setup.py. Yours sincerely, -- Michael Howitz

Re: [Zope3-Users] z3c.form in the apidoc code browser

2009-05-18 Thread Michael Howitz
://download.zope.org/zope3.4/3.4.0/versions.cfg Then this is wrong: Run bin/buildout to install the new packages. You should run: bin/buildout -n to get all the new packages. Sorry, my fault. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29

Re: [Zope3-Users] Question about z3c:layout

2009-07-15 Thread Michael Howitz
you look at z3c.formui.form.Form? This is the pagelet integration package for z3c.form. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889

Re: [Zope3-Users] Zope3-users Digest, Vol 71, Issue 6

2010-10-22 Thread Michael Howitz
, 13, '{y: y for _restricted_name in x}\n')) These errors only occur because there are tests for Python 2.7 syntax constructs which are not yet exising in the Python 2.6 you used. You can safely ignore this errors. Mit freundlichen Grüßen -- Michael Howitz · m...@gocept.com · software

Re: [Zope3-Users] Unable to start ZEO server

2011-06-14 Thread Michael Howitz
, in loop_forever import ThreadedAsync.LoopCallback ImportError: No module named ThreadedAsync.LoopCallback Zope 3.4 requires Python 2.4 to run, Python 2.6 is too new. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle

Re: [Zope3-Users] Unable to start ZEO server

2011-06-15 Thread Michael Howitz
and knows the parameters like the path to the Data.fs. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting

Re: [Zope3-Users] local search engine

2013-08-14 Thread Michael Howitz
sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh co. kg · Forsterstraße 29 · 06112 Halle (Saale) · Germany http://gocept.com · Tel +49 345 1229889-8 Python, Pyramid, Plone, Zope · consulting, development, hosting, operations signature.asc Description: Message signed