[Zope-CMF] Re: DCWorkflow question...

2005-06-03 Thread Raphael Ritz
Dmitry S. Makovey wrote: I've got workflow which runs script upon transition. At some point In that script I'm trying to get info on what state I'm in via: st=getattr(state_change,'new_state') and it appears to be working only with 'Manager' role which mean that I have to give that script

[Zope-CMF] custom WebDAV upload handling

2005-06-07 Thread Raphael Ritz
Hi, looks like I don't see the forrest for the trees. What I want to do: I have a custom product (CMFBibliography) to handle references to publications. Now I want to support FTP/DAV upload of Bibtex files, which may contain an arbitrary number of references, in the following way: 1. If the

[Zope-CMF] Re: custom WebDAV upload handling

2005-06-08 Thread Raphael Ritz
David Pratt wrote: Hi Raphael. Perhaps a workflow could be a solution. [..] Hope this helps. Regards David Hi David, that's indeed an interesting idea! Need to think about it more. After some more meditation over the code I got most of what I want now. Since it might be interesting

[Zope-CMF] CMFDefault: getHomeFolder robustnes

2005-06-16 Thread Raphael Ritz
Hi, just came across this one: If you change your 'Members' folder to be a BTree folder CMFDefault's 'getHomeFolder' throws a 'KeyError' if looking for a non-existing id (e.g., if your account is defined in Zope root). Per default, 'Members' is a regular PortalFolder instance which gives an

[Zope-CMF] Re: CMFDefault: getHomeFolder robustnes

2005-06-16 Thread Raphael Ritz
yuppie wrote: Hi Raphael! Hi Yuppie! [..] Per default, 'Members' is a regular PortalFolder instance which gives an 'AttributeError' on such look-ups which is caught in the method but the 'KeyError' isn't. Thanks for reporting this. Should now be fixed in cvs. Great! PS: You might

[Zope-CMF] Re: Odd behavior with lazy ActionInfo evaluation in CMF 1.5

2005-07-01 Thread Raphael Ritz
Alec Mitchell wrote: [nice analysis cut] The above steps are the expected behavior, and appear to work perfectly. The strange part follows: 5) 'portlet_login' gets the url for the action using [a['url'] for a in actions['user'] if a['id']=='join']. Shouldn't this be something like:

[Zope-CMF] Re: [dev] i18n improvements - a proposal

2005-08-10 Thread Raphael Ritz
yuppie wrote: Hi! Hi Yuppie, +1 from me all the way! Just one minor question out of curiosity: i18nextract.py is quite zope3 specific, but with some modifications it seems to work quite well for CMF. I'd like to add a modified i18nextract.py to the root of the CMF repository. How about

[Zope-CMF] Re: CMFSetup: workflow scripts as external methods

2005-10-24 Thread Raphael Ritz
Jens Vagelpohl wrote: [..] - External methods gain support by extending the saved information to collect module/function values for external methods instead of trying to read the body. This *will* make an import blow up if the filesystem code the external method relies on is not in the

[Zope-CMF] Re: backporting GenericSetup to CMF-1.5

2005-11-15 Thread Raphael Ritz
Rob Miller wrote: [..] you're more than welcome to either pitch this to plone-devel or to grab it by the horns and start working on it yourself. :-). Hi Rob and all other CMF developers, I know I'm getting myself in danger now as I know too little yet about Zope 3 and I have no practical

[Zope-CMF] Re: CMF 1.6

2005-11-18 Thread Raphael Ritz
Chris Withers wrote: Alec Mitchell wrote: to start using it immediately or risk strange breakages. Maintaining product compatibility between versions of CMF/Plone will become nearly impossible. I'm sorry, I really couldn't resist this... neither can I ... And that differs from other

[Zope-CMF] Re: reindexing optimizations

2005-11-21 Thread Raphael Ritz
Chris Withers wrote: Hi Alec, Alec Mitchell wrote: So, Sidnei has been plugging away at the AT reindexes things an obscene number of times issue today, and appears to have fixed many of the AT triggered indexing redundancies. Where is this work being done? I'd be very interested to track

[Zope-CMF] Re: problems w/ 'File' type in CMF 1.6

2005-11-28 Thread Raphael Ritz
Rob Miller wrote: howdy, in trying to get Plone working against the 1.6 branch i've come across some problems w/ the way that CMFDefault.File.File is working since the base classes have been reordered. the biggest problem has to do w/ the default view lookup. when OFS.Image.File was the

[Zope-CMF] Re: Copy folder contents on first login?

2005-12-27 Thread Raphael Ritz
Ignacio Valdes wrote: Hello all, It has been years since I've last developed in CMF 1.0 for Linux Medical News http://www.linuxmednews.com project database. I'm back, this time working on a new web application for a research project on clinical outcomes using Plone 2.1.1 I would like to

[Zope-CMF] Re: Debugging in Houston?

2005-12-29 Thread Raphael Ritz
Ignacio Valdes wrote: Could anyone in Houston get together briefly to show how to get basic debugging tools working on my localhost/laptop setup? Please e-mail if available. Thanks! In case you haven't seen this http://docs.neuroinf.de/programming-plone/debug you might want to take a

[Zope-CMF] Re: Bug when removing state in DCWorkflow

2006-01-05 Thread Raphael Ritz
Tres Seaver wrote: [..] Objects which have a no-longer-sane review_state have *never* had reasonable behavior: the workflow engine *can't* compute what to do with them. They have no transitions (which is why the workflow actions are gone), and they can't be fixed by the Update Security

[Zope-CMF] Re: CMFPhoto + Album broken in 2.1.1

2006-01-05 Thread Raphael Ritz
Ignacio Valdes wrote: Is there a fix for: When installing CMFPhoto and Album from Add/Remove Products, it says the product is broken with the following Install log transcript: Your Plone is too new ;-) Plone doesn't have nor use the navigation_properties since 2.0 (about two years ago)

[Zope-CMF] Re: Plone add item restriction based on context/group/role?

2006-01-05 Thread Raphael Ritz
Ignacio Valdes wrote: I've found the partial answer through the 'Settings...' on the drop down only it doesn't seem to want to save my restrictions. This 'Settings ...' option is actually purely Plone/ATCT specific. You might have better chances to get an answer to your question on the

[Zope-CMF] Re: membership tool folderish?

2006-01-13 Thread Raphael Ritz
Florent Guillaume wrote: Why is the membership tool folderish? What's potentially stored in it? No idea; I always considered this a hack to make it appear in the ZMI navigation panel to the left. Raphael Florent ___ Zope-CMF maillist -

[Zope-CMF] Re: future of getToolByName

2006-01-17 Thread Raphael Ritz
whit wrote: I remember some discussion of this in the past. Transitionally, it would be helpful to be able to register local utilities to a tool name, and then have getToolByName spit out a deprecation warning and return an appropriate object. Why a deprecation warning and not just do it?

[Zope-CMF] Re: RFC: backporting including python-package-product support to support Zope 2.8

2006-01-18 Thread Raphael Ritz
Philipp von Weitershausen wrote: [..] except perhaps if he wants to get started right now, with Plone 2.1 (though that might still run under Zope 2.9 and CMF 1.6, I hope). Well, I was tinkering a little bit with Plone 2.1 on Zope 2.9 (or the Plone-2.1 bundle to be precise) not too long ago and

[Zope-CMF] Re: RFC: backporting including python-package-product support to support Zope 2.8

2006-01-18 Thread Raphael Ritz
Raphael Ritz wrote: Philipp von Weitershausen wrote: [..] except perhaps if he wants to get started right now, with Plone 2.1 (though that might still run under Zope 2.9 and CMF 1.6, I hope). Well, I was tinkering a little bit with Plone 2.1 on Zope 2.9 (or the Plone-2.1 bundle

[Zope-CMF] Re: CMF providing support for add forms?

2006-05-31 Thread Raphael Ritz
Rocky Burt wrote: Hi all, Hi Rocky, I was wondering if CMF does or is planning on implementing support for add forms for content. If so, would someone mind explaining how it works? If not, why not? :) not that Yuppie mentioned this explicitly but my feeling is that his recent proposal

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-21 Thread Raphael Ritz
Tres Seaver schrieb: [..] The question is: how would you do that from an extension profile without replicating the entire 'File' fti for just this little change? Then you aren't making an extension: it is really a base profile in disguise, as you want to control types outside your profile's

[Zope-CMF] Re: [dev] email_charset: a small proposal

2006-10-13 Thread Raphael Ritz
Tres Seaver schrieb: [..] Aren't RFC822-compliant e-mails 7-bit only in the headers? Yes, but only in as much as. e.g. Subject: =?iso-8859-1?q?p=F6stal?= is 7-bit ASCII. http://docs.python.org/lib/module-email.header.html has more. Raphael Tres. - --

[Zope-CMF] Re: More questions

2006-11-22 Thread Raphael Ritz
Charlie Clark schrieb: This is just a quick one: how do I include documents within another document? ie. say I have local_pt which is going has different boxed with text from other documents. I assume I have to call a method on the document to render it correctly but haven't found the right

[Zope-CMF] Re: Making TypesTool faster

2007-05-02 Thread Raphael Ritz
Chris Withers schrieb: Alexander Limi wrote: This issue goes back to the original discovery that Zope had a bug that made its Product lookup mechanism What do you mean by Product lookup mechanism? The way in which '_get/_queryFactoryMethod' (called by 'isContructionAllowed' for each and

[Zope-CMF] Re: Problem with STX rendering

2007-05-11 Thread Raphael Ritz
Tres Seaver wrote: [..] Going back briefly to ReST: if Zope seems ready to support this out of the box, wouldn't it useful to support ReST in CMFDefault.Document? Or is the dependency on docutils too precarious? It could be added gracefully to the edit form if import reStructuredText

[Zope-CMF] Re: Problem with STX rendering

2007-05-12 Thread Raphael Ritz
Charlie Clark wrote: [..] Sorry, but I can't see any relation: my post is solely related to content in the ZODB. Anyway doesn't Silva do this (work extremely well with external files) already? Sorry that I've been unclear as to what I meant. The point is not file system versus ZODB here

[Zope-CMF] Re: GenericSetup extension profile import step mis-feature

2007-07-31 Thread Raphael Ritz
Tres Seaver wrote: [..] Note that the extension author's convenience was not highest in priority in the design, which tries to make the integrators job easier. Extension authors have to be extremely cautious, and may need to clone steps (in the absence of dependencies). [sorry if this

[Zope-CMF] Re: Show/hide content from users/groups

2007-09-18 Thread Raphael Ritz
roel wrote: [..] I spend several days digging trough various information sources, but I could not find a proper solution. What am I missing here? With kind regards, Roel. 'VerboseSecurity' is your friend ;-) Raphael --- Scarlet One, ADSL 6 Mbps + Telefonie, vanaf EUR 29,95...

[Zope-CMF] Re: [dev] newstyle content creation

2008-05-20 Thread Raphael Ritz
Charlie Clark wrote: [..] That's probably the easiest solution at the moment although it would be nice to be able to declare this in the schema. I suppose two different interfaces à la IObject and IMutableObject provide a way. I find fiddling with the form fields too easy to mess up! I

[Zope-CMF] Re: License file question

2008-05-29 Thread Raphael Ritz
Jens Vagelpohl wrote: Hi Jens, Just wondering: Now that we are splitting the CMF down into its constituent packages and people don't need to get the old-fashioned tarball, do we need to have a copy of the LICENSE.txt file in every package? I'd think so, yes. And if yes, where would it

[Zope-CMF] Re: cmfuid and zope.app.intids

2008-05-30 Thread Raphael Ritz
Miles wrote: [..] I suppose the slight deviation from BBB is that if someone is using a custom catalog (for example a day-of-week-to-show flag to provide random search results), they'll also need to provide some sort of customisation when objects are fetched by uid to get the same thing to

[Zope-CMF] MembershipTool: Using traversal to look up the Members folder?

2008-10-08 Thread Raphael Ritz
Hi, today I'm facing the situation where I want to support a Members folder (rare these days) but this folder should be deeper down in the site (very rare; for me this is the first time ever). Currently, CMF(Default - and Plone for that matter) does not support this OOTB because CMFDefault's

Re: [Zope-CMF] MembershipTool: Using traversal to look up the Members folder?

2008-10-08 Thread Raphael Ritz
Wichert Akkerman wrote: Previously Raphael Ritz wrote: Currently, CMF(Default - and Plone for that matter) does not support this OOTB because CMFDefault's MembershipTool uses a simple getattr call for the 'membersfolder_id' on the site object. Changing this to use 'unrestrictedTraverse

Re: [Zope-CMF] MembershipTool: Using traversal to look up the Members folder?

2008-10-08 Thread Raphael Ritz
Jens Vagelpohl wrote: [..] Please keep in mind the true nature of CMFDefault: It's a sample application of the framework laid down in CMFCore. So IMHO _if_ this kind of configurable members folder location feature is added, it should be in CMFCore and thus available to CMFDefault.

Re: [Zope-CMF] zc.formlib and content types

2009-01-26 Thread Raphael Ritz
Miles wrote: Hi, I was playing with using zc.formlib and five to create some content types - not exactly ahead of the curve, I know. I have it all working fine for basic edit/add forms. I want to replace one of the operations in a site that is a multi-page wizard with something based

Re: [Zope-CMF] Weird catalog behaviour

2009-02-01 Thread Raphael Ritz
Charlie Clark wrote: Am 28.01.2009 um 21:41 schrieb Tres Seaver: You can also call the 'unrestrictedSearchResults' method from trusted code (e.g., the debugger): it bypasses those checks. I should have guessed that there'd be a method like that! Still thanks to Andreas I now know how

Re: [Zope-CMF] [dev] .zexp imports and notifyWorkflowCreated

2009-02-25 Thread Raphael Ritz
Charlie Clark wrote: Am 18.02.2009 um 21:51 schrieb Wichert Akkerman: In my opinion a copy should produce a full copy, including all state and history. Not sure I would agree here. For a move (cutpaste) yes but for a copy I think there are too many different use cases to justify your

Re: [Zope-CMF] [dev] .zexp imports and notifyWorkflowCreated

2009-02-25 Thread Raphael Ritz
Wichert Akkerman wrote: Previously Raphael Ritz wrote: Charlie Clark wrote: Am 18.02.2009 um 21:51 schrieb Wichert Akkerman: In my opinion a copy should produce a full copy, including all state and history. Not sure I would agree here. For a move (cutpaste) yes but for a copy I think

Re: [Zope-CMF] IndexableObjectWrapper

2009-03-10 Thread Raphael Ritz
Jens Vagelpohl wrote: Hi Jens, IMHO the licensing issue is of general interest beyond this one software bit. If there are any changes to Plone licensing I'm sure people on this list would be happy if you or someone else could provide some summary, if and when something is being

Re: [Zope-CMF] Rename form

2009-06-18 Thread Raphael Ritz
Charlie Clark wrote: Hiya, I recently managed to get quite a lot of work done on my form(lib) based replacement for a folder_contents view. Thanks go to Yuppie for doing all the hard work initially - so that putting it into a form hasn't been that difficult. Thanks also to Jens for