[Zope-CMF] Re: undo_form -> no content
Sorry, this is a Plone site. There is a Plone skin template undo_form which calls container.portal_undo.listUndoableTransactionsFor(here) to get the undoable transactions. Thanks, David Dieter Maurer wrote: David Chandek-Stark wrote at 2005-7-27 09:51 -0400: I got no reply from plone-user on this issue -- I believe it's really a CMF issue anyway. Add CMF 1.4.7 to the version info below. Probably, because your question is not too clear... ... In my site the undo form is always blank. In the ZMI, however, undoable transactions are listed. Thus, you speak of what "undo form"? Apparently, the "undo" tab of the ZMI lists what you expect, but something else does not. What is this something else? ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: undo_form -> no content
I got no reply from plone-user on this issue -- I believe it's really a CMF issue anyway. Add CMF 1.4.7 to the version info below. Probably, because your question is not too clear... ... In my site the undo form is always blank. In the ZMI, however, undoable transactions are listed. Thus, you speak of what "undo form"? Apparently, the "undo" tab of the ZMI lists what you expect, but something else does not. What is this something else? Probably the undo form in Plone (link in the blue bar). Not that I know the answer to his question. :) Martin -- (muted) ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: undo_form -> no content
David Chandek-Stark wrote at 2005-7-27 16:10 -0400: >Sorry, this is a Plone site. There is a Plone skin template undo_form >which calls container.portal_undo.listUndoableTransactionsFor(here) to >get the undoable transactions. Not sure, whether Plone uses its own "UndoTool". The CMFCore "UndoTool" should show a user with the "ManagePortal" permission the same undoable transactions as the "Undo" tab of the portal's ZMI page. Other users will only see their own transactions. -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: undo_form -> no content
Dieter Maurer wrote: David Chandek-Stark wrote at 2005-7-27 16:10 -0400: Sorry, this is a Plone site. There is a Plone skin template undo_form which calls container.portal_undo.listUndoableTransactionsFor(here) to get the undoable transactions. Not sure, whether Plone uses its own "UndoTool". AFAIK, Plone's undo_tool and listUndoableTransactionsFor() method are derived from the underlying CMF (1.4.7) and/or Zope (2.7.6-final/Python 2.3.4). Again, I suspect the problem is related to the fact that my user folder (RemoteUserFolder 0.4) is outside the CMF/Plone site -- i.e., it's in the parent folder of the Plone site object. I thought that it might be caused by Plone's dependency on GroupUserFolder -- but clearly CMF and Plone allow you to use a higher level user folder for members, so that shouldn't be a problem. The CMFCore "UndoTool" should show a user with the "ManagePortal" permission the same undoable transactions as the "Undo" tab of the portal's ZMI page. Other users will only see their own transactions. Thanks, David ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: undo_form -> no content
I've recently encountered a similar problem, and I'm not using Plone. I'm in the process of migrating some CMF sites to Zope 2.7.7 and CMF 1.5.2, from Zope 2.7.2 and CMF-1.4.8. With the newer software, I find that users who are defined in the site's acl_users (even with the Manager role) never see any transactions listed on the undo_form, while users defined in the main acl_users at the root of the zope instance do see transactions listed. I'm digging into it now and will report back if I make any progress. By the way, I also tried with Zope 2.8.0-final and 2.8.1b1, and got the same behaviour with those (plus some other unrelated issues that made me decide to back down to Zope 2.7.7 for now). - Sam --- David Chandek-Stark <[EMAIL PROTECTED]> wrote: > Dieter Maurer wrote: > > David Chandek-Stark wrote at 2005-7-27 16:10 > -0400: > > > >>Sorry, this is a Plone site. There is a Plone skin > template undo_form > >>which calls > container.portal_undo.listUndoableTransactionsFor(here) > to > >>get the undoable transactions. > > > > > > Not sure, whether Plone uses its own "UndoTool". > > AFAIK, Plone's undo_tool and > listUndoableTransactionsFor() method are > derived from the underlying CMF (1.4.7) and/or Zope > (2.7.6-final/Python > 2.3.4). Again, I suspect the problem is related to > the fact that my user > folder (RemoteUserFolder 0.4) is outside the > CMF/Plone site -- i.e., > it's in the parent folder of the Plone site object. > I thought that it > might be caused by Plone's dependency on > GroupUserFolder -- but clearly > CMF and Plone allow you to use a higher level user > folder for members, > so that shouldn't be a problem. > > > > > The CMFCore "UndoTool" should show a user with the > "ManagePortal" > > permission the same undoable transactions as the > "Undo" tab > > of the portal's ZMI page. > > Other users will only see their own transactions. > > > > Thanks, > David > > ___ > Zope-CMF maillist - Zope-CMF@lists.zope.org > http://mail.zope.org/mailman/listinfo/zope-cmf > > See http://collector.zope.org/CMF for bug reports > and feature requests > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: undo_form -> no content
I think this is actually a bug in Zope. I added some logging statements to UndoTool.py and found that the transactions list returned by portal.undoable_transactions() was empty for users not defined in the root acl_users. I then googled for "zope 2.7 undo acl_users" and found this: http://www.zope.org/Collectors/Zope/1810 I applied the patch, and it seems to fix the problem I had. I wonder if this is a proper fix, or if there may be some unintended side-effects. I'm tempted to go with it, although instead of changing the Prefix.py file itself, I think I'll write a little monkey-patch to replace the __cmp__ method at runtime. --- Sam Brauer <[EMAIL PROTECTED]> wrote: > I've recently encountered a similar problem, and I'm > not using Plone. I'm in the process of migrating > some > CMF sites to Zope 2.7.7 and CMF 1.5.2, from Zope > 2.7.2 and CMF-1.4.8. > With the newer software, I find that users who are > defined in the site's acl_users (even with the > Manager > role) never see any transactions listed on the > undo_form, while users defined in the main acl_users > at the root of the zope instance do see transactions > listed. > > I'm digging into it now and will report back if I > make > any progress. By the way, I also tried with Zope > 2.8.0-final and 2.8.1b1, and got the same behaviour > with those (plus some other unrelated issues that > made > me decide to back down to Zope 2.7.7 for now). > > - Sam > > > > --- David Chandek-Stark <[EMAIL PROTECTED]> wrote: > > > Dieter Maurer wrote: > > > David Chandek-Stark wrote at 2005-7-27 16:10 > > -0400: > > > > > >>Sorry, this is a Plone site. There is a Plone > skin > > template undo_form > > >>which calls > > > container.portal_undo.listUndoableTransactionsFor(here) > > to > > >>get the undoable transactions. > > > > > > > > > Not sure, whether Plone uses its own "UndoTool". > > > > AFAIK, Plone's undo_tool and > > listUndoableTransactionsFor() method are > > derived from the underlying CMF (1.4.7) and/or > Zope > > (2.7.6-final/Python > > 2.3.4). Again, I suspect the problem is related to > > the fact that my user > > folder (RemoteUserFolder 0.4) is outside the > > CMF/Plone site -- i.e., > > it's in the parent folder of the Plone site > object. > > I thought that it > > might be caused by Plone's dependency on > > GroupUserFolder -- but clearly > > CMF and Plone allow you to use a higher level user > > folder for members, > > so that shouldn't be a problem. > > > > > > > > The CMFCore "UndoTool" should show a user with > the > > "ManagePortal" > > > permission the same undoable transactions as the > > "Undo" tab > > > of the portal's ZMI page. > > > Other users will only see their own > transactions. > > > > > > > Thanks, > > David > > > > ___ > > Zope-CMF maillist - Zope-CMF@lists.zope.org > > http://mail.zope.org/mailman/listinfo/zope-cmf > > > > See http://collector.zope.org/CMF for bug reports > > and feature requests > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > ___ > Zope-CMF maillist - Zope-CMF@lists.zope.org > http://mail.zope.org/mailman/listinfo/zope-cmf > > See http://collector.zope.org/CMF for bug reports > and feature requests > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: undo_form -> no content
Sam Brauer wrote at 2005-7-29 08:19 -0700: >I've recently encountered a similar problem, and I'm >not using Plone. I'm in the process of migrating some >CMF sites to Zope 2.7.7 and CMF 1.5.2, from Zope >2.7.2 and CMF-1.4.8. >With the newer software, I find that users who are >defined in the site's acl_users (even with the Manager >role) never see any transactions listed on the >undo_form, while users defined in the main acl_users >at the root of the zope instance do see transactions >listed. I remember (faintly) to have read in this list that there have been recent changes with respect to "undo" that break the CMF. Please search the archive... -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: undo_form -> no content
I'm willing to fix it if someone explains *why* the patch is needed. What code actually adds a username and space in the path. Is that part of what's written in the transaction description? Is it something CMF adds? Otherwise I'm not familiar enough with the transaction descriptions to dig into this. Florent Sam Brauer <[EMAIL PROTECTED]> wrote: > I think this is actually a bug in Zope. > I added some logging statements to UndoTool.py and > found that the transactions list returned by > portal.undoable_transactions() was empty for users not > defined in the root acl_users. > > I then googled for "zope 2.7 undo acl_users" and found > this: > http://www.zope.org/Collectors/Zope/1810 > > I applied the patch, and it seems to fix the problem I > had. I wonder if this is a proper fix, or if there > may be some unintended side-effects. > I'm tempted to go with it, although instead of > changing the Prefix.py file itself, I think I'll write > a little monkey-patch to replace the __cmp__ method at > runtime. > > > --- Sam Brauer <[EMAIL PROTECTED]> wrote: > > > I've recently encountered a similar problem, and I'm > > not using Plone. I'm in the process of migrating > > some > > CMF sites to Zope 2.7.7 and CMF 1.5.2, from Zope > > 2.7.2 and CMF-1.4.8. > > With the newer software, I find that users who are > > defined in the site's acl_users (even with the > > Manager > > role) never see any transactions listed on the > > undo_form, while users defined in the main acl_users > > at the root of the zope instance do see transactions > > listed. > > > > I'm digging into it now and will report back if I > > make > > any progress. By the way, I also tried with Zope > > 2.8.0-final and 2.8.1b1, and got the same behaviour > > with those (plus some other unrelated issues that > > made > > me decide to back down to Zope 2.7.7 for now). > > > > - Sam > > > > > > > > --- David Chandek-Stark <[EMAIL PROTECTED]> wrote: > > > > > Dieter Maurer wrote: > > > > David Chandek-Stark wrote at 2005-7-27 16:10 > > > -0400: > > > > > > > >>Sorry, this is a Plone site. There is a Plone > > skin > > > template undo_form > > > >>which calls > > > > > > container.portal_undo.listUndoableTransactionsFor(here) > > > to > > > >>get the undoable transactions. > > > > > > > > > > > > Not sure, whether Plone uses its own "UndoTool". > > > > > > AFAIK, Plone's undo_tool and > > > listUndoableTransactionsFor() method are > > > derived from the underlying CMF (1.4.7) and/or > > Zope > > > (2.7.6-final/Python > > > 2.3.4). Again, I suspect the problem is related to > > > the fact that my user > > > folder (RemoteUserFolder 0.4) is outside the > > > CMF/Plone site -- i.e., > > > it's in the parent folder of the Plone site > > object. > > > I thought that it > > > might be caused by Plone's dependency on > > > GroupUserFolder -- but clearly > > > CMF and Plone allow you to use a higher level user > > > folder for members, > > > so that shouldn't be a problem. > > > > > > > > > > > The CMFCore "UndoTool" should show a user with > > the > > > "ManagePortal" > > > > permission the same undoable transactions as the > > > "Undo" tab > > > > of the portal's ZMI page. > > > > Other users will only see their own > > transactions. > > > > > > > > > > Thanks, > > > David > > > > > > ___ > > > Zope-CMF maillist - Zope-CMF@lists.zope.org > > > http://mail.zope.org/mailman/listinfo/zope-cmf > > > > > > See http://collector.zope.org/CMF for bug reports > > > and feature requests > > > > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > ___ > > Zope-CMF maillist - Zope-CMF@lists.zope.org > > http://mail.zope.org/mailman/listinfo/zope-cmf > > > > See http://collector.zope.org/CMF for bug reports > > and feature requests > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ___ > Zope-CMF maillist - Zope-CMF@lists.zope.org > http://mail.zope.org/mailman/listinfo/zope-cmf > > See http://collector.zope.org/CMF for bug reports and feature requests > -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: undo_form -> no content
Florent Guillaume wrote at 2005-8-4 17:03 +0200: >I'm willing to fix it if someone explains *why* the patch is needed. >What code actually adds a username and space in the path. Is that part of >what's written in the transaction description? Is it something CMF adds? It is "Zope.App.startup.TransactionManager.recordMetaData". In Zope 2.7.2 (thus, a bit old but maybe still valid), the code looks like: auth_user=request_get('AUTHENTICATED_USER',None) if auth_user is not None: try: auth_folder = auth_user.aq_parent except AttributeError: # Most likely some product forgot to call __of__() # on the user object. LOG('AccessControl', WARNING, 'A user object of type %s has no aq_parent.' % str(type(auth_user))) auth_path = request_get('AUTHENTICATION_PATH') else: auth_path = '/'.join(auth_folder.getPhysicalPath()[1:-1]) T.setUser(auth_user.getId(), auth_path) with "ZODB.Transaction.setUser(user_name, path='/')" defined by self.user="%s %s" % (path, user_name) Thus, if "path" is empty, you get " ". -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests