[Zope] manage_editProperties Question

2001-01-05 Thread Ronald L. Roeber

I have looked through the Zope book and other documentation, but still
am unable to properly allow others to change properties in a product
with a custom built form.

Case in point, a product with a Property called

contact
which is a string

The product changing method  I am trying to make work contains the
following

def editProductInfo(self, newcontact):
 ...
 self.manage_editProperties(REQUEST=None,contact=newcontact)
 ...

Which is not correct obiously since it generates the following error:

Error Type: TypeError
Error Value: unexpected keyword argument: contact

--

TIA for helping someone so slow as myself...

Ron Roeber
University of Nebraska



___
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] Using a multiple_selection property in a product

2001-01-04 Thread Ronald L. Roeber

Randall,
 Thank you very much. Exactly right.!Thanks for taking the time to help.

"Randall F. Kern" wrote:

 Try this:

 _properties = (
 {'id':'classdays', 'type':'multiple selection','mode':'w',
 'select_variable': 'days'},
 ...)

 days = (
 'Monday',
 'Tuesday',
 'Wednesday',
 'Thursday',
 'Friday'
 )

 -Randy

 -Original Message-----
 From: Ronald L. Roeber [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 03, 2001 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Using a multiple_selection property in a product

 I am attempting to build a product that will contain some unique
 information ...



___
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] Using a multiple_selection property in a product

2001-01-03 Thread Ronald L. Roeber

I am attempting to build a product that will contain some unique
information and access control for services in  support of college
classes. Many, many things are going well...better than expected.
However I am having problems getting the product to correctly recognize
a multiple selection property. The property is the days of the week that
the course is offered. ( Monday-Wednesday-Friday or Tuesday-Thursday, or
any combination thereof)

The DTML for the product creation form contains the following:
---
   th align="LEFT" valign="TOP"emDays Course Offered/em/th
   td align="LEFT" valign="TOP"
   select name="classdays:multiple_selection" size=5 multiple
option value="Monday"Monday/option
option value="Tuesday"Tuesday/option
option value="Wednesday"Wednesday/option
option value="Thursday"Thursday/option
option value="Friday"Friday/option
   /select


in the product class I have tried two tactics (actually more but I'll
confess to only these two)

_properties(
{'id':'classdays',
'type':'multiple_selection','mode':'w'}, ...

RESULT: product installs, but classdays in an "unknown property type"

so I try this:

_properties(
{'id':'classdays', 'type':'multiple
selection','mode':'w'}, ...

RESULT: product installs, however the Properties are unavailable,
furthermore trying to view the properties by clicking on the Properties
tab generates the following Zope error:

Error Type: NameError
Error Value: select_variable

[somewhat helpful troubleshooting suggestions]

Traceback (innermost last):
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/Zope-2.3.0a1-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/App/special_dtml.py, line 120,
in __call__
(Object: manage_propertiesForm)
(Info: /home/Zope-2.3.0a1-src/lib/python/OFS/properties.dtml)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_In.py, line
691, in renderwob
(Object: propertyMap)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: hasProperty(select_variable))
(Info: hasProperty)
  File string, line 0, in ?
NameError: (see above)
-

I've also tried to use :list with much less success.  Any helpful
suggestions would be appreciated. The solution is not obvious to me.
TIA...

Ron Roeber
University of Nebraska






___
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 Dies with FastCGI

2000-10-02 Thread Ronald L. Roeber



 
  Two types of messages:
 
  First in its death throws:
  [Wed Sep 27 16:54:08 2000] [error] [client 192.168.2.52] FastCGI: comm
  with server "apache_server_path/htdocs/zope" aborted: idle timeout (30
  sec)
 
  And later when its all over:
  [Thu Sep 28 08:07:11 2000] [error] [client 192.168.2.52] (111)Connection
  refused
 
  : FastCGI: failed to connect to server "apache_server_path/htdocs/zope":
 
  connect() failed
 
  It will run fine for quite some time but then it dies.
  There are no other refereces to zope in the error logs.
  I am looking into possible network issues.
  I will likely try daemontools this weekend.
 
 i've seen this problem only when there's a lot of connection;s
 usually more
 than 100 connections at any one time.  to test this out, maybe
 you can use
 apache ab and step up until something breaks.

I can't seem to break it...

ab -n 1500 -c 300

I get the same errors as in my original posting but Zope doesn't die. I left
it alone after these tests and it died about 25 minutes later with noone
using it. (its behind a firewall)

This weekend I installed daemontools and can keep it running or at least
restart it.

The problem is most definitely not with load. I probably has to do with the
way I have (mis)configured it. But for the life of me I can't see what it
would be.

Another odd thing with this set up is that some page requests from Netscape
4.x clients are very slow for what they are doing. IE and the new Mozilla
engine are lightening fast...same page. Doesn't matter what platform of
Netscape(*nix, Windows,Mac). The EventFolder product is the most obvious
case. It locks Netscape for minutes while IE and Moz browsers
load the page just fine.

I will try some other things. Thanks for the ideas.

 also, try setting fastcgiexternalserver with  -appConnTimeout 0


Did this, doesn't seem to make a difference...


 tell us how it goes.
  Thanks for your help.
 
  Ron...
 
___
 
  ___
  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 )

 --

 http://www.kedai.com.my/kk
 http://www.kedai.com.my/eZine

 if you SMELLL ... what the Rock is cookin



___
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 Dies with FastCGI

2000-09-26 Thread Ronald L. Roeber

I have the following set-up under which Zope occasionally dies.

Zope 2.2.2 (same happened with 2.2.0 and 2.2.1)
RedHat Linux 6.2
Apache 1.3.12 - with fastcgi/2.2.8 and OpenSSL/0.95a 

I'm running Zope with Fastcgi and using Apache rewrite rules to redirect
all URLs that 
contain "manage" to https. 

It seems to work fine except on occasion Zope will die with the
following error:

"ZServer uncaptured python exception, closing channel FCGIChannel
connected 127.0.0.1:2198 at 87195b (socket.error:(32, 'Broken pipe')
[path_to_Zope/Zserver/medusa/asynchat.py|initiate_send||211]
[path_to_Zope/Zserver/medusa/asynchat.py|send|274])

This doesn't always mean the server is dead but it is the only error I
can trap with 
debug turned on. I am starting the Zope server with the -Z option. 

Ideas. I'm about ready to start making the server more widely available
but cannot if
the server is unreliable.

Ideas, strategies, options? 

TIA

Ron Roeber





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