Re: [Zope-dev] Ending up with a wrapped object through the web?

2000-05-30 Thread Anthony Baxter


>>> "Kevin Dangoor" wrote
> > If you are using CVS, you need to do an update in ZODB to update
> > the coptimizations.c file then rebuild the coptimizations module.
> > That should fix the problem...
> 
> That did the trick. One oddity, though: I had to reauthenticate as the
> superuser to do it. Shouldn't a Manager be able to import to
> Control_Panel/Products?

worse yet - you can't import _at_ _all_ outside the control panel.

A manager can't access RoleManager. superuser can't own objects.

*sigh*

Anthony, still trying to get XMLWidgets installed...

___
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] Ending up with a wrapped object through the web?

2000-05-30 Thread Brian Lloyd

 
> > That did the trick. One oddity, though: I had to 
> reauthenticate as the
> > superuser to do it. Shouldn't a Manager be able to import to
> > Control_Panel/Products?
> 
> worse yet - you can't import _at_ _all_ outside the control panel.
> 
> A manager can't access RoleManager. superuser can't own objects.

Ok - this should be fixed now in CVS. Part of the machinery that
checks whether the user is really allowed to create the type of 
object they are importing was failing spuriously because it 
expected the object it was checking to be wrapped (which isn't 
the case when checking an imported object to see if it can be
added).

Update AccessControl/User.py to get the fix.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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-dev] Ending up with a wrapped object through the web?

2000-05-30 Thread Kevin Dangoor

> If you are using CVS, you need to do an update in ZODB to update
> the coptimizations.c file then rebuild the coptimizations module.
> That should fix the problem...

That did the trick. One oddity, though: I had to reauthenticate as the
superuser to do it. Shouldn't a Manager be able to import to
Control_Panel/Products?

Kevin


___
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] Ending up with a wrapped object through the web?

2000-05-30 Thread Brian Lloyd

> > When importing the .zexp, I get an "Attempt to store a 
> wrapped persistent
> > object" error. This is really puzzling, because I'm not sure how a
> > completely through-the-web Product would have a wrapped 
> object stored in it.
> > I tried removing the PythonMethods to see if they were 
> stored in an unusual
> > way, and this did not change the behavior...
> 
> It's not just you - I've been unable to get any imports to work in
> current-cvs.
> 
> Anthony

Hi guys - 

If you are using CVS, you need to do an update in ZODB to update
the coptimizations.c file then rebuild the coptimizations module. 
That should fix the problem...


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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-dev] Ending up with a wrapped object through the web?

2000-05-30 Thread Brian Lloyd

> > That did the trick. One oddity, though: I had to 
> reauthenticate as the
> > superuser to do it. Shouldn't a Manager be able to import to
> > Control_Panel/Products?
> 
> worse yet - you can't import _at_ _all_ outside the control panel.
> 
> A manager can't access RoleManager. superuser can't own objects.

I'm looking into this now - stay tuned...


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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-dev] Ending up with a wrapped object through the web?

2000-05-28 Thread Anthony Baxter


>>> "Kevin Dangoor" wrote 
> When importing the .zexp, I get an "Attempt to store a wrapped persistent
> object" error. This is really puzzling, because I'm not sure how a
> completely through-the-web Product would have a wrapped object stored in it.
> I tried removing the PythonMethods to see if they were stored in an unusual
> way, and this did not change the behavior...

It's not just you - I've been unable to get any imports to work in
current-cvs.

Anthony

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


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