[Zope-CMF] Re: [dev] using unicode in CMF 2.0 - a proposal

2006-01-30 Thread yuppie
only" setup. Great! Cheers, Yuppie ___ 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] [dev] using unicode in CMF 2.0 - a proposal

2006-01-30 Thread yuppie
objections I'd like to work on this before the CMF 2.0 beta. Cheers, Yuppie ___ 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: GenericSetup doc

2006-01-26 Thread yuppie
installed, in a way which made them easy to distinguish. I think there was a convenience button which ran only such steps, as well. I don't think I ever saw a version that implemented this. And I'm not sure if GenericSetup should implement this. Bu

[Zope-CMF] Re: [dev] i18n Message objects: encoding issues

2006-01-26 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: 2.) Switch completely to unicode in CMF 2.0: Sounds like a too big change, don't think we should try that. I think we all know this is where we need to be eventually, 2.0 seems the right time to do that, I'd actually prefer this, e

[Zope-CMF] Re: GenericSetup doc

2006-01-25 Thread yuppie
Hi Jens! Jens Vagelpohl wrote: On 25 Jan 2006, at 10:42, yuppie wrote: BTW: In which checkin list do GenericSetup checkins show up now? They show up in the generic zope checkins list, where all the Zope checkins themselves go. Well. Not exactly true. The Zope checkins go to zope

[Zope-CMF] Re: GenericSetup doc

2006-01-25 Thread yuppie
be both?) I have to admit that I never understood why import steps have a "version" attribute. And I still don't understand that concept: Does that mean each upgrade needs its own import steps? Cheers, Yuppie ___ Zope-CMF mai

[Zope-CMF] [dev] i18n Message objects: encoding issues

2006-01-24 Thread yuppie
page templates: The RSS page works already that way. We need to touch a lot of skin code to implement this, but it looks more future proof to me. In Zope 2.10 non-unicode input for page templates might become deprecated. What do you think? Cheers, Yuppie __

[Zope-CMF] Re: GenericSetup list property purge

2006-01-17 Thread yuppie
Florent Guillaume wrote: On 17 Jan 2006, at 10:28, yuppie wrote: The handlers for other sequences (like skin paths and object managers) just add new sequence items if the item doesn't exist already. Wouldn't that also work for list properties? Yes but other sequences have a

[Zope-CMF] Re: Move GenericSetup out of CMF

2006-01-17 Thread yuppie
clude it in the CMF via a svn:external link", see http://palladion.com/home/tseaver/obzervationz/2006/cmf_2_0_update_20060111 Was that part skipped on purpose or by mistake? Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF

[Zope-CMF] Re: GenericSetup list property purge

2006-01-17 Thread yuppie
(like skin paths and object managers) just add new sequence items if the item doesn't exist already. Wouldn't that also work for list properties? Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.or

[Zope-CMF] Re: RFC: browser views and memoization

2006-01-16 Thread yuppie
yuppie wrote: whit wrote: yuppie wrote: I ended up using this method as decorator for most methods: def memoize(func): memo = {} def memoized_func(*args): if args not in memo: memo[args] = func(*args) return memo[args] return memoized_func Are there

[Zope-CMF] Re: RFC: browser views and memoization

2006-01-16 Thread yuppie
Hi Whit! whit wrote: yuppie wrote: I ended up using this method as decorator for most methods: def memoize(func): memo = {} def memoized_func(*args): if args not in memo: memo[args] = func(*args) return memo[args] return memoized_func Are there

[Zope-CMF] RFC: browser views and security

2006-01-15 Thread yuppie
heers, Yuppie ___ 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] RFC: browser views and memoization

2006-01-15 Thread yuppie
iliar with decorators.) Cheers, Yuppie ___ 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: CMF 2.0 Release Status

2006-01-15 Thread yuppie
be maintained in the Zope core. That means there is still a lot of work necessary to find out which methods should become part of the API and which parts of the public API should be deprecated, modified or made private. Not just in the CMF, but also in Zope.

[Zope-CMF] Re: membership tool folderish?

2006-01-13 Thread yuppie
Florent Guillaume wrote: Why is the membership tool folderish? What's potentially stored in it? The idea was to store the createMemberContent method and related stuff like a skeleton home folder in it. Yuppie ___ Zope-CMF maillist - Zop

[Zope-CMF] Re: CMF 2.0 Release Status

2006-01-13 Thread yuppie
Hi Tres! Tres Seaver wrote: yuppie wrote: I agree with your concerns. Views and the FiveActionsTool both use Five/Zope3 technology for the price of dropping TTW/GenericSetup support and introducing a second way to do the same things. Hmm, I'm not sure I see how we are trading

[Zope-CMF] Re: CMF 2.0 Release Status

2006-01-13 Thread yuppie
ld skins machinery. Cheers, Yuppie ___ 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: CMF 2.0 Release Status

2006-01-12 Thread yuppie
or the minimal site structure currently set up by CMFDefault.setuphandlers.importVarious. I tried to use the content handler for that, but that adds the complete site content to a snapshot. Any ideas how to resolve this? I'd really like to get rid of importVarious. Required Zope Version +1

[Zope-CMF] [dev] status of events support?

2006-01-11 Thread yuppie
7;s related to events? Are there any plans to use events in CMF 2.0? TIA, Yuppie ___ 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: Head-slot in five_template

2006-01-08 Thread yuppie
Right? Thinking about it I wonder how they are used in CMFonFive products and why they were added to the five_template on CMF trunk. Templates that use those slots are CMF specific and I thought the goal was to write templates that can be reused in Zope2/Fi

[Zope-CMF] Re: GenericSetup: allowed_container_types

2006-01-05 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 4 Jan 2006, at 20:17, Florent Guillaume wrote: On 13 Dec 2005, at 13:50, yuppie wrote: Florent Guillaume wrote: On 13 Dec 2005, at 12:50, yuppie wrote: I'd propose to implement an update mode for list properties and to add an update file for

[Zope-CMF] Re: changing typeinfo_name behaviour in CMF 1.6

2006-01-02 Thread yuppie
ard to support both. I'll leave it up to you to find the right compromises for CMF 1.6, but I would propose to issue at least a warning if typeinfo_name isn't found. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.or

[Zope-CMF] Re: GenericSetup improvements

2005-12-30 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 29 Dec 2005, at 21:20, yuppie wrote: Florent Guillaume wrote: On 27 Dec 2005, at 10:51, yuppie wrote: Florent Guillaume wrote: Also I'd like to change things like: node = property(_exportNode, _importNode) into: def __exportNode

[Zope-CMF] Re: removed meta_type attribute from type info classes

2005-12-30 Thread yuppie
Hi Rob! Rob Miller wrote: yuppie, in the following change: http://svn.zope.org/CMF/branches/1.6/CMFCore/TypesTool.py?rev=40360&r1=40267&r2=40360 you removed the 'meta_type' attribute from the FactoryTypeInformation and ScriptableTypeInformation classes. i see that th

[Zope-CMF] Re: GenericSetup improvements

2005-12-29 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 27 Dec 2005, at 10:51, yuppie wrote: Florent Guillaume wrote: Also I'd like to change things like: node = property(_exportNode, _importNode) into: def __exportNode(self): return self._exportNode() def __importNode(self,

[Zope-CMF] Re: GenericSetup improvements

2005-12-27 Thread yuppie
gs) self._importNode(*args) node = property(__exportNode, __importNode) To allow proper subclass overriding and avoid the dead chicken of having to redefine the node property each time. +1 Cheers, Yuppie ___ Zope-CMF maillist

[Zope-CMF] Re: GenericSetup and unicode

2005-12-27 Thread yuppie
-English settings translate them on the fly. Feel free to extend the machinery if you need support for other encodings. 2.) Looks like toprettyxml has to be called with encoding='utf-8' to set the writer to utf-8 mode. But that also sets the encoding specified in the

[Zope-CMF] Re: CMF 1.6 change broke Plone compatibility

2005-12-21 Thread yuppie
yle add form instead of an add view. BTW: Custom catalog indexes and custom workflow definitions are registered the same way. They have to implement IPluggableIndex or IWorkflowDefinition. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zo

[Zope-CMF] Re: CMF 1.6 change broke Plone compatibility

2005-12-20 Thread yuppie
Hi! Jens Vagelpohl wrote: On 20 Dec 2005, at 21:56, yuppie wrote: I really don't care much about how this is resolved. But from Rob's checkins and the discussion following this mail http://mail.zope.org/pipermail/zope-cmf/2005-November/023399.html I had the impression that CMF

[Zope-CMF] Re: CMF 1.6 change broke Plone compatibility

2005-12-20 Thread yuppie
Hi Rob! Hi Jens! Rob Miller wrote: Jens Vagelpohl wrote: On 20 Dec 2005, at 19:53, yuppie wrote: The intention was to make things consistent. CMF 1.5 and CMF 2.0 have different ways to register custom type info classes. Before that change both machineries were broken on the 1.6 branch

[Zope-CMF] Re: CMF 1.6 change broke Plone compatibility

2005-12-20 Thread yuppie
the last checkin. Cheers, Yuppie ___ 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: CMF GenericSetup log levels

2005-12-15 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: 1.) It would be nice to have a policy for Zope. If the Zope core officially supports the BLATHER level (not just in the deprecated zLOG module) I'm fine with using it in GenericSetup as well. It doesn't, ZODB has a mapping for it

[Zope-CMF] Re: GenericSetup pretty XML

2005-12-15 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 14 Dec 2005, at 10:51, yuppie wrote: Florent Guillaume wrote: Can I fix the "pretty" xml exporter to use standard identing? (2 spaces for tags, 4 for attributes) AFAICS nothing is broken and we don't have a policy for that. So I woul

[Zope-CMF] Re: GenericSetup pretty XML

2005-12-14 Thread yuppie
other arguments for that change. So -1 from me. Cheers, Yuppie ___ 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: CMF GenericSetup log levels

2005-12-14 Thread yuppie
ups WARNING might be appropriate. Messages that report the success of export steps are a candidate for DEBUG. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.

[Zope-CMF] Re: GenericSetup: allowed_container_types

2005-12-13 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 13 Dec 2005, at 12:50, yuppie wrote: I'd propose to implement an update mode for list properties and to add an update file for each allowed container. Something like that: (Didn't have a look at the code. I guess this currently

[Zope-CMF] Re: GenericSetup: allowed_container_types

2005-12-13 Thread yuppie
's what it should do by default. But we could add an explicit mode="update" to enforce an update mode.) Cheers, Yuppie ___ 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: GenericSetup TI listing

2005-12-13 Thread yuppie
sinfo.xml. Cheers, Yuppie ___ 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: GenericSetup development: progress report

2005-12-12 Thread yuppie
x27;self.setup_context' in the adapters, we have to rename ISetupEnviron as well. ISetupContext is already taken, so we would have to call it IMinimalSetupContext or whatever. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.o

[Zope-CMF] GenericSetup development: progress report

2005-12-12 Thread yuppie
stuff up the old way if you have old setup code like an Install.py) and export your settings using the setup tool. Any kind of questions and feedback are welcome. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://ma

[Zope-CMF] Re: VIRTUAL_URL and ACTUAL_URL (was Re: Collector Issues)

2005-12-04 Thread yuppie
Anyway, ACTUAL_URL supersedes VIRTUAL_URL which is only available if the Virtual Host Monster changed the URL. I can't think of any good reason to use VIRTUAL_URL instead of ACTUAL_URL. Cheers, Yuppie ___ Zope-CMF maillist - Zope-C

[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste

2005-12-04 Thread yuppie
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: import Testing -import Zope2 -Zope2.startup() I'm seeing issues in some tests which fail when run outside the full suite after changes

[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste

2005-12-02 Thread yuppie
Jens Vagelpohl wrote: On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: import Testing -import Zope2 -Zope2.startup() I'm seeing issues in some tests which fail when run outside the full suite after changes like these. E.g., zopectl> test CMFDefault I'm trying to ru

[Zope-CMF] Re: SVN: CMF/branches/tseaver-viewification/CMFDefault/tests/test_DiscussionReply.py Fix test breakage due to multiple registrations of five:traversable.

2005-12-02 Thread yuppie
6 +75,7 @@ def tearDown(self): noSecurityManager() +cleanUp() RequestTest.tearDown(self) PlacelessSetup.tearDown(self) Is this extra cleanUp() necessary? I thought PlacelessSetup.tearDown(self) calls it already. Cheers, Yuppie ___ Zo

[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste

2005-12-02 Thread yuppie
but apparently my way to test which ones is not sufficient. I'm on Windows ATM, so I can't test it with zopectl. But bin\python.exe bin\test.py -v --libdir Products/CMFDefault doesn't raise any errors on my machine. Cheers, Yuppie ___

[Zope-CMF] Re: Five:traversable and PortalContent

2005-12-01 Thread yuppie
. I hope this is fixed now for 1.6 and 2.0, but if the tests in your sandbox have a different order than in my sandbox you might still see some broken tests. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zop

[Zope-CMF] [headsup] removing old workflow registry on CMF trunk

2005-11-22 Thread yuppie
Hi all! If there are no objections, I'll merge tomorrow the yuppie-workflow_setup branch into the trunk. This will break third-party products that register their own workflows using addWorkflowFactory. - Customized DCWorkflow workflow definitions should be exported as XML file

[Zope-CMF] Re: reindexing optimizations

2005-11-20 Thread yuppie
ndexObject(['portal_type', 'Type']), This was the case in my initial code, but Yuppie changed it: http://svn.zope.org/trunk/CMFCore/TypesTool.py?rev=35903&r1=35864&r2=35903 I don't remember what the reason was, though I believe it was discussed a bit at the time on the

[Zope-CMF] Re: GenericSetup & uninstalling

2005-11-20 Thread yuppie
way to go, but I'm not sure. Cheers, Yuppie ___ 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: [dev] RFC: logging/reporting framework for GenericSetup

2005-11-17 Thread yuppie
;SGAIFA'?) Should we combine all 3 levels in the dotted logger name? e.g. 'GenericSetup.content.CSAFA' Or would be 'GenericSetup.content' enough? Currently it is 'GenericSetup.CSAFA'. Maybe you've got an idea how to resolve this. Don't know what kind of 'co

[Zope-CMF] Re: GenericSetup feature?

2005-11-17 Thread yuppie
infos or workflows. No provisions were made for multiple node adapters per interface. For the 'actual' answer see Tres' reply. He is more familiar with the content handlers than I. Cheers, Yuppie ___ Zope-CMF maillist - Z

[Zope-CMF] Re: CMFSetup and tools that cache data

2005-11-17 Thread yuppie
dexing to avoid long running processes on big sites If your site contains content you have to reindex manually. Of course this could be improved. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailm

[Zope-CMF] Re: GenericSetup-based installation backport mostly complete

2005-11-17 Thread yuppie
Hi Rob! Rob Miller wrote: yuppie wrote: 2.) Please set svn:keywords Id on new python files. /me reads svn docs to learn about svn:keywords. The easiest way to make sure they are set is to modify your svn config. You might need something like this:: [miscellany] enable-auto-props

[Zope-CMF] Re: [dev] RFC: logging/reporting framework for GenericSetup

2005-11-17 Thread yuppie
import_context.note('SGAIFA', 'no .ini file for %s/%s' % (subdir, cid)) would be replaced by this code:: logger = import_context.getLogger('SGAIFA') logger.info('no .ini file for %s/%s' % (subdir, cid)) If there are no objec

[Zope-CMF] Re: CMF 2.0 sandboxes

2005-11-16 Thread yuppie
Zope 2.9. See this thread for a related discussion: http://mail.zope.org/pipermail/zope-cmf/2005-November/023319.html 2.) http://www.zope.org/Collectors/CMF/392 has to be resolved. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF

[Zope-CMF] Re: [dev] RFC: logging/reporting framework for GenericSetup

2005-11-16 Thread yuppie
sync_GenericSetup Great! Looks like almost everything I was missing regarding logging is already implemented. I'll have a look at that branch as soon as I find time. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zo

[Zope-CMF] Re: GenericSetup-based installation backport mostly complete

2005-11-16 Thread yuppie
impossible to use the CMF 2.0 handlers for CMF 1.5 code. I guess you have to modify CMFSetup and use some CMF 1.5 handlers to get everything working. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailm

[Zope-CMF] Re: [dev] RFC: logging/reporting framework for GenericSetup

2005-11-16 Thread yuppie
s not aware of requests, so I can't see an easy way to make sure the log handler collects only messages for a specific request. Or am I missing something? Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope

[Zope-CMF] Re: [dev] RFC: logging/reporting framework for GenericSetup

2005-11-16 Thread yuppie
Hi Tres! Tres Seaver wrote: Jens Vagelpohl wrote: On 15 Nov 2005, at 14:24, yuppie wrote: The notes should be logged *and* used for reporting in the ZMI. Implementation: I'm no logging expert, so I might well be missing something. The state of the art seems to be using the P

[Zope-CMF] [dev] RFC: logging/reporting framework for GenericSetup

2005-11-15 Thread yuppie
notes to the Python logger *and* to TTW reports might be the way to go. Timeframe: We need soon a stable API to encourage the authors of setup handlers to use that API. The actual reporting and logging can be implemented later. Cheers, Yuppie

[Zope-CMF] Re: [dev] GenericSetup: more refactoring - a small proposal

2005-11-15 Thread yuppie
Hi Florent! Thanks for the feedback. Florent Guillaume wrote: yuppie wrote: I can see use cases like that, but I'd prefer a more decentralized solution. Using the setup tool for tasks like that makes it too complex and if I want to modify a single tool I don't want to switch to

[Zope-CMF] Re: [dev] GenericSetup: more refactoring - a small proposal

2005-11-15 Thread yuppie
'beta' in mid December - that's one month from now. Right? Cheers, Yuppie ___ 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] [dev] CMF migration roadmap - a proposal

2005-11-15 Thread yuppie
the setup tool to make sure CMF 1.5 setup tools still work in CMF 2.0 - merge CMFSetup from trunk into the 1.6 branch and remove it from the trunk (CMF 2.0) If there are no objections I'll update the deprecation warnings on the CMF 1.5 and 1.6 branches. The other tasks can

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

2005-11-13 Thread yuppie
Hi! Rob Miller wrote: Jens Vagelpohl wrote: On 12 Nov 2005, at 09:04, yuppie wrote: GenericSetup is still a moving target. I would not create a branch for 1.6 before 2.0 has stabilized. unfortunately i need to move rather quickly to be able to produce a proof-of-concept for the framework

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

2005-11-12 Thread yuppie
is still a moving target. I would not create a branch for 1.6 before 2.0 has stabilized. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for b

[Zope-CMF] Re: [dev] GenericSetup: more refactoring - a small proposal

2005-11-10 Thread yuppie
Hi Florent! Florent Guillaume wrote: yuppie wrote: - import/export of selected tools from a bigger profile: don't think we really need that Right now each tool has its own import step and export step. The 'Import' and 'Export' tab of the setup tool allow to select

[Zope-CMF] Re: [dev] GenericSetup: more refactoring - a small proposal

2005-11-10 Thread yuppie
Florent Guillaume wrote: yuppie wrote: - import/export of selected tools from a bigger profile: don't think we really need that What do you mean by "i/o of selected tools from a bigger profile" ? Right now each tool has its own import step and export step. The 'Import&

[Zope-CMF] [dev] GenericSetup: more refactoring - a small proposal

2005-11-10 Thread yuppie
nk the refactoring would be an improvement and if there are no objections I'll work on this change. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.

[Zope-CMF] [dev] CMFDefault/exportimport.zcml

2005-11-07 Thread yuppie
Hi! Do we need CMFDefault/exportimport.zcml on the trunk? Wouldn't it be better to replace the five:implements directives by implements() statements in the classes? If there are no objections I'll change that. Cheers, Yuppie ___ Zope-CM

[Zope-CMF] Re: ActionsTool bug on CMFCore trunk

2005-11-06 Thread yuppie
erse('category/bar') Making getActionObject return both kinds of IAction objects would be confusing because they are quite different objects. I fixed getActionObject by making it skip newstyle Actions instead of raising errors. Hope that resolves the issue. Cheers, Yuppie ___

[Zope-CMF] Re: batch error in members_manage_template

2005-10-28 Thread yuppie
h' 'members_manage_template' is used by the 'members_manage_form' script to render the result. 'members_manage_form' is the method that should be called TTW. But I doubt it works with Plone. Cheers, Yuppie ___ Zope-CMF mai

[Zope-CMF] Re: getActionById replacement

2005-10-28 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: yuppie wrote: Okay, so how would you get the url for an action from inside a skin script or template? obj.getActionInfo('object/view')['url'] for type actions or provider.getActionInfo('user/join')['url&#

[Zope-CMF] Re: getActionById replacement

2005-10-25 Thread yuppie
Chris Withers wrote: yuppie wrote: This is in a completely set up Plone site? Could you please try to debug those values while we are still in customizePortalTypes? Okay, in there, it's just the normal Plone types, which we don't use. And yes, their _aliases dict appears to have &

[Zope-CMF] Re: getActionById replacement

2005-10-25 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: Okay, so how would you get the url for an action from inside a skin script or template? obj.getActionInfo('object/view')['url'] for type actions or provider.getActionInfo('user/join')['url'] for other

[Zope-CMF] Re: RFC: first stab at viewification

2005-10-23 Thread yuppie
r CMF 2.0 next week. I just checked in http://svn.zope.org/?rev=39566&view=rev on the tseaver-viewification branch. That should be more suitable for comparing the different approaches. Cheers, Yuppie ___ Zope-CMF maillist -

[Zope-CMF] Re: RFC: first stab at viewification

2005-10-23 Thread yuppie
ode is not scalable. Adding validators doesn't look very easy and implementing something like folder_contents looks almost impossible. Cheers, Yuppie ___ 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: getActionById replacement

2005-10-21 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: Once again: getActionObject(action_path) is the method you are looking for. Another problem with this: getActionById is defined as public, getActionObject as private, so you can't use it in any skin scripts or templates :-( Sugges

[Zope-CMF] Re: getActionById replacement

2005-10-21 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: Well. getActionByID did make sense before type actions became normal actions in CMF 1.4. Since than getActionByID is an ugly backwards compatibility hack that tries to guess the called method from an expression string that defines a context

[Zope-CMF] Re: getActionById replacement

2005-10-21 Thread yuppie
Chris Withers wrote: yuppie wrote: I wonder why ti.queryMethodID('view') is None. Is that the case for all your type infos? Looks like it. Does ti._aliases exist? If yes, what does it look like? Yep, often just maps 'edit':'base_edit', and here queryMeth

[Zope-CMF] Re: getActionById replacement

2005-10-21 Thread yuppie
exist? If yes, what does it look like? queryMethodID might be useful for your use case... Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug

[Zope-CMF] Re: getActionById replacement

2005-10-21 Thread yuppie
you make sure your action expressions are parsable by getActionByID. I doubt your use case is a legit use case. If you just want the deprecation warnings "to STFU" you have to reimplement getActionByID. If you want to do things right, you don't need a replacement for getActionByID. W

[Zope-CMF] Re: getActionById replacement

2005-10-20 Thread yuppie
Hi Chris! Chris Withers wrote: yuppie wrote: getActionInfo()[\'url\'] ...will net you a TypeError explaining that getActionInfo takes a argument that isn't supplied. Looking at the docs, an action_chain, but I have no idea what one of them is... 'action_chain'

[Zope-CMF] [headsup] removing old setup machinery on CMF trunk

2005-10-20 Thread yuppie
Hi all! If there are no objections, I'll merge tomorrow the yuppie-setup_cleanup branch into the trunk. This will break the setup code of all third-party products that haven't yet switched to GenericSetup/CMFSetup. 1.) factory_type_information data is replaced by XML files in

[Zope-CMF] Re: getActionById replacement

2005-10-20 Thread yuppie
e a different use case than those mentioned in the deprecation warning. getActionObject(action_path) is the method you are looking for. But please note: The whole PloneGenerator class is nasty code and I'm in the process of removing its base class PortalGenerator from the CMF trunk. Plone

[Zope-CMF] Re: Better DeprecationWarnings

2005-10-19 Thread yuppie
"add menu) or 'CMFSetup.factory.addConfiguredSite' (from " "Python). " Well. CMFSetup.factory.addConfiguredSite itself is deprecated because on the trunk the factory was moved to CMFDefault. Cheers, Yuppie _

[Zope-CMF] Re: [CMF-checkins] SVN: CMF/branches/1.5/C CMFSetup: added support for configuring content type registry.

2005-10-19 Thread yuppie
code that depends on PortalGenerator because the new setup machinery is completely different. PortalGenerator, manage_addCMFSite and oldstyle configuration data (fti data, workflows - actions are already removed) will soon be removed completely from the trunk. Cheers,

[Zope-CMF] Re: Five views / redirects

2005-10-18 Thread yuppie
Victor Safronovich wrote: Hello Chris Withers, Tuesday, October 18, 2005, 4:24:29 PM, you wrote: CW> yuppie wrote: def __call__(self): if self.isTuesday(): return ZopeTwoPageTemplateFile('tuesday.pt').__of__(self)() return self.index() C

[Zope-CMF] Re: View classes / testing

2005-10-18 Thread yuppie
F 1.5 *and* CMF 2.0. Cheers, Yuppie ___ 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: Five views / redirects

2005-10-18 Thread yuppie
for you: def __call__(self): if self.isTuesday(): return ZopeTwoPageTemplateFile('tuesday.pt').__of__(self)() return self.index() HTH, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.or

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
Hi Tres! Tres Seaver wrote: Lennart Regebro wrote: On 10/17/05, yuppie wrote: I know that pattern, but I don't like it. [...] The code on the goldegg-folder_contents branch processes the input in the __call__ method of the view class. The template is only invoked if needed. It&#

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
Hi Lennart! Lennart Regebro wrote: On 10/17/05, yuppie wrote: I know that pattern, but I don't like it. [...] The code on the goldegg-folder_contents branch processes the input in the __call__ method of the view class. The template is only invoked if needed. It's much cleaner

[Zope-CMF] [dev] CMFSetup/GenericSetup: moving code around - a small proposal

2005-10-17 Thread yuppie
ame 'adapters' modules to 'exportimport'. Cheers, Yuppie ___ 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: CMF and Five views: hooking up "POST"

2005-10-17 Thread yuppie
uch cleaner to use the template just for displaying results, not for triggering controllers. Cheers, Yuppie ___ 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: CMF and Five views: hooking up "POST"

2005-10-16 Thread yuppie
Hi Jens! Jens Vagelpohl wrote: On 16 Oct 2005, at 16:21, yuppie wrote: Jens Vagelpohl wrote: Doing some more work on Five views for CMF right now. I have the edit view hooked up and working find for my sample content type. The view class given to me by Tres defines a POST method, but I

[Zope-CMF] Re: [CMF-checkins] SVN: CMF/branches/1.5/C CMFSetup: added support for configuring content type registry.

2005-10-16 Thread yuppie
n that all products built on top of the CMF have to ship with a GenericSetup profile for CMF 2.0. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.or

[Zope-CMF] Re: CMF and Five views: hooking up "POST"

2005-10-16 Thread yuppie
t make any sense to me: What is your goal? Why do you need to 'hook up' POST if your edit view works already? When should your POST method be called and what does that POST method? Are you working on something special or just on a normal edit view? Che

[Zope-CMF] Re: Trunk hosed?

2005-10-11 Thread yuppie
t / import code from the 1.5 branch, but need passing tests first. Are you using the latest Zope-2_8-branch revision? I recently made a change that depends on Zope changes. Hope svn up resolves the issue. Sorry for not giving a heads up. Chee

[Zope-CMF] CMF trunk dependencies

2005-09-30 Thread yuppie
er 12, 2005. Any objections or comments? Cheers, Yuppie ___ 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] [dev] Topic changes: problems with revision 38002

2005-09-21 Thread yuppie
ted in CMFTopic/DEPENDENCIES.txt, http://svn.zope.org/CMF/trunk/?rev=38002&view=rev added a new dependency on CMFDefault's SkinnedFolder. Not sure how to resolve this. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.

<    1   2   3   4   5   6   7   >