[Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list
Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list. What do you think about this idea ? Regards, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Are there some French Zope user here ? If the number of french user is important, I propose the creation of zope-french-user and zope3-french-user mailing list
2006/9/22, Reinoud van Leeuwen <[EMAIL PROTECTED]>: On Fri, Sep 22, 2006 at 11:29:12AM +0200, KLEIN St?phane wrote: > Are there some French Zope user here ? > > If the number of french user is important, I propose the creation of > zope-french-user and zope3-french-user mailing list. > > What do you think about this idea ? Although French users might prefer to use their native language (which is a problem for me too sometimes ";-), I really prefer to keep everything on one list rather then to spread knowledge over multiple lists so a -1 for me. Ok, then only zope-french-user list ? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Are there some French Zope user here ?
2006/9/22, Encolpe Degoute <[EMAIL PROTECTED]>: There yet the http://afpy.org mailing lists and forums on Zope. They can open a Zope3 space if you want, but don't create an other list please. Yes, I agree with you, but : * I prefer mailing than forum * [EMAIL PROTECTED] is more official than afpy.org domain ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] When I modify one class in my source code, I need always to restart zope server ?
Hi, When I modify one class in my source code, I need always to restart zope server ? I can't tell Zope to reload one class only ? Regards, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Search engine in Zope content component ?
Hello, how can I make one search engine on my content component ? I must use regex in big loop on all content component data ? Regards, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] are you one example to add a content component in root ZODB folder in interactive command ?
Hello, are you one example to add a content component in root ZODB folder in interactive command because I don't understand how it work. Thanks for your help, Stéphane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] I read than ZODB has control version capability. How can I use it ?
Hello, I read than ZODB has control version capability. How can I use it ? Are you one example ? I've Web Component Development with Zope 3 book but I don't see chapiter about it. Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Search engine in Zope content component ?
2006/9/28, Thierry Florac <[EMAIL PROTECTED]>: Le jeudi 28 septembre 2006 à 09:31 +0200, KLEIN Stéphane a écrit : how can I make one search engine on my content component ? I must use regex in big loop on all content component data ? You just have to setup a catalog (in zope.app.catalog) and a set of indexes corresponding with your search criterias Take a look at "zc.catalog" from SVN to get access to a set of additionnal indexes, as well as TextIndexNG to get a complete full-text indexer.Ok, I know than Catalog can be used to create some "index" on content component but I didn't know than it can be used to build search engine. Thanks for your help,stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] If in one page, I've many contents objects formulars ? How can I manage it in same time ?
Hello, If in one page, I've many contents objects formulars ? How can I manage it in same time ? Thanks, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] How can I "link" two object. Exemple how link blogentry and category.
Hi, I would like add category feature to http://codespeak.net/svn/z3/zblog/trunk/ code. What is the best solution ? Add a category index with Catalog object ? Create a new ICategory interface and Category content ? How can I do the link between zblog entry dans category object ? Other information, I can put one blogentry in one or several category. Thanks for your help Stéphane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
Hello, I don't understand why Field.default type is Field ? Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] In /zope/schema/interfaces.py source code I've IDict interface and I can't found it in http://localhost:8080/++apidoc++/Interface/@@menu.html
Hello, In /zope/schema/interfaces.py source code I've IDict interface. I don't found IDict interface in apidoc interface localisator. It's normal ? Regards, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] There aren't IDict widget ?
Hello, in one content component I've switch from IList to IDict schema and I note than IDict widget don't exist. It's normal ? if yes, why ? Thanks, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: There aren't IDict widget ?
2006/9/29, KLEIN Stéphane <[EMAIL PROTECTED]>: Hello, in one content component I've switch from IList to IDict schema and I note than IDict widget don't exist. It's normal ? if yes, why ? I see that : http://mail.zope.org/pipermail/zope3-users/2006-June/003720.html I can use his IDict widget ? It's a good solution ? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
2006/9/29, Philipp von Weitershausen <[EMAIL PROTECTED]>: KLEIN Stéphane wrote: > I don't understand why Field.default type is Field ? What else do you suggest? NoneType or Object ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Why IField.default type is Field ? IField.default is value of Field then it can't to be the field
2006/9/29, Philipp von Weitershausen <[EMAIL PROTECTED]>: KLEIN Stéphane wrote: > 2006/9/29, Philipp von Weitershausen <[EMAIL PROTECTED]>: >> >> >> KLEIN Stéphane wrote: >> > I don't understand why Field.default type is Field ? >> >> What else do you suggest? >> > > NoneType To express what? > or Object Object requires an interface that the object should provide. Default values don't necessarily have to conform to an interface. Simply, if I do : myfield.default = u"foobar" u"foobar" isn't Field type but String. Then I don't understand why default type is Field. Well, I know, Python isn't typed language... therefore it's working. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: There aren't IDict widget ?
2006/9/29, KLEIN Stéphane <[EMAIL PROTECTED]>: 2006/9/29, KLEIN Stéphane <[EMAIL PROTECTED]>: > Hello, > > in one content component I've switch from IList to IDict schema and I > note than IDict widget don't exist. It's normal ? if yes, why ? I see that : http://mail.zope.org/pipermail/zope3-users/2006-June/003720.html In mail http://mail.zope.org/pipermail/zope3-users/2006-June/003720.html I don't know where put the last part : from zope.schema.interfaces import WrongContainedType, ValidationError from zope.schema import Dict from zope.schema._field import AbstractCollection def _validate_dict(value_type,key_type, value, errors=None): if errors is None: errors=[] if value_type is None: return errors if key_type is None: return errors for (key,vl) in value.items(): try: key_type.validate(key) except ValidationError, error: errors.append(error) try: value_type.validate(vl) except ValidationError, error: errors.append(error) return errors class FixedDict(Dict,AbstractCollection): """We have to fix the bind-method of Dict""" def bind(self, object): clone=AbstractCollection.bind(self,object) if clone.key_type is not None: clone.key_type = clone.key_type.bind(object) return clone def _validate(self,value): errors=_validate_dict(self.value_type,self.key_type,value) if len(errors) > 0: raise WrongContainedType(errors) First part is in browser/configure.zcml Second part is in browser/widgets.py But I don't know where put the last part. Thanks four your help, Stéphane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Why in apidoc, I don't found the interface must be implemented to be register by IntIds ?
I read IntIds apidoc, I see : # register(ob) Interface : zope.app.intid.interfaces.IIntIdsSet Permissions : zope.ManageContent (lecture), non disponible (écriture) in lib/python/zope/app/intid/tests.py I see : class P(Persistent): implements(ILocation) and too far : u = IntIds() obj = P() uid = u.register(obj) When, in debugzope I test : u = IntIds() obj = object() uid = u.register(obj) this don't work. Where can I found documentation about IntIds ? Thanks ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Why in apidoc, I don't found the interface must be implemented to be register by IntIds ?
2006/9/30, Philipp von Weitershausen <[EMAIL PROTECTED]>: KLEIN Stéphane wrote: > I read IntIds apidoc, I see : > > # register(ob) > Interface : zope.app.intid.interfaces.IIntIdsSet > Permissions : zope.ManageContent (lecture), non disponible (écriture) When quoting things from the Zope ZMI, I suggest switching to English first. Not everyone understands French. Sorry :( ... By the way, it probably doesn't work because you're missing an adapter for 'obj' to IKeyReference. This is necessary to make it work and required by intid utilities as documented in one of the zope.app.intid interfaces: class IIntIdsSet(Interface): def register(ob): """Register an object and returns a unique id generated for it. The object *must* be adaptable to IKeyReference. If the object is already registered, its id is returned anyway. """ So, you first need to register an IKeyReference adapter for your 'P()' object. Now, I do that : class P(Persistent): ... pass ... from zope.app.keyreference.persistent import KeyReferenceToPersistent from zope.app.keyreference.interfaces import IKeyReference from zope.app.testing import setup, ztapi from persistent.interfaces import IPersistent ztapi.provideAdapter(IPersistent, IKeyReference, KeyReferenceToPersistent) from zope.app.intid import IntIds u = IntIds() obj = object() obj = P() uid = u.register(obj) Traceback (most recent call last): File "", line 1, in ? File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/intid/__init__.py", line 110, in register key = IKeyReference(ob) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py", line 675, in __call__ adapter = self.__adapt__(obj) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py", line 742, in __adapt__ adapter = hook(self, obj) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/component/hooks.py", line 96, in adapter_hook return siteinfo.adapter_hook(interface, object, name, default) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/adapter.py", line 415, in adapter_hook adapter = factory(object) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/keyreference/persistent.py", line 41, in __init__ raise zope.app.keyreference.interfaces.NotYet(object) zope.app.keyreference.interfaces.NotYet: <__main__.P object at 0xb6969dec> What is it ? I've IPersistent adapter to IKeyReference. I don't understand what is "zope.app.keyreference.interfaces.NotYet: <__main__.P object at 0xb6969dec>" ? > Where can I found documentation about IntIds ? My new book :) Yes! I want it ! Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Why in apidoc, I don't found the interface must be implemented to be register by IntIds ?
What is it ? I've IPersistent adapter to IKeyReference. I don't understand what is "zope.app.keyreference.interfaces.NotYet: <__main__.P object at 0xb6969dec>" ? I found zope/app/keyreference/persistent.txt documentation. I read it and I hope it can help me. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Why in apidoc, I don't found the interface must be implemented to be register by IntIds ?
2006/9/30, KLEIN Stéphane <[EMAIL PROTECTED]>: > What is it ? I've IPersistent adapter to IKeyReference. I don't > understand what is "zope.app.keyreference.interfaces.NotYet: > <__main__.P object at 0xb6969dec>" ? I found zope/app/keyreference/persistent.txt documentation. I read it and I hope it can help me. I tried that : from ZODB.interfaces import IConnection from zope.app.keyreference.persistent import connectionOfPersistent ztapi.provideAdapter(IPersistent, IConnection, connectionOfPersistent) uid = u.register(obj) Traceback (most recent call last): File "", line 1, in ? File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/intid/__init__.py", line 110, in register key = IKeyReference(ob) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py", line 675, in __call__ adapter = self.__adapt__(obj) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/interface.py", line 742, in __adapt__ adapter = hook(self, obj) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/component/hooks.py", line 96, in adapter_hook return siteinfo.adapter_hook(interface, object, name, default) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/interface/adapter.py", line 415, in adapter_hook adapter = factory(object) File "/home/harobed/zope/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/keyreference/persistent.py", line 41, in __init__ raise zope.app.keyreference.interfaces.NotYet(object) zope.app.keyreference.interfaces.NotYet: <__main__.P object at 0xb6969dec> but it doesn't work :( ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] I'm very happy to see the new version of Zope 3
Hello, I send this message only to say than I very happy to see the new very of Zope 3 Wiki. http://zope3.zwiki.org/FrontPage I think, it's a good thing to Zope 3 documentation. Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Many problems with static-apidoc script...
Hi, I've one zope3 instance in : ~/zope/instance/2/ When I do : cd ~/zope/instance/2/bin ./static-apidoc -d ~/zope/doc/ I've this error : Traceback (most recent call last): File "./static-apidoc", line 31, in ? main() File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py", line 504, in main maker.start() File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py", line 193, in start self.browser = PublisherBrowser() File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py", line 141, in __init__ functional.Functional.setUp() File "/home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py", line 198, in setUp FunctionalTestSetup(self.config_file) File "/home/harobed/zope/opt2//lib/python/zope/app/testing/functional.py", line 139, in __init__ self.app = Debugger(self.db, config_file) File "/home/harobed/zope/opt2//lib/python/zope/app/debug/debug.py", line 35, in __init__ config(config_file) File "/home/harobed/zope/opt2//lib/python/zope/app/appsetup/appsetup.py", line 110, in config context = xmlconfig.file(file, context=context, execute=execute) File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py", line 579, in file include(context, name, package) File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py", line 508, in include f = openInOrPlain(path) File "/home/harobed/zope/opt2//lib/python/zope/configuration/xmlconfig.py", line 419, in openInOrPlain fp = open(filename) IOError: [Errno 2] No such file or directory: '/home/harobed/zope/instances/2/bin/ftesting.zcml' When I do : cd ~/zope/instance/2/ bin/static-apidoc -d ~/zope/doc/ I've this error : Traceback (most recent call last): File "bin/static-apidoc", line 31, in ? main() File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py", line 504, in main maker.start() File "/home/harobed/zope/opt2//lib/python/zope/app/apidoc/static.py", line 200, in start self.browser._links_factory.urltags = urltags File "/home/harobed/zope/opt2//lib/python/mechanize/_mechanize.py", line 505, in __getattr__ raise AttributeError( AttributeError: instance has no attribute _links_factory (perhaps you forgot to .select_form()?) What is my mistake ? How can I use static-apidoc script ? Thanks for your help Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Many problems with static-apidoc script...
2006/10/28, Florian Lindner <[EMAIL PROTECTED]>: Am Samstag, 28. Oktober 2006 01:18 schrieb KLEIN Stéphane: > Hi, > > I've one zope3 instance in : ~/zope/instance/2/ > > When I do : > > cd ~/zope/instance/2/bin > ./static-apidoc -d ~/zope/doc/ > > I've this error : > [...] > > What is my mistake ? How can I use static-apidoc script ? At the moment you can't really use it. It's broken. I've lately done some work at it but were not able to fix it entirely. You should get this: (with the SVN trunk) Ok, /trunk/src/zope/app/apidoc/static.py work fine. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ?
Hi, Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ? If not, is there other ZODB storage system to do that ? Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Can I use IPython in debugzope stuff ?
Hi, Can I use IPython in debugzope stuff ? Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] how can I call standard publisher if my PluggableBrowserTraverser don't resolve my request ?
I've declared browser page for my IMyTest type content I use PluggableBrowserTraverser like in http://thread.gmane.org/ gmane.comp.web.zope.zope3.user/4082/focus=4088 In z3c.traverser package documentation, I've this : """ Every traverser should also make sure that the passed in name is not a view. (This allows us to not specify the @@ in front of a view.) So let's register one: >>> class View(object): ... def __init__(self, context, request): ... pass >>> from zope.component import provideAdapter >>> from zope.publisher.interfaces import IPublisherRequest >>> provideAdapter(View, ...adapts=(IContent, IPublisherRequest), ...provides=Interface, ...name='view.html') """ I understand this but how can I say : if PluggableBrowserTraverser don't found traverser for my request, use "standard" traverser in order to use standard browser view declaration ? Thanks for your help, Stephane ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: how can I call standard publisher if my PluggableBrowserTraverser don't resolve my request ?
Le Fri, 30 Nov 2007 15:10:37 +, KLEIN Stéphane a écrit : > I've declared browser page for my IMyTest type content > > for="projet1.interfaces.IMyTest" > name="hello" > class=".browser.HelloPage" > permission="zope.Public" > /> > > I use PluggableBrowserTraverser like in http://thread.gmane.org/ > gmane.comp.web.zope.zope3.user/4082/focus=4088 > > In z3c.traverser package documentation, I've this : > > """ > Every traverser should also make sure that the passed in name is not a > view. (This allows us to not specify the @@ in front of a view.) So > let's register one: > > >>> class View(object): > ... def __init__(self, context, request): ... pass > > >>> from zope.component import provideAdapter from > >>> zope.publisher.interfaces import IPublisherRequest > >>> provideAdapter(View, > ...adapts=(IContent, IPublisherRequest), ... >provides=Interface, ...name='view.html') > """ > > I understand this but how can I say : if PluggableBrowserTraverser don't > found traverser for my request, use "standard" traverser in order to use > standard browser view declaration ? I found my mistake, it is standard behavior. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users