Re: [Zope] PythonScripts documentation
On Fri, 26 Jan 2001, Gerald Gutierrez wrote: > > Where is the latest documentation for PythonScripts located? The closest I > found is > > http://www.zope.org/Members/4am/PythonMethod > > but it is dated and contains minimal information. > > I'm specifically interested in what I can do with them and what I cannot do > with them. What you can do with them from a practical standpoint is documented quite a bit in the Zope Book: http://www.zope.org/Members/michel/ZB/ScriptingZope.html I'll be uploading a new version of the book with many corrections RSN. What you cannot do with them from a dryer perspective can be found in the online help system under API Documentation. Please email [EMAIL PROTECTED] if you feel there are any holes in either resource. -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] Editors [OT]
On Thu, 25 Jan 2001, Chris Withers wrote: > My wishlist would be: > > - Runs nicely on NT4 XEmacs > - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld > stuff, DTML ;-) XEmacs > - FTP or WebDAV editing built in as standard (or alternative solution, like > cadaver making it work ;-) XEmacs > - Regular Expression search & replace XEmacs > - search & replace of multiple files XEmacs > and my dream list would be: > > - can run multiple copies of the editor at once XEmacs (but who needs more than one emacs?) > - class browser for python, with expand/collapse of code (like the editor for > Python 2) XEmacs (speedbar mode) > Any ideas? I had to, love makes you do strange things. -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] Perl Scripting in Zope
On Fri, 15 Dec 2000, Mike Kelland wrote: > I've got about 3/4 of my application built in Zope (entirely in dtml > I'm afraid to say) but I'm reaching a point where it's difficult to > continue with only DTML (things like complicated database structures > and validation of input fields) and since I don't quite know python > yet (currently teaching myself) and I'm adept at Perl, I'd like to > incorporate Perl Scripts into my app. I got the > pyperl-1.0.beta.tar.gz and zoperl-1.0.beta.tar.gz modules from > ActiveState but I really have no idea if they're Win32 compatible (or > only on Linux/Unix etc) and if they are, how to install them. I'm > reluctant now to switch to a standalone Perl solution now that I've > invested so much time into the Zope one. Perl Scripts are still being developed, but if you want to jump through a hoop or two they are quite cool (or so I'm told, as I don't know enough Perl to even write one). When we documented them for the upcomming book, I had to download my own python, and my own perl distributions and patch them both. Then I had to compile some magical stuff and diddle with my paths. Then they worked. It's all documented fairly well in the readme, and you might want to skim through the mailing list archives and read everything by Gisle. I can't tell you how hard it is on Windows, I did it on Linux. As a posible interum sollution, you might want to check out Zope 2.3a1. This release of Zope has Python Scripts. These little babies are no harder to use than DTML (many (like me) believe way easier) and end you up with much better design. Learning Python is a snap, I suggest running through the Python tutorial on python.org (it's short and sweet) and you'll be up and running in no time. -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] ANNOUNCE: Zope 2.3.0 alpha 1 released...
On Tue, 12 Dec 2000, Chris Withers wrote: > Brian Lloyd wrote: > > > > Hello all, > > > > As promised, Zope 2.3.0 alpha 1 is now available. You can > > download it from Zope.org: > > > > http://www.zope.org/Products/Zope/2.3.0a1/ > > Cool :-) > > Any chance of a binary release for us lame users who want to try it out > on our WinNT Workstations? ;-) We don't make binaries for alpha releases. That being said, perhaps you can be the first person to get it to work using the various free ports of gcc to windows. -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] Last day of Month
On Tue, 12 Dec 2000, Eric Walstad wrote: > Hi Paolo, > I have a Python Metho... er Python Script that I use that tells me the days > in each month. You pass in a Zope DateTime object as a parameter and it > returns the days in that month: > > Hope that helps. See, people used to post helpful little things like this in DTML. What a nightmare. Python Scripts rock! We're gonna be seein' alot more of them fly by on the list once people get over the initial shock that they can do 90% of what they've been doing in Python. -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] ANNOUNCE: Zope 2.3.0 alpha 1 Documentation Release
On the heels of Brian's announcement, we are gurgling with joy to announce a sychronized release of the Zope Book for the Zope 2.3 alpha release. http://www.zope.org/Members/michel/ZB/ This release marks the first time the book and Zope are "in sync" enough for you to be able to fully try out all the examples and understand all the concepts. This also marks the first time in long time that Zope has a (fairly) complete, up-to-date manual! Truely exciting times are these. Remember though, both the software *and* the manual are alpha, they both will have bugs. Please report any bugs, suggestions, or comments in the book to [EMAIL PROTECTED] Happy reading! -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] Signed Zope Book Winners
Last week we announced a content to win free, signed copies of the book for finding errors in the book releated to calling a Script a Method. We have winners! Thanks folks, there are real bugs my eyes missed, and we've fixed them all. As soon as the book hits our local shelves, we'll get your signed copies in the mail. Here are the official winners! o "jimbo" o M. Adam Kendall o Jason Cunliffe o Lalo Martins o Jochen Knuth o Holger Hoffmann o "Bak@kedai" o Magnus Heino We'll be contacting the winners by email. If I sent you an email saying you *did* win and you're not in this list, fwd: it back to me and we'll get you a book, you may have slipped through the cracks (my mail filtering isn't all that hot). Please do *not* send it to the zope list, cuz then my filters send it off to the big pile that I don't read that often. -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] ZPublisher and func(self,*args,**kw)
On Sat, 9 Dec 2000, Andreas Jung wrote: > Inside a product I tried to replace the following function > >def myfunc(self,arg1='',arg2='',REQUEST=None): > > by > >def myfunc(self,*args,**kw): > > to get a more generic interface. However in every case "args" and "kw" are > empty when I output their contents inside the function. Bug or feature ? Zope will only match up arguments from a request with your function arguments when you are specific. It won't just shove everything it can into *args or **kw. -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] Failed upgrade to 2.2.4 - solutions?
On Fri, 8 Dec 2000, Luke Tymowski wrote: > Hello > > > To enable profiling, restart the Zope process with the environment > > variable PROFILE_PUBLISHER defined. The value of this variable should be > > the full system path to a file that will be used to dump a profile report > > when the process restarts or exits. > > PROFILE_PUBLISHER='/home/luke/sw/zopeProfile.txt' > > like so in my z2.py? it didn't do anything. Nope, you need to set a process environment variable on your system, not a python variable in your module. You do this before staring Zope, you can do it in a start script (syntax depends on your shell) you can do it from z2.py with os.eviron: http://www.python.org/doc/current/lib/os-procinfo.html Or you can do something like: bash$: export PROFILE_PUBLISHER=/home/luke/sw/zopeProfile.txt bash$: python z2.py -D or something of the like... > But I can get a python core dump! > > I tried just a basic install, without my Data.fs. Same result. > I tried 2.2.2. Same result. > > Looks like an incompatibility with OpenBSD 2.8 (I was running 2.7 until > 2 weeks ago.) > > Any ideas? C-compiler or Python incompatibility between what is on > OpenBSD 2.8 and Zope? Don't know... > > OpenBSD 2.8 comes with Python 1.6. I removed all traces of Python and > reinstalled 1.52 from the source. It's possible you have library missmatch. -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] Failed upgrade to 2.2.4 - solutions?
On Fri, 8 Dec 2000, Luke Tymowski wrote: > Hello, > > I've just tried and failed to upgrade to 2.2.4 from 2.2.2. A python > instance starts up and slowly swallows the CPU, ending with 99% of the > CPU. A second python instance starts and doesn't do anything naughty. > > If I issue a ./stop, the second python instance ends properly, but the > first continues to consume all CPU resources. > > I've tried recompiling it several times, reinstalling Python, but no go. > It did once start up properly, but as soon as I tried logging into Zope, > python took over the CPU. > > I'm using OpenBSD 2.8, python 1.5.2, x86, 196MB of RAM, GBs of free disk > space. > > I've been using Zope since 2.0 and have never had this much trouble > upgrading. the only Zope product I'm using is SiteAccess (the same > setup as the old Zope.org before the cluster upgrade). > > Any ideas? Try turning on the profiler. Quothe the control panel: To enable profiling, restart the Zope process with the environment variable PROFILE_PUBLISHER defined. The value of this variable should be the full system path to a file that will be used to dump a profile report when the process restarts or exits. And kill the process. Maybe this will create a profile report that tells you where it's spinning. Are you sure your waiting long enough? If you have a large Data.fs and you just move it over to a new install, Zope needs to take some time to build the initial database index file. -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 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 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 )
[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 )
Re: [Zope] Patch to avoid hypenation variables and more
On Mon, 4 Dec 2000, Tino Wildenhain wrote: > Hi there, > > finally I want to release my patch for the in-tag. I hope > it finds its way into the source-tree. > I was sick writing such ugly constructs as _[_['sequence-item']] > and so on, so I patched DT_In.py and DT_InSV.py > (in lib/python/DocumentTemplate) to use sequence_item as well. > All hypenation variables have now a second representation with > underscores instead of hypenation. I hope, some time we can > drop these hypenation variables. Or drop DTML entirely. > The second problem is if you put one in-tag into another. > You have to use oder REQUEST.set() with variables > of the outher in-tag to be able to reference them in the inner > loop. The code becomes very ugly this way. So my idea was to > give the in-tag an optional argument, called "prefix" to > prefix all the sequence-variables with a custom identifier. > So you can write: > > > > : > > > > What do you think about this? It's cool. Your patches are big and therefore, naturally, are a bit worrisome to us in terms of checking them into the core. Do you have a set of test DTML scripts that verify your patch? Say, a set of scripts that verifies backwards compatibity, and a set of scripts that verifies the new functionality? I would suggest even investigating "ZUnit" and creating DTML unit tests. Then we would *really* love you. ;) -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] Public CVS Zope won't compile (fwd)
On Sun, 3 Dec 2000, Chris Gray wrote: > Did a fresh checkout but "python w_pcgi.py" chokes at: > > Writing the pcgi resource file (ie cgi script), > /home/cpgray/zope_cvs_run/Zope2/Zope.cgi > chmod 0755 /home/cpgray/zope_cvs_run/Zope2/Zope.cgi > Traceback (innermost last): > File "w_pcgi.py", line 111, in ? > if __name__=='__main__': main(sys.argv[0]) > File "w_pcgi.py", line 109, in main > import wo_pcgi; wo_pcgi.main(me) > File "/home/cpgray/zope_cvs_run/Zope2/wo_pcgi.py", line 98 > import comcontent.main(home, user, group) > ^ > SyntaxError: invalid syntax > > Cheers and Beers, > Chris Works dandy here, neither w_pcgi.py or wo_pcgi.py have been modified in over a year. I agree that the code your traceback reports on line 98 is a syntax error, but it doesn't match what is on line 98 in the CVS. -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] Installation and Startup
Norm LaDuke wrote: > > I have installed Zope on a 300Mhz K6 machine with 92 Megs of RAM running Windows > 98. It seemed to install ok except that it didn't ask if I wanted to run as a > service (as the documentation said it would). Could you point out to me, precisely, where the documentation says this so I can fix it? -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] IP address and US city name
Hung Jung Lu wrote: > > >From: Bill Anderson <[EMAIL PROTECTED]> > >Hung Jung Lu wrote: > > > > > > Hi, > > > > > > I know that IP addresses in the USA follow a strict pattern of > >geographical > > > locations. (Most other countries don't do that.) Does anyone know where > >I > > > can get a copy of the table of IP addresses vs. city names? > > > >Whomever told you this was wrong. > > No Bill. You are the one that is wrong. :) Actually Hung, on this one he is right. I owned and operated an internet service provider for four years. There is no 'strict' policy of who gets what address block. Random companies in random cities at random times ask for, and recieve, random chunks of classless address space based on their need. It is true that this chunk of address space is then _usually_ assigned to only one geographic location, but there is no strict policy and no one keeps track of it in a big-brother database 'table' that maps this information for you. The companies themselves may keep track of which addresses go where, but they are not required to report this to anyone or to update some global directory when they change their network setup or move stuff around. Also, at the highest level are large organizations, phone companies, universities, government organizations, etc. In the case of companies, these organizations usually get a huge chunk of address space and them sell it off to other people, like, for example, GTE (a phone company) sells its addresses to Genuity (an ISP) which sells its addresses to Nap.net (an ISP) which sells its addresses to Collective Intelligence (the ISP I used to own) which sells its addresses to Dialogue, Inc. (an ISP owned by my buddy Adam). Adam was not require to report to me what or where or who he sold his addresses to, similarly I was not required to report that informtaion to Nap.net, who, in turn I presume, is not required to report the information on upward and so on. At the very highest level, the only information know is "GTE owns 200.x.x.x to 220.x.x.x". GTE is, geographicaly, the biggest phone company in the US, serving almost all of the rural mid-west. That said, there is a company that has intrusivly scanned the whole internet (globally, not just the US) and claims to have, using deduction, figured out where all the addresses are. I'm assuming their service is very expensive, not 100% accurate (because neworks move and get rewired) and it is targeted towards advertisers: http://slashdot.org/yro/00/11/06/0521235.shtml -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] ZCatalog and LoginManager - be aware.
Oliver Bleutgen wrote: > > Hi, > > I just wanted to mention a IMO bad pitfall when using ZCatalog, for > the sake of sparing others some time. > > I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting > the following error when trying to find dtml-documents into ZCatalog: > > Error Type: AttributeError > Error Value: commit_sub > > Traceback (innermost last): > File >/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line >222, in publish_module > File >/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line >187, in publish > File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, >line 221, in zpublisher_exception_hook > (Object: Traversable) > File >/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line >175, in publish > File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, >line 235, in commit > File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py, >line 261, in commit > AttributeError: (see above) > > All other object-types (incuding dtml-methods) seem to work. I have put no > restrictions on which files I want found, but restricting something to > reduce the number of found objects helps. > > I fiddled around somewhat and discovered that disabling > subtransactions in ZCatalog does help (required for using > ZSQL Methods and ZCatalog in the same transaction). Yeah, that sux. I think this is a known limitation. I'm not sure. > Now I use SQL-based LoginManager, but why on earth did it only > fail on DTML-Documents? Is it because I have much more of them so > only then ZCatalog's subtransactions come into play? Probably because sub transactions are only commited after a certain number of words or values are indexed, and your DTML documents were the only things that held words. -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] AND operator and ZCatalog
The Doctor What wrote: > > * Dieter Maurer ([EMAIL PROTECTED]) [001127 17:31]: > > Bak @ kedai writes: > > > i have a ZCatalog that indexes news. i use keyword index, and text index. > > > when i try > > > > > > > > > . > > > it seems that the search was ORed, not ANDed. > > > > > > i hope i'm clear enough. > > I tried it out: > > For me, it was definitely an AND. > > > > What I did: > > Make a search for "Meta Type=Document Template" => lots of hits. > > Add "Title=" to the search => no hits > > Add "Title=Elvis" => some hits > > > > as I would expect. > > Those are anded, but principiasourcesearch isn't. > Text indexes implicitly Or their search terms if no operator is specified. Don't ask me why, I don't know. if you want to change this behavior, edit lib/python/SearchIndex/UnTextIndex.py on or about line 451, change the 'default_operator' argument to the query method to And: def query(self, s, default_operator = Or, ws = (string.whitespace,)): to: def query(self, s, default_operator = And, ws = (string.whitespace,)): -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] Python method: recursive function gives NameError
Willem Broekema wrote: > > I have a simple recursive function in a Python method that gives a > NameError (2.2.4 on Win98). > > The function (in PM named 'rec'): > --- > def myfunc(i): > if i >= 10: return myfunc(1) > else: return 1 > > return myfunc(11) > --- > > The end of the traceback: > --- > File c:\myzopeinstance\...cts\PythonMethod\PythonMethod.py, line 168, in > __call__ > (Object: rec) > (Info: ((), {}, None)) > File , line 6, in rec > (Object: myfunc) > File , line 3, in myfunc > NameError: (see above) > --- > > Isn't it allowed to have a recursive function here? Yes, but that's not your problem. Your problem is it can't resolve the name 'myfunc'. You need to say self.rec(1) if you are using old python methods (and make sure self is a parameter), or self.myfunc(1) if you are using new ones. Do you see why? The python corollary: class Foo: def myfunc(self, i): if i >= 10: return self.myfunc(1) else: return 1 -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] Python Script and O'Reilly Book
Hi folks, We get quite a bit of mail about how the book and Python Scripts don't make sense with each other any more. We're aware of a couple issues: o The Book says "Python Method" and documents the version in CVS o The current release of "Python Methods" does not work with the book examples, you need to check them out of CVS (are there may still be some issues) o "Python Methods" are now "Python Scripts" o The book explains "Methods" in a unified way, this needs to be split up and broken out. We apologize for the inconsistencies. Obviously, these things are going to all be worked out real soon now. We wanted to make a general announcement because we just can't handle all of the questions that come to us directly by mail. We want to warn you though: Python Scripts are alpha, CVS code. Additionaly, the book is "beta" documentation. Neither of these artifacts are finished or released yet, so please always be aware that you need to use them at your own discretion. -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] context in Python Script
Chris Gray wrote: > > I still can't get external Python Scripts to work as described in the Zope > Book. I am using the version of Python Scripts from the public > CVS. Internal Scripts work fine, but I can't seem to use the > "context" object in an external script. > > def tryContext(): > """tryContext function""" > return context.objectIds() > > gives a NameError on context. Look at your 'Bindings' tab. The 'context' binding should be 'context'. If it's something else (like 'self') then change it. Basicly, 'container' should be 'self' and 'context' should be 'context'. -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 "Python Script" in Zope-2.2.x-to-2.2.4-win32-x86.tgz or in my brain???
Max M wrote: > > I just upgraded Zope on my Win 2K machine with > Zope-2.2.x-to-2.2.4-win32-x86.tgz But I cannot find "Python Methods" or > "Python Scripts" anywhere. Is it me being stupid or is the product missing > from that tarball?? Python Scripts will not be included in Zope until the 2.3 release. For now, you will need to check them out of CVS. -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] newbie question: Redirect from Python?
Paul Winkler wrote: > > seb bacon wrote: > > > > * Paul Winkler <[EMAIL PROTECTED]> [001127 19:54]: > > > I want the user to be sent to a particular URL after calling the > > > product's manage_add method. How can I do that? > > > The URL I want is REQUEST['URL3']. > > > > > > I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the > > > RESPONSE doesn't seem to exist here. > > > > sounds alright to me. are you calling it in quotes, e.g. > "RESPONSE.redirect(REQUEST['URL3'])"> ? > > > > you shouldn't have to use the REQUEST to look up the variable, either: > > > > Thanks for the reply. > OK, I didn't phrase the question correctly. > > I think it boils down to this: > If I have a string that represents a URL, can I define a method of my > product (in python, not in DTML) that redirects the browser to that > URL? > > More details: > > My product code is based on Boring (like most newbies I guess). > But manage_addBoring() does not do quite what I want. It returns > self.manage_main(self, REQUEST), so they end up at a long and ugly URL > that isn't where I want them to be anyway. > > Example: > the user is at: > > http://localhost.localdomain:8080/Members/bobby > > Bobby then clicks on a button I've provided that says "Add Test > Product". That sends him to the add form I've created. When Bobby > submits the request from this form, the product is added and he's sent > to > > >http://localhost.localdomain:8080/Members/bobby/manage_addProduct/MyProduct/manage_main > > ...because manage_addMyProduct returns self.manage_main > So I understand what's happening, but it's not what I want. > I don't want to send him there, I want to send him back to > > http://localhost.localdomain:8080/Members/bobby > > So how can I do that from within the manage_addMyProduct method > definition? > The method gets a REQUEST argument, and I know that REQUEST['URL3'] is > what I want because if I return that string, it prints the URL I want. > > I could do it by returning an HTML page with a redirect in the > but that seems like a horribly ugly solution. > > Looking through various Zope docs, I thought RESPONSE.redirect might > work, but RESPONSE is not mentioned anywhere in Boring.py. Boring > only uses REQUEST. So pass it RESPONSE: def manage_addMyProduct(self, blah, blah, REQUEST=None, RESPONSE=None): ... The publisher will automaticaly pass you RESPONSE if you ask for it as a method argument. Now use RESPONSE.redirect. -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] 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. > > :) > > 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 or 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] 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] 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 )
Re: [Zope] Still More Problems On the Install...
Ben Ocean wrote: > > At 11:14 AM 11/19/2000 -0500, you wrote: > >Are you sure you need the source version? The binary is easier to install. > > Well, that *was* easier (now that I figured out which is which). First of > all, apologies to all you hard-core techies for whom this is so easy, *but*... > I got as far as *./install* and all worked fine (on the binary). Now > what??? I've combed the README and INSTALL texts looking for answers, been > on the Web site, still can't figure out what I'm supposed to do next. All of your questions so far are answered in the Book. http://www.zope.org/Members/michel/ZB/UsingZope.html You've gotten to the section "Starting Zope on UNIX". -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] The new Python Method renaming Poll
Andrew Kenneth Milton wrote: > > +---[ Michel Pelletier ]-- > | > | asking the question "Who is buried in Grant's tomb?". Duh. > > Perhaps for the non-americans, someone can tell us why the answer to this is > 'nobody.' Oops. Ulysses S. Grant is buried in Grant's tomb. He was President of the US from 1869-1877. The question "Who's buried in Grant's tomb?" is from, I belive, a Marx Brothers' skit. The answer is supposed to be obvious (to Americans, at least). -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] The new Python Method renaming Poll
http://www.zope.org/Members/michel/Scratch/Poll Hope Netscape doesn't mess up my formatting on the rest of this. The above link goes to the HTML version if it does! -Michel The New and Improved Python Method Poll We recently held a poll on Zope.org about renaming Python Methods. The poll turned out to be a bit of a disaster for several reasons, but at least we learned our lesson and this time, hopefully, we're gonna do it the right way. *Why* do we want to rename Python Methods? We want to rename Python Methods because they are not methods in Python. There are already things in the Python language called "Methods" and what we currently call "Python Methods" do not look or act much like real methods written in Python. To illustrate the point, Jim recently told me that he went up to PythonLabs to visit, and when he showed them Python Methods their reaction was "These aren't Python Methods.", and they should know! So we have two choices: 1) Change the behavior of Python Methods so that they look and act like methods in Python, instead of what they are now, or 2) Keep the existing behavior and change the name. We discarded the first choice because we like the existing behavior, we find it useful for through the web development, and we have invested a lot of thought and engineering into it. Changing the behavior would effect lots of things, so we decided to go with the second choice. The second choice is good because it requires little labor, but it is not an *easy* choice to make, especially for us since we're all pretty biases and geek-headed. This is where you come in. We want you to vote from a selection of internal and community solicited new names for Python Methods. What was wrong with the last Poll? In the last poll, "Method" won "hands down":http://www.zope.org/Members/hathawsh/poll/viewStats. But the poll was obviously a bit biased, no justification was given as to *why* we wanted to rename Python Methods and "Method" was mentioned all over the poll, it was even a choice! To quote Jim, the poll was a lot like asking the question "Who is buried in Grant's tomb?". Duh. Also, there were lots of candidate names, but with no context, who could really choose one? There were no justification for names, and many of them that were fairly reasonable scored almost dead last. So, we're gonna do things a little differently in this poll. How does the new poll work? *Once again* we will be soliciting names from inside DC and from the community. In addition to submitting a name, we encourage you to also submit a one-liner description or justification for you name, it can be in any form, Haiku poetry, a Dutch sea-shanty, a Monty Python quote, anything *relevant* to encourage people to vote for your entry. We will also have a front-page blurb on the poll that you must read in order to vote. It will describe the reasons and justification's behind the new poll, and why we want to rename Python Methods. "Method" will not be an option, so please don't submit it. When is the new poll? The new poll will start on Monday, November 27th, 2000 and go until the following Friday. Name submission are due by the Friday before the poll, November 24th, 2000. How do I submit a candidate? Send an email with the subject line "Python Method name candidate" to "[EMAIL PROTECTED]":mailto:[EMAIL PROTECTED]. Your email must contain at least the name you propose, but it may also contain a *short* paragraph justifying why you think your name should be chosen. I will compile the list of candidates the Friday before the Poll begins. Your welcome and encouraged to discuss possibilities on the mailing lists, but please, since I don't have all the time in the world to troll the list, if you don't send me an email, I will not add your candidate to the list! Thanks, and Good Luck to all! ___ 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 do I form an XML-RPC query to a remote server?
Tony McDonald wrote: > > Hi all, > I'm experimenting with collating data from a remote database that uses > XML-RPC. > > I can send it messages like; > >>> import xmlrpclib > >>> medweb = xmlrpclib.Server("http://bogus.server.com") > >>> medweb.getImages('scar') > ' ?>\015\012\011\015\012\011\011Medwebb Images \0 > > (lots of stuff snipped) > > But I just can't figure out how to send the XML version of the same query, > ie > > > getimages > > > scar > > > > > to the server. How does it fail? Did you set the right content type (text/xml I think?)? Why do you want to send a hand built query to the server? That's what xmlrpclib is for. -Michel > I've got a nasty feeling that when I get told how to do this, I'm going to > slap my forehead bloody hard Do what I do, where a helmet to work. ___ 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] Are there any man pages out there for these functions?
[EMAIL PROTECTED] wrote: > > Howdy Folks, > > I'm looking for man pages on these dtml functions? > > I'm finding it terribly difficult and frustration to figure out how to > properly program in dtml since I can't do a man on a funtion > (ie:man objectValues) and read about what parameters the function is > expection from me. > > I'd like to browse the dtml man pages and see what functions are > available to me. I've been reading all kinds of documents for the last > week but I get the feeling that Zope is somewhat immature as a product. > > So, any ideas about those man pages? Yes, in Zope, click the 'Help' button. On the left is a navigation tree, open 'Zope Help' and then open 'API Documentation'. For documentation on 'objectValues' for example, look at the 'ObjectManager' API screen. It's not very discoverable; we need to work on making a better help interface. -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] Zope Book (Error and Suggestion)
The Doctor What wrote: > > At least I think it's an error (either in my understanding or in the > book). > > First off, I think the books great. Finally something that's trying > to explain what's going on. Zope looks so cool, but it's been hard > for a hardcode PHP and Perl programmer like me to get my brain around it. > > Anyway, my suggestion is that all the image URLs be fixed so that > your book can be easily mirrored with normal web-tools. Perhaps > even offer a version that's downloadable. When I went to mirror it, > my mirror software choked on image urls like: > http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png > > The mirror was so I can use it at home where I don't have a > reasonable net access (very flaky 56k, it hoses up frequently as > it's through work). > > The error or problem that I have run into is that I can't get the > Guest Book in chapter 5 to work. They python method listed there > does not work for me. I'm using Debian Unstable (Woody) with these > versions of packages: > ii zope 2.2.2-3The Z Object Publishing Environment > ii zope-bytecodeh 0.1.7-2Rewrite bytecode of functions to do unlikely > ii zope-pythonmet 0.1.7-2Allows ZopeMethods to be written in plain Py > > That's bytecodehacks and pythonmethods on the bottom there. This is an old version of python method. You need to d/l python method out of cvs in order to get the book example working. -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] [Fwd: [Zope-dev] Vote on the new name for Python Methods!]
Please vote folks! -Michel Shane Hathaway wrote: > > Being Election Day in the United States, now is a good time to vote on > the new name for Python Methods. > > Python Methods are a relatively new concept for Zope. They give you the > features of DTML, such as through-the-web editing and security, while > providing a familiar, refined syntax. > > But before we can fold them into the Zope core, you need to help us > choose the right name for them. Some have voiced the opinion that the > name "Python Method" is confusing because it can just as easily refer to > methods in standard Python modules. > > There are some interesting alternatives, so please cast your vote! > > http://www.zope.org/Members/hathawsh/poll > > ___ > 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 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 Book Beta
Robin Becker wrote: > > In article <[EMAIL PROTECTED]>, Michel Pelletier > <[EMAIL PROTECTED]> writes > >Robin Becker wrote: > >> > ... > >I belive all reference to xslt methods has been removed. Python methods > >will be part of the 2.3 release, and Perl methods are mentioned in the > >book as being a component add on that must be installed. > > > > well I think I read about them in the recently released beta, not how > they work, but I didn't pluck the name out of thin air. Ah you are correct, I just removed the references to them. I thought they were purged when we removed the xml chapter. > >> So is there an alpha of this future zope that we could > >> use to check the book? > > > >Check out Zope and Python Methods from CVS. Perl Methods can be > >downloaded from the Perl wiki on (I believe) dev.zope.org. > > > >-Michel > > > > I'm using the CVS checkout of Zope2, where are python methods in the CVS > tree? I'm not sure, I suspect you would ahve to check them out of a branch, and I don't know how to do that from the public CVS. I'll make some inquiries. -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] More updates on documentation documentation
I've added more updates on documentation and worked in the comments recieved from Shane. To help you help us, I added some text on where we need the most attention, check the CurrentIssues for more info. http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/FrontPage This process will define how we create documentation at Digital Creations, and will have far-reaching effects on how each of us contributes, maintains, and understands documentation. So far, Amos and I have proposed a prototype documentation process for synthesis, authoring, editing, reviewing, delivering, and maintaining documentation based on our experiences writing the Zope Book. We have tried hard to be as realistic as possibly in defining a very workable process, but our experience is obviously limited to one artifact, and the pain of living with no real process to date. We would really like to hear what you all have to say about our proposal and our prototype. If you think our prototype has holes in it, please leave your comments in the wiki and we will take them very seriously. We would like to hear comments from: The PythonLabs folks, since they have lots of experience authoring, maintaining and delivering extremely useful documentation. The ZDP folks, who represent the segment of the community most interested in documenting Zope. The DC geeks, since this process will effect, fundamentally, how we all do our jobs. The community developers, since they represent an audience for whom we have little documentation, and where we will focusing much of our upcomming efforts. The community users, since they represent the need for the highest clarity, best documentation, and because they represent the majority audience. In other words, we want to hear from you all! Our goal is to make documentation one of Zope's best features, so let us know how you think we can do that! Thanks, -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] Zope Book Beta
Robin Becker wrote: > > I agree about the numbering, but even more I would like to know which > version of Zope the book is supposed to be about. When it hits the shelves, it will be about 2.3. After that, we will maintain the book to be in sync with the current release according to the as-yet-unofficial documentation development process: http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/FrontPage > It mentions stuff such > as XSLT methods, perl methods and python methods none of which are in an > official zope. I belive all reference to xslt methods has been removed. Python methods will be part of the 2.3 release, and Perl methods are mentioned in the book as being a component add on that must be installed. > So is there an alpha of this future zope that we could > use to check the book? Check out Zope and Python Methods from CVS. Perl Methods can be downloaded from the Perl wiki on (I believe) dev.zope.org. -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] Zope Book Beta
"Jan H. Haul" wrote: > > The point is that we should be able to give meaningful feedback, > like "page 147, line 15: there should be their" (a totally > made-up example, do not go hunting for that one). > It just does not do to quote full sentences and have the > copyeditor search for all that stuff. Too much wasted time on > both ends. Jan, We have very little experience in documentation delivery and maintenance. It's sad but true. We are however working to resolve the problem. Please take a look at the documentation process wiki, where we have a section for discussing delivery issues: http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/FrontPage Look under 'CurrentIssues'. Please place any suggestions or ideas you have there. -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] UML
Douglas Daniel Del Frari wrote: > > Greetings! > > I am graduation student and I come using the platform zope for > development of systems directed to education. Cool. > One of the main > doubts when using zope, not only the syntax, but also as to use it to > develop applications using methodologies (former UML). As to use > concepts of Objects Oriented : inheritance, aggregation, dependence...? > Using its it of management screen? I'm not sure what you mean Douglas, do you want to know: 1) If we apply a design methedology to Zope or 2) How you can apply a design methedology to Zope? -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] insert but updates don't work
Graham Chiu wrote: > > I have this rather curious problem with Zope 2.1.3 on WinNT. > > I have a zsql query which returns a number of records. I > want to do an update on the same table that is being queried > for each record returned, but get an authentication > challenge that I can not pass. > > If instead I do, eg, an insert into another table with each > value returned, it works fine. Is there something special > about sql updates? There shouldn't be, are you using DTML in both methods? If so, I suspect one of the methods is using DTML which requires higher authentication privledges. -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] error in Zope book
michael angelo ruberto wrote: > > in chapter 5 the example Creating a File Library has an error in the sorting > method. > > ---ERROR > --- > > > ~this should be ~it doesn't work otherwise. > The reason why it doesn't is because you are using a DTML Document instead of a DTML Method: DTML can help you save time maintaining this library. Create an *index_html* DTML Method in the *Files* folder to list all the ^^^ files in the library:: -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] zope book AppendixA error
Didier Georgieff wrote: > > Hello, > I guess DC people is already aware, but i get an error since > yesterday while pointing to ZB/AppendixA.html > > Document Template Parse Error > > invalid parameter: "="Expression"]...", for tag [Name=Variable][Name="Expression"]...>, on line 421 of > AppendixA.html Fixed. -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] Zope Book Beta
Jason Cunliffe wrote: > > - Original Message - > From: Chris Withers <[EMAIL PROTECTED]> > > > > Not yet. I think that O'Reilly doesn't want us to produce any more > > > public versions of the book until it is published. I'm double checking > > > with them right now. Take a look at the copyright verbage on each book > > > page to see what I'm talking about. > > > > Kinda tough to check out/read/find mistakes in a book that's only > > available as a set of html pages that aren't full text searchable > > This is a really good point. > > Just as open source benefits from real-time peer review, so do manuscripts > get better when fresh eyes and minds and go over them. > > How about 'releasing' a PDF / HTML Doc with header/footers clearly marked: > 'Preview Review copy for Copy-Editing use only. Not for general public or > commercial distribution' This is a good idea and probably a good compromise, but this would require us taking the time to negotiate it with O'Reilly and engineer a stx-pdf converter and pre-empt alot of work we have lined up for the book and other documentation efforts. With the existing setup, we don't have to worry about this for a couple months and we don't have to stir the shit with O'Reilly. > The number of people who are likely to 'bootleg' the Zope book must be tiny. I agree, and honestly, Amos and I don't care about the bootlegging or book sales revenue. It is also not our job to enforce the rules; I would chuckle to hear about people 'bootlegging' ilicit PDF copies of the book. > Most will want to see the book sales thrive, Yeah, NY Times bestseller list!!! > so that Zope grows and gets the > wider recognition it deserves.And to save time and money when developing > Zope projects. > For such sophisticated 'free' software, a well written, well edited book is > a trivial price to pay. > > The issue is how to get the best final copy to the printer in timely manner. Well... from your perspective (and ours) but from O'Reilly's I think they're woried about *who* the first person to print that best final copy is. Those are the people they are worried about bootlegging the book, not you, they _know_ you'll buy a copy. ;) If we open content it now, someone could beat ORA to the shelves by a week and undercut a sizable percentage of sales and all they would ahve to do is put ORAs name on the cover, but they don't get any money. I feel your pain on all issues. A couple more months and this will all go away. -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] Zope Book Beta
Tim Lynch wrote: > > I wholeheartedly agree with Jason and Chris. I would very much appreciate a > PDF version that could be easily printed, or read with Adobe's Reader. I hope > there is no hesitation over making a PDF version available because of fear it > will cut into sales of the bound volume. I think it would be just the opposite. > I can easily think of examples (the original Tcl/Tk book comes first to mind) > where the printed copy closed the sale of the bound volume for me. I do not know what the reasons is. I do know that when the book hits the shelf, it will go under an open content license and we will be free to distribute it in a myriad of flavors and you will have the freedom to do with it what you please (according to the license). > I'll be purchasing multiple copies of the Zope book for my shop regardless. Thanks. ;) -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] Zope Book Beta
Fred Yankowski wrote: > > I agree completely that the Zope Book beta will get more reviewers, > and better feedback to the authors, if it is available as PDF. I agree, but this is completely out of our hands and we must focus more on content issues at this point then distribution issues. All of these problems will get solved in the comming months, they just won't get solved today. -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] Zope Book Beta
Chris Withers wrote: > > There a PDF of it anywhere? No, we won't produce one until the book goes to an open content license when it hits the shelf. -Michel > > cheers, > > Chris > > Michel Pelletier wrote: > > > > Amos and I are gibbering like madmen with excitement to announce the > > Zope Book Beta. This is the complete, technical draft of the book with > > all screenshots (but minus illustrations, those are on there way!). > > Some other things like a colophon and information about the authors is > > missing. The beta includes all completed chapters, the API reference, > > and the DTML reference. We've received over a hundred comments, > > corrections, and ideas from you the community and it has made a much > > better book. This is the one to print out and give to your friends as > > christmas gifts, folks, so get crackin and start reading at > > http://www.zope.org/Members/michel/ZB/. > > > > Enjoy, > > > > -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] Re: [Zope-book] Re: [Zope] Zope Book Beta
Wolfgang Strobl wrote: > > On 31 Oct 2000, at 10:39, Amos Latteier wrote: > > > I believe that O'Reilly doesn't want the book redistributed before it is > > printed. > > It's gone. > > > I'll recheck with them. > > No need to. > > But what is the meaning of This is the one to print out and give to > your friends as christmas gifts, folks, so get crackin and start > reading at." in the announcement? That was a joke. 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 )
[Zope] Zope Book Beta
Amos and I are gibbering like madmen with excitement to announce the Zope Book Beta. This is the complete, technical draft of the book with all screenshots (but minus illustrations, those are on there way!). Some other things like a colophon and information about the authors is missing. The beta includes all completed chapters, the API reference, and the DTML reference. We've received over a hundred comments, corrections, and ideas from you the community and it has made a much better book. This is the one to print out and give to your friends as christmas gifts, folks, so get crackin and start reading at http://www.zope.org/Members/michel/ZB/. Enjoy, -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] dtml-while
Diego Rodrigo Neufert wrote: > > Why there isnt a dtml-while function in Zope? DTML is not meant to be used for general purpose, logic programming. It's a presentation and layout language. Additionally, a while construct would allow you to create indeterminate loops: ... and you're not allowed to loop indefinately in DTML. It's against the rules. does all the looping you need over a python sequence, since DTML doesn't let you build infinite sequences, all loops terminate. The solution to your problem is to you Python Methods. http://dev.zope.org/Members/4am/PythonMethod Python does have a while construct and is indented for programming logic. -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] The Great Python (and Perl) Method Renaming Poll
We will be conducting a community poll to decide what to call Python (Perl, insert your language here) Methods. Many candidates have been discussed, but I'm afraid I don't have enough time to cull all the candidates from the discussions. So, before the poll, we are calling for nominiations from the community. Please send me an email containing one or more candidate names. These names will be added to the list. No pre-screening will be done, so please exercise some discretion if your favorite name is more tounge-in-cheek than practical (you never know what the masses will decide though!). Later this week, I will create a web poll where you can vote for your favorite. thanks, -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] O'Reilly Book Tecnical Reviewers
Greetings, O'Reilly is looking for 4 or 5 technical reviewers for the book. http://www.zope.org/Members/michel/ZB/ Technical reviewers get paid either a small honorarium or get free copies of the book (I am unaware of the exact details). I'm sure this message will elicit a *flood* of candidates, and I'm afraid we can't accept them all (of course, that doesn't mean you can't do it for free ;). Further, this will be a time consuming task, requiring you to scrutinize all details, try examples, etc. You will probably give more effort than you are monitarily compensated with, but you will also get unending glory and mucho zen master points from your zopista peers. So please consider this opertunity to work directly with us to make a great book. If you are interested in the sweat and the glory, please send an email to [EMAIL PROTECTED] with the subject "I Wanna Be A Technical Reviewer", and maybe a brief bio about you, your Zope experience and (bonus points) if you've every technically reviewed a book before. Thanks! -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] What Products created What Permissions
Chris Withers wrote: > > Michael Bernstein wrote: > > On a slightly different note, I think that the permissions > > list should be viewable in two more ways: A view where > > permissions are grouped into 'subjects', (for example all Perhaps a better idea is that Permissions are classes that inherit from super class permissions, so permission could be laid out in a heirarchical fasion. Permission Add Add Foos Edit Edit Bars Delete Delete Bobs View etc... we've thought about this before. implementation makes my brain hurt. -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-dev] Thanks for the comments
Just thought we'd mention that we have gotten lots of great comments on the Zope book so far, especially in the last week or so. You're all helping make it a better book and ensuring Zope's future. if you've felt in the past that you may not be technically proficient enough to contribute to the technology of Zope, you can certainly contribute to the documentation by catching our mistakes and making good observations and asking good questions. It is really, really helping. Keep it up, cuz we're not done yet! Thanks, Michel and Amos ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] expr="id <> 'index_html" issue
Seb Bacon wrote: > > > > > try : > > > > > > > >> title_or_id> > > > > > > > > that should be > > > > (quotes round id) > > > > would also work. This is because sometimes id is a property, sometimes it's > a method. The former version would work in every case; the latter only > where id is a method. It's annoying, but there's talk of providing a > getId() method for every object to sort this inconsistency out. As far as I know, getId() is in CVS and is documented in the CVS API online help. You should be seeing it soon. -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] status of SOAP for Zope?
Brian Lloyd wrote: > > > MS has released ROPE for client-side SOAP development (finally). > > > > I can't seem to find anything in Zope for doing SOAP, but it was > > announced in Dec 1999 as "upcoming". > > > > What is the status of SOAP on Zope, I need to know if I can use ROPE.. > > Hi Brad - > > SOAP is still something we want to do, but it is on hold right > now (we just don't have the resources at the moment). I've been > hoping that someone might take the lead and start a project on > dev.zope.org, but so far that hasn't happened :( Take a look at: http://classic.zope.org:8080/Collector/1360/view I remember glancing at it for a bit, it might be a good start to at least get it to the same level of support as xml-rpc. -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] Fw: ZSQL Methods in ZClasses, not working
Just wanted to get this point archived... Thanks Michel. Forwarded by Alexander Schonfeld <[EMAIL PROTECTED]> Original message follows From: Michel Pelletier <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: " \(DC Support List\)" <[EMAIL PROTECTED]> Date: Mon, 02 Oct 2000 13:41:25 -0700 Subject: Re: [Support] [ZOPE Collector] Z SQL Methods Bug entry: ZSQL Methods in ZClasses, not working -- [EMAIL PROTECTED] wrote: > > A new bug entry was added with the following information: > > Title: ZSQL Methods in ZClasses, not working > > At: http://classic.zope.org:8080/Collector/Collector/1664/sview > > Submitter: Alex > > Email: [EMAIL PROTECTED] > > Description: Adding a ZSQL method to a ZClass and trying to access it from a method >in that class gives permission denied and no matter what the password, denies access. You need to select *Use Database Methods* on your ZClasses *Permissions* view, and then select each ZSQL method you create and map *Use Database Methods* to *Use Database Methods*. I haven't really groked why it's that hard, but it works. -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] Containment or context
Evan Simpson wrote: > > - Original Message - > From: Michel Pelletier <[EMAIL PROTECTED]> > > Evan Simpson wrote: > > > for p in REQUEST['PARENTS']: > > > if hasattr(p.aq_explicit, propname): > > > return getattr(p, propname) > > > raise AttributeError, propname > > > > I think you might be missing an else: and a couple or three tabs. ;) > > Eh? I don't get it. That's because I didn't either. That's what I get for looking at code pre-tea. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] Containment or context
Evan Simpson wrote: > > > The only way (right now) to search for a property in the order PARENTS > mentions them is to do so explicitly, by looping through the elements of > PARENTS and checking their 'aq_explicit' for the property. Example Python > snippet: > > for p in REQUEST['PARENTS']: > if hasattr(p.aq_explicit, propname): > return getattr(p, propname) > raise AttributeError, propname I think you might be missing an else: and a couple or three tabs. ;) If I'm not wrong this should have a pretty elegant DTML equivalent: I'm not going to actually *test* it. Whether it works is left as an exercise to the reader. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] Version Paradox
Go to 'Control Panel' and then 'Version Managment', you should be able to discard the paradoxical version there. "Baker, Dennis [sjmr]" wrote: > > No luck, Maybe I'm describing my problem wrong, When I go to manage Zope > The header at the top says " >Folder at / * (/Developement%20Site) >^ (This is the version Symbol) > > It doesn't Say that I am working in a version otherwise. Then if I attempt > to create a new version I get the following error: > > Error Type: VersionLockError > Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'", > '/Developement%20Site') > > I can create a version in a subfolder, and subfolders don't have the > "Folder at" stuff all messed up. Unfortunately this is my production server > too, not my testing server. > > -Original Message- > From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 15, 2000 12:14 AM > To: Baker, Dennis [sjmr]; [EMAIL PROTECTED] > Subject: Re: [Zope] Version Paradox > > >I've inadvertently created a version paradox. I created a version and > >joined it, then I realized that I did a stupid naming mistake I tried to > >UNDO the creation of the version. It allowed me to undo the creation of > the > >version, however I was in the version at the time, and now I am stuck in > >the version and cannot get out. I cannot create a version of the same name > >and delete it either. I am stuck. HELP !! > > > >How can I exit a version that doesn't exist? > > > I believe that versions are based on cookies and that removing the culprit > will unlock your paradox > > cb > > ___ > 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 ) -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] Beta Zope Error
CURTIS David wrote: > > Greetings, > > I keep getting the Zope pop up password box in many menus. I also keep getting a >access denied error when quering database records. What is wrong here? I am able to >query records using the test menus but not within the Zope SQL methods. Hit cancel when a box pops up, the traceback that results will tell you what thing you are not authorized to see. This information coudl be useful for you and us, either you have your permissions set up wrong and you are getting denied for something, or there is a bug in the security machinery. Anyone else see this? -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] logout
James Cummings wrote: > > Ok, since I haven't found this by searching the site or the mailing list > archive, is it possible to logout as superuser? I would like to be able to > login as a different user, but I haven't been able to find out how to do this. This question comes up every now and then and the answer is Yes, and No. To logout, close your browser. You might think that sucks but there is nothing Zope can do about it, HTTP is a stateless protocol, you are never really 'logged in', but rather your browser caches your authentication information and provides it to Zope for *every* request to a protected resource. There are a couple of things you can do: Will cause your browser to pop up a new login box, here you can either re-login as someone else or hit 'Cancel' and your browser *should* clear it's authentication cache. An alternative is that you can engineer a cookie based solution. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] A similar issue with Perl for Zope
Jon Udell wrote: > > BTW, there is essentially no difference between VBScript, JavaScript, > PerlScript, or PythonScript when used at this level. All can make the > same CreateObject call, and diddle the controlled app's object model in > the same ways. It ends up not being a language issue at all, but more a > case of, as I said, what the heck is that object model anyway, and then > why doesn't it behave as expected? This is such a good point I wanted to share it with the Zope community as well. The language issue is minor to the need for a definate object model with clear interfaces. It shouldn't matter if the core of Zope is written in Python or FORTH, from your perspective and the perspective of your language the model and interfaces should be well definded. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] ANN: Perl For Zope
Martijn Faassen wrote: > > J. Atwood wrote: > > Stunned. Totally and utterly stunned. I would have thought there > > would be Java floating around in Zope's bowl before Perl! Perl? > > Jeeze... what a great but very scary thing. I trust that DC will do > > it right. > > I'd agree with the scary part. Scaaary. I hope DC will do it right indeed, > and that I can't *see* the Perl if I don't want to see it. DTML is bad > enough already! :) Zope doesn't ship with any components written in SQL, it is probably the case that it won't ship with any components written in Perl. Also, this is through the web style perl methods ala PythonMethods (I believe, I'm not on top of this project). ALthought it may be possible, I'mguessing that writing a full fledged Zope product in perl would be trickier than it's worth. Don't worry, like Paul said, Zope has methods in many languages and more to come, Perl is a great step forward in telling people that we are not interested in excluding, but including. Sooner or later, someone on the perl side is going to spend all of their effort and come up with something that tries to be like Zope, this is a waste of effort. Look at Gnome and KDE and how they are constantly working to cross purposes, inventing the same interfaces at thousands of levels in subltly or grossly different ways. It's actually pretty depressing when you think about how an unified effort would far exceed the sum of the two incredible efforts to date. We don't want that in the web world. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] ANN: Perl For Zope
"J. Atwood" wrote: > > The real question is: Can we get all those Perl people to help with > our documentation? :) I hope so. > I, for one, will welcome my Perl brothers (actually sent the ANN > post to two of them five seconds after reading it) and hope that > together we can bring Zope to everyone. This is the right attitude. We don't want these folks coming in here with their years of experience and thousands of lines of code and snub them. We don't want flame wars. We don't want people asking questions and getting answers like "oh, well why the hell are you using Perl anyway?". I for one don't know perl, can't read it, never used it and probably won't unless I'm paid to; and if someone asks me a question about their snip of perl code I won't be able to help them. But if someone asks me about a peice of well documented Zope interface, it shouldn't matter which language they speak, they should get a clear answer. This is more important than the syntax anyday. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] ANN: Perl For Zope
"J. Atwood" wrote: > > Gang (and Paul), > > I guess my major concern (and mosts) would be that one of the reasons > we like Python/Zope/OO is that it is not Perl and does not have all > that quirky structure and if you introduce Perl into Zope it would be > like throwing a pair of red socks in your white wash, we all go pink. > > After some thought last night (no sleep loss) I could see it working > in the way of a product or a Perl Method and not disturbing the DTML > code (please don't do this). Exactly, we don't let python disturb DTML, why would we let perl? > The end result though is that if we can get the Perl community to > start using/developing on Zope it is a big win. This is, in fact, one of the key points. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] The agony of the ZOPE Documentation
Shane Hathaway wrote: > > [EMAIL PROTECTED] wrote: > > > > I'm sorry, but I have to say, the ZOPE documentation, despite efforts > > to improve it, is absolutely, positively horrible. Not because the > > content isn't there, but because the tools to access it simply suck. > > I can type in searches on both zope.org and zdp.zope.org and though I > > KNOW the information is there, I can't get the results I want! > > Constantly, when I am recommending ZOPE to people, the ONE thing I and > > they complain about is the horrible documentation! > > It would be very helpful if you would take a look at the new help > system in the latest alpha release. Or even better, check out Zope via > CVS and try that out. I may be biased, but I think it's real progress. > > Just push the "help" button on most management screens. Yes the help system is great. Also check out the various Wikis on Zope.org where the new flava of documentation is emerging as we speak. http://www.zope.org/Members/WikiCentral -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Broken ZWiki
Simon Michael wrote: > > looks like this has been answered, good. I'll check out ZWikiWeb > soon. Maybe there's something we can do to integrate or market the two > better for newcomers ? > > Or better, someone could cook up a nice, simple, zope product > dependency checker that works like debian's apt.. Or like Roxen's module upgrader. Pretty please. -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-dev] Cannot rename or move my ZClass object
Please don't cross-post to both lists. Lindell Alderman wrote: > > I have derived a ZClass from the Folder base class and it works > great, except I cannot rename or move my ZClass. How can I fix this? What is the error and traceback that you get when moving or renaming fails? -- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral ___ 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] The Zope Weekly News
The Zope Weekly News The opinions expressed in Zope Weekly News are solely the author's, and not the opinions of Digital Creations, The Zope Community at-large, or the Spanish Inquisition. If you have something newsworthy to contribute, don't forget to include it in the ZWN Wiki: http://www.zope.org/Members/michel/MyWiki/ZopeWeeklyNews This weeks edition can be found at: http://www.zope.org/Members/michel/MyWiki/ThirdWeekofMay2000 And Now The News: o Brian Lloyd announces the new Zope 2.2 alpha release. This release includes lots of cool features and bug fixes, Yehaa!: http://lists.zope.org/pipermail/zope/2000-May/025624.html o Brian Hickman wants to discuss Zope and Law Office information handling: http://lists.zope.org/pipermail/zope/2000-May/025621.html o Cary O'Brian asks about Zope and Pyro, and Kevin Dangoor chimes in: http://lists.zope.org/pipermail/zope/2000-May/025687.html o Chris Withers and Wolfgang Strobl discuss some of the downsides of HTTP and how it works with the new security system: http://lists.zope.org/pipermail/zope/2000-May/025693.html o 'hramos' announces zopers.org, a Portuguese Zope Portal: http://www.zope.org/Members/hramos/Zopers o New Information Paradigms Ltd announces free and commercial Zope hosting, good luck guys!: http://www.zope.org/Members/NIP/FreeZope o The allways busy Chris Withers announces Squishdot 0.3.4: http://www.zope.org/Members/chrisw/Squishdot/ o 'lalo' has created a nifty Product browser and RSS channel on Zope.org: http://www.zope.org/Members/lalo/products_annouce o Rebecca Fisher is looking for Zope developers in New York: http://lists.zope.org/pipermail/zope/2000-May/025772.html o Stephen Nosal asks how to pronounce Zope, and our very own Chris McDonough fills him in: http://lists.zope.org/pipermail/zope/2000-May/025836.html http://lists.zope.org/pipermail/zope/2000-May/025837.html o Anthony Baxter warns us about using pthreads with Solaris: http://lists.zope.org/pipermail/zope/2000-May/025859.html o Paul Everitt announces a little 'gem' in the CVS version of Zope, mountable databases!: http://lists.zope.org/pipermail/zope/2000-May/025928.html Don't forget to join us next week! - Michel Pelletier ___ 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 )