[Zope] HiperDom available outside of Zope?
Are the XML templating facilities of HiperDom available outside of Zope as a Python module, or are there intentions in that direction? Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Difference between Methods and Scripts?
I see that the latest version of the O'Reilly Zope book now talks about Python and Perl *Scripts*, but refers still to DTML and ZSQL *Methods*. Does this reflect some actual conceptual difference between a Script and a Method, or is it simply because of the burden of also renaming DTML, ZSQL, etc? I understand that it is recommended that logic be implemented using Python/Perl Scripts, while DTML Methods should now be reserved for presentation; but I wasn't sure if that could be the rationale for the Scripts/Methods division, since ZSQL Methods don't really fall into the presentation category. If the difference is explained in the book, please excuse my having missed it; if not, I'd welcome an explanation, and perhaps it would be worthwhile including it in the book too. Hamish Lawson = Hamish Lawson [EMAIL PROTECTED] Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Difference between Methods and Scripts?
I wrote: Does this reflect some actual conceptual difference between a Script and a Method Evan wrote: DTML and ZSQL Methods (and the older Python Methods) act as though they are bound methods of the object on which they are called. Python Scripts aren't bound to any particular object, although they have access to their context, their container, and their selves. Thanks for the explanation. I'm glad there is indeed a conceptual rationale behind the names. Hamish Lawson = Hamish Lawson [EMAIL PROTECTED] Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [BUG] [Zserver] GET and HEAD give different MIME types
Martijn Pieters wrote: Note that you don't want the DTML code to be called on a HEAD request; it may have side effects a mere tpc_abort won't roll back. If the implication here is that the corresponding GET request could have meaningful side effects (i.e. not just changes to caches, logs or hit counters), then strictly it would be breaking the semantics of GET, which is meant to be idempotent - capable of being called multiple times without meaningfully changing the state of the server-side system or application. Requests that can change the state are supposed to use POST. Hamish Lawson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DC request re: Objection to Python Script Name
When I 'jumped in' (nod to Chris Withers :-)) with my promotion of ZMethod, I'd missed Evan's announcement that he'd decided on Python Script - I thought it was just another suggestion and we were still in the middle of campaigning for the upcoming second poll! I'm actually not that averse to Script; it was ZMethod's OO associations that I liked - but if Michel thinks that such an association is actually not appropriate in this situation, then I'll bow to his greater Zope understanding. I agree with him that the new name needs to make it into the book, and Script is a reasonable choice. Is it intended to rename DTML Method, ZSQL Method, etc to be DTML Script, SQL Script, etc? For the sake of consistency I'm hoping so, and I think it's important that these revisions also make it into the book. Onwards! Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Objection to Python Script Name
Chris Gray: I think there is a logical objection to this name [Python Scrpit]: inconsistency with "DTML Method" and "ZSQL Method". Chris Withers: These are old, horrible and will hopefully be re-thought and given different names ;-) ZIP Method (Zope Internal Python Method) ZoPy Method PyZo Method ZPython Method :-( All imply there is soem difference between the Python used by Zope and any other python ,which isn't, and never should be, the case... This is why I proposed Python ZMethod. I further propose that ZMethod be used generally for anything that Zope considers a method (but which may not necessarily be a method in the implementation language - here, Python). Thus we'd have DTML ZMethod, SQL ZMethod, Perl ZMethod. This puts the decoration where it is most appropriate, i.e. ZMethod, and leaves us to qualify it by the natural name of the implementation language - Python, Perl, DTML, SQL, Tcl, whatever. Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PTK good for MyNetscape-style read-only personalised portals?
I'm looking to put together a portal site where members can choose from various content sources and personalise the layout but wouldn't be authoring content, similar to sites like MyNetscape and MyYahoo. Is the PTK good for this? Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZMethod and language variants
Considering that there aren't (yet) other language variants, and that I would usually use the restricted kind, I would normally just say "ZMethod". Only if there were some potential confusion would I say "Unrestricted zmethod", or the full title. My proposal that ZMethod be used generally for anything that Zope regards as a method would mean that there already are other language variants, such as DTML ZMethod and SQL ZMethod. Hamish Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Python Zope Method as option for renamed Python Method?
In the poll currently underway on renaming options for Python Methods, the most popular choice so far is to leave the name as it is. It could just be because people don't see enough benefit in changing what's already there, but I think it may be that people actively feel that the term 'method' captures some technical essence. However, we still have the problem of disambiguating between a method in Zope's eyes and a method in the implementation language. How about calling anything that Zope regards as a method a Zope Method? That would then give us Python Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc. Is it too late to add the option for Python Zope Method to the poll? Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Python ZMethod (was Python Zope Method as option for renamed Python Method?)
I suggested the term Zope Method for anything Zope regards as a method, giving Python Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc. But Chris Withers thought those to be too long and unwieldy. OK, what about ZMethod? Thus Python ZMethod, Perl ZMethod, DTML ZMethod, SQL ZMethod. I was quite favourably disposed toward Operation, but I wanted to keep 'method' somehow as it I felt it better brought out the acquisition aspect. Hamish Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Roles as members of other roles?
I've not kept up with all the different mechanisms for users and groups that are currently under development in the Portal Tookit and other activities. Do any of them support the idea of a role or group collectively being a member of some other role? For example, if there was a MarketingStaff role consisting of a number of users, then various other roles throughout a company website could be allocated to the MarketingStaff group collectively rather than having to be allocated individually to each member of this group. Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to use DocumentTemplate custom formats from Python?
I wrote: I'm using DocumentTemplate from Python (not in Zope) and I want to use a custom format 'javascript_quote' that I've written. Kapil Thangavelu wrote: you should implement a formating function and register it with special_format. for examples of both look near the end /DocumentTemplate/DT_Var.py Thanks. I did as below, which worked. Is that the official way? - I couldn't see any dedicated function to register a format. DT_Var.special_formats['javascript_quote'] = javascript_quote Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to use DocumentTemplate custom formats from Python?
Dieter Maurer wrote: All other "*_quote" features are implemented via *arguments* (sql_quote, html_quote, url_quote). Why do you want to make your "javascript_quote" a format? Note, that you may want to quote a (otherwise) formatted value. I don't especially want to make it a format rather than a modifier - I take your point about being able to modify a formatted value. Before I was directed to the DT_Var module, I had been going just on what is in the DTML Reference, where it mentions only custom formats. I've now had a look at the DT_Var module, but I don't see an obvious way to register my own modifier without hacking the module. Hamish Lawson = Hamish Lawson [EMAIL PROTECTED] Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Messing with the namespaces stack
Jim Hebert wrote: But I wanted to be able to just write dtml-var foo_png while working on pages, so I wrap the content with dtml-with images dtml-with "PARENTS[0]" ... /dtml-with /dtml-with Jim, that is indeed clever. Am I right, however, in thinking that every DTML method or DTML document that wants this additional-parent behaviour will need to use these dtml-with wrappers? I think what I'm after is the ability to alter the parents of the containing folder itself, so that any contained method automatically has this modified acquisition path. Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] (no subject)
Jim Hebert wrote: Is there a reason you can't do this by just messing with the namespaces stack, ie, adding additional folders to it? I had been latterly thinking this myself and set about trying to do it, but being new to Zope development, didn't have much success! I presume it involves modifying the folders PARENTS list, but I wasn't quite sure how to do that. Hamish Lawson = Hamish Lawson [EMAIL PROTECTED] Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Prototyped folders?
I wrote: If a folder doesn't itself contain a required object or method, I'd like to have another folder looked in instead. The fall-back folder won't necessarily (and often can't) be higher in the hierarchy, so acquisition doesn't seem to be a solution. Steve Alexander wrote: Your requirements sound very much like those for Shane Hathaway's Transparent Folders product, except that instead of briefly diverting acquisition into the transparent folder, you want to briefly divert acquisition into some other arbitrary folder. Steve, thank you very much for that information. I eagerly await the re-release of Transparent Folders. If you don't have sufficient python-hacking-zope-hacking-Zen to do it yourself, I think I might have a go (and hopefully learn some Zope internals Zen in the process). Though I have a reasonable amount of Python experience, I'm just starting on Zope development. Depending on how I get on, I may take you up on your offer! Hamish Lawson = Hamish Lawson [EMAIL PROTECTED] Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Prototyped folders?
I wrote: If a folder doesn't itself contain a required object or method, I'd like to have another folder looked in instead. The fall-back folder won't necessarily (and often can't) be higher in the hierarchy, so acquisition doesn't seem to be a solution. Jeff Hoffman wrote: I assume your aim is to create a 'baseline' site with a number of customized copies. If you change the baseline, the changes are reflected in its instances, unless the instance has overloaded the changed aspect. Exactly so. I would be interested in pursuing and contributing to an effort to do the Hard Thinking this will require, done correctly. That would be great! Have you seen Steve Alexander's reply to my post? I'm relatively new to Zope development (though with a fair amount of experience in Python), so I'd welcome the insights that others more experienced than me would bring. Hamish Lawson University of St Andrews, Scotland Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Generating products that perform a smart clone of a master site?
I'm exploring the use of Zope for creating learning environments in higher education. One of the requirements is for a tutor to be able to create a mini site that includes static files along with more active objects like discussion boards. Furthermore they need to be able to make different 'instances' of this site for use by different groups, such that each instance of the site conatins unique instances of any contained active objects (such as a discussion board). The obvious approach would be to just copy and paste the folder containing the master site, but there are a couple of problems with that: (1) changes to the master site will only be reflected in new instances of the site, and (2) a lot of static files could be getting copied each time. What I think I need to do is to develop a facility that makes a tutor's site into a product. Instantiating such a generated product should make a smart clone of the master site, smart in the sense that only active objects are actually cloned, but static files are shared among all instances of the site. I suspect that ZClasses might be involved to achieve this, but are there any issues with the fact that a master site could contain folders? Furthermore I'd like a tutor to be able to visit their productised site to update it, without seeing a lot of alien stuff; changes to the master site should be reflected in all instances of the site. Am I on the right lines here? Any pointers would be appreciated. Hamish Lawson University of St Andrews, Scotland Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Object URLs like Zope with Java servlets / EJBs?
Are there any Zopistas with experience also of Java servlets/EJBs? From my reading so far I get the impression that servlets/EJBs roughly correspond to Zope's products. What I'm not sure is whether any Java app servers have Zope's concept of having URL paths to object instances, or whether they only provide URLs to the servlets/EJBs themselves, with passed parameters being used instead to specify a particular instance? Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )