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 Zop

[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 n

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 > > implic

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 every

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 peopl

[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: > http://www.yahoo.com">Yahoo!"> http://www.yahoo.com\x22>Yahoo!'"> I.e. you use Python's hexadecimal (or octal) quoting for '"' (\x22) inside the Python string. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org

Re: [Zope] Problem with

2000-10-07 Thread Dieter Maurer
Tim Gildersleeve writes: > The line is > > > 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 at a later time, probably because "fSTART"

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 /usr/local/Zope-2

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 pag

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). >

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 >

[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

Re: [Zope] Can Free Software Manage Your Web Site?

2000-10-07 Thread Michael Bernstein
"Steven D. Majewski" wrote: > > Inside magazine 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 pr

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

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 acce

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: > > http://www.yahoo.com">Yahoo!"> > > I tried typing " instead of ", but then the """ also goes into > the

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

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

[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 SQ

[Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Dennis Nichols
If I inspect REQUEST by inserting a 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. Gues

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 (To all the people who complained about me using _.str(...)) or you might want to check the role as in . - Original Message - From: "Dennis Nichols" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 07, 2000 3:40 PM

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

2000-10-07 Thread Phil Harris
Dennis, try: Guest Zope is 'celver' enough to realise that you must mean the username when you do: but 'stupid' enough not to realise when you do: Basic rule of thumb is that anythin in quotes is Python, and since AU is an object, it must be treated as such. btw, if you haven

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 f

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] http://lists.zope.or

[Zope] Socket.error problem

2000-10-07 Thread Ronald L. Chichester
I'm getting the exact same socket.error message that appeared on this list in March, 2000. (See the attached problem.txt file.) Specifically, this is the error message that I get when I start zope. The person who kindly identified the problem didn't provide a solution. I have my netstat -a result

[Zope] Can you specify user/group to run Zope as during install

2000-10-07 Thread Yusuf Goolamabbas
I would like to run Zope not as user 'nobody' but as something else. Is this possible somehow, also is it possible to install the Zope tree in a location other than that untarred into [something like ./configure --prefix=/usr/local/site/Zope] Regards, Yusuf -- Yusuf Goolamabbas [EMAIL PROTECTE