[Zope-dev] 'import Zope' problem

2000-09-06 Thread Christian Couder
Hi everybody, I am quite new to Zope and I want to use the Python debugger as described in the How-To: The Debugger Is Your Friend. I installed Zope with the Debian zope package version 2.1.6-5, so my zope directory is /usr/lib/zope (this is where I have a lib/python directory), but I have my

Re: [Zope-dev] 'import Zope' problem

2000-09-06 Thread Ibañez Palomar Juan David
This bug was reported to the Debian bug tracking system, look at http://cgi.debian.org/cgi-bin/bugreport.cgi?bug=61446 Do, $ export INSTANCE_HOME=/var/lib/zope ... Hi everybody, I am quite new to Zope and I want to use the Python debugger as described in the How-To: The Debugger

Re: [Zope-dev] Call for a creation_datetime property!

2000-09-06 Thread Rik Hoekstra
"Jay, Dylan" wrote: It is really a painful thing to do without. I realize I can add this capability to factories of my own objects but I don't want to have to create my own versions of dtml-document and everything else just to ensure that a creation date is kept. I've tried using

[Zope-dev] Traversal Questions ;-)

2000-09-06 Thread Chris Withers
Evan Simpson wrote: From: Chris Withers [EMAIL PROTECTED] It looks like REQUEST.steps is the replacement for PARENTS? Is that so? snip REQUEST.steps isn't PARENTS replacement Okay, so given that PARENTS is living in a 'deprecated' list on the Interfaces Wiki, what are we supposed to use

Re: [Zope-dev] Call for a creation_datetime property!

2000-09-06 Thread Toby Dickenson
On Wed, 6 Sep 2000 09:58:44 +1100 , "Jay, Dylan" [EMAIL PROTECTED] wrote: It is really a painful thing to do without. I realize I can add this capability to factories of my own objects but I don't want to have to create my own versions of dtml-document and everything else just to ensure that a

Re: [Zope-dev] ZPatterns: DropZone example

2000-09-06 Thread Steve Spicklemire
Hi Steve, (and any others who might care to comment) I've been sorting through old ZPatterns email looking for inspiration and I came upon this: "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Hi folks, Steve I've been looking at the DropZone example Phillip Eby

Re: [Zope-dev] ZPatterns: DropZone example

2000-09-06 Thread Steve Spicklemire
Hi Steve, "Steve" == Steve Alexander [EMAIL PROTECTED] writes: ShopperManager.InsertItemIntoShoppersBasket(shopper=aShopper, mi=aMarketItem, quantity=qty), Steve Seeing as the context is clearly ShopperManger (or Steve Shoppers), I don't think there's any need for such a

[Zope-dev] ZDebug questions

2000-09-06 Thread Chris Withers
Shane Hathaway wrote: http://www.zope.org/Members/hathawsh/ZDebug/index_html ZDebug is a set of patches to Zope that help in the deciphering of DTML errors and authorization exceptions. Because this is the first release, remember to make a backup before installing. Saw the screenshots and

[Zope-dev] TCPWatch How-To

2000-09-06 Thread Chris Withers
Shane Hathaway wrote: TCPWatch is a simple Python script that lets you monitor a TCP connection. ...now this really is extremely useful to me, but not for Zope ;-) However, it did take me a while to wrap my head around it. So here's a little How-To/Example (If anyone thinks I should do this

[Zope-dev] Python 1.6, Expected node type 12, got 312

2000-09-06 Thread John Hayward-Warburton (Programming account)
Hi, Clean build of Python 1.6 (downloaded immediately following release notification), clean build of Zope-2.2.1-src; Accessing /manage brings an error in gparse.py, line 293 (ast=sequence2ast) , "Expected node type 12, got 312". Anyone else seeing this? Anyone know what it means? Naturally,

[Zope-dev] Re: ZDebug questions

2000-09-06 Thread Shane Hathaway
Chris Withers wrote: Using your sample 'bad' DTML, I got the same but the 'Contains name?' column didn't show up :-( Any ideas? (yes, I was tracking down a security exception, and that column may have been really useful ;-) My guess is you're using Zope 2.1.6. ZDebug doesn't have a way to

Re: [Zope-dev] TCPWatch How-To

2000-09-06 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: TCPWatch is a simple Python script that lets you monitor a TCP connection. ...now this really is extremely useful to me, but not for Zope ;-) However, it did take me a while to wrap my head around it. So here's a little How-To/Example (If

Re: [Zope-dev] Python 1.6, Expected node type 12, got 312

2000-09-06 Thread Toby Dickenson
On Wed, 06 Sep 2000 13:48:09 +, "John Hayward-Warburton (Programming account)" [EMAIL PROTECTED] wrote: Hi, Clean build of Python 1.6 (downloaded immediately following release notification), clean build of Zope-2.2.1-src; Accessing /manage brings an error in gparse.py, line 293

[Zope-dev] CalendarTag, year mode image

2000-09-06 Thread Ibañez Palomar Juan David
Hi all, I'd like to release the 0.9.21 version of the CalendarTag soon, but first I want to change the year mode image, currently it's an "Y" which is not very international, I'd like to see a language neutral image. The interface of the CalendarTag is based in the Palm Pilot, but the Palm III

[Zope-dev] (no subject)

2000-09-06 Thread James Johnson
Ok I'm going over most of the ZPatterns stuff again. It seems simple enough. Yet I can't seem to put a specialist and a dataskin based ZClass in a product folder and get them to do anything persistently. I've been through all of the tutorials and can't seem to get anything to click. You know

Re: [Zope-dev] Acquisition in a DTML Tag

2000-09-06 Thread Brett Carter
"Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I've defined my own dtml tag (i.e. dtml-foo/dtml-foo) Brett and I am trying to look up an object depending on the Brett arguments passed to my tag. The python class that defines Brett the tag inherits from

Re: [Zope-dev] PARENTS

2000-09-06 Thread Bill Anderson
Chris Withers wrote: From http://www.zope.org/Members/michel/Projects/Interfaces/PublisherRequest: Deprecated attributes: - PARENTS What are we supposed to use instead now? Glancing it over .. perhaps: steps: list of names traversed. ?? -- Do not meddle in the affairs of sysadmins,

Re: [Zope-dev] PARENTS

2000-09-06 Thread Bill Anderson
Bill Anderson wrote: Chris Withers wrote: From http://www.zope.org/Members/michel/Projects/Interfaces/PublisherRequest: Deprecated attributes: - PARENTS What are we supposed to use instead now? Glancing it over .. perhaps: steps: list of names traversed. After seeing other

[Zope] ANN: want to localize your pages and/or zope?

2000-09-06 Thread Tino Wildenhain
Hi, last night I realized my finger-trainnig called VaryTag :-) I talkt about it at EuroZope meeting in paris, but lost my old implementation during deleting of old zope instances. So it took me 3.5h to rewrite it from scratch. This time it works according to rfc2616 (HTTP/1.1). Its just one

Re: [Zope] supplemental group ids (Linux)

2000-09-06 Thread Bill Anderson
Kip Rugger wrote: Bill Anderson [EMAIL PROTECTED] wrote: Kip Rugger wrote: Chris McDonough [EMAIL PROTECTED] wrote: Aplogies for the ignorance, but can you maybe explain the concept of supplemental group ids and give an example of how the current unpatched behavior could be

[Zope] Form Validation

2000-09-06 Thread Andreas Pauley
Hi, I see you can let Zope do basic form validation for you by appending ":string" or ":int" to your form name. The error messages that are displayed are not that clear, however. How can I get more control over what happens when an error occurs? (e.g. I'd like to be able to get back a

Re: [Zope] categorization request

2000-09-06 Thread ethan mindlace fremen
ethan mindlace fremen wrote: Zopatistas! I'd like to categorize the how-Tos in a similar style to how the products have been categorized. What I'm looking for is a volunteer who is willing to go through *all* the current HowTos and propose a classification. Tim Cook has indicated that

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] Tracker weirdness

2000-09-06 Thread Holger Lehmann
Hi everyone :-) I am trying (desperately) to use a Tracker on my own site. So I checked one out of CVS and started using it. I created some users for my website with their very own roles. Now when one of those users tries to view the issues listed in the Tracker (like someone would do on

Re: [Zope] re module through the web security

2000-09-06 Thread Jens Vagelpohl
i for my part think it makes sense. not just from a security standpoint (think of those sites that allow members who are not necessarily hand-picked to write DTML or attempt to do so) but also from a knowledge level standpoint. who wants their site crashed just because the new programmer doesn't

[Zope] WOWDamn !! ZopeNewbies wakeup

2000-09-06 Thread Jason Cunliffe
This is for any+all of you new to Zope.. and for those like me who have been struggling with DMTL for too long. I just found a perfect *gemstone* burried in 'Chapter6 - Advanced DTML' of the online sample of the O'Reilly Zope Book at http://www.zope.org/Members/michel/ZB/AdvDTML/view """ The

Re: [Zope] re module through the web security

2000-09-06 Thread Tino Wildenhain
Hi, Chris Withers wrote: 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

[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] Underscore Caracter

2000-09-06 Thread Duncan Booth
Tino Wildenhain wrote: Turn "asd_asd" into "asd asd" and output: dtml-var "_.string.join(_.string.split('asd_asd', '_'))" I've seen this on plenty lines of digicools code and wondered about if this is more efficient then using just string.replace() ? I would say string.replace()

[Zope] [ANN] Whois Tools for Python Zope

2000-09-06 Thread Dominic Mitchell
Just a small package that some people may find useful. When used with Zope, it creates a dtml-whois tag that does a whois lookup on a variable. For example: pre dtml-whois "'zope.org'" /pre Will result in: Whois Server

[Zope] acl_users mystery

2000-09-06 Thread Ragnar Beer
Howdy! I had a strange problem today: I added a Role "User" in the root's security tab and gave it a couple of permissions. But further down the tree in /de/support where in the acl_users folder I added a user with the role 'User' the permissions where not acquired (until set manually in the

Re: [Zope] Underscore Caracter

2000-09-06 Thread Toby Dickenson
On Tue, 5 Sep 2000 20:23:47 -0600, "T.J. Mannos" [EMAIL PROTECTED] wrote: Now, who do I have to beat up to get the 're' module added to the namespace variable??? :) Not a good idea its too easy for a buggy regex to eat up lots of memory and processor time. Toby Dickenson [EMAIL PROTECTED]

[Zope] problem with virtualhosts

2000-09-06 Thread Daan Wormsbecher
Hi all, My server is running with Zope 2.1.6 and SiteAccess 1.0.1. I followed the instructions of the very clear how-to created by Anser. But it there is one problem which I can't solve. I want to serve pages with Apache and with Zope. The url to serve pages with Zope should be:

[Zope] correction (problem with virtualhosts)

2000-09-06 Thread Daan Wormsbecher
This is a correction for my last entry at the mailing list: problem with virtualhosts. The line: ProxyPassReverse /z http://www.deeldrie.nl:8080/deeldrie should be in this example: ProxyPassReverse /z http://www.myserver.nl:8080/myserver regards, Wouter

[Zope] Lock and Transaction in Zope.

2000-09-06 Thread Aitor Grajal
I think I know how to manage transactions in Zope, but I don't know how to lock Zope resources for multiple requests. For example : I have a DTML Method, called "transac1", which looks like this : dtml-if "var==0" dtml-call wait_10_seconds "waiting 10 seconds..." dtml-call

Re: [Zope] re module through the web security

2000-09-06 Thread Chris McDonough
On Wed, 6 Sep 2000, Chris Withers wrote: 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.

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
I had to dig a level deeper to support phorum (www.phorum.org), a PHP message board app. Here's my update to handle cookies, redirection, POST variables, and relative links. I'm new to python, so if I've done anything awkwardly, please let me know the more elegant way. First, a patch to

[Zope] Buying Zope for 139 German Marks - It´s cheap

2000-09-06 Thread Harald Koschinski
Hallo all, maybe its old new´s - maybe not: Zope is part of "SuSE Linux 7.0 Profesional Edititon" and this is printed on the box in the categorie "Features and Highlights". It is indeed a Highlight. Regards Harald ___ Zope maillist - [EMAIL

Re: [Zope] re module through the web security

2000-09-06 Thread Evan Simpson
From: Chris Withers [EMAIL PROTECTED] One of Zope's key strengths is its granular security, right? So why isn't it the reponsibility of the site designer/maintainer/owner/whatever to ensure that only people he trusts have the ability to write DTML? Fear not. In the brand new shiny

RE: [Zope] Form Validation

2000-09-06 Thread Stuart Foster
I can't answer your question but have been looking for similar information. Where can I find out more about ":string" and so forth. I haven't been able to locate any information on validation.. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: [Zope] re module through the web security

2000-09-06 Thread Dan L. Pierson
Chris Withers writes: 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. [snip] It

RE: [Zope] re module through the web security

2000-09-06 Thread Chris McDonough
If you're concerned about the availability of various modules within PythonMethods, you should participate in the PythonMethods project wiki, probably at the page http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/CurrentIssues. -Original Message- From: Dan L. Pierson

[Zope] Re: [Zope] Buying Zope for 139 German Marks - It´s cheapp

2000-09-06 Thread Gregor Hoffleit
On Wed, Sep 06, 2000 at 05:01:38PM +0200, Harald Koschinski wrote: maybe its old new´s - maybe not: Zope is part of "SuSE Linux 7.0 Profesional Edititon" and this is printed on the box in the categorie "Features and Highlights". It is indeed a Highlight. Got a better buy: www.lob.de

[Zope] INSTANCE_HOME problems...

2000-09-06 Thread Will Dennis
Hello all, I have followed 4am's INSTANCE-HOME How-To, and have set up a Zope Instance. I created the var, import, Extensions and Products directories from scratch. I then put a new product in the new instance's Products directory. When I start my new Zope instance, it sees all of the products

Re: [Zope] supplemental group ids (Linux)

2000-09-06 Thread Kip Rugger
OK, something is not quite right here. On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of the explicit '-u nobody'? I don't do that on my system, which causes Zope to run as nobody implicitly. (When started as root, unless told otherwise, zope will switch to nobody).

[Zope] Proxy roles don't propagate? - bizzare permissions from ZDChart too

2000-09-06 Thread Brad Clements
I'm using LoginManager and the loginForm cookie method for security. I want my login form to use the same standard_html_header, stylesheet and so on as my system. My hierarchy is / Strader StyleSheet acl_Users loginForm I've denied anonymous access to Strader

[Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-06 Thread Tim Hicks
- Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Tim Hicks" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, September 05, 2000 9:44 PM Subject: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) snip The analysis

[Zope] Cut down on the Available Objects list.

2000-09-06 Thread Erik Enge
Hi, all. When I create ZClasses I can make the Available Objects shrink to just a couple of available objects via subclasses and so forth. How would I do this with a Python Class in a Python Zope Product? (Let's say an OFS.Folder.Folder class, which would normally could contain all available

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
Got authorization to work! First, another patch to Client.py to raise 'Unauthorized' when 401 is returned by PHP/Perl: after line that starts with if ec==200 add if ec==401: raise 'Unauthorized' Second, numerous changes to the external method that makes the request and receives

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
oops! that should be username, password = req._authUserPW() ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Re: [Zope-Perl] Send me your Perl Methods

2000-09-06 Thread Andy McKay
Or maybe using a perl module that doesnt exist in Python? I was looking at MP3::Napster the other day but Im stuck on Windows. - Original Message - From: "Gisle Aas" [EMAIL PROTECTED] To: "Michel Pelletier" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday,

Re: [Zope] INSTANCE_HOME problems...

2000-09-06 Thread Will Dennis
Thanks for replying so quickly, Evan! Evan Simpson wrote: Some sanity checks: - You're starting Zope from inside the INSTANCE_HOME, right? Yes, just as in the How-To instructions. I can provide you with the start script if necessary. - Can you verify that the Data.fs in the

[Zope] ZDebug Wizzard interference

2000-09-06 Thread Albert Boulanger
Shane wrote http://www.zope.org/Members/hathawsh/ZDebug/index_html ZDebug is a set of patches to Zope that help in the deciphering of DTML errors and authorization exceptions. Because this is the first release, remember to make a backup before installing. Looks like ZDebug does not work

Re: [Zope] INSTANCE_HOME problems...

2000-09-06 Thread Will Dennis
Hello all, OK, shoulda tried other products before posting... We just installed two products (LocalFS and ZSMime) in the given instance's Products folder, and they appear in the instance, just as they should! For some reason, however, WorldPilot doesn't show up unless I install it in the base

[Zope] Set Access Rule wish

2000-09-06 Thread Albert Boulanger
Its nice that the icon for the method, who is the access rule's target, is changed. However, I think also there needs to be some indicator on the folder involved as well. Over the long weekend, I had accidentally set an access rule (for URL-based SQLSession ID) in the proper folder and also a

[Zope] DateTime.now().iso_week

2000-09-06 Thread Bill Anderson
In Zope, I need to get the results of the command in the subject. Unfortunately (and somewhat irritatingly...), Zope doesn't seem to use the mxDateTime package, and thus, _.DateTime does _not_ have it. Anyone know how I would go about getting it? Without using an External method? -- Bill

[Zope] Major problem involving Multiple zopes on one machine

2000-09-06 Thread Bill Anderson
This is happening on an HP-UX 11.0 machine. Setup: Two Zope installs, TWO IP adresses. Each install has the -a xx.xx.xx.xx address option passed via the standard start script. problem: occasionally, while working on one, I wind up actually working on the other. Clarification: While in the

Re: [Zope] Major problem involving Multiple zopes on one machine

2000-09-06 Thread ethan mindlace fremen
Bill Anderson wrote: Clarification: While in the manage screen for ServerA, I occasionally see the management screen for ServerB. Even wihtout being logged into ServerB. (IE. clean browser session) I have 5 zopes on the same machine i have never noticed this problem. do the different ip's

Re: [Zope] Major problem involving Multiple zopes on one machine

2000-09-06 Thread Bill Anderson
ethan mindlace fremen wrote: Bill Anderson wrote: Clarification: While in the manage screen for ServerA, I occasionally see the management screen for ServerB. Even wihtout being logged into ServerB. (IE. clean browser session) I have 5 zopes on the same machine i have never

Re: [Zope] supplemental group ids (Linux)

2000-09-06 Thread Bill Anderson
Kip Rugger wrote: OK, something is not quite right here. On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of the explicit '-u nobody'? I don't do that on my system, which causes Zope to run as nobody implicitly. (When started as root, unless told otherwise, zope

Re: [Zope] re module through the web security

2000-09-06 Thread Bill Anderson
Evan Simpson wrote: From: Chris Withers [EMAIL PROTECTED] One of Zope's key strengths is its granular security, right? So why isn't it the reponsibility of the site designer/maintainer/owner/whatever to ensure that only people he trusts have the ability to write DTML? Fear not. In

[Zope] Whitespace in lines property

2000-09-06 Thread Tim Cook
Can anyone tell me why when I edit a lines property I get leading whitespace inserted? The first line gets seven each one after that gets 10 spaces. I tried stripping it out but this didn't seem to have any effect. ... textarea name="alt_names:lines" rows="10" cols="50" dtml-in alt_names

Re: [Zope] ANN: Serving PHP/Perl from Zope update

2000-09-06 Thread Bill Welch
oops, again :-( headers = {} if req.environ.has_key('HTTP_COOKIE'): headers['Cookie'] = req.environ['HTTP_COOKIE'] if req.environ.has_key('HTTP_USER_AGENT'): headers['User-Agent'] = req.environ['HTTP_USER_AGENT'] Also on my member page -

Re: [Zope] Whitespace in lines property

2000-09-06 Thread Tino Wildenhain
Hi Tim, Tim Cook wrote: Can anyone tell me why when I edit a lines property I get leading whitespace inserted? The first line gets seven each one after that gets 10 spaces. I tried stripping it out but this didn't seem to have any effect. ... textarea name="alt_names:lines"

Re: [Zope] Whitespace in lines property

2000-09-06 Thread Tim Cook
Tino Wildenhain wrote: Hi Tim, Tim Cook wrote: Can anyone tell me why when I edit a lines property I get leading whitespace inserted? The first line gets seven each one after that gets 10 spaces. I tried stripping it out but this didn't seem to have any effect. ...