Re: [Zope-dev] ODBC Error
There _was_ a patch available (can't find it now, search the maillist archives) Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Advice on DTMLDocument
Andy McKay wrote: Hi there, Well a while ago I came across a bug that I couldnt cut and paste and object. A few people helped me out on that, thanks. Ive had a week of squishing bugs and finally got to this one. The reason why? I was subclassing DTMLDocument but using my own __init__ (similar to one where I dont subclass from DTMLDocument), where I didnt fiddle with __name__. The result was when absolute_url() was called I was getting: http://fork:8080/code/test/ElementWithAttributes ! In your __init__ method, try putting this line in: YourClassName.inheritedAttribute('__init__')(self, id) This is assuming that you have the argument "id" in your __init__ method. I've no idea whether it will solve your problem, as I haven't tried to reproduce it. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Discussion Story Building Mediums
Ken Manheimer wrote: Convenient for what? If you've ever tried to support a community through a mailling list, you'll quickly notice that questions, and their corresponding answers, repeat. A lot. The problem is that while maillists are great for keeping people up-to-date on the business of the community, and for disseminating dialogue, they are not so good for building structures - for organizing content so related pieces of a story are appropriately connected. The counter that this is that Wikis, in my experience (and maybe mine only ;-), are not a good medium for discussions. There's no threading, ntoficiation or subscription, for starters... Wikis, as they stand, are not bad for organizing stories. ..agreed, but a lot of Wikis are not being used for this. It's a difficult problem. You need a decent medium for discussion, like a mailing list, which needs to automatically (and that seems _very_ hard to me) extract the necessary 'story' bits and store them in a decent story-building medium... We all sorely miss change notifications and ownership attribution, a preview button, etc - but they're better, even as they currently stand, for building longstanding artifacts than are mailling lists. And hopefully, in not too long, we'll be able to improve them, or provide something else, to do the job right. Well, the WikiDot idea is starting to crop up in my brain a bit more now ;-) And since that'd be a Swishdot skin, it'd work with the PTK, and everyone's happy and focussed on what they want to be :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] I feel your Wiki Pain ;-)
| 1. No threading. On several occasions I have made comments in a Wiki | that were subsequently ignored - I guess because they got lost in the and from the WikiNG proposal: For more elaborate editorial and commentary annotations, i can see layered documents, using mixin objects that provide a tailored view on other or contained objects. The mixin would be a layer by which annotations are associated with text passages in the rendered subject document, like "the crit system":http://crit.org does for arbitrary web pages. Overall, document authors could use a particular annotation structure according to their needs. Eg, discussion objects for points which can be discussed, or brief editorial passages to give feedback, and author checkmarks for when they've satisfied or refute the suggestions, etc. Annotation is a spiffy kind of threading. I dont actually have anything against Wikis in general; I have used on very successfully for what I would describe as "document refinement", and a better annotation scheme will enhance that use of Wikis. The passage you quoted uses terms like "subject document", and at the moment I dont see that as the best model for a *debate* | 2. No personal replies. On several occasions I would have liked to From WikiNG: - Attribution of changes for tracking With attribution, you can identify and could respond directly to the author of a particular passage. It's useful for more, of course. Cool, I missed that one. | 3. No update notification. The one time I was update to | 4. Hard to keep track of many Wikis: Each wiki has its own 'whats The ability to subscribe for notification (above) and/or to track what you personally have seen, and not, is intended for this kind of thing. It would keep me happy if the notification includes a link to the new content (rather than a link to the page that contains new content). Even better, the email notification could *include* the new content. | 6. Too easy to miss the creation of a Wiki. On several occasions My plans for notification subscriptions would be hierarchical, and enable you to subscribe to events like creations of new wikis within a hierarchy - so if you subscribe at the top of the wiki space, you find out about any new wikis, while if you subscribe within the developer's part of the space, you learn about new developers wikis. Etc. (This was not covered in the WikiNG proposal - i was trying to avoid including too many details, and failed miserably anyway...-) Im happy. | 9. I never get the structured text quoting of python source right | first time. The only quoting you need to know is example:: The two colons after the word "example" indicate that this contained block is all quoted. Ill remember that. Your proposed new attribution scheme would help too. As i said in my last reply (but after you posted this, so you couldn't have taken it into account), mailling lists as they stand don't work for establishing growing structures. But Wikis don't (for me, today) work for loosely structured commentry. Quoting from http://dev.zope.org/Fishbowl/Introduction.html In some cases a mailing list will be setup for substantive, large-scale projects. Otherwise existing mailing lists can be leveraged (for now, use zope-dev for this). Perhaps I should rephrase my objection. The *real* problem is that this isnt happening - discussion is stored in Wiki pages like http://dev.zope.org/Wikis/DevSite/Proposals/XxxxDiscussion ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] HiperDOM xmlc
I'm surprised that no one responded to this. (Or maybe people did and our continual email server problems have lost it.) I'd like to congratulate Hiperlogica, because they have (ding ding ding) the _right answer_! :^) Seriously, we at Digital Creations have been quietly formulating a proposal on this since Amos put up the template proposal in dev.zope.org. I floated some trial balloons at EuroZope and it's clear there's some consensus. Our "XHTML Templates Proposal" is at: http://dev.zope.org/Wikis/DevSite/Proposals/XHTMLTemplatesProposal Since Wiki is having a tough time on the list here lately, I'll post the text in a message in just a second. To summarize, we at DC at least think that Hiperglocia is on to the right thing and we'd like to indicate support for that direction. --Paul [EMAIL PROTECTED] wrote: We (I and Hiperlogica, a company I consult with) have been developing a template renderer with similar intent to xmlc (be based on XML/DOM, allow the template to be previewed and edited using tools not aware of the format, such as xHTML editors, and enforce presentation/logic separation). As the project is somewhat on hold while we have more pressing issues, I decided to share the current (rather kludgy) prototype with the community. It is at http://www.zope.org/Members/lalo/HiperDOM/ On Mon, Sep 11, 2000 at 02:06:08PM +, Jason Spisak wrote: Zope Devers, THis is going to seem strange coming from someone who hasn't been on the list in a long time, but I was at the Linux Expo in San Jose, and sat in on a Web app talk. Lutris was in charge of the panel, and they talked about xmlc. I went to their booth and asked about it. I think it could be the best way to get hard-core python people to jump on zope's band-wagon, and stop the dtml frowning. If you who are in the know about zope have time, please read a quick bit on what it is. http://xmlc.enhydra.org Especially the tutorial: http://staff.plugged.net.au/dwood/xmlc/index.html Is there any obvious reason why Zope wouldn't benefit tremendously from this design and programming separation and pure python boost? []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] DISCUSS: XHTML Templates proposal
Howdy folks. As advertised in my last email, below is our Fishbowl Proposal on a new template architecture. Some notes: 1) This mostly replaces DTML. As mentioned, the goal isn't necessarily to get DTML removed from Zope. Rather, most of the audience will see it little or none of the time. 2) This proposal has gotten more internal DC scrutiny from a requirements perspective than anything we've done. The proposal has been rewritten four times. 3) The original version of this forced the connection between reinventing the data tier (documents) and the presentation tier (templates/pages/stylesheets). We eventually found the way to decouple the connection, but we still need to write a documents proposal. 4) What this really, really needs right now is extensive user documentation with screenshots written *before* the software. This is where we got stuck. Docs are the fastest way to confront the myriad of usage details. 5) Our proposal is a little more ambitious than HiperDOM (we have a concept of "components" that are hinted to but not explained). But for now, HiperDOM is a good basis for exploring XHTML Templates. 6) I'm still not convinced template is the right word. Unfortunately I'm less convinced at any alternatives. Whatever is chosen, it must feel "normal" to the vast majority of the audience. Cheers! --Paul XHTML Template Architecture Zope should increase usability and promote separation of tiers by moving to a presentation and data architecture. Site Designers will author and round-trip presentation objects in familiar tools. Combined with the Document Architecture, this proposal establishes the fundamental content and presentation architecture for Zope. Note on status The great folks at Hiperglocia have already produced something quite similar to what is discussed here. Their Zope product is called "HiperDOM", http://www.zope.org/Members/lalo/HiperDOM/. Note On Jargon The choice of term for the presentation object has been contentious. Right now the list of choices include: template, view, page, or stylesheet. This proposal doesn't make the decision on the jargon. Rather, the tier is usually refered to as the presentation. When a choice has to be made, such as the Architecture section, Template is used as the temporary choice. Problem Zope currently has a model of DTML Documents and DTML Methods as the basic data and presentation tiers. However, this model is confusing, doesn't promote separation of tiers, and doesn't work with popular web design/authoring tools. For the presentation tier, Site Designers are faced with an idiom in which well-formed HTML is split between two "files" (standard_html_header and standard_html_footer). Also, the presentation mockups are "taken away" by programmers who insert a bunch of alien tags that don't present anything on the screen of the web design tool. Worse, DTML is fundamentally impossible to edit directly by classic tools due to the "source vs. rendered" issue. That is, when a Site Designer wants to edit a piece of DTML, they will get the *rendered* version of the DTML for editing, where all the DTML tags are expanded into HTML. In summary, there is a tremendous usability issue, both conceptual and in practice. There are additional problems: o DTML is considered a "proprietary" language o Data needs to have different presentations used under different conditions o Consulting practices need a way for customers to start seeing screen results immediately without having the programmer "steal" the templates by converting them to something alien Goals The goals of the Presentation Architecture are: o Clear separation of presentation, data, and logic with clear concepts in Zope for these tiers and audiences o Increase usability by allowing round trip presentation with common tools and familiar concepts o Allow those presentation tools to work by having well-formed markup (e.g. no separation into header and footer) o Supplant "proprietary" markup language (DTML) in presentation tier by leveraging standards (XHTML) (Note: "eliminate" isn't the target as it might not be feasible in 100% of the cases) o Match the appropriate level of capability currently in DTML usage o Simple presentation reuse within reach of standard tools Solution Zope should move to an architecture with clear separation of presentation, data, and logic, with clear concepts in Zope for these tiers and audiences. The presentation tier will get a tremendous usability increase by allowing round trip presentation with common tools. This also ensures that Site Designers finish with the same stuff they started with, meaning the programmers don't come in and cast their work into "code". The architecture should make sure those presentation tools are effective by having well-formed markup (e.g. no
[Zope-dev] AUTHENTICATED_USER.has_role !!
Hello all, Please read the following code: ** dtml-if "AUTHENTICATED_USER.has_role('Vorstand')" dtml-with vorstand hello dtml-in neuanmeldungen_sql start=query_start dtml-if sequence-start pa href="vorstand/freigeben_html"Neue Mitgliedsanträge sind eingegangen!/a/p /dtml-if /dtml-in dtml-in newNews_sql start=query_start dtml-if sequence-start pa href="vorstand/newNewsAuthoForm_html" New News are waiting for your authorisation!/a/p /dtml-if /dtml-in pa href="vorstand/bankdaten_report"Bankdaten abfragen./a/p pa href="vorstand/mass_email_form" Send Mass Email to all Members/a/p hr size="1" / /dtml-with /dtml-if ** The above code use to worked very OK with Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86). But now when I have upgraded to Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86), I dont find "dtml-if "AUTHENTICATED_USER.has_role('Vorstand')"" working the way it use to!! Please help me with the reason for it and the way i can solve my purpose may be in the other way. Looking forward to hear from u as soon as possible, Maulin Doshi Germany _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] DISCUSS: XHTML Templates proposal
On Fri, 15 Sep 2000 08:28:40 -0400, Paul Everitt [EMAIL PROTECTED] wrote: Note On Jargon The choice of term for the presentation object has been contentious. Right now the list of choices include: template, view, page, or stylesheet. This proposal doesn't make the decision on the jargon. Rather, the tier is usually refered to as the presentation. When a choice has to be made, such as the Architecture section, Template is used as the temporary choice. so-obvious-you-might-not-have-thought-of-it.. 'Presenter' Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZOracleDA not working with 2.2.1?
Hi *, after upgrading to latest Zope we are having problems with the ZOracleDA product. The first SQLMethod **after** a call to an external method using DCOracle to update the db, fails with an error saying that the connection is closed. (connection can't be re-opened, the only way out is to restart zope, sigh.) anybody experienced the same problem? is ZOracleDA non-compatible with Zope 2.2.1? ciao and tahnk you very much (as always), federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] A short story: I want you. I love you. I'll miss you. -- Me ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Discussion Story Building Mediums
*This message was transferred with a trial version of CommuniGate(tm) Pro* On Fri, 15 Sep 2000, Chris Withers wrote: Ken Manheimer wrote: Convenient for what? If you've ever tried to support a community through a mailling list, you'll quickly notice that questions, and their corresponding answers, repeat. A lot. The problem is that while maillists are great for keeping people up-to-date on the business of the community, and for disseminating dialogue, they are not so good for building structures - for organizing content so related pieces of a story are appropriately connected. The counter that this is that Wikis, in my experience (and maybe mine only ;-), are not a good medium for discussions. There's no threading, notfication or subscription, for starters... Clearly, i agree that the absence of those things in the wiki is a problem - i state that directly in the "problems to be addressed" section! *The* thing to understand here is that we're currently in a position where neither wikis nor maillists, in themselves, provide what we need. We need to do *something* in the meanwhile, if only to bootstrap the process so we can get to the point where we have that integration. (You'd have to ask brian and the dev folk, but i think the reason we're going with wiki is because otherwise all this talk gets **lost** - noone has the time to do the transcribing, etc. At least with wikis you can preserve your thoughts and then email interested parties!) My proposal is all about getting there - i yearn to get the time to do some of what's necessary - at least ZClass-ification so i can do the notification stuff in a clean way, because we're suffering without notification - and i'm hoping there will be a window in not too long. I think this discussion is evidence of the need, not of flaws in the proposal! Wikis, as they stand, are not bad for organizing stories. ..agreed, but a lot of Wikis are not being used for this. It's a difficult problem. You need a decent medium for discussion, like a mailing list, which needs to automatically (and that seems _very_ hard to me) extract the necessary 'story' bits and store them in a decent story-building medium... Yes - it seems _much_ easier to me to have people annotate the existing wiki (restricted, perhaps, to only adding text, not changing existing text - that's easy to implement, though we'll have to go to some effort to make it user friendly). From the WikiNG proposal: For discussion, i can see two applications of a wiki document option that allows commentators (non-authors) to only add text, not change existing text. (Zope would diff the new revision and reject it if it contains changes to existing text.) Simplest application would be accepting changes only at the end - weblog style. Next simplest would be one that allows insertions anywhere, for comments next to subject lines. (Zope could offer readers knobs for controlling visibility of annotations.) The document authors could have the privilege of editing any text, to consolidate and refine. Both applications would be useful for different kinds of discussions. Wouldn't that be cool - with notifications to interested parties, perhaps including diffs that showed the annotations, and a bit of context? (A further alluring step would be to allow notification subscription options for getting the entire changed document, and enable the email recipients to add their annotations in standard email-citation style, and send them back to zope, for it to incorporate the edits. But that would take some authentication provisions, as well as better email integration...) We all sorely miss change notifications and ownership attribution, a preview button, etc - but they're better, even as they currently stand, for building longstanding artifacts than are mailling lists. And hopefully, in not too long, we'll be able to improve them, or provide something else, to do the job right. Well, the WikiDot idea is starting to crop up in my brain a bit more now ;-) And since that'd be a Swishdot skin, it'd work with the PTK, and everyone's happy and focussed on what they want to be :-) Well, this is, tangentially, a particularly interesting point for me. I've been challenged with how to fit the WikiNG proposal into the PTK - since the PTK is a prime digital creations content management focus, management doesn't want to dilute resource assignments with other (eg, WikiNG) content-management-oriented efforts. So i have to figure out how it would fit in that frame work - maybe this suggests a way. I'm having trouble fitting my mind around it, though. Sigh. Ken [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -
RE: [Zope-dev] I feel your Wiki Pain ;-)
*This message was transferred with a trial version of CommuniGate(tm) Pro* [I'm running out of time here, so pardon the brief responses. Make no mistake, though - i'm glad to be having this discussion! It's good to be getting this input, seeing suggestions for other ways to look at this discussion problem...] On Fri, 15 Sep 2000, Toby Dickenson wrote: I dont actually have anything against Wikis in general; I have used on very successfully for what I would describe as "document refinement", and a better annotation scheme will enhance that use of Wikis. The passage you quoted uses terms like "subject document", and at the moment I dont see that as the best model for a *debate* Do you feel that weblogs are bad models for debates? I think they're pretty good least-common-denominators. I would probably prefer the kind of annotation-based thing i described in my last message (and began to sketch in the WikiNG proposal) for collaborative generation of documents, but i can see the place for weblogs, just as i can see a place for network chats. With adequate integration of email (for notification and response), i see them as better than just email... The ability to subscribe for notification (above) and/or to track what you personally have seen, and not, is intended for this kind of thing. It would keep me happy if the notification includes a link to the new content (rather than a link to the page that contains new content). Even better, the email notification could *include* the new content. Different options for different purposes - but we need at least notification! But Wikis don't (for me, today) work for loosely structured commentry. Quoting from http://dev.zope.org/Fishbowl/Introduction.html In some cases a mailing list will be setup for substantive, large-scale projects. Otherwise existing mailing lists can be leveraged (for now, use zope-dev for this). Perhaps I should rephrase my objection. The *real* problem is that this isnt happening - discussion is stored in Wiki pages like http://dev.zope.org/Wikis/DevSite/Proposals/XxxxDiscussion I think we all agree this is a problem. We seem to have found a short term solution - though i'll tell you that with time constraints, i won't immediately have time to incorporate the points raised in the documents. Ken [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZOracleDA not working with 2.2.1?
[EMAIL PROTECTED] wrote: Hi *, after upgrading to latest Zope we are having problems with the ZOracleDA product. The first SQLMethod **after** a call to an external method using DCOracle to update the db, fails with an error saying that the connection is closed. (connection can't be re-opened, the only way out is to restart zope, sigh.) anybody experienced the same problem? is ZOracleDA non-compatible with Zope 2.2.1? ciao and tahnk you very much (as always), federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] A short story: I want you. I love you. I'll miss you. -- Me Please try using DCOracle 1.3b1 to see if that fixes things; there are some bugs with connection handling in versions of DCOracle where if the connection dies it will not recover. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] HiperDOM xmlc
On Fri, Sep 15, 2000 at 08:21:21AM -0400, Paul Everitt wrote: I'm surprised that no one responded to this. (Or maybe people did and our continual email server problems have lost it.) Me too. I'd like to congratulate Hiperlogica, because they have (ding ding ding) the _right answer_! :^) Thank you :-) We feel good about this answer too. Seriously, we at Digital Creations have been quietly formulating a proposal on this since Amos put up the template proposal in dev.zope.org. I floated some trial balloons at EuroZope and it's clear there's some consensus. Glad to know that. Our "XHTML Templates Proposal" is at: http://dev.zope.org/Wikis/DevSite/Proposals/XHTMLTemplatesProposal It is not linked on the Proposals FrontPage... -- Anyway, at least for HiperDOM I feel comfortable with the word "template" because that's what it is about. The two primary motivations for the design are: * You can create the layout with any XML-compliant editor; if the template is xHTML, you can use a XHTML-compliant WYSIWYG tool. Or, thanks to the modern XML technology, you can use a WYSIWYG HTML tool and pass it trough a SGML-XML filter to get xHTML. Using specialized webdesigners with Zope project has been one of the biggest pains in Zope development; we have to take the sometimes ugly code generated by the tools they use, usually clean it up, then insert the DTML tags in it. Making changes to the design is a nightmare. * The template looks like the rendered page; if you don't want to fire up Zope, or if the application logic is not yet finished, you can preview the layout by simply loading the template in a browser. These goals are similar, but not identical to the ones in the proposal. Still, some parts of the proposal felt like extracted rigth out of my mind :-) I don't feel good about calling the layers "document" and "view" or "presentation" and "data" because the "view" is not strictly presentation code; invariant (static) parts shared by all pages rendered with that template can be in the template. As much as we all like to talk about "Web Applications", this is not exactly like "normal" application design, where you can draw a clear line between presentation and data (or model/view). -- The only thing I _don't_ feel good about this kind of template is that, in practice, we will probably lose the benefits of things like dtml-var standard_html_header - meaning, when you want to change the header of your site, you'll have to edit all your templates. Of course a site where this is a problem still _can_ use "includes" like standard_html_header, but I believe most won't. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] aq_.* names reserved?
Steve Alexander writes: I'm hacking around with some external methods called aq_containment and aq_context. I just found out that I can't call them from DTML. I can call them from the URL line of a browser just fine. If I rename them to a_containment and a_context, they work from DTML. I guess there's something in Acquisistion.c that reserves all aq_.* names. The code is in "AccessControl.ZopeSecurityPolicy.validate". It allows access to "aq_explicit" and "aq_parent" only. I am a bit astonished that URL traversal is possible. Probably, this was not intended. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] DISCUSS: XHTML Templates proposal
[EMAIL PROTECTED] wrote: IMHO, view, page, and stylesheet don't make the grade due to conflicts/confusion with unrelated technologies (e.g. MVC, "server pages", CSS, etc.). On the other hand, reading the "What is styles?" material at: http://www.w3.org/Style/ ...makes me think that the goals of the people using these things (site designers) are the same as the goals of the audience described for stylesheets. That is, these are things that control the presentation. --Paul ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] restrictedTraverse
Steve Alexander wrote: You can use restrictedTraverse('slash/delimited/path') AFAIK, that's not available in DTML... Am I wrong? cheers, Chris ___ 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] Python 1.6 makes Zope not work?!
Though I am a newbie Zope developer, it was very kindly explained to me that a bug in Python 1.6 was being ticked by Zope 2.2.1 FYI, all previous version too. Toby Dickenson [EMAIL PROTECTED] ___ 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] Connecting to a remote Oracle Server: thanks for the help!
Dear DCOracle experts: Thanks for your expeditious help! As a beginner Oracle user I had no idea that it was sufficient to edit properly the tnsnames.ora file in order to connect to an external server. Your hints also helped me to debug a client only Oracle 8 installation! Celio Guimaraes Institute of Computing Unicamp SP Brazil ___ 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: Adding a new property over http
Heres a snip of DTML that adds a property to the parent if the property doesn't exist. If you create a ZClass with this, it will modify the parent folder when called from within a DTML document, if you do it as a DTML Method, it will modify the parent document. dtml-if "hasProperty('z_count')" dtml-call "REQUEST.set('z_count', z_count + 1)" dtml-call "manage_changeProperties(REQUEST)" dtml-else dtml-call "manage_addProperty('z_count', 1, 'int' )" /dtml-if Now, if you wanted to Take a variable in a form (or link), and make it a property like in your example, you're method would look like this, Assuming the form had fields to pass the values as 'NewName:string' and 'NewValue:tokens', or your calling link ends with ?NewName:string=fooNewValue:tokens=mytokens dtml-if "hasProperty(NewName)" dtml-call "REQUEST.set(NewName, NewValue)" dtml-call "manage_changePRoperties(REQUEST)" dtml-else dtml-call "manage_addProperty(NewName, NewValue)" /dtml-if I hope this helps! Now if only someone could answer why the behaivor changes between having it as a DTML method and a ZClass! (And how to fix it!) Message: 5 From: "Jason Cunliffe" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Zope] Adding a new property over http Date: Thu, 14 Sep 2000 15:00:41 -0400 charset="iso-8859-1" Hello I asked this in longer form before, but it fell by the way I think.. How to add a property to a containing folder. Looking for DTML or External Method way to do this. We need a Method to to add a new folder property assigning an 'Id' = somename adn 'type' = 'tokens'. We need to be able to do this by passing the variable somename over http. thanks - Jason ___ 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] (Correction) Re: Adding a new property over http
In the previous email, this line: dtml-call "manage_addProperty(NewName, NewValue)" Should have been: dtml-call "manage_addProperty(NewName, NewValue, 'tokens')" ___ 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] SQLRelay vanish ??
"DG" == Didier Georgieff [EMAIL PROTECTED] writes: DG Hello, Since several days, the {HYPERLINK DG "http://www.firstworks.com/"}http://www.firstworks.com/ web DG site is unavailable. (SQLRelayDA and SQLRelayDA). DG Any information about the SQLRelay future, and download site ? DG Thanks. Didier. sqlrelay is still very much alive. I'm gonna do a new release of the DA soon, with a lot of important fixes. The lead devloper for sqlrelay moved and had to take down the site for a while. There are some sourceforge pages that are available in the interim. You can get sqlrelay at: http://sourceforge.net/projects/sqlrelay/ And you will also need the rudiments library from: http://sourceforge.net/projects/rudiments/ There is also now a sqlrelay mailing list at egroups.com. ^Roman ___ 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] Help with Zope 'pitch'
At 11:35 am +0100 15/9/00, [EMAIL PROTECTED] wrote: I hear Zope learning curves are steep, so I wonder if anyone can suggest how I can persuade Managers that it is worth investing time and effort. To do many things is dead easy. This includes things like database lookups and reuse of web page 'components' (think of them as server-side-includes). The learning curve comes about because of the very different way that Zope works - and this is almost solely down to Object-Orientated principles. For example, in a static web site, you create an index.html page in every folder in your web site. If you have 2000 folders, then you need 2000 index.html files (or index.php3 or whatever). With Zope, you can have *one* index.html file at the top level of your web hierarchy that would do for all your 2000 folders. In folders that are special, say admin folders, you can change the index.html to be something else. You can also lock that file down so people need to authenticate to get into the folder. Suppose your web site is composed something similar to this; admin contacts internal external research contacts internal external undergrad contacts admissions courses year1 ... year5 postgrad contacts admissions courses taught year1 research year1 ... year5 (extend this out as much as you like) You can see there's a lot of duplication there. Using Zope, You can effectively 'create' those 2000 folders by simply writing out a URL, such as /postgrad/courses/taught/year1/action. The 'action' part will collect all the components together and create a composite web page. This is where some of the learning curve kicks in, as what you need to do to use Zope to greatest benefit is to look for commonality and uniqueness amongst all the components you are collecting together. Can anyone say in a few paras what Zope can do and what its benefits might be (lay language appreciated); I've probably gone way over the top there, but essentially you get to create dynamically rich *maintainable* web sites in a very short period of time. These web sites can be broken into logical chunks, that allows for very easy distributed management. eg in 'admin' above, you pass off the management of that 'branch' to someone else. If they then create an internal section of admin, they can also pass off responsibility of that part to someone else. also any anecdotes of how long it took to get to grips with it. I had some people come to the Med School on a Sunday and had them creating pages that were built from components in about 20 minutes. By the end of the afternoon they had several pages made and one or two had pages that were doing a database lookup. Is it worth using it for a Web site that is predominantly static pages (with ambitions for development)? There are some excellent 'products' (think plugins) that can mirror a static web site quite happily. You can then add the dynamic parts as you gain in confidence. I'm specifically thinking of the LocalFS product. Still a Web Novice but working on it - Linda Doyle! not for long we hope... Tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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] restrictedTraverse - yay! :-)
Dennis Nichols wrote: At 9/15/00 10:05 AM, Chris Withers wrote: So: dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url will work as I expect it to? Well, I don't know what you expect :-) When I try to save such a construct with the handy-dandy Change button I get Document Template Parse Error Invalid attribute name, "absolute_url", for tag dtml-var "restrictedTraverse(choice)" absolute_url ... Yeah. That's right. There is no attrubute absolute_url. There is, however, a method absolute_url(). This should do what you expect: dtml-var "restrictedTraverse('slash/delimited/path').absolute_url()" -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] restrictedTraverse - yay! :-)
At 9/15/00 10:05 AM, Chris Withers wrote: So: dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url will work as I expect it to? Well, I don't know what you expect :-) When I try to save such a construct with the handy-dandy Change button I get Document Template Parse Error Invalid attribute name, "absolute_url", for tag dtml-var "restrictedTraverse(choice)" absolute_url ... -- Dennis Nichols [EMAIL PROTECTED] ___ 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] Zope Crash!!!
You have started another Zope process while one is already running. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 15, 2000 11:14 AM Subject: [Zope] Zope Crash!!! In my computer Zope goes down frequently, and i don4t know why ... Mi configuration is : Linux Red Hat 6.1 Oracle 8.1.6 Zope 2.2.1 This is the message when died : --- Traceback (innermost last): File "/usr/local/dc/Zope-2.2.1-linux2-x86/z2.py", line 554, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "/usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/Zope/__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "/usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZODB/FileStorage.py", line 262, in __init__ lock_file(f) File "/usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZODB/lock_file.py", line 101, in lock_file raise error, ( ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file. Anyone can help me? ___ 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] restrictedTraverse - yay! :-)
+---[ Dennis Nichols ]-- | At 9/15/00 10:05 AM, Chris Withers wrote: | So: | | dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url | | will work as I expect it to? | | Well, I don't know what you expect :-) When I try to save such a construct | with the handy-dandy Change button I get | | Document Template Parse Error | Invalid attribute name, "absolute_url", for tag dtml-var | "restrictedTraverse(choice)" absolute_url ... dtml-var "restrictedTraverse(choice).absolute_url()" I think is what is required. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ 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] Pluggable brains
I would like to understand how to do this in Zope also. I've done similar things in Delphi and C++. But am having a little trouble seeing how to do it in Zope. Below is a snippet from a document that was suggested however It's not clear how the data is "Wrapped" by the class. Can someone explain this. I would be will to document it if I can figure this out. - snippet - Brains allow you to associate a Python or ZClass with a Record object. Consider the example class: class Employee: def fullName(self): """ return the full name in the form 'John Doe' """ return self.first_name + ' ' + self.last_name def yearlyIncome(self): """ calculate the employees yearlyIncome """ return (self.weekly_hours * self.hourly_wage * 52) This class is then mixed in the with Record class which defines the behavior for Record objects. When a Record object with Brains is instanciated as the result of a SQL query, those objects will have Employee as a base class, giving the resultant Record objects behavior, as well as data: dtml-var standard_html_header dl dtml-in Employees dtdtml-var employee_id/dt ddpdtml-var fullName makes an estimated dtml-var yearlyIncome fmt=dollars per year./p /dd /dtml-in /dl dtml-var standard_html_footer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dieter Maurer Sent: Thursday, September 14, 2000 1:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Pluggable brains [EMAIL PROTECTED] writes: Is there a place where pluggable brains mechanism is described ? I forgot where I saw a description. But it is incredibly simple: You can wrap an arbitrary class instance around your database rows. This transforms your rows into full featured objects with the columns (among others) as attributes and the methods defined by the class as potential behaviour. What elso do you need to know? Dieter ___ 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 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] Zope Crash!!!
I have only one z2.py running, and run all day and night ;-), but sometimes (only managing Zope, not running other process z2.p) , this exception jump, but I haven´t two process, only have one. I want know why crashIt´s very rare Thanks *** REPLY SEPARATOR *** On 15/09/2000 at 12:07 Chris McDonough wrote: Unless you've run z2.py "again", the error cannot happen during normal operation. The error message comes from the startup routine in z2.py. If you're saying that you get this error every time you try to start Zope, I can understand it. First, make sure there are no Zope processes running by "ps -auxwww|grep python|grep z2". If there are, kill them. Then try to start Zope. If you still get the error, delete the Data.fs.lock, Data.fs.tmp, Z2.pid, and zProcessManager.pid files in the var directory and try to start again. If you still have the problem, check permissions on the var directory to make sure the user you're starting Zope as has access to write files into it. If you still have the problem after that... uh... I'm afraid I don't know the answer. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 15, 2000 11:47 AM Subject: Re: [Zope] Zope Crash!!! You have started another Zope process while one is already running. No, I sure of this. The Zope is running normally, but then suddenly down. ___ 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 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] Zope Crash!!!
+---[ Aitor Grajal ]-- | | | I have only one z2.py running, and run all day and night ;-), | but sometimes (only managing Zope, not running other process z2.p) , this exception |jump, | but I haven´t two process, only have one. | I want know why crashIt´s very rare Do you have something else running on port 8080 ? If you do (like squid), then when you press 'Restart' on the Control Panel then something else might grab the port. It also could be that the port is lingering and is still in use when Zope tries to restart. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ 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] Zope Crash!!!
Do you have something else running on port 8080 ? No , I think;-) If you do (like squid), then when you press 'Restart' on the Control Panel then something else might grab the port. Heee!!! if I try Restart, Zope no restart It also could be that the port is lingering and is still in use when Zope tries to restart. What is a "port is lingering" ?? Thanks ___ 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] Broken 'What's New' on Zope.org?
This is a longstanding bug. Send complaints to [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 15, 2000 12:31 PM Subject: [Zope] Broken 'What's New' on Zope.org? Is it just me or is the 'What's New' Feature on Zope.org been broken for months? I get.. System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for moreinformation. For additional technical information, please refer to the HTML source for this page. Thank you for your patience. Error type: TypeError Error value: unhashable type And in the code.. Traceback (innermost last): File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/dc/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/dc/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: newitems.html) File /usr/local/dc/zope_soft/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: newitems.html) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: results="SiteIndex(REQUEST=REQUEST)") File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 493, in renderwb (Object: results) File /usr/local/dc/Zope2/lib/python/DocumentTemplate/DT_In.py, line 741, in sort_sequence (Object: results) TypeError: (see above) Just me? Or is this a 'known' issue? It was/is my favorite feature of Zope.org. Thanks, J ___ 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 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] Zope Crash!!!
You have started another Zope process while one is already running. No, I sure of this. The Zope is running normally, but then suddenly down. ___ 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] Zope Crash!!!
I have now Zope in . If you do (like squid), then when you press 'Restart' on the Control Panel then something else might grab the port. Heee!!! if I try Restart, Zope no restart And the exception is : exceptions.SystemExit Zope has exited normally. Traceback (innermost last): File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_shutdown) File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_shutdown) File /usr/local/dc/Zope-2.2.1-linux2-x86/lib/python/App/ApplicationManager.py, line 384, in manage_shutdown (Object: Traversable) SystemExit: 0 It also could be that the port is lingering and is still in use when Zope tries to restart. What is a "port is lingering" ?? Thanks ___ 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] Broken 'What's New' on Zope.org?
I looked at the source once and tried to figure it out. Mostly it looks like they keep it all in a catalog (duh) and set a cookie as to your last visit. When login and go to the 'What's New' page they check the cookie, compare it against the items recently added and show you the list. I guess it would only require the site catalog and the users logging in. They might also write the 'last visit' into the ZODB. It is also something I have wanted to do for awhile but have not really built that many user based sites. Let me know what you come up with or if you want further description. I am also going to try (someday) to build a simple version into ZUBB (as you probably are going to into Squishdot). Hope it helps... J From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms Date: Fri, 15 Sep 2000 18:18:39 +0100 To: Chris McDonough [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope] Broken 'What's New' on Zope.org? Chris McDonough wrote: This is a longstanding bug. Send complaints to [EMAIL PROTECTED] If anyone fixes it, please let us all know... I'm looking for just the same functionality for a site here adn I was hoping to do a view_source for the answer :-S cheers, Chris ___ 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] Zope Crash!!!
It´s normal that when start Zope , Zope run two process z2.py ??? why??? If I only run one time Zope. Steps : 1 - Kill all z2 processor reboot the server... 2 - start Zope 3 - ps -auxwww | grep python | grep z2 --- Two process z2. 4 - stop Zope 5 - ps -auxwww | grep python | grep z2 Zero process z2 Help! Thanks ___ 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] Broken 'What's New' on Zope.org?
Hi Chris ! Chris Withers wrote: Chris McDonough wrote: This is a longstanding bug. Send complaints to [EMAIL PROTECTED] If anyone fixes it, please let us all know... I'm looking for just the same functionality for a site here adn I was hoping to do a view_source for the answer :-S Shouldn't the following do ? dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50 Show stuff in Catalog here. /dtml-with At least that is what works perfectly for the ZDP site: http://zdp.zope.org/new Regards, Maik -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com ___ 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 generate an Object ID automatically
There are many different options one simple way I used at the beginning was to base it on date and time: dtml-call "REQUEST.set('id','Faqs'+_.str(_.int(ZopeTime(" dtml-with "Faqs.createInObjectManager(REQUEST['id'], REQUEST)" ... This creates an id along the lines of Faqs958889275 - Original Message - From: "zopist" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 15, 2000 11:09 AM Subject: [Zope] How to generate an Object ID automatically dear zopists, im a zope newbie and i have one of those little problems ppl like me can spend hours on ... i just built my first ZClass and now im trying to automatically assign a generated ID to an instance of this class in the -add method. i want to generate the id because there is no unique fieldvalue available and i dont want to have the users get stuck on this point. another problem i encountered is that when i try to add an instance in a folder i get an authentication box where no valid login is accepted i would really much apreciate if someone could help. Francisco (chico) Webber ___ 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] ZOPE - Size reduction ???
[EMAIL PROTECTED] wrote: I recently transformed my web site into a zope site. It's fantastic no question about that but I am a bit warried about the size of the web site. I already had to ask for user quota increase and it looks like I'll have to do it again soon. I got rid of the tutorial, products I did not need, the unnecessary doc files I deleted the quick start directory and I am flushing and packing the database often. What else can I do to decrease the size of ZOPE? If all python files have been compiled, you can remove the sources. Here's a command that should do it all at once. :-) rm `find . -name '*.py' -exec test -e {}c \; -print` Shane ___ 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] Pluggable brains
Stuart Foster writes: Below is a snippet from a document that was suggested however It's not clear how the data is "Wrapped" by the class. Can someone explain this. I would be will to document it if I can figure this out. You wrap via the "Advanced Tab" of a Z SQL method. Dieter ___ 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] Newbie - Zope won't start
I downloaded and installed Zope for Linux as per the instructions at zope.org. When I try to start Zope with ./start I get a report that it has started up on ports 8080, 8021, and 8099. Then I get this: Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id' I installed it as root and am root when I issue the start command. This is a stock Red Hat 6.2 Intel box. ___ 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] Newbie - Zope won't start
Hi, my first posting here - and hopefully helpful :) At 22:13 15.09.00, John VanDyk wrote: When I try to start Zope with ./start ... Then I get this: Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id' I installed it as root and am root when I issue the start command. This is exactly what you should not be. Normally no daemons should run as "root", because it's a potential security hole. Your linux box should have a user "zope", under which the daemon should run. just do a su - zope and run the "start" script again. For me that did do the trick. Martin ___ 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] Newbie - Zope won't start
Read the /doc/INSTALL When you run install you should give it the username and group ./install -g nobody -u nobody Try that and start it again. J From: John VanDyk [EMAIL PROTECTED] Date: Fri, 15 Sep 2000 15:13:43 -0500 To: [EMAIL PROTECTED] Subject: [Zope] Newbie - Zope won't start I downloaded and installed Zope for Linux as per the instructions at zope.org. When I try to start Zope with ./start I get a report that it has started up on ports 8080, 8021, and 8099. Then I get this: Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id' I installed it as root and am root when I issue the start command. This is a stock Red Hat 6.2 Intel box. ___ 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 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] ImplicitAcquirerWrapper
Has anyone run into this problem? Zope Error Zope has encountered an error while publishing this resource. Error Type: SystemError Error Value: Failed to import class ImplicitAcquirerWrapper from module Acquisition Thanks in advance. begin:vcard n:Kim;Chalu tel;fax:(212) 929-3076 tel;work:(212) 929-3087 x-mozilla-html:FALSE url:http://www.egenius.com/ org:eGenius, Inc adr:;;137 Varick street, 6th Floor ;New York;New York;10013;US version:2.1 email;internet:[EMAIL PROTECTED] title:Chief Navigator x-mozilla-cpt:;0 fn:Chalu Kim end:vcard
[Zope] repost of ImplicitAcquirerWrapper
Apology of sending multipart. Has anyone run into this problem? Zope Error Zope has encountered an error while publishing this resource. Error Type: SystemError Error Value: Failed to import class ImplicitAcquirerWrapper from module Acquisition Thanks in advance. ___ 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 change the 'Zope' realm/resource??
--- Dieter Maurer [EMAIL PROTECTED] wrote: [various interesting stuff] Ok, I've *got* to ask this: Isn't it somewhere in the code ? I know, I know... few people are willing to recompile just for this (let alone the ones that have used the .rpm way). But if I want to, I *suppose* it'll just take a lot of grepping right ? But then, as is usually the case with computers, there's lots of difference between supposing and implementing. Would it be otherwise, ISPs would be admin'd by CEOs :-) Dimitris __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ___ 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 )