[Zope-dev] Access problems

2000-10-03 Thread Danny William Adair

Hi all!

I have a serious and extremely urgent problem concerning my zope
installation(2.2.1 on Unix): Whatever resource I'm trying to access, I get
the following

---
Attribute Error
---

Traceback (innermost last):
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /home/sites/site3/users/.../2-2-1/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 162, in publish
  File
/home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line
438, in traverse
  File
/home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line
514, in old_validation
(Object: broken)
AttributeError: (see above)


Furthermore, I have to authenticate on _every_ occasion, even with objects I
know are totally available to Anonymous.
After (http) authentication I get the above mentioned attribute error.

I'm clueless. What is this about?

Thanking you so much in advance,
Prost,

Danny



P.S.: Of course I can't recall doing anything rude to my installation,
actually I can't recall doing _anything_. (What they all say)


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] DynPersist.so from ZPatterns 0-4-2a3

2000-10-03 Thread Danny William Adair

Hi all!

I'm desperately looking for the DynPersist shared library (new for ZPatterns
0-4-2a3) in compiled form.
Can someone help me (send it to me)? I'm running a Zope instance at NIP
(www.nipltd.net), that's 2.2.1 on Unix platform.

tia,
Prost,

Danny


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: Thanks a lot, but...

2000-10-03 Thread Danny William Adair

Thank you Itamar,

_but_ I need the Unix .so, not the Windows .dll. Sorry if I didn't put that
clear.

Danny

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 3. Oktober 2000 15:20
An: [EMAIL PROTECTED]
Betreff: Re: [Zope-dev] DynPersist.so from ZPatterns 0-4-2a3


Danny William Adair wrote:

 I'm desperately looking for the DynPersist shared library (new for
ZPatterns
 0-4-2a3) in compiled form.
 Can someone help me (send it to me)? I'm running a Zope instance at NIP
 (www.nipltd.net), that's 2.2.1 on Unix platform.

Here ya go.  Rename it to DynPersist.dll before use.

--
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




RE: [Zope-dev] Re: CoreSessionTracking proposal

2000-10-03 Thread Toby Dickenson

  i.e. it is secure if the key *is* the data, rather than a key to the
  data.
 
 Can you explain?  I do not see what you're getting at.
 
Consider how the tree-tag stores its 'session' data. Its impossible to
hijack a tree-tag session because the 'session' state is stored by the
client (in the URL) in full.

There are other differences between this type of session and the
CoreSessionTrackingProposal; but the advantages are not all one way.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Re: CoreSessionTracking proposal

2000-10-03 Thread Chris McDonough

Toby,

Sorry, I'm still not sure I understand.  :-(

Are you suggesting that the session token should actually store session
data?  Or are you just pointing out the difference between the
implementation an implementation that meets the requirements of sessions
and an implementation adequate for things like the tree tag?

Toby Dickenson wrote:
 
   i.e. it is secure if the key *is* the data, rather than a key to the
   data.
 
  Can you explain?  I do not see what you're getting at.
 
 Consider how the tree-tag stores its 'session' data. Its impossible to
 hijack a tree-tag session because the 'session' state is stored by the
 client (in the URL) in full.
 
 There are other differences between this type of session and the
 CoreSessionTrackingProposal; but the advantages are not all one way.

-- 
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




RE: [Zope-dev] Re: CoreSessionTracking proposal

2000-10-03 Thread Toby Dickenson

 Are you suggesting that the session token should actually 
 store session
 data?

As an alternative SessionManager, it appears to have some advatanges that
others do not.

It is the only option (AFAIK) that avoids the session hijacking problem
without relying on security-through-obscurity (the problem you mentioned,
but its not one that gets me excited). 

Its also the only sensible option that lets you bookmark your place in a
session, and return to it much later (which interests me more).

  Or are you just pointing out the difference between the
 implementation an implementation that meets the requirements 
 of sessions
 and an implementation adequate for things like the tree tag?

Isnt the tree tag an example of one Session use case? It smells alot like a
session to me.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] TreeTag as Sessions Example

2000-10-03 Thread Chris Withers

Toby Dickenson wrote:
 Isnt the tree tag an example of one Session use case? It smells alot like a
 session to me.

yeah, but have you ever tried to have two copies of a tree open on the
same data?

bleugh! ;-)

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Re: CoreSessionTracking proposal

2000-10-03 Thread Chris McDonough

  Are you suggesting that the session token should actually
  store session
  data?

 As an alternative SessionManager, it appears to have some advatanges that
 others do not.

Hmmm.  Please smack me if I'm wrong, but I'm not clear on how it differs
much from not keeping session-related data in the token.  I guess you could
argue that a session token that holds application data is "more random" due
to the nature of its composition, and due to that it can't be "guessed" as
easily (I doubt anyone would even try).   One of the purposes of the random
element of the session token in the current implementation is to address
this "token guessing" risk.

However, in either case (app data in token or app data key in token), if the
token is stolen, it can still be used by the "robber" to see the data that
relates to it (made available by the application which relies on the
server's unpackaging of the token).  This is a different risk, the "token
theft" risk.  Example:  if you get a tree tag token from somebody, and plug
it into a URL on your browser, it'll work happily.

Without a client-checking scheme (such as encoding the IP address in the
token), a token theft attack is very easy.  As voiced by others in the
thread, client-checking is not reliable, should not be a default, and maybe
shouldn't be included as an option at all.

But all of these ponderings are kind of moot, because session data can be
arbitrarily large (session data on the order of a megabyte will probably not
be uncommon), so the data can't realistically be embedded in the token
anyway.

 Its also the only sensible option that lets you bookmark your place in a
 session, and return to it much later (which interests me more).

I don't understand what you mean... a session token that doesn't include
application data has the same property.  That's essentially its reason for
being around at all.  (If you're concerned that the session token isn't
URL-compatible, it is... the current implementation lets the session token
be transferred via a query string, inlined URL elements, or as a cookie
value).  Parts of the token *never* expire, so you can happily bookmark
something with a token value embedded (or receive and continue to resend a
persistent cookie).

 Isnt the tree tag an example of one Session use case? It smells alot like
a
 session to me.

Probably, yes.  Although it will probably not be reimplemented to use the
session machinery in the near future (dont fix it if it aint broke! :-).


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] TreeTag ;-)

2000-10-03 Thread Chris McDonough

OK... let me rephrase that...

Don't fix it if you don't care!

(I have a rule in my mailbox that deletes all messages with 'tree tag' in
the subject line.  I am not kidding.)

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Toby Dickenson" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 10:53 AM
Subject: [Zope-dev] TreeTag ;-)


 Chris McDonough wrote:
  Probably, yes.  Although it will probably not be reimplemented to use
the
  session machinery in the near future (dont fix it if it aint broke! :-).

 It's broke. trust me.

 Chris
 (bitter survivor of too many nasty tree tag experiences ;-)

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Zope URL

2000-10-03 Thread Suzette Ramsden

I am hoping someone can help me. I am at the end of my line. I have tried
everything and nothing else works.

I am trying to install Zope on my web server on which I have a small
intranet. I am using Windows NT 4.0 and IIS 4.0.
Ideally I was trying to use Squishdot with Zope to create a small discussion
forum that can be accessed via the INTRANET.

My Web server name is SRNT and is installed on my F:\ partition drive

I installed Zope in the root cgi-bin directory and called my website
ZopeSite. I selected the "Run as a win32 service"
F:\InetPub\wwwroot\cgi-bin\ZopeSite\

I went to my browser (MS Internet Explorer 5.0) and accessed the Zope Site
using the URL:
http://srnt:8080/manage

I successfully accessed my Zope site manager and everything was working just
fine.

Now comes the problem:
I do not want to connect to the Intranet using the server port (8080) in the
URL to access the Zope pages .

I installed both Squishdot and TinyTables products on Zope and started
building a Squishdot site, which I named ChatClub. However, the URL to
access the Squishdot site looks like:
http://srnt:8080/Control_Panel/Products/Squishdot/ChatClub/index_html

I WANT IT TO AT LEAST SAY:
http://srnt/Control_Panel/Products/Squishdot/ChatClub/index_html

OR

http://srnt/ChatClub/index_html

I don't want any reference to the server port 8080.
I have read several help documents on IIS and PCGI AND THEY ALL SAY
DIFFERENT THINGS.
One document said to copy the Zope.pcgi to the IIS cgi-bin folder and
another said to copy it to the IIS scripts folder.

One document showed the Zope.pcgi file path configuration completely
different from mine. The document showed :
PCGI_MODULE_PATH=X:\WebSite\lib\python\Main.py

And mine showed
PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\lib\python\Zope

The document even had files I didn't have anywhere in my directory like
pcgi.soc and some in completely different folders like:
Help document:
PCGI_MODULE_PATH=X:\WebSite\pcgi\pcgi.pid

My file:
PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\var\pcgi.pid

I know there must be a a simple way to accomplish this. I just need someone
to tell me how to do it STEP BY STEP.
I am a Programmer/Analyst, but I am only a novice when it comes to servers
and all the details.

PLEASE HELP

Regards,
Suzette E. Ramsden


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] CoreSessionTracking - Access Session Data permission

2000-10-03 Thread Dieter Maurer

Hi Chris,

in an earlier message, you defended the existence of a
separate permission "Access Session Data" (in the
CoreSessionTracking proposal) by the following
case:

There may be (authenticated) users with
(TTF?) scripting rights that should be prevented
to screen session data (by withdrawing
the "Access Session Data" permission from
them).

This will only be effective, when not all users automatically
have the "Anonymous" role.

There was a discussion about the "Anonymous" role some
months ago in the list:

 * The (outdated) Content Manager Guide mentions that
   any user has the role "Anonymous".

 * A role "Anonymous" with the meaning
   "not authenticated" will make management for
   sites with authenticated, non-manager users
   more difficult, as those users should have most
   rights of "Anonymous".
   Only in exceptional cases, e.g. for session data,
   they will have less priviledges.

   If the meaning of "Anonymous" changes in this
   direction, then this role should be explicitely
   assignable to users in the "Change User" view
   to avoid such difficulties.


I would be much in favour of a solution that does not
entail new permissions. This would be possible,
if session id management and access to session data
would be melted together.

   In the current proposal, both are separate modules linked
   by the application:
  the application obtains a session id from the id manager
  and then accesses the session data, usually with the id,
  but in principle with anything it likes, e.g. a stolen session id.
   It seems that the new permissions should help to control
   such abuses.

   If the session id becomes an implicit (not DTML-forgable)
   parameter for session data access, then the session
   data need not to be protected by new permissions.

However, I agree with you, that even making session id management
implicit, will not provide strict security.


Why am I against new permissions?
This has partly to do with the current Zope permission management.
As soon as you have more than a few products installed and
created a few additional roles, permission management becomes
a nightmare: it is very difficult to keep the overview
with the current unstructured, non-batched permission setting
view.



Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] (no subject)

2000-10-03 Thread ralf . herold

Dear list readers,

using LocalFS 0.95 war fine until trying to upgrade to Zope 2.2.2. Both
freshly installed, the following snippet raises the error: "Unauthorized",
"You are not authorized to access read.":

dtml-var standard_html_header
dtml-var "frei['analog.html'].read()"
dtml-var standard_html_footer

It is used to display site statistics contained in analog.html, which
resides in a local directory referenced by LocalFS under the name "frei"
(cf. LocalFS-HowTo). There is no special security setting for the
read-method, as for as the security tab is concerned. Also, as a user with
all possible permissions, the error still occurs. The same file can
seamlessly be read in a Zope 2.2.b1 installation on the same machine, under
the same user. LocalFS's author Jonothan Farr (mailto:[EMAIL PROTECTED])
suggested to ask on zope-dev: Could you help, please?
Thanks in advance,

--- Ralf Herold, mailto:[EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Zope URL

2000-10-03 Thread Kenneth Latta



I do not want to connect to the Intranet using the 
server port (8080) in the
URL to access the Zope pages .

The problem you 
have is related to the sockets. Zope has it's port set to 8080 as a 
default
just to make it 
easier to coexist with IIS. The default for the http service is port 
80.
If you want to use 
http://smt/manage
You will have to 
have your IIS changed to run on another port instead of the 
default,
and then change 
Zope to run on port 80.
But folks who don't 
know and just try to visit your site at http://smt will get the default 
page
served by the Zope 
server not your IIS server.

(Of course you 
could removed the less capable web server software...;-} )

You can not have 
both servers on the same port.

So you probably 
will need to redo the install settings for both IIS and 
Zope.

A Windows-only fix 
would be to change the registry setting used for the default http service to 
8080.
But this won't make 
the two services coexist on one port.
Ports 

  
  

  Port 

  Number 
  

  HTTP

  80
  

  FTP

  21
  

  GOPHER

  70
  

  SSL

  443

If you want to use other port numbers, you can change them 
through the Registry. Start RegEdit and go to the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\ 
control\ServiceProvider\ServiceTypes . In the W3svc subkey you'll 
find a hexidecimal value named TcpPort. Change this to the port number you want 
to use. Fo r example, if you want to use port 81, set the value to 51 (51 hex is 
81 decimal). Similarly, you can set the FTP port in the MSFTPSVC 
subkey. 
Ken 
Latta
Invictus Systems 
Corporation
[EMAIL PROTECTED]




[Zope-dev] ZPatterns design questions

2000-10-03 Thread John Eikenberry


First, some context... I'm working on a new data storage system for a
related set of (primarily) Zope sites. The data will be kept in ZODB and
mirrored out to a RDB (MySQL) to provide read-only access to some non-zope
stuff. One other thing to note, all of this will be done via python code
(no zclasses).

Now say that I want to keep data about a company. I have a specialist, rack
and dataskin already created. I currently can store data on the skin via
AttributeProviders, but this was mainly done to get something working to
mess around with. 

What I think I want is several SheetProviders. Two for each block of data
(a block basically reflect the breakdown of tables in the MySQL DB). Why 2
for each block, one for the ZODB store and one for mirroring the data out
to the RDB. So, the breakdown for the company would look like this:

Company Rack
  - Company Information (name, url, etc). 
. SheetProvider (ZODB) - read/write
. SheetProvider (SQL) - write only
  - Address Information (city, state, zip, etc)
. SheetProvider (ZODB) - read/write
. SheetProvider (SQL) - write only

Does this sound reasonable? I thought about writing a mix-in class to add
the SQL stuff to the SheetProvider, eliminating the need for 2 entries for
each block of data. But I liked the idea of each being its own plugin,
seemed cleaner.

The specific question I have about this design is where does the
_properties() attribute go? They need to be associated with their
appropriate SheetProviders, so that seems the most likely place, but that
would require a SheetProvider subclass for each data block which bothers
me. It also just doesn't seem to fit in with the design pattern, but my
understanding of it is still fairly limited.


Next Topic... 

Adding to the above design, we add a second entity; People. I need to
express relationships between the people and the companies. These
relationships can be of various sorts; eg. technical contact, marketing
contact, company admin, etc.

My idea is to create another specialist/rack/dataskin to contain the
information about these relationships and associated data (type of
relationship, corresponding roles, references to the related entities, etc). 

I don't have any code for this aspect of the design yet, so I'm only
fishing for general criticisms/thoughts at this point. Is there a better
way to do this? BTW, there are going to be many more types of entities and
relationships that these examples, so it needs to scale. It also needs to
perform well, as the authentication mechanism will be fetching the roles
off the relationships and, possibly, their related objects. 

Thanks in advance for any advice.

-- 

John Eikenberry
[[EMAIL PROTECTED] - http://zhar.net]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] rpc-xml: Pachyderm memories needed !

2000-10-03 Thread Dieter Maurer

Nigel Head writes:
  
  I'll swear that a couple of weeks back, just after I got the Flash 5 upgrade I
  had this running with whatever version of Zope was extant then! Unfortunately
  I've been following along with the CVS checkouts without archiving them so I
  can't prove it. 
CVS supports checkout by date.

Thus, you can recreate the former state from the CVS repository,
provided you know when you got the working version.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns design questions

2000-10-03 Thread John Eikenberry

Phillip J. Eby wrote:

 If I can offer a suggestion...  

Please...

 It sounds to me like you don't need SheetProviders at all, if you
 effectively define the property sheets as part of your class, and make
 the attributes direct attributes on the DataSkin.  You then need only set

Ok, I'm feeling pretty stupid right now but I have to ask what you mean by
"define the property sheets as part of your class"? Do you mean using
something like this in the DataSkin subclass:

def __init__(self,id):
self.DataSkin.__init__(self,id)
ps = self.propertysheets
ps.manage_addPropertySheet('CompanyData','CompanyData')
ps.get('CompanyData')._properties = (
{'id':'name', 'type':'string',  'mode':'w'},
...
)

 up a single trigger that checks whether any of the attributes you want to
 mirror have changed, and then fires that off to the SQL db.  It would

By 'trigger' you are referring to a RuleAgent plugin? Hmm... I had briefly
thought about this, but most of the discussions relating to interfacing to
an external RDB seemed to indicate subclassing a SheetProvider was the best
course of action. I'll have look into this (hadn't spent much time figuring
out RuleAgents yet).

 actually be a bit easier to set up if you were using a ZClass, since you
 could create the property sheets there by just adding "DataSkin Property
 Sheet" objects to the ZClass.  But the basic principle would still apply.

We've come to the conclusion that ZClasses really are more a hinderance
than a help, trading functionality for shorter learning curve. With
straight python code you get much more control and the ability to use
conventional editors and tools (cvs), without losing anything besides a bit
of time figuring things out (which is better in the long run anyways).

-- 

John Eikenberry
[[EMAIL PROTECTED] - http://zhar.net]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Need help tracking down the cause of a traceback

2000-10-03 Thread Skip Montanaro


I occasionally get tracebacks like

No input for required field
!--
Traceback (innermost last):
  File /home/killer-whale/skip/src/Zope/lib/python/ZPublisher/Publish.py, line 
222, in publish_module
  File /home/killer-whale/skip/src/Zope/lib/python/ZPublisher/Publish.py, line 
136, in publish
  File /home/dolphin/skip/src/Zope/lib/python/ZPublisher/HTTPRequest.py, line 445, 
in processInputs
  File /home/dolphin/skip/src/Zope/lib/python/ZPublisher/Converters.py, line 115, 
in field2required
ValueError: (see above)

--

mailed to me from my production web server (5-10 times per day).  I have
been so far unable to figure out what request is coming into Zope that is
triggering it by examining the Zope and Apache server logs (I run Zope
behind an Apache proxy).  Every time I search the log files in the vicinity
of the mail message's timestamp, I see nothing wrong.  I would like to
instrument the Zope code to generate a traceback that has a more useful
message than "(see above)".

The ValueError is being raised in field2required, but I see no parameters in
the Apache log with a name of "...:required".  That leads me to suspect that
somehow the RESPONSE parameter isn't getting set (it's the only
non-defaulted parameter in the suspect published methods that doesn't appear
to have its value set directly by parameters in the URL).

I am completely unfamiliar with the code involved in the above traceback,
and only get such tracebacks on my production server, so I need to get it
right the first time.  (If I muff it, it will almost certainly not break
until right after have watched it for 10 hours, then left for the day,
allowing the server to choke for 12-15 hours before I come in the next
day...)  I'd like to enclose one of the calls in the above traceback in a
try: ... except ValueError: ... statement whose except clause reraises the
exception with the relevant data that will tell me just what method was
invoked and what parameters, if any, it's receiving.  I think the
HTTPRequest class probably contains the useful bits, but I have no idea what
those bits might be.  (What is the saying about things that are sufficiently
subtle appear to be magic to the observer?)

Thanks,

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope] Passing parameters to methods - how to?

2000-10-03 Thread seb

"César A. K. Grossmann" wrote:
 
 Maik Roeder wrote:
 
   Clicking in the "submit" button, it gives me an error, telling that
   'username' is not defined. So I included an hidden field with
   name="username" and value="dtml-var username", but I'm thinking this
   is not the better way to do that...

 That is the real question: how to substitute the
 'a href="ManageUserProperties?username=someuser"someuser/a' using
 hidden fields? M

 I'm thinking that maintaining some "session attributes" in a cookie is
 another idea, and sustitute the direct call to the method to a call to a
 JavaScript, but I don't want to use the most complicated method...

There are only two ways of doing this:
1) hidden form inputs
2) cookies
3) session variables (kind of like number 2)

Using the former solution, you can make your link be the submit button
for the form, either by using Javascript (yuk: a
href="javascript:document.forms['myform'].submit()"someuser/a) or by
making it a graphical button rather than a text link (input
type=button, img="button.gif" as far as I remember, but I might be
wrong).

Why use javascript to access cookies?  You can set and get them purely
using zope.  http://www.zope.org/Members/BwanaZulia/cookies.  Also, why
not install a session product (HappySession, FSSession, SQLSession...),
it'll probably make your life easier in the long run...

seb

___
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] 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 encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Guidelines for showing most exciting things of Zope?

2000-10-03 Thread Tom Deprez

Hi,

When I tell people about Zope and give a demo, at the end, I always realise
that I could have told this and that and that I forgot this and that. Now,
has somebody already prepared some things which could be used as a
practical guideline when presenting Zope to outsiders? If not, what do you
think would need to be told to convince people that it's worth looking at
it by themselfs?
Do people think such a practical guideline would be usefull?

Tom.

___
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] Access problems

2000-10-03 Thread Danny William Adair

Hi all!

I have a serious and extremely urgent problem concerning my zope
installation (2.2.1 on Unix): Whatever resource I'm trying to access, I get
the following

---
Attribute Error
---

Traceback (innermost last):
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /home/sites/site3/users/.../2-2-1/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/Publish.py,
line 162, in publish
  File
/home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line
438, in traverse
  File
/home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line
514, in old_validation
(Object: broken)
AttributeError: (see above)


Furthermore, I have to authenticate on _every_ occasion, even with objects I
know are totally available to Anonymous.
After (http) authentication I get the above mentioned attribute error.

I'm clueless. What is this about?

Thanking you so much in advance,
Prost,

Danny



P.S.: Of course I can't recall doing anything rude to my installation,
actually I can't recall doing _anything_. (What they all say)


___
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] SiteRoot, can i do?????

2000-10-03 Thread Aitor Grajal



Hello, I'm trying do that SiteRoot can this :

If somebody put 'http://xyz.mydomain.com/Zope" - The SiteRoot put in 
all links 'http://xyz.mydomain.com/Zope" 

but ifif somebody put 'https://xyz.mydomain.com/Zope" - The 
SiteRoot put in all links 'https://xyz.mydomain.com/Zope" .

The second is the new, so can access for http o https at the same contens, 
and this is very nice.
My idea is change the source code of Site Root.
It´s possible ??

Somebody can help my?

Thanks



[Zope] script execution timeout?

2000-10-03 Thread Júlio Dinis Silva

Hi all,

Is there a place to define a script execution timeout?
I've been using urllib and there is no way to kill a urllib.open
if its taking too long. Does zope has that implemented?

Best Regards,
Júlio Dinis Silva
_
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] 'websafe' colours

2000-10-03 Thread Magnus Alvestad

[Curtis Maloney]

| As I understand it, it's due to system palettes.  On low colour
| machines (256 or even 16colour) some colours are reserved for the
| system GUI so that you can match the 'theme', leaving you with fewer
| than the full capacity of the display you are using.

Actually the problem with many colours is that there is slight
difference between how they are shown in for example BGCOLOR and in a
gif.  There was an article about this in the online version of Wired.

-Magnus


___
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] 'self' in external methods

2000-10-03 Thread seb

Hello,

Whenever I do a
  def play(self,sound):
return sound

and a
  dtml-var "play('plonk')"

I get a
  Error Type: TypeError
  Error Value: not enough arguments; expected 2, got 1

Now, I thought 'self' was passed _implicitly_, as explained in 
http://www.zope.org/Documentation/How-To/ExternalMethods, but I'm
actually having to do a
  dtml-var "play(this(),'plonk')"

to pass the context to 'self' in the External method.  Explanations
gratefully received.

Thanks, seb.

___
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] database connection problem (halting Zope)

2000-10-03 Thread Hrasky Petr

Hello everybody,
I started to play with Zope in order to use it as intranet platform. For
this I need database access. I tried odbc and MySQL and got it working
fine. However we have some existing warehouse queries which take minutes
to complete. When I set up ZODBC connection and ZSQL method to access
such query, it halts all other Zope activities until it finishes. I
tried this both with NT Zope and Linux Zope, ODBC and MySQL DAs. As long
as the query runs, no other requests are serviced. 
I understand that long query blocks database connection, but I thought
Zope is threaded, so it should run other requests not using this
database connection just fine, no? Could it be that the python binary
used is not compiled for threading? I spent yesterday afternoon and this
morning looking for solution to this problem on the net, but with no
luck yet.

Can anybody enlighten me why is that? And what can I do to fix this.

Otherwise I like Zope a lot. Easy, featured, just great. 

Thanks in advance and

Best regards,

Petr Hrasky

IT Department
BNP-Dresdner Bank (CR), a.s.
+420-2-57006474



___
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] '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 thousand people
is to be non-blocking.
IIRC, currently, a method/page with a dtml-in
addressessendmail/dtml-in tag pair in it will only return when the
mail has been sent to all the recipients. So, if the mails going to lots
of people, the page takes ages to return.

This is the problem I had where our mail server was taking lots of time
to send messages (it was doing lots of stuff to make sure the address
was valid) so submitting posts on Squishdot.org was taking ages too.

What, IMHO, is really needed is a mailhost/sendmail tag type thing that
gets a message and a list of addresses to send it to. If it could do
that in a seperate thread/process/whatever so that whatever calls it
doesn't block, that'd be great. Of course, it'd need to have a 'hook
back' method provided so any errors that occured could be dealt with.

I wonder how mailman does this stuff and if the code could be borrowed
for Zope?

cheers,

Chris

___
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] 'self' in external methods

2000-10-03 Thread Andrew Kenneth Milton

+---[ seb ]--
| Hello,
| 
| Whenever I do a
|   def play(self,sound):
| return sound

You don't define self as a parameter to an external method, so:

def play(sound):

will work fine in an external method.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] script execution timeout?

2000-10-03 Thread seb


 Is there a place to define a script execution timeout?

not in the urllib module.  

Try setting an alarm using the signal module, wrapping the GET request
in a try clause, and then setting the alarm to 0 in the finally clause.

seb

___
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] database connection problem (halting Zope)

2000-10-03 Thread Andrew Kenneth Milton

+---[ Hrasky Petr ]--
| Hello everybody,

Hi..

|   I understand that long query blocks database connection, but I thought
| Zope is threaded, so it should run other requests not using this
| database connection just fine, no?

You are correct, that should be the case.

| Could it be that the python binary used is not compiled for threading? 

Perhaps, but, I think Zope will fail to start if your python does not
support threading.

| I spent yesterday afternoon and this
| morning looking for solution to this problem on the net, but with no
| luck yet.
| 
| Can anybody enlighten me why is that? And what can I do to fix this.

It might be that the ODBC driver for MySQL is serialising all accesses
to MySQL (i.e. the MySQL ODBC driver is not threaded). This is a bit
of a guess though.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] database connection problem (halting Zope)

2000-10-03 Thread Tim Cook

 Could it be that the python binary
 used is not compiled for threading? I spent yesterday afternoon and this

Count on it. That's why the install instructions explain that
python isn't compiled with threads by default.


-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas.  *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org

___
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] SiteAccess2 problem

2000-10-03 Thread Oliver Wrede
Title: SiteAccess2 problem


I am trying to use SiteAccess2 with a site which has imported
SiteAccess1 objects.

Whenever I try to open Set access rule I get this
error (so I can't set a new one or delete an existing one):


Zope
Error

Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: 'string' object has no attribute 'name'



Troubleshooting Suggestions

* The URL may be
incorrect.
* The parameters passed
to this resource may be incorrect.
* A
resource that this resource relies on may be encountering an
error.


For more detailed information about the error, please refer to the
HTML source for this page.

If the error persists please contact the site maintainer. Thank you
for your patience.




Traceback (innermost last):
 File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line
222, in publish_module
 File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line
187, in publish
 File /www/zope/2.2.2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
 File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line
171, in publish
 File /www/zope/2.2.2/lib/python/ZPublisher/mapply.py, line 160,
in mapply
 (Object: www/AccessRuleAdd)
 File /www/zope/2.2.2/lib/python/ZPublisher/Publish.py, line
112, in call_object
 (Object: www/AccessRuleAdd)
 File /www/zope/2.2.2/lib/python/App/special_dtml.py, line 120,
in __call__
 (Object: www/AccessRuleAdd)
 (Info:
/www/zope/2.2.2/lib/python/Products/SiteAccess/www/AccessRuleAdd.dtml)
 File /www/zope/2.2.2/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
 (Object: www/AccessRuleAdd)
 File /www/zope/2.2.2/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
 (Object: manage_getAccessRule(this()))
 (Info: manage_getAccessRule)
 File string, line 0, in ?
 File
/www/zope/2.2.2/lib/python/Products/SiteAccess/AccessRule.py, line 76,
in getAccessRule
 (Object: Traversable)
AttributeError: (see above)


-- 
.. Oliver Wrede
.. [EMAIL PROTECTED]

.. Academy of Media Arts, Cologne
.. Peter-Welter-Platz 2 . 50676 Koeln, Germany
.. http://www.khm.de
.. ICQ# 6580315
.. PGP 6.0 Fingerprint:
.. 922C FFA2 9A07 5B8E CB2A 10A2 C370 6A62 2232 196C



[Zope] Looking for BSDI version of Zope

2000-10-03 Thread FR Chalaoux

Hi,

I looking for a recent compiled Zope version running on BSDI/OS 4.0.1
with its python attached

Thanks, FR.




___
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] database connection problem (halting Zope)

2000-10-03 Thread Hrasky Petr

Hello,
thank you for answers. To clarify: 
I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and
Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC,
Sybase11.5)at work. Oracle connection at work and MySQL (at home just
for testing) run looong queries and halt Zope. I have no such queries
for Sybase yet. 
I will try to recompile python for linux, but I can't do so for WinNT
as I have no compiler. Anyway I thought the python distributed with
binary release of Zope is threaded, no?

So, does anybody know of either binary and threaded Zope driver for
Oracle , Sybase etc. or the same ODBC driver? And what is the state of
python threading on WinNT paltform?

Thanks,


Petr

-Original Message-
From: Tim Cook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 3:13 PM
To: Hrasky Petr
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] database connection problem (halting Zope)


 Could it be that the python binary
 used is not compiled for threading? I spent yesterday afternoon and this

Count on it. That's why the install instructions explain that
python isn't compiled with threads by default.


-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas.  *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org

___
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] how to access the items of an array...

2000-10-03 Thread zope

Hi

In a form, I defined an array variable as follows:

dtml-in "_.range(1, _.string.atoi(form_numpages), 1)"
tr align="center" valign="middle"
tddtml-var sequence-number/td
tdinput type="text" name="form_time_in" size="6" maxlength="4"/td
/tr
/dtml-in

After submitting the form, dtml-var form_time_in gives me following result:

['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh']

My question is now how to access the different items of that array?

Thanks a lot for your help.

Marc


___
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] SiteAccess2 problem

2000-10-03 Thread Evan Simpson

From: Oliver Wrede [EMAIL PROTECTED]
 I am trying to use SiteAccess2 with a site which has imported 
 SiteAccess1 objects.

Have you used Extensions/updata.py to upgrade these objects?

Cheers,

Evan @ digicool  4-am


___
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] Only superuser can set Proxy on DTML methods?

2000-10-03 Thread Brad Clements

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.

But I can't see anywhere how to enable my userid to have this proxy 
role. 

So only the superuser can set the proxy role for a document. But once I 
do that, I can't edit it anymore as Manager (expected)

So .. how can a Manager grant the proxy role on documents?


Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] 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 authenticated with must
have the role you are trying to give to the object by proxy. 

...which makes sense if you think about it.

...but is frustrating if the role actually nothing to do with you, and
has less permissions that your role. For example, you, as someone with
only the Manager role, can't give a Customer proxy role to an object,
even though Customers can do much less than Managers, because you don't
have the Customer role. So, you have to go to acl_users and give
yourself the Customer role just to complete the operation, and then,
more than likely, remove the Customer role from yourself later...

I can see why it's like it is, btu sureyl the Manager could be made to
eb an exception? Or mayeb that's what's happening with the Superuser
object?

 So only the superuser can set the proxy role for a document. But once I
 do that, I can't edit it anymore as Manager (expected)

Hmm... you imply the superuser has ended up owning an object, which
shouldn't be possible (yes, that can of worms again :P) so does anyone
know what's going on here?

cheers,

Chris

___
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] Sorting and accessing elements in the

2000-10-03 Thread Max Møller Rasmussen

I am making a mailer zClass where it will only be nessecary to make the form
fields with the values you want to send, then the zClass will give you a
reply on the webpage and send a nicely formatted e-mail.

The problem is that the form elements are unknown but they need to be set up
in predictable order to format the output automatically.

To do this I need the form values in a sorted order. I can then give the
form fields names like this:

input type=text name="1) First Name" value="Max M"
input type=text name="2) Last Name" value ="Rasmussen"



Then the mail can be automatically formatted like this:

1) First Name
Max M

2) Last Name
Rasmussen

etc



I have tried to use the sequence-item as a key in REQUEST.form, but it
doesn't work like I want it to.

-

dtml-var standard_html_header

dtml-var webReplyp
dtml-call "REQUEST.set('keys', REQUEST.form.keys())"
dtml-call "keys.sort()"

dtml-in keys
dtml-var sequence-item:br
dtml-var "REQUEST.form[sequence-item]"p   THIS IS WHAT DOESNT
WORK
/dtml-in

dtml-var standard_html_footer

-

Regards Max M


___
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] Sorting and accessing elements in the

2000-10-03 Thread Andy McKay

You need to let item=sequence-item since sequence-item is interpreted in
python as a mathemtical operation sequence minus item.

dtml-var standard_html_header

dtml-call "REQUEST.set('keys', REQUEST.form.keys())"
dtml-call "keys.sort()"

dtml-in keys
dtml-let item=sequence-itemdtml-var item:
dtml-var "REQUEST.form[item]"
/dtml-let
/dtml-in
dtml-var standard_html_footer


- Original Message -
From: "Max Møller Rasmussen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 8:05 AM
Subject: [Zope] Sorting and accessing elements in the


 I am making a mailer zClass where it will only be nessecary to make the
form
 fields with the values you want to send, then the zClass will give you a
 reply on the webpage and send a nicely formatted e-mail.

 The problem is that the form elements are unknown but they need to be set
up
 in predictable order to format the output automatically.

 To do this I need the form values in a sorted order. I can then give the
 form fields names like this:

 input type=text name="1) First Name" value="Max M"
 input type=text name="2) Last Name" value ="Rasmussen"

 

 Then the mail can be automatically formatted like this:

 1) First Name
 Max M

 2) Last Name
 Rasmussen

 etc

 

 I have tried to use the sequence-item as a key in REQUEST.form, but it
 doesn't work like I want it to.

 -

 dtml-var standard_html_header

 dtml-var webReplyp
 dtml-call "REQUEST.set('keys', REQUEST.form.keys())"
 dtml-call "keys.sort()"

 dtml-in keys
 dtml-var sequence-item:br
 dtml-var "REQUEST.form[sequence-item]"p   THIS IS WHAT DOESNT
 WORK
 /dtml-in

 dtml-var standard_html_footer

 -

 Regards Max M


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

2000-10-03 Thread Andy McKay

If you want to put a string into a list you can use

dtml-var "_.string.split('a|b', '|')"

to split a string up. What database are you using and what are actually
getting back?

- Original Message -
From: "Tom Deprez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 9:15 AM
Subject: [Zope] List


 Hi,

 I'm storing a selection of a user to a database as string. This selection
 is a multiple selection from a select box and is outputted as a list.
 Now I want to iterate over this list (after retrieving it from the
 database), but how can I do this? How can I tell Zope that the string is
 actually a list? How can I typecast in Zope?

 Thanks, Tom.


 ___
 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] IMAP and Zope!

2000-10-03 Thread Kapil Thangavelu

Joachim Werner wrote:
 
 Hello!
 
 I am searching for a current IMAP Adapter solution for Zope. What we have found
 so far is Ryan Hughes' WorldPilot, which has great IMAP support, but doesn't
 really integrate with Zope, and the two products "NotMail" and "IMAP Adapter"
 on the classic Zope site. The latter two seem to have been unmaintained for
 quite a while.

I agree, WorldPilot is nice but its hard to split into component
functionality for integration into an a site.

 Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an
 alternative solution?

LoginManager.

 We are working on an integrated groupware solution (it will all be open
 sourced) and want to either store all documents (incl. mail) in a single
 Zope-based storage or at least simulate that by dynamically wrapping the mails
 into objects (similar to what Local_FS does with files on the file system).
 
 Thanks in advance!
 
 Joachim.
 
 --
 Iuveno - Smart Communication
 
 Joachim Werner
 
 _
 
 Marie-Curie-Straße 6
 85055 Ingolstadt
 
 Tel.: +49 841/90 14-325 (Fax -322)
 Mobil: +49 179/39 60 327
 E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
 WWW: www.iuveno.de/www.iuveno-net.de
 
 ___
 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] how to access the items of an array...

2000-10-03 Thread Andy McKay

Use the in tag:

dtml-in form_time_in
dtml-var sequence-item
/dtml-in

- Original Message -
From: "zope" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 03, 2000 7:10 AM
Subject: [Zope] how to access the items of an array...


 Hi

 In a form, I defined an array variable as follows:

 dtml-in "_.range(1, _.string.atoi(form_numpages), 1)"
 tr align="center" valign="middle"
 tddtml-var sequence-number/td
 tdinput type="text" name="form_time_in" size="6" maxlength="4"/td
 /tr
 /dtml-in

 After submitting the form, dtml-var form_time_in gives me following
result:

 ['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh']

 My question is now how to access the different items of that array?

 Thanks a lot for your help.

 Marc


 ___
 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 hint on FSSession

2000-10-03 Thread Peter Bengtsson


 Why use javascript to access cookies?  You can set and get them purely
 using zope.  http://www.zope.org/Members/BwanaZulia/cookies.  Also, why
 not install a session product (HappySession, FSSession, SQLSession...),
 it'll probably make your life easier in the long run...
 
 seb
 

Yes, and if you choose to use FSSession, remember to rename the object to something 
other that "FSSession". 
Having an object called "FSSession" in more than one place can f**k things up in the 
namestack, so to be on the safe side, rename (note "rename") the FSSession object to 
something more unique after having created one.

This caused me a lot of brain damage, and I had it explained by a friend after may 
failed attempts to understand the error messages.


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

2000-10-03 Thread Jim Washington

Tom Deprez wrote:
 
 Hi,
 
 I'm storing a selection of a user to a database as string. This selection
 is a multiple selection from a select box and is outputted as a list.
 Now I want to iterate over this list (after retrieving it from the
 database), but how can I do this? How can I tell Zope that the string is
 actually a list? How can I typecast in Zope?

Use a python or external method to make a list from your string.  I am
supposing you are storing a string representation of the list that looks
like:

"['fred', 'bob', 'mary']"

Get rid of any punctuation you do not want with (e.g.) 

theString = string.replace(theString, '[', ' ')

(Yes, there are more efficient ways to do this!)

Then, once you have a space-delimited list of items, you may use

theList = string.split(theString)

which will make a list of the words in the string.  Return theList.

-- Jim Washington

___
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] IIS port problem

2000-10-03 Thread Suzette Ramsden

I am hoping someone can help me. I am at the end of my line. I have tried
everything and nothing else works.

I am trying to install Zope on my web server on which I have a small
intranet. I am using Windows NT 4.0 and IIS 4.0.
Ideally I was trying to use Squishdot with Zope to create a small discussion
forum that can be accessed via the INTRANET.

My Web server name is SRNT and is installed on my F:\ partition drive

I installed Zope in the root cgi-bin directory and called my website
ZopeSite. I selected the "Run as a win32 service"
F:\InetPub\wwwroot\cgi-bin\ZopeSite\

I went to my browser (MS Internet Explorer 5.0) and accessed the Zope Site
using the URL:
http://srnt:8080/manage

I successfully accessed my Zope site manager and everything was working just
fine.

Now comes the problem:
I do not want to connect to the Intranet using the server port (8080) in the
URL to access the Zope pages .

I installed both Squishdot and TinyTables products on Zope and started
building a Squishdot site, which I named ChatClub. However, the URL to
access the Squishdot site looks like:
http://srnt:8080/Control_Panel/Products/Squishdot/ChatClub/index_html

I WANT IT TO AT LEAST SAY:
http://srnt/Control_Panel/Products/Squishdot/ChatClub/index_html

OR

http://srnt/ChatClub/index_html

I don't want any reference to the server port 8080.
I have read several help documents on IIS and PCGI AND THEY ALL SAY
DIFFERENT THINGS.
One document said to copy the Zope.pcgi to the IIS cgi-bin folder and
another said to copy it to the IIS scripts folder.

One document showed the Zope.pcgi file path configuration completely
different from mine. The document showed :
PCGI_MODULE_PATH=X:\WebSite\lib\python\Main.py

And mine showed
PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\lib\python\Zope

The document even had files I didn't have anywhere in my directory like
pcgi.soc and some in completely different folders like:
Help document:
PCGI_MODULE_PATH=X:\WebSite\pcgi\pcgi.pid

My file:
PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\var\pcgi.pid

I know there must be a a simple way to accomplish this. I just need someone
to tell me how to do it STEP BY STEP.
I am a Programmer/Analyst, but I am only a novice when it comes to servers
and all the details.

PLEASE HELP

Regards,
Suzette E. Ramsden

___
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] Re: 'Offline' mailhost

2000-10-03 Thread Ken Manheimer

On Tue, 3 Oct 2000, Chris Withers wrote:

 What, IMHO, is really needed is a mailhost/sendmail tag type thing that
 gets a message and a list of addresses to send it to. If it could do
 that in a seperate thread/process/whatever so that whatever calls it
 doesn't block, that'd be great. Of course, it'd need to have a 'hook
 back' method provided so any errors that occured could be dealt with.
 
 I wonder how mailman does this stuff and if the code could be borrowed
 for Zope?

I don't have a quick answer.  (It's been a long time since i worked on
mailman, and this stuff in particular has changed a lot.) It looks like
the code in Mailman/Handlers/SMTPDirect.py is what's of interest, and it
doesn't depend too elaborately on the rest of mailman, which is good.  
I'm have no idea whether it solves the problem of doing unblocking
delivery in a way that lets the delivery requester get a status back.

Ken
[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] Zope stalls indefinitely

2000-10-03 Thread Leichtman, David J


Thought we had a problem of ours fixed, but here it is once again, a month
later.
Zope, every once in a while, will just stall indefinitely. The Zope process
doesn't die, it just hangs.

Everything was fine for a month or so, and now the problem's started again,
about every hour.
We're running 2.1.6 on Solaris with pgsql and the ZPyGre adapter and the
most recent copy of FSSession.

Any thoughts. I've posed this question to a lot of people many times. Now
that it's back, I'm hoping for fresh insight.

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

2000-10-03 Thread Ed Colmar



Hi!

I'm getting a type error when I try to add a LoginManager to 
a folder.  Any sugestions on how to get past this?

My config:

Zope 2.2.1
ZPatterns 0.3.0
LoginManager 0.8.6

The traceback:

Error Type: TypeError
Error Value: keyword parameter redefined


Traceback (innermost last):
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
   File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
   File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
 (Object: manage_addLoginManager)
   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
 (Object: manage_addLoginManager)
   File 
/usr/local/zope/lib/python/Products/LoginManager/LoginManager.py, 
line 237, in manage_addLoginManager
   File /usr/local/zope/lib/python/Products/ZPatterns/PlugIns.py, line 
313, in _constructPlugIn
TypeError: (see above)

___
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] UserDB plus crypt

2000-10-03 Thread Ed Colmar

Since I couldn't get LoginManger to work, I started modifying 
UserDb to handle encrypted passwords...  I've changed it so the 
encrypted password is stored in the DB, but I haven't been able to 
get it to authenticate.

Can anyone offer any insight as to what I need to do?

My modified UserDb.py is attached.

Thanks!

-ed-

"""User Db product

This product provides support for User Folder-like objects that
store data in back-end databases.


CREATE TABLE users (
username varchar(255) NOT NULL,
password varchar(255) NOT NULL,
domains varchar(255),
roles varchar(255)
);


"""

__version__='$Revision: 1.13 $'[11:-2]

import Globals, App.Undo, socket, regex
from Products.ZSQLMethods.SQL import SQL
from Globals import PersistentMapping
from Globals import Persistent
from Globals import HTMLFile, MessageDialog
from string import join,strip,split,lower
from App.Management import Navigation, Tabs
from Acquisition import Implicit
from OFS.SimpleItem import Item
from OFS.Document import Document
from base64 import decodestring, encodestring
from urllib import quote, unquote
from ImageFile import ImageFile
from AccessControl.Role import RoleManager
from AccessControl.User import BasicUser, BasicUserFolder
from string import split, join, upper, lower

## Crypt toolkit ##
import crypt, random

ListType=type([])




class User(BasicUser):

 icon='misc_/UserDb/User_icon'

 def __init__(self, name, password, roles, domains):
 self.name   =name
 self.__ =password
 self.roles  =filter(None, map(strip, split(roles, ',')))
 self.domains=filter(None, map(strip, split(domains, ',')))

 def getUserName(self):
 return self.name

 def _getPassword(self):
 return self.__

 def getRoles(self):
 return self.roles

 def getDomains(self):
 return self.domains






class UserDb(BasicUserFolder):
 """ """

 meta_type='User Db'
 id   ='acl_users'
 title='User Db'
 icon ='misc_/UserDb/UserDb_icon'

 isPrincipiaFolderish=1
 isAUserFolder=1
 encryptedpasswords=1

 manage_options=(
 {'label':'Contents',   'action':'manage_main'},
 {'label':'Properties', 'action':'manage_properties'},
 {'label':'Security',   'action':'manage_access'},
 {'label':'Undo',   'action':'manage_UndoForm'},
 )

 __ac_permissions__=(
 ('View management screens',
  ['manage','manage_menu','manage_main','manage_copyright', 'manage_tabs',
   'manage_properties', 'manage_UndoForm']),
 ('Undo changes',   ['manage_undo_transactions']),
 ('Change permissions', ['manage_access']),
 ('Manage users',   ['manage_users']),
 ('Change User Dbs', ['manage_edit']),
 )

 manage_properties=HTMLFile('properties', globals())

 def __init__(self, conn_id, cookie_mode=0):
 self.conn_id=conn_id
 self.cookie_mode=cookie_mode

 self.docLogin =Document(_docLogin, __name__='docLogin')
 self.docLogout=Document(_docLogout, __name__='docLogout')
 self.docLogin.__roles__=None
 self.docLogout.__roles__=None

 self.sqlListQuery=SQL('sqlListQuery', '', conn_id,
   '',
   _sqlListQuery)
 self.sqlUserQuery=SQL('sqlUserQuery', '', conn_id,
   'username',
   _sqlUserQuery)
 self.sqlAddQuery=SQL('sqlAddQuery', '', conn_id,
  'username password domains roles',
   _sqlAddQuery)
 self.sqlEditQuery=SQL('sqlEditQuery', '', conn_id,
   'username password domains roles',
   _sqlEditQuery)
 self.sqlDelQuery=SQL('sqlDelQuery', '', conn_id,
  'username',
   _sqlDelQuery)


 def getUserNames(self):
 """Returns a list of user names or [] if no users exist"""
 data=[]
 try:items=self.sqlListQuery()
 except: return data
 for ob in items:
 data.append(sqlattr(ob, 'username'))
 data.sort()
 return data

 def getUsers(self):
 """Return a list of user objects or [] if no users exist"""
 data=[]
 try:items=self.sqlListQuery()
 except: return data
 for ob in items:
 user=User(sqlattr(ob, 'username'),
   sqlattr(ob, 'password'),
   sqlattr(ob, 'roles'),
   sqlattr(ob, 'domains'))
 data.append(user)
 return data

 def getUser(self, name):
 """Return the named user object or None if no such user exists"""
 if name==self._super.getUserName():
 return self._super
 try:ob=self.sqlUserQuery(username=name)
 except: return None
 if not ob:
  

Re: [Zope] IIS port problem

2000-10-03 Thread Rik Hoekstra

snip description


 http://srnt/ChatClub/index_html

note that most probably the reference will look something like
http://srnt/cgi-bin/Zope.pcgi/ChatClub/index_html

That is, you'll loose the port, but you rape your url.
If you want a shorter url, you most probably have to do other (isapi like)
things to IIS


 I don't want any reference to the server port 8080.
 I have read several help documents on IIS and PCGI AND THEY ALL SAY
 DIFFERENT THINGS.

 One document said to copy the Zope.pcgi to the IIS cgi-bin folder and
 another said to copy it to the IIS scripts folder.


the main point is you need _one_ (not several) Zope.pcgi file that has the
proper locations of all the things needed in it.  It does not matter where
you put it. In your  zopehome/pcgi/util directory there is a pcgifile.py
script that will help you check the pcgi info file (that is the very
Zope.pcgi file I referred to). If this doesn't report any errors, your
IIS-pcgi connection will probably work.


 One document showed the Zope.pcgi file path configuration completely
 different from mine. The document showed :
 PCGI_MODULE_PATH=X:\WebSite\lib\python\Main.py

 And mine showed
 PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\lib\python\Zope


this may be true, but it's a strange place for a Zope installation

 The document even had files I didn't have anywhere in my directory like
 pcgi.soc and some in completely different folders like:

hm, IIRC the soc file is Unix only.

 Help document:
 PCGI_MODULE_PATH=X:\WebSite\pcgi\pcgi.pid

 My file:
 PCGI_MODULE_PATH=F:\InetPub\wwwroot\cgi-bin\ZopeSite\var\pcgi.pid

 I know there must be a a simple way to accomplish this.

It can be simple, but it may turn into a nightmare if it doesn't work (you
have been warned). As a comfort, it took me no more than a quarter of an
hour to get it installed on several different NT machines.


I just need someone
 to tell me how to do it STEP BY STEP.


Your best step by step guide is on
http://zdp.zope.org/projects/zbook/book/VII/PlatformInstallation/InstallDraf
ts/instwindraft3/

hth

Rik


___
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] zope 2.1.3 -2.2.2 transition problems

2000-10-03 Thread Kevin Worth

I just recently upgraded to 2.2.2.  Upon upgrading, all instances of
products that I created are broken.  The products themselves are not,
just every instance of every product that I made.  External and
standard products work just fine.

Strange part coming up:  I can make new instaces replacing the broken
ones. However, 10-30 minutes after creating these new instances, the
new instances are broken.  I've tried this twice, with the same
results.

Anyone have any ideas?

Thanks

Kevin
-- 
---
Kevin Worth [EMAIL PROTECTED]
Computer Systems Specialist II and Adjunct Lecturer
Department of Materials Science and Engineering
University of Michigan 

___
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] IMAP and Zope!

2000-10-03 Thread Morten W. Petersen

[Joachim Werner]

| Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an
| alternative solution?

I'm developing an Outlook/WorldPilot replacement;  which is much more modular
in design.  It will be released under the GPL.  When and where I don't know yet.
It stores messages in 'pure' ZODB format (that is, the entire message is
broken down and stored in various parts of the object),  with _all_ the information
from the original message stored, in a structured and indexable way.

We're also including support for signing/verifying messages, with GnuPG.

If this sounds interesting, send me an email.=)

Regards, Morten


___
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] Access problems

2000-10-03 Thread Dieter Maurer

Danny William Adair writes:
  I have a serious and extremely urgent problem concerning my zope
  installation (2.2.1 on Unix): Whatever resource I'm trying to access, I get
  the following
  .
File
  /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line
  514, in old_validation
  (Object: broken)
  AttributeError: (see above)
Is it possible, that you upgraded from an earlier Zope installation?

The traceback suggests that your requests tries to access
the object "broken", probably an object from a broken
product.

I suggest, you start Zope with "STUPID_LOG_FILE=zope.log".
This should log problems during Zope startup to
"zope.log" (you may need to upgrade to Zope 2.2.2, as
earlier Zope versions lost one exception log due to a missing
"flush").

If you see no problems logged, try to go to "Control_panel/ProductManagement"
and check whether there are broken products.



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] script execution timeout?

2000-10-03 Thread Dieter Maurer

seb writes:
   Is there a place to define a script execution timeout?
  Try setting an alarm using the signal module, wrapping the GET request
  in a try clause, and then setting the alarm to 0 in the finally clause.
Be very careful with signals of any kind inside Zope:

  I had to patch ZServer, as the Oracle client library
  used signals (probably SIGALRM)
  when the Oracle server was unavailable.
  Under Solaris 2.7, this resulted in ZServer's
  "select" call being aborted with "Interrupted system call".
  Zserver was unprepared for this event and died.



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] database connection problem (halting Zope)

2000-10-03 Thread Dieter Maurer

Hrasky Petr writes:
  thank you for answers. To clarify: 
  I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and
  Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC,
  Sybase11.5)at work. Oracle connection at work and MySQL (at home just
  for testing) run looong queries and halt Zope. I have no such queries
  for Sybase yet. 
   I will try to recompile python for linux, but I can't do so for WinNT
  as I have no compiler. Anyway I thought the python distributed with
  binary release of Zope is threaded, no?
If Python is compiled without threads, there is no module
"thread". Zope relies on this module. It dies immediately,
if it is not there. Thus, you can be sure, your
Python has thread support compiled in.

  So, does anybody know of either binary and threaded Zope driver for
  Oracle , Sybase etc. or the same ODBC driver? And what is the state of
  python threading on WinNT paltform?
The Python that comes with Zope has thread support compiled in.

Maybe, your Python-ODBC connection "forgets" to release
Python's interpreter lock.

We, once, had such a problem.
   Accidentally, the DCOracle module had been set up with a standard
   Python distribution (with threading disabled) rather
   than the Zope Python. As a consequence, the
   DCOracle did not call "releaseLock" and
   "acquireLock" (as they would not be present
   in a non-threaded Python).
   And, of course, database operations blocked Zope.


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 )




[Zope] why does squishdot url_quote email address values?

2000-10-03 Thread Fred Yankowski

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

and admin_address is a property with the value "[EMAIL PROTECTED]", the
resulting HTML code is

 foo%40bar.com

which doesn't work correctly, particularly when used as the value of a
'mailto:' URL.

So what's the solution?  Is Squishdot wrong to use url_quote this way?
Why is url_quote hiding the "@" anyway -- I don't see any reason for
escaping it this way.

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

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