[Zope3-Users] Status of zsync

2008-01-19 Thread Achim Domma
Hi, I'm interested in zsync, but cannot find much information via google. I'm using Zope 3.4b2 and there are docs for zsync but the tool seems not to be included!? I'm developing a small zope app and I want to sync my ZPT pages with the filesystem. Or is there another way to develop ZPT

[Zope3-Users] ImportError running bin/zopectl run myScript.py

2008-01-17 Thread Achim Domma
Hi, I try to run a script on my zope instance via bin/zopectl run myScript.py. I get the following error: Traceback (most recent call last): File /Users/domma/develop/zope/demo/bin/scriptzope, line 22, in ? import paths ImportError: No module named paths I cannot find a paths.py on my

[Zope3-Users] Beginner: Reference to ZPT macros

2008-01-16 Thread Achim Domma
Hi, I have a simple view. Here is the entry in configure.zcml: browser:page for=.CMS.Page name=index.html class=.CMS.PageView permission=zope.Public template=index.pt menu=zmi_views title=Default View / The view works fine so far, but now I

[Zope3-Users] Debugging Zope3 with Winpdb

2006-07-23 Thread Achim Domma
Hi, I try to debug zope 3 with winpdb, but without success. Was anybody able to let zope 3 run within winpdb. Winpdb seems to start my z3.py script but the looses the connection to the process. I see no error messages and I'm quite new to winpdb. Any help would be very appreciated!

[Zope3-Users] Expressing n:m relationship in ZODB

2006-07-11 Thread Achim Domma
Hi, there was a discussion about the bad idea to simulate a relational database in ZODB using indexes and unique ids. So I wonder what's the correct way to express a n:m realtionship between objects. For example: I have projects and articles. An article might be relevant for multiple

Re: [Zope3-Users] Expressing n:m relationship in ZODB

2006-07-11 Thread Achim Domma
Leonardo Rochael Almeida wrote: In usual Object Oriented modeling, an n:m relationship is usually modeled as a collection of relationship objects each one keeping one direct reference to each side of the relationship. Of course, using these systems that already try to model relationships helps

[Zope3-Users] Zope 3 as WSGI app using mod_python

2006-07-08 Thread Achim Domma
Hi, I'm interested in running Zope 3 via mod_python as WSGI app directly in apache. I like the idea to configure different instances simply in my apache config and don't have to setup different running zope instances. The official docs do not say much about this option, but there is a WSGI

[Zope3-Users] Create catalog index via script

2006-06-17 Thread Achim Domma
Hi, I have a workspace object, which I initialize in the IObjectCreatedEvent. I try to add a catalog with an index like this: ensureUtility(workspace,zope.app.intid.interfaces.IIntIds,'',IntIds,asObject=True)

[Zope3-Users] ForbiddenAttribute: ('append', []) using append on PersistentList

2006-06-17 Thread Achim Domma
Hi, I have implemented a view for a catalog index. The page template contains this little form to add strings to a list of categories: form action=@@add_category method=post input type=text name=name input type=submit /form The view class looks like this: class

Re: [Zope3-Users] Custom index implementation

2006-06-06 Thread Achim Domma
Tom Dossis wrote: You need to specify an addMenuItem directive and associated view in your package browser zcml to enable you to add your index objects via the ZMI. Look at zope/app/catalog/browser/configure.zcml as a starting point, e.g. Thanks for the hint and sorry for asking such obvious

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

2006-06-05 Thread Achim Domma
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. How do I have to setup my environment to test zcml

[Zope3-Users] Create RSS feed

2006-05-31 Thread Achim Domma
Hi, I want to provide an RSS for a content object which is a site. Seems to me, like this should be a generic functionality so I wonder if there is already some product which I did not found!? regards, Achim ___ Zope3-users mailing list

Re: [Zope3-Users] Problem with containment and @@absolut_url

2006-05-30 Thread Achim Domma
Mats Nordgren wrote: context/articles would return the id's [...] The id is a string which has a title method (capitalize each worlds first letter); this is why your article/title is working. [...] You probably should use context/articles/values for the loop. Thanks, it works now. The

Re: [Zope3-Users] Create complex object

2006-05-25 Thread Achim Domma
Achim Domma wrote: class IWorkspace(Interface): [...] browser:addform label=Add proCoders Article name=AddArticle.html schema=proCoders.interfaces.IArticle content_factory=proCoders.Article.Article permission=zope.ManageContent fields=title / [...] Thanks

Re: [Zope3-Users] Reference to a COM object (or other external resource) in a Zope object

2006-05-24 Thread Achim Domma
[EMAIL PROTECTED] wrote: I am creating a kind of Zope proxy to a 3rd party COM object (I'm accessing it using Pywin32 facilities). I have to store a reference to this object somewhere in my Zope object. But, for obvious reasons, this COM object cannot be serialized so I cannot put it in any

[Zope3-Users] Create complex object

2006-05-24 Thread Achim Domma
Hi, I have the this interface class IWorkspace(Interface): title = TextLine( title=uTitle, description=uThe title, default=uproCoders Workspace, required=True) projects = Container(title=uProjects, description=uxxx) articles = Container(title=uArticles,

[Zope3-Users] Changes on object not persistent if server is restarted.

2006-05-22 Thread Achim Domma
Hi, I have written this simple content object: class IArticle(Interface): title = TextLine( title=uTitle, description=uThe title, default=u, required=True) body = Text( title=uBody, description=uArticle Body, default=u,

Re: [Zope3-Users] Changes on object not persistent if server is restarted.

2006-05-22 Thread Achim Domma
Jachin Rupe wrote: You could try making Acrticle inherit from Persistent. Ups! That's really a very stupid error. Thanks for your fast answer and sorry for bothering the list with such trivial problems. regards, Achim ___ Zope3-users mailing

Re: [Zope3-Users] Re: How to distribute distinct components among multiple Zope servers?

2006-05-17 Thread Achim Domma
Reinhold Strobl wrote: Consider the followng example: one company has got a Zope application running on a single server. This applications need the components of e.g. the supplier of the component running on a different server. So I don't want to mirror both, because the both companies are more

[Zope3-Users] Skinning in Zope 3.3

2006-05-11 Thread Achim Domma
Hi, I try to understand how to customize the look feel of my page using the new skin/layer implementation of version 3.3. I followed the example on http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SimplifySkinning but still don't understand on how to change the layout of my

[Zope3-Users] Integrating text indexing engine into Zope 3

2006-04-28 Thread Achim Domma
Hi, I want to integrate support for a specialized text indexing engine into Zope 3. The engine is able to provide documents which are similar to a reference document. First I had a look at ICatalog, but IInjection seems to be the way to go. Could somebody give me a high level overview on

[Zope3-Users] Understanding authentication

2006-04-15 Thread Achim Domma
Hi, I have created a folder main below [top] and converted it into a site. I added a PAU to the site management folder and a Principal Folder to the PAU. I registered all utilities. Then I created a new principal demo1 and after that a new subfolder below main. I switched to the subfolder

Re: [Zope3-Users] understanding security

2006-04-07 Thread Achim Domma
Frank Burkhardt wrote: Do I understand it right, that I do not grant a permission to a principal on a certain object instance? I only grant a permission to use a certain interface!? You can either grant permissions to principals (or groups/roles) globally. Those permissions can be used in