[Zope3-Users] Dynamic Typing: Are checks on interface compliance possible?
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, which can check this? Thanks! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Dynamic Typing: Are checks on interface compliance possible?
Thanks a lot, I think your approach could gain great popularity! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How to distribute distinct components among multiple Zope servers?
Chris Withers [EMAIL PROTECTED] writes: Reinhold Strobl wrote: For instance, server A provides the views and server B provides business functionality via utilities. As a side effect, this should help to increase scalability, since I split functionality over multiple servers. But how to I get them to work together? Is XML-RPC the right/only solution? Have you looked at ZEO? I've used the pattern of a backend server pumping content into a zeo storage server to be served out through an app server for years on one major project and that sounds like it'd work for your requirements above. cheers, Chris Thanks for your reply, but I have looked on ZEO - however: this technology only allows a seperation of application from the concrete storage. But what I am looking for is I want to seperate the application tier itself. For instance, I have got two utility components serving different functionality. But I want to distribute those components among two servers, but they should stay reachable from each other... Thanks! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How to distribute distinct components among multiple Zope servers?
I'm not a Zope expert, but to me it sounds like you want to solve a problem with Zope, which it is not intended for. If you want to implement complex distributed scenarios use SOAP, XML-RPC, CORBA, DCOM, ... or whatever suits your needs. Then you could still implement a thin Zope utility, which wraps access to such an service, to allow easy access from within a Zope application. So, am I right, if Zope is mainly intended for (single) web applications and no distributed complex component architecture? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] How to distribute distinct components among multiple Zope servers?
Hi, I have got a general question: I want my web application to run over multiple servers. For instance, server A provides the views and server B provides business functionality via utilities. As a side effect, this should help to increase scalability, since I split functionality over multiple servers. But how to I get them to work together? Is XML-RPC the right/only solution? Thanks a lot in advance for your replies, Reinhold ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Utilities / Adapters security - is access limited to interfaces?
Hi, I have got a question on security: utitlities and adapters only have a simple security attribute (=permission) in the configuration directive, that means, I can't specifiy settings on attributes like with content components. But now what about access, if I have got the needed permission, can I access only the methods, attributes defined in the interface or can I access every attribute of the object? Thanks a lot! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Customized authentication
Hi, I have a question on authentication. Philipp von Weitershausen stated in his book Web component development with Zope3, that requesting and retrieving credentials from the user is done by an adapter. This component adapts the request to the ILoginPassword interface. But my question is, how could I support other forms of credentials like PK, which do not necessary include a password. Is there a more generic interface than ILoginPassword? Thanks a lot in advance! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Security in Code, example, why does this work?
Hi, I am currently dealing with security and I found a strange behaviour of Zope. Ok, I will some up it in short: I have defined the following components: 1. A view component, which I have registered in the following way: browser:page for=* name=test3.html class=bookapp.mc.Mc template=a.pt permission=zope.Public /browser:page So, there is a template a.pt, which calls a method of the class bookapp.mc.Mc 2. The base class of the view has got a mehtod, which is called from the template. And the method looks like the following: ut = zapi.getUtility(IBookstore) ret = ut.test3() So the method of the base class of the view tries to get a Utility and then calls a function of the utility 2. A utility, what it does, is not important, I have registered it the following way: utility provides=.interfaces.IBookstore factory=.bookstore.Bookstore permission=zope.ManageContent / Now the important part: I have openend ZMI and do NOT login. And then I call the view, which itself calls the utility and everything was o.k. But the problem was I was not logged in, but the utility requires the permission zope.ManageContent. Why does it work??? Later I tried it with a content component, and then I got a unauthorized exception. So can code always access everything, or not? Thanks a lot for your replies in advance! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] ZODB - root and transaction
Hi, I have got two problems, which are related: 1. How do get a reference to the root object of the ZODB everywhere? I mean I have found a solution like something: db = zapi.getUtility(IDatabase) conn = db.open() root = conn.root() root['123'] = newbook But it does not acutally store the object in the database. I try to commit it, but conn.getTransaction.commit() won't work. I search instead for get_transaction(), but I didn't found it in Python 's lib directory. So, how do I save it??? 2. How do I get (the current) transaction? Thanks a lot in advance! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Are views destroyed after processing
Hi, I have an (internal) questition on Zope 3: What about the creation and destroying of views? Are they always created new, when a request receives? And then afterwards, are they destroyed? Or are they one created at program start? Well, since the constructor is called, I think they are always created new, but is there any documentation about that? Thanks a lot! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: ZODB - root and transaction
Hi, my problem is: I want in a utility class to get access with the current (!) database of the zope 3 application. In views, this is no problem, since I have the context variable, but this is not ture for utilities... Thanks a lot for further replies! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] ZODB storage ways
Hi, I am searching for a way to change transparently the storage of ZODB from file-base to a relational database. In general, Zope books state, that this is possible. But the reality is different, isn't it? Ok, I found packages like sqlos, but all in all this solutions: - require modification of the code: like sqlos, that requires components to inherit from SQLOS - or loose the transparency by direct code access to databases. I mean, are there no possiblities of integration of relational database, so that the code leaves unchanged (as the standard way for persistence in Zope X3)??? Thanks a lot, ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] CORBA integration
Hi, is it possible to integrate CORBA with Zope. I mean, generally can I can code every python code in Corba, can I also start a CORBA server in Zope components? Thanks a lot in advance! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] ZODB - ways of storages?
Hi, in the book Web component development with ZopeX3 by Philipp von Weitershausen on page 72 I find the following statement: The ZODB can store persistency data in many ways. The most common storage is FileStorage which stores data in a file usally called Data.fs By using a different storage backend, you can choose where and how you would like to store persistent objects. ZODB even supports a network storage system calles ZEO So I expect, ZODB is only a front-end for different ways of storage like file, oracle db, isn't it? If yes, I would like not to change the code (of persistent class) to change to another storage way, is that correct? Thanks a lot! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Beginner's question: Components without persistence?
Lennart Regebro [EMAIL PROTECTED] writes: On 2/28/06, Reinhold Strobl [EMAIL PROTECTED] wrote: Hi, I would like to know, if components must always be persistent. Well, in general, only local components, or components who need to store data needs persistence. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ Thanks, my general question remains: where do I put application logic??? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: ZopeX3 Component Architecture in comparision to MVC - general question/example
Thanks for the reply. But how would you implement previously described task with the calculator? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users