[Zope-CMF] ZMySQLDA __init__.py initialisation problem.

Gregory Lambert gregory.lambert@bigfoot.com
Thu, 19 Apr 2001 15:20:02 +0100


Hi!

I am really stuck on this one. I am trying connect my wonderful Zope/CMF
server (running under Linux Redhat 6.1) to my MySQL database (tested and
working) and I don't seem to be able to start the Zope server without the
following error:


2001-05-20T13:06:40 ERROR(200) Zope Couldn't import Products.ZMySQLDA
Traceback (innermost last):
  File
/home/zope/Zope-2.3.1_dev/Zope-2.3.1-linux2-x86/lib/python/OFS/Application.p
y, line 536, in import_products
    (Object: string)
  File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/__init__.py, line 92,
in ?
  File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/DA.py, line 92, in ?
  File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/db.py, line 89, in ?
ImportError: _mysql: init failed

I have successfully re-compiled the tar for the _mysql extension as
referenced by the URL: http://www.zope.org/Members/mordred/ZMySQLDA/INSTALL.
Also, I have successfully manually imported the _mysql module directly with
the python command line interface - no apparent problems there. I have tried
all of these procecures on my Win32 machine and was able to import the
product and successfully connect to my MySQL database. I just need to get
our "production" Linux machine working now....

Can anyone help?

Gregory Lambert
Camwood Consulting UK


-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of zope-cmf-request@zope.org
Sent: 19 April 2001 14:19
To: zope-cmf@zope.org
Subject: Zope-CMF digest, Vol 1 #467 - 17 msgs


Send Zope-CMF mailing list submissions to
	zope-cmf@zope.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.zope.org/mailman/listinfo/zope-cmf
or, via email, send a message with subject or body 'help' to
	zope-cmf-request@zope.org

You can reach the person managing the list at
	zope-cmf-admin@zope.org

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


Today's Topics:

   1. RE: object does not support item deletion (Loren Stafford)
   2. Re: object does not support item deletion (Chris Withers)
   3. Re: Re: Portal Poll Product (also  Re: [PTK(252)[2]) (marc lindahl)
   4. Re: Re: Portal Poll Product (also  Re: [PTK(252)[2]) (Ignacio Valdes)
   5. Re: Re: Portal Poll Product (also  Re: [PTK(252)[2]) (Ignacio Valdes)
   6. Re: Re: Portal Poll Product (also  Re: [PTK(252)[2]) (Ken Manheimer)
   7. Another Portal Poll Problem (and fix) (marc lindahl)
   8. RE: object does not support item deletion (Loren Stafford)
   9. Re: object does not support item deletion (Chris McDonough)
  10. Eureka, polling now! (Ignacio Valdes)
  11. Re: Eureka, polling now! (marc lindahl)
  12. pickle error (Howard Zhang)
  13. Re: Control Panel needed to add types? (Chris Withers)
  14. Poll Product - cannot be used by anonymous user ? (Gitte Wange)
  15. Getting a portal folder as Root (Gitte Wange)
  16. Re: Getting a portal folder as Root (Gitte Wange)
  17. Re: Portal Poll Product (also Re: [PTK(252)[2]) (Dave Woolston)

--__--__--

Message: 1
From: "Loren Stafford" <lstafford@morphics.com>
To: <Zope-CMF@zope.org>
Subject: RE: [Zope-CMF] object does not support item deletion
Date: Wed, 18 Apr 2001 13:51:28 -0700

I made a clean install of 2.3.1 and was successful at installing CMF there,
too.

-- Loren

> -----Original Message-----
> From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> Of marc lindahl
> Sent: Wednesday, April 18, 2001 13:04
> To: Zope-CMF@zope.org
> Subject: Re: [Zope-CMF] object does not support item deletion
>
>
> That was it.  I 'updated' back to 2.3.1 and now it works.
>
> >
> >> From: "Loren Stafford" <lstafford@morphics.com>
> >> Date: Wed, 18 Apr 2001 12:17:55 -0700
> >> To: <Zope-CMF@zope.org>
> >> Subject: [Zope-CMF] object does not support item deletion
> >>
> >> I wanted to try out the CMF for the first time today. So, on
> NT 4, I made a
> >> fresh installation of Zope 2.3.2b1, verified that it was
> working, installed
> >> the three CMF 1.0 products in the Products directory, restarted Zope,
> >> verified that the products installed correctly, created a CMF
> Site in the
> >> root directory (called MorphicsCMF), then tried to navigate
> directly to the
> >> CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the
> >> browser URL box. The CMF Site is, of course, completely empty, but I
> >> expected to see at least the default interfaces for adding members and
> >> content. However, I got nothing but an error. Following is the
> error and
> >> traceback that resulted.
> >>
> >> The error occurs in catalog.py where it is trying to delete sort
> >> specifications from kw. Apparently it's trying to display the list of
> >> current news items, which should be empty, as I haven't added any yet.
> >>
> >> Is this a known problem, or did I fail to configure something
> correctly?
> >>
> >> -- Thanks
> >> -- Loren
> >>
[snipped the traceback]



--__--__--

Message: 2
From: "Chris Withers" <chrisw@nipltd.com>
To: "marc lindahl" <marc@bowery.com>,
	<Zope-CMF@zope.org>
Subject: Re: [Zope-CMF] object does not support item deletion
Date: Wed, 18 Apr 2001 22:03:00 +0100

> I got that too...
> I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it
out.
> It was working under 2.3.1, and then it wasn't... :(

Can you stick it in the Zope collector?
It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S

cheers,

Chris



--__--__--

Message: 3
Date: Wed, 18 Apr 2001 17:07:05 -0400
Subject: Re: [Zope-CMF] Re: Portal Poll Product (also  Re: [PTK(252)[2])
From: marc lindahl <marc@bowery.com>
CC: <zope-cmf@zope.org>

I had this problem too... following the tutorial exactly.  What fixed it for
me was in portal_types/Poll, change Meta type to PortalPollType, which
matches the meta type in PortalPollClass/propertysheets/basic

looks like a typo in the tutorial?


>> 2) You may have the incorrect meta type
>
> You got it spot on :-).  I had uppercase in one place (ZClass) and
lowercase
> in another (portal_types).  Thanks very much.



--__--__--

Message: 4
Date: Wed, 18 Apr 2001 16:28:41 -0500
From: Ignacio Valdes <ivaldes@hal-pc.org>
To: marc lindahl <marc@bowery.com>
CC: zope-cmf@zope.org
Subject: Re: [Zope-CMF] Re: Portal Poll Product (also  Re: [PTK(252)[2])

Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can
see what
the finished product looks like? Anyone have a production CMF site other
than dogbowl
going that I could take a look at? Please send the URL if so. -- IV

marc lindahl wrote:

> I had this problem too... following the tutorial exactly.  What fixed it
for
> me was in portal_types/Poll, change Meta type to PortalPollType, which
> matches the meta type in PortalPollClass/propertysheets/basic
>
> looks like a typo in the tutorial?
>
> >> 2) You may have the incorrect meta type
> >
> > You got it spot on :-).  I had uppercase in one place (ZClass) and
lowercase
> > in another (portal_types).  Thanks very much.
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests



--__--__--

Message: 5
Date: Wed, 18 Apr 2001 16:36:12 -0500
From: Ignacio Valdes <ivaldes@hal-pc.org>
To: zope-cmf@zope.org
Subject: Re: [Zope-CMF] Re: Portal Poll Product (also  Re: [PTK(252)[2])

My message was kind of rude, let me add: 'Please, because this is really a
great piece of
work and your efforts are very appreciated.' -- IV

Ignacio Valdes wrote:

> Could the dogbowl owner please put PortalPoll onto the dogbowl site so I
can see what
> the finished product looks like? Anyone have a production CMF site other
than dogbowl
> going that I could take a look at? Please send the URL if so. -- IV
>
>



--__--__--

Message: 6
Date: Wed, 18 Apr 2001 17:46:33 -0400 (EDT)
From: Ken Manheimer <klm@digicool.com>
To: Ignacio Valdes <ivaldes@hal-pc.org>
cc: marc lindahl <marc@bowery.com>, zope-cmf@zope.org
Subject: Re: [Zope-CMF] Re: Portal Poll Product (also  Re: [PTK(252)[2])

On Wed, 18 Apr 2001, Ignacio Valdes wrote:

> Could the dogbowl owner please put PortalPoll onto the dogbowl site so I
can see what
> the finished product looks like? Anyone have a production CMF site other
than dogbowl
> going that I could take a look at? Please send the URL if so. -- IV

This is a good idea, but i'm afraid to have to say that probably won't
happen at least for a couple of days!  Most of the team is currently on
the road for a consulting obligation, and those of us remaining are
swamped, don't have near the time to scope out and make the change.

(BTW, i appreciate your rejoinder that you didn't mean to be rude.  I
didn't interpret it as rude in the first place, but it does feel good to
hear recognition of the effort we're putting into the product, in general,
and understanding that this kind of support isn't to be taken for
granted...)

(And i am sorry we couldn't just oblige, this time!)

Ken Manheimer
klm@digicool.com



--__--__--

Message: 7
Date: Wed, 18 Apr 2001 18:24:49 -0400
From: marc lindahl <marc@bowery.com>
To: <zope-cmf@zope.org>
Subject: [Zope-CMF] Another Portal Poll Problem (and fix)

OK, I got the portal poll to show up.  Next, I log in as a different member
of the portal, and go to it.  When I voted, I got this error:

Error type: Unauthorized
Error value: User test is not allowed to access
/junk/bowery/Members/marc/testpoll/propertysheets, which is contained in
/junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',),
would need to have one of the following roles:
('Owner', 'Manager', 'Reviewer').

Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes


And, fixed it by, in
/PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the
proxy roles so that Manager was selected.  That fixed it.

Now, maybe someone that knows what they're doing can tell me why :)



--__--__--

Message: 8
From: "Loren Stafford" <lstafford@morphics.com>
To: "Chris Withers" <chrisw@nipltd.com>,
	"marc lindahl" <marc@bowery.com>,
	<Zope-CMF@zope.org>
Subject: RE: [Zope-CMF] object does not support item deletion
Date: Wed, 18 Apr 2001 16:30:15 -0700

I put it in the Collector:



"Catalog error on new CMF install on Zope 2.3.2b1" has been submitted.

For future reference, the issue number is: 2172


-- Loren

> -----Original Message-----
> From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> Of Chris Withers
> Sent: Wednesday, April 18, 2001 14:03
> To: marc lindahl; Zope-CMF@zope.org
> Subject: Re: [Zope-CMF] object does not support item deletion
>
>
> > I got that too...
> > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it
> out.
> > It was working under 2.3.1, and then it wasn't... :(
>
> Can you stick it in the Zope collector?
> It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S
>
> cheers,
>
> Chris
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and
> feature requests
>


--__--__--

Message: 9
Date: Wed, 18 Apr 2001 23:48:44 -0400
From: Chris McDonough <chrism@digicool.com>
To: Loren Stafford <lstafford@morphics.com>
Cc: Chris Withers <chrisw@nipltd.com>,
	marc lindahl <marc@bowery.com>, Zope-CMF@zope.org
Subject: Re: [Zope-CMF] object does not support item deletion

Here's a patch to fix this:

*** Catalog.py	2001/04/17 17:01:04	1.60.2.10
--- Catalog.py	2001/04/19 03:43:23
***************
*** 635,646 ****
          # Compute "sort_index", which is a sort index, or none:
          if kw.has_key('sort-on'):
              sort_index=kw['sort-on']
-             del kw['sort-on']
          elif hasattr(self, 'sort-on'):
              sort_index=getattr(self, 'sort-on')
          elif kw.has_key('sort_on'):
              sort_index=kw['sort_on']
-             del kw['sort_on']
          else: sort_index=None
          sort_order=''
          if sort_index is not None:
--- 635,644 ----

This patch will be present in the final release version of 2.3.2

Loren Stafford wrote:
>
> I put it in the Collector:
>
> "Catalog error on new CMF install on Zope 2.3.2b1" has been submitted.
>
> For future reference, the issue number is: 2172
>
> -- Loren
>
> > -----Original Message-----
> > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> > Of Chris Withers
> > Sent: Wednesday, April 18, 2001 14:03
> > To: marc lindahl; Zope-CMF@zope.org
> > Subject: Re: [Zope-CMF] object does not support item deletion
> >
> >
> > > I got that too...
> > > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it
> > out.
> > > It was working under 2.3.1, and then it wasn't... :(
> >
> > Can you stick it in the Zope collector?
> > It sounds like the fun Chris M is having with ZCatalog isn't over yet
:-S
> >
> > cheers,
> >
> > Chris
> >
> >
> > _______________________________________________
> > Zope-CMF maillist  -  Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and
> > feature requests
> >
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests


--__--__--

Message: 10
Date: Wed, 18 Apr 2001 23:15:38 -0500
From: Ignacio Valdes <ivaldes@hal-pc.org>
To: zope-cmf@zope.org
Subject: [Zope-CMF] Eureka, polling now!

This is GREAT!

Installed Zope, installed CMF, got PortalPoll example working.  Would
have been tough without the recent fixes on this list. Suggestion: take
out the initial part of the tutorial that is redundant and before the
Step-by-step one: saves a lot of time.  I think I'm on my way now with
this.

-- IV



--__--__--

Message: 11
Date: Thu, 19 Apr 2001 01:33:35 -0400
Subject: Re: [Zope-CMF] Eureka, polling now!
From: marc lindahl <marc@bowery.com>
To: <zope-cmf@zope.org>

Personally, I disagree.  The first part gives more general understanding,
good for generalizing the tutorial for making other stuff.  But it could be
a little more 'synchronized'....



> From: Ignacio Valdes <ivaldes@hal-pc.org>
>
> Suggestion: take
> out the initial part of the tutorial that is redundant and before the
> Step-by-step one: saves a lot of time.



--__--__--

Message: 12
Date: Thu, 19 Apr 2001 14:42:48 +0800
From: "Howard Zhang" <howard@exoweb.net>
To: <zope-cmf@zope.org>
Cc: "Bjorn Stabell" <bjorn@exoweb.net>,
	"Enyue Jia" <jey@exoweb.net>,
	"Will Zhang" <ZhangWei@exoweb.net>
Subject: [Zope-CMF] pickle error

 <http://www.exoweb.net/> Exoweb - Web technology solutions=09

Hi there

 I have a problem when i use CMF.

  After i add portal imgae or file in portal folder, then i view any
portal document in the portal folder I get this error message.

cPickle.PicklingError

Cannot pickle <type 'Python Method'> objects

Traceback (innermost last):
  File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
    (Object: DynamicType)
  File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line
175, in publish
  File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 235,
in commit
  File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Transaction.py, line
300, in commit
  File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Connection.py, line
375, in commit
    (Info: (('Products.CMFCore.PortalFolder', 'PortalFolder'),
'\000\000\000\000\000\000)s', ''))
cPickle.PicklingError: (see above)


I looked portal image and file source. Maybe error is caused by icon or
edit=20

my zope version is zope 2.3.1 and cmf 1.0

Best regards,


Howard Chang<howard @exoweb.net <mailto:will@exoweb.net> >	   t =09
+86 (10) 65918490 x 804=09
Partner / Senior Consultant	   f 	 +86 (10) 65918492=09
Exoweb <http://www.exoweb.net/>  - Web technology solutions	   m =09
+86 13801039503=09



--__--__--

Message: 13
Date: Thu, 19 Apr 2001 10:17:39 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Ignacio Valdes <ivaldes@hal-pc.org>
CC: zope-cmf@zope.org
Subject: Re: [Zope-CMF] Control Panel needed to add types?

Ignacio Valdes wrote:
>
> I run my Zope site on my ISP for convenience. Do you have to have Control
Panel
> access to add or modify portal_types?  Thanks, -- IV

I don't think so... portal_types just lives in your portal instance...

cheers,

Chris


--__--__--

Message: 14
From: Gitte Wange <gitte@mmmanager.org>
To: zope-cmf@zope.org
Date: 19 Apr 2001 11:23:19 +0200
Subject: [Zope-CMF] Poll Product - cannot be used by anonymous user ?

Hello,

I have got my polls up and running.
Now I have added a poll_box to my site (just as the news_box) to list my
polls. This is going okay.

Now I can only vote in these polls when I am logged in as manager - not
as a member or as anonymous user.

I have changed the proxy role in the EditDone method to manager (just as
the tutorial said) but it still isn't working.

Anybody with a good solution ?

--
************************
Gitte Wange Jensen

System Squid Developer
MMManager Aps
+45 29 72 79 72

gitte@mmmanager.org
************************



--__--__--

Message: 15
From: Gitte Wange <gitte@mmmanager.org>
To: zope-cmf@zope.org
Date: 19 Apr 2001 12:37:17 +0200
Subject: [Zope-CMF] Getting a portal folder as Root

Hello,

I have searched the mailinglist archieves to find and answer to subject
but the answers there haven't really been useful to me.

I would really really like to have my portal online at my domain but
haven't found a solotion for this. I need to "change" the root folder
inside Zope from a "normal" folder to a portal folder. I know this can't
be done. I have tried with SiteRoot, VirtualSiteRoot and
VirtualSiteMonster but none of these products does what I need.

I only use ZServer so no rewrite rules for me.

Any ideas ?

--
************************
Gitte Wange Jensen

System Squid Developer
MMManager Aps
+45 29 72 79 72

gitte@mmmanager.org
************************



--__--__--

Message: 16
Subject: Re: [Zope-CMF] Getting a portal folder as Root
From: Gitte Wange <gitte@mmmanager.org>
To: seb bacon <seb@jamkit.com>
Cc: zope-cmf@zope.org
Date: 19 Apr 2001 13:17:45 +0200

On 19 Apr 2001 12:46:19 +0100, seb bacon wrote:
> SiteAccess really is what you need, although i must admit i've never
> really got to the bottom of it.  but i've got it doing exactly what
> you need already.  read the info page:
>
>   http://www.zope.org/Members/4am/SiteAccess2/info
>
> VirtualSiteMonster does the same thing in a different way, but there's
> less docs for it.
>
> seb

Maybe I don't get it - but to me it looks like this product is used with
Apache ?

I would try to avoid this if it is possible

Gitte
>
> * Gitte Wange <gitte@mmmanager.org> [010419 12:39]:
> > Hello,
> >
> > I have searched the mailinglist archieves to find and answer to subject
> > but the answers there haven't really been useful to me.
> >
> > I would really really like to have my portal online at my domain but
> > haven't found a solotion for this. I need to "change" the root folder
> > inside Zope from a "normal" folder to a portal folder. I know this can't
> > be done. I have tried with SiteRoot, VirtualSiteRoot and
> > VirtualSiteMonster but none of these products does what I need.
> >
> > I only use ZServer so no rewrite rules for me.
> >
> > Any ideas ?
>
> --
>
>    [] j a m k i t
>
>         seb bacon
> T:  020 7749 7218
> F:  020 7739 8683
> M:  07968 301 336
> W: www.jamkit.com



--__--__--

Message: 17
From: "Dave Woolston" <davew@digicool.com>
To: <marc@bowery.com>, <gitte@mmmanager.org>
Cc: <zope-cmf@zope.org>
Date: Thu, 19 Apr 2001 09:23:09 -0400
Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2])

[marc lindahl wrote]:
> OK, I got the portal poll to show up.  Next, I log in as a different
member
> of the portal, and go to it.  When I voted, I got this error:
>
> Error type: Unauthorized
> Error value: User test is not allowed to access
> /junk/bowery/Members/marc/testpoll/propertysheets, which is contained in
> /junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',),
> would need to have one of the following roles:
> ('Owner', 'Manager', 'Reviewer').
>
> Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes
>
>
> And, fixed it by, in
> /PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the
> proxy roles so that Manager was selected.  That fixed it.
>
> Now, maybe someone that knows what they're doing can tell me why :)

Marc,

  Thanks for pointing this out.  The reason why you see this is because the
vote tallys are stored as
properties on the poll instance.  So when you vote as user 'test', you are
actually
updating properties on an object that belongs to someone else (even though
that
object is published).
  The main goal of the tutorial is to guide a user into making
*their* content *portal content*, and not to necessarily introduce a new
poll type
of content.  This shows that we probably didn't have a perfect example.
Normally, users will not be updating properties on other user's content.
What
may be more likely is that they would be discussing or commenting on someone
else's content - in either case, not directly modifying the content.
However, I will update the tutorial to indicate this.

Thanks again for bringing this up.

Dave

Note:  Gitte, I have copied you because I think this will solve your problem
as  well.

=================================
Dave Woolston   davew@digicool.com
Digital Creations  www.digicool.com
(716) 262-4715




--__--__--

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests

End of Zope-CMF Digest