Re: [Zope] ZWiki RecentChanges problem with 2.1.6
Chris Withers wrote: [snip rubbish ;-)] This actually isn't the case, someone had just helpfully turned off 'Access Contents Information' higher up the tree... Doh! 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] Deleting folder-like objects.
Bill Anderson wrote: 2) Deleting a folder effectively removes everything under it (well, you [snip] catalog (leaving a nasty mess behind them...) Yeah, that can be annoying. Is there is any reason for it? 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] Netscape Image Problems (LoginManager?)
[EMAIL PROTECTED] wrote: Well I have determined that it has nothing to do with PTK or Login Manager, well I think anyway... I would agree as I've experienced this exact same problem with Netscape 3.04 and my Squishdot site at http://www.bay-c.co.uk cheers, Chris PS: I'd love to know what's causing this... PPS: Is anyone who's experiencing this using SiteAccess? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Netscape Image Problems (LoginManager?)
Jon Delheimer wrote: Checking the Z2.log file shows that Zope is returning a 500 status code (Internal Server Error) when the broken images appear. That's not good :( That means something is causing the requests to go astray. Can you see what the requested object is compared with the URL you would expect? 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] Broken ZWiki
Jason Cunliffe wrote: when I install ZWiki Product, the FrontPage, HelpPage etc are all brokendoes it rely on another class being present? ZWikiWeb Either see Evan's post or read: http://www.zope.org/Members/chrisw/ZWikiWeb/install ...particularly the bit about ZWikiWeb requiring ZWiki 0.6 to be installed ;-) I have to stress this again, ZWikiWeb is merely a wrapper for ZWiki. ZWiki is the real product and I'd like to thank Simon for giving us such an amazing product. cheers, Chris PS: Now, if I could just rename a Wiki page through the Wiki interface and have all links to that page updated... ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Updating one data.fs from another
I export a whole subtree from by Dev instance and import it into the production instance... HTH, Chris Graham Chiu wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I do development on my site on my notebook, and then rather than overwriting my production data.fs, I then manually make the changes to the production data.fs by create/cut/paste from my development data.fs which is all very painful. I tried ftp'ing into my development site, but some things like TinyTables are 0 bytes in size and can't be accessed. My browser also doesn't support cut/paste of whole documents from one data.fs to another, just the data whereas it supports this within a data.fs. Is there some other way to propagate changes from a development site to a production site? - -- Regards, Graham Chiu gchiuatcompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOSlQv7TRdIWzaLpMEQKLPQCfWcsRKQkXIP5nwaRuetiqpJ/PQ/oAoJf+ q0bL2DJvxMEceE8fCtupQPuq =kroL -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 ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] does this app exist?
Heiko Stoermer wrote: What I can tell you is this: if you develop a "ZScheduler" and it becomes part of the Zope Standard distribution, the Zope community will be VERY glad. ZScheduler already exists, it's just very buggy. Check the mail archives for 'ZScheduler' and have a look at: http://www.zope.org/Members/lstaffor/ZScheduler 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] Zope Newbie Questions
Hi Daniel, Resources I'd recommend: The Zope Documentation Portal - http://zdp.zope.org The Zope Site - http://www.zope.org The Zope Mailing List - [EMAIL PROTECTED] (see http://lists.zope.org/mailman/listinfo/zope for details) I've copied your questions to the zope list in the hope that someone with time can help you out :-) Good luck, Chris PS: Short answers: - Try adding 'Image' objects for your graphic needs. - With the Free Zope Hosting option, I don't think there's any way you can do a bulk upload, but Itamar's loadsite.py utility may be able to help... - If you like DreamWeaver, I'd recommend our Professional Zope Hosting option, as DreamWeaver should work fine with this... Daniel Muller wrote: Hi, Thank you for setting up my free Zope account. I've been very interested in this product for some time but have not been able to play with it until now. I think I may be in over my head but here goes anyway. Essentially I have no programming skills. My HTML is good and Dreamweaver seems to take care of the rest. My talent lies more on the design side of the business. (check out http://www.gradcenter.marlboro.edu/ and http://www.kapellandkostow.com/) I plan to use your service to recreate Marlboro College's web site as a means of exploring zope. So far I've been able to rebuild the basic directory structure and now I'm hoping to upload some graphics files. Must this be done one at a time or is there a mechanism for uploading entire directories at once? Does ftp mean anything in zope? Where should this question best be asked? (I'm sure you are far to busy to field newbie questions on free accounts) Thanks again for this wonderful opportunity. Daniel -- Daniel Muller Director of Internet Development Marlboro College (802) 251-7613 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Really dumb newbie question
Andy Gates wrote: dtml-if action == "add" dtml-if "action=='add'" Been there, done that, learned the magic incantations ;-) The " " makes it into a python expression... 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] dtml-in REQUEST
try just plain dtml-var REQUEST That on it's own will probably give you what you want... Chris kwan wrote: I remember I saw somewhere about it. but I couldn't search it out again. Can anyone tell me the correct way to do things like following? dtml-in REQUEST dtlm-var "key":dtml-var "value" /dtml I want to check the indivial item inside the REQUEST one time at a time. but if I do dtml-in REQUEST I think it is not actually a list so that it is usable by dtml-in tag Kwan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] The agony of the ZOPE Documentation
[EMAIL PROTECTED] wrote: I'm sorry, but I have to say, the ZOPE documentation, despite efforts to improve it, is absolutely, positively horrible. Not because the content isn't there, but because the tools to access it simply suck. Gotta agree with this :( Additionally, the zdp web site is a real nice idea that is SO poorly executed IMO as to make it totally unusable. ZDP is currently undergoing a lot of development and unfortunately I have to agree that it isn't there yet... Unfortunately, no-one is getting paid to do it, and everyone who is working on it would probably get fired if they spent enough time on it to REALLY get the job done... I reckon there's about 25 man weeks of work to do based on 5 people spending: -1 week to build the tools -1 week to plan the structure of the documentation -3 weeks to get ALL the Zope documentation linked in one place (which is what zdp is supposed to be...) So, has anyone got the cash? ;-) Once this is done, it will be less work to keep that documentation up to date. Hopefully, eventually, all documentation would end up on zdp.zope.org and not just be linked from it... You can't even browse the documentation without clicking through a thousand different links. I agree here too :( (I can give you specific examples of how to improve the site if you want.) Send them to [EMAIL PROTECTED], in fact, better still, JOIN [EMAIL PROTECTED] and go and make the changes yourself :-) Good luck, I think you're (or should that be 'we're all') going to need it... 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] Importing a 2.1 .zexp file into 2.2
Kevin Dangoor wrote: STRONGError Type: InvalidObjectReference/STRONGBR STRONGError Value: Attempt to store a wrapped persistent object/STRONGBR Apparently storing a wrapped object is a security hole, I bumped into a post about it in the collector after searching for ZCatalog... So, something, somewhere in your zexp has a wrapped object... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Reloading products
Seb Bacon wrote: (n.b. is there any way of reloading a product without the tedium of stopping and starting zope?) There is a very-alpha product for doing this floating around on the zope-dev list. check the archives... 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] ANN: Perl For Zope
Paul Everitt wrote: Howdy gang. Below is an announcement that we'll start distributing over the next 24 hours. I wanted to let you folks see it first. In summary: Perl Methods. Why is this a good thing? ;-) 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] ANN: Perl For Zope
Budi Wiyono wrote: Agreed... We can use COM, CORBA, SOAP, etc. On the other hand, we'll likely do even more things like this over the year: open up to COM, CORBA, etc. as method facilities. --Paul Now ya talkin :-) bring it on... 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] syndication??
Webmaster wrote: The concept is simple enough, but I just don't know how I could do the same thing in Zope. I am setting up a system where daily articles can be entered weeks in advance and will only appear on the web site when the date matches their "go live date" (easy). But I would also like the article to be emailed to my distribution email list on its "go live date". Check out: http://www.zope.org/Members/chrisw/ZopeEmail/FrontPage http://www.zope.org/Members/lstaffor/ZScheduler Both would do what you want, one isn't implemented and the other doesn't work. If other people are interested, that could change... 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] ANN: Perl For Zope
Chris McDonough wrote: This is pretty silly. Very soon we'll be forced, 'cause most Products will be in Perl (yse, I've read the FAQ and saw "no Perl Products"; it's temporary, mark you). I have to say, I'm not convinced it is. Providing Perl methods is like drilling a hole through a dyke wall. By getting loads of perl programmers on board, you suddenly have a large userbase wishing they can do more in perl, so you implement perl products. (yes, I've read the FAQ too, hence my politicians comment...) This userbase gets into hacking the core and bring perl into there. Suddenly Zope is a total mess of perl and python and the whole community shifts onto something cleaner leaving DC high and dry and spoiling a perfect solution... pessimistic, I know, but pessimism if often appropriate in computing... 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: ANN: Perl For Zope
Brad Clements wrote: [snip story about DC peddling drugs... *joke*] Yeah, fair point, but what if it goes the other 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 )
Re: [Zope] ANN: Perl For Zope
Andrew Kenneth Milton wrote: I find the whole 'perl will pollute us' mentality quite disappointing, it's worse than a bunch of school girls arguing over which all boy band is best. You never seen blokes arguing over which girl band is best ;-) I agree though since it's a moot point anyway. It's going to happen now and we just have to live with it :S 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 Email (syndication)
"Dan L. Pierson" wrote: The perfect solution involves a mailing list server integrated with Zope, e.g. ZMailman. This would probably also provide mailing list archives integrated with Zope and ZCatalog and easy integration of mailing list and PTK/Squishdot discussion traffic. This has been talked about before. IMHO, a *lot* of people would like to see it, including some of the Mailman developers, but no one has the time to do it. Check out: http://www.zope.org/Members/mindlace/MailZopeMan I like these ideas a lot, but I'd prefer to see the low-level email integration done seperately, so it can be used for other things. My dream would be for Zope to pipe an email address to a specific object/method without the need for any external mail servers or scripts... ZMailman could then very easily be built on top of this. However, if ZMailman is built, I suspect it'd be difficult to use the core functionality to do something else. What is the email equivalent of Medusa? And can we 'borrow' it in the same way? Any takers? ;-) 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] Weird interaction between int() and DateTime.timeTime
[EMAIL PROTECTED] wrote: From the python int doc string: print int.__doc__ int(x) - integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero. I _always_ get bitten by this :( Sorry for my igorance, 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] Perl Zope
Paul Everitt wrote: You're absolutely right on this. Amos' post recently described the various things in various stages of release that should give some hope for the situation. These things really are an improvement. I'm crossing my fingers that this turns into a torrent of material that turns an area that is a nightmare into an area of great pride. What part do you see ZDP playing in this? 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 Email (syndication)
mindlace wrote: I don't quite see why MailHost isn't "low level integration" Does MailHost do recieves as well as sends? My dream would be for Zope to pipe an email address to a specific object/method without the need for any external mail servers or scripts... Making Zope an MTA seems like a lot of extra work. Now, Zope as an IMAP server I could get my head around... Forgive my ignorance, but what is the difference? Well... I think that it's probably the shortest route to a functioning zope archive to use mailman- already written in python, and modular enough that we should be able to take it one step at a time. If this approach would let users email content into things like the PTK, or more generally to create Zope objects by emailing content to an address that corresponds to a Zope method or object then that's what I'm on about. Archiving mailing lists shouldn't be a big issue since there are already Zope mailing list archives that are searchable in ways currently more powerful than ZCatalog has to offer. Note that no mailing list software I know of tries to be an MTA. With sooo many different implementation issues, making zope an MTA would be a big challenge, IMNSHO. If it's not necessary, then don't do it, but if it is to get true mailing of content into Zope then lets get started on it it now so the end result arrives sooner... 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] Deprecation of dtml-var ?
Kevin Dangoor wrote: Or, how about a dtml-expr tag (which could even start out as a simple synonym for dtml-var) so that people won't be confused about what is python and what is a variable lookup with the special calling properties. This is a great idea :-) New Old--- dtml-var x dtml-var x dtml-var name="x" dtml-expr "x" dtml-var expr="x" dtml-var "x" cheers, Chris PS: didn't Paul Everitt comment on this in the Perl thread? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Traceback?
Martijn Pieters wrote: If you switch debug mode off, tracebacks will be included in error messages as HTML comments, thus rendering them invisible from the unsuspecting site visitor. Is that true even if you override standard_error_message? 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] Deprecation of dtml-var ?
Paul Everitt wrote: Shorthand notations are convenient, but when they get inconsistent, you wind up with the other P language. :^) Woudl that be the one we're welcoming into the fold? ;-) 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] Traceback? Codechange!
Martijn Pieters wrote: Do I have to copy this message to the collector and wait for a couple of months or can we do it instantly? ;-) Do you still experience the Collector as black hole? Could you report this to Tres Seaver, the person currently monitoring the COllector and cleaning it out? Thanks! It HAS got a lot better since Tres started, but there's still a load of cruft in there; stuff that's not completed but is so old that it's now irrelevant. A small point, could all searches/browsing/etc all be sorted in reverse date order? That way I wouldn't have to trudge through a lot of Zope 1.x problems just to get to the stuff that's relevant. On a more radical thought, there was talk a while back of ditching the collector in favour of a Tracker, whatever happened to that plan? 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] Wiki change notification
Shane Hathaway wrote: [snip wiki change notification] What's does NetMind actually do? The problem I see here is getting an email everytime someone hits update, which can mean you get a storm of emails when a coupla people edit a Wiki. I thought of a Zope-based solution for this but haven't had time to implement, not to mention it requires product that's bust: The idea is to only get notified once a day when a Wiki _Web_ has been changed... The folder the web is in would have a lines-type property containing the email addresses of everyone 'subscribed' to that web. And a flag called changed... any page changes, the flag gets set. Once a day (needs ZScheduler :( ) a method goes and checks the flag, compiles a message containing links to all the pages that have changed (including being created or deleted...) and mails it to everyone in the list. Anyone want to implement it? ;-) 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] Wiki change notification
Shane Hathaway wrote: Heh heh... that's almost exactly what NetMind does, Chris. g Cool... I'm guessing it's not written in Zope though... ;-) 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] Working with ZopeTime
The python expression syntax strikes again :( Tom Scheidt wrote: dtml-if "date1 == 'dtml-var ZopeTime fmt=Day'" You're trying to embed DTML within python here. you really want (untested): dtml-if "date1 == _DateTime.now().Day()" 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] delete dictionary
"urs.beyeler" wrote: dtml-call "REQUEST.set('Wednesday',{'titel' : 'how to do that?'})" ... and a bit later in the document i need to delete them again ... how can i do that? no one of my DELETE-experiments worked ... thnx.urs Try the following (untested): dtml-call "del REQUEST.misc['Wednesday']" I found this in the mailing list archives at: http://zope.nipltd.com/public/lists.html 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 2.0.1 export
Paul Gresham wrote: Hi, I have an old linux system running a document store I wrote some time ago in Zope 2.0.1. I've tried exporting my document store but cannot seem to get it re-imported into the latest version of Zope. I can ftp the documents out, but of course lose all the information about each document. Does anyone have any ideas on how to get this working ? Have you tried just replacing the data.fs of a new Zope insatll with the old one? Maybe give it a try with a backup... 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] Working with ZopeTime
Shane Hathaway wrote: Close but no brownies for you. :-) Make that... dtml-if "date1 == _.DateTime().Day()" Ack, a genuine typo... I'm going home to sulk ;( 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] Squishdot 0.4.0 and Zope 2.2
Cary O'Brien wrote: [snip Squishdot 0.4.0 doesn't work with Zope 2.2] Give up, traceback below. I guess it doesn't then :( I suspect there will need to be a 0.4.3 (maybe 0.5.0) release that works with Zope 2.2. However I'll probably use the new traversal interface for it so it won't work with any versions of Zope prior to 2.2. 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] KeyError since installing Squishdot 0.4.0
On Thu, 1 Jun 2000, David Trudgett wrote: Since I installed Squishdot 0.4.0 (yesterday) on Zope 2.1.6 (under Red Hat Linux) I've been getting KeyErrors when clicking on an article's topic image, which uses an URL like this: http://myserver/Zope/testsquish/search?subject=Squishdotop=articles Yep, sorry, this was a bug introduced in the move to ZCatalog. The workaround is to append body= to the above URL. There's also a patch in the [EMAIL PROTECTED] archives. This will be fixed in 0.4.1 due on Monday once I get back from my holiday :-) 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] Current date in DTML
Ivan Raikov wrote: How can I get the current date time (preferably as a DateTime.DateTime object) in DTML? I cannot instantiate a DateTime dtml-var ZopeTime or dtml-var "_.DateTime()" 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:change strings on place
Vincent Maton wrote: I receive : 2000-04-13 I want : 13-04-2000 dtml-var "_.DateTime(date)" fmt="%d-%m-%Y" or: 13 april 2000 (this one is better but ???) dtml-var "_.DateTime(date)" fmt="%d %B %Y" Try dtml-var "_.DateTime(date)" fmt="%x" ...as well 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] fmt weirdness
dtml-var "_.DateTime()" fmt="%d %B %Y" ...works fine dtml-var "_.DateTime()" fmt='%d %B %Y' ...barfs with a 'Document Template Parse Error': Invalid attribute name, "%B", for tag dtml-var "_.DateTime()" fmt='%d %B %Y', on line 5 of index_html weird huh? ideas anyone? 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] A problem with image caching affecting certain versions of Netscapebrowsersbrowsers
Paul Browning wrote: ZWN-2000-06-01 says: "Itamar Shtull-Trauring and Chris Withers tracked down a problem with image caching that affected certain versions of Netscape browsers." http://classic.zope.org:8080/Collector/1270/view 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] stupid question I guess
josh on wrote: can I set a local variable in zope on a dtml page dtml-var variablename = 1 Yup: dtml-call "REQUEST.set('variablename',1)" 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] 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 )
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. DTML-ZOPE-FILE-DATE Any help is apprechiated. dtml-var bobobase_modification_time ...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] Zope URLS (was re: WebObjects)
Gregor Hoffleit wrote: Regarding wget: AFAICS, the problem is that traditionally in a static web server, if you try to access a URL like 'http://host/xyz' (without trailing slash), the server will return you an error '301 Moved permanently' and will point you to the new location 'http://host/xyz/'. Zope instead (if 'xyz' is a folder and there's a document 'xyz/index_html') immediately returns the rendered index_html if you request 'http://host/xyz'. Now whenever the 301 to the URL with a trailing slash happens, wget takes this as a hint that this path must have been a directory, and saves the result as index.html. With Zope, wget doesn't get this hint. Reading this again, I wonder if this qualifies as a bug in Zope, or is there a good reason for this behavior ? It's not so much a bug as a complication caused by the fact that Zope isn't a filesystem server, but an orb presented through the web (correct me if I'm slightly out ;-) For example http://host/x/y/z Could be: -A container object z (which should have a / after it?) -A dtml-document in folder /x/y/ -The result of executing the z method on the y object in the /x/ folder. -The result of executing the z method on the result of executing the y method on the x object in the root folder. I'm sure acquisition adds some more options/confusions to this... ;-) So, that's the problem, I don't know what the solution is :( I do think there must be a better way than Zope's kludgey BASE tag thing. Maybe all Zope URLs should end in a / ? Quite radical, but maybe the most sensible and least confusing? :/ 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] Zope URLS
Rik Hoekstra wrote: so what is the use of the /? Couldn't all Zope URLs end without a /? I'm afraid this is the whole problem and it's caused by relative urls. Say you're at http://host/x/y where y is a container that renders index_html to be displayed, and in that index_html you haev a ref: a href="b"b/a Now what you mean by that is http://host/x/y/b but because there's no / on the end, you actually get http://host/x/b How Zope handles this is by sticking in that godawful base tag: base href="http://hosy/x/y/" which makes relative URLs work properly. BUT, from what Gregor said earlier is a 'non-standard' way of doing it: traditionally in a static web server, if you try to access a URL like 'http://host/xyz' (without trailing slash), the server will return you an error '301 Moved permanently' and will point you to the new location 'http://host/xyz/ which is why I suggested all Zope URLs should end in / as all zope objects can be containers in the 'traditional' sense. Or we could just re-write HTTP to provide more useful information in the first place ;-) 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] Re: ZSQL Bug in 2.1.6 [patch]
Phill, The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-) Phill Hugo wrote: Sorry to bother you. I've a quick question regarding acqusition in ZSQL methods. When I pass args the method ignores the REQUEST stuff unless I specify it in the args list. Is there a way to pass one arg specifically while allowing the others to be seen in the aquired namespace? So you're calling dtml-in "SQLMethod(parm='something')"? If so, you want: dtml-in "SQLMethod(_.None,_,parm='something')" If you're doing that already, I can't help you, it's probably a bug :/ 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] Plea: sequence-item and sequence_item in 2.2?
Tony McDonald wrote: Can I make a plea that the .diff patch that Jonothan Farr posted a while back be included into the 2.2 release? http://www.zope.org/Members/jfarr/Patches/dtml-in-sv Pretty Please :-) 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] Wrong mime type sent by Zope on every page
Martijn Pieters wrote: You probably did a 'HEAD' request, at which point Zope doesn't render the page, but rather only acknowledges it's existence by returning above (bogus) response. That's not very search engine friendly :( The head should return the same type as the real document otherwise what's the point of returning a head at all?! I think this is in the collector already, but if it isn't, it should be... 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] Wrong mime type sent by Zope on every page
Martijn Pieters wrote: But what if there are side effects to calling the document? What should happen? I don't want a counter to go up or anything just because a HEAD was called on the object. This is not as black-and-white and simple an issue. The web is an imperfect medium, but returning a junk content type isn't good. I don't know the answer to the sideeffects thing, but I would come down on the site of 'if you expose something through the web, you should expect to have it spidered...' but that's cause I value search engine hits a lot. The trick would be to set the content type when the object is created and have it stored in the object, not computed for each request. Would a property suffice for that? Then, say, if you knew your DTML method was going to return plain text, you could set the content-type property to text/plain. Thsi could be returned in the head without having to evaluate the object to return the head, which is a bit innefficient. I'm sure that's possible and better than it is now, but at the absolute least the junk should cover the most likely outcome, ie text/html instead of application/octet-stream, which is possibly the worst one I can think to choose ;-) 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] Wrong mime type sent by Zope on every page
Brian Lloyd wrote: What if we change this to: if a 'content_type' attribute exists, it is used else if the object's id seems to have a file extension (. in the id), try to use guess_content_type else if there is a 'default_content_type' attribute, use that It would be cool if this could be acquired :-) else fall back to the hated application/octet-stream (or, I've seen x-unknown-content-type used before, but I don't know if this is really any better). Then we could put a 'default_content_type' attribute in the class of dtml documents and methods, which would take care of the most common case. Thoughts? Looks great otherwise :-) 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] Guide to writing a Python Product for Zope?
"Dan L. Pierson" wrote: Sounds pretty good. Setting 'default_content_type' can then be another item in the unwritten Guide to Writing a Zope Product. Well, hopefully this will actually get written sometime and we can all stop scratching our heads everytime we want to know how to do something. ...that, or hacking it till it works and finding the thing we used was being deprecated in the next point release... ;-) 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] Announce: Squishdot 0.4.1 Released
Squishdot 0.4.1 is now available from http://www.zope.org/Members/chrisw/Squishdot/ The following major changes were made: - You can now use things like 'site_header' and 'site_footer' in 'showMessage' and 'showError'. - Security has been tightened and a new set of roles introduced. - The bug requiring a 'body' parameter to be supplied to 'search' has been fixed. There are some other small changes and improvements. If you run into problems, remember Squishdot has a mailing list at eGroups and a bug collector on SourceForge. 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] All ZSchedule archives on zope.org broken ! (Was: Re: [Zope] ZScheduler-0.0.5 problem)
Holger Lehmann wrote: I attempted the same and had the same fate. *All* archives you try to donwload from http://www.zope.org/Members/lstaffor/ZScheduler are truncated (!) to 20480 There is a Wiki for ZScheduler which has a FAQ that covers this. Apparently Loren's tar program puts a load of junk at the end. I think the message is just a warning and the unarchiving has worked fine... If anyone knows different, please say ;-) 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] scared
josh on wrote: Would it be a bad idea to just install another copy of zope in a different directory? Would that clash somehow? Maybe, but not in any bad way, the worst I can see happenign is that they try and get the same ports on your machine. Just run up one instance at a tiem to make sure that doesn't happen (it shouldn't anyway, but it never hurts to be paranoid) You could also try copying the data.fs from the old install over the one in the new install if you want to get your old data back, no reason why it shouldn't work. As for your error, it looks like something bad happened when zope tried to write to the log file. Did you do any funny configuration fro your logging? What version of Zope are you using? 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] Generating products that perform a smart clone of a master site?
Hamish Lawson wrote: I envisaged turning a tutor's site into a product that could be instantiated. Hi Hamish, I'd suggest downloading the ZWikiWeb product from: http://www.zope.org/Members/chrisw/ZWikiWeb It does pretty much exactly what you're talking about. It's doesn't take very long to knock up a product like this and I don't think I even used ZClasses. My basis was the example stuff from the Zope Content Managers Guide. I'm guessing this is what you're trying to do. If you're looking into using inheritence (so for example, your tutor changes his example, which causes all the instances to be updated) then you'll need to use ZClasses. I have vague memories of the Zope Developers Guide covering this, if not, try BeeHive's ZClass guide. 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] Can't override standard_error_message on NotFound?
"R. David Murray" wrote: On Mon, 26 Jun 2000, matt wrote: I'm having some problems with standard_error_message on 2.2.0b2. According to the mailing list archives I should be able to override NotFound errors (I even cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own standard_error_message in case I was missing something) but requesting a nonexistent object still gets me what appears to be a built-in page. standard_error_message is also notoriously buggy in the way it handles things unless you're using Zope 2.2. I have lost significant hair in this area ;-) Usually this means your standard_error_message is throwing an exception, in which case Zope use the one hardcoded in the source. The way to check this is to look at the error. If your error message is throwing an exception, the origin of the error will be your error page. If it's still showing the original Not Found error then you're suffering from bugginess. HTH, 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] tree problem, addendum
"Walter A. Aprile" wrote: It appears I have messed up the Id propery, but I do not know how. If you could send the code for the Article class to the list, maybe someone can spot what's going on... 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] ZPatterns: Deleting objects from a Rack?
Scott Parish wrote: I'm not entirely clear how asking the object to delete itself in this case is going to improve the situation over just asking the rack to, but I think that was the intent. Okay, I see the intent now too, but I agree with you that I can't see what advantage asking the object to delete itself provides. Could someone explain please? Furthermore, even if there was an advantage to this, why can't the rack's delete method just be piped through to the object's delete method? (which I thought was common practice with Specialists) 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] ZPatterns: Deleting objects from a Rack?
Bill Anderson wrote: What happens when the object is in multiple racks? (Assuming it is possible) Then it'll be missing if something tries to get it from a rack. The same thing as would happen if something tried to get it from a single rack after it'd been deleted. So this case should be covered anywhere as it's essentially 'what happens if an object that doesn't exist is requested from a rack?' That said, can you give em an example where it would eb useful to have one object stored in multiple racks? 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] ZPatterns: Deleting objects from a Rack?
Scott Parish wrote: Another thought i just had was that if you deleted by placing a call to the Rack, then you couldn't allow the class to override manage_delete. You might want to do such (overriding) if you wanted it to clean up a catalog or perform some other auxiliary function before disappearing. What class are you talking about? ;-) This is why I said it might be useful for the rack's delete just to call delete on the object. I think this is me going on about the demeter's Law thing again... 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] Re: Zope won't let me call aq_parent in ZWiki?
Hi Curtis, Sorry for the late reply, I've been on holiday :S Curtis Matthews wrote: I've just recently noticed I'm not able to call the JumpSearch and RecentChanges methods in the Basic ZWiki because I'm not authorized to call a method called aq_parent. Has anyone else had this problem, and is there a solution? This is a 'feature' of ZWiki according to Simon Michael, it's author, I think it's a bug ;-) Basically, ZWiki Pages (RecentChanges is a ZWiki Page) execute DTML contained in themselves with the 'Anonymous' role, supposedly as a security precaution. This means that 'Anonymous' must have the 'Access Contents Information' permission for RecentChanges and several other things to work. This makes it practically impossible to have a Wiki that is secure :/ This is a hard problem to solve, see Jim Fulton's server side trojan stuff for a detailed discussion. I don't like the current solution, it's confusing. A better, but not best ;-), solution would be to make ZWiki pages execute with any proxy roles they have and only those roles, or even have a seperate 'This Wiki Page has these roles' configuration box. A workaround would be to make RecentChanges a DTML method rather than a ZWiki page. You should just be able to copy and paste the contents. HTH, 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] Passing Parameter without ?
saif wrote: eg:- www.localhost.com/para1/para2 I'm planning a product for Zope 2.2 that will do just this sort of thing... If you can bear with me, it might well be worth the wait :-) 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] ZCatalog Search Q
Leonard Chan wrote: I'd like to include some attributes from the actual objects (maybe by accessing the actual object via id, etc?) in the result list. You can get the actual object with: Catalog.getobject(data_record_id_) inside your dtml-in loop. This is supposedly a 'bad' thing to do but there's nothing better right now... I can of course include those attributes in the catalogue meta table so they would be returned with the search results, but I don't really want to do that unless there is no other way. Well, it might be the best way. Why? ...because otherwise you have to load up the whole object to get the attributes you want. If there's only a few attributes like this, which are small anyway, and your objects are large, then your wastign a load of RAM you don't need to be. HTH, 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] Alternative Rendering (was Re: [Zope] Messing with the namespaces stack)
Jim Hebert wrote: Uh oh, careful, I'm encouragable and you'll really have a monster on your hands. ;-) ego stroke I like the way you think, lots of good will come of it.. ;-) /ego stroke I am bucking a trend, I am starting to realize. Big time! The assumption seems to be that any given page will build itself, it will suck in standard_html_header and standard_html_footer, and compose itself of whatever else in between those things. DTML Document is the base unit of a page. I think it's a trend worth bucking, as you point out, this trend can be out of line with the whole acquisition - inheritence objecty thing that Zope does so well... front end for our system, I wanted people to be able to upload simple, stupid chunks of "content" html and not have to do things like put dtml-var standard_html_header at the top and ..._footer at the bottom. Any lame wysiwyg editor that had save-to-ftp could then push up a 'body file' into the right folder, and I could get writers writing without learning zope. Totally agree with this :-))) [snip excellent possible solution] And, I can also come up with different renderers, I suppose. Untested might be the idea that I could put /alt_renderer as a DTML Method at the top level, then visit /about/alt_renderer and invoke that method in the /about context. So by separating content from presentation, I can plug my content into lots of things simultaneously. Presumably. This would be really useful for things like WAP and AvantGo... [snip sucky products] Well, you either have to re-develop the products or live with them :/ I don't honestly expect that what I invented in the middle of the night 7 days before the VistaSource launch to revolutionize how everyone builds pages With any luck, you may be surprised ;-) perhaps someone will have suggestions on how I can make my style "play nicer" with all these products, too. I have a slightly different take on the problem from back when I used to use mason. Autohandlers solve parts of this... An autohandler is a bit of code which would get executed during URL traversal. it's main use is to render a wrapper around a page, for example: ...do stuff... process and render the rest of the URL (called mc_auto_next in Mason) ...do mroe stuff... So your standard_ stuff apears in the autohandler and is _automatically_ wrapped around the eventual object. How far would this go to doing what you were talking about? Not far enough might be the answer... I'm really interested in the stuff you talked about so please email more of it to me directly if you don't think it's list-related enough hope to hear from you soon, 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] ZCatalog Search Q
Leonard Chan wrote: This is supposedly a 'bad' thing to do but there's nothing better right now... Why is this a 'bad' thing? 'Cause it requires loading the whole object? Nope, 'cos it doesn't work with anything that plays with traversal, like SiteAccess. Something better should be coming along in Zope 2.2 but it probably won't be documented until Zope 3 :( Yes. Our situation is like this. We have a bunch of objects (ZClass) in various folders, and we would like to provide a dynamic search facility for the users (in addition to traversing folders and sub-folders, which is not a problem). The object has a description field, which is a few lines of text (there is a long description field, which varies from zero length to up to 10 times the size of the desc). We need to display the description field (but not the long desc) on the search results, so to implement this, we can either stick the desc in the catalog meta-table, or use getobject as you suggested to retrieve the object (and hence the required attributes). Initially, I'm a bit worried about sticking the desc in the meta-table 'cause it's relatively big compared to the other attributes. Maybe it's still cheaper than getting the object (which includes the much bigger long desc field) every time? Seen similar situation before? Any help is appreciated. Well, given that it's going to be easier and cleaner for you to put it in the metadata table I'd d othat. I can really see any problems with this. I'm sure someone else on the list will comment if they know better... 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] SQL method: Trying to be too clever?
Andy, An error message / traceback would be useful ;-) Rik Hoekstra wrote: insert into related (rootstory, dtml-sqlvar field) in that case you just want a dtml-var field (you not passing it as sql query values) Nope, the dtml-sqlvar field is for quoting use in SQL statements, kindof like dtml-var field sql_quote which I think may be even be correct syntax... 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] Every user should have the Anonymous role everywhere (was :Re: [Zope]Authentication, Anonymous and Public)Authentication, Anonymous and Public)
Dieter Maurer wrote: In Zope, each user has a set of roles. Any user has the "Anonymous" role. Log-in users may have additional roles. I'm not convinced this is true... Quoting from the LoginManager CHANGES.TXT file: Generic User Source, like the GenericUserFolder product it was inspired by, gave all users the Anonymous role. This seems to be incorrect according to what other user folders do, including the standard Zope version, so GUS now no longer does this. ...which is why Alan experiences this problem. I've also run into it just using a normal acl_users folder and I've been mentioning every few months since I bumped into it back in March. Here's my opriginal post: http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/82AE22A20C7E88AE I wish this could get sorted out as it makes security a nightmare unless you use a web of local roles, which is painful and messy to maintain. Is there any reason why every user shouldn't have the anonymous role for every accessible page/object/thing visitable through a protocol? 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] Re: Every user should have the Anonymous role everywhere (was :Re: [Zope] Authentication, Anonymous and Public)
Dieter Maurer wrote: In Zope, each user has a set of roles. Any user has the "Anonymous" role. Log-in users may have additional roles. I'm not convinced this is true... The Content Manager Guide (Security, Authorization) states it this way: The "Anonymous" role, which all users have implicitly, ...and check out the last time the Content Manager's Guide was updated ;-) Seriously, though, I think this SHOULD be true, although I'm pretty sure it isn't. This is natural, too. Why should a registered user have less authorization than an anonymous one. Or, to put it another way, just because an acl_users folder doesn't know anything about a user, why should that user not have the anonymous role? Thus, two reasons to change the Zope authorization, such that each user has implicitely the "Anonymous" role, if this is not the case now. I totally agree :-) 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] Comments on 2.2 Help System
Apart from the 'Wow! Zope has Help!' comment: The API documentation is very useful. How do we feedback about it? (eg: why is there PropertySheet and PropertySheets?) When will it be complete? How do we submit docs to appear in it? What is the moderation process like? Sadly, the rest of the 'Zope Help' section needs a lot more structure to be useful. At the moment, the names don't even fit in their browser pane :( Perhaps something along the lines of the portal structure on zdp.zope.org would be useful for categorising these documents? If these are the 'help screens' you get when you click the help button, maybe they shouldn't be listed here at all? I have to say, I think the M$ help system on Windows might be a better model: 1. A Contents Page - kindof like the zdp portal listing, or a contents section of a book. 2. An index page - A list of all the documents in the help system, which seems to be largely what the 'contents' tab is now. 3. Search - which needs to be explained better than it is. Can boolean searching be used? Do I need to quote things? How do I search for dtml-in? (Maybe a help screen would be useful ;-) Maybe there should be links to the Contents Page as well as help on your current location from in the management interface? Finally, you should make it clear elsewhere that /HelpSys on your site will go to the Zope help system. Maybe this needs to be blockable, after all, why should www.mysite.com/HelpSys give the Zope help system, when I might want it to be my company's help system for their products? Which suggests that maybe the help system should be a separate product from Zope, running on its own server. For example, take a company which has LOTS of zope servers. The sysadmin would prefer to maintain one up-to-date copy of the Zope docs on a 'documentation server' which has documentation for all the Zope versions in use, rather than wastefully running the same number of documentation servers as there are Zope instances... ...heaven forbid, DC could actually run a master one of these at doc.zope.org which would be the most complete and up to date... Views? 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] Authentication, Anonymous and Public
Dieter Maurer wrote: A user that does not log in, i.e. a user you know nothing of, gets the "Anonymous" role automatically (at least with "acl_users"). A logged in user may not get the "Anonymous" role. This does not provide additional security, because this user may simply shut down his browser and access the page again as anonymous user. On the other hand, it may result in surprises: suddenly (after a log on) I can no longer do things that I was able to do before the log on. I think, this should be changed. I agree, and I've said so, many times before ;-) 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: Every user should have the Anonymous role everywhere(was :Re: [Zope] Authentication, Anonymous and Public)
Stuart Bishop wrote: or in BasicUserFolder. Either way it should go in the collector. Issue 1391, or in a slightly different phrasing, Issue 467 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] the dtml-calendar
I'm downloaded the dtml-calendar with the tar.qz. My unzip asks me what to change the qz to before it will unzip, and i dont know what to change it to. i tried .doc, .zexp, and left it blank. if u know what it is, tell me. Try .tar.gz That should make WinZip happy ;-) 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] SquishDot properties
tom smith wrote: I'd like to add a URL property to a Squishdot article (and remove the "dept" property), is this possible and how would I do it? The 'proper' response would be 'no'. The hacky response is, just store the URL in the 'dept' property ;-) Adjust your forms slightly (so they say URL instead of dept but make sure the form field is still named 'dept'). Nice huh? ;-) (I was going to do something similar(ly nasty ;-) to use the file attachment feature to store an image that was rendered when you viewed the posting ;-) Also, can I auto-complete the "from" field with the users' username that they have logged in withthis is for an intranet What have they logged in with? Squishdot should 'remember' the name and email address after they're typed it in once, which maybe helpful since I get a feeling what you're asking about may not be possible :( cheers, Chris PS: Squishdot has it's own mailing list as well: [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] Re: [squishdot] Re: Squishdot giving error DateTimeError?newbie
[EMAIL PROTECTED] wrote: I am on zope 2.1.6 In some post i saw that timezone can be changed. My timezone is India GMT+530. I was looking through the DateTime.py code where the timezones are listed. it is now giving Error:DateTimeError ErrorValue:UnrecognisedTimeZone This looks like a DateTime.py problem, not a Squishdot problem. I'm going to chuck this in the collector in hope of a response sicne I'm sure this isn't the first time someone has reported this problem. I donot know python, can we add my timezone to the list given. That may be what needs doing, but probably as a source change... otherwise how do i change my system settings for a timezone which is compatible with squishdot. I do GMT, and haven't had any problems, but that's not going to be useful for you as anything but a stop-gap measure. I am being very let down, i very much wanted it to run, as this was the product which pulled me out of perl and got me into zope :-( Don't worry, it'll get fixed soon, such is the joy of Open Source :-) can we run cron after midnight which opens a new instance of Squishdot and copies all the postings to this new Squish site. You could, but that would be a seriously oversized sledgehammer for what is probably a very small nut... Please help me out, otherwise i will have to go back to perl. I wouldn't worry about that either, Perl is coming to Zope some time soon... good luck, 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] strange catalog problem
Hi Ed, What version of Zope are you using? If it's 2.1.6 or earlier, have you patched ZCatalog? IIRC, it's slightly broken and causes exactly the same kind of problems as this... http://www.zope.org/Members/chrisw/Squishdot has a link to the fix for this problem on it (somewhere ;-) cheers, Chris PS: 'Downtempo', 'Hardcore', 'Hip-Hop', 'House', 'Jungle', 'Techno', 'Trance') With your taste in music, you should check out http://www.bay-c.co.uk I'm always looking for people to write articles and comment on the ones that are there :-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 questions: Job_board Howto, ZCatalog, Squishdot
Meeting Maker Webmaster wrote: One last question ;-) I've seen in this mailing list that Squishdot will not work with Zope 2.2.0 until version 0.4.4... when is this version planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get the same problem as with my "Job_Board" test... will one solution solve the other? 0.4.4 will land in a couple of weeks hopefully. One solution may well solve both problems, if you find it, please tell me ;-) 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] Rendering Folderish ZClass Object
Hi, I have a ZClass based on Folder. Contained within this is a DTML Method, index_html. This is mapped to the 'View' view and renders the appropriate object contained in itself depending on soem logic. All, is well if I access the object through a URL, the page is rendered as expected. However, if I access the object with the following code: dtml-var testObject All I get is: MyClass instance at 8717b90 Why is this? Why does the normal rendering not take place? cheers, Chris PS: I notice that a normal folder object will behave identically, so the ZClass bti is probably irrelevent. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] DTML?
Brian Lloyd wrote: snip id is sometimes a method (not always though ;-) This is one of the things on my List Of Evil Things that should be changed one day in Zope3K :) RANT type="angry,frustrated" How about the nasty hacky mess that is DTML? Some priceless artifacts that need to go: dtml-var "someMethod(_, _.None, myparam)" dtml-call "REQUEST.set('keyname','value')" dtml-let x="'hello out there'" dtml-var "_[REQUEST['myDoc']]"What is this supposed to do?! dtml-var "PARENTS[-1].folder.getitem(_.getitem('id',1))" Not to mention the horribleness that is dtml-in and dtml-with. There's dtml-tree too, but hopefully I'm going to land very hard on that tomorrow and beat it into something like a decent shape ;-) While I'm at it, how about some docs for the manage_* methods in the interfaces Wiki? /RANT Okay, seriously, DTML is really hurting Zope's chances with a lot of people/companies. DTML should be easier than, say, creating a Form in Lotus Notes or writing a component in Mason. That requries, IMHO: 1. Clear definition of when it should be used. 2. A clean, concise syntax (like Python, DTML is more like Perl right now ;-) 3. Good documentation (much easier to do if 1 and 2 are met...) I also think having Python Methods ship with Zope would really help... There are niggles (like the rediculous id problem) which you can live with, but doing anything other than the really mundane in DTML means extreme hair loss right now, which is not good. I wonder how many other people would agree with me: nevermind ZEO, or the PTK, ZPatterns or any new fancy functionality. Can we at least have a decent template language that doesn't confuse the hell out of newbies and oldbies alike... cheers, Chris (Who just spent 1/2 hour figuring out how to do a multi-language site in Zope, and now after 6hrs of trying has given up doing a recursive tree copy to get the old site into the new structure with a DTML method or two and is resorting to ugly hacky external methods because Python Methods arent' around/stable) PS: Zope: yes it makes the hard things very easy, but it makes the easy things very hard, so it all balances out nicely... ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] ZWiki/Structured Text formatting surprise
Jim Fulton wrote: I suggest that, since this appeared in a code snippit to begin with, it should have been written as: blah blah '(_.None,_,foo)' blah blah I don't format my code like that ;-) Note that the StructuredText underlining feature is widely considered a missfeature and probably won't be supported in StructuredTextNG. Hmm, it could be useful though... I'd prefer to see a generic way of escaping structured text formatting. Maybe this is something for StructuredTextNG? Maybe. I'd really prefer that this not be necessary. I think escapign is always going to be necessary for something like this... ;-) If you do, please suggest an escaping syntax. Please think hard to come up with an escaping syntax that I don't hate. ;) How about extending ! beyond just escaping WikiNames? ! escapes structured text if it directly precedes a formatting character. !! actually puts a ! if it does indeed need to proceed a formatting character. cheers, Chris PS: Off to the wiki now ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML?
Shane Hathaway wrote: The idea of making an XML compliant DTML has been tossed around before. It would remove the difference between dtml-var x and dtml-var "x", since XML allows neither syntax. :-) I'm not too hot on XML compliancy, but if it makes the problems I mentioned go away, then great :-) 3. Good documentation (much easier to do if 1 and 2 are met...) How about a "namespace inspector"? It could provide an easy way to find out what methods are available and the what the calling conventions are (since it would interface with the help system), and it could be automatically invoked when exceptions occur (under certain conditions), making it a Zope debugging tool. Sounds interesting but it's never going to beat a decent paper reference with examples... I'm working on enhancing Python Methods right now. I'm close to getting them properly interfaced with DTML namespaces, so that DTML can invoke Python Methods using simpler DTML syntax. Hmmm, how about just sorting out the problems: dtml-var and dtml-call dtml-var "x(_,_.None,arg1=x,arg2='y',arg3=3)" html_quote should really be: dtml-var x arg1=x arg2='y' arg3=3 html_quote ...IMNSHO ;-) A curious paradox: newbies need it to be easier, but experienced users need consistency. I don't see a paradox, these two are both solved by sorting out the same problems. It doesn't confuse Jim! ;-) dtml-call "REQUEST.set('id','answer1')" dtml-if "_[_[id]]=='funny'" So lobotomize Jim, then he'll know what it's like for the rest of us! :P dtml-else Yes, but if Jim is the only person who understands it, then no-one else will be able to use it, DC will have no customers and we'll all be building sites using CORBA, beans and otehr 'things' /dtml-if Thanks for the comments though, Ethan metnioned this as a project for dev.zope.org. I'm really up for that, would you be able to help out? 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] MessageDialog
Andy McKay wrote: The MessageDialog is cool, but a little sparse, has anyone tried overriding it with their own or fiddling with it? Im looking at including standard header and footer in it and not gotten very far. Butch did this in Squishdot, one of the changes I made for 0.4.1 was to let headers adn footers be included, here's the code from Squishdot.py: return self.showError(self, REQUEST=REQUEST, ^ important bits title='Data Missing', message=message, action=REQUEST['URL1']+'/previewPosting' ) showError is a DTML method contained in the Squishdot folderish object... HTH, 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] HEELLPP - Please !!!
Daniel Rusch wrote: I think this line: where users.user_login=dtml-sqlvar name=login type=string Should be: where users.user_login=dtml-sqlvar login type=string --- no name= I'm sure that shouldn't make a difference Is this another example of DTML being sucky? ;-) 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] DTML?
Tino Wildenhain wrote: I want that too. When we are over it, how about replacing (or at least aliasing) these - variables to _ ? sequence-item, sequence-index etc. comes to mind. Yes indeed! :-) IF you've got a patch that will do this, please mail it to me and stick it in the collector... 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] MessageDialog
Andy McKay wrote: A thanks Chris. I had noticed that and was trying to see if I could do without using REQUEST. I couldnt so I went and changed all the calls to my class *sigh*. Thanks mate. Sadly REQUEST and the client are always necessary. If you want to call your MessageDialog from anywhere in DTML as well as from python you'll need that pretty old favourite: dtml-var "MessageDialog(_,_.None, ...your args...)" :( 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] Fetching data from external methods
Jarkko Veijalainen wrote: in fact only problem here is how i return values from external method like obj.value1 , obj.value2 into zope and use them in dtml or/and in Zclass instances. in external method: return (obj1, obj2,) in DTML: dtml-in external_method(your,params) dtml-var value1 dtml-var value2 /dtml-in If you are submitting to your external method from an HTML form, you will need to return the HTML to be displayed: def my_external_method(self,param1,param2): ...do stuff... string = 'HTMLBODY' string = string + ...render your results here... string = string + '/BODY/HTML' return string HTH, 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] Fetching data from external methods
Jarkko Veijalainen wrote: My method outputs are: res = (contains search result using forms input values) sn = res.sn (one of the values in res-object) return sn ^ that should be 'return res' ...then the following will work: dtml-in "LDAPsearch('66','*',REQUEST)" dtml-var sn /dtml-in this works dtml-var "LDAPsearch('66','*',REQUEST)" ...because that displays sn, which is what you're returning! 1) how i can input values in LDAPsearch(how i input here) Don't understand what you want here... 2) i don't have any control of return value, it returns list like this ('Ukko', '66', 'oEmail') you should be able to dtml-in over whatever is returning that... 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] catalog.getpath --search results as links
[EMAIL PROTECTED] wrote: Replace it with this: tr a href="!--#var "catalog.getpath(data_record_id_)"--" !--#var title-- /a /tr What is the id of your catalog object? replace 'catalog' with that id. I'm guessing you should have 'Catalog' instead ;-) HTH, Chris PS: Change to using the dtml- syntax instead of !--# --, it has been deprecated, I think... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 Resources ;-)
Jonathan Desp wrote: How I can make a regular backup ? make a copy of data.fs _before_ it gets corrupted. How I can restore it ? copy your backed up data.fs over your corrupted data.fs it's 100% corrupted. I doubt that very much. Do you have any tools for analyse a data.fs ? (not tranalyser) Why not tranalyser? What about lib/python/ZODB/fsrecover.py which Jim Fulton recommended? If I don't fint out why my data.fs is corrupted, I'll lost one week of work for my company. No skin off our noses... a lot of people have tried to help on this _for free_ but you don't seem prepared to do much work for yourself. Your data.fs is corrupted. That sux. Sorry. It doesn't happen often so it'll probably be a bitch to fix, maybe you should just re-import your 900 files into a new data.fs on a fresh install of Zope? Maybe take Jim Fulton up on his offer to look at the data.fs? You might also like to read the Zope manuals: http://www.zope.org/Documentation It may be old and a bit out fo date but it'll give you a good idea of a lto of Zope stuff. Also search on Zope.org. There's good How-To's on recovering corrupted data.fs's... There's also mailing list archives at: http://zope.nipltd.com/public/lists.html Search there and you'll find answers to most questions you've asked: -LoadSite -How to make a backup and restore it -more on Tranilyser and the like Please try these first, the mailing list should be a last resort (and yes, I know I sometimes don't use it as such ;-) cheers, Chris PS: Apologies to the list for the flame, maybe I shouldn't write email at midnight ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] catalog.getpath --search results as links
[EMAIL PROTECTED] wrote: my catalog ID is full_site, but I already tried this and got another error. What was this error? (please include the full traceback..) When I leave out the link syntax changes, I get the search results (w/o them as active links)...so the catalog term must be right. Not necessarly... 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] how to check if the ResultSet is null?
You could always do something like this first: "select Count(usr_email) from info(table name) where usr_email = dtml-sqlvar usr_email type=string" Then check the result will be either 1 or 0. That's asking for trouble 'cos Zope ain't gonna like an id such as 'Count(usr_email)', it's a great idea though :-) Here's how you might need to rephrase it to make Zope happy: "select Count(usr_email) as usremail from info(table name) where usr_email = dtml-sqlvar usr_email type=string" HTH, 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] simple instructions for site search
ethan mindlace fremen wrote: You want the ZCatalog Howto: http://www.zope.org/Documentation/How-To/ZCatalogTutorial Do catalogs search otehr catalogs they find? Only asking 'cos I don't think that'll help him search his whole site as the Squishdot postings won't get searched. But, if the above is true, then it should be okay since Squishdot is now subclassed from ZCatalog :-) 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] Collector Product?
You check out the Tracker, the replacement for the Collector, rom the CVS... cheers, Chris Satheesh Babu wrote: DC folks, Any plans of making the Collector (bugs/requests etc) as a downloadable product? ~ V.Satheesh Babu [EMAIL PROTECTED] . . http://vsbabu.csoft.net/ /V\ - Duct tape is like the force. It has // \\ a light side, and a dark side, and /( )\ it holds the universe together ... ^'~'^ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Hot fix and 2.20
I think so... Chris michael montagne wrote: Do I have this right? I do not have to install the hot fix if I just installed the recently released version 2.2.0 final. correct? -mjm Name: winmail.dat winmail.datType: application/x-unknown-content-type-dat_auto_file Encoding: base64 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Cannot install PTK
Mario Premke wrote: I installed Zope2.2.0 and downloaded PTK0.7.1, installed it, restarted Zope and then tried to import I think the 0.7.1 snapshot release is a little out of date ;-) Check the latest version out of the CVS or try Kevin Dangoor's much more recent snapshot: http://www.zope.org/Members/taz/PTK 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] sending namespace to the frames?
danchik wrote: if I submit a form to some page that has frames, how do I pass the REQUEST namespace to those frames You can't, I think you need to look into the way frames work more carefully or word your question differently. Also, please don't post to both [EMAIL PROTECTED] and [EMAIL PROTECTED] as it may irritate the large number of people who are subscribed to both ;-) 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] ZStylesheet
Neil Burnett wrote: Well, I am going to give up with CSS. I am sure ZStylesheet is a fine product, its just that CSS implementations lets it down. I find the following page really useful: http://webreview.com/wr/pub/guides/style/mastergrid.html It lists exactly what does and doesn't work in CSS on all the major browsers. Of course Luis made a very valid point, validate your HTML first before you worry about CSS. I find Dreamweaver 3's checks for browser compatability quite useful here as well. Of course, nothing beats plain checking all your pages on loads of different browsers ;-) 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] Re: Zope 2.2.0 Startup
Indra Gunawan wrote: I've just install Zope 2.2.0 from 2.1.6 but when I run the start.bat it seems the startup process took a very2 long time compared to the usual, is it normal? I don't know... Maybe the patch to the port checking algorithm never made it into the 2.2 code: http://classic.zope.org:8080/Collector/1260/view Anyway, this sort of question is probably better asked to the [EMAIL PROTECTED] mailing list... 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] Off Topic... ;-)
I saw this in someone's sig. and thought of Zope: "The more I learn, the more I realize I don't know, and the more I realize I don't know, the more I want to learn." --Einstein ;-) 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] MetaPublisher DB - was linuxworld article
Mark Pratt wrote: Sorry if that's a dumb question ;-) no, it`s not a dumb question. MetaPublisher is open source. Written in Zope? Where can I find out more? 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] Re: Folderish objects and that BASE tag...
Oleg Broytmann wrote: Documents/Methods aren't, m? Yes they are... http://site/com/folder/object may now look like a folder to you, but what if you want to excecute a method on a folder? It becomes: http://site/com/folder/object/method So, in effect, object should be treated as a 'folderish' thing from a web-y point of view :S And I certainly don't want trailing slash on url like http://my.zope/site/file.html :) Why not? It'd then get the default file for: http://my.zope/site/file.html/ Which would return the contents of file.html anyway... Not very well explained but I don't think I'm missign anything... 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 )