RE: [Zope] deleting objects
> > I created a dtml method named "dev_header" in my site root. In another > folder further down my tree I created another "dev_header" with different > info. I then deleted the second "dev_header" (/news/dev_header) expecting > my pages to then grab the "dev_header" from the root directory, but they > don't. Why? > May be your browser cache is playing tricks on you 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 )
[Zope] DC ListAdmin: IMPORTANT!! (was PFH)
List Admin: please contact me by mail as soon as possible ! I need your help. Dear Mailing List Members, dear Mailing List Admin, please excuse me for sending the MSWord-Document into the mailing list. _I was not intending to spam you, it was a mistake !!!___ I have no idea how it may have gotten there. Very IMPORTANT: List Members, please help me undo this mistake and delete the document wherever you may have it. The document is of no use or worth for you, you cannot make money of it or whatever. It's something I've been working on and I do not want to lose my job over it for publishing internal documents. Again: sorry. Regards, Heiko Stoermer -- [EMAIL PROTECTED] innominate AG networkingpeople fon: +49.30.308806-0 fax: -77 web: http://innominate.de ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PFH
See my other posting from today. I'm sorry. H. -- [EMAIL PROTECTED] innominate AG networkingpeople fon: +49.30.308806-0 fax: -77 web: http://innominate.de ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZOPE, Xemacs, html-mode, & indentation
Bob: You are 100% correct. I didn't want to write a DTD for dtml (though this is probably the "right" solution) so instead I went searching for other options. Here's what I found: If you use hm--html-mode, there's a variable called: hm--html-tag-name-alist where I added some definitions for dtml. (basically I just added dtml-in and a multi tag and dtml-var as a single tag). Then, I set up xemacs to use hm--html-mode for the dtml stuff. To do the indentation with hm--html-mode then, you have to hilight the area you want indented, then hit TAB. Problem solved! And now I have beautifully indented dtml docs!! If anyone wants a copy of what I put in my .emacs for the tag-name-alist. Let me know. On Mon, Jun 05, 2000 at 06:31:41PM -0700, Bob Finch wrote: > > "jiva" == [EMAIL PROTECTED] <[EMAIL PROTECTED]> writes: > > jiva> I am using XEmacs with it's html mode to work on some dtml code. I > jiva> can get it to switch to html mode easily for the dtml stuff even > jiva> though I'm not naming my files with .html extensions by doing: M-x > jiva> html-mode Unfortunately, no matter what I do, I can't get it to do > jiva> it's indentation on anything unless it's actually *started* in the > jiva> html-mode (ie: I do a new file with a .html extension) > > I just ran into the same problem. It appears that XEmacs html-mode > parses the html in the buffer. If it doesn't parse correctly, the > indentation stuff doesn't work. To see this, try editing something > without any dtml in it -- indentation should work fine. As soon as > you add at the top, indentation stops > working. > > I guess the fix is to write a dtml DTD for XEmacs html-mode. Has > anyone already done this? > -- The trouble with a kitten is that When it grows up, it's always a cat -- Ogden Nash. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: import-export
Ok, after poking around in the code and debug (!) I finally realized that the ID being passed to manage_exportObject is not the filename, but the id of the object to export. So a couple of examples to clarify: to export a folder from the top level (root), you can do two things: 1. Check the checkbox and click the Export... button near the bottom of the screen. This will open the import/export form with the id already filled in. Simply click Export. 2. Click import/export at the top of the screen and type the name of the Folder (or other object) you wish to export, then click Export. You should recieve some positive confirmation telling you the filename. This will create a file called var/ObjectName.zexp (ObjectName being the name of the folder or object you chose) So how do I export everything from root? Ok .. this is a real bugger, I can't believe it's taken me so long to figure it out (I was first checking file permissions etc). Answer: Make sure you are in the root folder and then click the Export... button near the bottom of the screen. LEAVE THE ID BLANK and click Export. Again a positive confirmation will appear telling you have just created a file var/.zexp - of course I don't need to remind you (but I will) that the .zexp file will be hidden on Unix machines as are all . prefixed files. I think that is hardly intuitive but doesn't seem to cause too many problems as I couldn't find any posts about it .. Has this just happened in a recent release, I know some workings to do with XML Exports were added?? The help text on the import/export form reads "You can export Zope objects to a file in order to transfer them to a different Zope installation. You can either choose to download the export file to your local machine, or save it in the "var" directory of your Zope installation on the server." I think this is very misleading and recommend changing it. Regards Gresh [EMAIL PROTECTED] writes: > > Hi, > I'm also getting similar problems, that I can no longer export and it is > giving me AttributeErrors. I think I've scanned every Zope document but > cannot find any info. I am running Zope from my own user and not from a > root account and I have also installed WorldPilot (perhaps related to > this)? > > Any ideas ... I'll post more details if I find anything, as this is > delaying a release > > Regards > Gresh > > > !- >Hi, > >My Little Problem : > >I have zope version 2.1.6 running on two servers. > >I have a folder containing dtml methods and zsqlmethods > which I want to >import from server A to server B >It doesn't work. It used to work, but not any more. this > is the error it >throws... > > >File > /usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/ObjectManager.py, line >484, in manage_importObject >(Object: ElementWithAttributes) >File > /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZODB/ExportImport.py, line >266, in importFile >ExportError: (see above) > >Help > >Regards >Ronnie > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] News tickers
Hello! I'm looking for News Products (yes, I know KM News :). I need a news ticker with the followin features: -- rubrics in news item - one item can belong to few rubrics (it is news item about both Zope and Python, e.g) -- one customizeable interface for entering news items in different rubrics -- few different customizeable interfaces for viewing every rubric -- SQL storage (SQL seems much more natural storage for news items than ZODB) -- export to RDF/RSS I am not in hurry, I'll write such Product myself if I couldn't find one ready. Also I'm looking a Product to import RDF/RSS files - I rememeber seeing it somewhere. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Mozilla problem
On Tue, Jun 06, 2000 at 01:27:48PM -0700, Timothy Grant wrote: > I've recently started experimenting with Mozilla M16. While my pages > seem to work beautifully, I can't get into any of the management > screens. When I add /manage to the URL, I get nothing, no authentication > box no error, nothing. > > Am I missing something, or is Mozilla missing something? Probably Mozilla missing something. M16 is still in development, I assume you took a nightly. And with all nightlies, there are big bugs in there, regressions, instabilities. They are being ironed out, when M16 comes out it should work again. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: Re: [Zope] detail record editing
> On Mon, 5 Jun 2000, Robert Del Huerto wrote: > > > database. I'm stuck after that. The form only has one 'action' so how > > would I get it to handle the right function depending on the button that > > was pushed? I'm no HTML expert but I've looked around quite a bit for > > It can be done with some badly documented magic (see > http://www.zope.org/Members/Zen/howto/FormVariableTypes when zope.org > is working again :-P) > > Example: > > > > > > Wow, live can be so easy ;-) But I wonder if I can pass additional parameters to the methods. No, does not fit my needs as the parameter to pass has always the same name but different values for each method. > > In this example, the action is never called. If the user clicks on > the delete button, the method 'delete' (generally in the same folder as this This is not necessary as I have found out. You can give full qualified paths to the methods eg. . > form) is called instead of the action. Similarly, click on Modify and the > method called 'modify' is called instead of the action. > > I'll try to remember to put this up as a tip on zope.org when its possible... > > -- > Stuart Bishop Work: [EMAIL PROTECTED] > Senior Systems Alchemist Play: [EMAIL PROTECTED] > Computer Science, RMIT University TIA, Andreas ** This email message has been swept by MIMEsweeper for the presence of computer viruses. Francotyp-Postalia AG & Co. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Mozilla problem
If you're on Linux, there's some godawful problems recently with the auth dialog. The last couple of days don't even bring up a dialog. http://ftp.mozilla.org/pub/mozilla/nightly/2000-06-05-08-M16/ works to the point of popping up a dialog, but to enter the password you have to enter it into another window, copy it, and paste it into the password box. To get one that actually does auth properly on Linux, go back to late April :( Anthony >>> Martijn Pieters wrote > On Tue, Jun 06, 2000 at 01:27:48PM -0700, Timothy Grant wrote: > > I've recently started experimenting with Mozilla M16. While my pages > > seem to work beautifully, I can't get into any of the management > > screens. When I add /manage to the URL, I get nothing, no authentication > > box no error, nothing. > > > > Am I missing something, or is Mozilla missing something? > > Probably Mozilla missing something. M16 is still in development, I assume you > took a nightly. And with all nightlies, there are big bugs in there, > regressions, instabilities. They are being ironed out, when M16 comes out it > should work again. > > -- > Martijn Pieters > | Software Engineermailto:[EMAIL PROTECTED] > | Digital Creations http://www.digicool.com/ > | Creators of Zope http://www.zope.org/ > | The Open Source Web Application Server > - > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] (Database Recovery) Help: Weird KeyError with 2.2.0a1
Is there any way to salvage any of my database? I created a very cool ZClass and I really don't want to start over from scratch. Like I said, I'm very new to Zope, but I did notice that I could just do a 'strings Data.fs' and pull out most of my custom DTML, but I was hoping there would be an easier way. It seems that most of the database is intact. Does anyone have any ideas? Also, to help prevent this in the future, if I periodically copy my Data.fs, what happens if I'm copying the database while Zope is writing to it, will my copy not suffice as a recoverable database in the event the database gets corrupted? Thanks in advance, Pete On Tue, Jun 06, 2000 at 10:59:07PM +0100, Phil Harris wrote: > Pete, > > This doesn't really fix the underlying problem, but if you'd like to carry > on working with Zope you can rename the file /var/Data.fs and Zope > will recreate a new (good) Data.fs for you. > > hth > > phil > [EMAIL PROTECTED] > > - Original Message - > From: "Pete Kazmier" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: 06 June 2000 22:41 > Subject: [Zope] Help: Weird KeyError with 2.2.0a1 > > > > Hi, > > > > I was playing around with 2.2.0a1 and I've stumbled upon a corrupted > > database I think. I'm new so please bare with me. I was hoping > > someone could help me recover. Everytime I start Zope, I get the > > following error: > > > > 2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for > > '\000\000\000\000\000\000\000\006' > > Traceback (innermost last): > > File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate > > File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load > > (Object: /home/zope/var/Data.fs) > > File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load > > (Object: /home/zope/var/Data.fs) > > KeyError: > > > > Traceback (innermost last): > > File "/home/zope/z2.py", line 547, in ? > > exec "import "+MODULE in {} > > File "", line 1, in ? > > File "/home/zope/lib/python/Zope/__init__.py", line 144, in ? > > OFS.Application.initialize(c) > > File "/home/zope/lib/python/OFS/Application.py", line 308, in > > initialize > > app.Control_Panel.initialize_cache() > > File "/home/zope/lib/python/ZODB/Connection.py", line 421, in > > setstate > > p, serial = self._storage.load(oid, self._version) > > File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load > > try: return self._load(oid, version, self._index, self._file) > > File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load > > pos=_index[oid] > > KeyError: > > > > Please tell me that I am not screwed. Right before this problem > > occurred, I had packed my database, but things were working ok > > immediately following that, then a few moments later, I kept getting > > errors, so I stopped the Zope processes and restarted. > > > > Could someone please point me in the right direction? I wasn't sure > > if I was supposed to post this to the dev list since I'm using an > > alpha, but I'm hoping those people read this too. > > > > Thanks, > > Pete > > > > -- > > Peter Kazmier http://www.kazmier.com > > PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654 > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Peter Kazmier http://www.kazmier.com PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Passing all POST variables?
On Fri, 26 May 2000 15:14:56 +0200, Martijn Pieters <[EMAIL PROTECTED]> wrote: >> Shame there's no "safe pickle option" that allows only numbers, strings, >> lists, tuples and dictionaries. > >There is actually. It's called marshal: > > http://www.python.org/doc/current/lib/module-marshal.html > >which supports just that list of types, plus code objects. Or look at http://www.zope.org/Members/htrd/howto/MiniPickle if you need: * Recusive data structures * Compatability with the next version of python Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] News tickers
On Wed, 7 Jun 2000, Oleg Broytmann wrote: >Also I'm looking a Product to import RDF/RSS files - I rememeber seeing > it somewhere. Check out RSS Channel and XML Document. You'll find them at zope.org. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] News tickers
On Wed, 7 Jun 2000, Timothy Wilson wrote: > >Also I'm looking a Product to import RDF/RSS files - I rememeber seeing > > it somewhere. > > Check out RSS Channel and XML Document. You'll find them at zope.org. Thanks! I remeber I saw something like that but don't remember exact title for the Product. RSS Channel - now it seems obvious :) Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to catch URL in DTMLDocuments/Methods
Hi, As a Zope newbie I'm still not entirely sure about how to capture the URL as Zope traverses the tree. For instance, my site called with : mysite.com/members/ian/preferences/10 "members" is a DTMLMethod or Document. What I want to do is trap the URL once it has entered "members". So inside "members" I want to do things like : 1. Get the next part of the url ("ian") and run an SQLMethod using this as a parameter (calling SQLMethods I understand). 2. Get the part after that, "preferences" and pull in my "preferences" DTML page from /templates/preferences, possibly passing it the next part of the url "10" as a parameter to that DTML page. The conceptual problem I have is that DTMLMethods/Documents don't have a parameters tag like SQLMethods do, so I don't see how I can "trap" parts of the URL like SQLMethods do and use them internally in my Method/Document. I know I keep asking this type of question, please bear with me 'till I get it! - Ian Sparks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] (Database Recovery) Help: Weird KeyError with 2.2.0a1
Pete Kazmier wrote: > Is there any way to salvage any of my database? I created a very cool > ZClass and I really don't want to start over from scratch. Like I > said, I'm very new to Zope, but I did notice that I could just do a > 'strings Data.fs' and pull out most of my custom DTML, but I was > hoping there would be an easier way. Checkout the Tranyliser product/how-to(?) on zope.org and see if you can chop off the broken bits... Your packing the ZODB may make this not useful, but it's worth a try :( cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] News tickers
about RSS, the url is : http://www.xml.com/pub/2000/02/23/zope/index.html 0,02$ - Original Message - From: "Oleg Broytmann" <[EMAIL PROTECTED]> To: "Zope Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 10:22 AM Subject: [Zope] News tickers > Hello! > >I'm looking for News Products (yes, I know KM News :). I need a news > ticker with the followin features: >-- rubrics in news item - one item can belong to few rubrics (it is news > item about both Zope and Python, e.g) >-- one customizeable interface for entering news items in different > rubrics >-- few different customizeable interfaces for viewing every rubric >-- SQL storage (SQL seems much more natural storage for news items than > ZODB) >-- export to RDF/RSS > >I am not in hurry, I'll write such Product myself if I couldn't find one > ready. > >Also I'm looking a Product to import RDF/RSS files - I rememeber seeing > it somewhere. > > Oleg.(All opinions are mine and not of my employer) > > Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] >Programmers don't die, they just GOSUB without RETURN. > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] News tickers
On Wed, 7 Jun 2000, Olivier Deckmyn wrote: > about RSS, the url is : > http://www.xml.com/pub/2000/02/23/zope/index.html Thanks! Sure, good article. (Thanks, Amos.) Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Combining a search and uniqueValues..
Hi, I want to find the unique values from a search. This first search return (among others) som keywords (emneord) which unique values I want get(second search). Is it possible to do this with standard dtml and catalog or should dive into some python coding ? -- Regards - Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] manage primitives documentation
Hi all! I just have a problem of documentation does anyone know where I can find the doc about all the manage_something primitives (like manage_upload(), manage_clone()...) My problem is that I want to insiantiate an abject from a method, but I can't find the good primitive. Thanks for your attention... :^) Pio. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
but I can't find the answer... can I set a local variable in zope on a dtml page eg thanks josh on ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
josh on wrote: > can I set a local variable in zope on a dtml page > Yup: Nice syntax, huh? ;-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] manage primitives documentation
I think you are looking for Zope Quick Reference http://www.zope.org/Members/ZQR Look at Full version of that. > On Wed, 07 Jun 2000 15:59:26 +0200, Pierre Rougier <[EMAIL PROTECTED]> said: PR> Hi all! I just have a problem of documentation does anyone PR> know where I can find the doc about all the manage_something PR> primitives (like manage_upload(), manage_clone()...) My problem PR> is that I want to insiantiate an abject from a method, but I PR> can't find the good primitive. PR> Thanks for your attention... :^) PR> Pio. Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Veveří 102, 659 10 Brno, Czech Republic e-mail: mailto:[EMAIL PROTECTED] tel:+420-5-41 558 394 FAX:+420-5-41 558 390 "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
+[ Chris Withers ]- | josh on wrote: | > can I set a local variable in zope on a dtml page | > | | Yup: | | | | Nice syntax, huh? ;-) Tsk tsk, that's global :-) ... ... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] stupid question I guess
Is it global to the page, or local to the page ?!?!? - Original Message - From: "Andrew Kenneth Milton" <[EMAIL PROTECTED]> To: "Chris Withers" <[EMAIL PROTECTED]> Cc: "josh on" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 3:05 PM Subject: Re: [Zope] stupid question I guess > +[ Chris Withers ]- > | josh on wrote: > | > can I set a local variable in zope on a dtml page > | > > | > | Yup: > | > | > | > | Nice syntax, huh? ;-) > > Tsk tsk, that's global :-) > > > ... > ... > > > -- > Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton > The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | > ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon > PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] FSSession newbie problem
Hello, i'm trying to use the FSSession to have a little shopping cart for e-commerce. I can initialize the dictionary named "cart" and it is created in the datafile. When i try to update it with the data from my form i get the error: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'None' object has no attribute 'update' For curiosity i tried the example bundled in README.txt of the FSSEssion and macically i obtain the same error. this is the code i used: # This is only to check that the form passes the values correctly Can anyone help me? Thanks ATIS ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
At 2:55 pm +0100 7/6/00, Chris Withers wrote: >josh on wrote: >> can I set a local variable in zope on a dtml page >> > >Yup: > > > >Nice syntax, huh? ;-) > >Chris now now :) (tested) blah blah blah ... ie the scope of the variable don't fall into the trap of doing this blah blah blah ... ie the scope of the variable 'cos Zope won't let you enter it (it thinks that the 'I' is a variable name). Remember that anything in " " is evaluated as a Python expression... try this instead blah blah blah ... ie the scope of the variable You can have multiple variables set too... blah blah blah ... ie the scope of the variable :: See lib/python/DocumentTemplate/DT_Let.py for more details... hth tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] www.zope.org cataloging server problem?
I have been trying to catalog a "News Item" and a "Product Release" inside www.zope.org, but I get the error === System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for more information. For additional technical information, please refer to the HTML source for this page. Thank you for your patience. Error type: NameError Error value: getRoles == Zope Error Zope has encountered an error while publishing this resource. Invalid request The parameter, submit, was omitted from the request.Make sure to specify all required parameters, and try the request again. ... regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] stupid question I guess
At 12:05 am +1000 8/6/00, Andrew Kenneth Milton wrote: >+[ Chris Withers ]- >| josh on wrote: >| > can I set a local variable in zope on a dtml page >| > >| >| Yup: >| >| >| >| Nice syntax, huh? ;-) > >Tsk tsk, that's global :-) > > >... >... > Tsk tsk tsk - it don't work ;) ... ... tone.. -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] stupid question I guess
Look at dtml-let tag. It is what are you looking for. Any other way is REQUEST.set (name, value). > On Wed, 7 Jun 2000 14:48:37 +0100, "josh on" <[EMAIL PROTECTED]> said: jo> but I can't find the answer... can I set a local variable in jo> zope on a dtml page eg jo> jo> thanks josh on Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Veveří 102, 659 10 Brno, Czech Republic e-mail: mailto:[EMAIL PROTECTED] tel:+420-5-41 558 394 FAX:+420-5-41 558 390 "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
+[ Phil Harris ]- | | Is it global to the page, or local to the page ?!?!? It's global to all methods you call from that point onwards. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] stupid question I guess
+[ Tony McDonald ]- | | >Tsk tsk, that's global :-) | > | > | >... | >... | > | | Tsk tsk tsk - it don't work ;) Yeah I'm busted, I use REQUEST.set() d8) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to catch URL in DTMLDocuments/Methods
- Original Message - From: Ian Sparks <[EMAIL PROTECTED]> > The conceptual problem I have is that DTMLMethods/Documents don't have a > parameters tag like SQLMethods do, so I don't see how I can "trap" parts of > the URL like SQLMethods do and use them internally in my Method/Document. There isn't an automatic way to do this; SQLMethods are specially written to be traversable. There are three (fairly complex) ways to do this that I can think of: 1. Subclass DTMLDocument and mix in the class SQLMethods use for traversability. Probably hard. 2. Use a PythonMethod, and make one of its parameters 'traverse_subpath'. Then you can traverse through this PythonMethod and use the parameter to do what you want. Not bad, but you need to know PythonMethods. 3. Use a SiteAccess Access Rule on the folder, having it check to see if the next object to be traversed is your DTMLMethod. If so (and if the next name doesn't start with 'manage'!) remove the rest of the traversal path and store it in a REQUEST variable. Not too bad, but SiteAccess is fragile (it doesn't work with Zope 2.2a). Cheers, Evan @ digicool & 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] FSSession newbie problem
Hi Marcello On Wed, 7 Jun 2000, Marcello Lupo wrote: > and macically i obtain the same error. > this is the code i used: > > > > > > Shouldn't the above be: Pavlos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Newbie Question,
Newbie Question, I wish to use use the date of a database file in my dynamic html code. For example, this database was last updated on 06/06/2000. I suppose that there must be a dynamic html tag that zope uses. What could it be? I looked at all the documentation and have yet to discover it.Any help is apprechiated. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] WebObjects
Luciano Ramalho wrote: > > [snip] > The object-relational mapping mechanism WO uses, however, is very advanced and, > in a basic level, easy to use too. Classes are written in Java by a case-like > tool and automatically bound to tables. In fact, programmers rarely have any > contact with SQL: all necessary queries are generated automatically by the IDE > (which runs only on NT and MacOS X). > [snip] As I recall (from a WebObjects demonstartion I sat through a long time ago), WO creates the most godawful mangled URLs that I had ever seen. As a result, a WO site cannot be spidered by search engines, or converted to a static copy using wget. HTH, Michael Bernstein ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] (no subject)
On Tue, 6 Jun 2000, Alexandre A. Drummond Barroso wrote: > We are posting e-mails about it on the list for a while and nobody answered, > so I must think that nobody on Zope universe is using Oracle 8i (neither NT > nor Linux Oracle 8i client). I installed DCOracle for a client using 8i. The only thing I recall having to do that wasn't in the instructions was getting a copy of a Setup file that worked with 8i, which I found posted to one of the Zope mailing lists. Other than that the installation was pretty simple, and the Zope part was completely trivial (install package, create connector, create ZSQL query, and go...) This was under Debian Linux. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to catch URL in DTMLDocuments/Methods
Evan Simpson wrote: > 3. Use a SiteAccess Access Rule on the folder, having it check to see if > the next object to be traversed is your DTMLMethod. If so (and if the next > name doesn't start with 'manage'!) remove the rest of the traversal path and > store it in a REQUEST variable. Not too bad, but SiteAccess is fragile (it > doesn't work with Zope 2.2a). I was going to implement this as a seperate PathHandler product for Zope 2.2 when the beta comes out. someone has already sent me their alpha code for 2.1.x but it was apparently unstable. cheers, Chris PS: Evan is SiteAccess(or its replacement) going to ship as an 'official' product for Zope 2.2? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] WebObjects
Michael Bernstein wrote: > As I recall (from a WebObjects demonstartion I sat through a > long time ago), WO creates the most godawful mangled URLs > that I had ever seen. As a result, a WO site cannot be > spidered by search engines, or converted to a static copy > using wget. Zope's not too hot on this either what with index_html instead of index.html the problem of "is /something' a 'file' or a 'folder' from wget's point of view?" IIRC, it currently would download a zope folder object as a single file :( I've also been bitten by this in Wiki's since links aren't generated with absolute_url and so I sometimes get /MyWikiFolder/OneWikiPage/AnotherWikiPage which throws up a nasty __getitem__ exception (particularly in Netscape, which seems to like appending / onto the end of FrontPage in the URL box...) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Searching Catalog for Permissions/Roles
Zopists, Does anyone know if it's possible to create a search in the ZCatalog based on permission or role. Such as: Search of the things from the ZCatalog where the current user has the 'View' permission for the text 'smith'. I love to push the envelope. :) -- Jason Spisak [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie Question,
CURTIS David wrote: > I wish to use use the date of a database file in my dynamic html code. For example, >this database was last updated on 06/06/2000. I suppose that there must be a dynamic >html tag that zope uses. What could it be? I looked at all the documentation and >have yet to discover it.Any help is apprechiated. ...obviously... :( This will give you the time your current object was last modified. Why has this not been renamed to something sensible? We lost PrincipiaSearchSource a while back, I hope this goes the same way ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] escaping with dtml?
Hello, I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far: -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Newbie question: graphics in subdirs
I'm going to rewrite my web site in dtml and am using the latest stable Zope. Well, I should say I'll rewrite it after I get over this infuriating newbie problem I have. :-) ` I'm trying to get Zope to display an image from a subdir. I've whipped up a simple dtml document called "test". Test contains this: This is the Document. Now show a graphic: That references an image file in the root directory called logo.jpg. Everything works, it displays fine. However, I want to keep all of my commonly used image files in a subdirectory called /images. So I create a folder called "images", upload another copy of logo.jpg into it, everything's fine. I change the dtml in the "test" document to be "". And it doesn't work, giving me an error message of: Error Type: KeyError Error Value: /images/logo.jpg Looking through the docs and tutorials I can't find anything on this -- and I know it's mindlessly simple. Can someone whack me with a clue-bat? TIA. -- Regards,| Debian GNU/ __ o http://www.debian.org . |/ / _ _ _ _ _ __ __ Randy | / /__ / / / \// //_// \ \/ / ([EMAIL PROTECTED]) | // /_/ /_/\/ /___/ /_/\_\ http://www.golgotha.net | because lockups should only be for convicts. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] stupid question I guess
wow great answer, thanks that has just peeled off another layer of zope mystery for me. can this be put in the dynamic faq? josh on - Original Message - From: Tony McDonald <[EMAIL PROTECTED]> To: Zope List <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 3:17 PM Subject: Re: [Zope] stupid question I guess > At 2:55 pm +0100 7/6/00, Chris Withers wrote: > >josh on wrote: > >> can I set a local variable in zope on a dtml page > >> > > > >Yup: > > > > > > > >Nice syntax, huh? ;-) > > > >Chris > > now now :) > > (tested) > > > blah blah blah ... ie the scope of the variable > > > > don't fall into the trap of doing this > > blah blah blah ... ie the scope of the variable > > > > 'cos Zope won't let you enter it (it thinks that the 'I' is a > variable name). Remember that anything in " " is evaluated as a > Python expression... > > try this instead > > blah blah blah ... ie the scope of the variable > > > > You can have multiple variables set too... > > blah blah blah ... ie the scope of the variable > :: > > > See lib/python/DocumentTemplate/DT_Let.py for more details... > > hth > tone > > > -- > Dr Tony McDonald, FMCC, Networked Learning Environments Project > http://nle.ncl.ac.uk/ > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: graphics in subdirs
+[ Randy Edwards ]- | I'm going to rewrite my web site in dtml and am using the latest stable | Zope. Well, I should say I'll rewrite it after I get over this infuriating | newbie problem I have. :-) | ` | I'm trying to get Zope to display an image from a subdir. I've whipped up a | simple dtml document called "test". Test contains this: | | | | This is the Document. | Now show a graphic: | | | There's more than one way to skin the cat, however:- You have a '.' in your id which means doing stuff like:- are out in any clean way. You can which will also work. You can say; -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie question: graphics in subdirs
>However, I want to keep all of my commonly used image files in a > subdirectory called /images. So I create a folder called "images", upload > another copy of logo.jpg into it, everything's fine. I change the dtml in > the "test" document to be "". And it doesn't > work, giving me an error message of: > > Error Type: KeyError > Error Value: /images/logo.jpg > >Looking through the docs and tutorials I can't find anything on this -- > and I know it's mindlessly simple. Can someone whack me with a clue-bat? > TIA. 1. Don't use URL separators in dtml expressions. Use dots 2. You shouldn't have used dots in the logo.jpg name as it confuses zope, look below what that gets you ;-): sorry 'bout that (untested, but should work) Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Q: Accessing ZSQL methods from Python
Hi all, my question is what type or value is returned by a ZSQL method that is invoked from Python? Or, more precisely, how can I determine if a field contains a NULL value? Sample code: def myZSQLAccessFromPython(self, aParameter): """myZSQLAccessFromPython() returns a record set from a database table.""" #Call the ZSQL method rs = self.zsqlMethod(parameter=aParameter) if len(rs) == 1: #I expect exactly one result column if rs[0].field is not NULL: <- How to code this? rs[0].field == None does not work Do_some_interesting_work() TIA, Andreas ** This email message has been swept by MIMEsweeper for the presence of computer viruses. Francotyp-Postalia AG & Co. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: graphics in subdirs
At 11:35 am -0400 7/6/00, Randy Edwards wrote: > > >This is the Document. >Now show a graphic: > > > > >That references an image file in the root directory called logo.jpg. >Everything works, it displays fine. > >However, I want to keep all of my commonly used image files in a >subdirectory called /images. So I create a folder called "images", upload >another copy of logo.jpg into it, everything's fine. I change the dtml in >the "test" document to be "". And it doesn't >work, giving me an error message of: > try It can get complex quickly though - I'm sure I remember something on thew Zope list about this, I think it was a word of wisdom from Phil Harris... hth tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] stupid question I guess
josh on wrote: > > wow great answer, thanks that has just peeled off another layer of zope > mystery for me. > > can this be put in the dynamic faq? what dynamic FAQ? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: import-export
On Wed, 7 Jun 2000 [EMAIL PROTECTED] wrote: > So how do I export everything from root? Ok .. this is a real bugger, I > can't believe it's taken me so long to figure it out (I was first checking > file permissions etc). > > Answer: > Make sure you are in the root folder and then click the Export... button > near the bottom of the screen. LEAVE THE ID BLANK and click Export. [...] > I think that is hardly intuitive but doesn't seem to cause too many > problems as I couldn't find any posts about it .. Has this just happened in > a recent release, I know some workings to do with XML Exports were added?? Probably because a somewhat more intuitive (but not completely intuitive!) method for copying the whole Zope tree is to just copy the Data.fs file. I know I never noticed the unobvious method for exporting the root for that reason (that is, I never thought to try to do it). --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to know if a list contains a specified item ?
Hello everybody, I would like to know if there is a function which allows to know if a list contains a specified item. Thanks Fred ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] R: [Zope] escaping with dtml?
- Original Message - From: Riku Voipio <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 5:28 PM Subject: [Zope] escaping with dtml? > Hello, > I'm trying to get some doubleqoutes to the final document, > but I've been unsuccesful so far: > > > > Maybe is not the best solution, but works... Interesting, isn't it? :) PM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 Weekly News for June 7th
This week's somewhat abbreviated ZWN includes Zope at LinuxTag and the Open Source Convention, lots of documentation progress, including a chat, a new home for Zope Studio and more! 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. The Zope Weekly News now has a "permanent home", http://www.zope.org/Documentation/ZWN. And Now For Something Completely Different: Coming Events LinuxTag There will be a Zope booth at the "LinuxTag", http://www.linuxtag.de in Stuttgart, Germany from June 29th to July 2nd. In addition to the booth that will be there for the whole conference, there will be 2 rooms available for talks and discussions on the business day, Thursday 29th. We are still looking for people who want help organizing the conference, give some talks and attend the booth. Generally, it would also be great to know who is planning to be at the conference. Please send feedback to "Stephan Richter", mailto:[EMAIL PROTECTED] See "Zope at Linuxtag", http://www.zope.org/Members/Linuxtag/ for the most up-to-date information. The Open Source Convention This "enormous convention", http://conferences.oreilly.com/oscon2000/ hosted by O'reilly, is shaping up to be pretty interesting. Aside from the State of Python, given by Guido von Rossum, there's also going to be a "talk on the CERT Advisory", http://www.oreillynet.com/pub/w/evening_events.html about cross-site scripting, a web-wide security issue that the Zope Community was among the first to begin implementing security policies for: they'll land with zope 2.2. Zope is going to be at the conference in force, with: - Paul "opening eyes to the Zope-Mozilla initiative", http://www.oreillynet.com/pub/e_sess/853 - Ryan telling the world "you can have web IMAP and collaboration", http://www.oreillynet.com/pub/e_sess/725 - Christopher, as always, concentrating on the "edification of the community", http://www.oreillynet.com/pub/w/python_tutorials.html Documentation -- by Amos Lattier This Week * Stephan Richter finished reviewing, fixing, and expanding online help content for the Zope management screens. We hope to get him set up with CVS and get this checked in later this week or next week. In addition to brining the help content up to date, he is converting it to use Structured-Text. This will make editing help pages much easier and will eliminate the two step process of editing XML, rendering to HTML and then checking the HTML into CVS. This should make life much easier for the Zope team when they are documenting their work. * Amos released updated "Zope training material", http://www.zope.org/Members/Amos/TrainingSlidesAnnounce that he and Michel Pelletier have been working on for the past couple weeks. There are twenty slide presentations which cover such topics as DTML, application design, and developing Python products. Note: the PowerPoint slides are built by a Python script that reads Structured Text and talks to PowerPoint over COM - cool. * Michel and Amos participated in an IRC chat about documentation. A transcript of the chat "is availiable", http://www.zope.org/Documentation/Chats Thanks to everyone who participated and posed great questions. We even got a volunteer commitment out of the chat - way to go ZDP folks! * Amos is putting together a wiki that details all official Zope documentation projects, their schedules and status. Look for an announcement before the end of the week. We hope that this along with weekly ZWN summaries will give folks a much better idea of what were doing on the documentation front. * Michel is working on turning his in progress O'Reilly book on Zope into a piece of official Zope documentation. If all goes well the book will replace the current Guides. We are really excited about this and think that if we are successful that this will do a tremendous amount for Zope documentation. Next Week * We plan to complete and make public the Wiki that describes all official Zope documentation projects, their schedules and status. * We plan to focus on getting docs in shape for Zope 2.2 Specifically this means shoring up the help system docs, API docs, and tutorial. This all won't get done next week, but hopefully we can make some good progress and stay on track to have everything up to date for the 2.2 final release. If we are really fast we may even sneak a DTML reference into the Zope 2.2 final release. * Hopefully we will have final word on the status of converting Michel's Book into official documentation. That means we can start the process of making the Book public and opening it up to community critique and
[Zope] R: [Zope] How to know if a list contains a specified item ?
- Original Message - From: QUIN Frédéric <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 6:14 PM Subject: [Zope] How to know if a list contains a specified item ? > Hello everybody, > > > I would like to know if there is a function which allows to know if a list > contains a specified item. You can use: If you want the (1st) index of the item in list you must use something like No item No item you have to use try because "list.index(item)" rise an exception if the "item" is not in list.. PM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] What is "favicon.ico" and why is it an error?
I have a few Zope sites email me any error reports and both of the sites (different machines) get this error about two or three times a day. Traceback: Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 151, in publish File /usr/local/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py,line 124, in traverse File /usr/local/zope/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /usr/local/zope/lib/python/ZPublisher/HTTPResponse.py, line 511, in notFoundError As it looks for this "favicon.ico" Anyone seen this? It is happening on two different instatallations (2.1.4, 2.1.6) on RH Linux 6.1 Thanks, J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to know if a list contains a specified item ?
Hi! On Wed, 7 Jun 2000, QUIN Frédéric wrote: > I would like to know if there is a function which allows to know if a list > contains a specified item. Learn Python! ... Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 is "favicon.ico" and why is it an error?
On Wed, 7 Jun 2000, J. Atwood wrote: > As it looks for this "favicon.ico" M$ IE is looking for this file to provide some "niceness" on a page. Search Internet for longer explanations - there are many. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 is "favicon.ico" and why is it an error?
So even though there are no references to it in the HTML MIE is looking for it? Is there anyway to fool it? Can I just put a blank DTML Document? Why would MIE be checking the server for that file? Add this to the many reasons that I hate MIE! J > On Wed, 7 Jun 2000, J. Atwood wrote: >> As it looks for this "favicon.ico" > > M$ IE is looking for this file to provide some "niceness" on a page. > Search Internet for longer explanations - there are many. > > Oleg.(All opinions are mine and not of my employer) > > Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] > Programmers don't die, they just GOSUB without RETURN. > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] accessing lists from dtml
Hello all, If I have a REQUEST variable that equals a list, like this: ['ITEM_NUMBER','PRICE'] How would I get ITEM_NUMBER and PRICE into separate variables? The following code gives me a screen full of the appropriate values (using an external method), but I can't figure out how to use the results: Displays: ['003020','149.95'] ['003021','79.99'] .. .. .. TIA -- Mike Mikkelsen [EMAIL PROTECTED] Micro Business Systems http://microbsys.com Fresno Linux Users Group http://linux.fresno.ca.us It's all GNU to me! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to know if a list contains a specified item ?
On Wed, Jun 07, 2000 at 06:14:22PM +0200, QUIN Frédéric wrote: > > I would like to know if there is a function which allows to know if a list > contains a specified item. > Fred, You can use Python's "x in list" syntax as follows ... . . ... -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What is "favicon.ico" and why is it an error?
Internet explorer is looking for an favicon.ico or a custom icon file that customizes your bookmark entry into a users book mark list. If you get an icon editor and make a custom icon 16x16, I think, icon then you can put it in your home directory and when someone bookmarks the site they will see your cute little icon in their bookmarks. Now that you have done this, you have to put it in every directory accessible to IE to prevent excessive logging of errors on your server. - Original Message - From: "J. Atwood" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 1:33 PM Subject: Re: [Zope] What is "favicon.ico" and why is it an error? > So even though there are no references to it in the HTML MIE is looking for > it? Is there anyway to fool it? Can I just put a blank DTML Document? Why > would MIE be checking the server for that file? > > Add this to the many reasons that I hate MIE! > > J > > > > On Wed, 7 Jun 2000, J. Atwood wrote: > >> As it looks for this "favicon.ico" > > > > M$ IE is looking for this file to provide some "niceness" on a page. > > Search Internet for longer explanations - there are many. > > > > Oleg.(All opinions are mine and not of my employer) > > > > Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] > > Programmers don't die, they just GOSUB without RETURN. > > > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] What is "favicon.ico" and why is it an error?
On Wed, 7 Jun 2000, J. Atwood wrote: > So even though there are no references to it in the HTML MIE is looking for > it? Is there anyway to fool it? Can I just put a blank DTML Document? Why > would MIE be checking the server for that file? Becasue if it finds the file in a directory it would display it - and site admin could put different icons in different directories. Return error 404 should be enough, if there is no such files. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: accessing lists from dtml
Sorry, but... Nevermind, I got it: ^^^ !!! On Wed, 07 Jun 2000 10:40:59 mikk wrote: Hello all, If I have a REQUEST variable that equals a list, like this: ['ITEM_NUMBER','PRICE'] How would I get ITEM_NUMBER and PRICE into separate variables? The following code gives me a screen full of the appropriate values (using an external method), but I can't figure out how to use the results: Displays: ['003020','149.95'] ['003021','79.99'] .. .. .. TIA -- Mike Mikkelsen [EMAIL PROTECTED] Micro Business Systems http://microbsys.com Fresno Linux Users Group http://linux.fresno.ca.us It's all GNU to me! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re-posting a form
Hi, I have two cases where I have a user in Zope and capture information from them, then need to re-post the data to another page. One case is I am using WorldPilot and have customized it to have many instances of it, segregating users into individual companies (a bit like hot office). I have different instances of WorldPilot and attempt to jump to that instance from a logon screen as such Company: User: Password: The instance of WorldPilot is named the same as Company: (self.REQUEST['Company']) and the user becomes [EMAIL PROTECTED] I have no problems with getting the objects, calling the worldpilot object correctly and passing in my REQUEST object, however there seems to be some problem with redirection, or setting the base url. I have tried setting this with REQUEST['RESPONSE'].setBase but with no luck. It seems like I need to redirect the browser to the correct URL for this to work, but then I lose my REQUEST object! Does anyone have any ideas, I think I'm lacking some understanding of the HTTP protocol, and getting myself deeper and deeper into a mess ! The other case is where I actually have to read the information from a form and then perform a HTTP POST to cgi program which handles my email admin. I'd appreciate any pointers on how to get Python/Zope to perform a HTTP POST to an external program. Many Thanks Gresh smime.p7s
Re: [Zope] What is "favicon.ico" and why is it an error?
Thanks for the help Oleg, So, does the user get an error page or is the server just sending me an error cause it is requesting a file that does not exist. I will try testing with IT (it is not effecting my Mac IE 4.5/5.0) J > From: Oleg Broytmann <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Wed, 7 Jun 2000 17:47:27 + (GMT) > To: "J. Atwood" <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] What is "favicon.ico" and why is it an error? > > On Wed, 7 Jun 2000, J. Atwood wrote: >> So even though there are no references to it in the HTML MIE is looking for >> it? Is there anyway to fool it? Can I just put a blank DTML Document? Why >> would MIE be checking the server for that file? > > Becasue if it finds the file in a directory it would display it - and > site admin could put different icons in different directories. > Return error 404 should be enough, if there is no such files. > > Oleg.(All opinions are mine and not of my employer) > > Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] > Programmers don't die, they just GOSUB without RETURN. > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] stupid question I guess
> sure - where is it? :) great question, it took me ages to finds this again, I think it could be linked from zope resources, or documentation, it is in in the zdp: http://zdp.zope.org/projects/zfaq/faq/DTML#951171060 this is a link to the appropriate section, there is an answer to the question, how do I define variables in zope, which has the dtml-let answer, but it is less explicit and fleshed out than yours. josh on ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] R: [Zope] accessing lists from dtml
> Hello all, > > If I have a REQUEST variable that equals a list, like this: > > ['ITEM_NUMBER','PRICE'] > > How would I get ITEM_NUMBER and PRICE into separate variables? > > The following code gives me a screen full of the appropriate values (using an external > method), but I can't figure out how to use the results: > > > > > > Displays: > ['003020','149.95'] > ['003021','79.99'] Must be something like (untested , but should work , I hope): PM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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.org Hidden Stats
Just making my daily visit to Zope.org and stumbled across the statistics at http://www.zope.org/About/Statistics Very nice... There is a bunch more on the about page http://www.zope.org/About/ Cheers to DC and letting us see what they are doing behind the scenes How are you going to spend that $1,000 when you get ZEO working? :) JMA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Greetings,
CURTIS David wrote: > > Greetings, > > I wish to use use the data of the database file in my html code. For example, > this database was last updated on 06/06/2000. I suppose that there must be a >dynamic html tag that zope uses. What could it be? I looked at all the >documentation and have yet to discover it.Any help is >apprechiated. I think you're looking for bobobase_modification_time , like It's called that for hysterical reasons. ethan mindlace fremen zopatista community liason (thanks to MJ for the "correct" spelling of zopatista) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] www.zope.org cataloging server problem?
Hung Jung Lu wrote: > > I have been trying to catalog a "News Item" and a "Product Release" inside > www.zope.org, but I get the error I'm working on this one. thanks, -- ethan mindlace fremen zopatista community liason (thanks to MJ for the "correct" spelling of zopatista) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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.org Hidden Stats
"J. Atwood" wrote: > > Just making my daily visit to Zope.org and stumbled across the statistics at > > http://www.zope.org/About/Statistics > > Very nice... > > There is a bunch more on the about page > > http://www.zope.org/About/ > > Cheers to DC and letting us see what they are doing behind the scenes > How are you going to spend that $1,000 when you get ZEO working? :) Thanks! Why do you call them hidden? /About/ just shows you a synopsis of hardware, software, and Statistics. We might change our priorities with the move to ZEO :) ~ethan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 is "favicon.ico" and why is it an error?
"J. Michael Mc Kay" wrote: > Now that you have done this, you have to put it in every directory > accessible to IE to prevent excessive logging of errors on your server. Did someone say 'acquisition'? You could just have one icon in the root folder and let it be acquired :-) As to what this icon is for: Fire up IE and go to the bookmarks menu. See those little icons? That's favicon. If one isn't found, the default one is used. You have two choices: Put up with the errors and stick to your principles, or do a bitmap and sell your soul ;-) It makes little to no difference to IE users... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Hidden Stats
> Why do you call them hidden? /About/ just shows you a synopsis of hardware, > software, and Statistics. I just have been surfing on Zope (way too much) for at least the last year and never seen them. > We might change our priorities with the move to ZEO :) I bet! It would still be very cool to see you do a couple of boxes in a ZEO configuration under a grand. J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] escaping with dtml?
will do what you are trying to do - Original Message - From: Riku Voipio <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 10:28 AM Subject: [Zope] escaping with dtml? Hello, I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far: -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Greetings,
On Wed, 7 Jun 2000, ethan mindlace fremen wrote: > CURTIS David wrote: > > I wish to use use the data of the database file in my html code. For example, > > this database was last updated on 06/06/2000. I suppose that there must be a >dynamic html tag that zope uses. What could it be? I looked at all the >documentation and have yet to discover it.Any help is >apprechiated. > > I think you're looking for bobobase_modification_time , like > > If, on the other hand, you really want the last updated date of the Data.fs file (ie: the whole ZODB database), you will probably have to write an external method to snarf it and return it. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Dynamically Picking which object to display
I'm fairly new to Zope, so this may be a dumb question, and my vocabulary could be wrong, so please bear with me. I'm in the middle of building an e-commerce solution for my company, and we're evaluating Zope (and PHP and Servlets, but that's immaterial) as the platform on which to base this solution. That doesn't necessarily mean anything other than to give you context. One of the problems I'm facing right now is how to display a particular object based on a value. For example, let's say a user tries to access www.foo.com/MyAccount/CCInfo. If the user has authenticated, I need to show him the obviously sensitive data he has requested. If he is not authenticated, however, I need to give him a login screen which, for argument's sake, is in the DTML document Login in the root folder. How would I go about doing that? Am I making sense? Thanks... -- Jason Lee | My German is as good as my jujitsu, which is to say, Programmer/Analyst | "I don't know German." -- Tycho Brahe ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How do you changing web port address of Zserver installed as a service on Win NT4?rvice on Win NT4?
I am looking for some guidance on how to change the web port address of my Zserver. I can use the -P option START.BAT file and start it manually but I haven't been able to figure out how to change it when I am starting the Zserver up as a service on a WinNT 4 box. It works fine on port 8080 but I now need to move it off of that port. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 you changing web port address of Zserver installedas a se rvice on Win NT4? rvice on Win NT4?
On Wed, 7 Jun 2000, Ian Thomas wrote: > I am looking for some guidance on how to change the web port address of my > Zserver. I can use the -P option START.BAT file and start it manually but I > haven't been able to figure out how to change it when I am starting the > Zserver up as a service on a WinNT 4 box. > It works fine on port 8080 but I now need to move it off of that port. A quick search for "NT and service" on zope.org reveals: http://www.zope.org/Members/teyc/howNTService Hope this helps. --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] YA newbie question
I've got a newbie question that I can't seem to find an answer to after checking docs/faqs. This is sort of design-related. Presently I write web pages as tabled modules which are each put into various *.html files. I then string pages together with various modules using server side includes along with whatever specific code/text goes into that page. I figured this would be easy to do with Zope. I created a subdirectory called "modules" and put some modules into that; for example, "leftbuttons" is a dtml method containing a table data block which contains the standard left menu button HTML. I figured I could whip up a page and at the appropriate place in that page, do a '' and have that code inserted into the page. That was my thinking. "leftbuttons" views properly by itself. However, when I try that dtml-var statment above, the page displays raw HTML. Obviously I'm using a wrong tactic or am not grasping a concept here. Anyone want to smack me (again:-) with a clue-bat? TIA. -- Regards, | Moore's Law: Every 2 years CPU power will double. .| Randy| Gates' Law: Every 18 months software speed will halve. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] ZopersORG has returned to life!!!
Yellow, After 2 days without sleeping ZopersORG team was able to restore all the missing data in ZopersORG site (www.zopers.org)! Thank GOD we made a full backup the day before this big accident!!! The hard drives on our server just went nuts and then dead!!! We had to wait for the new drives and then restore all the code and SQL databases! We hope this doesn't happen again but we're sorry if you tryied to see the site and there was nothing to see! ZopersORG is back online!!! :-) regards --- Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] escaping with dtml?
Riku Voipio writes: > I'm trying to get some doubleqoutes to the final document, > but I've been unsuccesful so far: In a Python expression, you can use "chr(34)" to add a quote, e.g. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WorldPilot - Regular messages are attachments?
Bryan Stillwell writes: > Here's the traceback I received: > > Sorry, a Zope error occurred. >
Re: [Zope] WorldPilot - Regular messages are attachments?
On Wed, 7 Jun 2000, Dieter Maurer wrote: > Bryan Stillwell writes: > > Here's the traceback I received: > > > > Sorry, a Zope error occurred. > >
Re: [Zope] How do you changing web port address of Zserver installed as a service on Win NT4?rvice on Win NT4?
>I am looking for some guidance on how to change the web port address of my >Zserver. I can use the -P option START.BAT file and start it manually but I >haven't been able to figure out how to change it when I am starting the >Zserver up as a service on a WinNT 4 box. >It works fine on port 8080 but I now need to move it off of that port. > > Look in the z2.py file in your directory (say c:\zope or something). you can change the http port in there (it is rather heavily commented; you should have no problem). Restart your service and your set. Alternatively you might tweak the registry at key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ \Parameters\start with the -p switch. But the first is easier i'd think ;-) Also see: http://zdp.zope.org/projects/zbook/book/VII/PlatformInstallation/InstallDraf ts/instwindraft3/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: graphics in subdirs
eh tone, your using my name in vain again ;) - Original Message - From: "Tony McDonald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Zope List" <[EMAIL PROTECTED]> Sent: 07 June 2000 16:56 Subject: Re: [Zope] Newbie question: graphics in subdirs > At 11:35 am -0400 7/6/00, Randy Edwards wrote: > > > > > >This is the Document. > >Now show a graphic: > > > > > > > > > >That references an image file in the root directory called logo.jpg. > >Everything works, it displays fine. > > > >However, I want to keep all of my commonly used image files in a > >subdirectory called /images. So I create a folder called "images", upload > >another copy of logo.jpg into it, everything's fine. I change the dtml in > >the "test" document to be "". And it doesn't > >work, giving me an error message of: > > > > try > > > > > It can get complex quickly though - I'm sure I remember something on > thew Zope list about this, I think it was a word of wisdom from Phil > Harris... > > hth > tone > -- > Dr Tony McDonald, FMCC, Networked Learning Environments Project > http://nle.ncl.ac.uk/ > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] dtmll-in variables
is there an easy way to get a record count of total number of items or iterations returned by a dtml-in tag? I want to say if more than 26 records are returned then don't do this. i.e. 26> do this do this thanks for your time josh on ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] dtmll-in variables
> is there an easy way to get a record count of total number of items or > iterations returned by a dtml-in tag? --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Help on synchronous methods?
How can I synchronize external method completion with DTML method invocation? [and do I need to?] I found an unexpected bug in a Zope content management app I am developing: the actual publishing process invokes an External Method that uses urllib and ftplib to pull rendered documents from Zope and PUT them to a web server via FTP. One of the documents is a table of contents of the "current" documents, which is generated dynamically by a DTML method that looks at a property of each document in the folder. The last step in the publishing process is "archiving", a DTML method that clears the "current" property in all documents. What appeared to be happening was that the external method was still chugging along when it came time to grab the table of contents; meanwhile, the archive method had already cleared the "current" property, so there were no documents listed in the table of contents. First question: is my hypothesis likely? Are methods - in particular an external method - executed strictly sequentially (which is what I would have assumed) or is it possible that the DTML archive method could have completed before the prior external method did? Second question: if methods are _not_ executed synchronously, is there any way I can force them to be? Hoping-my-conclusions-are-wrong-not-my-assumptions-ly yours, Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] seeking help on roles, authorization, permission
I've largely been able to ignore most of the Zope security mechanisms until now, but I have this new intranet app that's causing me problems. I have a folder called Reuters that has my application's methods; it has a subfolder called Staging that has documents being reviewed and subsequently published. I need to be able to limit the publishing to specific individuals. I created users in the Users Folder in my Reuters directory. I also created an editor role in my Reuters folder, and gave it what I thought were appropriate permissions, including manage_properties. I assigned the editor role to each of my new users. Users work in the Staging folder. When my users try to publish - which invokes a method that changes properties on documents in the Staging folder and also properties of the Reuters folder, they are prompted to log in by their browser. However, their usernames and passwords do not seem to work, and after 3 tries, they get a Zope error page saying they do not have permission to manage_changeProperties. I don't get it. Any clues? Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Dynamically Picking which object to display
- Original Message - From: "Jason Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 07, 2000 3:50 PM Subject: [Zope] Dynamically Picking which object to display > I'm fairly new to Zope, so this may be a dumb question, and my vocabulary could > be wrong, so please bear with me. > > I'm in the middle of building an e-commerce solution for my company, and we're > evaluating Zope (and PHP and Servlets, but that's immaterial) as the platform on > which to base this solution. That doesn't necessarily mean anything other than > to give you context. One of the problems I'm facing right now is how to display > a particular object based on a value. For example, let's say a user tries to > access www.foo.com/MyAccount/CCInfo. If the user has authenticated, I need to > show him the obviously sensitive data he has requested. If he is not > authenticated, however, I need to give him a login screen which, for argument's > sake, is in the DTML document Login in the root folder. How would I go about > doing that? Am I making sense? Thanks... You're asking quite a reasonable question. If you use one of the alternate authentication systems (like LoginManager or Generic User Folder), you can make a login scheme that uses cookies with a custom login screen. I'm hoping to soon have a package that works with LoginManager to be a little more plug and play. The way it works is pretty straightforward. You just set the permissions such that the user would have to authenticate in order to view that data. Zope's authentication machinery will kick in, and LoginManager would then put your login screen up. Kevin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: dtmll-in variables
Try: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.3.html For accessing variables containing hyphen inside expressions, use something like: 26"> ... (The above assumes that "firetruckname" is an attribute of an item inside the "firetruck" list.) Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: YA newbie question
--- In [EMAIL PROTECTED], Randy Edwards <[EMAIL PROTECTED]> wrote: >... >appropriate place in that page, do a '' and >have that code inserted into the page. > >That was my thinking. "leftbuttons" views properly by itself. >However, >when I try that dtml-var statment above, the page displays raw HTML. >Obviously I'm using a wrong tactic or am not grasping a concept here. >Anyone want to smack me (again:-) with a clue-bat? TIA. No, I won't smack you. Newbies and Oldies alike go through this problem again and again. It's part of the Zope Voodoo ritual that everyone has to dance. :) In short, use and see the magic before your eyes. Now, a longer explanation. When you use "module.leftbuttons", Zope does NOT call the leftbuttons method, intead, it tries to get its representation string (I think.) You will soon get used to the weirdness of DTML, and you will know that the following three approaches (1) (2) (3) all have subtle differences that haunt Newbies and Oldies alike. If you can tell the difference, congratulations, you've graduated from the Zope Elementary School and understood how the namespace voodoo works. Otherwise, keep consulting the manuals or the newsgroup. :) Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] possible security flaw? - and, request for a phone conference.
Hello, First off, sorry for the cross-posting of this message to admin and to development. I'm a software developer for a major ISP in the Midwest region of the USA. Recently we began evaluating Zope for use in our web application development, internally and for our clients, and have been quite pleased with the wealth of features and add-ons available*; However, I need two points addressed if possible: 1) We are running Zope 2.1.4 mapped to the root of the apache install on a Linux (mandrake 7.0) box, and have found a rather nasty security - or at least, its what I'll call a nasty problem - because if you don't know about it, it could really bite you in the butt. Basically, if a user with manager privileges to a folder changes their password to be empty, then anyone (from permitted domains) can access the management screen for that folder Without Logging On... Zope assumes that you are the user without the password and treats you as if you have those rights. I found this problem when one day the welcome Zope page (default from install) didn't prompt me for a password when I clicked to enter the management screen. I did not realize what had happened until I went under the 'undo' tab and saw that all of my actions while I was snooping around for the problem were being listed as being done by one of the other developers... I went into the acl_users and fixed their password and everything is back to normal. I've tested this by setting my own password to an empty string, and it lets me log in... From a security standpoint, It should probably prompt for a user name and password, and simply accept a empty field for the password As the password for that user... Anyway, my point is to either inform the community of the bug, if it isn't known, or to find out if it is known and has been fixed in the newest release... If it has not been fixed in the newest release, I will be glad to create and provide a patch... 2) As an experienced web developer, I'm very keen on new technologies that can be reused and make my life easier - thus Zope is a godsend. However, my management is hesitant to start using Zope on a regular basis for our projects - they feel it is unproven and possibly unstable: Now, I realize, and have informed them of the facts, that Digital Creations makes their living off of Zope, and that new businesses are springing up almost everyday that are Zope-centric, and that many contracting/development firms are embracing it whole heartedly... But, my management is still kind of hesitant. Is there anyone among you in the community who would be willing to write about your experience with Zope in the professional development arena, to address their concerns? Even better, Would anyone be willing to participate in a conference call q & A session on Zope's suitability for use in professional web development? I cannot offer money for these, but I can promise my undying gratitude, and, I can promise that any and all add-ons and patches we create for Zope would be released back to the community at large... As a large website app dev firm, our contributions could be significant... Please email me privately if you wish to possibly participate in the phone conference. Thank you for your time and attention! * I have already made two modifications to the Zope source, one dealing with making 'border' a built in property (and used during tag output) of the image object. and another, simple hack to the basic dtml parsing routines that makes your dtml development a little faster by requiring less typing. Both of these will be available under my member area on Zope.org. Hopefully these will be the first of many patches and add-ons I get to contribute. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] seeking help on roles, authorization, permission
On Wed, Jun 07, 2000 at 07:11:38PM -0400, Craig Allen wrote: > I've largely been able to ignore most of the Zope security mechanisms until now, > but I have this new intranet app that's causing me problems. > > I have a folder called Reuters that has my application's methods; it has a > subfolder called Staging that has documents being reviewed and subsequently > published. I need to be able to limit the publishing to specific individuals. > I created users in the Users Folder in my Reuters directory. I also created an > editor role in my Reuters folder, and gave it what I thought were appropriate > permissions, including manage_properties. I assigned the editor role to each of > my new users. > It's not clear to me how your permissions are set-up. Are your users defined in the Reuters folder and the Staging folder is acquiring the permissions from Reuters? -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] and Content-transfer-encoding
Dear All: I'm using to send messages of Chinese characters from Zope. From time to time I got wierd mail delivery behaviors. I was told then that mail header/message body must follow RFC-822 and RFC-2047 standard with proper encoding, if not in US-ASCII. Basically these RFCs are talking about methods of encoding for non-US-ASCII characters. My question is: How do I do this in Zope? Big thanks in advance! Chien-pin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Several users having problem accessing field names of a ZSQL Method
I am a new Zope user and am attempting to access field names of a ZSQL method. I have read and tried to use the How-To : "Access the field names and fields of any arbitrary ZQSL query" by teyc. The code suggested there has not worked. For example, when I use the code: , I get the error: Error Type: KeyError Error Value: SQL.names I have nested the above code in code that references a ZSQL method, as well as trying several other permutations, but nothing has worked. I'm wondering if this is a name lookup problem. In checking this news group I see that several others have had similar problems. See: http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++&Start=1&Count=20&SearchOrder=1&ExactMatch=&SearchOrder=1&Query=sql.names Can anyone tell me (us) how to correctly do this, or what mistake I (we) am making. Version information: Zope version: Zope 2.1.6 (binary release, python 1.5.2, win32-x86) Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] Regards, David H. Jones Boeing Phantom Works, Mathematics and Computing Technology 425-865-6924 425-865-2964 (FAX) [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WebObjects
Chris Withers wrote: > > Michael Bernstein wrote: > > As I recall (from a WebObjects demonstartion I sat through a > > long time ago), WO creates the most godawful mangled URLs > > that I had ever seen. As a result, a WO site cannot be > > spidered by search engines, or converted to a static copy > > using wget. > > Zope's not too hot on this either what with index_html instead of > index.html the problem of "is /something' a 'file' or a 'folder' from > wget's point of view?" Wget would regard /something as a file. bur it would regard /something/ as a default document in a folder. > IIRC, it currently would download a zope folder object as a single file > :( > > I've also been bitten by this in Wiki's since links aren't generated > with absolute_url and so I sometimes get > /MyWikiFolder/OneWikiPage/AnotherWikiPage which throws up a nasty > __getitem__ exception (particularly in Netscape, which seems to like > appending / onto the end of FrontPage in the URL box...) This sounds like a Wiki problem rather than a Zope problem. As Zope will access /something and /something/ the same, it's trivial to make sure that all URLs that link to an object include a trailing /. Wget assumes that when it crawls to a something/ location that it is accessing the default file for the directory, so it saves the resulting page as something/index.html . Whatever webserver you use can be set to regard index.html as the default file, so the link (which is still pointing to /something/) will work just fine. The only problem crops up with inline links that don't conform to the /something/ format. All automatically generated links (as in navigation bars) on the sites I create end with a trailing /. Cheers, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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, Zope, and PowerPoint slides
[...] > * Amos released updated "Zope training material", > http://www.zope.org/Members/Amos/TrainingSlidesAnnounce > that he and Michel Pelletier have been working on for > the past couple weeks. > > There are twenty slide presentations which cover such topics > as DTML, application design, and developing Python products. > > Note: the PowerPoint slides are built by a Python script > that reads Structured Text and talks to PowerPoint over COM - cool. How about taking the extra step and using 'PythonPoint' to make a pdf presentation for non-MS'ers? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I seem to get more than a few errors emailed to me, and am trying to track down how they are occurring. I never see these errors myself which makes it frustrating. I know the url where these occur. Most of them occur at forms. How can I get the full url including the parameters of the queries that cause the problems? ( Interestingly most of the errors occur with DNS of the client browser based in the US whereas my target audience is home in New Zealand. ) - -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOT6Ba7TRdIWzaLpMEQK/UwCgwBccUuTQt53UH1UBgU5Qfpw6lfwAn1rI IbypvR/Er3amtKjZkX9ze33g =zHAB -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Several users having problem accessing field names of a ZSQL Method
~ ~ I am a new Zope user and am attempting to access field names of a ~ ZSQL method. I have read and tried to use the How-To : "Access ~ the field names and fields of any arbitrary ZQSL query" by teyc. ~ The code suggested there has not worked. ~ ~ For example, when I use the code: ~ ~ ~ ~ , ~ ~ ~ ~ ~ I get the error: ~ Error Type: KeyError ~ Error Value: SQL.names ~ ~ I have nested the above code in code that references a ZSQL ~ method, as well as trying several other permutations, but nothing ~ has worked. I'm wondering if this is a name lookup problem. ~ ~ In checking this news group I see that several others have had ~ similar problems. See: ~ ~ http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchVi ew=++&Start=1&Count=20&SearchOrder=1&ExactMatch=&SearchOrder=1&Query=sql.nam es Can anyone tell me (us) how to correctly do this, or what mistake I (we) am making. I think i can tell you. When zope encounters something inside quotes, it generally treats it as a python expression. Python is treating what you thought was a hyphen as a minus sign and trying to subtract the variable "index" from the variable "sequence" in this line of code: The easy solution is to name your variable sequence_item instead of sequence-item. I think there's also a way to actually name a variable sequence-item, but it involves an underscore and parens _( ) and some more funky syntax, but it's a lot easier to just stop using hyphens in variable names. hth, ~c Version information: Zope version: Zope 2.1.6 (binary release, python 1.5.2, win32-x86) Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] Regards, David H. Jones Boeing Phantom Works, Mathematics and Computing Technology 425-865-6924 425-865-2964 (FAX) [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Unless not quite the opposite of if?
Greetings, I'm sure this should be obvious to me... but I can't seem to get this code to work. It's supposed to send you to another page if a var has not been passed... The problem is, when i test the page, it seems to pass over that that, and go right on with the page. So, I tried to be a little more explicit: ... Again... goes straight through. What's going on here? When I use: (as I have done in MANY cases), it always evaluates true if 'parmName' exists in the current context. Bring out that ol' clue stick, and swing it my directions a few times, because I need help. -- Have a better one, Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )