Re: [Zope] Underscore Caracter

2000-10-07 Thread Kapil Thangavelu
Chris McDonough wrote: Yes. Thank you. Note however that methods of modules accessed via the underscore namespace may be filtered individually, so although 'replace' exists as a method of the Python string module, this does not necessarily make it accessible implicitly through Zope via

[Zope] Problem of Catalog Find items to ZCatalog

2000-10-07 Thread iap_y2fun.com
Hi, In the management view of a Catalog (ex. /Catalog), there is a tab named "Find items to ZCatalog". In that tab, there is a field "Find objects of type:". The options listed there were retrieved from the "factory" of a ZClass. (The "add list name" field, a good feature for people who are not

Re: [Zope] Underscore Caracter

2000-10-07 Thread knight
Chris McDonough wrote: Yes. Thank you. Note however that methods of modules accessed via the underscore namespace may be filtered individually, so although 'replace' exists as a method of the Python string module, this does not necessarily make it accessible implicitly through

Re: [Zope] HTTP user authentication in Python

2000-10-07 Thread Philipp Auersperg
The core of HTTP authentication is the following (you have to put the authentication into the HTTP header): import httplib h=httplib.HTTP() h.putheader("AUTHORIZATION", "Basic %s" % string.replace(

[Zope] A DTML problem using Namespaces

2000-10-07 Thread tav
hi, i am running into a slight problem due to STILL not being able to understand namespaces perfectly, and would appreciate if someone could help out. - the situation is this: - i have a dtml document called "pageowners", on which i have a list property called owners. which changes

Re: [Zope] 'Offline' mailhost

2000-10-07 Thread Jan H. Haul
Terry Kerr wrote: Chris Withers wrote: Hannu Krosing wrote: Also you could send just one message to all the recipients instead of sending individual messages. Urm, they could be pretty unfriendly mail messages if they're being sent to a coupla thousand people. The bandwidth

[Zope] Quotes in DTML (Python) expressions(was: [Zope] HTML-Code in variables (addition)) (was: [Zope] HTML-Code in variables (addition))

2000-10-07 Thread Dieter Maurer
Lars Heber writes: dtml-let text="my html text with a link to a href="http://www.yahoo.com"Yahoo!/a" dtml-let text="'my html text with a link to a href=\x22http://www.yahoo.com\x22Yahoo!/a'" I.e. you use Python's hexadecimal (or octal) quoting for '"' (\x22) inside the Python string.

Re: [Zope] Problem with DTML-CALL

2000-10-07 Thread Dieter Maurer
Tim Gildersleeve writes: The line is dtml-call "REQUEST.set('TOTALDEVIATION',fSTART)" Error Type: TypeError Error Value: number coercion failed I can assure you, that the "number coercion failed" is not raised in the above "REQUEST.set". "set" accepts any type. The problem arises

Re: [Zope] external method import error (ImportError)...

2000-10-07 Thread Dieter Maurer
Eric writes: To summarize: How do I import modules in an External Method's .py file? I remember, I read this in some "External Method" related documentation. You do *NOT* place such modules inside the folder "Extensions" but put them somewhere else reachable by "PYTHONPATH". The documentation

Re: [Zope] Wierd 2.2.2 start up problem

2000-10-07 Thread Dieter Maurer
J. Atwood writes: I have installed 2.2.2 on more than a few machines on my fifth machine I got this after doing the install. 2000-10-04T19:54:35 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\000\000\003' Traceback (innermost last): File

Re: [Zope] client proxy setting

2000-10-07 Thread Dieter Maurer
TMGB writes: Can I get the user's client proxy setting using 'REQUEST' or some other syntax, product, or utility. This is not Proxy Roles or ProxyPass, but the client's proxy settings if any. I am working on a help page to debug a user's settings if he or she can't get to certain pages

Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-07 Thread Dieter Maurer
Roman Milner writes: I'm trying to get ldap methods to work with 2.2.2. I can access the attributes of the objects returned from an ldap method with a python extension fine, but dtml-in'ing the returned list doesn't work. I keep getting an error (traceback below). !-- Error Type:

Re: [Zope] Container Class questions

2000-10-07 Thread Dieter Maurer
[EMAIL PROTECTED] writes: product with associated image Should I create a product that can contain said images? If so, how do I do this? Should I simply force a naming conventions for the images and tie them together with the sample catalog items that way? I would use a

Re: [Zope] Container Class questions

2000-10-07 Thread Robin Becker
In article [EMAIL PROTECTED], Dieter Maurer [EMAIL PROTECTED] writes [EMAIL PROTECTED] writes: product with associated image Should I create a product that can contain said images? If so, how do I do this? Should I simply force a naming conventions for the images and tie

[Zope] Web statistics

2000-10-07 Thread Stephan Goeldi
Is there something like webalizer for Zope? I would like to create a statistic of my website's visits. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your

Re: [Zope] 'Offline' mailhost

2000-10-07 Thread Michael Bernstein
"Jan H. Haul" wrote: Each of these will be around 42 KByte large. Huh? Why that? you ask. Because in the header of each mail, the whole recipient list will be listed under To: or Cc: [snip] - privacy: You would not like to have "your" recipients end up on other people's mailing lists

Re: [Zope] Can Free Software Manage Your Web Site? http://www.inside.com/

2000-10-07 Thread Michael Bernstein
"Steven D. Majewski" wrote: Inside magazine http://www.inside.com/ has a feature on Zope: "Can Free Software Manage Your Web Site?" Here's the direct link: http://www.inside.com/story/Story_Cached/0,2770,10617_13_32_1,00.html Michael Bernstein.

Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Michael Bernstein
Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to the list. Some of the people here don't use HTML-capable mail clients. Thanks,

Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Charlie Wilkinson
"Knight" once said: cw, Are you spawning additional threads by chance? Or just the threads that Zope creates? No, I'm a Python newbie who doesn't know of threads yet, so this is just Zope threads working their magic. :-) Right now I'm just shooting for a simple network client as a proof

Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Charlie Wilkinson
Michael Bernstein [EMAIL PROTECTED] wrote: Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to the list. Some of the people

Re: [Zope] Accessing a Zclass' method needs authentication of the superuser

2000-10-07 Thread Dieter Maurer
Nico Grubert writes: i created a zclass "myzclass" inside a product "myprod". inside of the zclass i created a dtml-method "mymethod_html" which can be found by the tab "Methods". in the root folder i have created a dtml-method "gimme_html" conatinintg the following code to access

Re: [Zope] HTML-Code in variables (addition)

2000-10-07 Thread Tino Wildenhain
Hi Lars, Lars Heber wrote: Sorry, I mixed something up. Normal html is no problem at all. The problem is how to use quotes or such things. Of course I get an error by typing: dtml-let text="my html text with a link to a href="http://www.yahoo.com"Yahoo!/a" I tried typing quot;

Re: [Zope] Zope, Threads and Signals

2000-10-07 Thread Michael Bernstein
Charlie Wilkinson wrote: Michael Bernstein [EMAIL PROTECTED] wrote: Wilkinson Charlie E wrote: It all began when I was a small child, but I'll skip ahead a bit I almost hate to say this, since your post is an interesting one otherwise, but please don't send HTML email to

Re: [Zope] LDAP won't work - yes I've applied the patch

2000-10-07 Thread Roman Milner
"DM" == Dieter Maurer [EMAIL PROTECTED] writes: DM Maybe, you can contact the author, or try it yourself. There DM is documentation from Brian decribing what products need to do DM in order to be compatible with the new Zope 2.2 security DM policy. DM Dieter I've

[Zope] LoginManager - how does it work?

2000-10-07 Thread ed colmar
I've managed to get loginManager to install, but I am very confused as to what to do with it. I've read the how-tos on zope.org, and the documentation of LoginManager itself... But I still don't understand what is supposed to happen. A User Source is a location to find users, Say, my SQL

[Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Dennis Nichols
If I inspect REQUEST by inserting a dtml-var REQUEST in my dtml I can see that AUTHENTICATED_USER is set to Anonymous User. Yet when I insert the following code, it never displays Guest. It takes the else branch and then, perversely, displays Anonymous User. Please point out my stupid mistake.

Re: [Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Andy McKay
You can check the username of AUTHENTICATED_USER as in dtml-if "AUTHENTICATED_USER.getUserName()=='Anonymous User'" (To all the people who complained about me using _.str(...)) or you might want to check the role as in dtml-if "AUTHENTICATED_USER.has_role('Anonymous User')". - Original

Re: [Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Phil Harris
Dennis, try: dtml-if "AUTHENTICATED_USER.getUserName() == 'Anonymous User'" Guest dtml-else dtml-var AUTHENTICATED_USER /dtml-if Zope is 'celver' enough to realise that you must mean the username when you do: dtml-var AUTHENTICATED_USER but 'stupid' enough not to realise when you do:

Re: [Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread knight
Dennis, You might benefit from reading some of the general HOWTO's at http://www.zope.org. Consider searching for "AUTHENTICATED_USER" or "user manager". A quick answer to your problem though: AUTHENTICATED_USER is actually a class object (meaning it contains variables of it's own, as well as

Re: [Zope] Web statistics

2000-10-07 Thread
I'll tell you what we did -we used webalizer itself, and use LocalFS to get the results on the web. Zope's logs are in a pretty standard format, so you shouldn't have any problem. Dimitris ___ Zope maillist - [EMAIL PROTECTED]

[Zope-dev] basci properties

2000-10-07 Thread Robin Becker
I want to create a ZClass that is essentially a folder with some added properties. I can see no way to add to the Basic properties of my ZClass. Is there a way to do that? -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Refresh and debugging product creation issues.....

2000-10-07 Thread Steve Spicklemire
Debugging products is a pain... restarting Zope all the time is a Pain THANK GOD for Shane Hathaway. ;-) I am delighted to report general success with the Refresh product! My only problem is while debugging the process of creating new EMarket instances, I find that every time I run

Re: [Zope-dev] Strange Error - in collector yet?

2000-10-07 Thread Lalo Martins
On Thu, Oct 05, 2000 at 10:01:15AM +0100, Chris Withers wrote: Lalo Martins wrote: This is on Zope 2.2.1. I'd really appreciate some clues on how to bust these ghosts. Have you put a full description in the bug collector yet? Now it is. It was assigned number 1676. I also busted my

Re: [Zope-dev] ZPatterns design questions

2000-10-07 Thread Michael Bernstein
"Phillip J. Eby" wrote: How (and why) do you distinguish between UI implementation and presentation logic? Presentation logic lives with an object's class, and deals with what that object knows about presenting itself. UI implementation is "glue" presentation that lives in a Specialist

Re: [Zope-dev] ZPatterns design questions

2000-10-07 Thread Michael Bernstein
Steve Spicklemire wrote: - How does this product (simple though it is) exemplify the RIPP approach? pje I'm not sure that you can say it *exemplifies* the RIPP pje approach, although it certainly goes along with that pje approach. My hesitation is mainly that it

[Zope-dev] A good collaboration 'partner' ? Was: ZPatterns design questions

2000-10-07 Thread Spicklemire, Jerry
Hi Steve, and fellow ZPatterns Wannabees, As to the sorts of things most of us need to keep track of that could tie into a simple "ToDo" List, so far we've seen suggestions for an Address Book and Deliverables. The first sounds kind of like a Contact List to me, or maybe an Ownership or