[Zope-CMF] Re: CMFSetup, getting started

2005-11-21 Thread Raphael Ritz
Rocky Burt wrote: [..] ps. Raphael, it would be phenomenal if your MySite tutorial could be extended to cover something like this. I hear you ;-) Sure that's something I've been thinking about myself for a while now but as long as the API evolves and as long as there isn't a best practice y

[Zope-CMF] Re: CMFSetup, getting started

2005-11-19 Thread Rob Miller
Rocky Burt wrote: I forgot to mention that I'm trying to get started with CMFSetup in CMF 1.5 as my current deployment platform happens to be Plone 2.1.1. Hopefully most of CMFSetup's (from CMF 1.5) functionality is migratable into CMF 2.0. the CMF 1.5 CMFSetup spellings will work on CMF 2.

[Zope-CMF] Re: CMFSetup, getting started

2005-11-19 Thread Rocky Burt
I forgot to mention that I'm trying to get started with CMFSetup in CMF 1.5 as my current deployment platform happens to be Plone 2.1.1. Hopefully most of CMFSetup's (from CMF 1.5) functionality is migratable into CMF 2.0. - Rocky Rocky Burt wrote: Hi CMF'ers, With all the recent talks o

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

2005-11-17 Thread yuppie
Hi Florent! Florent Guillaume wrote: How does CMFSetup/GenericSetup deal with tools that "cache" data? For instance, when a ZCatalog config is loaded, and some indexes are added, they are empty. Is there a specific phase where the index can be updateed? Where the catalog itself can be repopu

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

2005-10-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: > > On 24 Oct 2005, at 18:29, Tres Seaver 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. Th

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

2005-10-24 Thread Jens Vagelpohl
On 24 Oct 2005, at 18:29, Tres Seaver 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 i

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

2005-10-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: > Jens Vagelpohl wrote: > >> There's an outstanding issue in the collector about workflow scripts >> that are external methods. Currently, creating a snapshot of a site >> with external methods on the Scripts tab of a DCWork

[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 exp

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

2005-10-24 Thread Florent Guillaume
Jens Vagelpohl wrote: There's an outstanding issue in the collector about workflow scripts that are external methods. Currently, creating a snapshot of a site with external methods on the Scripts tab of a DCWorkflow will just blow up. The real question here is: Do we want to support that at

Re: [Zope-CMF] Re: CMFSetup cookie crumbler setup still broken

2005-09-23 Thread Jens Vagelpohl
On 23 Sep 2005, at 01:29, Tres Seaver wrote: We could '_setId' on the tool with the 'tool_id' attribute after creating it, if the tool does not derive from CMFCore.utils.ImmutableId. That's what I ended up doing. Fixes and a test checked in. jens ___

[Zope-CMF] Re: CMFSetup cookie crumbler setup still broken

2005-09-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: > Just noticed another debilitating problem with the new cookie crumbler > setup driven by CMFSetup in both SVN trunk and the 1.5 branch. > > Symptom: In a new CMFSetup-created site, no one can log in at all. Ever. > > Problem:

[Zope-CMF] Re: CMFSetup

2005-09-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pete wrote: > I've written the tests now, so hopefully mailhost and cookieauth can be > scratched off the list. > > http://www.zope.org/Collectors/CMF/387 > > Is the collector the best place to put this? If not, let me know and I > can post it else

[Zope-CMF] Re: CMFSetup

2005-09-20 Thread pete
Hi I've written the tests now, so hopefully mailhost and cookieauth can be scratched off the list. http://www.zope.org/Collectors/CMF/387 Is the collector the best place to put this? If not, let me know and I can post it elsewhere. pete pete wrote: Hi, In case it's useful, here's the

[Zope-CMF] Re: CMFSetup

2005-09-12 Thread yuppie
Hi Florent! Florent Guillaume wrote: Are you doing further work on the portal_catalog handlers you currently have? I'd be interested in continuing that work, as I want full-CMFSetup configuration to work as soon as possible. Yes. But my code depends on Zope 2.8.1 and I'm currently waiting fo

[Zope-CMF] Re: CMFSetup

2005-09-12 Thread Florent Guillaume
yuppie wrote: I was looking at CMFSetup, and was thinking of writing a handler for one of the tools that isn't covered at the moment, to familiarise myself with how it all works in a useful way. Great! But please be aware of the fact that CMFSetup is still fast changing code. Some things m

[Zope-CMF] Re: CMFSetup vs. factory_type_information

2005-09-11 Thread yuppie
Hi Jens! Jens Vagelpohl wrote: On 11 Sep 2005, at 17:22, yuppie wrote: The Actions thing is another issue that I noticed today. On the trunk, we seem to have "old style" actions on some tools (I specifically looked at the Membership and Memberdata tools because I'm re-doing CMFLDAP) tha

[Zope-CMF] Re: CMFSetup vs. factory_type_information

2005-09-11 Thread Jens Vagelpohl
On 11 Sep 2005, at 17:22, yuppie wrote: Here's some food for thought about a possible code simplification: I was looking at the (annoying) duplication of configuration data between CMFSetup type information XML files and factory_type_information structures stored inside python modules. I

[Zope-CMF] Re: CMFSetup vs. factory_type_information

2005-09-11 Thread yuppie
Hi Jens! Jens Vagelpohl wrote: Here's some food for thought about a possible code simplification: I was looking at the (annoying) duplication of configuration data between CMFSetup type information XML files and factory_type_information structures stored inside python modules. It would b

[Zope-CMF] Re: CMFSetup

2005-09-06 Thread yuppie
Hi! computing project wrote: I've written handlers for the cookie crumbler and for the mailhost - not exactly rocket science but actually very informative as they are pretty simple (well, the simplest!) tools. I started off looking at all the code, and found that I didn't need to look at mos

[Zope-CMF] Re: CMFSetup

2005-09-05 Thread computing project
Hi, Thanks for the feedback - I hadn't looked where you suggested, and I'd been thinking about starting with the catalog, so I managed to avoid two potential pitfalls before starting (very pleasing!). I've written handlers for the cookie crumbler and for the mailhost - not exactly rocket sci

[Zope-CMF] Re: CMFSetup content I/O

2005-09-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: > What the status of people's various projects dealing with I/O of content > using CMFSetup? That's something I'll be working on for CPS in the next > few weeks, and also maybe at the Castle Sprint if there's interest. I have

[Zope-CMF] Re: CMFSetup

2005-09-01 Thread yuppie
Hi Pete! computing project wrote: I was looking at CMFSetup, and was thinking of writing a handler for one of the tools that isn't covered at the moment, to familiarise myself with how it all works in a useful way. Great! But please be aware of the fact that CMFSetup is still fast changing

Re: [Zope-CMF] Re: CMFSetup

2005-09-01 Thread Jens Vagelpohl
On 1 Sep 2005, at 14:18, Florent Guillaume wrote: Please followup here about your progress, we (Nuxeo) should be working on CMFSetup a lot this month too. It might be useful for all those items that are not connected to a collector issue (where you can "accept" it and signal that you are

[Zope-CMF] Re: CMFSetup

2005-09-01 Thread Florent Guillaume
computing project wrote: I was looking at CMFSetup, and was thinking of writing a handler for one of the tools that isn't covered at the moment, to familiarise myself with how it all works in a useful way. Is anyone working on the import/exports that aren't marked as done? Not that I know of

[Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: > Anahide Tchertchian wrote: > >> yuppie wrote: - get rid of DCWorkflow specifics, and use the workflow factory and API methods to import a workflow (no need to import DCWorkflowDefinition, State, Transition classes an

[Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread yuppie
Hi! Anahide Tchertchian wrote: yuppie wrote: - turn import methods in CMFSetup/workflow.py into configurator class methods so that they're easier to override when subclassing (_extract*Nodes and _initDCWorkflow* methods) Sounds fine if you don't want to do the big refactoring. Yes I'd lik

[Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread Anahide Tchertchian
Hi, yuppie wrote: Please note that all other tool handlers use utils.*ConfiguratorBase. I didn't convert workflow.py because it is the biggest handler and it works for me as it is. But it uses deprecated patterns, so if you plan to improve it it might be worth to refactor it using *Configurato

Re: [Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread Florent Guillaume
yuppie <[EMAIL PROTECTED]> wrote: > Anahide Tchertchian wrote: > > I'd like to make 3 main changes to the way CMFSetup handles workflow > > export/import: > > Please note that all other tool handlers use utils.*ConfiguratorBase. I > didn't convert workflow.py because it is the biggest handler an

[Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread yuppie
Encolpe Degoute wrote: That's seems a good idea, but I don"t where worklists will be import in few weeks. That sounds like you're working on a big worklists refactoring. If that's the case, sending a small proposal to the list would be nice. Cheers, Yuppie __

[Zope-CMF] Re: CMFSetup and workflows

2005-07-11 Thread yuppie
Hi Anahide! Anahide Tchertchian wrote: I'd like to make 3 main changes to the way CMFSetup handles workflow export/import: Please note that all other tool handlers use utils.*ConfiguratorBase. I didn't convert workflow.py because it is the biggest handler and it works for me as it is. But i

[Zope-CMF] Re: CMFSetup: non-ascii text

2005-07-01 Thread yuppie
Hi Florent! Florent Guillaume wrote: In many places, CMFSetup exports and imports things like titles and descriptions. For instance, for the workflow states and transitions. These fields can often, outside the USA, contain non-ascii strings. How do we export and reimport them ? It would be

[Zope-CMF] Re: CMFSetup profile changing

2005-06-18 Thread yuppie
Hi Florent! Florent Guillaume wrote: By the way will you (or others) be at EuroPython ? It would be nice to discuss plans for CMFSetup face to face. I'll not make it to Göteborg and I'm not sure who the 'others' interested in CMFSetup development are. But I have many plans for CMFSetup and

Re: [Zope-CMF] Re: CMFSetup profile changing

2005-06-17 Thread Florent Guillaume
By the way will you (or others) be at EuroPython ? It would be nice to discuss plans for CMFSetup face to face. Florent yuppie <[EMAIL PROTECTED]> wrote: > Florent Guillaume wrote: > > In the Properties tab of CMFSetup, you can choose an active site > > configuration, among the snapshots and

[Zope-CMF] Re: CMFSetup profile changing

2005-06-14 Thread yuppie
Hi Florent! Florent Guillaume wrote: In the Properties tab of CMFSetup, you can choose an active site configuration, among the snapshots and the registered profiles. This sets the current context_id for the tool, and loads the import steps, export steps and toolset for that configuration.

[Zope-CMF] Re: CMFSetup types import/export

2005-06-10 Thread yuppie
Florent Guillaume wrote: On 10 Jun 2005, at 17:02, yuppie wrote: utils.ConfiguratorBase has some methods for generic property support. The typeinfo handlers could use that code in a similar way as the site properties handlers or the handlers for the newstyle Actions on HEAD. The propert

[Zope-CMF] Re: CMFSetup types import/export

2005-06-10 Thread Florent Guillaume
Hi Yuppie, On 10 Jun 2005, at 17:02, yuppie wrote: I have to modify CMFSetup's type information import/export (typeinfo.py). Currently, to discriminate on ti types on export, it does: if isinstance( ti, FactoryTypeInformation ): ... elif isinstance( ti, ScriptableT

[Zope-CMF] Re: CMFSetup types import/export

2005-06-10 Thread yuppie
Hi Florent! Florent Guillaume wrote: I have to modify CMFSetup's type information import/export (typeinfo.py). Currently, to discriminate on ti types on export, it does: if isinstance( ti, FactoryTypeInformation ): ... elif isinstance( ti, ScriptableTypeInformatio

[Zope-CMF] Re: CMFSetup profile extensions dependencies

2005-04-07 Thread yuppie
Hi Florent! Florent Guillaume wrote: I'd like to discuss possible improvements to have profile extensions check some dependencies. This will require a way to express dependencies, which in the general case can be extremely complex -- but we probably don't need that. [...] Just some general thoug

[Zope-CMF] Re: CMFSetup comments

2005-04-05 Thread yuppie
yuppie wrote: To get rid of the intermediate [0], use 'properties': {KEY: 'props', CONVERTER: self._convertToUnique}, 'entry-local-roles': {KEY: 'elrs', DEFAULT: ((),), CONVERTER: self._convertToUnique}, C

[Zope-CMF] Re: CMFSetup configurators

2005-04-04 Thread yuppie
Florent Guillaume wrote: CMFSetup.utils.ConfiguratorBase seems to be used as a single base class for both import configurators and export configurators. But it seems to me that the methods are either for import or for export, never both. I'd like to split it in two classes. There are only config

[Zope-CMF] Re: CMFSetup comments

2005-04-04 Thread sureshvv
Florent Guillaume wrote: Yes, I think I'll be doing some cleanups in it if you don't object. And probably apply http://www.artima.com/weblogs/viewpost.jsp?thread=101968 to the code in general... I really have a problem with Tres's style ;) What bothers me a little bit is the date on the article

[Zope-CMF] Re: CMFSetup comments

2005-04-03 Thread yuppie
Hi Florent! Florent Guillaume wrote: On 3 Apr 2005, at 17:27, yuppie wrote: Florent Guillaume wrote: - all in all it's quite nice, Well. It works for some use cases, but there is yet a lot to be done. Though its maturity is still alpha, it already contains a lot of cruft. Yes, I think I'll be do

[Zope-CMF] Re: CMFSetup comments

2005-04-03 Thread Florent Guillaume
On 3 Apr 2005, at 17:27, yuppie wrote: Hi Florent! Florent Guillaume wrote: - all in all it's quite nice, Well. It works for some use cases, but there is yet a lot to be done. Though its maturity is still alpha, it already contains a lot of cruft. Yes, I think I'll be doing some cleanups in it if

[Zope-CMF] Re: CMFSetup comments

2005-04-03 Thread yuppie
Hi Florent! Florent Guillaume wrote: - all in all it's quite nice, Well. It works for some use cases, but there is yet a lot to be done. Though its maturity is still alpha, it already contains a lot of cruft. - writing the code for the import handler is really painful, I wish we could use an API