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 _.string.replace.  It happens to be accessible
> in this case, but I'd bet there are cases in which methods accessible
> via modules of the _ namespace have been removed for "safe scripting"
> purposes.

having recently gone through the code to produce ZModules (defined
interface for adding modules to _), it was apparent that all the modules
that live in namespace are completely exposed.


Kapil

___
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] 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 native
speakers of English.).

I doubt that what "Find items to ZCatalog" actually searched is the
meta_type of the objects not the value of "add list name" in its ZClass.
Because I have to identify these two in order to find my items to ZCalalog.
Is that true?

Iap, Singuan





___
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] 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 Zope via _.string.replace.  It happens to be accessible
> > in this case, but I'd bet there are cases in which methods accessible
> > via modules of the _ namespace have been removed for "safe scripting"
> > purposes.
> 
> having recently gone through the code to produce ZModules (defined
> interface for adding modules to _), it was apparent that all the modules
> that live in namespace are completely exposed.

What's the problem with that? Aren't most, if not all, the modules living
in the _ namespace just standard python modules available anyways?

Knight


___
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] 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(
encodestring("%s:%s" % (self.username, self.password)),
"\012", ""))


there is a xmlrpc howto where you find a detailed description:

http://www.zope.org/Members/Amos/XML-RPC

good luck
phil

*** REPLY SEPARATOR  ***

On 06.10.2000 at 14:22 Hung Jung Lu wrote:

>Hi,
>
>Where can I find out more information on HTTP user authentication? I have 
>seen the RFC before, but it's a bit too technical to follow. I think Python 
>does not include the authentication/cookie handling part probably because 
>out of concern about abuses. :)
>
>Does anyone know where I can find more info on the authentication and cookie 
>protocol stuff? Is there any Python module already written to handle these 
>things?
>
>The idea is to be able to fetch external webpages automatically using 
>Python, including providing the necessary auth and cookie info. Of course 
>this opens up a whole can of security worms, but heck, it's open information 
>and someone must already have written something in Python already.
>
>regards,
>
>Hung Jung
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at 
>http://profiles.msn.com.
>
>
>___
>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 )




[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 hour. lets assume right now, it says tav
and Bill.

now, in the same folder, i have a dtml method called "parseit", and i have
three dtml documents, called "tav", "noa" and "Bill". there is a dtml
document corresponding to each owner.

each of the three documents have a title and content. parseit simply gives
them a table layout, which simplified immensely, looks like:







what i want to do is display whomever is listed as an owner, in such nice
tables.

-
the problem is this:
-

in "standard_html_header", it looks up which owners are listed in
"pageowners", and then runs through them in a sequence. however, (and this
is where it gets tricky), i want the owners to be formatted by running them
thru "parseit".

however i get stuck when in parseit, as i dont know how to do , i tried to set Bill in the namespace by using , and then tried to call  within
"parseit" but that doesn't work :/

and, again, i want this to be done automatically, so i dont want to have to
manually list Bill, tav, noa, etc

i am pretty sure that DTML can handle this, and this is one of the reasons
why i like zope, because it lends itself to a structured system which is
easily maintainable, e.g. the owners could increase from 5 to a 1000, and
this would still work.

Any help would be much appreciated. Thanks in advance

--
best regards, tav


___
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] '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 dcoming out of your server
> > alone would be far higher than it needed to be :-(
> 
> How would the bandwidth change??

Well, suppose you send a message of, say, 2 KByte (about one page
of typed text) to 1,000 recipients. You'll make about 1,000
connections to the recipients' MX hosts. 

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: (I assumed 40 bytes per address as a
roundabout figure). In the envelope (what the SMTP protocol
*uses* to deliver the message, only one address will be used, the
body To: list is mainly for the recipients' use (to show them who
else got it).

Besides, there are other problems why you will want separate
mails:

- privacy: You would not like to have "your" recipients end up on
other people's mailing lists
- stability: When E-mail bounces, you would like to hanle it
intelligently, like trying this address once again (as it could
be a temporary outage) and take the address off the list if it
still bounces a week or so later
- stability again: You woulld not like to be blacklisted as
either a spammer or clueless by the recipients' postmaster :-)

I would probably use a stable MTA (like qmail, which has good
mailing list processing software, or postfix) for the job.

Cheers,
Jan


___
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] 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/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] 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"
or some other computation incredient does not have the correct
type.

You know about the magic ":type" suffixes in form variables.
There is a howto about them at Zope.org.



Dieter

___
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] 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 suggests that you create a subpackage inside
"Shared", say "Extensions", and place there
your module (don't forget "__init__.py" in the subfolder
representing the subpackage), say "".

Then, in your external method, you would use:

from Shared.Extensions import 


Dieter

___
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] 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.2.2-linux2-x86/lib/python/ZODB/Connection.py, line
 > 446, in setstate
 > ImportError: No module named Document
 > 
 > I have tried wiping it away and trying again like three times. Anyone know
 > what this? Why it is not happening in installs. All RH Linux.
On your fifth machine, the ZODB seems to contain an object
referencing a module "Document" which apparently is not installed.

Activate the logging facility (by starting Zope
with "start  STUPID_LOG_FILE=zope.log ...") and check,
whether you see anything suspicious in "zope.log".


Dieter

___
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] 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 with our
 > proxy server settings on their browser. 
I am not sure, I understand what you want to know.

I you mean:
  
  how is the browser's proxie configuration: manually, direct connection
  or automatic (with what configuration file).
  Then, I fear, you will not get this information.

If you want to know, which proxie was used for a given request,
then there is some chance.
Some proxies set the HTTP "VIA" header. Inside Zope, you
access it as "HTTP_VIA". It can tell you through which proxies
the request was routed.



Dieter

___
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] 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 ZClass to model the product.
I would inherid from "Folder". This makes the ZClass folder-like.
Especially, I can place images and other related objects inside
them (if they do not easily fit in properties).


Dieter

___
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] 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 them together with the sample catalog items that way?
>I would use a ZClass to model the product.
>I would inherid from "Folder". This makes the ZClass folder-like.
>Especially, I can place images and other related objects inside
>them (if they do not easily fit in properties).
>
>
>Dieter

I'm doing something similar to this inheriting from folder.

I would like to add properties in a property sheet, but cannot find a
neat way to see the properties on the base object and on the
propertySheet.

So I would like my properties to show
id
title

and the properties on my basic properties sheet.

I can easily add properties directly to the object during the Thing_add
and Thing_addForm and these appear on the properties tab for added
objects.

How do I get a tab for the property sheets?
-- 
Robin Becker

___
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] 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 own public profile at 
http://profiles.msn.com.


___
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] '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

What about using BCC: ?

Michael Bernstein.

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

___
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, 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,

Michael Bernstein.

___
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, 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 of
concept, though ultimately I need to take into account that the server
this client is talking to is *cough* single instance and single threaded
(i.e. only one client at a time).  So what I really need to do for the
long haul is set my client software up to hold a persistent connection
and multiplex/queue the requests.  I assume that means I'll need to
rewrite my External Method interface as a Zope Product?

Maybe I should try to grok one of the database connection products and
model after that?


The server is Rand McNally's Unix Resident MileMaker (URMM) milage
calculation software for shipping, if you were wondering (what to avoid?)

Thanks,
Charlie

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

___
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, 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 here don't use HTML-capable mail clients.


[Charlie draws a deep breath and starts out softly]

I'm not a dummy.  I've been a UNIX application developer and SysAdmin
for ten years.  Really goofy hardware too.  Ever try and build Sendmail
on a Pyramid MIS-4?  For ten years before that I was an electronics
repair technician.  I've forgotten more technical details than most
people will ever know, and I relish that I can pick up some strange piece
of equipment and figure out how to operate it in a matter of minutes.
_And_ I'm a ham radio operator - we *love* buttons and knobs!

BUT I CAN'T SHUT OFF HTML IN OUTLOOK TO SAVE MY MISERABLE F*ING LIFE

Yes, yes, I've been through all the usual steps.  I even check the
format settings on the message before sending it to confirm that it is
in fact plaintext.  No matter.  It gets posted with f-ing HTML!  This is
despite the fact that I'm now stuck sending plaintext to everyone in
our organization!  My suspicion is that some well meaning but deranged
Exchange SMTP gateway server is doing the conversion, as there's a meta
tag that says the HTML generator is Exchange.  I've tried talking to
the people who run the servers, but they are clueless and keep saying
it's something I'm doing.

So I just try to avoid posting to the list from Outlook, but last night
at the office I was (and still am) desparate.  But now I'm home with
Linux/Mutt. Yay! :-)


Sorry you had to read that.  (Where's my medication?)

-cw-

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

___
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] 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 the method "mymethod_html" :
 > 
 > 
 > 
 >   
Surely, you mean:
 
 > 
 > 
 > 
 > this code will bring me up a login-screen. 
 > i am logged in as manager with the role Manager.
 > i have no permission to access "mymethod_html". WHY ? WHERE DO I HAVE TO
 > DEFINE THAT ?
 > when i type in "superuser" and the password for the superuser I DO HAVE
 > access to the dtml-method "mymethod_html".
When I try this in my (installed) Zope 2.2.2, I get a name error
both as manager and superuser. Obviously, the ZClass methods
are no longer directly accessable via the ZClass.

I suppose, ZClass methods are not supposed to be used independent
from ZClass instances. When I access the method via a ZClass
instance, everything works as expected, i.e. it can be used
both by manager and superuser (and probably others, I just did not
try).


Dieter

___
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] 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 html code on my page - thus the link is broken...
> 
> Are there any possibilities to let Zope change the " into ", or
> perhaps there is another way to do it like with the \" in C.

Yes, there is. Use documenttemplates for this. This is exactly what Zope
is designed for :-)
I.e. make an dtml-method with the text instead of trying to build it
like
this.

Regards
Tino

___
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, 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 the list.
> > Some of the people here don't use HTML-capable mail clients.
> 
> 
> 
> I'm not a dummy.

I didn't mean to imply that you were.

> [snip experience] 
>
> BUT I CAN'T SHUT OFF HTML IN OUTLOOK TO SAVE MY MISERABLE F*ING LIFE
> 
> [snip attempts to supress HTML]
> 
> My suspicion is that some well meaning but deranged
> Exchange SMTP gateway server is doing the conversion, as there's a meta
> tag that says the HTML generator is Exchange.  I've tried talking to
> the people who run the servers, but they are clueless and keep saying
> it's something I'm doing.
> [snip]
> 

Monday I'll check with our sysadmin and take a look at the
Exchange Management UI myself. If I can identify the correct
'knob', I'll let you know, so you can pass this information
along to your server admins.

Meanwhile, you could use a free web-mail account, and just
set the Reply-To or CC to your actual email address. I like
netaddress.com (no Reply-To, though).

Michael Bernstein.

___
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] 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 already littered the whole ldap productg with
_allow_access_to_unprotected_subobjects=1's, to no avail.  Besides,
with the patch applied, the product claims to work with 2.2. I guess
my next step will be to email the author.

^Roman


___
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] 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 database, right?
 
How do I tell it to use the SQL methods I have for 
retrieveing passwords?
 
The how-tos say to create dtml-methods called 
"userAuthenticate" "userExists" and "userRoles".  Where do these go?  

 
Can anyone help me see the light on 
this?
 
Thank you
 
 


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


  Guest

  


Thanks. Maybe I shouldn't work on Saturdays. Zope 2.2.2 roughly, Python 
1.5.2, RH 6.2

--
Dennis Nichols
[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 )




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
Subject: [Zope] AUTHENTICATED_USER (or something) making me crazy


> 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.
>
> 
>   Guest
> 
>   
> 
>
> Thanks. Maybe I shouldn't work on Saturdays. Zope 2.2.2 roughly, Python
> 1.5.2, RH 6.2
>
> --
> Dennis Nichols
> [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 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] 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't yet got the Zope Quick Reference, get it now!

you still here, what you waiting for! - go get it now!  8¬)

http://zdp.zope.org

hth

Phil


- Original Message -
From: "Dennis Nichols" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 07, 2000 11:40 PM
Subject: [Zope] AUTHENTICATED_USER (or something) making me crazy


> 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.
>
> 
>   Guest
> 
>   
> 
>
> Thanks. Maybe I shouldn't work on Saturdays. Zope 2.2.2 roughly, Python
> 1.5.2, RH 6.2
>
> --
> Dennis Nichols
> [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 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] 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 functions). To _properly_ access the
data in the AUTHENTICATED_USER, you need to call upon the methods
(functions) that perform the task you want.

In this case, you want to compare the current user to some other value. In
that case, you want to call the getUserName method of AUTHENTICATED_USER.

Your code modified to work would be:

  
Guest
  

  

Regards,

Knight
[EMAIL PROTECTED]

On Sat, 7 Oct 2000, Dennis Nichols wrote:

> 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.
> 
> 
>   Guest
> 
>   
> 
> 
> Thanks. Maybe I shouldn't work on Saturdays. Zope 2.2.2 roughly, Python 
> 1.5.2, RH 6.2
> 
> --
> Dennis Nichols
> [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 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] 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.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] 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 results attached as netstat.txt.  Could someone
tell me how I can resolve this port conflict?

Incidentally, I'm using Mandrake 7.1 in a fairly standard configuration.

Thanks in advance,

Ron
 ./.



This is the reply that was provided to the first person who encountered
this problem (and submitted it to the list):



You have another process that is "bind" to port 98...

this is the registered port for "tacnews".

try "netstat -a" under the shell...

- Message d'origine -
De : Ulf Byskov <[EMAIL PROTECTED]>
À : <[EMAIL PROTECTED]>
Envoyé : lundi 13 mars 2000 11:28
Objet : [Zope] socket problem


> When I try to start Z Server i get the following error messages:
>
> File
>
"/WWW/Docs/product_development/teams/AMD_framework/dev/Zope/ZServer/medusa/a

syncore.py",
> line 205, in bind
> return self.socket.bind (addr)
> socket.error: (98, 'Address already in use')
>
>
> I don't use the number 98 in any address or port (http=80, ftp='' and
> monitor='')
> so what could this error be about ?
>
>
>




[nobody@localhost Zope-2.2.2-linux2-x86]$ ./start
--
2000-10-08T-5:31:03 PROBLEM(100) ZServer Computing default hostname
--
2000-10-08T-5:31:03 INFO(0) ZServer Medusa (V1.16.4.3) started at Sun OCt  8 00:31:03 
2000
Hostname: localhost.localdomain
Port:8080

Traceback (innermost last):
File ?/usr/local/Zope-2.2.2-linux2-x86/z2.py?, line 634, in ?
logger_object=lg)
File "/usr/local/Zope-2.2.2-linux2-x86/ZServer/FTPServer.py?, line 619, in 
__init__
apply(ftp_server.__init__, (self, None) + args, kw)
File ?/usr/local/Zope-2.2.2-linux2-x86/ZServer/medusa/ftp_server.py?, line 
725, in  __init__ self.bind ((self.ip, self.port))
File ?/usr/local/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py?, line 242, 
in bind   return self.socket.bind (addr)
socket.error: (98, ?Address already in use?)



Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address State  
tcp0  0 *:6000  *:* LISTEN  
tcp0  0 *:3053  *:* LISTEN  
tcp0  0 *:8021  *:* LISTEN  
tcp0  0 *:postgres  *:* LISTEN  
tcp0  0 *:www   *:* LISTEN  
tcp0  0 *:smtp  *:* LISTEN  
tcp0  0 *:printer   *:* LISTEN  
tcp0  0 *:pop3  *:* LISTEN  
tcp0  0 *:telnet*:* LISTEN  
tcp0  0 *:ftp   *:* LISTEN  
tcp0  0 *:auth  *:* LISTEN  
tcp0  0 *:sunrpc*:* LISTEN  
udp0  0 *:xdmcp *:* 
udp0  0 *:sunrpc*:* 
raw0  0 *:icmp  *:* 7   
raw0  0 *:tcp   *:* 7   
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags   Type   State I-Node Path
unix  1  [ ] STREAM CONNECTED 26342  @00d9
unix  0  [ ACC ] STREAM LISTENING 1402   public/showq
unix  0  [ ACC ] STREAM LISTENING 1398   private/smtp
unix  0  [ ACC ] STREAM LISTENING 1389   private/bounce
unix  0  [ ] STREAM CONNECTED 194@001d
unix  1  [ ] STREAM CONNECTED 26259  @00cb
unix  0  [ ACC ] STREAM LISTENING 2816   /var/run/pcgi.soc
unix  0  [ ACC ] STREAM LISTENING 1406   private/error
unix  9  [ ] DGRAM382/dev/log
unix  0  [ ACC ] STREAM LISTENING 2792   /tmp/.font-unix/fs-1
unix  0  [ ACC ] STREAM LISTENING 1687   /dev/gpmctl
unix  0  [ ACC ] STREAM LISTENING 1410   private/local
unix  0  [ ACC ] STREAM LISTENING 1414   private/cyrus
unix  1  [ ] STREAM CONNECTED 26267  @00ce
unix  1  [ ] STREAM CONNECTED 26253  @00c8
unix  0  [ ACC ] STREAM LISTENING 2848   /tmp/.X11-unix/X0
unix  0  [ ACC ] STREAM LISTENING 1418   private/uucp
unix  1  [ ] STRE

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