Re: [Zope] New version of book uploaded
Is there a way to DL the whole book for offline reading? It doesn't wget or curl very well (due to zope playing aquisition games)... An example is one page links to an image: http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png Works in zopenot on Linux's ext2 Ciao! -- Cthulhu for President! (If you're tired of choosing the lesser of two evils.) The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] New version of book uploaded
(this time after several attempts to reload) Michel Pelletier wrote: > Greetings, > > Read this carefully, you may end up with a free, signed copy of the Zope > book. http://www.zope.org/Members/michel/ZB/AppendixA.html return: Returns data The return tag stops executing DTML and returns data. It mirrors the Python return statement. Syntax return tag syntax: Stops execution of DTML and returns a variable or expression. The DTML output is not returned. Usually a return expression is more useful than a return variable. Python Methods largely obsolete this ^^^ ^^ tag. 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] New version of book uploaded
Hi, Jochen Knuth wrote: > and another one: > > http://www.zope.org/Members/michel/ZB/RelationalDatabases.html > sorry, another cache bug. 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] New version of book uploaded
and another one: http://www.zope.org/Members/michel/ZB/RelationalDatabases.html Figure 10-5: The Add form for Z SQL Methods As usual, you must specify an id and title for the ZSQL Method. In addition you need to select a Database Connection to use with this Z SQL Methods. Give this new method the id hire_employee and select the gadfly_database_connection that you created in the last section. Next you can specify arguments to the Z SQL Method. Just like Python Methods, ZSQL Methods can take arguments. Arguments ^ ^ are used to construct SQL statement. In this case your method needs four arguments, the employee id number, the first name, the last name and the employee's salary. Type "emp_id first last salary" into the Arguments field. Don't put a comma between the two arguments. 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] New version of book uploaded
Hi, Michel Pelletier wrote: > Greetings, > > Read this carefully, you may end up with a free, signed copy of the Zope > book. > ... > So without further a-do here's the URL. Have fun! > > http://www.zope.org/Members/michel/ZB/ > > -Michel ok, it's not in the book itself but linked from it (Status): http://www.zope.org/Documentation/new/book.html The book covers Zope 2.3 which has not been released yet. Therefore some things will be a little confusing. The main differences between Zope 2.3 and Zope 2.2 is the lack of Python Methods and Perl Methods in Zope 2.2. You can use External Methods for restricted Python Methods. 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] New version of book uploaded
On Friday 08 December 2000 17:35, Michel Pelletier wrote: > On Fri, 8 Dec 2000, Bak@kedai wrote: > > On Friday 08 December 2000 09:07, Michel Pelletier wrote: > > > Greetings, > > > > > > Read this carefully, you may end up with a free, signed copy of the > > > Zope book. > > > > as ypu said, this whole chapter still uses python methods. > > Actually, the copy of the chapter in your browser cache still uses > Python Methods. The copy on the website does not. All of these you've > pointed out are old news... > > Sorry! if konquorer refreshes right, have a look see http://www.zope.org/Members/michel/ZB/ScriptingZope.html the graphics used for example. (pleeze make this one count!) --8<--- Python Method (Internal) at/hello --8<--- does it count? :) -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine as you woke this morning, and open up your eyes, did you notice the tear stains lining your face were mine.. ___ 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] New version of book uploaded
On Friday 08 December 2000 17:35, you wrote: > On Fri, 8 Dec 2000, Bak@kedai wrote: > > On Friday 08 December 2000 09:07, Michel Pelletier wrote: > > > Greetings, > > > > > > Read this carefully, you may end up with a free, signed copy of the > > > Zope book. > > > > as ypu said, this whole chapter still uses python methods. > > Actually, the copy of the chapter in your browser cache still uses > Python Methods. The copy on the website does not. All of these you've > pointed out are old news... > > Sorry! bugger! kill the cache :) > > -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 ) -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine I will follow you! ..Damage Inc ___ 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] New version of book uploaded
On Fri, 8 Dec 2000, Bak@kedai wrote: > On Friday 08 December 2000 09:07, Michel Pelletier wrote: > > Greetings, > > > > Read this carefully, you may end up with a free, signed copy of the Zope > > book. > > > > as ypu said, this whole chapter still uses python methods. Actually, the copy of the chapter in your browser cache still uses Python Methods. The copy on the website does not. All of these you've pointed out are old news... Sorry! -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] New version of book uploaded
On Friday 08 December 2000 09:07, Michel Pelletier wrote: > Greetings, > > Read this carefully, you may end up with a free, signed copy of the Zope > book. > as ypu said, this whole chapter still uses python methods. not sure whther it's been pointed out or not. sent earlier without the URL. here it is again. do i qualify?:") http://www.zope.org/Members/michel/ZB/ScriptingZope.html ---8<--- Python MethodsYou can use Python, a scripting language, to script Zope objects and perform other tasks. Python methods give you general purpose programming facilities within Zope. Perl MethodsYou can use Perl, a powerful text processing language, to script Zope objects and access Perl libraries. Perl Methods offer similar benefits as Python Methods, but may b ---8<- and .. 8< Zope methods are called from the web or from other methods. Almost any type of method can call any other type of method. You can call a Python Method from a DTML Method, or a built-in method from a Perl Method --8<- there's more.. should i oint all occurrences of python method? http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE! ___ 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] New version of book uploaded
On Friday 08 December 2000 09:07, Michel Pelletier wrote: > Greetings, > > Read this carefully, you may end up with a free, signed copy of the Zope > book. > hee's a shot, don't know whether it's been pointed out or not ---8<-- Python MethodsYou can use Python, a scripting language, to script Zope objects and perform other tasks. Python methods give you general purpose programming facilities within Zope. Perl MethodsYou can use Perl, a powerful text processing language, to script Zope objects and access Perl libraries. Perl Methods offer similar benefits as Python Methods, but may be more appealing for folks who know Perl but not Python, or who want to use Perl libraries for which there are no Python equivalent 8<- -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Just bring it! ___ 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] New version of book uploaded
Hi, Michel Pelletier wrote: > > Greetings, > > Read this carefully, you may end up with a free, signed copy of the Zope > book. Chapter 9: Searching and Categorizing Content Searching Catalogs Searching from Python Here is a Python Method called relevantSectionNews that accepts ^ no parameters. This method queries the news Catalog with the current folder's id: ... Holger ___ 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] New version of book uploaded
Okay, one more to raise my chances ;-) (I really want this book!) First create a new Folder named exhibitTemplate in your Product. This will serve as a template for exhibits. Also in the Product folder create a DTML Method named addForm, and restricted Python Method named add. These methods will create new exhibit instances. Now go back to your Factory and change it so that the Add list name is Zoo Exhibit and the method is addForm. The next paragraph also refers to an "add method" (should probably be an "add script"). Then later, in section "Creating Methods on your ZClass": You can create any kind of Zope object on the Methods view, but generally only Method-like objects (DTML, Python, and Perl Method, for example) are added. Later on this section there are some mentions of "this method" refering to a Python Script, but this is dubious since in this case the Script is really a "method" of the ZClass in the literal OOP meaning. Later in "Using Python Base Classes": ... A Python base class is pretty much the same thing as a collection of unrestricted Python methods. And the last paragraph of the chapter also refers to "restricted Python Methods". I could hunt out all of them, but I'll leave some books for the rest of the world ;-) []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope 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] New version of book uploaded
Okey, so I decided to start by the last chapter (Appendix B) ;-) in lynx, /method hilighted: >From Python Products, External Methods, and PythonMethods can call a DTML Document in the same way as calling a DTML Document from a Python expression in DTML; as shown in the previous example. This paragraph appears twice. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope 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] New version of book uploaded
On Thu, 7 Dec 2000, jimbo wrote: > > I meant to paste this link in the last posting. I had the wrong title. > http://lists.zope.org/pipermail/zope/2000-December/036772.html > > > And when do I get my book? Slow down jimbo I haven't even eaten dinner yet! We got yer submission. > And can I get the likes of Guido, and Jim to sign the book also? Nope, sorry. Amos and I work many thousands of miles away from them. Perhaps if you bring your copy to Python9, you can talk them into signing it. -Michel > Just making sure this thing is on. It is. ___ 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] New version of book uploaded
Just making sure this thing is on. -- Original Message -- From: Michel Pelletier <[EMAIL PROTECTED]> Date: Thu, 7 Dec 2000 17:07:32 -0800 (PST) >Greetings, > >Read this carefully, you may end up with a free, signed copy of the Zope >book. > >That's right, Amos and I have just gotten done adding all kinds of new >stuff to the book, and in particular we made quite a few changed from >"Python Method" to "Python Script". This was a task more subtle than a >simple search and replace, many changes needed to be done. > >Also, sometime really soon, we will be making a 2.3 alpha release. This >will be the first release of Zope that will be "in sync" with the >book. Lots of milestones to reach there. > >So, instead of reading the book over again for the N to the Nth time >in preparation, we have decided to run a fun little contest. > >The *first* person to point out an incorrect usage of the term >"method" when it should be "script" will get a free copy of the Zope >book signed by Amos and myself. If you are the second person to point >out the same error, sorry, you're out of luck, but *keep reading* >because you may find another! For each unique "method" error found in the >book, someone will get a free signed copy! > >And don't just stick to Chapter 8 (although that's probably the best >place to start!) because Python Meth...er Scripts are used all over >the book. > >To keep everything fair, you must report your findings to the community >reviewer list at [EMAIL PROTECTED] They will be the "judges", and >will decide who does and who does and does not get a book. > >Here are some sample right and wrong sentences to give you an idea, just >because a sentence contains the word "method", doesn't make it wrong: > > "DTML Methods are smelly." (Right) > > "By using DTML, Python, Perl or other kinds of methods, you can > script the web." (Wrong) > > "Python Methods rock!" (Wrong) > > "You can call *fooBar* through the web like any other kind of > method". (Wrong, should be "object", tricky! The judgest make the call > on these kinds of errors) > > "The Python code in your External Method must be in the Foo module." > (Right, External Methods still exist) > >Get the idea? > >The O'Reilly community reviewers (the "judges") and employees of >Digital Creations are not elligible in this contest, sorry guys, you >already get free books. ;) > >So without further a-do here's the URL. Have fun! > >http://www.zope.org/Members/michel/ZB/ > >-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 )
Re: [Zope] New version of book uploaded
I meant to paste this link in the last posting. I had the wrong title. http://lists.zope.org/pipermail/zope/2000-December/036772.html And when do I get my book? And can I get the likes of Guido, and Jim to sign the book also? Just making sure this thing is on. -Jimbo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] New version of book uploaded
Greetings, Read this carefully, you may end up with a free, signed copy of the Zope book. That's right, Amos and I have just gotten done adding all kinds of new stuff to the book, and in particular we made quite a few changed from "Python Method" to "Python Script". This was a task more subtle than a simple search and replace, many changes needed to be done. Also, sometime really soon, we will be making a 2.3 alpha release. This will be the first release of Zope that will be "in sync" with the book. Lots of milestones to reach there. So, instead of reading the book over again for the N to the Nth time in preparation, we have decided to run a fun little contest. The *first* person to point out an incorrect usage of the term "method" when it should be "script" will get a free copy of the Zope book signed by Amos and myself. If you are the second person to point out the same error, sorry, you're out of luck, but *keep reading* because you may find another! For each unique "method" error found in the book, someone will get a free signed copy! And don't just stick to Chapter 8 (although that's probably the best place to start!) because Python Meth...er Scripts are used all over the book. To keep everything fair, you must report your findings to the community reviewer list at [EMAIL PROTECTED] They will be the "judges", and will decide who does and who does and does not get a book. Here are some sample right and wrong sentences to give you an idea, just because a sentence contains the word "method", doesn't make it wrong: "DTML Methods are smelly." (Right) "By using DTML, Python, Perl or other kinds of methods, you can script the web." (Wrong) "Python Methods rock!" (Wrong) "You can call *fooBar* through the web like any other kind of method". (Wrong, should be "object", tricky! The judgest make the call on these kinds of errors) "The Python code in your External Method must be in the Foo module." (Right, External Methods still exist) Get the idea? The O'Reilly community reviewers (the "judges") and employees of Digital Creations are not elligible in this contest, sorry guys, you already get free books. ;) So without further a-do here's the URL. Have fun! http://www.zope.org/Members/michel/ZB/ -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 )