Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Chris Withers
Andrew Kenneth Milton wrote: But then you'd have to parse the contents to find out if the comments are properly nested... Well, the parsing should be pretty simple: 1. find dtml-comment 2. search for /dtml-comment 3. if found: ignore that block of text else if end of text reached:

Re: [Zope] dtml-comment yuk...

2000-09-04 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: Is is just me or does stuff inside a dtml-comment get parsed? "dtml-comment" must do a bit of parsing: It must at least recognized "/dtml-comment". well, yeah, but that's not what I meant... Maybe, it wants to re

Re: [Zope] Pages Half Rendering, probably fixed in 2.2?

2000-09-04 Thread Chris Withers
Dieter Maurer wrote: When I reported the problem, DC immediatedly answered that the problem was already fixed in CVS: the threads were now synchronized. That sounds like it... Maybe, you should take a 2.2 ZServer and use it with your Zope 2.1.6. I do not know, however, whether this will

[Zope] If-Modified-Since problem again?!

2000-09-04 Thread Chris Withers
Dieter Maurer wrote: [EMAIL PROTECTED] writes: To your image in properites add a string property called Last-Modified with value Wed, 15 Mar 2002 19:02:17 GMT And your broken image problem will disappear. What version of Zope is this with? However, this avoids

[Zope] Overdue comments on 6-1-Security.stx

2000-09-04 Thread Chris Withers
Chris McDonough wrote: See (sneak peek) http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx, section named "The Superuser". No offence meant, but it doesn't do a very good job of explaining _why_ the superuser can't own anything. Well, I think the real problem is that the

[Zope] 2.1.6 will be your problem...

2000-09-04 Thread Chris Withers
"T.J. Mannos" wrote: Yes, I have, and I spent hours tearing apart my site thinking I'd seriously screwed-up when suddenly all my images refused to load. But that was just on my Solaris 2.6 server. PCs and even Macs render my pages beautifully. It's just Netscape Communicator for Solaris

[Zope] Missing pictures: what's the error?

2000-09-04 Thread Chris Withers
William JOYE wrote: I use Apache and Zope 2.1.6 under Linux. In the Apache log, I have notified that http code is always 304 but when pictures are missing in web page the transferred size is '-' and no '0'. If possible, try the system with Zope 2.2. Otherwise, checkout my recent reply to

[Zope] Tree problems in standard_html_header?

2000-09-04 Thread Chris Withers
Marcus Schopen wrote: I would also like to put my global navigation method in the standard header, so each document can use it. But I get a strange behaviour (see http://marcus.localguru.de:8080/b3/ ) That wasn't responding... Could you describe the behaviour or any errors you're getting?

[Zope] 2.1.6 Image problem again?

2000-09-04 Thread Chris Withers
"Felipe E. Barousse Boué" wrote: Has anyone seen the following behavior: I am using PCGI with Zope 2.1.6 and Apache 1.3.9. Everything works fine except when reloading the same page, the graphics in it are not "painted" by the client browser. Try the patch in the following:

Re: [Zope] Zope.org Mirroring

2000-09-04 Thread Chris Withers
Erik Enge wrote: It might not be interesting, but what I would really like is a complete mirror of documentation and products up and running all the time. That could be done statically, even without Zope if it sucks that much. (Although, I can't see why it would in such a situation.) You

Re: [Zope] Images slow nor not rendering?

2000-09-04 Thread Chris Withers
Pierre-Julien Grizel wrote: I have some images on my pages (let's say 10 - not a lot), rendered either by dtml-var or a manual IMG tag. When I render the page on some of my LAN boxes (especially with IE), some images doesn't load at the first time. I need to reload the page to make them

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Chris Withers
Andrew Kenneth Milton wrote: | What's wrong with that? It's wrong :-) dtml-comment crap more crap dtml-comment Lots of crap /dtml-comment /dtml-comment In order to parse that fragment, you need to parse the blocks in case you find another opening block, so that you can

Re: [Zope] Non-blocking MailHost

2000-09-04 Thread Chris Withers
[EMAIL PROTECTED] wrote: Out of curiosity, what exactly is a non-blocking MailHost? One that doesn't hold up the process that is rendering the page... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

[Zope] Squishdot/Swishdot RFCs

2000-09-04 Thread Chris Withers
Hi, I've just posted a set of articles relating to the future of Squishdot and Swishdot on http://www.squishdot.org which I'd really like to get lots of feedback on. Could anyone interested please pop along and comment? cheers, Chris ___ Zope

[Zope] dtml-comment Fine, don't fix :P

2000-09-05 Thread Chris Withers
Andrew Kenneth Milton wrote: Th second part of the problem is that ChrisW(hinger) really wants it, "really wants it" might be a little strong... I'm not loosing any sleep... but, doesn't want to do what is necessary to do it. Swishdot or fixing DTML... take your pick :P (TreeTag would

[Zope] Bitten by == ;-)

2000-09-05 Thread Chris Withers
Andy Dustman wrote: I have a DTML Method (build_navigation_bar) that is called from standard_html_header to (surprise) build a navigation bar. Word from the (pretending to be ;-) wise: Do it in an external method... I've got one that probably does 90% of what you want. Mail me off list if

Re: [Zope] DTML horror

2000-09-05 Thread Chris Withers
Nick Trout wrote: DTML is pretty horrible. Does anyone have any solutions to allow DTML methods to be generated using a more Pythonesque interface? It seems to me that DTML is a bit of a shoddy half way house between HTML and Python. For someone who's posting HTML mail to a non-HTML list,

Re: [Zope] ZODB efficiency

2000-09-05 Thread Chris Withers
Nick Trout wrote: Is using ZODB efficient? Is it better to use ZODB than an external database? What are the benefits of using it? There's lots of info on this on www.zope.org. And there's mailing list archives at zope.nipltd.com. And there's probably more info at zdp.zope.org. Maybe you

Re: [Zope] Renderable Base Class ???

2000-09-05 Thread Chris Withers
Brian Withun wrote: Have there been any developments along this line, or any plans to incorporate the idea into Zope? I find myself in need of this functionality. Checkout ZRenderable or ZCallable (which is in the PTK CVS) cheers, Chris ___ Zope

Re: [Zope] re module through the web security

2000-09-06 Thread Chris Withers
Chris McDonough wrote: There's the perception at DC that 're' isn't appropriate for through-the-web usage because it's possible to write and use regex that sends the Python interpreter thread it's operating within into a neverending loop. Sorry. Am I the only one who thinks this is silly?

[Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-06 Thread Chris Withers
Jason Cunliffe wrote: PS. Be warned: 8-() if you try put the code above in a DTML methods named 'showREQUEST' or 'show_REQUEST' it will not work = 'Id already in use' That's a little weird... Can anyone shed any light on this? cheers, Chris ___

Re: [Zope] Squishdot and _catalog bugs

2000-09-08 Thread Chris Withers
Roch'e Compaan wrote: I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1. Whenever I post an article on my squishdot sites I get an attribute error: _catalog. It seems like squishdot has trouble putting the article in the catalog. I did modify all references to thread[0]

[Zope] Re: PTK - member can reconfigure portal

2000-09-08 Thread Chris Withers
Anders Eriksson wrote: I have joined the Portal and when I log in as this member and select 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will let this user/member change things that only the owner/super should be able to do!(?) This could be one of two things, IIUC: 1.

Re: [Zope] MetaData?

2000-09-08 Thread Chris Withers
kamon ayeva wrote: How can I get the id or title of (Document) instead of the url ? Aren't they in the MetaData returned by the catalog query? If they aren't, add them ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Squishdot should be :-)

2000-09-11 Thread Chris Withers
[EMAIL PROTECTED] wrote: use at work = I will recommeend using it and do the work of setting it up on an NT (ugh) box and claim it can be relied upon for a medium level (I don't know how much really) of traffic. Yeah, it should be... let me know if it isn't and I'll fix it ;-) cheers,

Re: [Zope] Import Zope Security

2000-09-11 Thread Chris Withers
Martijn Pieters wrote: No it isn't. Web access to class instances is handled by permissions. Unpickling will cause class instantiation in the python process, where you have no control over what get's created. Surely you could pipe this process through the Zope security process? You can

Re: [Zope] dtml-in theentiresite

2000-09-12 Thread Chris Withers
peter be wrote: Some objects (mostly DTML Documents) have a property (boolean) that tells whether this is a helppage or not. What I want to do is to loop though eash and every object in the entire site (not very big) and check if the object has this property. Does your site have any

Re: [Zope] Zope and the GPL poison pill

2000-09-12 Thread Chris Withers
Nils Kassube wrote: I hope Zope product developers think twice about using the GPL. The GPL license is not about sharing like e.g. the BSD license, it's about enforcing the political agenda of people who think that commercial ("proprietary") software w/o source code is evil. This is very

[Zope] how to change the 'Zope' realm/resource??

2000-09-13 Thread Chris Withers
Steve Drees wrote: WHat if we want to change the realm dependent on the folder? I.e. Is there a way to change this at run-time? I'd love to know the answer to this one too :-) Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] call a dtml doc in subfolder?

2000-09-13 Thread Chris Withers
Curtis Maloney wrote: On Wed, 13 Sep 2000, [EMAIL PROTECTED] wrote: Hi, I want to call a dtml doc with dtml-var docname where docname is in a subfolder. What is the syntax to do this? This is where we find out why you don't put a . in an object name. (o8 dtml-var folder.docname

Re: [Zope] Importing multiple files into Zope

2000-09-13 Thread Chris Withers
[EMAIL PROTECTED] wrote: Is there something in existence in the Zope community? And, can it be used by a Zope 'wannabe' but a 'long way from getting there'. It's called loadsite.py. There's a version here: http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/EBABAF83050A8D06 Although

[Zope] Zope Intros Security

2000-09-13 Thread Chris Withers
PR JANSE VAN RENSBURG wrote: I dont know if i have subscribed to the correct mailing list, You are :-) i need to import a small web page into zope and create users etc. You might want to look at loadsite.py. I've never used it but you can download it from here:

[Zope] Re: ZDOM and Zope release version number

2000-09-13 Thread Chris Withers
[EMAIL PROTECTED] wrote: Then the related question, how can I check Zope release version number form the management interface? You can from the Control Panel, which you don't have access to :-S It running Zope 2.1.6 with some patches, I'm 99% sure ZDOM won't be in that... Would people like

[Zope] LocalFS or LoadSite

2000-09-14 Thread Chris Withers
Nick Trout wrote: My question: what is the best way to do this? Is there a product to this.? You could look in the mail list archvies before asking this question since it's such a FAQ :-( LocalFS load_site.py cheers, Chris ___ Zope maillist -

Re: [Zope] External Methods, reloading and Versions

2000-09-14 Thread Chris Withers
Riku Voipio wrote: How do you reolad an external method that has changed? You shouldn't need to do anything, or so I was told... In practice, you can either: - wait a few minutes until the external method object gets flushed out of the cache - Hit the 'Edit' button for the external method.

[Zope] Passing parameters to external methods is broken...

2000-09-14 Thread Chris Withers
Andreas Pauley wrote: I have an external method that looks (somewhat) like this: def extAccess(self, accttype_cde): return accttype_cde dtml-if "extAccess(accttype_cde='COM')" bThe external method returned true/b /dtml-if I get the following error for the above statement: Error

[Zope] Announce: Squishdot 0.7.2 now available!

2000-09-14 Thread Chris Withers
Squishdot 0.7.2 is now available from http://www.zope.org/Members/chrisw/Squishdot/ http://www.squishdot.org/Download/Squishdot The following changes were made: - Squishdot now works with INSTANCE_HOME Zope installations If you run into problems, remember Squishdot has a mailing list at

[Zope] id_quote

2000-09-14 Thread Chris Withers
Hi, Given the new strictness characters allowed in id's, it'd be great if there was something called id_quote which behaved in the same way as html_quote or url-quote except it made a string suitable for use as an id. It's be great if ti was available as a methdo in python as well :-) What do

[Zope] restrictedTraverse

2000-09-15 Thread Chris Withers
Steve Alexander wrote: You can use restrictedTraverse('slash/delimited/path') AFAIK, that's not available in DTML... Am I wrong? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] PTK, INTSANCE_HOME

2000-09-20 Thread Chris Withers
Richard Moon wrote: Agree completely. I was very disappointed when saw the latest release of the PTK needs a compilation of a C program. That's a real backward step. That's not or shouldn't be the case. By 'C program', I presume you mean the dynpersist module requried my LoginManager: 1.

[Zope] ZDebug is disturbing ;-)

2000-09-20 Thread Chris Withers
Dieter Maurer wrote: Although I am very curious how ZDebug is able to disturb "sendmail". ZDebug also disturbs the PTK ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] Folderish DTML Document

2000-09-21 Thread Chris Withers
Andy McKay wrote: Sure it works but Im creating 2 objects a folder and a index_html for every one occurence. Im doubling my database for every object. Ugh! I really wouldn't worry about that... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Problem with Tree tag

2000-09-21 Thread Chris Withers
Chalu Kim wrote: Has anyone seen this when running Tree? (Info: ([None, ([140894976, []],)], ['E04='])) AttributeError: 'tuple' object has no attribute 'append' Yup... It's one of the many bugs in the tree tag. I think someone posted a patch for this a while back, search

Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Chris Withers
Stephen Simmons wrote: 3. Sections are only used as building blocks for other documents so it must not be possible to retrieve a section via a URL. That is not currently possible in Zope and is one of my pet peaves :-S See the 'Protocol Accessibility' proposal on dev.zope.org for a possible

[Zope] __str__, DMTLFolder adn Squishdot

2000-09-21 Thread Chris Withers
Andy McKay wrote: I've given it a __call__ method, but not a __str__. Ive most problems resolve around the objects name, absolute_url, __name__, so perhaps fiddling with __str__ might be an answer. Sorry, but none of that made sense... What are the actual problems you're having with names,

Re: [Zope] Catalog Searching

2000-09-21 Thread Chris Withers
Toby Dickenson wrote: Maik Roeder wrote: dtml-in "Catalog()" reverse sort=bobobase_modification_time size=50 Show stuff in Catalog here. /dtml-with snip good points But doesn't Catalog() return all objects in the Catalog? Doesn't all the meta-data for those objects have to be loaded into

Re: [Zope] cannot access articles in Squisdot

2000-09-21 Thread Chris Withers
Tomaso Scarsi wrote: Error Type: AttributeError Error Value: 'string' object has no attribute '__basicnew__' and on the console running zope 2000-09-14T14:20:37 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\001[i' This isn't a Squishdot problem. It looks like your Zope

[Zope] Can't export only an ObjectManager

2000-09-25 Thread Chris Withers
Andy McKay wrote: How do I export a folder using the Import/Export tab with exporting all the subobjects? You do mean 'wihout', don't you? (Stupidest suggestion so far: delete all subjects, export, undelete) That's the only way I can think of... A patch that added a checkbox and a little

Re: [Zope] HTML Widgets, In-place editing in Zope

2000-09-25 Thread Chris Withers
Phill Hugo wrote: www.opencookie.org/widgets/index_html www.opencookie.org/widgets/index_html?editmode=1 Cool :-) widgets is an external method which will be on Zope.org next week if all goes well. Looking forward to it... cheers, Chris ___

[Zope] Error shouldn't be appended :-S

2000-09-25 Thread Chris Withers
Skip Montanaro wrote: Having only recently upgraded from Zope 2.0 to 2.2.1 I see that the default behavior for traceback reporting is still to embed them in an HTML comment (or display them when debugging). Yeah, and in production mode it sticks it after the end of your /html ...which

[Zope] Not Patch to let Authorized Exceptions use standard_error_message ;-)

2000-09-25 Thread Chris Withers
Andy McKay wrote: Well theres the thing, its not really a patch. I doesnt allow Authorized Exceptions to use standard_error_message, thats a whole different kettle of fish. /lib/python/ZPublishers/HTTPResponse.py line 482 to 523 contains HTML text for the error message. So you can

[Zope] Why no full Zope?

2000-09-25 Thread Chris Withers
Skip Montanaro wrote: Thanks, interesting, but in my case, probably not immediately useful. It slipped my mind when posting that I need to qualify all my zope posts with, "I'm not using full-blown Zope. I only use ZServer + DocumentTemplates." Still, knowing that there is some mechanism for

[Zope] ZWiki RecentChanges don't work in Zope 2.2.x

2000-09-25 Thread Chris Withers
...you get an authorization error :-( This is because this Wiki isn't (and shouldn't) be publicly viewable or editable. So, Anonymous doesn't have 'View' permission on the folder. I've given Anonymous 'Access Contents Information', the usual nasty hack I had to do before, but now that just

[Zope] Download Problems File Extensions

2000-09-26 Thread Chris Withers
Suzette Ramsden wrote: I have had this same problem downloading squishdot zip files and I don't know if it is something I am doing. When I attempt to unzip the file, I keep getting: "error reading header after processing 0 entries" I've seen this happen due to a couple of things: 1.

Re: [Zope] Restricting URL access to certain objects

2000-09-27 Thread Chris Withers
Steve Alexander wrote: If you want this to be fairly transparent, perhaps based on a particular permission or property, then I think you'll need to patch part of Zope, probably HTTPRequest.py. This is the basis of what my proposal on dev.zope.org was about. This could then be extended so you

Re: [Zope] Version Control in Zope / Managing releases

2000-09-27 Thread Chris Withers
Marcin Kasperski wrote: It seems to me that it would be easier to implement complete version-control mechanisms within Zope (there is Undo, there are versions, there is export/import) than to build better integration with external VC tools, but this is just an opinion. I think that's right,

Re: [Zope] Displaying all subobjects

2000-09-27 Thread Chris Withers
Phil Harris wrote: dtml-in "objectItems()" dtml-if "meta_type=='Folder'" dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)" /dtml-if dtml-var idbr /dtml-in How about this untested: dtml-in "objectItems()" dtml-if "meta_type=='Folder'" dtml-with sequence-item

Re: [Zope] Yes it did! :-S

2000-09-27 Thread Chris Withers
Chris Withers wrote: With the new security policy in Zope 2.2, this is no longer necessary, and you can comment out the restriction. Just remove or comment out the 'validate' method in the file Products/ZWiki/ZWikiPage.py and restart your Zope server. This is Zope 2.2.1 adn I did. Same

Re: [Zope] removing validate() didn't help :-(

2000-09-27 Thread Chris Withers
Martijn Pieters wrote: I have seen the same problem; the getSize method isn't accessible to RecentChanges, even though the Authenticated User has the View permission. Yup, that's the one... With the new security policy in Zope 2.2, this is no longer necessary, and you can comment out the

Re: [Zope] sequence-item is called in dtml-let assignment?

2000-09-28 Thread Chris Withers
seb wrote: If you do: dtml-in "objectValues('Foo Thing')" dtml-let thing=sequence-item dtml-var "thing.id()" /dtml-let /dtml-in You get TypeError: it claims thing is a string, so you can't perform any kind of function call against it. Welcome to

Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread Chris Withers
[EMAIL PROTECTED] wrote: "delete from table where var=dtml-var foo" I am surprised at this behaviour. Am I doing somehting worng? or this is how it works? Is there any information on how to do this somewhere??? This should work :-) What error messaegs are you getting? What DB and DA are

Re: [Zope] How to change Unauthorized error message?

2000-09-29 Thread Chris Withers
Andy McKay wrote: Sure I suppose. How of course to implement this is another issue, as errors get thrown up to /lib/python/ZPublisher/HTTPResponse.py and it would be get to trap them before then. Well, that's what Tres Seaver thought: http://classic.zope.org:8080/Collector/1049/view (he

[Zope] Off Topic: Patent Offices

2000-10-03 Thread Chris Withers
Tim Cook wrote: Our patent office doesn't have a clue and doesn't seem to research very much either. Name me one that does ;-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

[Zope] 'Offline' mailhost

2000-10-03 Thread Chris Withers
Shane Hathaway wrote: I'm not sure how well MailHost scales, but you can certainly store thousands of names in a ZODB-managed list. Tests done for the BTreeFolder product prove it. Sadly, I think MailHost doesn't scale too well :-( What it'd need to do if you're sending the mail to a few

Re: [Zope] Only superuser can set Proxy on DTML methods?

2000-10-03 Thread Chris Withers
Brad Clements wrote: It seems that when I'm managing my website as a Manager (from acl_users folder) I can not set a proxy role for a method or document. I get "you do not have the proxy role" something like that. The wording is crap. What it means is that the user object you are

Re: [Zope] 'Offline' mailhost

2000-10-04 Thread Chris Withers
Hannu Krosing wrote: Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. Can you tell me how to set that up with exim? Also you could send just one message to all the recipients instead of sending individual

Re: [Zope] dunno

2000-10-04 Thread Chris Withers
Fred Yankowski wrote: Version 0-7-2 of Squishdot seems to use the url_quote option when accessing the value of admin_address in particular, so when a DTML page has code like !--#var admin_address url_quote-- Where does this code occur? (all occurences please ;-) and admin_address

Re: [Zope-dev] cookies ie5.5 win

2000-10-05 Thread Chris Withers
Sebastian Luehnsdorf wrote: i'm having a strange problem with cookie based user authentication with ms internet explorer 5.5 on windows. it seems that the browser (but only this version and only under windows!) seems to "forget" its cookies, which results in an immediate logout. does anybody

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Chris Withers
Pierre-Julien Grizel wrote: I want my product to be callable with two method, say "m1" and "m2", that perform different tasks. How would these methods be called? Chris ___ Zope maillist - [EMAIL PROTECTED]

[Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Chris Withers
Toby Dickenson wrote: Those people were concerned that too many things were exposed via ZPublisher also My interpretation was that the issue is one of access control, not publishing protocol. I think the issue is that you can't limit the visibility of objects right now. You can limit

[Zope] Quoting

2000-10-10 Thread Chris Withers
Dieter Maurer wrote: Note, that probably Zope user names may contain characters not allowed in Cookie values. I wonder how hard it would be to implement the following: dtml-var something cookie_quote Quote all characters not allowed in a cookie dtml-var somethinh id_quote Quote all

Re: [Zope] How: /foo?var=bar equiv to /foo/bar

2000-10-10 Thread Chris Withers
Heymann William wrote: I am trying to get rid of those question marks in my urls since it seems to confuse the users but I am not sure really how to do that. I have heard that it can but done but so far I have not found out how it can be done. I want for the last piece of the url to be

Re: [Zope] Black Magic

2000-10-10 Thread Chris Withers
Pierre-Julien Grizel wrote: It seems that in fact the DTML document doesn't actually pass _.None and _ to my object. WHY ?? This is deep voodoo that I don't fully understand. To me, it appears that what you get depends on how your __call__ was called... The arguments vary dependign on

Re: [Zope] Quoting

2000-10-10 Thread Chris Withers
Seb Bacon wrote: dtml-var something cookie_quote Quote all characters not allowed in a cookie wouldn't dtml-var something url_quote do the job? Dunno... Dieter? That reminds me, it's silly that there's not dtml-something url_unquote, so I patched my zope to provide it. I was

Re: [Zope] how to call sequence-item

2000-10-10 Thread Chris Withers
Joachim Schmitz wrote: dtml-call "REQUEST.set('bild',_['sequence-item'])" Here's your problem, thanks to _'s 'itneresting' implementation of __getitem__... ...what you really want is: dtml-call "REQUEST.set('bild',_.getitem('sequence-item',0))" cheers, Chris

Re: [Zope] Acquisiton Wrappers bite ;-)

2000-10-11 Thread Chris Withers
Ron Bickers wrote: This returns the following when in the root folder context: TinyTable instance at 8684ad8 TinyTable instance at 8684ad8 0 the above is a bit misleading ;-) The two objects aren't actually at the same address 'cos your comparison is actually of the acquisiton

[Zope] aq_base

2000-10-12 Thread Chris Withers
Dieter Maurer wrote: At least in Zope 2.2.1, "aq_base" was not exposed to DTML. ...and I don't think it ever would or should be sicne it strips off all security context and would probably let you do 'bad things' :-S cheers, Chris

Re: [Zope] What contains an object....

2000-10-12 Thread Chris Withers
Ron Bickers wrote: dtml-var "PARENTS[-1].myObject == myObject" So, is there another way in DTML I can see if an object was acquired from PARENTS[-1] or not? Is there a way to check an objects container out of context? Hmmm... try the following as a replacement for the above stuff:

Re: [Zope] Need preferred 'import' format for ReportLab Image module

2000-10-12 Thread Chris Withers
Tony McDonald wrote: to reply to Andy? In my own reportlab distribution I changed; import Image to from PIL import Image Well, it sounds right and if it works then it probably is ;-) It probably depends exactly where you install PIL, though, which I haven't done yet :-S cheers, Chris

Re: [Zope] Don't think so

2000-10-12 Thread Chris Withers
Paul Winkler wrote: Hi, Has anyone run up against a limitation on the number of users that can be in one acl_users folder? Either a hard limit or a practical limit? IIRC, zope.org's acl_users has about 11,000 people in it without too many problems... Ethan, can you confirm? cheers,

Re: [Zope] int and string comparisons

2000-10-12 Thread Chris Withers
"Manuel Amador (Rudd-O)" wrote: dtml-if expr="item == REQUEST.begin_day" selected /dtml-if Try replacing the above with: dtml-if expr="item == _.int(REQUEST.begin_day)" ...and stop posting HTML to a non-HTML list! cheers, Chris ___ Zope

Re: [Zope] dtml-comment doesn't...

2000-10-12 Thread Chris Withers
"iap_y2fun.com" wrote: dtml-comment dtml-var "sendMail(from='hello@world')" /dtml-comment Don't worry... the problems are mainyl caused 'cos dtml-comment doesn't do what most people would expect it to... *grinz* Chris ___ Zope maillist -

Re: [Zope] RE: aq_base

2000-10-12 Thread Chris Withers
Ron Bickers wrote: Well... aq_base appears to work just fine in a Python method (not external). Is that a bad thing? Probably, although someone from DC would need to comment why... Hmm... Evan, should that be the case? cheers, Chris ___ Zope

Re: [Zope] Distribution Tab

2000-10-16 Thread Chris Withers
Seb Bacon wrote: In the Zope PTK there are a couple of products that have been packaged as product.dats. What format are these? How do I do it? If you go into any of your TTW products in the Control Panel, you'll see a 'Distribution' management tab. That'll let you create your own

Re: [Zope] Name lookup emulation with a Product

2000-10-17 Thread Chris Withers
Pierre-Julien Grizel wrote: I looked at the __call__ method (and read the 'isDocTemp' thread ;-) ) and, if I must, I can replace m1 and m2 with a __call__ method taking another parameter specifying what kind of action it has to do. Well, there's another little gem which got covered in a

[Zope] What Products created What Permissions

2000-10-17 Thread Chris Withers
Michael Bernstein wrote: On a slightly different note, I think that the permissions list should be viewable in two more ways: A view where permissions are grouped into 'subjects', (for example all How about listing what products they're used by/defined in? That could be incredibly useful for

Re: [Zope] Access Control vs Publishing Protoco

2000-10-17 Thread Chris Withers
Seb Bacon wrote: edit a document through webDAV but *not* TTW. In my mind, you're either authenticated to do a task, or you're not. It doesn't matter *how* you do it. That's why 'listable' or something like it would be a better name for the permission than 'URL Traversable', IMHO (although

Re: [Zope] Access Control vs Publishing Protoco

2000-10-17 Thread Chris Withers
Dieter Maurer wrote: Management, however, would be more difficult, as there are no good defaults for the "URL Traversable" permission. It is not easy, to determine (e.g.) for a DTML method/document whether it is only used as a component (such as "standard_html_header") or is a full grown

Re: [Zope] Access Control vs Publishing Protoco

2000-10-17 Thread Chris Withers
Dieter Maurer wrote: My primary concern (and maybe Chris') is, how can we prevent these objects to be viewed by Anonymous. Yup, that's exactly my point... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Re: Quoting

2000-10-17 Thread Chris Withers
Dieter Maurer wrote: Where would you use this "id_quote"? The only useful place might be the action of an object creation or renaming. Exactly... However, I am not sure, that I would prefer to get a strangely encoded id rather than an exception that tells me some characters are not

Re: [Zope] dtml-in

2000-10-17 Thread Chris Withers
[EMAIL PROTECTED] wrote: But I was only able to print the name of the dtml document, how can I execute the script write in the dtml document ? The following should do it: dtml-in "Applications.objectValues('DTML Document')" dtml-var sequence-item /dtml-in cheers, Chris

[Zope] Re: Réf . : Re: [ Zope ] dtml-in

2000-10-17 Thread Chris Withers
(keep copying to the list so other people can jump in and help) [EMAIL PROTECTED] wrote: thks a lot for your answer. It works, but I've a lot of dtml documents in my folder, and it's tooo slow with the sequence-item tag (less than one seconde with dtml-var id, and more than

Re: [Zope] __len__ Errors

2000-10-18 Thread Chris Withers
some more this evening. Thanks, Scott From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms Date: Wed, 18 Oct 2000 10:16:34 +0100 To: Scott Burton [EMAIL PROTECTED] Subject: Re: [Zope] __len__ Errors Scott: No HTML mail! ;-) Are the discussions groups

Re: [Zope] Discussions

2000-10-18 Thread Chris Withers
Kapil Thangavelu wrote: Cary O'Brien wrote: Why are things like ZDiscussions and Confera even on the zope download pages? They don't work! It would be better if they were moved to a section called "Things that worked once but aren't being maintained so they don't work any more".

Re: [Zope] Squish it

2000-10-18 Thread Chris Withers
Cary O'Brien wrote: There is a ZDiscussions that works. It is called ZUBB. But it doesn't do attachments. I really need attachments. I'm trying to fix Attachments in ZDConfera, but the FileObject class doesn't seem to exist any more. Squishdot does attachments ;-) Chris PS: It was

Re: [Zope] Discussions

2000-10-18 Thread Chris Withers
"J. Atwood" wrote: Maybe I should write a little "Differences between ZUBB and Squishdot" so people can figure out where to use one or the other. I'd love to read it :-) Chris ___ Zope maillist - [EMAIL PROTECTED]

[Zope] IIS and Zope share same problem :-S

2000-10-20 Thread Chris Withers
MICROSOFT WEBSERVERS LAID OPEN FOR ALL TO SEE by Dave Murphy, [EMAIL PROTECTED] Microsoft is scrambling to repair damage caused by a security hole in its IIS 4 5 webserver that runs on Windows NT/2000. Microsoft claims over four million IIS websites, and each one of them is at risk of

Re: [Zope] ZDiscussions for Zope 2.2.2

2000-10-20 Thread Chris Withers
Cary O'Brien wrote: 2) add __allow_access_to_unprotected_subobjects__ in a few places. That's not good :-S But hey, I had to do it to get Squishdot to work with Zope 2.2 as well :-( cheers, Chris ___ Zope maillist - [EMAIL

Re: [Zope] newbie question

2000-10-24 Thread Chris Withers
Hi Kathy, Error Type: SyntaxError Error Value: invalid syntax Troubleshooting Suggestions It looks like your addEntry.py file has some syntax mistakes in it (think mis-spelled, badly indented or otherwise defective python ;-) Try comparing it with what it should be and see if the problem

Re: [Zope] Simple Question?

2000-10-24 Thread Chris Withers
Noah wrote: In my file "add_art_html" I want to add this code: dtml-var /mojo/editor/edit But when I try to view it I get a KeyError. I also tried: dtml-var '/mojo/editor/edit' If Steve A's patch ever makes it into the core, you could do: dtml-/mojo/editor/edit; ...and

<    1   2   3   4   5   6   7   8   9   10   >