[Zope3-Users] Re: very simple problem with getUtility
On Sun, 2007-07-01 at 18:05 +0100, Christophe Combelles wrote: But what did you mean as set the site? do you mean with hooks.setSite() ? Yes ... keeping in mind that this happens automatically during traversal by IBeforeTraversalEvent handlers. - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?
On Sun, 2006-11-06 at 02:03 +0300, Michael Dexter wrote: 2. Fall out of search engines. 3. Break existing links. 4. Fail the over-the-phone test of URl's... Just a quick note to address these three. In generall, mostly the ++resource++ stuff is used to access gifs, jpgs, css, etc. For real url's you would give to someone (over the phone) you would never need to refer to these types of url's (imho). The only url's that people might actually type into their browser (and google might index) would possibly have @@'s. So you might reference http://myhost.com/@@somepage.html. But, the reality is in most cases you could reference the same page with http://myhost.com/somepage.html. The only reason you might not refer to it without the @@'s is because if the root of your site contains a content object called 'somepage.html' ... without the @@'s it would get looked up first. Hopefully that sheds a *little* light. - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Generate view for adapted interface
On Mon, 2006-12-06 at 00:19 +0200, Philipp von Weitershausen wrote: zope.formlib will automatically adapt your object to the form interface if it doesn't provide it. So, when you have form for IMyObject that uses form fields from, say, IDublinCore, it will automatically adapt your object to IDublinCore and save the modifications on the adapter. Well, it will *attempt* to adapt it :) Upon learning how this all works the first thing I banged into was when my class didn't implement the interface (nor did I provide an adapter) I was using for my form and I got component errors ;) - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Dojo Support
On Tue, 2006-30-05 at 14:49 -0400, Jim Washington wrote: I am just starting to try-out Dojo (http://dojotoolkit.org). Interestingly, the RPC it does is JSON-RPC. Since I am well-acquainted with JSON-RPC support in Zope 3, I have put together a package for making Dojo and its JSON-RPC client work with Zope 3. http://zif.hill-street.net/dojosupport At the moment, Dojo is just a new toy for me, but I see a lot of potential for rich user interfaces using Zope 3 and Dojo. Perhaps the z3c.javascript project in svn.zope.org would benefit from inclusion with dojo (rather than you making your own prj). - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] subpages with formlib
I'm currently working my way through learning formlib and came across subpages which I can't seem to figure out. Would someone mind describing to me how subpages work in formlib or send me a link to some good docs or a good example? To express my use-case, I have a default view for my content type mapped as index.html (it extends form.DisplayForm). On that view I currently display all of the relevant data regarding my content object which is the context. What I would like to do is add a sub-form to that page for quickly adding child objects so that the user doesn't have to click to another tab or something similar to add their content. Basically a shortcut add form. This *seems* like where subpages might come into play, but alas I do not understand subpages. But perhaps I'm looking down the wrong hole? Maybe there's a better solution to my problem? (regardless if there is a better solution, I'd still like to understand formlib subpages). - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ 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?
On Wed, 2006-17-05 at 10:18 +, Reinhold Strobl wrote: 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? It sounds to me like you're trying to use Zope components in a fashion like J2EE components are meant (but rarely ever are) to run. J2EE will do it a little (but not much) more transparent than Zope will, but its quite doable with Zope. Running multiple Zope app server instances (like you would run multiple j2ee instances) and have the components communicate via xml-rpc (probably xml-rpc views) is pretty close to what j2ee does to communicate between components using RMI/CORBA. The advantage that j2ee has in this scenario is that most of the heavy duty j2ee implementations (weblogic, websphere, etc) support transaction handling across distributed components in a very flexible manner. It may be doable to construct something similar with Zope but I've not tried. - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net signature.asc Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Specifying form appearance
On Fri, 2006-28-04 at 21:03 +0100, Graham Stratton wrote: I'm sure this is completely obvious, since no one else has mentioned it anywhere, but I can't figure out what I'm meant to do. All I want to do is to beautify my formlib form. I've created my own template, and laid things out as I want, and rendered the widgets individually by name. What I can't work out how to do is to change the size of the text boxes. I'd have guessed that the place this should be done is in the page template, but I can't see how I can set widget.displayWidth from there. I'm not experienced with formlib myself but I would expect the easiest/cleanest way of changing the width of the text fields would be by using a CSS stylesheet. - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server -- http://www.serverzen.net ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: zql
On Fri, 2006-21-04 at 11:03 -0400, Pete Taylor wrote: i'm going to call a zodb query language zql for now, because i like it and think it's catchy ;) ...i know there's a java query parser called zql also, but i'm not proposing a formal name, so i'm going to use it anyway. i'd think of zql as just an OQL specific to the zodb. I quite like this idea. I'm not sure of the practical applications of it at this point... but it seems to have the appearance of a lot of potential :) Just out of curiousity, why not try to simply implement OQL for the zodb? The zodb (plus its libs/framework) is basically just a OODBMS anyhow. Using OQL would make this a little more accessible still for people outside the python community. I could see possibly adding a few zodb specific extensions to the OQL implementation, but having OQL as the base would be nice. - Rocky -- Rocky Burt AdaptiveWave - Content Management as a Service http://www.adaptivewave.com Content Management Made Simple ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Re: Blobs in Z3 anyone?
Based on these thoughts... am I correct in assuming that somewhere Zope3 makes file objects implement IStreamIterator? And if that is indeed the case, would this approach work the same way on both Zope2.x and Zope3.x ? - Rocky On Thu, 2006-20-04 at 03:54 -0400, Chris McDonough wrote: On Apr 20, 2006, at 3:54 AM, Philipp von Weitershausen wrote: Chris McDonough wrote: Actually, stream iterator support is independent of blobs. Right. Also, dealing with long-living requests or dribbling data piece by piece is substantially something different than streaming large data to the user agent without holding application resources forever. I'm not sure Zope 2 actually differentiates between those two. It indeed does. The former is implemented as RESPONSE.write, the latter is implemented as returning something implementing IStreamIterator to the publisher. There was some talk a while back about Zope 3 implementing some form of IResult interface that allowed for streaming. I'm not sure where that ended up, though. I seem to remember Jim checking something in. Yes, there is support for streaming large data without holding application resources. What you do is write the data to a (temp) file and return the file object. The zope.publisher will know what to do. The IResult interface was made private and nowadays just an implementation detail. Right, now I remember. Thanks. - C -- Rocky Burt AdaptiveWave - Content Management as a Service http://www.adaptivewave.com Content Management Made Simple ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users