Re: [Zope-dev] Interface localization: zzLocale 0-0-4a release
On Wed, 22 Nov 2000 12:37:04 -0800 Michel Pelletier [EMAIL PROTECTED] wrote: Can we see a screenshot of what the Zope managment interface looks like in Japanese? (just a personal curiousity) Sure. It's pretty small, so I'll throw in some french too as a bonus. Here is the URL: http://www.zope.ne.jp/users/yemartin/zzLocale/images Cheers, -- Yves-Eric Martin Digital Garage Inc. [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] LoginManager / Membership / ZODB as UserSource
Has somebody been able to setup this combination as for today? I guess this is an easy one for the LM experienced... I am looking for a completely ZODB based solution concerning membership, no rdbms. tia, CU+Prost, .oO( "Du könntest mal einen bauen" ) Danny ___ 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] how to get the created table names
hi, I would like to know the names of the created table in zsql method. Kindly give me the tag for displaying the table names.( if exists.) thanks bye yours, K.H.Subrahmanyan ( [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] [SybDA]Connection : how does it work ?
Hello, I am running Zope 2.1.6 under Linux/RH6.2 on a PC. The Sybase server is version 11.9.2 on a Solaris station with DNS name "sybstat" on port 2040 (or sybase server name "sybtest") and the database is named "picsou". When I try filling in the form to add a new Sybase DA connection, the result is always: Invalid connection string. I have try with this parameters : 1-database: picsou, password: mypasswd, server: sybstat, user: myuser 2-database: picsou, password: mypasswd, server: sybstat:2040, user: myuser But this give the same answer ... On Linux, I have the libraries, include files and all running client for Sybase and I can run isql from my PC on the Sybase server on the solaris station very well using the parameters of the (2-) set. So the connection to the Sybase server seems to work ... How could I check what happens inside Zope, or am I mistaken for the parameters values ? Thanks for any help. Tony ___ 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] images last-modified bug?
Hi, I read sometime ago of a bug in zope not sending images header last-modified, which cause browsers to always get images from zope not using the browser's cache. I'm seeing some different behaviour in my site statistics since I upgrade from 216 to 222, and I think it could be related with this image problem. I search in HISTORY.txt but I cant find nothing saying If the bug really existed and if it was fixed. Any help? Best Regards, Júlio Dinis 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] Newbie Question
I'm probably just being dumb... :) PASTE-- dtml-var standard_html_header p dtml-with News dtml-in objectValues /dtml-in /dtml-with /p dtml-var standard_html_footer /PASTE-- This doesn't work. Nothing gets printed. In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work? I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime. TIA Dany -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy McKay Sent: Thursday, November 23, 2000 7:00 PM To: Chris Withers Cc: Dany Rioux; Zope Mailing List Subject: Re: [Zope] Newbie Question Or even: dtml-in "objectValues(['File'])" if this news thing is a file ;-P Or even: dtml-in objectValues ;-) Chris Andy McKay wrote: dtml-in "objectValues()" -- From: "Dany Rioux" [EMAIL PROTECTED] Hi everyone, Simple newbie question... :) I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001. What I want to do is to tell zope to put each file into a document. Now, here is what I figured out. dtml-with News dtml-in ??? --- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. /dtml-in /dtml-with How do I do that? TIA Dany ___ 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 get the created table names
There isn't a SQL standard command to show the tables in the database. Thus evry database has a different command to do such job. For example: DBMaker: to show TABLES: select * from SYSTABLE to show COLUMNS: SELECT COLUMN_NAME,TYPE_NAME,PRECISION FROM SYSCOLUMN WHERE TABLE_NAME='table_name' MySQL: to show TABLES: SHOW TABLES to show COLUMNS: DESC table_name PostreSQL: to show TABLES: select tablename from pg_tables where tablename not like 'pg_%' to show COLUMNS: SELECT a.attname, t.typname, CASE WHEN a.attlen 0 THEN attlen ELSE a.atttypmod END as length FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname = 'table_name' AND a.attnum 0 AND a.attrelid = c.oid AND a.atttypid = t.oid I wrote a couple of ZSQL Methods to emulate a generic ISQL to query a database using the SQL language which shows the names of every table in the database and every column name, type and length of every table. If you want I can send you it. José subrahmanyan kalathur wrote: hi, I would like to know the names of the created table in zsql method. Kindly give me the tag for displaying the table names.( if exists.) thanks bye yours, K.H.Subrahmanyan ( [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 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 Question
I'm probably just being dumb... :) PASTE-- dtml-var standard_html_header p dtml-with News dtml-in objectValues dtml-var "_['sequence-item']" /dtml-in /dtml-with /p dtml-var standard_html_footer this should work out for you. cu Philipp ___ 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] seeking zope success stories in higher education
Hi, We are planning to choose a platform to build a portal for distance learning, with which we want to Build and Serve online multimedia courses, online exams, calendars, keep track of students work and results, forums, etc... I've got a list of criterias the platform must fill to be chosen, and at first glance Zope fills at least 90% of them, and probably more if I look more closely at the Zope products already available. This is a big project, and some people have already done some work using WebCT. I've read in the zope-edu wicki the comment on WebCT, I already know that many people (at least 35) are interested byt his subject because they are referenced as contributors in this wicki, so I naively conclude I'm right in thinking that Zope is the good choice for us. So I have to write a document explaining the pros (and cons) of choosing Zope, and I want some references of Zope uses in higher education if possible. Please could someone send me any testimonial on the (successful or not, and why) use of Zope in higher education, the products which might help us (we will at least need SquishDot, the LDAP adapter, the Oracle adapter, the KnowledgeBase product, etc...). I'm also interested in testimonials about the use of WebCT or similar products. Thank you very much. PS: As always this is urgent :-( Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Fac de Medecine de Nicehttp://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE ___ 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 Question
Dany: These should work: dtml-in objectIds dtml-var "_['sequence-item']" /dtml-in -or- dtml-in objectValues dtml-var sequence-item /dtml-in -or- dtml-in objectValues dtml-var some_attribute_of_the_sequence-item /dtml-in --Jim Washington Dany Rioux wrote: I'm probably just being dumb... :) PASTE-- dtml-var standard_html_header p dtml-with News dtml-in objectValues /dtml-in /dtml-with /p dtml-var standard_html_footer /PASTE-- This doesn't work. Nothing gets printed. In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work? I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime. ___ 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] How to checkout PythonMethod from CVS
How can I checkout PythonMethod from cvs? I tried to modify the "Zope2" in the following command: cvs -z7 -d :pserver:[EMAIL PROTECTED]:/cvs-repository checkout Zope2 (Zope2/PythonMethod, Zope/PythonMethod, Zope/DC/PythonMethod, Zope/Products/PythonMethod and countless other combinations) -- Milos Prudek ___ 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] images last-modified bug?
On Fri, 24 Nov 2000, Júlio Dinis Silva wrote: I read sometime ago of a bug in zope not sending images header last-modified, which cause browsers to always get images from zope not using the browser's cache. I'm seeing some different behaviour in my site statistics since I upgrade from 216 to 222, and I think it could be related with this image problem. I search in HISTORY.txt but I cant find nothing saying If the bug really existed and if it was fixed. http://classic.zope.org:8080/Collector/1737/view its fixed for 2.2.4, sadly no patch for 2.2.2 afaik :( Stefan ___ 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] seeking zope success stories in higher education
might be a start: http://www.zope.org/Members/Kemalus/make_zope_decision Stefan ___ 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 Question Fixed but continuing.
Thanks Philipp and Jim, It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't. deleted questions because it's fixed :) /deleted Now this too is fixed. I just discovered the "sort=" thingie. One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a dtml-var or dtml-in and params for each subtag. Because as someone mentioned, searching on zope is a real hassle. It takes a long time, and the search is ORed. So lots of unrelated docs are counted as a hit. Thanks a lot to all the helpers. Dany -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Philipp Dunkel Sent: Friday, November 24, 2000 5:00 PM To: Zope Mailing List Subject: Re: [Zope] Newbie Question I'm probably just being dumb... :) PASTE-- dtml-var standard_html_header p dtml-with News dtml-in objectValues dtml-var "_['sequence-item']" /dtml-in /dtml-with /p dtml-var standard_html_footer this should work out for you. cu Philipp ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DC request re: Objection to Python Script Name
Ron Bickers wrote: On Thu, 23 Nov 2000, Chris Withers wrote: To Hamish, the other Chris, and anyone else who's going to jump in on this. To be quite blunt, this has now been _decided_ as I understand it. So it's pointless to keep arguing and suggesting new and different names. We now _have_ a president and it's name is 'Python Script' ;-) With all due respect to everyone, this should not be considered a closed issue. It is. This is the kind of thing where it is impossible to make 100% of the participants happy, we regret that not everyone is going to go for it, but we *must* move forward. This issue is holding up Python Scripts, which is holding up the book, which is intimately tied to Zope 2.3, all of which is intimiately tied to my paycheck. My paycheck doesn't really have anything to do with it but I just thought I'd mention it. ;) My understanding is that there would be a vote for a name. We could not afford any further delay, and the last poll was a disaster. The author of Python Scripts (the majority of which were written before he worked at DC) rightly asserted his position and picked a name. I'm sure it wasn't easy for him, and there was lots of internal conflict; many in the company not liking 'Script' for many of the same reasons you do. Skipping that in the name of getting things moving after it was offered by Digital Creations seems to go against the open source nature of the product. That is tying a strong semantic relation between "open source" and "democratic". In my mind, the open source nature is that anyone can examine, author and contribute code to a project for peer review and inclusion. Evan did just that, he wrote most of what used to be called Python Methods before he worked at DC and contributed it freely under the open source mantra. I don't think voting has much to do with open source, it has worked for us (with the documentation poll) and failed for us (with what used to be called Python Methods) but we'll probably try it again. Not to mention that the name chosen does nothing to distinguish it from an everyday Python "script" outside of Zope, which is what sparked the name change to begin with. "It's not really a Python method, so let's change the name." Well, it's not just a "Python Script" either. It's Zopified. Just to clarify, in the Python language, there is no such thing as a "script". What you are thinking of as a "script" is really some hunk of data (probably a file) containing python code that contains either some platform specific hook to invoke the interpreter, or that you pass to the interpreter on the platform specific "command line". Neither of these things have anything to do with the language called Python. Once inside the interpreter, you are officially working with "modules". "Modules" and "methods" are real, defined, un-ambiguous Python objects defined in the Language Reference (http://www.python.org/doc/current/ref/ref.html). Obviously, naming a Zope object "module" or "method" would be a bad idea, and therein lies the problem. "Script" is just un-bound, non-python specific, vague lingo that everybody uses to describe a chunk of code in just about any language, on any platform. In this case, the platform is Zope, the chunk of code is written in Python, and the "command line" is your web browser. I can sympathize with your feelings, but one of the reasons I don't like "Method" is because it's is OO specific; it is a very technical term. "ZMethod" is no better, even if it doesn't have the problem of clashing names with a python object (and barely not clashing at that!). We want to make using Zope easier. For the target audience we want to approach, if 1000 people pull down the add list and see "Python ZMethod" many more of them are going to scratch their heads about what the hell a ZMethod is than if they see "Python Script". "Oh, a python script? Cool! I've written some CGI scripts! Now I can go and read chapter six of the book 'Scripting Zope' and find out how to 'script the web'!" -Michel ___ 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] how to display contents of a folder?
Hi I would like to display contnent of a zope folder on my HTML-page preferrebly only the DTML Documents of a particular folder, how can I do it? Thank you very much in advance Andrei ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Objection to Python Script Name
Jason Cunliffe wrote: 2. Fixes the OReilly book in some sensible manner - add highly legible note on Page 1, update the index in useful manner to catch the differences. Oh I'll be doing that one, no worries there. 3. Will explain to me 100% clearly what difference there is now between a regular Python script and a 'Python Script' in Zope? There is no such thing as a "script" in the Python language (see the index of the "language reference" on the python site, you will find "method" and "module" but not "script"). "Script" is just a word that is informally and commonly used to refer to a chunk of code written in some language on some platform that is invoked by some action, possibly from a "command line" or by double clicking on an icon. In the case of a Zope Python Script, the code is written in python, the platform is Zope, and the "command line" is your web browser. -Michel ___ 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 checkout PythonMethod from CVS
Hi, Milos Prudek wrote: How can I checkout PythonMethod from cvs? I tried to modify the "Zope2" in the following command: cvs -z7 -d :pserver:[EMAIL PROTECTED]:/cvs-repository checkout Zope2 (Zope2/PythonMethod, Zope/PythonMethod, Zope/DC/PythonMethod, Zope/Products/PythonMethod and countless other combinations) Products/DC/PythonMethod at the moment, i don't know if the new name will result in a new directory. Ciao, Jochen -- -- Jochen Knuth WebMaster http://www.ipro.de IPRO GmbH Phone ++49-7152-93330 Steinbeisstr. 6 Fax ++49-7152-933340 71229 LeonbergEMail: [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] how to display contents of a folder?
Hi Andrei, You can try: dtml-with MyFolder dtml-in "objectValues('DTML Document')" stuff /dtml-in /dtml-with Good luck! Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 -Message d'origine- De : Andrei Belitski [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 24 novembre 2000 09:16 À : [EMAIL PROTECTED] Objet : [Zope] how to display contents of a folder? Hi I would like to display contnent of a zope folder on my HTML-page preferrebly only the DTML Documents of a particular folder, how can I do it? Thank you very much in advance Andrei ___ 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] Problem with 2.2.4b1
I installed 2.2.4b1 over 2.2.3, and everything seems to work fine, but, when I IE5.5 to manage my sites, I loose some icons and graphics (not all!). But, if I clear my cache, The icons reappears, but only for a while! Am I the only only experiencing this problem? Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 ___ 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] Best wishes
Dear PoPy and ZPoPyDA users, last days, a lots of stuff happened here at MIXAD LIVE. the most important to you is that source code for the programs is not in our cvs server anymore and the home page was moved to the official Zope site[1]. To make it short, thierry and eric decided to not work for MIXAD LIVE anymore. so, what will change for you PoPy users? hopefully nothing... we'll continue to submit patches (we are using the product a lot) and to host the mailing list (unless they wants to move it away.) i will personally keep on packaging PoPy and ZPoPyDA for the Debian distribution. we also want to transfer to thierry the copyright of all the work done by us on the programs, to give him total freedom. i think PoPy and ZPoPyDA will grow better and better in the future. what can i say more? maybe "good luck" to them and "keep on hacking"... federico [1] http://www.zope.org/Members/tm/ZPoPyDA -- Federico Di Gregorio MIXAD LIVE Chief of Research Technology [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] Qu'est ce que la folie? Juste un sentiment de liberté si fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra ___ 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] ZPyGreSQLDA on Tru64?
Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken and yields the following trace: ZPyGreSQLDA Import Traceback Traceback (most recent call last): File "/local/src/Zope-2.2.2-src/lib/python/OFS/Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/local/zope/lib/python/Products/ZPyGreSQLDA/__init__.py", line 89, in ? import sys, os, Globals, DA File "/local/zope/lib/python/Products/ZPyGreSQLDA/DA.py", line 91, in ? from db import DB File "/local/zope/lib/python/Products/ZPyGreSQLDA/db.py", line 89, in ? import _pg, regex, sys, types ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so but : wallis:/local/zope ls -l /usr/local/lib/python2.0/site-packages/_pgmodule.so -r-xr-xr-x 1 root system 65536 Nov 24 15:50 /usr/local/lib/python2.0/site-packages/_pgmodule.so Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] System Platform: osf1V4 Process ID: 9128 (5381388672) Running for: 1 min 52 sec ___ 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] Still have error importing DemoPortal.zexp with PTK 0.9.2
"Andrews, Martin" [EMAIL PROTECTED] I am trying to install PPT 0.9.2. After installing PythonMethod from CVS I am still getting an error when trying to import DemoPortal.zexp. Any clues? Zope Error Zope has encountered an error while publishing this resource. Error Type: SystemError Error Value: Failed to import class AnObject from module Products.PythonMethod.PythonMethod First, let me apologize -- I introduced the dependency on Evan's PythonMethod product (which is excellent!) without really intending to do so, and without documenting it. Second, the product you need is not the unreleased CVS version (which will be part of Zope 2.3, and which will be called "Python Scripts"), but the released, 0.17 version, which can be found at: http://www.zope.org/Members/4am/PythonMethod Third, this PTK has its own mailing list, '[EMAIL PROTECTED]'. You are *much* more likely to get helpful responses there for PTK-related questions than here (I often don't have time to read the main list, for instance). The PTK homepage has details on the list (signing up, archives, etc.): http://www.zope.org/Products/PTK Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" 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] Newbie Question Fixed but continuing.
Dany Rioux wrote: Thanks Philipp and Jim, It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't. deleted questions because it's fixed :) /deleted Now this too is fixed. I just discovered the "sort=" thingie. One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a dtml-var or dtml-in and params for each subtag. http://www.zope.org/Members/michel/ZB/AppendixA.html This DTML reference is also included in the Online Help System with Zope 2.4b1 and beyond. -Michel ___ 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] Problem with 2.2.4b1
Yes it happens for me too and it comes and goes as you describe. Also I've noticed it in Mozilla as well as IE5.5. Chris On Fri, 24 Nov 2000 [EMAIL PROTECTED] wrote: I installed 2.2.4b1 over 2.2.3, and everything seems to work fine, but, when I IE5.5 to manage my sites, I loose some icons and graphics (not all!). But, if I clear my cache, The icons reappears, but only for a while! Am I the only only experiencing this problem? Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 ___ 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] Newbie Question Fixed but continuing.
Thanks! That's exactly what I was looking for. I know that the DTML reference is there on Zope.org but it's a hassle and well, I'll keep my other opinions for myself. Anyway. Here's an idea. Shouldn't there be a list FAQ? If there is one it should be sent when subscribing. Or it could be requested. I'm pretty sure most of the questions I sent have already been sent answered more than once already and I know some that most other FAQs use one. So, why not zope general list? It *is* possible, though unlikely, that there is a list FAQ mentionned in the "Welcome to Zope mailing list" email but if there is, my apologies. Thanks. Dany -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michel Pelletier Sent: Friday, November 24, 2000 12:17 PM To: Dany Rioux Cc: Zope Mailing List Subject: Re: [Zope] Newbie Question Fixed but continuing. Dany Rioux wrote: Thanks Philipp and Jim, It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't. deleted questions because it's fixed :) /deleted Now this too is fixed. I just discovered the "sort=" thingie. One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a dtml-var or dtml-in and params for each subtag. http://www.zope.org/Members/michel/ZB/AppendixA.html This DTML reference is also included in the Online Help System with Zope 2.4b1 and beyond. ___ 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] Best wishes
I made a (small) patch to PoPy so that it supports the numeric type. Here it is: $ diff PoPymodule.c.org PoPymodule.c 393a394,396 /* 20.11.2000 by Perry */ case PG_NUMERIC: /* 20.11.2000 by Perry */ $ diff PoPymodule.h.org PoPymodule.h 78a79,81 /* 20.11.2000 by Perry */ #define PG_NUMERIC NUMERICOID /* 20.11.2000 by Perry */ where can we communicate these changes ? On Fri, 24 Nov 2000, Federico Di Gregorio wrote: Dear PoPy and ZPoPyDA users, last days, a lots of stuff happened here at MIXAD LIVE. the most important to you is that source code for the programs is not in our cvs server anymore and the home page was moved to the official Zope site[1]. To make it short, thierry and eric decided to not work for MIXAD LIVE anymore. so, what will change for you PoPy users? hopefully nothing... we'll continue to submit patches (we are using the product a lot) and to host the mailing list (unless they wants to move it away.) i will personally keep on packaging PoPy and ZPoPyDA for the Debian distribution. we also want to transfer to thierry the copyright of all the work done by us on the programs, to give him total freedom. i think PoPy and ZPoPyDA will grow better and better in the future. what can i say more? maybe "good luck" to them and "keep on hacking"... 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 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] Special behavior or bug?
Hi, yeah, I know, it's me again :) I've got this snippet in the standard_html_header hoping it would display the title of the calling document but instead displays the index_html's title... Is this the normal behavior? I know yesterday it was working... I tried refreshing the page but it's a no go. It simply refuses to put the correct title. It doesn't even put the header's file title... (something I guessed it would do the first time I tried it) Any opinion on that? ---PASTE--- tr td align="right"H2dtml-var title/H2/td /tr ---/PASTE--- ---.oo0O--O0oo. Dany Rioux UnderSoft Inc. Business www.dating-reviews.com [EMAIL PROTECTED] Personal www.drioux.com [EMAIL PROTECTED] ---.o00O---O00o.--- BEGIN:VCARD VERSION:2.1 N:Rioux;Dany;;M FN:Dany Rioux ORG:UnderSoft Inc. TITLE:President TEL;WORK;VOICE:(506) 753-7515 ADR;WORK:;;78B Roseberry St;Campbellton;NB;E3N 2G7;Canada LABEL;WORK;ENCODING=QUOTED-PRINTABLE:78B Roseberry St=0D=0ACampbellton, NB E3N 2G7=0D=0ACanada X-WAB-GENDER:2 BDAY:20010710 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] REV:20001122T152751Z END:VCARD
Re: [Zope] Special behavior or bug?
Make sure that the standard_html_header is a DTML Method and not a DTML Document. Make sure that the calling document is DTML Document and not a DTML Method and it should work. That way the header acquires the title of the calling document. If the calling document is a DTML Method, it acquires it's title from somewhere else according to the Zope rules of acquisition (as opposed to the Ferengi rules of acquisition ;). Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Hi, yeah, I know, it's me again :) I've got this snippet in the standard_html_header hoping it would display the title of the calling document but instead displays the index_html's title... Is this the normal behavior? I know yesterday it was working... I tried refreshing the page but it's a no go. It simply refuses to put the correct title. It doesn't even put the header's file title... (something I guessed it would do the first time I tried it) Any opinion on that? ---PASTE--- tr td align="right"H2dtml-var title/H2/td /tr ---/PASTE--- ---.oo0O--O0oo. Dany RiouxUnderSoft Inc. Business www.dating-reviews.com [EMAIL PROTECTED] Personal www.drioux.com [EMAIL PROTECTED] ---.o00O---O00o.--- ___ 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 get the created table names
Hmm.. I think there is a method of a ZSQL result object called 'names'.. Here is a snippet from some working code: dtml-let specificTypes="getTypes(ttid=type, name='', tttype='')" theNames="specificTypes.names()" where 'getTypes' is a ZSQL Method and theNames is the list of column names returned from the query... -steve "Jose" == Jose Soares [EMAIL PROTECTED] writes: Jose There isn't a SQL standard command to show the tables in the Jose database. Thus evry database has a different command to do Jose such job. For example: Jose DBMaker: to show TABLES: select * from SYSTABLE to show Jose COLUMNS: SELECT COLUMN_NAME,TYPE_NAME,PRECISION FROM Jose SYSCOLUMN WHERE TABLE_NAME='table_name' MySQL: to show Jose TABLES: SHOW TABLES to show COLUMNS: DESC table_name Jose PostreSQL: to show TABLES: select tablename from pg_tables Jose where tablename not like 'pg_%' to show COLUMNS: SELECT Jose a.attname, t.typname, CASE WHEN a.attlen 0 THEN attlen Jose ELSE a.atttypmod END as length FROM pg_class c, pg_attribute Jose a, pg_type t WHERE c.relname = 'table_name' AND a.attnum Jose 0 AND a.attrelid = c.oid AND a.atttypid = t.oid Jose I wrote a couple of ZSQL Methods to emulate a generic ISQL Jose to query a database using the SQL language which shows the Jose names of every table in the database and every column name, Jose type and length of every table. If you want I can send you Jose it. Jose José Jose subrahmanyan kalathur wrote: hi, I would like to know the names of the created table in zsql method. Kindly give me the tag for displaying the table names.( if exists.) thanks bye yours, K.H.Subrahmanyan ( [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 ) Jose ___ Zope Jose maillist - [EMAIL PROTECTED] Jose http://lists.zope.org/mailman/listinfo/zope ** No cross Jose posts or HTML encoding! ** (Related lists - Jose http://lists.zope.org/mailman/listinfo/zope-announce Jose 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 with Microsoft Access
Hrm... I've tried what you said, but it still fails to work... Is there a Zope guru out there who is willing to look over this code in it entirety (ie the DTML and the ZSQL Method) and work with me directly to try to get this working? Thanks, Mike [EMAIL PROTECTED] - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Mike Kelland" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 23, 2000 3:56 PM Subject: Re: [Zope] Zope with Microsoft Access Here's a fix. Change the line: dtml-call UpdateHours(REQUEST) to: dtml-call "UpdateHours(myval=_['myval'], mykey=_['mykey'], sequence_item=_['sequence-item'])" and change the name of the parameter in your ZSQL method from sequence-item to sequence_item and change the dtml-var tag in the method to dtml-var sequence_item. Cheers, Chris On Wed, 22 Nov 2000, Mike Kelland wrote: What does dtml-var "0/0" actually do? Looks like all it would do is divide by zero which *has* to be some kind of error. The problem, I think, lies mainly in the arguments being passed to UpdateHours. I have done a whole slew of tests to show that my if statement works perfectly (the _.string.find thing seems to return false if it finds the specified sub string which is odd, but works) and I've actually outputted the correct SQL in the DTML (ie displayed it within the page) and I've copied and pasted that SQL directly into a ZSQL Method and ran it on my database and that works fine. However it seems to do absolutly nothing when I actually attempt to run everything together and call UpdateHours from the DTML document. I've played a little with namespace as well, but as I said, I'm new to all this so there may be an error there. Thanks for everyone's insight so far, it's really helpful, and please keep those suggestions coming! : ) Mike Kelland [EMAIL PROTECTED] - Original Message - From: "[EMAIL PROTECTED]" [EMAIL PROTECTED] To: "Mike Kelland" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 8:48 PM Subject: Re: [Zope] Zope with Microsoft Access You may not be entering UpdateHours. Try dtml-var "0/0" just before the call to UpdateHours. Or some other obvious way to know if your entering it. Here's how I coded the same kind of thing. Although I'm reading the Zope book right now to see how I should have done it. The book is good and I might just learn a better solution than 0/0 :) --- Part of addContact form action="insertNewContactForm" method="get" table trtdName:/tdtdinput type="text" name="name" /td/tr trtdTitle:/tdtdinput type="text" name="title"/td/tr trtdPhone:/tdtdinput type="text" name="phone"/td/tr /table tabletr tdinput type="submit" name="cmd" value="Insert"/td tdinput type="submit" name="cmd" value="Update"/td tdinput type="submit" name="cmd" value="Delete"/td tdinput type="submit" name="cmd" value="Clear"/td /tr/table /form ---insertNewContactForm dtml-if expr="_.len(name) 0" dtml-if expr="cmd=='Insert'" dtml-var insertNewContact dtml-elif expr="cmd=='Delete'" dtml-call deleteWhere dtml-elif expr="cmd=='Update'" dtml-call updateWhere dtml-elif expr="cmd=='Clear'" /dtml-if /dtml-if dtml-var "RESPONSE.redirect('addContact')" --Darrell ___ 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 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] Special behavior or bug?
Chris, I can't change all the other DTML Methods to DTML Docs... I would have to have only 1 DTML Method which is unthinkable. Now, I'm sure there's a way to force what I want to do. Either with a REQUEST.set('[calling_document.Title]') or something real :) Is there such a function? (I'm sorry, I'm still confused on how to call things in Zope.) As for the Ferengi rules of acquisition, at least, I'm pretty sure I'd get some profits :) haha But, unfortunately, my ears are not as erogenous as the Ferengies. :) Dany Make sure that the standard_html_header is a DTML Method and not a DTML Document. Make sure that the calling document is DTML Document and not a DTML Method and it should work. That way the header acquires the title of the calling document. If the calling document is a DTML Method, it acquires it's title from somewhere else according to the Zope rules of acquisition (as opposed to the Ferengi rules of acquisition ;). Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Hi, yeah, I know, it's me again :) I've got this snippet in the standard_html_header hoping it would display the title of the calling document but instead displays the index_html's title... Is this the normal behavior? I know yesterday it was working... I tried refreshing the page but it's a no go. It simply refuses to put the correct title. It doesn't even put the header's file title... (something I guessed it would do the first time I tried it) Any opinion on that? ---PASTE--- tr td align="right"H2dtml-var title/H2/td /tr ---/PASTE--- ___ 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] Problem with 2.2.4b1
[EMAIL PROTECTED] writes: I installed 2.2.4b1 over 2.2.3, and everything seems to work fine, but, when I IE5.5 to manage my sites, I loose some icons and graphics (not all!). But, if I clear my cache, The icons reappears, but only for a while! Am I the only only experiencing this problem? I found this problem and sent the following patch to the Collector. *** ImageFile.py2000/11/24 05:16:42 1.1 --- ImageFile.py2000/11/24 05:27:59 *** *** 137,146 try:mod_since=long(DateTime(header).timeTime()) except: mod_since=None if mod_since is not None: ! if self._p_mtime: ! last_mod = long(self._p_mtime) ! else: ! last_mod = long(0) if last_mod 0 and last_mod = mod_since: RESPONSE.setStatus(304) return '' --- 137,143 try:mod_since=long(DateTime(header).timeTime()) except: mod_since=None if mod_since is not None: ! last_mod = long(getattr(self, '_p_mtime', 0)) if last_mod 0 and last_mod = mod_since: RESPONSE.setStatus(304) return '' --- 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] DC request re: Objection to Python Script Name
When I 'jumped in' (nod to Chris Withers :-)) with my promotion of ZMethod, I'd missed Evan's announcement that he'd decided on Python Script - I thought it was just another suggestion and we were still in the middle of campaigning for the upcoming second poll! I'm actually not that averse to Script; it was ZMethod's OO associations that I liked - but if Michel thinks that such an association is actually not appropriate in this situation, then I'll bow to his greater Zope understanding. I agree with him that the new name needs to make it into the book, and Script is a reasonable choice. Is it intended to rename DTML Method, ZSQL Method, etc to be DTML Script, SQL Script, etc? For the sake of consistency I'm hoping so, and I think it's important that these revisions also make it into the book. Onwards! Hamish Lawson Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope with Microsoft Access
Hi, this is my first posting to the list, and about my 4th day working with Zope. I have a bit of a problem. All my code so far is working well. Just the following section is defying my attempts to make it run. What it does is to update a field in the database (to allow employees to quickly update their hours in the hours tracking thing I'm creating) it's complex since all the employees hours will be listed on one page and will be instantly updatable (with a select box that allows the choice of +/- (name is modifydtml-var hoursID and value is either + hours already input or - hours already input) and a text field for entering hours to add or subtract (name is mod_hoursdtml-var hoursID)). The code (in the DTML document) is: dtml-in "REQUEST.form.items()" dtml-if "_.string.find(_['sequence-key'], 'mod_hours')" dtml-else dtml-let mykey=sequence-key myval=sequence-item dtml-in "REQUEST.form.items()" dtml-if "_.string.find(_['sequence-key'], 'modify')" dtml-else dtml-if "_['sequence-key'][6:9] == mykey[9:12]" dtml-if myval dtml-call UpdateHours(REQUEST) /dtml-if /dtml-if /dtml-if /dtml-in /dtml-let /dtml-if /dtml-in and the SQL method UpdateHours is: update emp_hours set hours = dtml-var expr="_['sequence-item']" dtml-var expr="_['myval']" where hoursID = dtml-var expr="_['mykey'][9:12]"; with arguments: sequence-item, myval, mykey I've tried everything I can think of but it not only refuses to do anything, it also refuses to raise an error. If anyone can help out I'd be very grateful. This seems to be more of a DTML problem than an Access problem. It is hard to follow anyway... A few questions: have you tried using something like changing the form names to using the name.item:records syntax. something like input type="checkbox" name="modify.dtml-var hoursID:records" value="+" input type="checkbox" name="modify.dtml-var hoursID:records" value="-" input type="hidden" name="modify.inputhrs:records" value="hours already input" and a text field for entering hours to add or input type= "text" name="modify.mod_hours:records" value="dtml-var hoursID" this will give your dtml method a dictionary like structure called modify you can loop over. Starting from there will save you a whole lot of hacking. Also I'm not at all sure that you can use the [sequenct-key] as arguments for your SQL Method. On the records and types in forms see: http://www.zope.org/Members/Zen/howto/FormVariableTypes hth Rik ___ 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] ZCatalog and Zsearch Interface.
Hi, I need to know how does the search works. The index of Catalog is made based in a pythonMethod that returns an concatenated text with the contents of a lot of fields I made an external method in python that do the search and sort the entire result. It´s an priorized sort, that i need to priorize the keywords, so the results that have the searched text in the keywords list will be showed first. I made the sort by dividing the resuilts in two secondaries lists, one that contains the results with searched text in the keywords and the another that does not. finaly I return the two lists concatenated. I need to know if there is a better way to do the priorized search in many fields and if the solution that I made will "destroy" the server´s memory and/or cpu. If possible, i want to know how the ZsearchInterface works internally.. Thanks.. Srinath M. ___ 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 with Microsoft Access
I actually have this up and running now (as of about 5 minutes ago). It's a hack but it works great so I'm not going to mess with it. Thanks a lot to everyone who gave me pointers, most especially Chris Gray whose solution fixed it in the end. Now I need a way of implementing Apache style authentication. Is there an easy way to do this? Thanks! Mike [EMAIL PROTECTED] - Original Message - From: "Rik Hoekstra" [EMAIL PROTECTED] To: "Mike Kelland" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 24, 2000 12:21 PM Subject: Re: [Zope] Zope with Microsoft Access Hi, this is my first posting to the list, and about my 4th day working with Zope. I have a bit of a problem. All my code so far is working well. Just the following section is defying my attempts to make it run. What it does is to update a field in the database (to allow employees to quickly update their hours in the hours tracking thing I'm creating) it's complex since all the employees hours will be listed on one page and will be instantly updatable (with a select box that allows the choice of +/- (name is modifydtml-var hoursID and value is either + hours already input or - hours already input) and a text field for entering hours to add or subtract (name is mod_hoursdtml-var hoursID)). The code (in the DTML document) is: dtml-in "REQUEST.form.items()" dtml-if "_.string.find(_['sequence-key'], 'mod_hours')" dtml-else dtml-let mykey=sequence-key myval=sequence-item dtml-in "REQUEST.form.items()" dtml-if "_.string.find(_['sequence-key'], 'modify')" dtml-else dtml-if "_['sequence-key'][6:9] == mykey[9:12]" dtml-if myval dtml-call UpdateHours(REQUEST) /dtml-if /dtml-if /dtml-if /dtml-in /dtml-let /dtml-if /dtml-in and the SQL method UpdateHours is: update emp_hours set hours = dtml-var expr="_['sequence-item']" dtml-var expr="_['myval']" where hoursID = dtml-var expr="_['mykey'][9:12]"; with arguments: sequence-item, myval, mykey I've tried everything I can think of but it not only refuses to do anything, it also refuses to raise an error. If anyone can help out I'd be very grateful. This seems to be more of a DTML problem than an Access problem. It is hard to follow anyway... A few questions: have you tried using something like changing the form names to using the name.item:records syntax. something like input type="checkbox" name="modify.dtml-var hoursID:records" value="+" input type="checkbox" name="modify.dtml-var hoursID:records" value="-" input type="hidden" name="modify.inputhrs:records" value="hours already input" and a text field for entering hours to add or input type= "text" name="modify.mod_hours:records" value="dtml-var hoursID" this will give your dtml method a dictionary like structure called modify you can loop over. Starting from there will save you a whole lot of hacking. Also I'm not at all sure that you can use the [sequenct-key] as arguments for your SQL Method. On the records and types in forms see: http://www.zope.org/Members/Zen/howto/FormVariableTypes hth Rik ___ 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: [Support] [SybDA]Connection : how does it work ?
Tony, I'd suggest sending this question to the main Zope list ([EMAIL PROTECTED])... the [EMAIL PROTECTED] email address is used for paid support customers. You'll also likely get a better response from the list as well. Thanks! - Chris On Fri, 24 Nov 2000 11:39:13 +0100 Tony Moutaux [EMAIL PROTECTED] wrote: Hello, I am running Zope 2.1.6 under Linux/RH6.2 on a PC. The Sybase server is version 11.9.2 on a Solaris station with DNS name "sybstat" on port 2040 (or sybase server name "sybtest") and the database is named "picsou". When I try filling in the form to add a new Sybase DA connection, the result is always: Invalid connection string. I have try with this parameters : 1-database: picsou, password: mypasswd, server: sybstat, user: myuser 2-database: picsou, password: mypasswd, server: sybstat:2040, user: myuser But this give the same answer ... On Linux, I have the libraries, include files and all running client for Sybase and I can run isql from my PC on the Sybase server on the solaris station very well using the parameters of the (2-) set. So the connection to the Sybase server seems to work ... How could I check what happens inside Zope, or am I mistaken for the parameters values ? Thanks for any help. Tony ___ 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] view DTML source
Hello zopistas, On the zope.org there is a 'method' called view_source, which lets you see the DTML source of a page. I 'borrowed' this code, by using view_source on itself and got this: !--#var standard_html_header-- pre !--#var "document_src(REQUEST,RESPONSE)" html_quote-- /pre !--#call "RESPONSE.setHeader('content-type','text/html')"-- !--#var standard_html_footer-- I then created a DMTL-document called 'view_source' with this content. But when I run, using http://swescout.myip.org/index_html/view_source it I get this traceback: Traceback (innermost last): File D:\SweScout\lib\python\ZPublisher\Publish.py, line 222, in publish_module File D:\SweScout\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\SweScout\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: index_html) File D:\SweScout\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\SweScout\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: view_source) File D:\SweScout\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: view_source) File D:\SweScout\lib\python\OFS\DTMLDocument.py, line 177, in __call__ (Object: view_source) File D:\SweScout\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: view_source) File D:\SweScout\lib\python\OFS\DTMLMethod.py, line 168, in __call__ (Object: standard_html_header) File D:\SweScout\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: standard_html_header) AttributeError: __call__ This is my data: Zope version: Zope 2.2.2 (binary release, python 1.5.2, win32-x86) Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] System Platform: win32 Anyone that know why I get this error and how I fix it? -- Best regards, Anders mailto:[EMAIL PROTECTED] Science is everything we understand well enough to explain to a computer. Art is everything else. - David Knuth ___ 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] How to retain applications and data during RPM update?
Is the method same as described in ZOPE-INSTALL-HOWTO? 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] Newbie Question
dtml-with myFolder dtml-in "objectValues(['DTML Document',])" dtml-var "_['sequence-item']" /dtml-in /dtml-with Dany Rioux wrote: I'm probably just being dumb... :) PASTE-- dtml-var standard_html_header p dtml-with News dtml-in objectValues /dtml-in /dtml-with /p dtml-var standard_html_footer /PASTE-- This doesn't work. Nothing gets printed. In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work? I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime. TIA Dany -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy McKay Sent: Thursday, November 23, 2000 7:00 PM To: Chris Withers Cc: Dany Rioux; Zope Mailing List Subject: Re: [Zope] Newbie Question Or even: dtml-in "objectValues(['File'])" if this news thing is a file ;-P Or even: dtml-in objectValues ;-) Chris Andy McKay wrote: dtml-in "objectValues()" -- From: "Dany Rioux" [EMAIL PROTECTED] Hi everyone, Simple newbie question... :) I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001. What I want to do is to tell zope to put each file into a document. Now, here is what I figured out. dtml-with News dtml-in ??? --- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. /dtml-in /dtml-with How do I do that? TIA Dany ___ 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] how to get the created table names
There is no tag that shows tables and there will be not be such tag. What you might want to look into ; ZnolkWizard.. This is a handy module which queries for tables in your database and build create/edit/delete forms. There is also a handy way to specify key-related data. This gets you half way to build UIs when you have many tables. Good luck. Jose Soares wrote: There isn't a SQL standard command to show the tables in the database. Thus evry database has a different command to do such job. For example: DBMaker: to show TABLES: select * from SYSTABLE to show COLUMNS: SELECT COLUMN_NAME,TYPE_NAME,PRECISION FROM SYSCOLUMN WHERE TABLE_NAME='table_name' MySQL: to show TABLES: SHOW TABLES to show COLUMNS: DESC table_name PostreSQL: to show TABLES: select tablename from pg_tables where tablename not like 'pg_%' to show COLUMNS: SELECT a.attname, t.typname, CASE WHEN a.attlen 0 THEN attlen ELSE a.atttypmod END as length FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname = 'table_name' AND a.attnum 0 AND a.attrelid = c.oid AND a.atttypid = t.oid I wrote a couple of ZSQL Methods to emulate a generic ISQL to query a database using the SQL language which shows the names of every table in the database and every column name, type and length of every table. If you want I can send you it. José subrahmanyan kalathur wrote: hi, I would like to know the names of the created table in zsql method. Kindly give me the tag for displaying the table names.( if exists.) thanks bye yours, K.H.Subrahmanyan ( [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 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] Thank you DC
Ive just noticed that in Zope 2.2.4, the location of the object underneath the manage_tabs has had those annoying spaces removed so its now /docs/ActivePython instead of / docs/ ActivePython. That means I can cut and paste it. Yeah!!! Thanks DC. ___ 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: is it possible to see whether any user is using a perticular zope object
subrahmanyan kalathur writes: which RDBMS will u suggest. MySQL or Postgres and for that what are the changes need to be done for my zope. Install the RDBMS and the corresponding Zope database adapter. Replace your Zope Gadfly connection(s) by corresponding Zope XXX connection(s). Maybe, you need small adjustments to your SQL. and where can I get that. You know archives and search engines? give the links please. Am I your consultant? I do not think so. It would take me as long as you to find the links (in the searchable archive of this list and/or via search engines). 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] Objection to Python Script Name
Michel Pelletier wrote: Jason Cunliffe wrote: 2. Fixes the OReilly book in some sensible manner - add highly legible note on Page 1, update the index in useful manner to catch the differences. Oh I'll be doing that one, no worries there. 3. Will explain to me 100% clearly what difference there is now between a regular Python script and a 'Python Script' in Zope? There is no such thing as a "script" in the Python language (see the index of the "language reference" on the python site, you will find "method" and "module" but not "script"). "Script" is just a word that is informally and commonly used to refer to a chunk of code written in some language on some platform that is invoked by some action, possibly from a "command line" or by double clicking on an icon. In the case of a Zope Python Script, the code is written in python, the platform is Zope, and the "command line" is your web browser. Connotatively, scripting rings the same meaning as ASP scripting, ColdFusion scripting, PHP scripting, JSP scripting... How is Python script different from them? But Python script isn't "SCRIPTING" in that sense of the word. -Michel ___ 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] Quota in Zope
Is there a way to do quotas in Zope? _ 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 )
[Zope] Can't get simple count to work.
Hello all, I have a Squishdot site at http://www.linuxmednews.com that I've successfully been able to make a page that has a one line link of all the articles that have appeared on the site. Unfortunately, the number has grown to a few hundred and I need to make it display n lines at a time as well as count them so I can keep track. I am trying to use the following code to display them with a count, but I've tried just about everything and spent hours on this 'simple' task, but can't get it to work. This is as close as I could get only it numbers the articles that appeared on a particular day, then jumps to the next day that articles where posted. i.e. not a smooth 1 to n count. You can see what it does at: http://www.linuxmednews.com/linuxmednews/display_old_articles Could anyone have a look? -- IV dtml-let currtime="ZopeTime()" dtml-in "_.range(1,all_cnt)" dtml-if "date_list(_['sequence-item'])" dtml-let num1="_['sequence-index']" dtml-call "REQUEST.set('article_found',1)" dtml-in "date_list(_['sequence-item'])" BR dtml-var "num1" IMG SRC="dtml-var SCRIPT_NAME /dtml-var icon url_quote" BORDER="0" A href="dtml-var site_url /dtml-var id url_quote/index_html"dtml-var title/Anbsp; dtml-if reply_cnt(dtml-var reply_cnt)/dtml-if by dtml-var authorFONT size=2 on dtml-var date_posted /dtml-in /dtml-let /dtml-if /dtml-in /dtml-let ___ 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] Quota in Zope
A quota of what where? - Original Message - From: "Stephan Goeldi" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 24, 2000 7:50 PM Subject: [Zope] Quota in Zope Is there a way to do quotas in Zope? _ 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 ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Python and EJB (J2EE)
Python and EJB (J2EE) = Searching through comp.lang.python newsgroup archive ([EMAIL PROTECTED]) and the [EMAIL PROTECTED] mailing list, I have not been able to find much about EJB (Enterprise Java Bean) and Python/Zope comparisons. (J2EE is Java Two Enterprise Edition, basically another jargon for any architecture based on EJBs.) I believe this field deserves to be explored a little bit more. If Python is going to be more used in the corporate environment, it has to be made stronger. This message is kind of unorganized, but I would like to have comments/feedback from other people. The following message shows that I am not the only one interested: ruben [EMAIL PROTECTED] 11/08/2000 in comp.lang.python: Coming from a Java background and recently using Python for application development, I have a question. Is there an equivalent to Enterprise JavaBeans in Python? If so, please point me to some resources!!! Similarly Joe Grace [EMAIL PROTECTED] has posted an explanation on J2EE in the Zope mailing list: http://zope.nipltd.com/public/lists/zope-archive.nsf/0dec1f578f18f116802568ab003585d2/86cffddc1a8a73b980256865006d44a2?OpenDocument I am starting to look into Java EJB, and I must say that despite all the hype, it is totally horrible. I can understand the goals of EJB, but I wonder whether something simpler and cleaner might be better. EJBs, especially entity beans, have largely failed and have disappointed many Java developers, or so it seems from the comments I have received from other people. First off: what is an EJB? There are plenty of books out there, there are plenty of websites out there, but you'll probably be hard-pressed to find someone that has actually worked with EJBs. I've never liked the names "Java Beans" and "Enterprise Java Beans". These are marketing names. We need some more generic names. "Java Beans" are an attempt by Sun to implement component programmming. That is, the idea is to have component classes on a single machine (virtual machine in the case of Java) that can be shared/used by different programs. In this sense, "Java Beans" are much like DLLs, Unix shared libraries, Python modules, or Microsoft's COM, ActiveX stuff. "Java Beans" are designed to be shared within one single machine. "Enterprise Java Beans" are much more complex than "Java Beans", and they are aimed at distributed computing: EJBs are designed as classes/components to be shared by multiple machines. In this sense, they are more like CORBA, or Microsoft's DCOM. Therefore: (1) Java Beans --- local components, run on the same machine (2) Enterprise Java Beans --- distributed components, distributed computing, multiple machines, potentially located in different geographic locations. These components often have instance pools running in multiple threads, and often are transactional. - What about Python? Or Zope? Simple distributed computing is not too hard to implement. CGIs in fact are a way of distributed computing. Python does have DCOM (Mark Hammond) and CORBA. But I don't think DCOM/CORBA are the way to go. In Python/Zope world, I guess Fredrik Lundh's XML-RPC is the closest starting point for distributed computing, and eventually for something similar to EJB container. (See http://www.zope.org/Members/Amos/XML-RPC for XML-RPC in Zope and http://www.pythonware.com/products/xmlrpc/ for XML-RPC in Python.) There is also (See SOAP http://static.userland.com/xmlRpcCom/soap/SOAPv11.htm ), which is an extended version of XML-RPC. For more information on XML-RPC, visit http://www.xmlrpc.com/ . Zope can be used as equivalent to EJB container. But Zope is a general webserver with a lot of features that a simple server don't need. - EJBs are there because of a few good reasons: (1) Multi-threaded, workload distribution, instance pooling (2) Security (3) Transactional (4) Managed persistence (for "entity beans" in the EJB jargon) These are all important requirements for the corporate world. Can Python do all these things? The answer right now is no. There is nothing really equivalent to EJB in the Python world. - Security: Python is great for rapid development. The reflection/introspection power of Python is wonderful. I particularly like the absence of the "private" keyword. In C++ and Java, corporate security is implemented at the language level, which makes these language quite annoying, in my opinion. That being said, corporates DO need security mechanisms. If Python were to be used in corporate environment, there MUST be a security interface layer. We don't want any employee to be able to peek into the president's salary, for instance. That is, absolute data hiding at a higher level is necessary. As Java/C++ have shown, data hiding at the language level not only is an illusion, but ties up programmers hands too much. So, it's best to leave the language itself free, and implement the data
[Zope] Passing Variables to a Wizard
HI, Does anybody know how can i pass variables from a product to a Wizard. I mean: I am using the PTK to create my own product however PTK use the Wizard as the default method to add a product, how can i pass variables to a wizard form a python product ? I can pass variables to the edit method using the following: editForm=HTMLFile('dtml/edictoEdit', globals(), typeList = type_list) Where typeList is a global array. But i don't know how can i do the same with a wizard. Thanks -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Quota in Zope
Hmmm, Sounds like disk quota. Homesteading anyone? Andy McKay wrote: A quota of what where? - Original Message - From: "Stephan Goeldi" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 24, 2000 7:50 PM Subject: [Zope] Quota in Zope Is there a way to do quotas in Zope? _ 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 ) ___ 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] BSD 4 installation
I'm trying to build Zope on a BSD server. According to the install.txt I have to run two commands - "python w_pcgi.py" and "./start". I managed to get the first command to run (python w_pcgi.py) after editing my Makefile.pre.in and do.py as per the FAQ.txt. But when I when I run the second command (./start) I get the following error message: media2: {38} % ./start Traceback (innermost last): File "/magma/users/u21/wake/zope/z2.py", line 554, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "/magma/users/u21/wake/zope/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/magma/users/u21/wake/zope/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: No module named ExtensionClass Any ideas as to what I'm doing wrong? TIA 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] Python and EJB (J2EE)
Good topic. I was hoping someone would come around to this. Perhaps, there should be a thread of discussion on this. I dont' know what is there to compare. EJB has been around awhile and J2EE is yet another jargon to throw people off. Here is what we have experienced; 1. Anything that needs to be done on J2EE takes twice as long and of course, costs more. 2. Of "Java" programmers (there are many, 2M strong as a Java wannabe proclaims), only handful of programmers can really do anything. 3. Corporations are still very much enamored with Sun and Java with an idea "Sun is big and we can't go wrong with it. Zope and Python, I am clueless." 4. My close friend specifies Java language and he won't have anything to do with Java application. There is a theory that in Amercia, we make most of our money with hypes as if it is a bad thing when things work. Nevertherless, I think there needs to be a study of point-by-point comparison between EJB and Zope. Don't look at it from Zope/Python POV but from Java the Hut POV. Python folks don't really know what resuable codes and libraries they all have and their developments have been organic. I admit I don't know this for sure. I am being a devil's advocate. Some hot developers throw some stuff and we marvel at them. I think for Zope/Python to become enterprise, it needs to have quite a few things and I like to know if its community is ready for the mundane. Here are some topics; 1. Message queue 2. implementation of protocols such as SOAP, BXXP 3. better documentations for different levels of readership (decision maker, developer, systems architect, etc) 4. promotions, workshops and training 5. learning to play golf and smoke cigar... :-) Hung Jung Lu wrote: Python and EJB (J2EE) = Searching through comp.lang.python newsgroup archive ([EMAIL PROTECTED]) and the [EMAIL PROTECTED] mailing list, I have not been able to find much about EJB (Enterprise Java Bean) and Python/Zope comparisons. (J2EE is Java Two Enterprise Edition, basically another jargon for any architecture based on EJBs.) I believe this field deserves to be explored a little bit more. If Python is going to be more used in the corporate environment, it has to be made stronger. This message is kind of unorganized, but I would like to have comments/feedback from other people. The following message shows that I am not the only one interested: ruben [EMAIL PROTECTED] 11/08/2000 in comp.lang.python: Coming from a Java background and recently using Python for application development, I have a question. Is there an equivalent to Enterprise JavaBeans in Python? If so, please point me to some resources!!! Similarly Joe Grace [EMAIL PROTECTED] has posted an explanation on J2EE in the Zope mailing list: http://zope.nipltd.com/public/lists/zope-archive.nsf/0dec1f578f18f116802568ab003585d2/86cffddc1a8a73b980256865006d44a2?OpenDocument I am starting to look into Java EJB, and I must say that despite all the hype, it is totally horrible. I can understand the goals of EJB, but I wonder whether something simpler and cleaner might be better. EJBs, especially entity beans, have largely failed and have disappointed many Java developers, or so it seems from the comments I have received from other people. First off: what is an EJB? There are plenty of books out there, there are plenty of websites out there, but you'll probably be hard-pressed to find someone that has actually worked with EJBs. I've never liked the names "Java Beans" and "Enterprise Java Beans". These are marketing names. We need some more generic names. "Java Beans" are an attempt by Sun to implement component programmming. That is, the idea is to have component classes on a single machine (virtual machine in the case of Java) that can be shared/used by different programs. In this sense, "Java Beans" are much like DLLs, Unix shared libraries, Python modules, or Microsoft's COM, ActiveX stuff. "Java Beans" are designed to be shared within one single machine. "Enterprise Java Beans" are much more complex than "Java Beans", and they are aimed at distributed computing: EJBs are designed as classes/components to be shared by multiple machines. In this sense, they are more like CORBA, or Microsoft's DCOM. Therefore: (1) Java Beans --- local components, run on the same machine (2) Enterprise Java Beans --- distributed components, distributed computing, multiple machines, potentially located in different geographic locations. These components often have instance pools running in multiple threads, and often are transactional. - What about Python? Or Zope? Simple distributed computing is not too hard to implement. CGIs in fact are a way of distributed computing. Python does have DCOM (Mark Hammond) and CORBA. But I don't think DCOM/CORBA are the way to go. In Python/Zope world, I guess Fredrik Lundh's XML-RPC is the closest starting point for distributed
Re: [Zope] DC request re: Objection to Python Script Name
Quoting Hamish Lawson [EMAIL PROTECTED]: understanding. I agree with him that the new name needs to make it into the book, and Script is a reasonable choice. Is it intended to rename DTML Method, ZSQL Method, etc to be DTML Script, SQL Script, etc? For the sake of consistency I'm hoping so, and I think it's important that these revisions also make it into the book. I agree that this consistency is important, and "before the book" is a good time to disrupt names. Also, what about External Method? External Script? Also, are these going to remain only available in the Python language? If not, that name becomes an issue too. I hope all this naming talk isn't too distracting for DC, but I (and clearly others) think it's important, esp. before the world sees it in print. --- Ron ___ 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] Medusa Monitor
Anderson Ami writes: Anybody knows What is Medusa Monitor ? What it do ? How can I use it ? The Medusa monitor allows you to connect to a running Zope Server and get a Python interpreter in this context. With it, you can (in principle) analyse your Zope system. However, this way of debugging is probably only for experts. There is a document at zope.org (I forgot its name) that says a bit about this "monitor": search for "monitor". 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] ZPyGreSQLDA on Tru64?
Stephane Bortzmeyer writes: ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so I expect, that "_pgmodule.so" needs some other shared object or symbol that is unavailable. Try "import _pg" in an interactive Python interpreter. I remember that in some cases I got a better error message that indicated precisely, what was missing. If it does not, then you may try "ldd _pgmodule.so" to list the shared objects required by "_pg". It will tell you, when there are some missing. I hope, that one of these approaches will reveal what is wrong. Otherwise, it would probably be a missing symbol. But it is quite difficult to detect which one. 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] view DTML source
Anders Eriksson writes: ... view source traceback ... (Object: standard_html_header) AttributeError: __call__ That is very strange as "standard_html_header" does have a "__call__" method. Thus, I can not tell you, why you see this behaviour. However, you may use "document_src" directly in the URL. I.e. you do not need a special DTML method 'view_source". Try something like this: http:/index_html/document_src I know, it would be nicer to use "view_source" but 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] images last-modified bug?
Júlio Dinis Silva writes: I read sometime ago of a bug in zope not sending images header last-modified, which cause browsers to always get images from zope not using the browser's cache This only affects "App.ImageFile" objects. These are image objects that are in the filesystem and not in the ZODB. Usually, they are only used in Zope's management interface, although special applications may use them too. However, most images in Zope are "OFS.Image" objects that do send "Last-Modified" headers. In Zope 2.2.4 (to be released soon), the problem is fixed. The "b1" version has fixed it, too, but a small bug slipped in causing some images to be broken. Today, I saw a patch in the mailing list. 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] ZEO
Anderson Ami writes: I´m trying install the ZEO in my Zope ( Windows NT System ) and when I use this command : python ..\lib\python\ZEO\start.py -p 8800 to start the ZEO I get this : Traceback (innermost last): File "..\lib\python\ZEO\start.py", line 304, in ? if __name__=='__main__': main(sys.argv) File "..\lib\python\ZEO\start.py", line 286, in main signal.signal(signal.SIGHUP, handler) AttributeError: SIGHUP ZEO might not yet be NT ready: When I remember right, NT only implements a small set of the standard POSIX signals (at least, if it does not run in POSIX mode). It might well be, that the signal SIGHUP (hangup) is not implemented, at least that Python does not expect it to be always there. 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] ZopeBook - URL to SQL
Chris Gray writes: The Zope book discusses calling a ZSQL Method via a URL, saying that a request for a URL like: http://localhost:8080/zsql_method/parameter/value "will return a result object", but what I get is the index_html document at the root, although I do get a rendered record with: The ZPublisher works as follows: It traverses the ZODB guided by the components in your URL. It it arrives at the URL's end, it checks whether the reached object is callable (this is the case for all kinds of methods and documents). If it is, the object is called. If it is not, ZPublisher checks, whether the object has (or can acquire) a method "index_html" (this usually is the case). It then calls this method. In your case: ZPublisher will reach the result object (as the Zope book describes). Unless you have wrapped this object into a custom class (aka brain, see "Advanced" tab), this is a "Record" object. A "Record" object is not callable. "index_html" is looked for, found in a folder above and rendered. That's what you see. What can you do? Wrap you results into a custom brain that either defines a "__call__" (that would need to be a Python defined class) or an "index_html" (this may be a non-persistent ZClass). 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: is it possible to run a DTML method without using a browser.
subrahmanyan kalathur writes: what is RPC ? , ZEO, ZODB. how to install it. where to install it. It seems to me that you have to do some homework. A good start would be to read the upcoming Zope book. It will tell you what ZODB and ZEO is, how to install it and where to install it. It may tell you also something about RPC (Remote Procedure Calls), but not enough that you could use it directly. I am sure, you will find the book draft via "zope.org", something like URL:http://www.zope.org/members/michel/ZB (case in members may be wrong). I think, I am quite helpfull. But I expect, that people asking questions are ready to do something (beyond just asking) to find answers for themselves: looking for resources at zope.org, zdp.zope.org, in the Zope book and the list archives, for example. 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] images last-modified bug?
Stefan H. Holek writes: http://classic.zope.org:8080/Collector/1737/view its fixed for 2.2.4, sadly no patch for 2.2.2 afaik :( I have put a partial patch into the collector. It can be applied against 2.2.2. 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] Quota in Zope
Ok. A disk quota of particular person? or folder? or some object? or is Zope itself not fitting in a disk quota? If you can't give us a brief example or more helpful description than this, you arent going to get much help. - Original Message - From: "Stephan Göldi" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Friday, November 24, 2000 1:38 PM Subject: Re: [Zope] Quota in Zope A quota of what where? Disk quota ___ 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] Quota in Zope
- Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 24, 2000 9:57 PM Subject: Re: [Zope] Quota in Zope Ok. A disk quota of particular person? or folder? or some object? or is Zope itself not fitting in a disk quota? If you can't give us a brief example or more helpful description than this, you arent going to get much help. Well... this is a great question!!! That would be very useful!! A folder quota for portal like websites where the company could serve personal webpages to the clients. Great! regards = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!! ___ 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 and EJB (J2EE)
i've been playing around with servlets (tomcat, jserv, orionserver.com) and generally been pretty happy with them. development cycle is a lot slower than zope. i did some prelim work on hooking up jserv to zope but gave up cause the performance generally sucked (jserv is still using apj1.1 which doesn't have persistent connections) and figured there were easier ways to get the two talking besides directly ala distributed protocols or shared backend resource like a rdbms. j2ee is more than just ejbs, its a whole slew of technologies like (jdbc, jndi (directories), jms (messaging), jts (client transactions), jaxl?(xml)...). one advantage of using java for a project thats going to be talking several of these protocols is the fact that there is a standard supported library for it as opposed to python's bazaar style of development and support (not to mention documentation). integration of this stuff in python generally requires evalutation on a per protocol/library basis because in some cases the library just isn't robust enough to handle the work (python's soap support comes to mind). as for component technologies, i really feel this comes out more as a programming paradigm in python rather than a forced technology. as for distributed technologies, while xml-rpc is useful and simple its not useful (IMO) for enterprise programming, its too basic. it requires alot of custom app programming to transfer meaningful exceptions. some protocols/libraries that i would like to see in python would be soap, wddx (bindings for httpsoap), uddi. i've never used com/dcom so i've nothing to say about them. python does have great corba support (omniorb, fnorb) and some is working on integrating zope as a corba system (hopefully they'll write up a howto/ release some code), and pyro can cut it for simple distributed systems. so what would you like to see in a python component container? kapil Hung Jung Lu wrote: Python and EJB (J2EE) = Searching through comp.lang.python newsgroup archive ([EMAIL PROTECTED]) and the [EMAIL PROTECTED] mailing list, I have not been able to find much about EJB (Enterprise Java Bean) and Python/Zope comparisons. (J2EE is Java Two Enterprise Edition, basically another jargon for any architecture based on EJBs.) I believe this field deserves to be explored a little bit more. If Python is going to be more used in the corporate environment, it has to be made stronger. This message is kind of unorganized, but I would like to have comments/feedback from other people. The following message shows that I am not the only one interested: ruben [EMAIL PROTECTED] 11/08/2000 in comp.lang.python: Coming from a Java background and recently using Python for application development, I have a question. Is there an equivalent to Enterprise JavaBeans in Python? If so, please point me to some resources!!! Similarly Joe Grace [EMAIL PROTECTED] has posted an explanation on J2EE in the Zope mailing list: http://zope.nipltd.com/public/lists/zope-archive.nsf/0dec1f578f18f116802568ab003585d2/86cffddc1a8a73b980256865006d44a2?OpenDocument I am starting to look into Java EJB, and I must say that despite all the hype, it is totally horrible. I can understand the goals of EJB, but I wonder whether something simpler and cleaner might be better. EJBs, especially entity beans, have largely failed and have disappointed many Java developers, or so it seems from the comments I have received from other people. First off: what is an EJB? There are plenty of books out there, there are plenty of websites out there, but you'll probably be hard-pressed to find someone that has actually worked with EJBs. I've never liked the names "Java Beans" and "Enterprise Java Beans". These are marketing names. We need some more generic names. "Java Beans" are an attempt by Sun to implement component programmming. That is, the idea is to have component classes on a single machine (virtual machine in the case of Java) that can be shared/used by different programs. In this sense, "Java Beans" are much like DLLs, Unix shared libraries, Python modules, or Microsoft's COM, ActiveX stuff. "Java Beans" are designed to be shared within one single machine. "Enterprise Java Beans" are much more complex than "Java Beans", and they are aimed at distributed computing: EJBs are designed as classes/components to be shared by multiple machines. In this sense, they are more like CORBA, or Microsoft's DCOM. Therefore: (1) Java Beans --- local components, run on the same machine (2) Enterprise Java Beans --- distributed components, distributed computing, multiple machines, potentially located in different geographic locations. These components often have instance pools running in multiple threads, and often are transactional. - What about Python? Or Zope? Simple distributed computing is not too hard to implement. CGIs in fact are a way of distributed
[Zope] Re[2]: [Zope] view DTML source
Hello Dieter, Friday, November 24, 2000, 10:06:22 PM, you wrote: DM Anders Eriksson writes: DM ... view source traceback ... DM (Object: standard_html_header) DM AttributeError: __call__ DM That is very strange as "standard_html_header" does have DM a "__call__" method. DM Thus, I can not tell you, why you see this behaviour. Maybe I have something wrong in my standard_html_header? It's kind of complex (.I have copied it.) I will remove it and try again. DM However, you may use "document_src" directly in the DM URL. I.e. you do not need a special DTML method 'view_source". DM Try something like this: DM http:/index_html/document_src DM I know, it would be nicer to use "view_source" but AFAIU there is two problems with using document_src directly 1) I can't use the html_quote param 2) Anonymously users can't use this on 'standard' Zope. I tried on zope.org but it want me to log in. Using view_source I don't need to do this. This can of cause be me misunderstanding ;-) Thanks for your reply! -- Best regards, Andersmailto:[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] Special behavior or bug?
Sorry, but my understanding (which certainly may be wrong, since I don't fully grasp the ins and outs of this yet) is that the namespace starts with the client object to which the method is bound. The attributes (like title) of the method never get into the namespace. This is part of the design of DTML Methods; they can be bound to a variety of objects while still giving full access to the client's namespace. This is why the trick of calling a DTML Document's title from an embedded DTML header Method works. The effect you want to achieve depends on this distinction between DTML Methods and Documents. Another way to say this is that the distinction between DTML Documents and Methods allows a separation of content and logic. Put your content (including Titles that will be significant to your visitors) in Documents and your logic in Methods. Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Chris, I can't change all the other DTML Methods to DTML Docs... I would have to have only 1 DTML Method which is unthinkable. Now, I'm sure there's a way to force what I want to do. Either with a REQUEST.set('[calling_document.Title]') or something real :) Is there such a function? (I'm sorry, I'm still confused on how to call things in Zope.) As for the Ferengi rules of acquisition, at least, I'm pretty sure I'd get some profits :) haha But, unfortunately, my ears are not as erogenous as the Ferengies. :) Dany Make sure that the standard_html_header is a DTML Method and not a DTML Document. Make sure that the calling document is DTML Document and not a DTML Method and it should work. That way the header acquires the title of the calling document. If the calling document is a DTML Method, it acquires it's title from somewhere else according to the Zope rules of acquisition (as opposed to the Ferengi rules of acquisition ;). Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Hi, yeah, I know, it's me again :) I've got this snippet in the standard_html_header hoping it would display the title of the calling document but instead displays the index_html's title... Is this the normal behavior? I know yesterday it was working... I tried refreshing the page but it's a no go. It simply refuses to put the correct title. It doesn't even put the header's file title... (something I guessed it would do the first time I tried it) Any opinion on that? ---PASTE--- tr td align="right"H2dtml-var title/H2/td /tr ---/PASTE--- ___ 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] ZopeBook - URL to SQL
Dieter, Thanks, you've added a new room to my brain :) Possibly that point should be made in The Book since the discussion of Pluggable Brains comes at the end of the chapter. Cheers, Chris On Fri, 24 Nov 2000, Dieter Maurer wrote: Chris Gray writes: The Zope book discusses calling a ZSQL Method via a URL, saying that a request for a URL like: http://localhost:8080/zsql_method/parameter/value "will return a result object", but what I get is the index_html document at the root, although I do get a rendered record with: The ZPublisher works as follows: It traverses the ZODB guided by the components in your URL. It it arrives at the URL's end, it checks whether the reached object is callable (this is the case for all kinds of methods and documents). If it is, the object is called. If it is not, ZPublisher checks, whether the object has (or can acquire) a method "index_html" (this usually is the case). It then calls this method. In your case: ZPublisher will reach the result object (as the Zope book describes). Unless you have wrapped this object into a custom class (aka brain, see "Advanced" tab), this is a "Record" object. A "Record" object is not callable. "index_html" is looked for, found in a folder above and rendered. That's what you see. What can you do? Wrap you results into a custom brain that either defines a "__call__" (that would need to be a Python defined class) or an "index_html" (this may be a non-persistent ZClass). 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] Special behavior or bug?
Oops! I spoke way too soon. Try dtml-var document_title but you can't use it in a header or it will give you the title of the header. You can use the following code in a header: dtml-in objectValues dtml-if expr="_['id']==_.string.split(URL, '/')[-1]" hrdtml-var expr="this().title"hr /dtml-if /dtml-in although it is a bit indirect and fragile: it will only work if you want the title of DTML Method 'foo' and it is in folder 'bar' and the URL you use to get it ends '/bar/foo', but it works in a header that is somewhere else. You can modify objectValues to expr="bar.objectValues()" but then it won't work in a header called by methods not in 'bar'. Another possible modification is expr="PARENTS[1].objectValues()". Cheers, Chris On Fri, 24 Nov 2000, Chris Gray wrote: Sorry, but my understanding (which certainly may be wrong, since I don't fully grasp the ins and outs of this yet) is that the namespace starts with the client object to which the method is bound. The attributes (like title) of the method never get into the namespace. This is part of the design of DTML Methods; they can be bound to a variety of objects while still giving full access to the client's namespace. This is why the trick of calling a DTML Document's title from an embedded DTML header Method works. The effect you want to achieve depends on this distinction between DTML Methods and Documents. Another way to say this is that the distinction between DTML Documents and Methods allows a separation of content and logic. Put your content (including Titles that will be significant to your visitors) in Documents and your logic in Methods. Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Chris, I can't change all the other DTML Methods to DTML Docs... I would have to have only 1 DTML Method which is unthinkable. Now, I'm sure there's a way to force what I want to do. Either with a REQUEST.set('[calling_document.Title]') or something real :) Is there such a function? (I'm sorry, I'm still confused on how to call things in Zope.) As for the Ferengi rules of acquisition, at least, I'm pretty sure I'd get some profits :) haha But, unfortunately, my ears are not as erogenous as the Ferengies. :) Dany Make sure that the standard_html_header is a DTML Method and not a DTML Document. Make sure that the calling document is DTML Document and not a DTML Method and it should work. That way the header acquires the title of the calling document. If the calling document is a DTML Method, it acquires it's title from somewhere else according to the Zope rules of acquisition (as opposed to the Ferengi rules of acquisition ;). Cheers, Chris On Fri, 24 Nov 2000, Dany Rioux wrote: Hi, yeah, I know, it's me again :) I've got this snippet in the standard_html_header hoping it would display the title of the calling document but instead displays the index_html's title... Is this the normal behavior? I know yesterday it was working... I tried refreshing the page but it's a no go. It simply refuses to put the correct title. It doesn't even put the header's file title... (something I guessed it would do the first time I tried it) Any opinion on that? ---PASTE--- tr td align="right"H2dtml-var title/H2/td /tr ---/PASTE--- ___ 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] Re: Open Source Process (was:DC request re: Objection to Python Script Name)
Quoting Tim Cook [EMAIL PROTECTED]: While you may / may not have a legitimate stand on the name change. This is the wrong 'string to pull'. This is in fact consistent with the open source nature of the product. There comes a time when a decision needs to be made. It gets made by the benevolent dictator, at the time he/she/it decides. It's part of the process. (Yes, I used the contraction properly too!). g I know (even before I read Michel's and Tim's messages), that I've mistakenly used the term open source in my argument. Perhaps I was thinking of the fishbowl process DC has put into place to allow a more open development process and public participation in decisions in general. Sorry for the misuse in this case. I certainly prefer an excellent open source product with bad naming conventions over a closed source product with good ones. I suppose I am most interested in consistent, representative naming. With Michel's explanation of the Python "Method" and generic script, I'm more comfortable with the name. I am, however, interested in what will be done to make ther other "Methods" less intimidating to new users as Michel argued was one reason for using Script. Will we end up with DTML Documents and DTML Scripts, SQL Scripts, etc.? Thank you, DC and Zope community, for a great product. I would use it even if they were called "little bits of Python code." :-) --- Ron ___ 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 )