[Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

Administrator Administrator" <Administrator@fd.org
Sun, 06 Aug 2000 16:45:41 -0400


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. LoginManager and ZPatterns - Sparse Install Docs, Help. (Darin Lee)
  2. DA threading issues (was: server instability: ZODB corruption?) (Guido A.J. Stevens)
  3. Re: Python Class trickyness (Andrew Kenneth Milton)
  4. Zope 2.2 under Debian (Woody) broken? (Pedro I. Sanchez)
  5. RE: Zope 2.2 under Debian (Woody) broken? (Chris McDonough)
  6. Re: Zope 2.2 under Debian (Woody) broken? (Terry Kerr)
  7. Re: Zope 2.2 under Debian (Woody) broken? (Pedro I. Sanchez)
  8. Re: Zope 2.2 under Debian (Woody) broken? (Terry Kerr)
  9. Sybase & Thread (Nicholas Lo)
  10. Re: Precondition (Martijn Pieters)
  11. RE: riddle me this Batman, coded copy/paste syntax? (Dr. Ross Lazarus)
  12. XMLRPC returns error sometimes (Gijs Reulen)
  13. Re: File upload failure. Help needed. (Monty Taylor)
  14. Installation error? (Jake Biernacki)
  15. Problem with proxy role... (Magnus Lie Hetland)
  16. Re: Precondition (R. David Murray)
  17. RE: XMLRPC returns error sometimes (Chris McDonough)
  18. Re: Problem with proxy role... (LinuxFreedom)
  19. Sequence problem (peter be)
  20. RESPONSE.write() (Pedro Vega)

--__--__--

Message: 1
From: "Darin Lee" <dlee@usol.com>
To: <zope@zope.org>
Subject: [Zope] LoginManager and ZPatterns - Sparse Install Docs, Help.
Date: Sat, 5 Aug 2000 16:00:29 -0400
charset="iso-8859-1"

Zopistas,

Maybe I'm making this harder than it needs to be.

I want to set up a membership system for the site I am developing with Zope.
I do not want to "restrict" any part of the site - instead I want a user to
login (at their convenience) and then extend the "menu" options based on
their group membership. If a user is not logged in - no problem, they just
won't be able to view the advanced options - they'll still be able to surf
the site (I want to maintain my user list in an external database as well).

What is the best tool in Zope to accomplish this? After searching the site,
I find there are several products - ACL Users, GUF, and LoginManager. Is GUF
deprecated (The intro tends to give me this feeling)? Is LoginManager the
way to go?

It also appears GUF is more tailored toward restrictive authentication (I've
already perused the "Using GUF with an SQL Database" how-to). I want a user
to login (via HTML form/cookie) whenever they like, and get presented with
additional menu options (based on their AUTHENICATED/GROUP status). Not have
them try to access a "restricted" page (or type "manage") and get a basic
authentication login box to get in.

As far as LoginManager itself is concerned, I assume it requires ZPatterns.
However, the Zpatterns install instructions are *very sparse.*  How do I get
the thing set up? Here's verbatim from the ZPatterns docs:

-----
After unpacking the ZPatterns product, you will need to build this [c]
>extension using the included Setup file in the ZPatterns directory.
-----

How do I use the "Setup" file?? With the command "python Setup"? It doesn't
say *how* to use it.

-----
Please follow the standard procedures for building a Python module on your
platform. (On Unix-ish systems, this usually consists of copying a
Makefile.pre.in to the directory, then doing a make -f Makefile.pre.in boot
>followed by make.
-----

What are these standard procedures?? I built Python itself with
"configure|Make|Make install". Where do I get this "Makefile.pre.in" file in
the first place, from my Python src/build directory?? Correct me if I'm
wrong, but there's usually some kind of script file to run that get's things
going, or a "configure" script. I find none of this in the
lib/python/Products/ZPatterns directory after I untarred it.

So, I'm basically stumped. It doesn't appear GUF will do what I need, and I
have failed on multiple attempts to get Loginmanager/ZPatterns installed. If
someone could point me in the right direction on this I sure would
appreciate it.

Thanks much,
-Darin Lee


--__--__--

Message: 2
To: "Luis Cortes" <LCortes@imeme.net>
Cc: zope@zope.org, Paul J Stevens <paul@nfg.nl>
Subject: [Zope] DA threading issues (was: server instability: ZODB corruption?)
Organization: Net Facilities Group    ***   http://www.nfg.nl
From: gyst@nfg.nl (Guido A.J. Stevens)
Date: 05 Aug 2000 22:10:07 +0200


If I'm running current stable versions of Zope and Zope-MysqlDA, do I
need to consider threading issues or are these safely abstracted away
in the DA?

"Luis Cortes" <LCortes@IMEME.NET> writes:

>     It may just be the version of Zope you have ( with regard to the Thread
> problem ) there exists a version of zope that was known to cause the thread
> death problem.  You might want to check the patches or upgrade to a good
> version.

I'm running the Debian frozen release, i.e. 2.1.6 with security
patches. Do you have any specific references on the thread problem? I
find nothing on it in the changelogs I've found. Do I need to go to
2.2.0 for this? 

A seach on 'threading problem' turns up a hornet's nest of deep
technical shit. Most of those mails are a year old, is this still an
issue? As a developer, do I need to understand threading issues when
developing database accessing products, or may I safely assume that
threading, locking and transaction semantics are handled between the
Database Adapter and Zope itself?

I found a mail that says I should run Zope single-threaded when using
MySQL: http://lists.zope.org/pipermail/zope/1999-July/006487.html
Checking my installation, I find I have no threading option activated, 
which means I'll be running the default number of 4 threads. What will 
my server performance look like if I reduce this to 1 thread? Not
that I'm having such a wonderful performance now, having my pager go
off every hour :-(

Is there a way to allocate different threads to different SiteRoot
virtual websites, so I can lock a single site in a single thread but
let my installation as a whole still retain some multi-threading
performance?

:*CU#
-- 
***    Guido A.J. Stevens      ***    mailto:gyst@nfg.nl    ***
***    Net Facilities Group    ***    tel:+31.43.3618933    ***
***    Postbus 1143            ***    fax:+31.43.3560502    ***
***    6201 BC  Maastricht     ***    http://www.nfg.nl     ***

Cyberspace is portrayed as some strange realm inside the network,
in a theoretical realm, or in some utopia. The concept of
being-in-the-world brings us back to the significance of
everyday involvement in keyboards, desks, monitors, cables,
workstations, and practices...
[Coyne, ISBN 0-262-03228-7, p.168]

--__--__--

Message: 3
From: Andrew Kenneth Milton <akm@mail.theinternet.com.au>
Subject: Re: [Zope] Python Class trickyness
pm"
To: Erik Enge <erik@enge.net>
Date: Sun, 6 Aug 2000 11:56:40 +1000 (EST)
CC: zope@zope.org

+----[ Erik Enge ]---------------------------------------------
| 
| Good evening.
| 
| I know how to make a Python Class, which is a container.  But how do
| I make another Class which can only be added from the container-class
| I have created.  Know what I mean?  The last class should only show up
| in the "Available Objects"-list if the user is in a instance of the
| first class.  Did this make any sense?
| 
| Thanks for any answers.  :-)

This is easier than you might think:-

Step 1: Do not register your 'sub' class(es) in your __init__.py

Step 2: In your container class import your sub class manage_add function(s)
        (not sure if this is really needed, but, I do it for completeness).

Step 3: In your container class add:-

meta_types=({'name':'Sub Product', 'action':'manage_addSubProduct'},) # Sub-ob
ject types that are specific to this object

You can add as many as you like...

Step 5: Optionally add a meta_type to your sub class (if you haven't)
Step 6: Optionally add icon='thisIcon.gif" into your sub classes so they get
        pretty icons.

Copy over new Product, and Restart Zope :-)

-- 
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    |akm@theinternet.com.au| 

--__--__--

Message: 4
Date: Sun, 06 Aug 2000 02:39:03 +0000
From: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
To: zope@zope.org
Subject: [Zope] Zope 2.2 under Debian (Woody) broken?

Hello,

I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
problems are reported during the installation but when I try to access
http://localhost:9673/ I get the following error:

Zope Error

                Zope has encountered an error while publishing this
resource. 

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

The same happens when I try to access the management menus.

Is the Woody package broken? Any ideas?

Thank you,

-- 
Pedro

--__--__--

Message: 5
From: Chris McDonough <chrism@digicool.com>
To: "'Pedro I. Sanchez'" <pedro.i.sanchez@altavista.net>, zope@zope.org
Subject: RE: [Zope] Zope 2.2 under Debian (Woody) broken?
Date: Sat, 5 Aug 2000 22:50:34 -0400

It would seem to be broken.... you might want to contact the package
maintainer.  I think it's Glyph Lefkowitz?

> -----Original Message-----
> From: Pedro I. Sanchez [mailto:pedro.i.sanchez@altavista.net]
> Sent: Saturday, August 05, 2000 10:39 PM
> To: zope@zope.org
> Subject: [Zope] Zope 2.2 under Debian (Woody) broken?
> 
> 
> Hello,
> 
> I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> problems are reported during the installation but when I try to access
> http://localhost:9673/ I get the following error:
> 
> Zope Error
> 
>                 Zope has encountered an error while publishing this
> resource. 
> 
>                 Error Type: TypeError
>                 Error Value: unexpected keyword argument: 
> validated_hook
> 
> The same happens when I try to access the management menus.
> 
> Is the Woody package broken? Any ideas?
> 
> Thank you,
> 
> -- 
> Pedro
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
> 

--__--__--

Message: 6
Date: Sun, 06 Aug 2000 13:02:24 +1000
From: Terry Kerr <terry@adroit.net>
To: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
CC: zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

Did u upgrade an existing zope instance with the new distribution, or was
it a clean install?  Did you install the SiteAccess product?  This sounds
like the error you get with an old SiteAccess object in the new zope2.2.
You need to upgrade to the new SiteAccess.

"Pedro I. Sanchez" wrote:

> Hello,
>
> I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> problems are reported during the installation but when I try to access
> http://localhost:9673/ I get the following error:
>
> Zope Error
>
>                 Zope has encountered an error while publishing this
> resource.
>
>                 Error Type: TypeError
>                 Error Value: unexpected keyword argument: validated_hook
>
> The same happens when I try to access the management menus.
>
> Is the Woody package broken? Any ideas?
>
> Thank you,
>
> --
> Pedro
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )

--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




--__--__--

Message: 7
Date: Sun, 06 Aug 2000 03:15:48 +0000
From: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>
To: Terry Kerr <terry@adroit.net>
CC: zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

Thank you for the hint.

I had purged my old zope (dpkg --purge) but it seems something was still
there hanging around. I did an "rm -rf /var/lib/zope /usr/lib/zope" and
reinstalled zope and it worked!

I then tried to install the package "zope-siteaccess" from Woody but it
depends on zope (>= 2.0.0-2) which is not available :|

I'm sort of new to zope so may I ask, Do I need this "zope-siteaccess"
package from Woody?

Thank you,

Terry Kerr wrote:
> 
> Did u upgrade an existing zope instance with the new distribution, or was
> it a clean install?  Did you install the SiteAccess product?  This sounds
> like the error you get with an old SiteAccess object in the new zope2.2.
> You need to upgrade to the new SiteAccess.
> 
> "Pedro I. Sanchez" wrote:
> 
> > Hello,
> >
> > I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> > problems are reported during the installation but when I try to access
> > http://localhost:9673/ I get the following error:
> >
> > Zope Error
> >
> >                 Zope has encountered an error while publishing this
> > resource.
> >
> >                 Error Type: TypeError
> >                 Error Value: unexpected keyword argument: validated_hook
> >
> > The same happens when I try to access the management menus.
> >
> > Is the Woody package broken? Any ideas?
> >
> > Thank you,
> >
> > --
> > Pedro
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > 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 )
> 
> --
> Terry Kerr (terry@adroit.net)
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax:     +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ:     79303381

--__--__--

Message: 8
Date: Sun, 06 Aug 2000 13:35:07 +1000
From: Terry Kerr <terry@adroit.net>
To: "Pedro I. Sanchez" <pedro.i.sanchez@altavista.net>, zope@zope.org
Subject: Re: [Zope] Zope 2.2 under Debian (Woody) broken?

You only need the siteaccess product if you wish to server multiple domains
from one zope instance.

"Pedro I. Sanchez" wrote:

> Thank you for the hint.
>
> I had purged my old zope (dpkg --purge) but it seems something was still
> there hanging around. I did an "rm -rf /var/lib/zope /usr/lib/zope" and
> reinstalled zope and it worked!
>
> I then tried to install the package "zope-siteaccess" from Woody but it
> depends on zope (>= 2.0.0-2) which is not available :|
>
> I'm sort of new to zope so may I ask, Do I need this "zope-siteaccess"
> package from Woody?
>
> Thank you,
>
> Terry Kerr wrote:
> >
> > Did u upgrade an existing zope instance with the new distribution, or was
> > it a clean install?  Did you install the SiteAccess product?  This sounds
> > like the error you get with an old SiteAccess object in the new zope2..2.
> > You need to upgrade to the new SiteAccess.
> >
> > "Pedro I. Sanchez" wrote:
> >
> > > Hello,
> > >
> > > I installed zope 2.2.0-1 from the Debian (Woody) distribution. No
> > > problems are reported during the installation but when I try to access
> > > http://localhost:9673/ I get the following error:
> > >
> > > Zope Error
> > >
> > >                 Zope has encountered an error while publishing this
> > > resource.
> > >
> > >                 Error Type: TypeError
> > >                 Error Value: unexpected keyword argument: validated_hook
> > >
> > > The same happens when I try to access the management menus.
> > >
> > > Is the Woody package broken? Any ideas?
> > >
> > > Thank you,
> > >
> > > --
> > > Pedro
> > >
> > > _______________________________________________
> > > Zope maillist  -  Zope@zope.org
> > > 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 )
> >
> > --
> > Terry Kerr (terry@adroit.net)
> > Adroit Internet Solutions Pty Ltd (www.adroit.net)
> > Phone:   +613 9563 4461
> > Fax:     +613 9563 3856
> > Mobile:  +61 414 938 124
> > ICQ:     79303381

--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




--__--__--

Message: 9
From: "Nicholas Lo" <nicklo@computer.org>
To: <zope@zope.org>
Subject: [Zope] Sybase & Thread
Date: Sun, 6 Aug 2000 12:29:56 +0800
boundary="----=_NextPart_000_0019_01BFFFA2.07B5C100"

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01BFFFA2.07B5C100
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I just wonder if anyone can help me with my problem. Recently, I've=20
been working on creating a ZOPE product which requires periodic=20
access to my Sybase. I have created a thread process using the=20
Threading module. There is no problem of periodically wake up the=20
thread and print something to the screen. So, I guess I have no=20
problem with thread programming under ZOPE. However, when I add some=20
database related routines to the thread, problems started to occur. I=20
sometimes got '... not connected to the database'. When I did an=20
SQL 'update', nothing has been updated on the database server when I=20
actually looked into the database using isql. After a whole day of=20
trial & error, now I've got 'ZOPE Memory Error'! I just wonder what=20
has gone wrong. I really have no clue and my deadline is pressing :(

1) I want to know what is the proper way of using thread under ZOPE.
2) Is there any critical limitation of SybaseDAv2?
3) Can SybaseDAv2 & Threading live together happily?
4) What the role of ZODB in such situation?

Thanks a million if anyone can help!

Regards,
Nick



------=_NextPart_000_0019_01BFFFA2.07B5C100
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffecd8>
<DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>I just wonder if anyone can =
help me with=20
my problem. Recently, I've <BR>been working on creating a ZOPE product =
which=20
requires periodic <BR>access to my Sybase. I have created a thread =
process using=20
the <BR>Threading module. There is no problem of periodically wake up =
the=20
<BR>thread and print something to the screen. So, I guess I have no =
<BR>problem=20
with thread programming under ZOPE. However, when I add some =
<BR>database=20
related routines to the thread, problems started to occur. I =
<BR>sometimes got=20
'... not connected to the database'. When I did an <BR>SQL 'update', =
nothing has=20
been updated on the database server when I <BR>actually looked into the =
database=20
using isql. After a whole day of <BR>trial &amp; error, now I've got =
'ZOPE=20
Memory Error'! I just wonder what <BR>has gone wrong. I really have no =
clue and=20
my deadline is pressing :(<BR><BR>1) I want to know what is the proper =
way of=20
using thread under ZOPE.<BR>2) Is there any critical limitation of=20
SybaseDAv2?<BR>3) Can SybaseDAv2 &amp; Threading live together =
happily?<BR>4)=20
What the role of ZODB in such situation?<BR><BR>Thanks a million if =
anyone can=20
help!<BR><BR>Regards,<BR>Nick<BR><BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0019_01BFFFA2.07B5C100--


--__--__--

Message: 10
Date: Sun, 6 Aug 2000 07:14:55 +0200
From: Martijn Pieters <mj@digicool.com>
To: "R. David Murray" <bitz@bitdance.com>
Cc: RC Compaan <roche@up-front.co.za>, Zope <zope@zope.org>
Subject: Re: [Zope] Precondition
RC Compaan <roche@up-front.co.za>, Zope <zope@zope.org>

On Fri, Aug 04, 2000 at 10:11:55PM -0400, R. David Murray wrote:
> On Fri, 4 Aug 2000, RC Compaan wrote:
> > What does the "Precondition" property of the file class refer to?
> 
> As far as I can tell from a quick scan of the source, the precondition
> is an object that is called just before the file object is rendered.
> It can raise an exception, in which case the object will not get
> rendered.  I could swear I read that documented somewhere, but I
> can't find it.  Someone should submit a doc patch for the API help
> pane.  I'd do it, but I haven't gotten around to learning how the
> help system works yet so I don't know what file to patch <grin>.

  Precondition

      Allows you to specify a precondition for the File. A precondition is a
      method or document which is executed before the File is viewed or
      downloaded. If the precondition raises an exception then the File cannot
      be viewed. 

This is from the Help page presented when you click the 'help' button on the
'Edit' tab of a 'File' object.

-- 
Martijn Pieters
| Software Engineer            mailto:mj@digicool.com
| Digital Creations          http://www.digicool.com/
| Creators of Zope               http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-----------------------------------------------------

--__--__--

Message: 11
Date: Sun, 06 Aug 2000 17:37:31 +1000
From: "Dr. Ross Lazarus" <rossl@med.usyd.edu.au>
Organization: University of Sydney
To: zope@zope.org
Subject: [Zope] RE: riddle me this Batman, coded copy/paste syntax?

This code worked fine in 2.1.6 but is broken
(http://classic.zope.org:8080/Collector/1371/view) for me when moving
zclass instances in 2.2.0

However...YMMV, so here it is for what it's worth.

Note that thingstocopyidlist is just a list containing the object ids
you want cloned from sourcefolder into targetfolder and that the
clipboardstuff trick came out of a latenight reading of some python
source
deep in the bowels of zope....


     <dtml-with "_.getitem(sourcefolder)">
     <dtml-call
"REQUEST.set('clipboardstuff',manage_copyObjects(ids=thingstocopyidlist))">
     </dtml-with>
     <dtml-with "_.getitem(targetfolder)">
     <dtml-call "manage_pasteObjects(cb_copy_data=clipboardstuff)">
     </dtml-with>

> The Zope quick reference lists the following methods
> for the stock folder object:
> 
>    manage_copyObjects(self, ids, [REQUEST, RESPONSE])
>    manage_cutObjects(self, ids, [REQUEST])
>    manage_delObjects(self, [ids, REQUEST])
>    manage_pasteObjects(self, [cb_copy_data, REQUEST])
> 
> For the life of me I can't get copy|cut and paste
> to work even for the simplest of examples.  I've
> tried snippets like the following (embedded within
> a DTML method in a folder) but to no avail:
> 
>   <dtml-call "manage_copyObjects(['subobjectid']">
>   <dtml-call "manage_pasteObjects()">
> 
>   <dtml-call "manage_copyObjects([_['subobjectid']])">
>   <dtml-call "manage_pasteObjects()">
> 
> Can someone shed some light on my misunderstanding?
> 
> Cheers,
> Darran.

--__--__--

Message: 12
From: "Gijs Reulen" <greulen@gilsing.nl>
To: <zope@zope.org>
Subject: [Zope] XMLRPC returns error sometimes
Date: Sun, 6 Aug 2000 12:52:30 +0200
charset="iso-8859-1"

I am experimenting with xml-rpc and Zope. Some Methods from the API work ok,
but others return an error. A common error is:

Error Value: cannot marshal <extension class
Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects

I receive this error for example when for Zope 2.1.6 I execute:
ObjectManager.objectValues
Where as the next Method works ok:
ObjectManager.objectItems

Maybe the to be returned info is to complex ?

Gijs Reulen


--__--__--

Message: 13
Date: Sun, 06 Aug 2000 13:55:07 +0200
From: Monty Taylor <mtaylor@goldridge.net>
Reply-To: mtaylor@goldridge.net
Organization: Information Innovation
To: Urvashi Singh <urvashis@getafix.infogain.com>
CC: zope@zope.org
Subject: Re: [Zope] File upload failure. Help needed.

What version of Zope are you using?

Urvashi Singh wrote:
> 
> Hi,
> 
> I am a new user of Zope. I have Zope--linux2-x86.tar.gz bundle installed
> on my Linux machine, up and working. While I was trying to create a simple
> page using dtml files, I wanted to upload a few files from my hard drive
> onto Zope database. When I choose the Browse button to select a file from
> the targeted directory and say "Add", I get an error message:
> 
>        "The document contacined no data.
>         Try again later, or contact the server's administrator."
> 
> I fail to understand, why am I getting this error when the targeted file
> size is 25519 bytes ?
> 
> Kindly advice.
> 
> Also kindly suggest which document to go through before writing Zope
> applications.
> 
> Thanks and Regards,
> Urvashi
> - --
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )

--__--__--

Message: 14
From: "Jake Biernacki" <jake@ybm.co.za>
To: <zope@zope.org>
Subject: [Zope] Installation error?
Date: Sun, 6 Aug 2000 14:41:34 +0200
boundary="----=_NextPart_000_0040_01BFFFB4.6AD567B0"

This is a multi-part message in MIME format.

------=_NextPart_000_0040_01BFFFB4.6AD567B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am having trouble running zope on my machine I have installed it but =
keep getting the following error when I try to start it
"socket error host not found".=20

Jake

------=_NextPart_000_0040_01BFFFB4.6AD567B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am having trouble running zope on my =
machine I=20
have installed it but keep getting the following error when I try to =
start=20
it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"socket error host not found". =
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jake</FONT></DIV></BODY></HTML>

------=_NextPart_000_0040_01BFFFB4.6AD567B0--


--__--__--

Message: 15
From: "Magnus Lie Hetland" <mlh@idi.ntnu.no>
To: <zope@zope.org>
Cc: "Amund Tveit" <amundt@anick.com>
Subject: [Zope] Problem with proxy role...
Date: Sun, 6 Aug 2000 16:43:18 +0200
charset="iso-8859-1"

Hi!

I'm trying to set up a site with user registration (similar to that on the
zope site), and have been using the JobBoard HOWTO as an example
of how to let anonymous users add objects. The code works just like
it should when I'm logged in as Manager, and I *have* set the proxy
role of the method that processes the form to Manager, but still, when
I try to use it anonymously, I get the message that I don't have access
to the user class... I've tried several implementations, but I don't
understand
the problem...

If the method is proxied as Manager, shouldn't it (and all
the methods it calls) have the rights of Manager? (I also tried adding
Owner, but that didn't help...) In that case - why doesn't it work, while
it *does* work for me when I'm logged in as Manager?

Can there be a standard problem hiding here? (Or, perhaps, it's
obvious?)

Any help is appreciated. Thanks.

--

  Magnus Lie Hetland      (magnus at hetland dot org)

 "Reality is what refuses to disappear when you stop
  believing in it"                 -- Philip K. Dick



--__--__--

Message: 16
Date: Sun, 6 Aug 2000 11:09:57 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Martijn Pieters <mj@digicool.com>
cc: Zope <zope@zope.org>
Subject: Re: [Zope] Precondition

On Sun, 6 Aug 2000, Martijn Pieters wrote:
>   Precondition
> 
>       Allows you to specify a precondition for the File. A precondition is a
>       method or document which is executed before the File is viewed or
>       downloaded. If the precondition raises an exception then the File cannot
>       be viewed. 
> 
> This is from the Help page presented when you click the 'help' button on the
> 'Edit' tab of a 'File' object.

I knew I'd read it somewhere!

First I ran through the help menu, but I must have looked at
File/Image Add and missed File/Image Edit.  Then I looked at an
Image (I had no File objects handy), and when I saw that the help
tab for the Edit, page had no description of precondition, and indeed
that there was no way to set it, I figured the docs for it must
only be in the API section.  But the API section does not discuss
*any* of the call paramters.  So I thought it was undocumented.

Since the code supports preconditions on an Image, is this an interface
error or a design decision (the latter seems more likely)?  If it's
a design decision, shouldn't precondition still be documented in
the Image api help doc?

This is an example of a systematic problem with the (very useful
<grin>) help docs as they stand:  if the API docs implicitly assume
that the parameters are documented in the corresponding management
interface panel then there should at least by a cross link; and if
there are sometimes parameters that are *not* documented on the
manage page, then that needs to be taken into account somehow.

--RDM


--__--__--

Message: 17
From: Chris McDonough <chrism@digicool.com>
To: "'Gijs Reulen'" <greulen@gilsing.nl>, zope@zope.org
Subject: RE: [Zope] XMLRPC returns error sometimes
Date: Sun, 6 Aug 2000 11:56:35 -0400

Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
and special "datetime", base64, and fault objects can be passed via
XML-RPC.   Anything else is too complex.  The spec at
http://www.xml-rpc.com/spec is useful.

> -----Original Message-----
> From: Gijs Reulen [mailto:greulen@gilsing.nl]
> Sent: Sunday, August 06, 2000 6:53 AM
> To: zope@zope.org
> Subject: [Zope] XMLRPC returns error sometimes
> 
> 
> I am experimenting with xml-rpc and Zope. Some Methods from 
> the API work ok,
> but others return an error. A common error is:
> 
> Error Value: cannot marshal <extension class
> Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects
> 
> I receive this error for example when for Zope 2.1.6 I execute:
> ObjectManager.objectValues
> Where as the next Method works ok:
> ObjectManager.objectItems
> 
> Maybe the to be returned info is to complex ?
> 
> Gijs Reulen
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
> 

--__--__--

Message: 18
From: "LinuxFreedom" <web@linuxfreedom.com>
To: "Magnus Lie Hetland" <mlh@idi.ntnu.no>
Cc: <zope@zope.org>
Subject: Re: [Zope] Problem with proxy role...
Date: Sun, 6 Aug 2000 13:02:47 -0400
charset="iso-8859-1"

Magnus:

In setting up the JobBoard from the HOWTO, what worked for me was setting
the proxy role for both the method in the JobBoard product that processes
the form to "Manager" (Product
at/Control_Panel/Products/JobBoard/job_board_entry_add); as well as the
regular method that processes the form to "Manager".

The HOWTO seems to indicate that only the regular method must be set to
proxy, i.e., "Important:The "entry_addProcessor" must be set to "Manager"
proxy for it to work."  When I followed only this instruction, I ran into
the same problem that you did.

However, while this works for me, I am not sure that this is the zen way of
doing things.

Regards,
Roger



> Hi!
>
> I'm trying to set up a site with user registration (similar to that on the
> zope site), and have been using the JobBoard HOWTO as an example
> of how to let anonymous users add objects. The code works just like
> it should when I'm logged in as Manager, and I *have* set the proxy
> role of the method that processes the form to Manager, but still, when
> I try to use it anonymously, I get the message that I don't have access
> to the user class... I've tried several implementations, but I don't
> understand
> the problem...
>
> If the method is proxied as Manager, shouldn't it (and all
> the methods it calls) have the rights of Manager? (I also tried adding
> Owner, but that didn't help...) In that case - why doesn't it work, while
> it *does* work for me when I'm logged in as Manager?
>
> Can there be a standard problem hiding here? (Or, perhaps, it's
> obvious?)
>
> Any help is appreciated. Thanks.
>
> --
>
>   Magnus Lie Hetland      (magnus at hetland dot org)
>
>  "Reality is what refuses to disappear when you stop
>   believing in it"                 -- Philip K. Dick
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>


--__--__--

Message: 19
From: "peter be" <peter@grenna.net>
To: <zope@zope.org>
Subject: [Zope] Sequence problem
Date: Sun, 6 Aug 2000 18:07:41 +0100
charset="iso-8859-1"

This little DTML code is supposed to be generic for alla folder is the profil folder.

What I want to do is a to have a next folder and previous folder in evey one.

/profil/
    /folder_XHJSD
    /folder_GIEHG
    /folder_OWKD
    /and_many_more
    /....
    /folders_here

    document_html

Document_html is acquired in all folders in the profil folder.
I started doing something like this:
<dtml-in "profil.objectValues(['Folder'])" sort=id>
    <dtml-var id>, 
</dtml-in>
... and this returns: folder_XHJSD, folder_GIEHG, folder_OWKD....

What I want to do is something like this:

<dtml-call "REQUEST.set('thisid',_.string.split(URL,'/')[-2])">
<dtml-in "profil.objectValues(['Folder'])" sort=id>
    <dtml-if "_['id'] == _['thisid']">
        <a href="<dtml-var sequence-previous>">previous</a>
        <a href="<dtml-var sequence-next>">next</a>
    </dtml-if>
</dtml-in>

.... but this returns 
Error Type: KeyError
Error Value: sequence-next
so it is obviuosly the wrong way of doing it.

Grateful for help!


--__--__--

Message: 20
From: "Pedro Vega" <pvega@clientes.euskaltel.es>
To: <Zope@zope.org>
Subject: [Zope] RESPONSE.write()
Date: Sun, 6 Aug 2000 20:59:23 +0200
charset="iso-8859-1"

Hi all.
I am using RESPONSE.write() for stream oriented output in a python function,
but I donīt know the length of the data so I canīt set Content-Length and
the browser donīt display anything if the Content-Length header is not set.

This is my little problem, any suggestion ?

Pedro Vega




--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



--__--__----

End of Zope Digest