[Zope-dev] ZPatterns and ZCLasses
I have an existing ZClass/Data Structure like this RecruitingPlatform Company Recruiting Candidates Student Profiles Address Highschool IT Jobprefs ... I want to store the data in the ZClass instances, must each ZClass have the Base class _ZClass_for_DataSkin and do I need a Rack for each class ? Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 ___ 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] FSDump + 'diff -r' - Wow!
I was just able to scratch a *really* big itch: I used my FSDump product, plus 'diff -r -u', to generate a diff between the versions of DemoPortal (the "through-the-web" portion of the PTK) shipped with PTK 0.9.0 and 0.9.2: http://www.zope.org/Products/PTK/DemoProduct_0.9.0_0.9.2.diff/index_html I am tickled pink -- this is exactly the kind of data I need to be able to hang on the the ears of the tiger which is through-the-web development! Tres. ___ 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] ZPatterns and ZCLasses
At 11:08 AM 11/21/00 +0100, Joachim Schmitz wrote: I have an existing ZClass/Data Structure like this RecruitingPlatform Company Recruiting Candidates Student Profiles Address Highschool IT Jobprefs ... I want to store the data in the ZClass instances, must each ZClass have the Base class _ZClass_for_DataSkin and do I need a Rack for each class ? If you are storing dataskins in a regular folder hierarchy (or other persistent hierarchy), you don't need racks. You just need a Folder w/Customization support in the objects' acquisition hierarchy. Of course, if you don't need DataSkin-ish behavior (i.e. triggers and attribute providers), you don't need the FwCS either. DataSkins stored outside of Racks will "pretend" to be ordinary persistent Zope objects if they can't find an appropriate Customizer. That is, they act like regular Zope objects, only it takes them more work because they're pretending. :) ___ 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] Callable baseclass for ZClasses
Sorry, a DTML Method throws 'KeyError' not 'Unauthorized' But I have already seen posts on why *that* is the case (Hotfix IIRC) Stefan ___ 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] Last Call: Comments on Official Docs Process
We're getting close to finalizing the procedures for the development and maintenance of official Zope documentation. Have your say now, before we come to closure: http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess The plan is to fine tune a little more and then weave the documentation processes into the fishbowl process. Thanks for your input! -Amos -- Amos Latteier mailto:[EMAIL PROTECTED] Digital Creations http://www.digicool.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 )
[Zope-dev] ZPatterns Project Help!
Another question... I want to have a GAP that will add some other Object to an attribute of my DataSkin. This is what I have tried with no success. fromexpr: accounts.getItem(self.account_id) attrsexprs: account_object=RESULT This way in my UI Methods in my DataSkin I can access (and change) the attributes of "account_object". Q. How can I do this? Should I be doing this in a different/better way? Thanks, -Ben ___ 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] Javascript dtml tags
Kini Natekar wrote: Hi, Is there a way to include dtml tags with a javascript ? If there is please let me know. Are you sure you don't mean include javascript using dtml? DTML is parsed by the server, javascript by the client. I use dtml to build javascript (and in some cases, use dtml to build rxml that builds javascriprt ;). -- E PLURIBUS LINUX ___ 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] jcNTUserFolder on 2.2.x
On Mon, 20 Nov 2000 14:20:41 -0800, "Andy McKay" [EMAIL PROTECTED] wrote: Is there an updated version or product similar to jcNTUserFolder (allowing NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have to upgrade jcNTUserFolder? Both jcNTUserFolder and NTUserFolder (Which I maintain, and from which jcNTUserFolder forked) do not fully integrate with 2.2's security machinery. Tackling this deficiency is on my to-do list too, but I wont be upset if someone else does the work first. API changes in 2.2 (and future developments, like PTK) make custom user folders less attractive than they used to be. If you intend committing some time to this then I recommend something based on http://www.zope.org/Members/tsarna/LoginManager The simplest change would be to transplant the authentication code out of (jc)NTUserFolder and into LoginManager methods. However that would still only run on NT. A solution that runs on linux and solaris only is oulined at http://www.zope.org/Members/tseaver/LoginManager_and_SMB. My ideal solution (that I still hope to find time for) would be to do whatever is needed to get this option running on NT and 95 too. I hope this is of some help. 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 )
RE: [Zope] ZMailIn - alternatives?
Vince I installed it right away - and I think it should work. When first trying to mail to the system it said it had some problem with the x-envelope-to header. The ZMailIn system doesn't use the x-envelope-to header it uses the envelope-to header. If your mail server provides x-envelope-to instead of envelope-to then you need to change lines 83 and 84 in zopeMailIn.py to reflect this change. As far as I understood the problem, the mail server should provide this feature, but mine doesn't. ;-( What mail server are you using. I know exim works fine and I have heard reports of people using send-mail Thus I can't mail into the system. Any idea for workarounds? If you still can't get it working then email me the exact details. Prehaps then I'll find an excuse to update ZMailIn and release another version :) -Andy ___ 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: Problems using M18 (and others too!)
Andreas Tille wrote: I just gived Mozilla M18 a try and noticed that Back Button of the browser doesn't work in zopüe management screen. Netscape 4.75 (and Konqueror doesn't seem to work well with zope either - I sometimes get repeated password prompts, and the management screens don't come up at all - I just see the index_html document instead of the folder contents. I get the same bother with w3m, but not with IE or lynx. If all that's wrong with mozilla is the back button, I'll maybe give it a try. Peter Harris This message and any files transmitted with it are confidential. The contents may not be disclosed or used by anyone other than the addressee. If you have received this communication in error, please delete the message and notify JBB (Greater Europe) Plc immediately on 0141-249-6285. The views expressed in this email are not necessarily the views of JBB (Greater Europe) PLC. As it has been transmitted over a public network, JBB (Greater Europe) PLC makes no representation nor accepts any liability for the email's accuracy or completeness unless expressly stated to the contrary. Should you, as the intended recipient, suspect that the message has been intercepted or amended, please notify JBB (Greater Europe) Plc immediately on 0141-249-6285. ___ 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] Zope and Websphere
Hi, I have to convince my new boss to use Zope rather than webspere !! Did somebody compare the two products ?? FRC ___ 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] Uploading files / forms / aditional info / to localfilesystem ..
Jorgen Skogstad - Sun Norway - System Support Engineer writes: What I need is for a user to fill out a form with various information .. and click upload on a file .. and I need to create the following two files locall; Example: * image.jpg * image.info You use either "LocalFS" or an external method. you can also look at ExtFile/ExtImage product. http://www.zope.org/Members/MacGregor/ExtFile []s, Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 ___ 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] Javascript dtml tags
* Kini Natekar [EMAIL PROTECTED] [001121 07:36]: Is there a way to include dtml tags with a javascript ? If there is please let me know. if you mean, you want to insert a dtml tag into a document using javascript, then no. zope's a server-side technology; javascript is client-side. seb ___ 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] External Method
Hi, How can I pass parameters to an External Method? I know of one way to do this, is to use dtml-var tag. Is there any other way? Thanks, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.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 )
RE: [Zope] ZMailIn - alternatives?
Chris If that will solve peoples problems. But I haven't had much feedback on the product so its hard to make any improvements. -Andy -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED]] Sent: 21 November 2000 10:14 To: Andy Dawkins Subject: Re: [Zope] ZMailIn - alternatives? Andy Dawkins wrote: Vince I installed it right away - and I think it should work. When first trying to mail to the system it said it had some problem with the x-envelope-to header. The ZMailIn system doesn't use the x-envelope-to header it uses the envelope-to header. If your mail server provides x-envelope-to instead of envelope-to then you need to change lines 83 and 84 in zopeMailIn.py to reflect this change. Yurch! How about factoring this out into a Property of the ZMailIn object? 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 )
[Zope] SAP Database Adapter available
Hi folks, since the SAP Database has been release on Linux as GPLed Engine (http://www.sapdb.org), is there a compatible adapter for Zope ? --- The only "intuitive" interface is the nipple. After that, it's all learned. (Bruce Ediger, [EMAIL PROTECTED], in comp.os.linux.misc, on X interfaces.) --- Oliver Pabst .-. mailto:[EMAIL PROTECTED]: : phone :+49 681 56600600 :project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de ___ 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] URL-problem
The problem is I've got a website which should have an admin-interface.This interface should only be visible if you call i.e. admin.website.com. If you call web.website.com you reach the normal browse view. The website shoudn't be doubled, but the links on the browse-view normally call the browse-view and not the admin-view.Hope you understand the prob. Thanks in advance!!
[Zope] PythonMethods
Can somebody provide me the URL to the last version of Python Methods? I only find version 0.1.7 which was created 199/12/13. Thanks, Tom. ___ 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] URL-problem
At 12:19 21.11.2000, Jan Van de Vyle wrote: The problem is I've got a website which should have an admin-interface.This interface should only be visible if you call i.e. admin.website.com. If you call web.website.com you reach the normal browse view. If you have Apache in front of Zope (good idea!), you should be able to use Apache's mod_rewrite to implement this behaviour. See http://www.apache.org/docs/mod/mod_rewrite.html But beware! The documentation starts with "Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo." (-- Brian Moore) Maybe the easier module mod_alias could help you as well: http://www.apache.org/docs/mod/mod_alias.html#redirectmatch You have to split your URLs into parts and redirect to the correct location eg: User types http://admin.lifeofbrian.com/brightside, Apache sees the "admin" and redirects to http://localhost:8080/brightside/manage. On the other hand: Is it so hard to type "/manage" after the url to connect to the management interface? hth, 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] PythonMethods
Tom Deprez [EMAIL PROTECTED] writes: Can somebody provide me the URL to the last version of Python Methods? I only find version 0.1.7 which was created 199/12/13. If you want to use Python Methods as they are described in the Zope Book, you have to check the code out of CVS. Info on CVS access can be found in: http://www.zope.org/Resources/CVS_info Python Methods are found under Products/DC. --- Alastair ___ 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] ANNOUNCE: Zope 2.2.4 beta 1 released...
On 20 Nov 2000, 15:07 Brian Lloyd wrote: Zope 2.2.4 beta 1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.4b1/ I'm not quite sure wether it's me, my system or this beta, but a fresh installation of 2.2.4 beta 1 says: Zope Error Zope has encountered an error while publishing this resource. exceptions.AttributeError ... line 140, in index_html (Object: zope_button.jpg) AttributeError: _p_mtime when trying to access http://klotz:8080/p_/ZopeButton Actually, none of the images in p_ is accessible - Zope version: Zope 2.2.4b1 (binary release, python 1.5.2, win32- - Complete traceback: Sorry, a Zope error occurred. Traceback (innermost last): File E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 222, in publish_module File E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 187, in publish File E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 171, in publish File E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File E:\var\disk2\sites\WEBSIT~3\lib\python\App\ImageFile.py, line 140, in index_html (Object: zope_button.jpg) AttributeError: _p_mtime -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] DTMLTemplate + PythonMethod == separate code from HTML?
In fact, I find it too hard to code something using DTML, that's why I'd like to use good old python and to keep only variable substitution in my HTML (dtml-var, or maybe just dtml-my_variable; which is an easier to use form of it, or maybe replace it with @my_var@ or smth like that, which I would find even easier!) I'd like to be able to delimit blocks in an HTML file and to use these blocks from a python program, the goal is to completely separate the code from the design (HTML). With DTML, the code and the design are mixed. it would look like this: def index_html(_): "Display a list of items taken from the products database" if not check_password(): return bad_password_page query_result = my_zsql_query(_) if not query_result: return my_template.no_result result = ReturnStream() result.add( my_template.header ) for line in query.result: result.add( my_template.one_line, line ) result.add( my_template.footer ) and my_template would be an HTML file with dtml-block tags that delimit the header, one_line and footer blocks. The one_line block would use some variables defined in the line dictionary; for example: dtml-block one_line trtd@item@/tdtd@quantity@/tdtd@price@/td/tr /dtml-block The DTMLTemplate and PythonMethods products seem to provide this kind of separation between code and design, but I did not manage to get them working properly together: DTMLTemplate: when I display a block (using dtml-var "my_template.my_block"), the HTML tags in my_block appear quoted, should I use a fmt="html" or something like that to avoid the quoting? PythonMethods: how can I access Zope objects from my method? Typically I'd like to call a template block from my method, but just using my_template.my_block doesn't work. As you can see, I'm not a Zope guru, but I'm willing to learn! I believe that Zope and PTK have a big role to play in the current portal and application servers war... ready to use portal-in-a-box products cost around $100,000... so for that price you can use zope and afford more consulting and coding services! BTW, currently I'm experiencing a problem: no images (icons, ZopeButton etc..) appear on my management pages, images stored in the ZODB are ok though. any idea where are those images like http://localhost:8080/p_/ZopeButton ? Thanks for your time! ___ 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] Search and replace
Kapil wrote: that would like to see this changed. Building such an interface with gnome or kde would be possible, indeed there are already efforts underway to do both. But to create a cross-platform solution really needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead, hopefully developer interest can be generated in reviving it after ActiveState releases the python bindings to XPCOM (which should be soon). Wasn't there some talk of using Radio Userland (formerly Pike) as an interface to Zope? It's too bad that Userland has made the very odd decision to broaden RU into a music sharing gizmo - it really lost focus after that point. But at least it still offers my beloved search and replace and a few other basic editing tools. On the other hand I actually *like* the Zope management interface - in fact, so far I've found it to be very easy to understand and a total pleasure to use. It just doesn't offer some things that I must have - features that would probably be hard to incorporate into a browser interface. Regards Lee Hunter Hum Communications Ltd. ___ 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] ANNOUNCE: Zope 2.2.4 beta 1 released...
I'm not quite sure wether it's me, my system or this beta, but a fresh installation of 2.2.4 beta 1 says: exceptions.AttributeError ... line 140, in index_html (Object: zope_button.jpg) AttributeError: _p_mtime Actually, none of the images in p_ is accessible Thanks - that is fixed for final. Let me know if you see anything else... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
[Zope] Pseudo E-Mail Address validation
Hi all, For a subscription tool of a mailing list I'd like to quick-check the e-mail address our users type. Is there a little product/method etc. available that does this? I know that you can only be sure whether an e-mail address exists or not, when you actually send a mail to the user, but a quick-n-dirty check would be nice. Maybe even complete RFC-compliancy as implemented in some Perl-Modules? (spaces, "@" sign, dot-notation etc.) Hoping for an answer, 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] XML-RPC
A number of folks have asked me about ming-0.0.4 and Zwiff. I have just uploaded a new Zwiff that uses ming-0.0.4+ (there is actually a full ming distribution this time with all the patches needed to work with Zwiff.) Let me know how it goes! http://www.zope.org/Members/sspickle/Zwiff -steve ___ 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] Date
Does someone knows how to calculate the date after 6 months of a certain date? eg ZopeTime() + 6 months? Is there an easy formula for this? Or do I've to check myself for a new year, leap year Tom. ___ 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] Search and replace
On Tue, 21 Nov 2000, Lee Hunter wrote: On the other hand I actually *like* the Zope management interface - in fact, so far I've found it to be very easy to understand and a total pleasure to use. It just doesn't offer some things that I must have - features that would probably be hard to incorporate into a browser interface. what about a plug-in, written in {Java | TclTk | whatever_language}? I don't have skills to do this but I think this could be done. just an idea! []s Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 ___ 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] External Method
If you are talking about dtml you can pass them in the dtml-call tag dtml-call "my_external_method(_.None, _, param_1=1, param_2=2)" -- Andy McKay, Developer. ActiveState. - Original Message - From: "Kini Natekar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 2:12 AM Subject: [Zope] External Method Hi, How can I pass parameters to an External Method? I know of one way to do this, is to use dtml-var tag. Is there any other way? Thanks, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.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 ) ___ 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] Pseudo E-Mail Address validation
At 11/21/00 04:27 PM, Martin Winkler wrote: For a subscription tool of a mailing list I'd like to quick-check the e-mail address our users type. As a check on whether an email address *looks* OK, I use the following External Method. If ICANN really approves TLDs that are other than 2 or 3 characters long then the {2,3} will have to be changed. Warning: Some mail software between you and me may break up lines in the code. There are two executable lines, one starts with "m =" and the very next line starts with "return". There are no blanks in the r'...' string. import re def wellformedEmail(self, address): """ return true if email address appears to be well formed """ m = re.search(r'^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+[a-z]{2,3}$', address, re.IGNORECASE) return m != None and m.group() == address -- 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] jcNTUserFolder on 2.2.x
API changes in 2.2 (and future developments, like PTK) make custom user folders less attractive than they used to be. If you intend committing some time to this then I recommend something based on http://www.zope.org/Members/tsarna/LoginManager The simplest change would be to transplant the authentication code out of (jc)NTUserFolder and into LoginManager methods. However that would still only run on NT. A custom user folder to me always seems a bad idea, a merging of the two would make the most sense to me. Being totally selfish Im only interested in NT... I'm currently looking for a way around this, if not I might be in touch. Cheers. -- Andy McKay, Developer. ActiveState. ___ 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] You are currently working in version No
I'm just figthing with a somewhat strange and annoying error on one of my production sites. After saving and leaving a version named "neu", I'm now confronted with a system which says "You are currently working in version No " right after I enter a management screen, and before I really enter anything. Well, there is no Object called "No" at all on this site. Trying to start working in version "neu" yields | Another version is active! | You cannot start working in this version while another version, No | is active. Leave No first and then you may work in this version. Clicking "Quit Working in No" doesn't have any effect at all. I'm stuck. Any ideas what to do? How am I assumed to quit working in a version that doesn't exist? Naturally, I don't want to rebuild my whole site from scratch, so I'd like to know what to do about. What makes Zope beleive that it is working in a non existing version? Arrgg. -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] ANNOUNCE: Zope 2.2.4 beta 1 released...
There's a bit of odd behavior, at least in the Windows binary release. Going to any /manage URL brings up a blank page in the workspace ("manage_main") frame. The workspace only appears when you click on something in the navigator ("manage_menu") frame. ___ 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: You are currently working in version No
On 21 Nov 2000, 18:41 [EMAIL PROTECTED] wrote: I'm just figthing with a somewhat strange and annoying error on one of my production sites. After saving and leaving a version named "neu", I'm now confronted with a system which says "You are currently working in version No " right after I enter a management screen, and before I really enter anything. Well, there is no Object called "No" at all on this site. To follow-up on my own posting: I somehow managed to fuddle me out of this mess. After noticing that "version management" told me something about working in "neu", I concluded that it might just become confused about the name, and tried to rename version "neu" to "No". No luck. neu may not be renamed. [OK] [Cancel] Oh well. What about adding a third button labeld "Retry"? :-} Hm, "Ok" seems appropriate here. Nice traceback (see below), but magically, now I'm not working in a version anymore. So I tried to start working in "neu". Works. But now I notice that it is claiming to work in a version "neu" in a _different_ parent folder. Do empty versions remember the name of their parent folders? Why? Anyway, I deleted and recreated the empty version, just to be sure. snip Traceback (innermost last): File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 222, in publish_module File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 187, in publish File F:\zope\ntklotz1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 171, in publish File F:\zope\ntklotz1\lib\python\ZPublisher\mapply.py, line 155, in mapply (Object: manage_renameObjects) File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 117, in missing_name File F:\zope\ntklotz1\lib\python\ZPublisher\HTTPResponse.py, line 551, in badRequestError BadRequest: (see above) -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] You are currently working in version No
Zope figures out what version you are in by saving a cookie. Close your browser and or delete all cookies and go back to Zope, you should then be out of any version. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Wolfgang Strobl" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 9:41 AM Subject: [Zope] You are currently working in version No I'm just figthing with a somewhat strange and annoying error on one of my production sites. After saving and leaving a version named "neu", I'm now confronted with a system which says "You are currently working in version No " right after I enter a management screen, and before I really enter anything. Well, there is no Object called "No" at all on this site. Trying to start working in version "neu" yields | Another version is active! | You cannot start working in this version while another version, No | is active. Leave No first and then you may work in this version. Clicking "Quit Working in No" doesn't have any effect at all. I'm stuck. Any ideas what to do? How am I assumed to quit working in a version that doesn't exist? Naturally, I don't want to rebuild my whole site from scratch, so I'd like to know what to do about. What makes Zope beleive that it is working in a non existing version? Arrgg. -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] You are currently working in version No
On 21 Nov 2000, 9:57 Andy McKay wrote: Zope figures out what version you are in by saving a cookie. Close your browser and or delete all cookies and go back to Zope, you should then be out of any version. Sorry, I forgot to mention that I tried this before asking the list. That's why I called this error "strange". I wasn't aware of any way to start a new "session" in a version, without entering it first. -- o ( [EMAIL PROTECTED] (+49 2241) 14-2394 /\* GMD mbH #include _`\ `_=== Schloss Birlinghoven, std.disclaimer __(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ___ 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] ANNOUNCE: Zope 2.2.4 beta 1 released...
I'm using win98. I applied the 2.2x-2.4 upgrade over my existing zope installation and I'm not having a problem with /manage. Can you give a few more details? -Jimbo ___ 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] ANNOUNCE: Zope 2.2.4 beta 1 released...
I'm using win98 too. I didn't apply 2.2.4 over my existing installation but did a fresh install and I'm running 2.2.4 at port 9673 instead of 8080. I can access both instances, except for the problem that I noted. The problem does go away if only the 2.2.4 instance is running, but in the past I've run two instances of Zope without mutual interference. Chris On Tue, 21 Nov 2000, jimbo wrote: I'm using win98. I applied the 2.2x-2.4 upgrade over my existing zope installation and I'm not having a problem with /manage. Can you give a few more details? -Jimbo ___ 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] expiring dtml documents
this is great! i'll give this - or something similar - a try in the near future. in know that zope has a reputation for less than cohesive documentation, but can someone point me in the direction of some zope api documentation? On Sun, 19 Nov 2000, Cees de Groot wrote: [EMAIL PROTECTED] said: any insight as to how one might code something like that? Document traversal is a simple recursive Python function - with one call to objectValues on a folder you can extract all documents (and iterate over them, check their creation date, remove them if necessary); with a second call to objectValues you get all subfolders and recurse into them. objectValues matches on meta type, which is 'Folder' for a folder, and 'DTML Method' for a DTML method. So you'd get something like: def expire(folder): for i in self.objectItems('DTML Method'): id = i[0]; value = i[1] if value.bobobase_modification_time() """now minus two weeks""": # remove i. Maybe tricky because you're iterating # and removing from a collection. check. folder.manage_delObjects(id) for i in folder.objectValues('Folder'): expire(i) Add this as a Python method (or similar) to the top-level folder where you want to expire, and kicking it off is as simple as a HTTP GET from a cron job (I think there's a job scheduler for Zope as well, should make it even easier). Disclaimer: untested, untested, and I never tried this out. ___ 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 and Websphere
Français ??? How do you convince your boss to get Zope rather than websphere ? I try to convince my client to do it. Didier Rano Arakné - Original Message - From: "Francois-regis Chalaoux" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 10:04 AM Subject: [Zope] Zope and Websphere Hi, I have to convince my new boss to use Zope rather than webspere !! Did somebody compare the two products ?? FRC ___ 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] You are currently working in version No
Wolfgang Strobl wrote: On 21 Nov 2000, 9:57 Andy McKay wrote: Zope figures out what version you are in by saving a cookie. Close your browser and or delete all cookies and go back to Zope, you should then be out of any version. Sorry, I forgot to mention that I tried this before asking the list. That's why I called this error "strange". I wasn't aware of any way to start a new "session" in a version, without entering it first. Do you happen to have an object or property anywhere called "Zope-Version"? If so, remove it. 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 )
[Zope] Re: Zope / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem
Ayhan, **Thank you** Actually, my drivers were compiled against 8.1.6.1 (on Linux) too, and I'm communicating with an Oracle 7.3.3 database (on a separate Solaris box). Could that be part of the problem? I don't think there was an Oracle 7 for Linux. Are there some settings I could change to make my drivers more "Oracle 7 compatible" ? Chris [EMAIL PROTECTED] Ayhan Ergul wrote: Look for a file named 'sqlnet.log' on your system. If Oracle is the culprit, this file can help you understand what its problem is. Your database may be rock solid but it may not be true for your drivers. Last time I compiled, I used latest ZOracleDA with latest DCOracle (not the one that came with ZOracleDA) and the whole thing has been solid for months. Ayhan PS: I'm not sending my drivers since they were compiled against Oracle 8.1.6.1 ___ 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] Support for PHP?
Hi; I'm reading *the book* and it appears that Zope supports Perl and Python but *not* PHP :(( Well, I'm learning Python and I have a limited but working knowledge of PHP: I really *don't* want to have to learn Perl because, although there's lots of stuff out there written in Perl, PHP (IMHO) is better suited for the Internet than Perl. (I don't mean to offend any Perl officionados out there.) So... Is there, or will there be support for PHP? Will I be able to somehow cobble an interface between Zope and my PHP programs? Also (without getting too far OT) can I do pretty much anything I can do in PHP in Python? TIA, BenO ___ 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] random object with properties
I'm trying to find/write a method that will choose a random image from a folder (easy, using the random how-to) But I also want to display the caption for the image, which is a property of that image. This method: dtml-var expr="_.whrandom.choice(objectValues('Photo'))" dtml-if captiondtml-var caption/dtml-if presents me with a random photo, but no caption. At one point, I had it pulling out a random photo and a random caption, but I need the associated caption. What am I missing here? Kevin -- --- Kevin Worth [EMAIL PROTECTED] Computer Systems Specialist II and Adjunct Lecturer Department of Materials Science and Engineering University of Michigan ___ 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] You are currently working in version No
At 18:41 21.11.2000, Wolfgang Strobl wrote: After saving and leaving a version named "neu", I'm now confronted with a system which says "You are currently working in version No " right after I enter a management screen, and before I really enter anything. It seems to me that the cookie set for leaving a version as buggy content. Quitting your browser and eventually deleting your cookies that are used with your website should change things back to normal. Maybe a developer could do a search'n'replace in this part of Zope from "No" to "''" (or whatever the "no-version"-cookie is)? ;- 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] Support for PHP?
There is a post about using PHP with Zope. http://www.zope.org/Members/Mamey/PHP But what is the point? Ben Ocean wrote: Hi; I'm reading *the book* and it appears that Zope supports Perl and Python but *not* PHP :(( Well, I'm learning Python and I have a limited but working knowledge of PHP: I really *don't* want to have to learn Perl because, although there's lots of stuff out there written in Perl, PHP (IMHO) is better suited for the Internet than Perl. (I don't mean to offend any Perl officionados out there.) So... Is there, or will there be support for PHP? Will I be able to somehow cobble an interface between Zope and my PHP programs? Also (without getting too far OT) can I do pretty much anything I can do in PHP in Python? TIA, BenO ___ 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] random object with properties
You have to actually get the image to display its caption (untested) dtml-with expr="_.whrandom.choice(objectValues('Photo'))" dtml-var sequence-item dtml-if captiondtml-var caption/dtml-if /dtml-var -- Andy McKay, Developer. ActiveState. - Original Message - From: "Kevin Worth" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 11:57 AM Subject: [Zope] random object with properties I'm trying to find/write a method that will choose a random image from a folder (easy, using the random how-to) But I also want to display the caption for the image, which is a property of that image. This method: dtml-var expr="_.whrandom.choice(objectValues('Photo'))" dtml-if captiondtml-var caption/dtml-if presents me with a random photo, but no caption. At one point, I had it pulling out a random photo and a random caption, but I need the associated caption. What am I missing here? Kevin -- --- Kevin Worth [EMAIL PROTECTED] Computer Systems Specialist II and Adjunct Lecturer Department of Materials Science and Engineering University of Michigan ___ 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] random object with properties
[Kevin Worth] | dtml-var expr="_.whrandom.choice(objectValues('Photo'))" | dtml-if captiondtml-var caption/dtml-if [,..] | What am I missing here? Maybe this will work: dtml-let random_image="_.whrandom.choice(objectValues('Photo'))" dtml-var random_image dtml-if captiondtml-var caption/dtml-if /dtml-let HTH. -Morten ___ 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] Support for PHP?
This was discussed about a month ago. check the archive. conclusion was that you can do anything with dtml that php does, though with perhaps a little bit more indirection. ciao! greg. Gregory Haley Venaca.com Hi; I'm reading *the book* and it appears that Zope supports Perl and Python but *not* PHP :(( Well, I'm learning Python and I have a limited but working knowledge of PHP: I really *don't* want to have to learn Perl because, although there's lots of stuff out there written in Perl, PHP (IMHO) is better suited for the Internet than Perl. (I don't mean to offend any Perl officionados out there.) So... Is there, or will there be support for PHP? Will I be able to somehow cobble an interface between Zope and my PHP programs? Also (without getting too far OT) can I do pretty much anything I can do in PHP in Python? TIA, BenO ___ 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] random object with properties
Duh what am I saying sequence-item... yep you need a let as per Morten. Too many dtml-in's... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Kevin Worth" [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 12:14 PM Subject: Re: [Zope] random object with properties You have to actually get the image to display its caption (untested) dtml-with expr="_.whrandom.choice(objectValues('Photo'))" dtml-var sequence-item dtml-if captiondtml-var caption/dtml-if /dtml-var -- Andy McKay, Developer. ActiveState. - Original Message - From: "Kevin Worth" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 21, 2000 11:57 AM Subject: [Zope] random object with properties I'm trying to find/write a method that will choose a random image from a folder (easy, using the random how-to) But I also want to display the caption for the image, which is a property of that image. This method: dtml-var expr="_.whrandom.choice(objectValues('Photo'))" dtml-if captiondtml-var caption/dtml-if presents me with a random photo, but no caption. At one point, I had it pulling out a random photo and a random caption, but I need the associated caption. What am I missing here? Kevin -- --- Kevin Worth [EMAIL PROTECTED] Computer Systems Specialist II and Adjunct Lecturer Department of Materials Science and Engineering University of Michigan ___ 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 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] zope 2.24b1 upgrade on win98 crashing. errno 9?
I'm not sure what I've done to my system. The upgrade went fine at first so I think it might be something I've done since this morning. I just deleted some product folders I had been working on. Searching thru records seems mysql adapter might be the problem. I deleted the mysql folders and still can't start my Zope. At this point I should start work on mastering Zope debugging. What would be the easiest and quickest way to get my zope restarted without much damage? Here is the error message. IOError: [Errno 9] Bad file descriptor ___ 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] SAP Database Adapter available?
since the SAP Database has been release on Linux as GPLed Engine (http://www.sapdb.org), is there a compatible adapter for Zope ? Nope, but I'm working on it. You'll hear it here first. Daniel ___ 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] random object with properties
Hmm.. How about something like: dtml-let random_image="_.whrandom.choice(objectValues('Photo'))" dtml-var random_image dtml-if "_.hasattr(random_image,'caption')"dtml-var "random_image.caption"/dtml-if /dtml-let -steve ___ 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: tag for knowing how many have logged under the same URL (present time)
jacintha menezes writes: Kindly let me know how can we find out how many have logged (present time)into zope under the same URl.If there is an dtml-tag for this kindly give me that. Obviously, you do not know yet how logging in works: HTTP is a stateless protocol. There is not such concept "currently being logged in". Zope does not know, who is or how many are currently "logged in". Instead, Zopes sees a sequence of requests, all independent from one another (from Zope's point of view). Some requests contain authentication information. You probably tend to say, that these requests are requests from logged in users. However, the authentication information is maintained by the browser. Zope has not information whatsoever about when the browser drops the authentication information (user logs off), e.g. because the browser is terminated. It therefore cannot tell, who currently is logged in. There is a cookie based authentication. For this form, there usually is a session/user record for logged in users on the server. The cookie identifies the associated session/user record. Again, Zope does not know, when the browser drops the cookie (user logs off), but it can force log off with an inactivity timeout. When the user does not access Zope for a specific time, it deletes the session/user record. When the cookie still exists, the next request using this record will require a new log in. With this authentication form, you can *estimate* the number of logged in users by counting the current session/user records. 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] Re: Version Lock/save/discard Problem
We have had the same problem with "saving" Versions on zope 2.2.2 + ZEO. Our ZSS servers are on linux and our Zope Clients are on NT (don't ask). I have all ZSS and ZCS on NT but I isolated the possible zeo's related problem running my Data.fs on a standalone zope and the problems persisted. The only solution that worked for us so far is to repeatedly modify the locked object and re-save the version. If it doesn't work at first try again after a few hours. Eventually (after a dozen or so tries) it seems to sort itself out. We haven't seen documents become folders yet, but most of the work was done in ZClasses. I solved the problem with some packs to the Database. In no understandable way after one of the packs the discard and save worked okay. In one of the packs I got this output: ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\000\000\000\010kQ','myversion') ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\000\000\000\000\000\010]\250','myversion') Its obviously there was something wrong with myversion object, but only after some more packs the save/discard worked okay. But I quit versions because the locking of a folder when you add objects is not a good feature of versions, specially if the one locked is root, means you just loose the possibility of changing your online "version" of your site like adding new objects, and changing locked ones. I know this versionlock happened with CatalogAware objects from experience with zope 2.1.6 but for instance the locking of a document even for a change out of the version is something never happened in 2.1.6. I'm just seeing this in 222, maybe this is a result of those objects being in a locked folder. Best Regards, Júlio Silva _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.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] security problems .. should be fairly easy...
Bowyer, Alex writes: I can't find any examples in any of the Zope documentation about how to manage permissions for class methods. Does anyone know where I could find such documentation or examples if there are any? Did you look at the upcoming Zope book? 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 )
Re: [Zope] ZClass/DTML Document transparency
Randall Kern writes: In the case of DTML Documents, the following works fine: dtml-var sequence-item In the case of ZClasses, I have to use something like this: dtml-with sequence-item dtml-var index_html /dtml-with But this is rather ugly, and it's the sort of thing one shouldn't have = to do in an oo system. I understand you, but in all "oo" systems, you can avoid this only if both objects have the same method. In Zope, DTML objects have a "__call__" method which is called automatically. ZInstances do not have a "__call__" method. What suggests to you, that these too should be unified is the fact, that ZPublisher does it. If an object has a "__call__", it is used; if not, "index_html" is called, if it exists. You may look at the mixin "ZCallable". I do not know what it does but the name suggests, it might perhaps help you. 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 )
Re: [Zope] External Method
Kini Natekar writes: How can I pass parameters to an External Method? I know of one way to do this, is to use dtml-var tag. Is there any other way? Anywhere, you can use 'expr=""'. This means almost all DTML tags: call, var, in, with, let (without 'expr='!) ... Example: dtml-call "your_method(param1, param2, )" 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 )
Re: [Zope] random object with properties
Kevin Worth writes: I'm trying to find/write a method that will choose a random image from a folder (easy, using the random how-to) But I also want to display the caption for the image, which is a property of that image. This method: dtml-var expr="_.whrandom.choice(objectValues('Photo'))" dtml-if captiondtml-var caption/dtml-if presents me with a random photo, but no caption. dtml-let photo="_.whrandom.choice(objectValues('Photo'))" dtml-var photo dtml-with photo dtml-if caption/dtml-if /dtml-with 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 )
Re: [Zope] Date
Tom Deprez writes: Does someone knows how to calculate the date after 6 months of a certain date? eg ZopeTime() + 6 months? Is there an easy formula for this? Or do I've to check myself for a new year, leap year When I would need it (and did not find a better method), I would use (in an external method): 1. convert to a Python time tuple 2. add 6 to the month component (creating a new tuple) 3. convert back to a DateTime object. It might be necessary to normalize the time tuple before 3. with an "time.localtime(time.mktime(tup))". 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 )
Re: [Zope] expiring dtml documents
wade naveja writes: this is great! i'll give this - or something similar - a try in the near future. in know that zope has a reputation for less than cohesive documentation, but can someone point me in the direction of some zope api documentation? The ZQR (Zope Quick Reference; search on zope.org or zdp.zope.org) or press the help button in your Zope 2.2.2 management screens. 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 )
Re: [Zope] RE: Problems using M18 (and others too!)
On Tuesday 21 November 2000 20:04, Harris Peter wrote: Andreas Tille wrote: I just gived Mozilla M18 a try and noticed that Back Button of the browser doesn't work in zopüe management screen. Netscape 4.75 (and Konqueror doesn't seem to work well with zope either - I sometimes get repeated password prompts, and the management screens don't come up at all - I just see the index_html document instead of the folder contents. I get the same bother with w3m, but not with IE or lynx. If all that's wrong with mozilla is the back button, I'll maybe give it a try. Peter Harris Yeh, I've tried a bunch of browsers over the time I've been using Zope, because Netscape leaks memory (when you have JavaScript enabled and use textareas hmm... why would Zope cause problems? :). Of the Linux versions, I find the following problems : (this is not an extensive list, but the problems make the browser sufficiently difficult to use) Amaya - no real Frames support Opera - some odd problem with forms in frames won't allow you to adjust edit box sizes (for DTML Methods/Documents) Konqueror - seems forgetful of passwords I have used a couple of others (which I can't recall just now) and they still didn't make the grade. so, unfortunately, I'm stuck with Netscape. I'm using 6.0, which seems only a little more bloaty, and a little less responsive, that 4.75. With JavaScript disabled, it doesn't seem to leak memory (I've not been game to try with it enabled, yet :) I know this is often considered an evil thought, but I'd really like IE on my Linux box, or at least something of equal quality. Curtis Maloney ___ 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] Having troubles starting Zope.
smime.p7m
Re: [Zope] Having troubles starting Zope.
It sounds like the .deb of Zope (or the hotfix) you have is misconfigured in some way... I think the Debian Zope maintainer is Gregor Hoffleit... I'd imagine he'd be interested in a bug report. But in the meantime, I'd suggest using the Zope source distribution to install... it's actually not too hard. 1. make sure you have Python installed as well as the Python "development libraries" (might be easiest to install Python from source too here, but probably not required) 2. download the latest Zope source tgz 3. ungzip and untar it as a regular user in a directory somewhere you like 4. run "python w_pcgi.py" in the directory (pay attention to the password it gives you for the superuser) 5. wait for it to compile (report any errors you come up with in this step to the list) 6. type "./start" 7. fire up a browser and point it at port 8080 8. log in as superuser and create a management account 9. close the browser 10. open the browser again and log in as the management user. 11. have fun. Dany Rioux wrote: Hi listers, Until this afternoon, I was using zope (more like trying to use it) and everything was ok. I had some problems with the .deb SiteAccess but I fixed it by getting the real thing from zope.org and it worked. I added the latest Hotfix because it's a good thing to have. Then I restarted Zope but it never went back up again. The box is Linux debian woody with Zope 2.2.2 When I try to start it up, that's the message I get: -PASTE--- drioux:/etc/init.d# ./zope start Starting Zope...Traceback (innermost last): File "/usr/sbin/zope-z2", line 535, in ? except: CLIENT_HOME = os.path.join(INSTANCE_HOME, 'var') NameError: INSTANCE_HOME failed. -/PASTE-- I went to check the line seeming to cause this and there's a comment about ZEO: -PASTE--- # CLIENT_HOME allows ZEO clients to easily keep distinct pid and # log files. This is currently an *experimental* feature, as I expect # that increasing ZEO deployment will cause bigger changes to the # way that z2.py works fairly soon. try:CLIENT_HOME = os.environ['CLIENT_HOME'] except: CLIENT_HOME = os.path.join(INSTANCE_HOME, 'var') -/PASTE-- I remember seeing something about ZEO on zope.org but I don't remember if it was an update or whatelse but AFAIK I didn't installed and/or I don't use a ZEO client. Now, I'm a total Zope newbie. Ok maybe not total but I'm a basic newbie and I wonder if the Hotfix fixed too much... I tried to move the Hotfix directory elsewhere but that didn't change a thing. Anyone can offer help or maybe it's already been discussed. I looked at the list's past 2 months but came up empty. TIA Dany ---.oo0O--O0oo. Dany Rioux UnderSoft Business: www.dating-reviews.com [EMAIL PROTECTED] Pers: www.drioux.com [EMAIL PROTECTED] ---.o00O---O00o.--- -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___ 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 / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem
Dieter, thank you. Unfortunately, if what you meant was to remove the -DDCOracle8 flag from the end of my Setup file and recompile, that didn't do it. Zope is still crashing and restarting on perhaps one out of every 100 requests. It seems to be more common when it hasn't been accessed in awhile, do you think it could be some kind of cache issue? It doesn't seem to happen when a database access isn't involved. Back to the drawing board.. Thank you for your help, though.. Chris [EMAIL PROTECTED] Dieter Maurer wrote: Chris Beaumont writes: I am using the most recent versions of (Linux) DCOracle and ZOracleDA to connect my Zope (2.1.6) installation to a copy of Oracle 7.3.3 running on another (Solaris) machine Basically, Zope is occasionally crashing when an SQL query is made. Compilation tips, or a stable combination of ZOracleDA/DCOracle that I can use... You may try to compile DCOracle without the "-DCOracle8" (or similar) option. Our problems disappeared after we did this (even though, we connected to Oracle 8.1.6). 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] External Methods
Hi, I have got a html form which accepts an input from the user. This input has to be passed to a Python script, as a parameter, which is added as an external method in zope. Is there any way to do this ? Regards, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.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 )
[Zope] is it possible to see whether any user is using a perticular zope object
hello , I am subrahmanyan. I am using zope for my project. Now I would like to know is it possible to know if any body is using the zope object. I mean , if one user is running one DTML method , Iwant to know that one user is using that object. Is there any DTML tag for that. thanks. bye yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] )
Re: [Zope] Search and replace
Daniel Rusch wrote: I have been following this thread with mild amusement. Those of you who don't think that there is any need for a search and replace are being, at the least, disingenuous. Have you never needed to replace a dtml var that is on a hundred or more pages with another one, but replace it only on some of the pages??? The lack of a search and replace, a find that actually "finds" a string on a page (instead of just the page) and other standard editor features are the reasons why Zope is being phased out of this companies (15,000 person worldwide company, the worlds largest web hosting and fiber optic network) web tool set. Don't get me wrong, I think Zope is the greatest thing since sliced bread. But, if Zope is to become anything other than a bastion for open source zealots (myself included), a real editor is a necessity not a nicety! Zope had the opportunity to sweep this company ( it could have ended up on hundreds if not thousands of servers) but the lack of a professional interface doomed it. DR Sadly this is a constraint of zope ide's being browser based (or based on current browsers). I would eagerly like to help out with a project that would like to see this changed. Building such an interface with gnome or kde would be possible, indeed there are already efforts underway to do both. But to create a cross-platform solution really needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead, hopefully developer interest can be generated in reviving it after ActiveState releases the python bindings to XPCOM (which should be soon). kapil Lee Hunter wrote: Martin Winkler wrote I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there I had understood that Python and Zope excelled at string manipulation. That's why I am surprised that it would be difficult to scan a folder full of documents to find a word and replace it with another (with the option of ignoring anything in pointed brackets). I'm not a programmer so I probably don't appreciate the complexities of the task, however in this case it seems like the object-oriented database is a hindrance rather than a help. If it was just a batch of html files I could search and replace through them with just about any piece of software on my desktop. I wouldn't know whether this is the sort of tool that is generally useful, but in my work I use search and replace all the time (if only to fix my endless confusion over 'its' and 'it's') Cheers Lee Hunter Hum Communications Ltd. ___ 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 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 )