Re: [Zope3-Users] local search engine

2013-08-14 Thread Michael Howitz
Am 01.08.2013 um 14:10 schrieb christophe petit : […] > @adapter(ISearchz, IObjectAddedEvent) > def creationCatalog(event): […] > Could you see what's wrong at first sight ? You define two arguments in the adapter decorator, but your function accepts only one. Yours sincerel

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

2011-06-15 Thread Michael Howitz
ver. There needs to be a wrapper script somewhere (maybe in `bin`) which sets the path correctly 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) · ge

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

2011-06-14 Thread Michael Howitz
.4.0c1/lib/python/ZEO/runzeo.py", line 244, 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 · softwa

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

2010-10-22 Thread Michael Howitz
in whatever if y}\n')) > > SyntaxError: ('invalid syntax', > ('/home/david/sampleproject/eggs/tmpwTJ7tk/RestrictedPython-3.6.0-py2.6.egg/RestrictedPython/tests/security_in_syntax27.py', > 6, 13, '{y: y for _restricted_name in x}\n')) These error

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

2009-07-15 Thread Michael Howitz
z3c:layout in zcml ? Did 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 1

Re: [Zope3-Users] Problem viewing an object in the browser.

2009-06-08 Thread Michael Howitz
age that you are trying to access is not available" Hi, put a Pdb into the __call__ method of your views to see whether they are called and do not raise an exception. (Which later on gets masked by the message you get displayed.) Mit freundlichen Grüßen -- Michael Howitz · m...@gocept.

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

2009-05-18 Thread Michael Howitz
em. Some people used URLs starting with 'svn://' as home page oder download URL in pypi, which buildout can't use. > but buildout claimed that it "Got" versions of each of the 3 > packages i specified (and several dependencies as well). Yours sincerely, -- Mi

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

2009-05-18 Thread Michael Howitz
wing line: >> extends = http://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

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

2009-05-16 Thread Michael Howitz
following (without the indentation): [versions] zope.app.apidoc = 3.6.3 Run bin/buildout to install the new packages. Yours sincerely, -- Michael Howitz · m...@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com ·

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

2009-04-14 Thread Michael Howitz
but does not > appear 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 sincere

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

2009-04-14 Thread Michael Howitz
enough. > > I wish to find out my mistake, correct 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

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

2009-03-04 Thread Michael Howitz
irectory Google finds this: http://www.mail-archive.com/plone...@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 ha

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

2009-03-04 Thread Michael Howitz
You might 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 Pl

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

2009-01-18 Thread Michael Howitz
property, as 'test' is your class, you called the instance 'test_class'. 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

[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

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

2008-09-18 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

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

2008-09-16 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 develop

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

2008-05-27 Thread Michael Howitz
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 develop

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

2008-05-12 Thread Michael Howitz
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

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

2007-12-13 Thread Michael Howitz
r ToolCode objects.""" def renderCode(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 ___

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

2007-09-20 Thread Michael Howitz
ust be integers Hi, can you please include a complete traceback 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 __

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

2007-08-14 Thread Michael Howitz
the german 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

Re: [Zope3-Users] imports cleanup

2007-03-14 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] 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

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

2006-06-06 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] Dynamic Typing: Are checks on interface compliance possible?

2006-05-17 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, w

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 "", line 1, in -toplevel- print MyForm(None, request)() File "", line 6, in __call__ widgets = form.setUpWidgets(self.form_fields, 'fo

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 gene

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

2006-04-12 Thread Michael Howitz
Florian Lindner wrote: Am Mittwoch, 12. April 2006 08:39 schrieb Michael Howitz: reg = site.UtilityRegistration(name, interface, utility) Thanks for the code. One question: Of what type is site? Sorry i forgot one import: from zope.app.component import site -- Mit freundlichen Grüßen

Re: [Zope3-Users] Re: Programmatically changing GroupInformation.principals

2006-04-12 Thread Michael Howitz
) # do the pau things finally: zope.app.component.hooks.setSite(old_site) Where root_folder is the object providing ISite (the site containing your PAU). HTH -- Michael Howitz gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon: +49 345 1229

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

2006-04-11 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] 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 tru

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

2006-04-05 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] Adapting multiple times

2006-04-04 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 > impleme

Re: [Zope3-Users] TAL and Decimals

2006-04-04 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: > > > Which generates the follow exception: > ForbiddenAttribute: ('__float_

Re: [Zope3-Users] principalfolder breaks manager

2006-03-30 Thread Michael Howitz
this to zcml: > > You can only do a grantAll for users defined via ZCML. All other users you have to do zope.app.securitypolicy.principalpermission \ import principalPermissionManager principalPermissionManager.grantAllPermissionsToPrincipal("mpgsite.test") -- Mit freundl

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 >

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

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 need

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 >

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

2006-03-08 Thread Michael Howitz
s, intid) > reg_manager.addRegistration(intids_reg) > intids_reg.status = ActiveStatus The shorter way is: zope.app.appsetup.bootstrap.ensureUtility( context, IIntIds, '', IntIds, copy_to_zlog=False) -- Mit freundlichen Grüßen Michael How

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

2006-03-07 Thread Michael Howitz
ling 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 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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] 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: > >provides=".interfaces.IHTTPConnection" > factory