From schneida@seiu.org Sat Jul 7 14:20:14 2001 From: schneida@seiu.org (Anders Schneiderman) Date: Sat, 07 Jul 2001 09:20:14 -0400 Subject: [Zope-CMF] Problems generating list of files/folders In-Reply-To: References: <5.1.0.14.1.20010606121740.009fd6c0@larry.seiu.org> Message-ID: <5.1.0.14.1.20010707091455.00a0ad80@larry.seiu.org> At 02:53 PM 6/6/01 -0400, you wrote: >Hello Anders, > Is it as simple as the 'typo' in your email. >You call and the method is called liststuff. >I hope it is that simple... Alas, no. I'd caught that, but it still doesn't work. Here's the full listing of index_html in my portal skin: --------------------------

Welcome to &dtml-title;

Overview
Here's another try:

-------------------------- As you can see, I even put the liststuff code inside index_html, and it still doesn't work. The end result is the following screen: -------------------------- Overview To view a folder, click on its name below: Here's another try: -------------------------- Any suggestions of what to try next? Thanks, Anders >-Jack > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Anders Schneiderman > > Sent: Wednesday, June 06, 2001 12:30 PM > > To: zope-cmf@zope.org > > Subject: [Zope-CMF] Problems generating list of files/folders > > > > > > I've just started playing w/ CMF, and I've run into an odd > > problem. I want > > to change the index_htm method so it automatically lists the files, > > documents, and folders in the folder that calls it. So far, I > > can't get it > > to work. > > > > I created a skin called "seiu" and put a copy of index_html into it via > > customization (and yes, it's still a DTML Method, not a > > document). In the > > same skin folder, I created a DTML Method called "liststuff", which looks > > like this: > > ------------------------------------------ > > DTML Method at /intranet/portal_skins/seiu/liststuff : > > > > To view a folder, click on its name below: > > > >
    > > > >

  • > > > >
> > ---------------------------------------- > > To call it I added the following code to index_html in the seiu skin: > > > >
> >
Overview
> >
> >
> > > > If I go to, say, http://localhost:8080/intranet/organizing/, I > > don't get a > > list. However, if I call the method directly -- > > http://localhost:8080/intranet/organizing/liststuff/ -- then it > > works just > > fine (w/o, of course, the standard headers). What am I doing wrong? > > > > Thanks, > > Anders Schneiderman > > Information Manager > > SEIU International > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > From robert@redcor.ch Sun Jul 1 08:20:30 2001 From: robert@redcor.ch (Robert Rottermann) Date: Sun, 1 Jul 2001 09:20:30 +0200 Subject: [Zope-CMF] how to override raise ??? Message-ID: <002501c101fe$4f252580$1ba4023e@karin> Hi there, CMF used tons of raise statement to signal conditions to the user. Unfortunately this makes it impossible to translate them to non english without altering the CMF code. Is there a way to override the behaviour of raise so I get a chance to translate any message it might throw at me? Thank you Robert (I know this is not really a CMF question!) From palomar@sg.uji.es Sun Jul 1 09:45:02 2001 From: palomar@sg.uji.es (Juan David Ibáñez Palomar) Date: Sun, 1 Jul 2001 10:45:02 +0200 (METDST) Subject: [Zope-CMF] How to translate CMF, first summary In-Reply-To: <004501c10164$35974cf0$1ba4023e@karin> from "Robert Rottermann" at Jun 30, 2001 02:57:24 PM Message-ID: <20010701084502.D3016891@nuvol.uji.es> > > There were also some statements regarding the advantage of translating > sentences versus translating screens. The main argument was that translating > sentences helps to avoid translating the same sentence more than once. > My points against this reasoning (stemming from my experience with preparing > the translation of many non Zope programs) is that not so many sentences are > repeated. > No, in my opinion the main advantage of sentence by sentence translation is that the logic/presentation and the translations are separated. This has two benefits: the programmer writes the code, the designer builds the user interfaces and the translator translates; all of them use familiar tools, the translator could use the same tools to translate for example a GNOME application or a Zope product (if Zope supported the same de facto standard of course) and don't needs to know anything about the technology (DTML, ZPT, Python, ...). The other advantage is that the update of the translation to a new version of the software is easier since usually most of the senteces remain unchanged. Some time ago there was an important effort to translate Zope using zzLocale, a product that follows the approach to translate screens. It was Zope 2.2, but then Zope 2.3 was released which made important changes in the web interfaces, and the work was lost. Sentence by sentence translation should be used in the web interfaces and in the messages returned by Python code. But other parts, for example the on-line help system, should use a different approach, one file per language. Best regards, jdavid From norman@khine.net Sun Jul 1 11:01:02 2001 From: norman@khine.net (Norman Khine) Date: Sun, 1 Jul 2001 11:01:02 +0100 Subject: [Zope-CMF] Actions when viewing an object Message-ID: Hello, Is there a way that one can create his/her own actions. For example in the news box, we have: can I for example add a subject_type criteria. So that I want to be able to list News Items with a specific subject type. Many thanks Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From openspacemovement@yahoo.com Sun Jul 1 18:17:15 2001 From: openspacemovement@yahoo.com (Darin Arrick) Date: Sun, 1 Jul 2001 10:17:15 -0700 (PDT) Subject: [Zope-CMF] Using CMF for a project-centric site? Message-ID: <20010701171715.4494.qmail@web14806.mail.yahoo.com> I'm not new to computers, web development, or programming, but I am fairly new to both Zope and Python (about 2 months of experience in each), so: I am trying to create a site with Zope that has similar functionality to www.sourceforge.net . Basically, a project-centric site where users can log in, create a project (which makes them the admin, and they can add more admins if needed), take part in projects by contributing content, download content from projects, etc. Also, anonymous users can download project content (unless marked somehow "no anonymous downloads"). This will be a subsection of a currently running Zope-based site (i.e. domain.com/projects ). CMF is user-centric; what I want is project-centric. Could CMF be tweaked to turn user IDs into project names? This has been suggested to my by various Zope and CMF users, so I thought I'd ask here. Is there another way to go about this? Is there a product or some other set of products that, combined, could offer this functionality? CMF seems really close, but needs some changes to work like I want. Any help (or offers of assistance! We're a non- profit group....) is greatly appreciated. Thanks! Darin Arrick openspacemovement@yahoo.com http://www.openspacemovement.org darrick on irc.openprojects.net #openspace __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From marc@bowery.com Sun Jul 1 18:59:58 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 01 Jul 2001 13:59:58 -0400 Subject: [Zope-CMF] Using CMF for a project-centric site? In-Reply-To: <20010701171715.4494.qmail@web14806.mail.yahoo.com> Message-ID: > From: Darin Arrick > > CMF is user-centric; what I want is project-centric. > Could CMF be tweaked to turn user IDs into project > names? This has been suggested to my by various Zope > and CMF users, so I thought I'd ask here. Is there > another way to go about this? You'd still want users, just like sourceforge, right? So you want to keep the user-centricity, but add some project-centricity... there are some basic tools there to support this, workflow, permissions, CMFTracker, Blark, but you'll have some programming to do... From dieter@handshake.de Sun Jul 1 22:14:18 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Jul 2001 23:14:18 +0200 (CEST) Subject: [Zope-CMF] menu In-Reply-To: <3B3DB0F1.7570D880@snafu.de> References: <3B3DB0F1.7570D880@snafu.de> Message-ID: <15167.37546.95763.202264@lindm.dm> Christoph Schirmer writes: > I would like to integrate a simple navigation menu to the index file; > Zope Book and other literature have plenty of methods examples for this. > However, all of these do not work when integrated to the index method > file. E.g. I have the method sitemap that looks like this: > > This works only for DTML Methods. For unknown reasons, many Zope object classes define an "objectValues" that simply returns "()" (which is not very intelligent). Apparently, you met such an object. You may try: Dieter From dieter@handshake.de Sun Jul 1 22:20:05 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Jul 2001 23:20:05 +0200 (CEST) Subject: [Zope-CMF] how to override raise ??? In-Reply-To: <002501c101fe$4f252580$1ba4023e@karin> References: <002501c101fe$4f252580$1ba4023e@karin> Message-ID: <15167.37893.471961.243468@lindm.dm> Robert Rottermann writes: > CMF used tons of raise statement to signal conditions to the user. > Unfortunately this makes it impossible to translate them to non english > without altering the CMF code. > > Is there a way to override the behaviour of raise so I get a chance to > translate any message it might throw at me? As far as I know, you can not override "raise". If the CMF uses class exceptions (rather than string exceptions), then you can override the exception classes (--> HotFix product). Otherwise, you may have the chance to catch the exceptions at a high level (-> ZPublisher.HTTPResponse) and translate them there. This will not work, if the application catches exceptions locally and provide its own handling. Dieter From robert@redcor.ch Sun Jul 1 23:23:25 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 2 Jul 2001 00:23:25 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010701084502.D3016891@nuvol.uji.es> Message-ID: <001301c1027c$7218e940$1ba4023e@karin> Juan, I agree with you that each "profession" the designer the programmer and the translator has to be able to work independently of the rest of the bunch. This is easy where the visual appearance of the output is of low importance and only the message put forward to the user counts. Such is the case where a message is risen to indicate an error condition or where we use one word menu entries. But as soon text to display and html code is intermingled things become tricky. The following sentence has to be rearranged when translated to German:

This item is in &dtml-review_state; state.

becomes:

Der Status des Elementes ist : &dtml-review_state;

This only works when I translate Text and html code together. I can not separate the two. This is what I call to translate screen wise.(not all situations are that straightforward the code might be some paragraphs long) (is tere an other way to do it ??) With former translations I was involved with we applied two different strategies to the solution of this problem. The first one was to tag all text that was eventually displayed to the user, and batch translated it. This we used where dynamic translation was not possible. The other one was to wrap the text in a function call and translate it at run time. This of course is "sentence wise translating". However, the situation was different in that we did not translate HTML-code but C++ and VB where any formatting is separated from the text. And more importantly: It was VERY! hard for the translator to do his job when he got a couple of thousand pieces of text of which he did not know the context. You must know the context to translate. So we are back to translate screen wise. The only translating support I can imagine is wrapping "candidates to translate" into function that render the text translated. (I do not yet grasp the workings of your approach (building on pythons gettext facility) but I understand it also wrapps sentences in function calls.) So the question is who does such wrapping and more importantly will it pay off. Will DC do it? We know their enthusiasm towards such maters. It does not exist. This is understandable for two reasons. First with making Zope easy translatable DC does not gain anything with their customers. And secondly DC is an American company. I believe Americans just have a poor approach towards such matter. I do not mean that in any way cynical it is just a question of why should they. Understandably American companies only start to worry about translation when a significant part of their business comes from non English speaking countries. And since DC does not ... Second question: Is it worthwhile to have everything the user eventually sees wrapped in function calls. My opinion is no! I do not mean we should not have any help by DC. However it is enough to wrap DTML-calls that render a text to display in a function call that translates them. So instead of . Furthermore all raise statements that render a displayable text should also be wrapped in such a function. There are a couple of more things to do but for CMF it would sum up to work for about a day. Which I believe they would invest happily. What would we gain? To translate CMF did cost us only a few days. This includes translating all dtml-files and writing functions to translate the action box entries and similar things.(I will still find some things that are not yet perfect.) A significant part of the time went into hunting for things we missed or misinterpreted. The actual translating was less than a day. I believe that with that little help from our DC friends I can reduce the time needed to do an adaptation of CMF 1.1 to CMF 1.2 within less than a day. This might not include new things. But no matter what translating facility I have I need to do the first translation anyhow. The time needed I mentioned above does not include testing. However this task amounts to about the same what method we might use. Conclusion: We need to persuade DC to add translation hooks as I mentioned, and do the dtml translation by hand. Robert ----- Original Message ----- From: "Juan David Ibáñez Palomar" To: Sent: Sunday, July 01, 2001 10:45 AM Subject: Re: [Zope-CMF] How to translate CMF, first summary > > > > There were also some statements regarding the advantage of translating > > sentences versus translating screens. The main argument was that translating > > sentences helps to avoid translating the same sentence more than once. > > My points against this reasoning (stemming from my experience with preparing > > the translation of many non Zope programs) is that not so many sentences are > > repeated. > > > > No, in my opinion the main advantage of sentence by sentence translation > is that the logic/presentation and the translations are separated. This > has two benefits: the programmer writes the code, the designer builds > the user interfaces and the translator translates; all of them use familiar > tools, the translator could use the same tools to translate for example > a GNOME application or a Zope product (if Zope supported the same de facto > standard of course) and don't needs to know anything about the technology > (DTML, ZPT, Python, ...). > > The other advantage is that the update of the translation to a new > version of the software is easier since usually most of the senteces > remain unchanged. > > Some time ago there was an important effort to translate Zope using > zzLocale, a product that follows the approach to translate screens. > It was Zope 2.2, but then Zope 2.3 was released which made important > changes in the web interfaces, and the work was lost. > > Sentence by sentence translation should be used in the web interfaces > and in the messages returned by Python code. > > But other parts, for example the on-line help system, should use a > different approach, one file per language. > > > Best regards, > jdavid > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From openspacemovement@yahoo.com Mon Jul 2 03:21:59 2001 From: openspacemovement@yahoo.com (Darin Arrick) Date: Sun, 1 Jul 2001 19:21:59 -0700 (PDT) Subject: [Zope-CMF] Re: Using CMF for a project-centric site? Message-ID: <20010702022159.37796.qmail@web14805.mail.yahoo.com> >> marc lindahl marc@bowery.com >> CMF is user-centric; what I want is >> project-centric. Could CMF be tweaked to turn >> user IDs into project names? This has been >> suggested to my by various Zope and CMF users, so >> I thought I'd ask here. Is there another way to >> go about this? > > You'd still want users, just like sourceforge, > right? Yes. But I thought I'd handle users with some other product, being that the site isn't just this projects part, but a Squishdot site, some discussion forums, and some other stuff. Wouldn't I want to use some sort of "generic user product"? > So you want to keep the user-centricity, but add > some project-centricity... Um, see above. :-) > there are some basic tools > there to support this, workflow, permissions, > CMFTracker, Blark, but you'll have some > programming to do... Well, I'm not against it. But, what sort of scale are we talking? 2 days of work? 2 weeks of work? 2 months of work? At some point, it isn't worth it. I know Zope can do these things, but I have NO IDEA how to go about implementing it yet. Thanks for the help. I'm still learning. Zope is really great, but I unfortunately can't spend more than a few hours a week messing with it. Hence my hope for a "simple" solution. I wish I could find a Zope expert who wants to donate some time and effort to the cause of private space exploration. If only those people would e-mail me, I could get some one-on-one help... :-) Darin Arrick openspacemovement@yahoo.com http://www.openspacemovement.org __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From kthangavelu@earthlink.net Sun Jul 1 23:24:51 2001 From: kthangavelu@earthlink.net (ender) Date: Sun, 1 Jul 2001 15:24:51 -0700 Subject: [Zope-CMF] Re: Getting into ZOMA In-Reply-To: References: Message-ID: <01070115245107.26979@linux> On Friday 29 June 2001 09:02, Ken Manheimer wrote: >> >>It's broken, as far as i know only the search and visiting individual >>messages works. (Visiting individual archive folders used to work, but >>i've been updating the software home out from under the instance.) It >>should not be hard to fix, i've made the code available at: >> >> http://cmf.zope.org/Members/klm/ZOMA >> >>so anyone who's interested can implement their own. We won't be fixing it >>(and the site is going to have to go down, in not too long...) i'd like to take a look but i get authentication errors on MaillistArchive.tar and pop.py when logged in. i'm curious about the stress testing results and setup. setup - what was the total size in mbs of a 130K messages around? results - to what extent was performance impacted? thanks kapil From seb@jamkit.com Mon Jul 2 09:38:52 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 2 Jul 2001 09:38:52 +0100 Subject: [Zope-CMF] Using CMF for a project-centric site? In-Reply-To: <20010701171715.4494.qmail@web14806.mail.yahoo.com>; from openspacemovement@yahoo.com on Sun, Jul 01, 2001 at 10:17:15AM -0700 References: <20010701171715.4494.qmail@web14806.mail.yahoo.com> Message-ID: <20010702093849.A16563@lenin.jamkit.com> Darin, (This is really a reply to your most recent mail, which I lost :S) If you're not familiar with the CMF, you can expect a large project such as a sourceforge-alike to take anywhere between 2 and 6 weeks of work (depending on your Zope/python skills). In fact, the CMF is ideally suited to the kind of scenario you describe; however, if you're new to it, it's not always clear how things work or how to do things. I hate to say it, but have you thought of trying sourceforge itself? http://sourceforge.net/projects/alexandria/ if you know how to set up apache / php / mysql (I know redhat installs them out of the box), then setting up a sourceforge will take you about 30 minutes. Having said that, if you *do* have perhaps 4 weeks to spare, I'm sure you'll find you get lots of help from the list. You'll also enjoy working with the CMF, and your project could be very useful to others. So if you think you've got the time, I'd urge you to go for it. I'm sorry I haven't got the time to help more right now - your project is very cool. Good luck :) seb * Darin Arrick [010701 18:21]: > > I'm not new to computers, web development, or > programming, but I am fairly new to both Zope and > Python (about 2 months of experience in each), so: > > I am trying to create a site with Zope that has > similar functionality to www.sourceforge.net . > Basically, a project-centric site where users can log > in, create a project (which makes them the admin, and > they can add more admins if needed), take part in > projects by contributing content, download content > from > projects, etc. Also, anonymous users can download > project content (unless marked somehow "no anonymous > downloads"). This will be a subsection of a currently > running Zope-based site (i.e. domain.com/projects ). > > CMF is user-centric; what I want is project-centric. > Could CMF be tweaked to turn user IDs into project > names? This has been suggested to my by various Zope > and CMF users, so I thought I'd ask here. Is there > another way to go about this? Is there a product or > some other set of products that, combined, could > offer this functionality? CMF seems really close, but > needs some changes to work like I want. > > Any help (or offers of assistance! We're a non- > profit group....) is greatly appreciated. > > Thanks! > > Darin Arrick > openspacemovement@yahoo.com > http://www.openspacemovement.org > darrick on irc.openprojects.net #openspace > > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From robert@redcor.ch Mon Jul 2 09:08:31 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 2 Jul 2001 10:08:31 +0200 Subject: [Zope-CMF] adding reviewer roles References: <200106292224.f5TMOcY04332@kodama.stanford.edu> Message-ID: <002701c102ce$3831c970$0a01a8c0@stravinsky> Hi Joe (one of my favorites. Specially the on played by roy buchanan. But wait, there is a spelling error ...) With cmf 1.1 you have to switch on the creation of user folders on. This is done with the portal_membership tool -> Configuration-> turn folder creation on. Robert ----- Original Message ----- From: "Joe Little" To: Sent: Saturday, June 30, 2001 12:24 AM Subject: [Zope-CMF] adding reviewer roles > > > > I've scoured the archive and docs, but there seems to be no information > > published on how to actually publish items. There is mention of a > > reviewer role, but even after creating a user within the CMF, there is > > no user in its acl_users folder. I can't seem to find the role > > "reviewer" anywhere, so I can only get "private" or "pending" documents. > > > > Is there any site building tutorial in the works with CMF? I've been > > piecing stuff together from all over the place. > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From jon@pcgs.freeserve.co.uk Mon Jul 2 09:28:57 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 2 Jul 2001 09:28:57 +0100 Subject: [Zope-CMF] Nice Javascript Message-ID: Spotted a nice javascript over the weekend that could be handy for people building UI forms on top of CMF - http://webdeveloper.earthweb.com/pagedev/webjs/item/0,3602,12744_51021,00.ht ml - click "Run the code" to try it "Allows users to open a new window, choose and remove options from a select box, then send the data back to the parent window." - freeware Dunno how I'm going to use it yet, but I'm sure it will come in handy for the Stylesheet Editor stuff! All suggestions/comments welcome! :-) HTH Cheers, Jon BTW if anyone else has spotted any useful (freeware/open) Javascripts, maybe they could post links, and we could build up a little list, to save people looking for GUI ideas having to search the web every time? From chrisw@nipltd.com Sun Jul 1 15:00:31 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 01 Jul 2001 15:00:31 +0100 Subject: [Zope-CMF] how to override raise ??? References: <002501c101fe$4f252580$1ba4023e@karin> Message-ID: <3B3F2CFF.351031D@nipltd.com> Robert Rottermann wrote: > > Is there a way to override the behaviour of raise so I get a chance to > translate any message it might throw at me? What you need is a really high-up try-except that's hookable :-S try: ...all of zope... except: ...translate here... raise cheers, Chris From palomar@sg.uji.es Mon Jul 2 09:33:28 2001 From: palomar@sg.uji.es (Juan David Ibáñez Palomar) Date: Mon, 2 Jul 2001 10:33:28 +0200 (METDST) Subject: [Zope-CMF] How to translate CMF, first summary In-Reply-To: <001301c1027c$7218e940$1ba4023e@karin> from "Robert Rottermann" at Jul 02, 2001 12:23:25 AM Message-ID: <20010702083328.DCE0C86F@nuvol.uji.es> Hi Robert, > > The following sentence has to be rearranged when translated to German: > >

This item is in &dtml-review_state; state.

> becomes: >

Der Status des Elementes ist : &dtml-review_state;

> > This only works when I translate Text and html code together. I can not > separate the two. > This is what I call to translate screen wise.(not all situations are that > straightforward the code might be some paragraphs long) > (is tere an other way to do it ??) > The same way:

%s state.') % review_state">

The german .po file would look: msgid "This item is in %s state." msgstr "Der Status des Elementes ist : %s" Obviously you can put the out:

%s' % review_state)">

[...] > You must know the context to translate. So we are back to translate screen > wise. > Being aware of the problem you'll try to write sentences as least ambiguous as possible so only a few of them will really have different translations. And there're workarounds for that, such as using ids for sentences and provide also the english "translation". We're not inventing anything new here, these are the same problems lot of people has faced for years. [...] > > Will DC do it? > We know their enthusiasm towards such maters. It does not exist. > This is understandable for two reasons. First with making Zope easy > translatable DC does not gain anything with their customers. And secondly DC > is an American company. I believe Americans just have a poor approach > towards such matter. I do not mean that in any way cynical it is just a > question of why should they. Understandably American companies only start to > worry about translation when a significant part of their business comes from > non English speaking countries. And since DC does not ... > Well, this a question for DC, but I think they're very interested in i18n support as the SALO project, currently on hold, shows: http://dev.zope.org/Wikis/DevSite/Projects/SkinnableAndLocalizableObjects I expect more movement on this once Zope 2.4 is released, which includes Python 2.1, which has two important new features: unicode support and the gettext module. [...] > > Conclusion: > We need to persuade DC to add translation hooks as I mentioned, and do the > dtml translation by hand. > I understand there's lot of people that needs i18n *now*, so a quick solution could and should be implemented. And it would be great if the CMF developers looked at the Localizer product and internationalized the CMF using it :) Seriously, I don't oppose to the CMF developers implementing your solution, but hope Zope will use gettext to provide i18n support in the future. Cheers, jdavid From seb@jamkit.com Mon Jul 2 10:49:08 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 2 Jul 2001 10:49:08 +0100 Subject: [Zope-CMF] Nice Javascript In-Reply-To: ; from jon@pcgs.freeserve.co.uk on Mon, Jul 02, 2001 at 09:28:57AM +0100 References: Message-ID: <20010702104908.D16563@lenin.jamkit.com> Just a quick point - lots of people dislike javascript, even though it's often very useful, because of browser incompatabilities and accessibility issues (try navigating round a site which uses pop ups if you're using a screen reader). So I'd be really happy if any cool new stylesheet enhancements always had a non-javascript skin. Kind of obvious but worth pointing out, because I know there's quite a few fellow js fascists lurking around. Having said that, I think any UI improvements for js moderates are an excellent thing (especially your editing widget), so keep up the good work :-) seb * Jon Edwards [010702 09:32]: > Spotted a nice javascript over the weekend that could be handy for people > building UI forms on top of CMF - > > http://webdeveloper.earthweb.com/pagedev/webjs/item/0,3602,12744_51021,00.ht > ml - click "Run the code" to try it > > "Allows users to open a new window, choose and remove options from a select > box, then send the data back to the parent window." - freeware > > Dunno how I'm going to use it yet, but I'm sure it will come in handy for > the Stylesheet Editor stuff! All suggestions/comments welcome! :-) > > HTH > > Cheers, Jon > > BTW if anyone else has spotted any useful (freeware/open) Javascripts, maybe > they could post links, and we could build up a little list, to save people > looking for GUI ideas having to search the web every time? > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From rpijlman@wanadoo.nl Mon Jul 2 10:45:27 2001 From: rpijlman@wanadoo.nl (Rene Pijlman) Date: Mon, 2 Jul 2001 11:45:27 +0200 Subject: [Zope-CMF] CMFizing product? Message-ID: I'm about to develop a Python-based product which introduces new content types and I'm wondering if I should make it pure Zope or CMFized. Is there any documentation on developing CMFized products? What are the minimal requirements to integrate with CMF? Any good examples? Also, what are the relative merits of implementing my content type as a CMF-type (using the type tool?) vs. a ZClass or Python class? TIA, René Pijlman From phil.harris@zope.co.uk Mon Jul 2 10:43:57 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Mon, 2 Jul 2001 10:43:57 +0100 Subject: [Zope-CMF] sort of OT- Nice Javascript References: <20010702104908.D16563@lenin.jamkit.com> Message-ID: <005301c102db$96319610$0102a8c0@typhoon> Jon, If you want to see some nice JavaScript, take a look at WebMin (http://www.webmin.com). The interface is not too great, functional at best, but it does some clever stuff with filling lists in separate windows etc. V. Clever. Phil ----- Original Message ----- From: "seb bacon" To: "Jon Edwards" Cc: "Zope-Cmf" Sent: Monday, July 02, 2001 10:49 AM Subject: Re: [Zope-CMF] Nice Javascript > Just a quick point - lots of people dislike javascript, even though > it's often very useful, because of browser incompatabilities and > accessibility issues (try navigating round a site which uses pop ups > if you're using a screen reader). So I'd be really happy if any cool > new stylesheet enhancements always had a non-javascript skin. Kind of > obvious but worth pointing out, because I know there's quite a few > fellow js fascists lurking around. Having said that, I think any UI > improvements for js moderates are an excellent thing (especially your > editing widget), so keep up the good work :-) > > seb > > * Jon Edwards [010702 09:32]: > > Spotted a nice javascript over the weekend that could be handy for people > > building UI forms on top of CMF - > > > > http://webdeveloper.earthweb.com/pagedev/webjs/item/0,3602,12744_51021,00.ht > > ml - click "Run the code" to try it > > > > "Allows users to open a new window, choose and remove options from a select > > box, then send the data back to the parent window." - freeware > > > > Dunno how I'm going to use it yet, but I'm sure it will come in handy for > > the Stylesheet Editor stuff! All suggestions/comments welcome! :-) > > > > HTH > > > > Cheers, Jon > > > > BTW if anyone else has spotted any useful (freeware/open) Javascripts, maybe > > they could post links, and we could build up a little list, to save people > > looking for GUI ideas having to search the web every time? > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > -- > > [] j a m k i t > > seb bacon > T: 020 7749 7218 > F: 020 7739 8683 > M: 07968 301 336 > W: www.jamkit.com > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From jon@pcgs.freeserve.co.uk Mon Jul 2 11:25:54 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 2 Jul 2001 11:25:54 +0100 Subject: [Zope-CMF] sort of OT- Nice Javascript In-Reply-To: <005301c102db$96319610$0102a8c0@typhoon> Message-ID: Thanks Phil! I think your point is very valid Seb! My thinking is that javascript-goodies should fit in with the "CMF Philosophy" of directly-replaceable tools (or whatever the proper tech term is for that!). i.e in the same way that a new workflow-tool can be slotted in to directly replace default-workflow, a javascript-goody can be slotted in to replace an existing edit-form. For example, if we put together a set of UI scripts for editing/creating stylesheets, they should have a facility to save the result as default_stylesheet if desired? That way, people putting together a CMF-based system can pick-and-choose editing tools, in the same way they can pick-and-choose portal-tools. I'm not sure I explained that very well, is that the same point you were making Seb? :-) Cheers, Jon > -----Original Message----- > From: Phil Harris [mailto:phil.harris@zope.co.uk] > If you want to see some nice JavaScript, take a look at WebMin > (http://www.webmin.com). > > ----- Original Message ----- > From: "seb bacon" > > Just a quick point - lots of people dislike javascript, even though > > it's often very useful, because of browser incompatabilities and > > accessibility issues (try navigating round a site which uses pop ups > > if you're using a screen reader). So I'd be really happy if any cool > > new stylesheet enhancements always had a non-javascript skin. From khine@btinternet.com Mon Jul 2 12:11:43 2001 From: khine@btinternet.com (Norman Khine) Date: Mon, 2 Jul 2001 12:11:43 +0100 Subject: [Zope-CMF] Topics Help Message-ID: Hello, Can someone please, show me how to display the topics objects on the index page for the cmf. similarly like the current cmf.zope.org site. I am having great difficulties in understanding the structure, so far my understanding is that -- topics can be added by authorised users. these topics should be placed in the root folder of the user. how do you associate a document type to a topic, I can see you can set these perhaps in the criteria, is this correct? how do you call a topics object? Many thanks Norman From chrisw@nipltd.com Mon Jul 2 12:15:29 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Jul 2001 12:15:29 +0100 Subject: [Zope-CMF] Topics Help References: Message-ID: <3B4057D1.36789D21@nipltd.com> Norman Khine wrote: > > Hello, > Can someone please, show me how to display the topics objects on the index > page for the cmf. similarly like the current cmf.zope.org site. A topic is a canned ZCatalog query... Chris From jon@pcgs.freeserve.co.uk Mon Jul 2 12:46:07 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 2 Jul 2001 12:46:07 +0100 Subject: [Zope-CMF] Using CMF for a project-centric site? Message-ID: Hi Darrin, (All comments below are, of course, IMHO!) I think the short answer to your question is... Depends how soon you need a solution! :-) If you want Souceforge functionality urgently, I'd go for Seb's suggestion of using the sourceforge code. On the other hand, if it's not urgent, you'll probably benefit from greater integration with the rest of your site if you look at a CMF-based option. I seem to remember a couple of people have asked similar questions, but can't find the posts at the moment. A search through the archives - http://zope.nipltd.com/public/lists/ptk-archive.nsf/$$Search?OpenForm - might reveal some potential collaborators? You can see the CMF Tracker that Marc mentioned here - http://www.zope.org/Products/PTK/Tracker - I thought you could download it as a product, but I can't find any links, so I may be wrong? I'd agree with other replies that have recommended keeping the user-centricity of CMF. Have a look at some of the workgroup-related discussions - http://lists.zope.org/pipermail/zope-cmf/2001-June/007537.html http://lists.zope.org/pipermail/zope-cmf/2001-June/007578.html http://lists.zope.org/pipermail/zope-cmf/2001-June/007577.html - a "workgroup" isn't a million miles away from a "project"! I think there's a lot of people (me included) who are looking at this kind of functionality, so you may get more help/support if you follow this route? You could use the Workgroup ideas as your foundation, then add more sourceforge-like facilities as optional-extras. We're looking at workgroups/project-groups for intranets and to help large organisations collaborate around websites, so if you take this route, I'd be interested in collaborating. (We're producing open-source stuff for the healthcare/medical sector, so ours is in a good cause too ;-) HTH Cheers, Jon From seb@jamkit.com Mon Jul 2 13:23:05 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 2 Jul 2001 13:23:05 +0100 Subject: [Zope-CMF] Topics Help In-Reply-To: ; from khine@btinternet.com on Mon, Jul 02, 2001 at 12:11:43PM +0100 References: Message-ID: <20010702132304.E16563@lenin.jamkit.com> * Norman Khine [010702 12:11]: > Hello, > Can someone please, show me how to display the topics objects on the index > page for the cmf. similarly like the current cmf.zope.org site. > > I am having great difficulties in understanding the structure, so far my > understanding is that -- > > topics can be added by authorised users. > these topics should be placed in the root folder of the user. yes > > how do you associate a document type to a topic, I can see you can set these > perhaps in the criteria, is this correct? i think so (don't have a cmf w/ topics in front of me) > how do you call a topics object? from a url, like: http://www.yousite.com/portal/topic and the 'view' action is called automatically. The method for this action is in CMFTopic/skins/topic/topic_view.dtml. If you want to add topics to the site 'home page', you need to add code based on topic_view to index_html. As Chris says, it's just a normal Catalog query. seb From robert@redcor.ch Mon Jul 2 13:02:30 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 2 Jul 2001 14:02:30 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010702083328.DCE0C86F@nuvol.uji.es> Message-ID: <006b01c102ee$e9962dd0$0a01a8c0@stravinsky> Juan, I know that the solution I propose is anything but perfect. However it is easy enough to be executed imeatetly, and good enough to merit to be executed. "Your" approach is far better, but needs more work from the CMF core team as we can expect them to be willing to provide. I was looking for a 20/80% solution. 20% of the effort and 20% of the effect. Robert PS I will look mor closely into your solution. However I need a German CMF running by the end of the month. And it must be translated to french by the end of August (or I dont get my bills payed) ----- Original Message ----- From: "Juan David Ibáñez Palomar" To: "Robert Rottermann" Cc: Sent: Monday, July 02, 2001 10:33 AM Subject: Re: [Zope-CMF] How to translate CMF, first summary > > > Hi Robert, > > > > > The following sentence has to be rearranged when translated to German: > > > >

This item is in &dtml-review_state; state.

> > becomes: > >

Der Status des Elementes ist : &dtml-review_state;

> > > > This only works when I translate Text and html code together. I can not > > separate the two. > > This is what I call to translate screen wise.(not all situations are that > > straightforward the code might be some paragraphs long) > > (is tere an other way to do it ??) > > > > The same way: > >

%s state.') % review_state">

> > The german .po file would look: > > msgid "This item is in %s state." > msgstr "Der Status des Elementes ist : %s" > > Obviously you can put the out: > >

%s' % review_state)">

> > > [...] > > You must know the context to translate. So we are back to translate screen > > wise. > > > > Being aware of the problem you'll try to write sentences as least > ambiguous as possible so only a few of them will really have different > translations. And there're workarounds for that, such as using ids for > sentences and provide also the english "translation". > > We're not inventing anything new here, these are the same problems lot of > people has faced for years. > > > [...] > > > > Will DC do it? > > We know their enthusiasm towards such maters. It does not exist. > > This is understandable for two reasons. First with making Zope easy > > translatable DC does not gain anything with their customers. And secondly DC > > is an American company. I believe Americans just have a poor approach > > towards such matter. I do not mean that in any way cynical it is just a > > question of why should they. Understandably American companies only start to > > worry about translation when a significant part of their business comes from > > non English speaking countries. And since DC does not ... > > > > Well, this a question for DC, but I think they're very interested in > i18n support as the SALO project, currently on hold, shows: > > http://dev.zope.org/Wikis/DevSite/Projects/SkinnableAndLocalizableObjects > > I expect more movement on this once Zope 2.4 is released, which includes > Python 2.1, which has two important new features: unicode support and the > gettext module. > > > [...] > > > > Conclusion: > > We need to persuade DC to add translation hooks as I mentioned, and do the > > dtml translation by hand. > > > > I understand there's lot of people that needs i18n *now*, so a quick > solution could and should be implemented. > > > And it would be great if the CMF developers looked at the Localizer > product and internationalized the CMF using it :) > > > Seriously, I don't oppose to the CMF developers implementing your > solution, but hope Zope will use gettext to provide i18n support > in the future. > > > Cheers, > jdavid > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From palomar@sg.uji.es Mon Jul 2 13:17:32 2001 From: palomar@sg.uji.es (Juan David Ibáñez Palomar) Date: Mon, 2 Jul 2001 14:17:32 +0200 (METDST) Subject: [Zope-CMF] How to translate CMF, first summary In-Reply-To: <006b01c102ee$e9962dd0$0a01a8c0@stravinsky> from "Robert Rottermann" at Jul 02, 2001 02:02:30 PM Message-ID: <20010702121732.533DF8EF@nuvol.uji.es> I understand that, and really hope the CMF developers will hear you and implement your solution. Cheers, jdavid > > Juan, > I know that the solution I propose is anything but perfect. However it is > easy enough to be executed imeatetly, and good enough to merit to be > executed. > "Your" approach is far better, but needs more work from the CMF core team as > we can expect them to be willing to provide. > I was looking for a 20/80% solution. 20% of the effort and 20% of the > effect. > > Robert > PS I will look mor closely into your solution. However I need a German CMF > running by the end of the month. And it must be translated to french by the > end of August (or I dont get my bills payed) > From craig.dunigan@esker.com Mon Jul 2 14:59:09 2001 From: craig.dunigan@esker.com (Dunigan, Craig) Date: Mon, 2 Jul 2001 08:59:09 -0500 Subject: [Zope-CMF] CMF for intranets? Message-ID: Jon, Yes, I have seen DocumentLibrary, and I like it very much. I've been considering using that for old doc's, and forcing new doc's to be created through CMF. That way, I can bypass fixing the filedate problem myself, since DocumentLibrary provides a nice clean interface to do it. Of course, I could just steal their code, too .... ;-) One thought regarding DocumentLibrary, and I'll even copy this to Casey so he can see it, too. It would about double its usefullness to me if it could index Excel doc's as well as Word. Just a hopeful thought. Craig Dunigan Web Programmer Esker Software - Extending the Reach of Information mailto:craig.dunigan@esker.com Ph. 608.273.6000 Fax 608.273.8227 http://www.esker.com > -----Original Message----- > From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] > Sent: Saturday, June 30, 2001 5:47 AM > To: Seb Bacon; Zope-Cmf > Cc: craig.dunigan@esker.com > Subject: [Zope-CMF] CMF for intranets? > > > Hi Craig, > > Have you seen Kaivo's Document Library product? > > http://www.zope.org/Members/Kaivo/DocumentLibrary > > Incidentally does anyone know if Kaivo have any plans to CMF-ise this > product? Anyone from Kaivo on this list? > > It seems to me it already has a lot in common with CMF - uses > Dublin Core > metadata, Topic Index, Document Submission and Review. > > Cheers, Jon > From cduncan@kaivo.com Mon Jul 2 15:23:21 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Mon, 02 Jul 2001 08:23:21 -0600 Subject: [Zope-CMF] CMF for intranets? References: Message-ID: <3B4083D9.336BE4BF@kaivo.com> "Dunigan, Craig" wrote: > > Jon, > > Yes, I have seen DocumentLibrary, and I like it very much. I've been > considering using that for old doc's, and forcing new doc's to be created > through CMF. That way, I can bypass fixing the filedate problem myself, > since DocumentLibrary provides a nice clean interface to do it. Of course, > I could just steal their code, too .... ;-) > > One thought regarding DocumentLibrary, and I'll even copy this to Casey so > he can see it, too. It would about double its usefullness to me if it could > index Excel doc's as well as Word. Just a hopeful thought. > Ask and you shall receive... http://www.zope.org/Members/Kaivo/DocumentLibrary/0.5-Release Enjoy. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From jon@pcgs.freeserve.co.uk Mon Jul 2 15:48:34 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 2 Jul 2001 15:48:34 +0100 Subject: [Zope-CMF] CMF for intranets? In-Reply-To: <3B4083D9.336BE4BF@kaivo.com> Message-ID: Casey, does the same logic apply if I ask you to "CMF-ise" DocumentLibrary? ;-) Is there a magic lamp somewhere I should rub?? Cheers, Jon > -----Original Message----- > From: cduncan@kaivo.com [mailto:cduncan@kaivo.com] > Sent: 02 July 2001 15:23 > To: Dunigan, Craig > Cc: 'Jon Edwards'; 'zope-cmf@zope.org' > Subject: Re: [Zope-CMF] CMF for intranets? > > > "Dunigan, Craig" wrote: > > > > Jon, > > > > Yes, I have seen DocumentLibrary, and I like it very much. I've been > > considering using that for old doc's, and forcing new doc's to > be created > > through CMF. That way, I can bypass fixing the filedate problem myself, > > since DocumentLibrary provides a nice clean interface to do it. > Of course, > > I could just steal their code, too .... ;-) > > > > One thought regarding DocumentLibrary, and I'll even copy this > to Casey so > > he can see it, too. It would about double its usefullness to > me if it could > > index Excel doc's as well as Word. Just a hopeful thought. > > > > Ask and you shall receive... > > http://www.zope.org/Members/Kaivo/DocumentLibrary/0.5-Release > > Enjoy. > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > From craig.dunigan@esker.com Mon Jul 2 15:53:29 2001 From: craig.dunigan@esker.com (Dunigan, Craig) Date: Mon, 2 Jul 2001 09:53:29 -0500 Subject: [Zope-CMF] CMF for intranets? Message-ID: Casey, you're my hero! Craig > -----Original Message----- > From: Casey Duncan [mailto:cduncan@kaivo.com] > Sent: Monday, July 02, 2001 9:23 AM > To: Dunigan, Craig > Cc: 'Jon Edwards'; 'zope-cmf@zope.org' > Subject: Re: [Zope-CMF] CMF for intranets? > > > "Dunigan, Craig" wrote: > > > > Jon, > > > > Yes, I have seen DocumentLibrary, and I like it very much. > I've been > > considering using that for old doc's, and forcing new doc's > to be created > > through CMF. That way, I can bypass fixing the filedate > problem myself, > > since DocumentLibrary provides a nice clean interface to do > it. Of course, > > I could just steal their code, too .... ;-) > > > > One thought regarding DocumentLibrary, and I'll even copy > this to Casey so > > he can see it, too. It would about double its usefullness > to me if it could > > index Excel doc's as well as Word. Just a hopeful thought. > > > > Ask and you shall receive... > > http://www.zope.org/Members/Kaivo/DocumentLibrary/0.5-Release > > Enjoy. > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > From gitte@babytux.dk Mon Jul 2 16:19:56 2001 From: gitte@babytux.dk (=?iso-8859-1?q?Gitte=20Wange?=) Date: Mon, 2 Jul 2001 17:19:56 +0200 (CEST) Subject: [Zope-CMF] Creating new portal type based on Document Message-ID: <20010702151956.23709.qmail@web9606.mail.yahoo.com> Hello, I was trying to create a new portal type based on Document. Actually it should be like document for now - only that it is an article :-)) Later on I will create some new views etc. I added a new factory based type information, gave it an id of 'Article' and set it to use the default type information from CMFDefault: Document. I changed the meta type on the properties tab to Article. Now I know that the Document is an FS-based product and that the meta type is hard-coded into the class but I thought that there was somehow to avoid this. I have added some "articles" to my portal. When I go to the search screen and search for content with type=Article it finds my articles - and only them (as I want I to *S*). Then I have created a page to list the articles (for now just list them - later on I will make it more sophisticated). I have copy/pasted the code from the recent_news method and changed the search for News Item into Article (the meta_type argument). But it finds nothing (guess it's because the article type is based on the document type). I saw at the search page that it could list the type as 'Article'. In the code it uses the property missing-Type. Is there a way that I can search the catalog for missing-Type='Article' instead of meta_type='Article' (which won't work) Regards, Gitte Wange ______________________________________________________ Har du en spændende hobby? Find andre med samme interesse i Yahoo! Grupper - der er hundredevis af danske grupper at vælge imellem om alt mellem himmel og jord. Yahoo! Grupper finder du på adressen: http://dk.groups.yahoo.com From Stephen.Boddy@btcellnet.net Mon Jul 2 16:22:45 2001 From: Stephen.Boddy@btcellnet.net (Boddy Stephen) Date: Mon, 2 Jul 2001 16:22:45 +0100 Subject: [Zope-CMF] (no subject) Message-ID: <5E5EEA049DAED31195A10008C7A4385B1FFF86@skye.cellnet.co.uk> Please can someone explain why this works for a Reviewer, but not a Member, or Anonymous user. (I want the published links to be viewable by anyone)
No entries yet.
Turning off Access future portal content & Review portal content (which are the only security settings different from Member) for Reviewers makes no difference, it still works! From what I can tell in the source, contentItems is public, but then the problem is occuring before that when looking for ProjIndex. From viewing the generated source it does not appear to be detecting the folder ProjIndex in the current folder. Removing the dtml-if statements causes the page to throw an exception for Members. Thanks in advance Steve ********************************************************************** This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. ********************************************************************** From scott.meilicke@intp.com Mon Jul 2 16:29:56 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Mon, 2 Jul 2001 08:29:56 -0700 Subject: [Zope-CMF] Topics Help Message-ID: What I have done is to cut all of the code from topics_view except for the header and footer, and placed it into topics_body. In topics_view I have: You can then use a tag to get into the correct context, and call your portal content. With a topic structure of /topics/images: Anyone know a better way than the nested dtml-with tags? Scott -----Original Message----- From: seb bacon [mailto:seb@jamkit.com] Sent: Monday, July 02, 2001 5:23 AM To: Norman Khine Cc: Zope-Cmf Subject: Re: [Zope-CMF] Topics Help * Norman Khine [010702 12:11]: > Hello, > Can someone please, show me how to display the topics objects on the index > page for the cmf. similarly like the current cmf.zope.org site. > > I am having great difficulties in understanding the structure, so far my > understanding is that -- > > topics can be added by authorised users. > these topics should be placed in the root folder of the user. yes > > how do you associate a document type to a topic, I can see you can set these > perhaps in the criteria, is this correct? i think so (don't have a cmf w/ topics in front of me) > how do you call a topics object? from a url, like: http://www.yousite.com/portal/topic and the 'view' action is called automatically. The method for this action is in CMFTopic/skins/topic/topic_view.dtml. If you want to add topics to the site 'home page', you need to add code based on topic_view to index_html. As Chris says, it's just a normal Catalog query. seb _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From gitte@babytux.dk Mon Jul 2 16:43:30 2001 From: gitte@babytux.dk (=?iso-8859-1?q?Gitte=20Wange?=) Date: Mon, 2 Jul 2001 17:43:30 +0200 (CEST) Subject: [Zope-CMF] Weird error when adding a Blark in portal Message-ID: <20010702154330.58467.qmail@web9607.mail.yahoo.com> Hello again, I have tried to add a Blark weblog in the 'My Stuff' folder in my portal. When I have hitted the add button on of these login prompts show up. I try to login again - but all I get is an error. The error is: Unauthorized You are not authorized to access owner_info. What is owner_info `??? And where do I allow members to have access to this ? I use CMFOptions 1.0 and CMF 1.1 Regards, Gitte Wange ______________________________________________________ Har du en spændende hobby? Find andre med samme interesse i Yahoo! Grupper - der er hundredevis af danske grupper at vælge imellem om alt mellem himmel og jord. Yahoo! Grupper finder du på adressen: http://dk.groups.yahoo.com From jlittle@open-it.org Mon Jul 2 16:53:00 2001 From: jlittle@open-it.org (Joe Little) Date: Mon, 2 Jul 2001 08:53:00 -0700 Subject: [Zope-CMF] adding reviewer roles In-Reply-To: <002701c102ce$3831c970$0a01a8c0@stravinsky> Message-ID: <200107021552.f62FqnY23432@kodama.stanford.edu> pray tell how you use that tool? I click on it and all I get are "ownership" and "undo" tags. I'm still searching for some documentation on how you use any of the tools, which only show ownership tags and have no instantiation other than that. On Monday, July 2, 2001, at 01:08 AM, Robert Rottermann wrote: > Hi Joe > (one of my favorites. Specially the on played by roy buchanan. But wait, > there is a spelling error ...) > With cmf 1.1 you have to switch on the creation of user folders on. > This is done with the portal_membership tool -> Configuration-> turn > folder > creation on. > > Robert > > ----- Original Message ----- > From: "Joe Little" > To: > Sent: Saturday, June 30, 2001 12:24 AM > Subject: [Zope-CMF] adding reviewer roles > > >>> >>> I've scoured the archive and docs, but there seems to be no >>> information >>> published on how to actually publish items. There is mention of a >>> reviewer role, but even after creating a user within the CMF, there is >>> no user in its acl_users folder. I can't seem to find the role >>> "reviewer" anywhere, so I can only get "private" or "pending" >>> documents. >>> >>> Is there any site building tutorial in the works with CMF? I've been >>> piecing stuff together from all over the place. >>> >> >> _______________________________________________ >> Zope-CMF maillist - Zope-CMF@zope.org >> http://lists.zope.org/mailman/listinfo/zope-cmf >> >> See http://www.zope.org/Products/PTK/Tracker for bug reports and >> feature > requests >> > From jeff@janix.com Mon Jul 2 17:11:40 2001 From: jeff@janix.com (Jeff Sasmor) Date: Mon, 2 Jul 2001 12:11:40 -0400 Subject: [Zope-CMF] Weird error when adding a Blark in portal References: <20010702154330.58467.qmail@web9607.mail.yahoo.com> Message-ID: <074001c10311$c2e772c0$1a931340@NETKOOK> CMFOptions 1.0 will not work in CMFOptions 1.1 You need CMFOptions 1.1, available on Zope.org Jeff Jeff Sasmor jeff@sasmor.com www.netkook.com is an "open Zope CMF site" ----- Original Message ----- From: "Gitte Wange" To: Sent: Monday, July 02, 2001 11:43 AM Subject: [Zope-CMF] Weird error when adding a Blark in portal > Hello again, > > I have tried to add a Blark weblog in the 'My Stuff' folder in my > portal. When I have hitted the add button on of these login prompts > show up. I try to login again - but all I get is an error. The error > is: > > Unauthorized > > You are not authorized to access owner_info. > > What is owner_info `??? > And where do I allow members to have access to this ? > > I use CMFOptions 1.0 and CMF 1.1 > > Regards, > Gitte Wange > > ______________________________________________________ > Har du en sp=E6ndende hobby? > Find andre med samme interesse i Yahoo! Grupper - der er hundredevis af danske grupper at v=E6lge imellem om alt mellem himmel og jord. > Yahoo! Grupper finder du p=E5 adressen: http://dk.groups.yahoo.com > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and featur= e requests > From klm@digicool.com Mon Jul 2 17:09:09 2001 From: klm@digicool.com (Ken Manheimer) Date: Mon, 2 Jul 2001 12:09:09 -0400 (EDT) Subject: [Zope-CMF] Re: Getting into ZOMA In-Reply-To: <01070115245107.26979@linux> Message-ID: On Sun, 1 Jul 2001, ender wrote: > On Friday 29 June 2001 09:02, Ken Manheimer wrote: > >> > >>It's broken, as far as i know only the search and visiting individual > >>messages works. (Visiting individual archive folders used to work, but > >>i've been updating the software home out from under the instance.) It > >>should not be hard to fix, i've made the code available at: > >> > >> http://cmf.zope.org/Members/klm/ZOMA > >> > >>so anyone who's interested can implement their own. We won't be fixing it > >>(and the site is going to have to go down, in not too long...) > > i'd like to take a look but i get authentication errors on > MaillistArchive.tar and pop.py when logged in. Hmmph - sorry about that! I have explicitly enabled 'View' permission to Anonymous and Member for both those files, so i figure you should be able to get at them now. I'm not certain (seems roundabout!), so let me know if you continue to encounter problems, and i'll retry. > i'm curious about the stress testing results and setup. > > setup > - what was the total size in mbs of a 130K messages around? The db is 681 MB after pack. The uncompressed source mboxes total around 291 MB. > results > - to what extent was performance impacted? I'm afraid i don't have a lot to offer, there, beyond the subjective experience of doing searches. I was just reminded how sensitive that experience is to packing, though. I just packed the db (a while back i tried to copy the messages to a new location, and neglected to pack it then), and searches that were taking 6 seconds or so are now happening in less than 1 second! I thought i remembered it being that fast - it's very striking to get such quick results, for 130k messages. For those of you that have tried it, give it a try again. (Note that this performance could probably be achieved, with less db bloat, but using a remote data store like ldap, and ZODB-resident surrogates for individual messages. This is an interesting alternative...) Ken klm@digicool.com From jeff@janix.com Mon Jul 2 17:41:16 2001 From: jeff@janix.com (Jeff Sasmor) Date: Mon, 2 Jul 2001 12:41:16 -0400 Subject: [Zope-CMF] Weird error when adding a Blark in portal References: <20010702154330.58467.qmail@web9607.mail.yahoo.com> Message-ID: <075701c10315$e58ffd20$1a931340@NETKOOK> Oops, let me try that again! I meant to say - CMFOptions 1.0 will not work in CMF 1.1 You need CMFOptions 1.1, available on Zope.org Jeff Jeff Sasmor jeff@sasmor.com www.netkook.com is an "open Zope CMF site" ----- Original Message ----- From: "Gitte Wange" To: Sent: Monday, July 02, 2001 11:43 AM Subject: [Zope-CMF] Weird error when adding a Blark in portal > Hello again, > > I have tried to add a Blark weblog in the 'My Stuff' folder in my > portal. When I have hitted the add button on of these login prompts > show up. I try to login again - but all I get is an error. The error > is: > > Unauthorized > > You are not authorized to access owner_info. > > What is owner_info `??? > And where do I allow members to have access to this ? > > I use CMFOptions 1.0 and CMF 1.1 > > Regards, > Gitte Wange > > ______________________________________________________ > Har du en sp=E6ndende hobby? > Find andre med samme interesse i Yahoo! Grupper - der er hundredevis af danske grupper at v=E6lge imellem om alt mellem himmel og jord. > Yahoo! Grupper finder du p=E5 adressen: http://dk.groups.yahoo.com > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and featur= e requests > From chrisw@nipltd.com Mon Jul 2 17:40:56 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Jul 2001 17:40:56 +0100 Subject: [Zope-CMF] .csv into lots of Content objects Message-ID: <3B40A418.5A948562@nipltd.com> Hi, I'm interested in how people would go about turning each row of a .csv file into a piece of CMF content via FTP or WebDAV? Has anyone done this? If not, would it be possible with the hookable PUT stuff? Where should I look to start playing? Also, and I guess this one is harder, how can I make, say, a folder of CMF content objects appear as a single .csv file to a WebDAV or FTP client? For extra mega bonus points (looking at Seb here ;-), how could I do the same with rows from an Excel spreadsheet? cheers, Chris From marc@bowery.com Mon Jul 2 18:06:56 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 02 Jul 2001 13:06:56 -0400 Subject: [Zope-CMF] CMFizing product? In-Reply-To: Message-ID: > From: "Rene Pijlman" > > I'm about to develop a Python-based product which introduces new > content types and I'm wondering if I should make it pure Zope or > CMFized. I faced this doing the Audio object... I decided that it made sense to make a regular Zope product which did the 'heavy lifting' of the content type, and then a CMF product which inherited (via python class mechanism) this content type and nicely wrapped it for CMF. From seb@jamkit.com Mon Jul 2 19:04:55 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 2 Jul 2001 19:04:55 +0100 Subject: [Zope-CMF] .csv into lots of Content objects In-Reply-To: <3B40A418.5A948562@nipltd.com>; from chrisw@nipltd.com on Mon, Jul 02, 2001 at 05:40:56PM +0100 References: <3B40A418.5A948562@nipltd.com> Message-ID: <20010702190455.H16563@lenin.jamkit.com> * Chris Withers [010702 17:44]: > Hi, > > I'm interested in how people would go about turning each row of a .csv file into > a piece of CMF content via FTP or WebDAV? > Has anyone done this? > If not, would it be possible with the hookable PUT stuff? > Where should I look to start playing? I'd create a new type called "ExcelImport", and register its extension in the content_types_registry (or whatever it's called...). Then every time you WebDAV a csv file, its PUT method is called. In that, I'd do something like: body = StringIO(REQUEST.get('BODY', '') for line in body.readlines(): fields = string.split(line, ",") type, id, title, description = fields[0],fields[1],fields[2],fields[3] somefolder.invokeFactory(type,id,title=title,description=description) ...etc... > > Also, and I guess this one is harder, how can I make, say, a folder of CMF > content objects appear as a single .csv file to a WebDAV or FTP client? > when you try to grab something via WebDAV, its manage_FTPget method is called. you'd have to iterate over each object in the folder, flatten it out, return the csv file. the only thing I'm not sure about is if you can do this with folders. I've never looked at how the webdav implementation manages collections. For all I know, they might be the same as vanilla content - if you're lucky. Look at CMFDefault/Document.py for more ideas. > For extra mega bonus points (looking at Seb here ;-), how could I do the same > with rows from an Excel spreadsheet? If you're on a win box, just use the excel com interface, I'm sure you can either iterate over rows or save as csv from it. If you're on nix, use xlHtml to convert it first, then do some fancy regexps. But I have to know - why oh why have you got content in an excel spreadsheet? :-) Do you have a catalogue of items that can be redeemed for points? I need a new kettle. seb From seb@jamkit.com Mon Jul 2 19:08:18 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 2 Jul 2001 19:08:18 +0100 Subject: [Zope-CMF] (no subject) In-Reply-To: <5E5EEA049DAED31195A10008C7A4385B1FFF86@skye.cellnet.co.uk>; from Stephen.Boddy@btcellnet.net on Mon, Jul 02, 2001 at 04:22:45PM +0100 References: <5E5EEA049DAED31195A10008C7A4385B1FFF86@skye.cellnet.co.uk> Message-ID: <20010702190816.I16563@lenin.jamkit.com> It's nothing to do with contentItems, you're right. It's probably simply that there's no ProjIndex folder where you're calling it from. Where is it in the ZMI? seb * Boddy Stephen [010702 16:31]: > Please can someone explain why this works for a Reviewer, but not a Member, > or Anonymous user. (I want the published links to be viewable by anyone) > > > > sort=id> > > >
No entries yet.
>
> >
> > Turning off Access future portal content & Review portal content (which are > the only security settings different from Member) for Reviewers makes no > difference, it still works! From what I can tell in the source, contentItems > is public, but then the problem is occuring before that when looking for > ProjIndex. From viewing the generated source it does not appear to be > detecting the folder ProjIndex in the current folder. Removing the dtml-if > statements causes the page to throw an exception for Members. > > Thanks in advance > Steve > > > > ********************************************************************** > This email and any attachments may be confidential and the subject of > legal professional privilege. Any disclosure, use, storage or copying > of this email without the consent of the sender is strictly prohibited. > Please notify the sender immediately if you are not the intended > recipient and then delete the email from your inbox and do not > disclose the contents to another person, use, copy or store the > information in any medium. > ********************************************************************** > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From Stephen.Boddy@btcellnet.net Mon Jul 2 18:50:33 2001 From: Stephen.Boddy@btcellnet.net (Boddy Stephen) Date: Mon, 2 Jul 2001 18:50:33 +0100 Subject: [Zope-CMF] (no subject) Message-ID: <5E5EEA049DAED31195A10008C7A4385B1FFF87@skye.cellnet.co.uk> The ProjIndex folder exists in a members folder. If another member comes along and views a page with the code below, it does not work unless they are a Reviewer. What I don't get is that the same member who can't "see" the folder can bypass the script below and look at published items in the ProjIndex folder. So I guess the question is how do I allow a Member to check for the existence of, and retrieve the contents of ProjIndex in another users folder? Regards Steve -----Original Message----- From: seb bacon [mailto:seb@jamkit.com] Sent: 02 July 2001 19:08 To: Boddy Stephen Cc: Zope-CMF (E-mail) Subject: Re: [Zope-CMF] (no subject) It's nothing to do with contentItems, you're right. It's probably simply that there's no ProjIndex folder where you're calling it from. Where is it in the ZMI? seb * Boddy Stephen [010702 16:31]: > Please can someone explain why this works for a Reviewer, but not a Member, > or Anonymous user. (I want the published links to be viewable by anyone) > > > > sort=id> > > >
No entries yet.
>
> >
> > Turning off Access future portal content & Review portal content (which are > the only security settings different from Member) for Reviewers makes no > difference, it still works! From what I can tell in the source, contentItems > is public, but then the problem is occuring before that when looking for > ProjIndex. From viewing the generated source it does not appear to be > detecting the folder ProjIndex in the current folder. Removing the dtml-if > statements causes the page to throw an exception for Members. > > Thanks in advance > Steve > > > > ********************************************************************** > This email and any attachments may be confidential and the subject of > legal professional privilege. Any disclosure, use, storage or copying > of this email without the consent of the sender is strictly prohibited. > Please notify the sender immediately if you are not the intended > recipient and then delete the email from your inbox and do not > disclose the contents to another person, use, copy or store the > information in any medium. > ********************************************************************** > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com ********************************************************************** This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. ********************************************************************** From robert@redcor.ch Mon Jul 2 19:26:05 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 2 Jul 2001 20:26:05 +0200 Subject: [Zope-CMF] adding reviewer roles References: <200107021552.f62FqnY23432@kodama.stanford.edu> Message-ID: <00f201c10324$83d16a10$0a01a8c0@stravinsky> What version of CMF are you using. Must be 1.1 Robert ----- Original Message ----- From: "Joe Little" To: "Robert Rottermann" Cc: Sent: Monday, July 02, 2001 5:53 PM Subject: Re: [Zope-CMF] adding reviewer roles > pray tell how you use that tool? I click on it and all I get are > "ownership" and "undo" tags. I'm still searching for some documentation > on how you use any of the tools, which only show ownership tags and have > no instantiation other than that. > > On Monday, July 2, 2001, at 01:08 AM, Robert Rottermann wrote: > > > Hi Joe > > (one of my favorites. Specially the on played by roy buchanan. But wait, > > there is a spelling error ...) > > With cmf 1.1 you have to switch on the creation of user folders on. > > This is done with the portal_membership tool -> Configuration-> turn > > folder > > creation on. > > > > Robert > > > > ----- Original Message ----- > > From: "Joe Little" > > To: > > Sent: Saturday, June 30, 2001 12:24 AM > > Subject: [Zope-CMF] adding reviewer roles > > > > > >>> > >>> I've scoured the archive and docs, but there seems to be no > >>> information > >>> published on how to actually publish items. There is mention of a > >>> reviewer role, but even after creating a user within the CMF, there is > >>> no user in its acl_users folder. I can't seem to find the role > >>> "reviewer" anywhere, so I can only get "private" or "pending" > >>> documents. > >>> > >>> Is there any site building tutorial in the works with CMF? I've been > >>> piecing stuff together from all over the place. > >>> > >> > >> _______________________________________________ > >> Zope-CMF maillist - Zope-CMF@zope.org > >> http://lists.zope.org/mailman/listinfo/zope-cmf > >> > >> See http://www.zope.org/Products/PTK/Tracker for bug reports and > >> feature > > requests > >> > > > From jlittle@open-it.org Mon Jul 2 19:25:37 2001 From: jlittle@open-it.org (Joe Little) Date: Mon, 2 Jul 2001 11:25:37 -0700 Subject: [Zope-CMF] adding reviewer roles In-Reply-To: <00f201c10324$83d16a10$0a01a8c0@stravinsky> Message-ID: <200107021825.f62IPRY24366@kodama.stanford.edu> I'm using 1.1 with Zope 2.3.2 On Monday, July 2, 2001, at 11:26 AM, Robert Rottermann wrote: > What version of CMF are you using. Must be 1.1 > Robert > ----- Original Message ----- > From: "Joe Little" > To: "Robert Rottermann" > Cc: > Sent: Monday, July 02, 2001 5:53 PM > Subject: Re: [Zope-CMF] adding reviewer roles > > >> pray tell how you use that tool? I click on it and all I get are >> "ownership" and "undo" tags. I'm still searching for some documentation >> on how you use any of the tools, which only show ownership tags and >> have >> no instantiation other than that. >> >> On Monday, July 2, 2001, at 01:08 AM, Robert Rottermann wrote: >> >>> Hi Joe >>> (one of my favorites. Specially the on played by roy buchanan. But >>> wait, >>> there is a spelling error ...) >>> With cmf 1.1 you have to switch on the creation of user folders on. >>> This is done with the portal_membership tool -> Configuration-> turn >>> folder >>> creation on. >>> >>> Robert >>> >>> ----- Original Message ----- >>> From: "Joe Little" >>> To: >>> Sent: Saturday, June 30, 2001 12:24 AM >>> Subject: [Zope-CMF] adding reviewer roles >>> >>> >>>>> >>>>> I've scoured the archive and docs, but there seems to be no >>>>> information >>>>> published on how to actually publish items. There is mention of a >>>>> reviewer role, but even after creating a user within the CMF, there >>>>> is >>>>> no user in its acl_users folder. I can't seem to find the role >>>>> "reviewer" anywhere, so I can only get "private" or "pending" >>>>> documents. >>>>> >>>>> Is there any site building tutorial in the works with CMF? I've been >>>>> piecing stuff together from all over the place. >>>>> >>>> >>>> _______________________________________________ >>>> Zope-CMF maillist - Zope-CMF@zope.org >>>> http://lists.zope.org/mailman/listinfo/zope-cmf >>>> >>>> See http://www.zope.org/Products/PTK/Tracker for bug reports and >>>> feature >>> requests >>>> >>> >> > From robert@redcor.ch Mon Jul 2 19:47:30 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 2 Jul 2001 20:47:30 +0200 Subject: [Zope-CMF] Actions when viewing an object References: Message-ID: <011f01c10327$89df5f90$0a01a8c0@stravinsky> You have a nice signature. It would be even nicer with a litle explanation! You can create actions TTW. go to portal_types an click on one of the existing types. A new screen opens with Properties/Actions/... Click on the actions tab Her you go. In the actions you can call any method that is somehow reachable through aquisition. If you need something special just copy a method close to your needs to the custom skin folder. There rename and adapt it as needed. Robert ----- Original Message ----- From: "Norman Khine" To: "Zope-CMF" Sent: Sunday, July 01, 2001 12:01 PM Subject: [Zope-CMF] Actions when viewing an object > Hello, > > Is there a way that one can create his/her own actions. > > For example in the news box, we have: > > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )" size="10"> > > > can I for example add a subject_type criteria. So that I want to be able to > list News Items with a specific subject type. > > Many thanks > > Norman > > zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz > zz/********/z/****\zzz|****\*\zz|*******|z > z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine > zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net > zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley > z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK > zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz > zz/******/zz\******/zz|*|zzzzzzz|*|*****|z > z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z > zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From rpijlman@wanadoo.nl Mon Jul 2 20:14:15 2001 From: rpijlman@wanadoo.nl (Rene Pijlman) Date: Mon, 02 Jul 2001 21:14:15 +0200 Subject: [Zope-CMF] CMFizing product? In-Reply-To: References: Message-ID: Marc Lindahl wrote: >a regular Zope product which did the 'heavy lifting' of the content=20 >type, and then a CMF product which inherited (via python class=20 >mechanism) this content type and nicely wrapped it for CMF. This structure makes sense, if only I understood why you'd want to make the product available both CMFized and non-CMFized...? Can you point me to the documentation/examples/source you used to CMFize your product? Anyway... thanks Marc, I appreciate your reply and I'll have a look at your Audio object. Regards, Ren=E9 Pijlman From dieter@handshake.de Mon Jul 2 20:00:48 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Jul 2001 21:00:48 +0200 (CEST) Subject: [Zope-CMF] Weird error when adding a Blark in portal In-Reply-To: <20010702154330.58467.qmail@web9607.mail.yahoo.com> References: <20010702154330.58467.qmail@web9607.mail.yahoo.com> Message-ID: <15168.50400.739480.205162@lindm.dm> =?iso-8859-1?q?Gitte=20Wange?= writes: > I have tried to add a Blark weblog in the 'My Stuff' folder in my > portal. When I have hitted the add button on of these login prompts > show up. I try to login again - but all I get is an error. The error > is: > > Unauthorized > > You are not authorized to access owner_info. > > What is owner_info `??? > And where do I allow members to have access to this ? "owner_info" is a method of "AccessControl.Owned.Owned", protected by "View management screens". Your options: * give your member the "View management screens" permission (probably not what you want) * use a proxie role for the function that adds the "Blark" As I expect, you tried this (and failed) while you have been loged in as Manager, there is probably a different reason for the "Unauthorized" exception: you call methods on objects without acquisition context. This is quite easy in constructors, as objects are not yet wrapped in their context at this early stage. Dieter From jccooper@rice.edu Mon Jul 2 20:34:05 2001 From: jccooper@rice.edu (jccooper@rice.edu) Date: Mon, 2 Jul 2001 14:34:05 -0500 (CDT) Subject: [Zope-CMF] ZMI inconsistencies for CMFDefault Objects Message-ID: <200107021934.OAA05875@consulting.is.rice.edu> I don't know if there's any rhyme or reason to what tabs appear in the ZMI for CMFDefault objects. As I understand it, all of them have Edit, Metadata (Dublin Core), and Properties available, but the different object types have a strange mix of available tabs. I noticed this when wanting to set discussions on a per-document basis: strangely enough, Documents have no Properties tab. Here's my rundown (with pre tags for html viewers):
Type         Metadata   Edit  Properties                
--------------------------------------------
Document         y        y        .
Image            .        y        y
File             .        y        y
Link             y        .        .
Favorite         y        .        .
News Item        y        y        .
SkinFolder      (.)      (y)       y
Note that a dot means "n" (but makes the thing easier to read.) I know they all have metadata and edit screens, since I can see them in the CMF management screens. And I'm pretty sure they should all have properties too. And I think that all the CMFDefault objects should have all these types of ZMI tabs. So, if there's a good reason let me know, and I shall forbear dealing with this in public. Otherwise, I'll be posting a patch as soon as I figure it out (unless someone tells me not to because it's drop-dead easy for them). --jcc (the spanish acquisition) -- "It is concluded. Banquo, thy soul's flight, if it find Heaven, must find it out tonight." From jeff@janix.com Mon Jul 2 20:48:05 2001 From: jeff@janix.com (Jeff Sasmor) Date: Mon, 2 Jul 2001 15:48:05 -0400 Subject: [Zope-CMF] Weird error when adding a Blark in portal References: <20010702154330.58467.qmail@web9607.mail.yahoo.com> <15168.50400.739480.205162@lindm.dm> Message-ID: <078601c10330$00991330$1a931340@NETKOOK> !!Aagh!! Dieter et al - Please read my reply on this subject! CMFOptions 1.0 won't work on CMF 1.1 this is most likely the cause of your problem. Jeff Sasmor jeff@sasmor.com www.netkook.com is an "open Zope CMF site" ----- Original Message ----- From: "Dieter Maurer" To: Cc: Sent: Monday, July 02, 2001 3:00 PM Subject: Re: [Zope-CMF] Weird error when adding a Blark in portal > =?iso-8859-1?q?Gitte=20Wange?= writes: > > I have tried to add a Blark weblog in the 'My Stuff' folder in my > > portal. When I have hitted the add button on of these login prompts > > show up. I try to login again - but all I get is an error. The error > > is: > > > > Unauthorized > > > > You are not authorized to access owner_info. > > > > What is owner_info `??? > > And where do I allow members to have access to this ? > "owner_info" is a method of "AccessControl.Owned.Owned", > protected by "View management screens". > > Your options: > > * give your member the "View management screens" permission > (probably not what you want) > > * use a proxie role for the function that adds the "Blark" > > As I expect, you tried this (and failed) while you > have been loged in as Manager, there is probably > a different reason for the "Unauthorized" exception: > you call methods on objects without acquisition context. > This is quite easy in constructors, as objects are not > yet wrapped in their context at this early stage. > > > Dieter > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From marc@bowery.com Mon Jul 2 20:46:06 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 02 Jul 2001 15:46:06 -0400 Subject: [Zope-CMF] CMFizing product? In-Reply-To: Message-ID: > From: Rene Pijlman > > This structure makes sense, if only I understood why you'd want to > make the product available both CMFized and non-CMFized...? It's really hardly any extra work... > > Can you point me to the documentation/examples/source you used to > CMFize your product? First one is "the quick python book" to learn python! Then I looked at some of the built in products, like Image.py, and others like JPicture. And of course built in CMF products... comparing OFS/Image and CMFDefault/Image, stuff like that. From eric@scipy.org Mon Jul 2 20:49:30 2001 From: eric@scipy.org (Eric Jones) Date: Mon, 2 Jul 2001 14:49:30 -0500 Subject: [Zope-CMF] came_from in dogbowl In-Reply-To: Message-ID: I noticed the CMF dogbowl doesn't implement the came_from link or redirect when logging in. Is there a reason for this? From andrew@digicool.com Mon Jul 2 21:09:26 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Mon, 2 Jul 2001 16:09:26 -0400 Subject: [Zope-CMF] came_from in dogbowl In-Reply-To: Message-ID: I made this work in the CMFDecor skins; not sure why it wouldn't be working in the other CMF skins. If I get a chance I will look into it, unless someone else can do it prior to then. Thanks, Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Eric Jones > Sent: Monday, July 02, 2001 3:50 PM > To: zope-cmf@zope.org > Subject: [Zope-CMF] came_from in dogbowl > > > I noticed the CMF dogbowl doesn't implement the came_from link or redirect > when logging in. Is there a reason for this? > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From klm@digicool.com Mon Jul 2 21:58:04 2001 From: klm@digicool.com (Ken Manheimer) Date: Mon, 2 Jul 2001 16:58:04 -0400 (EDT) Subject: [Zope-CMF] Re: Zope-CMF digest, Vol 1 #631 - 12 msgs In-Reply-To: Message-ID: A request - *please* trim reply citations! It's frustrating to page through a digest and not just see the entire original message - but have that entire original message contain two entire other layers of messages! Use a single line "On ... so-an-so wrote:" *remove* the correspondents multi-line signature! Ken klm@digicool.com From joe@iuveno-net.de Tue Jul 3 00:39:12 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Tue, 3 Jul 2001 01:39:12 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010701084502.D3016891@nuvol.uji.es> <001301c1027c$7218e940$1ba4023e@karin> Message-ID: <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> > But as soon text to display and html code is intermingled things become > tricky. > The following sentence has to be rearranged when translated to German: >

This item is in &dtml-review_state; state.

> becomes: >

Der Status des Elementes ist : &dtml-review_state;

> This only works when I translate Text and html code together. I can not > separate the two. You really should have a look at ZBabel. It CAN translate the above because you can use placeholders in your translations. It looks like that: de: "Der Status des Elementes ist: <<<1>>>" en: "This item is in <<<1>>> state" > This is what I call to translate screen wise.(not all situations are that > straightforward the code might be some paragraphs long) > (is tere an other way to do it ??) With ZBabel you translate a screen only once (into an internationalized/tagged version). Later, you just have to fix bugs in the internationalized DTML or Python code. The translation is kept untouched as long as you don't have to change the actual phrases. > And more importantly: It was VERY! hard for the translator to do his job > when he got a couple of thousand pieces of text of which he did not know the > context. That's a good point. But it can be solved by providing a good front-end to the translator that maybe displays the context with the string to be translated. > The only translating support I can imagine is wrapping "candidates to > translate" into function that render the text translated. (I do not yet > grasp the workings of your approach (building on pythons gettext facility) > but I understand it also wrapps sentences in function calls.) > So the question is who does such wrapping and more importantly will it pay > off. Again, that is what ZBabel (and also the gettext-based Localizer) are doing already ... > I do not mean we should not have any help by DC. However it is enough to > wrap DTML-calls that render a text to display in a function call that > translates them. So instead of "translate(review_state)">. Furthermore all raise statements that render a > displayable text should also be wrapped in such a function. There are a > couple of more things to do but for CMF it would sum up to work for about a > day. We even put the ZBabel translation engine into the var tag. The only problem with that was that virtually everything was translated, sometimes a couple of times, as might call methods that call methods etc. ZBabel even started translating its variables, which leads to recursion problems. But the code is there, and the only thing needed to make it really cool would be adding some additional attribute like this: But such a syntax is not any better than using ZBabel's own tags as long as the syntax is not officially accepted. It would break all existing code when it is used with a Zope instance that does not have ZBabel installed. Joachim From robert@redcor.ch Tue Jul 3 06:32:49 2001 From: robert@redcor.ch (Robert Rottermann) Date: Tue, 3 Jul 2001 07:32:49 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010701084502.D3016891@nuvol.uji.es> <001301c1027c$7218e940$1ba4023e@karin> <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> Message-ID: <002b01c10381$9911f540$1ba4023e@karin> Sounds as if I have to look at ZBabel more closely. The test whether it is up to its task will be whether it can translate pages like the metadata_edit_form to a couple of European languages without touching the dtml-code. Your idea of adding a translate modifier to the translate tag appeals to me. This can be done with search and replace! But then again. I rather go for a solution that is not to perfect but has the support from our friends living across the big water. Robert ----- Original Message ----- From: "Joachim Werner" To: "Robert Rottermann" ; ; "Juan David Ibáñez Palomar" Cc: "Stephan Richter" Sent: Tuesday, July 03, 2001 1:39 AM Subject: Re: [Zope-CMF] How to translate CMF, first summary > > But as soon text to display and html code is intermingled things become > > tricky. > > The following sentence has to be rearranged when translated to German: > >

This item is in &dtml-review_state; state.

> > becomes: > >

Der Status des Elementes ist : &dtml-review_state;

> > This only works when I translate Text and html code together. I can not > > separate the two. > > You really should have a look at ZBabel. It CAN translate the above because > you can use placeholders in your translations. It looks like that: > > de: "Der Status des Elementes ist: <<<1>>>" > en: "This item is in <<<1>>> state" > > > This is what I call to translate screen wise.(not all situations are that > > straightforward the code might be some paragraphs long) > > (is tere an other way to do it ??) > > With ZBabel you translate a screen only once (into an > internationalized/tagged version). Later, you just have to fix bugs in the > internationalized DTML or Python code. The translation is kept untouched as > long as you don't have to change the actual phrases. > > > And more importantly: It was VERY! hard for the translator to do his job > > when he got a couple of thousand pieces of text of which he did not know > the > > context. > > That's a good point. But it can be solved by providing a good front-end to > the translator that maybe displays the context with the string to be > translated. > > > The only translating support I can imagine is wrapping "candidates to > > translate" into function that render the text translated. (I do not yet > > grasp the workings of your approach (building on pythons gettext facility) > > but I understand it also wrapps sentences in function calls.) > > So the question is who does such wrapping and more importantly will it pay > > off. > > Again, that is what ZBabel (and also the gettext-based Localizer) are doing > already ... > > > I do not mean we should not have any help by DC. However it is enough to > > wrap DTML-calls that render a text to display in a function call that > > translates them. So instead of > "translate(review_state)">. Furthermore all raise statements that render a > > displayable text should also be wrapped in such a function. There are a > > couple of more things to do but for CMF it would sum up to work for about > a > > day. > > We even put the ZBabel translation engine into the var tag. The only problem > with that was that virtually everything was translated, sometimes a couple > of times, as might call methods that call methods etc. ZBabel > even started translating its variables, which leads to recursion problems. > But the code is there, and the only thing needed to make it really cool > would be adding some additional attribute like this: > > > > But such a syntax is not any better than using ZBabel's own tags as long as > the syntax is not officially accepted. It would break all existing code when > it is used with a Zope instance that does not have ZBabel installed. > > Joachim > > From G.Benn@ftel.co.uk Tue Jul 3 08:15:21 2001 From: G.Benn@ftel.co.uk (Geoff Benn) Date: Tue, 03 Jul 2001 08:15:21 +0100 Subject: [Zope-CMF] DublinCore & ExtFile as meta type in CMF References: <200106062201.f56M1s901402@old-callisto.ftel.co.uk> Message-ID: <3B417108.83707EC2@ftel.co.uk> Hi, Assuming no existing ExtFile instances (hence no migration needed) should it be possible to remove ExtFile 1.1.0 beta 3 from my CMFOptions 1.1 product (by deleting the sub-directory), and install the latest ExtFile ? I particularly want to use SYNC_ZODB I have edited ExtFile's ExtFile.py as per the allowed configuratin (ie. all different from defaults). And edited CMFExtFile.py & CMFExtImage.py: line: from Products.CMFOptions.ExtFile import ExtFile to: from Products.ExtFile import ExtFile It seems that I loose touch with all my old (test) ExtFile objects (perhaps because I edited ExtFile.py, hint - delete them all first), but the new ones are OK ... I note the file names are just %n(%u) rather than %n(%u)%c.%e as specified. Regards, Geoff Gregor Heine wrote: > Hi, > > I just had a quick look on the impact of the changes in ExtFile 1.1.0 final on > CMFOptions. > CMF Options includes a slightly modified version of ExtFile 1.1.0beta3 that > includes some fixes to the beta release. > Since these these modifications are more or less all covered by the recent > stable release (Jeff, coerrect me if I'm wrong), there is effectively no reason > any more to bundle ExtFile with CMFOptions. > Jeff, I think the best would be if you could publish a version of CMFOptions > that ships without ExtFile, so people could always use it in conjuction with > the latest ExtFile. > Never the less, if that is done, all users that want to upgrade their > CMFOptions to the current version of ExtFile must run the UpgradePatch for > ExtFile. I can publish a version of the UpgradePatch that includes upgrades > of CMFOption objects as soon as a new version of it is available. > BTW: I'm not sure, if that interests anybody here, but more or less the same > is valid to ExtDocument 0.2 from Tim McLaughlin. It does not bundle a > version ExtFile and thus still requires the beta release, because of some > internal changes to ExtFile that affect ExtDocument aswell. So, people using > this product must not upgrade to the current release of ExtFile until a > compatible version of ExtDocument has been released. > > Cheers, > > Gregor. > > > Hi, > > > > (Thanks to Tres Seaver for refering to CMFOptions) > > > > > > http://www.zope.org/Members/jeffsasmor/CMFOptions > > > > CMF Options 1.0 (Stable) 2001/05/08 (including a copy of ExtFile (old > > version ?) ) > > - compatible with CMF > > - backup versions nice (as per ExtFile 1.1.0) > > - var/reposit/a/b/name and number ( not so easy to work with ? ) > > > > > > But note the date : ExtFile 1.1.0 (Stable) 2001/06/05 > > - not compatible with CMF as it is > > - backup versions are nice > > - var/reposit/.../file name etc (can sync to database structure - nice) > > > > > > Are there any plans to merge the best of both ? > > > > > > Regards, > > Geoff > > > > > > Geoff Benn wrote: > > > > > > Hi, > > > > I'm very new at this - and I'm learning & trying to integrate ExtFile > > into CMF 1.1 beta and > > currently believe that I need to add the following into ExtFile.py (with > > suitable code in ExtFile's __init__ ): > > > > > > >from DublinCore import DefaultDublinCoreImpl > > > > > > This one line causes my portal_types to be omitted from the Add Content > > menu. > > > > > > Anyone care to suggest where I should look next ? Has anyone added > > ExtFile into CMF as a meta type ? Are there any notes on how to add meta > > types ? > > > > > > Note: I've earlier noticed that > > - metadata_edit_form.dtml get's the 'Identifier' of a higher level > > folder rather than the 'id' of the new object. > > - ExtFile uses descr rather than description. > > > > > > Regards, > > Geoff > > -- > > Fujitsu Telecommunications Europe Ltd > > Tel: +44 (0)121 717 6441 > > Fax: +44 (0)121 717 6018 > > E-mail: G.Benn@ftel.co.uk > > > > > > > > -- > > Fujitsu Telecommunications Europe Ltd > > Tel: +44 (0)121 717 6441 > > Fax: +44 (0)121 717 6018 > > E-mail: G.Benn@ftel.co.uk > > > > -- Fujitsu Telecommunications Europe Ltd Tel: +44 (0)121 717 6441 Fax: +44 (0)121 717 6018 E-mail: G.Benn@ftel.co.uk From maarten.slaets@neolabs.be Tue Jul 3 08:24:23 2001 From: maarten.slaets@neolabs.be (Maarten Slaets) Date: Tue, 03 Jul 2001 09:24:23 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010701084502.D3016891@nuvol.uji.es> <001301c1027c$7218e940$1ba4023e@karin> <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> <002b01c10381$9911f540$1ba4023e@karin> Message-ID: <3B417327.E1E5B169@neolabs.be> > ----- Original Message ----- > From: "Joachim Werner" > To: "Robert Rottermann" ; ; "Juan = David > Ib=E1=F1ez Palomar" > Cc: "Stephan Richter" > Sent: Tuesday, July 03, 2001 1:39 AM > Subject: Re: [Zope-CMF] How to translate CMF, first summary >=20 > > We even put the ZBabel translation engine into the var tag. The only > problem > > with that was that virtually everything was translated, sometimes a c= ouple Joachim, do you have any performance information about a site using a 'babelized' var tag on a heavily loaded website? From palomar@sg.uji.es Tue Jul 3 08:50:02 2001 From: palomar@sg.uji.es (Juan David Ibáñez Palomar) Date: Tue, 3 Jul 2001 09:50:02 +0200 (METDST) Subject: [Zope-CMF] How to translate CMF, first summary In-Reply-To: <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> from "Joachim Werner" at Jul 03, 2001 01:39:12 AM Message-ID: <20010703075002.AD0269DE@nuvol.uji.es> > > We even put the ZBabel translation engine into the var tag. The only problem > with that was that virtually everything was translated, sometimes a couple > of times, as might call methods that call methods etc. ZBabel > even started translating its variables, which leads to recursion problems. > But the code is there, and the only thing needed to make it really cool > would be adding some additional attribute like this: > > > > But such a syntax is not any better than using ZBabel's own tags as long as > the syntax is not officially accepted. It would break all existing code when > it is used with a Zope instance that does not have ZBabel installed. > > Joachim > Most Zope solutions that provide i18n support to Zope are DTML centric, usually with their own tags. This is one advantage of the Localizer, it allows to translate DTML, ZPT, Python and probably everything able to live in Zope. jdavid gettext advocate :) From chrisw@nipltd.com Tue Jul 3 09:52:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Jul 2001 09:52:39 +0100 Subject: [Zope-CMF] [OT] Multi-line sigs References: Message-ID: <3B4187D7.4C34B2EB@nipltd.com> Ken Manheimer wrote: > > messages! Use a single line "On ... so-an-so wrote:" *remove* > the correspondents multi-line signature! Personally i think people with multi-line sigs should be shot ;-) I prefer the length of my sig... cheers, Chris From jon@pcgs.freeserve.co.uk Tue Jul 3 10:23:21 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 3 Jul 2001 10:23:21 +0100 Subject: [Zope-CMF] CMF for intranets? In-Reply-To: <3B408BE0.5FB922F5@kaivo.com> Message-ID: Casey's reply to my plea to "CMF-ise" DocumentLibrary is below (forwarded with permission) Anyone else who would like to see Kaivo's DocumentLibrary CMF-ised? Please send cheques to the "Let's Bribe Casey Fund" c/o my Swiss bank account. I'll forward them on, honest! ;-) IMHO, DocumentLibrary would be a great addition to the CMF stable, specially for all the people planning to use CMF for intranets, as discussed last week. But what's in it for Casey/Kaivo? Actually, what's the motivation for anyone to CMF-ise their existing Zope product? Here's a few benefits I thought of. If anyone comes up with any more, please CC Casey, as he is not subscribed to this list.... yet! ;-) (Resistance is futile, you will be assimilated!) 1. There's a growing user-base for CMF. From some of the conversations last week it looks like there's a market for CMF in SMEs who perhaps wouldn't use Zope on its own, but *would* use CMF to get a quick, effective intranet solution, without having to dive into the complexities of Zope straight away. DocumentLibrary would be a natural for these applications... and Kaivo could sell lots of "CMF-in-a-day" training courses! :-) 2. DocumentLibrary already uses DublinCore, topics, subject/metadata hierarchy, and a submit/review/publish workflow. So does CMF. CMF-ising DoucumentLibrary would mean that all the other objects that CMF already handles (articles, links, news-items, and soon RSS feeds and emails) would be accessible to DocumentLibrary, widening its scope and perhaps moving it towards being even more of a "knowledge-base" application? It would also allow it to use add-ons like the DCWorkflow product, and fledgling workgroup stuff to tailor it better for individual organisations (who, of course, will need more Kaivo training courses ;-) 3. Some of the work has already been done? I think Seb has already produced functionality to get Word and Excel documents (and browser Favorites/Bookmarks) into CMF? The defence rests, your honour! BTW I hope this doesn't sound like one of those "I want Zope to do xyz, and I want someone to do it for me" emails! I would be happy to help out anyway I can, if you decide to give it a go, Casey! :-) Anyone else have any thoughts? Cheers, Jon > -----Original Message----- > From: cduncan@kaivo.com [mailto:cduncan@kaivo.com] > > Jon Edwards wrote: > > > > Casey, does the same logic apply if I ask you to "CMF-ise" > DocumentLibrary? > > ;-) > > > > I'm afraid that I have to "CMF-ise" myself first, which I am presently > not incredibly motivated to do. However, bribery has been known to > enhance my motivation 8^) > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > From jon@pcgs.freeserve.co.uk Tue Jul 3 10:58:30 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 3 Jul 2001 10:58:30 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo Message-ID: Tim wrote - > I thought this was so cool I submitted the link to Slashdot. Hope that's OK > with you! :-) (a joke, don't panic) You had me reaching for the valium for a moment there! > I would encourage you to post as much info as you can cobble together about > your experience working on this. It would seem that this is very similar to > what I'd like to try to do with my school's site. I'm working on it! I thought Seb's suggestion that people building CMS functionality on top of CMF should define a few "standards" to improve interoperability was excellent, so I'm trying to produce something along those lines. (Seb, 'scuse me if I paraphrased you clumsily, any chance you could post your initial thoughts/examples to get us started... just brief "back-of-a-cigarette-packet" notes? I think I understand what you mean, but I'm finding it hard to verbalise! :-) But, in the meantime, if you're looking for a few ideas Tim, I remembered I posted an early, clumsy, explanation back in April (seems like a hundred years ago!) - http://lists.zope.org/pipermail/zope-cmf/2001-April/006339.html Comments, suggestions, and anything else that helps me kickstart my brain, welcomed! HTH Cheers, Jon From jon@pcgs.freeserve.co.uk Tue Jul 3 11:22:51 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 3 Jul 2001 11:22:51 +0100 Subject: [Zope-CMF] Problems generating list of files/folders Message-ID: Hi Anders, Should you be using empty brackets after objectValues? Here's a bit of code I hacked out of folder_contents that works for me, you might be able to adapt it? -------------------------------------------------------------------------- &dtml-Type; &dtml-id; (&dtml-title;) -------------------------------------------------------------------------- HTH Cheers, Jon From gregoire.weber@switzerland.org Tue Jul 3 12:03:38 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Tue, 03 Jul 2001 13:03:38 +0200 Subject: [Zope-CMF] how to get the object created by invokeFactory Message-ID: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> Hi all! I'd like to programmatically add a topic by using a=20 Python Script and it seems that I am on the right way=20 but there is one problem left: ------------------------------------------------------- ## Script (Python) "invokeTopic" ##bind container=3Dcontainer ##bind context=3Dcontext ##bind namespace=3D ##bind script=3Dscript ##bind subpath=3Dtraverse_subpath ##parameters=3DREQUEST, RESPONSE, title=3DNone, description=3DNone, id=3DNon= e ##title=3D ## context.invokeFactory('Topic', id) obj=3D######## how do I get the obj if the newly created topic with the id 'id'?=20 obj.edit(title=3D'empty title', description=3D'empty description') obj.addCriteria(field=3D'Subject', criteria_type=3D'String Criterion') RESPONSE.redirect('%s/topic_view' % obj.absolute_url()) ------------------------------------------------------- What I have tried: 1) # invokeFactor returns None (argh!) obj =3D context.invokeFactory('Topic', id) 2) # could not import HTTPRequest from HTTPRequest.HttpRequest import resolve_url obj =3D resolve_url(context.absolute_url()+'/'+id)=20 I've took a look at the management screens also and I have=20 seen that invokeFactory is called by DTML methods which do=20 a redirect to one of the objects method like this: RESPONSE.redirect('%s/topic_view' % context.absolute_url()) The following method calls (e.g. topic_editTopic) is then able to refer to context. But in my case the context is the=20 directory containing the topic. I am sure it's only a small piece of the puzzle I am missing. Can somebody help me? Thanks, Greg _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From seb@jamkit.com Tue Jul 3 12:55:20 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 3 Jul 2001 12:55:20 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory In-Reply-To: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch>; from gregoire.weber@switzerland.org on Tue, Jul 03, 2001 at 01:03:38PM +0200 References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> Message-ID: <20010703125518.D19615@lenin.jamkit.com> * Grégoire Weber [010703 12:04]: > Hi all! > context.invokeFactory('Topic', id) > obj=######## how do I get the obj if the newly created topic with the id > 'id'? This should work: obj = context[id] Also, note that you can usually edit most of an object's attributes when you instantiate it, using keyword args: context.invokeFactory('Topic', id, title='foo', description='bar') However, Topic doesn't seem to let you do that. One for the Tracker, perhaps... seb From srichter@iuveno-net.de Tue Jul 3 12:29:13 2001 From: srichter@iuveno-net.de (Stephan Richter) Date: Tue, 03 Jul 2001 06:29:13 -0500 Subject: [Zope-CMF] How to translate CMF, first summary In-Reply-To: <20010703075002.AD0269DE@nuvol.uji.es> References: <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> Message-ID: <5.1.0.14.0.20010703062606.00a04ec0@imail.iuveno-net.de> >This is one advantage of the Localizer, it allows to translate DTML, ZPT, >Python and probably everything able to live in Zope. Well, all that ZBabel does is using a function. Whether you call the function from ZPT, DTML or Python is completely up to you. The only thing that is currently missing is that the function is not added to the global namespace (_). In fact I am using the ZBabel functionality quiet frequently straight from my Python Products. For ZBabel 3.0 (if someone helps, this could be done beginning of August) we should think about gettext() integration (at least import and export) and the support of the standard functions. Regards, Stephan Stephan Richter iuveno AG - Technical Design and Implementation Technical Design and Development From james@codenamefuture.nl Tue Jul 3 13:11:15 2001 From: james@codenamefuture.nl (James van der Veen) Date: Tue, 3 Jul 2001 14:11:15 +0200 Subject: [Zope-CMF] Adding a dtmll document to Custom Message-ID: <11204746D436D411A6F90004AC5396110D845D@EXCHSRVR1> Hi All, I have a question I hope someone can awnser! I would like to add a dtml document to the custom skin every time a = portal is created. So I had a look in the Portal.py file where the Custom folder is added, = But now I just can=B4t figure out=20 How to add a dtml doc or method to it. Hope yall can help me with this! Greetz, James From bkc@murkworks.com Tue Jul 3 13:46:41 2001 From: bkc@murkworks.com (Brad Clements) Date: Tue, 3 Jul 2001 08:46:41 -0400 Subject: [Zope-CMF] Actions when viewing an object In-Reply-To: <011f01c10327$89df5f90$0a01a8c0@stravinsky> Message-ID: <3B41823E.27256.D001D41@localhost> On 2 Jul 2001, at 20:47, Robert Rottermann wrote: > You have a nice signature. It would be even nicer with a litle explanation! You need to view it with a fixed pitch font. From chrisw@nipltd.com Tue Jul 3 13:42:04 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Jul 2001 13:42:04 +0100 Subject: [Zope-CMF] Problems generating list of files/folders References: Message-ID: <3B41BD9C.1B940586@nipltd.com> Jon Edwards wrote: > > Hi Anders, > > Should you be using empty brackets after objectValues? > > That should work, but: is better... cheers, Chris From chrisw@nipltd.com Tue Jul 3 13:43:20 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Jul 2001 13:43:20 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <20010703125518.D19615@lenin.jamkit.com> Message-ID: <3B41BDE8.6750B293@nipltd.com> seb bacon wrote: > > Also, note that you can usually edit most of an object's attributes > when you instantiate it, using keyword args: > > context.invokeFactory('Topic', id, title='foo', description='bar') > > However, Topic doesn't seem to let you do that. One for the Tracker, > perhaps... Nah, I think the other objects onyl support that for PTK backwards compatability... cheers, Chris From dhanunjaya@mindscapecomputing.com Tue Jul 3 11:17:14 2001 From: dhanunjaya@mindscapecomputing.com (Dhanu) Date: Tue, 3 Jul 2001 15:47:14 +0530 Subject: [Zope-CMF] How to disable members from getting "My stuff" link Message-ID: <000a01c103a9$545cd190$4ac809c0@saraswathi> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C103D7.6E08D890 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hai, I dont want my members to add any portal content.Content will be addded = by my writers. I want my users to register and become members .But=20 they should not get=20 "mystuff" link in "Actions box", no folder should be created for the registered members in Members = folder and=20 i want to remove permissions for them to add any portal content to = site. *** I want my users to be able reply to newsitems and any other = content.May be other services will be provided later. ........................................ I tried by removing the permissions for Members role,but it is not = working.I think this might be bug in CMF or i did not understand the = users and permissions correctly. ..................................... Your help is very much appreciated Thank you , regards, Dhanu ------=_NextPart_000_0007_01C103D7.6E08D890 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hai,
 
I dont want my members to add any = portal=20 content.Content will be addded by my writers.
 
I want my users to register and become = members .But=20
 
they should not get
 
 "mystuff" link in "Actions = box",
 no folder should be created for = the=20 registered members in Members folder and
 i want to remove permissions = for them to=20 add any portal content to site.
 
*** I want my users to be able reply to = newsitems=20 and any other content.May be other services will be provided = later.
 
........................................
 
I tried by removing the permissions for = Members=20 role,but it is not working.I think this might be bug in CMF or i did not = understand the users and permissions correctly.
.....................................
 
Your help is very much = appreciated
 
 
Thank you ,
 
regards,
Dhanu
 
 
------=_NextPart_000_0007_01C103D7.6E08D890-- From seb@jamkit.com Tue Jul 3 14:47:05 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 3 Jul 2001 14:47:05 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory In-Reply-To: <3B41BDE8.6750B293@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 03, 2001 at 01:43:20PM +0100 References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <20010703125518.D19615@lenin.jamkit.com> <3B41BDE8.6750B293@nipltd.com> Message-ID: <20010703144705.E19615@lenin.jamkit.com> * Chris Withers [010703 13:47]: > seb bacon wrote: > > > > Also, note that you can usually edit most of an object's attributes > > when you instantiate it, using keyword args: > > > > context.invokeFactory('Topic', id, title='foo', description='bar') > > > > However, Topic doesn't seem to let you do that. One for the Tracker, > > perhaps... > > Nah, I think the other objects onyl support that for PTK backwards > compatability... Really? It's a useful feature, and it only takes a couple of lines of code (some keyword arguments in the class constructor, and the factory method). It should stay, IMO - I use it a bit. Why would you *not* want it? seb From joe@iuveno-net.de Tue Jul 3 14:35:27 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Tue, 3 Jul 2001 15:35:27 +0200 Subject: [Zope-CMF] How to translate CMF, first summary References: <20010701084502.D3016891@nuvol.uji.es> <001301c1027c$7218e940$1ba4023e@karin> <003a01c10350$336c7f20$1d00a8c0@iuvenonet.home> <002b01c10381$9911f540$1ba4023e@karin> <3B417327.E1E5B169@neolabs.be> Message-ID: <006101c103c5$05ead040$1d00a8c0@iuvenonet.home> > > We even put the ZBabel translation engine into the var tag. The only > problem > > with that was that virtually everything was translated, sometimes a couple Joachim, do you have any performance information about a site using a 'babelized' var tag on a heavily loaded website? We've run the "brute-force" version (all var tags are translated) only a couple of minutes, until recursion became to bad. But the plain ZBabel (using its own tags) with the new non-SQL backend is rather fast. Of course translation adds additional overhead. That's why we don't want to switch it on by default. But if you want fully dynamic sites that deliver the language the user wants on the fly, there is no other choice. For heavy-load sites with less frequent content changes, pre-rendered pages or heavy caching would be the choice ... No benchmarks yet, sorry. From chrisw@nipltd.com Tue Jul 3 15:03:37 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Jul 2001 15:03:37 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <20010703125518.D19615@lenin.jamkit.com> <3B41BDE8.6750B293@nipltd.com> <20010703144705.E19615@lenin.jamkit.com> Message-ID: <3B41D0B9.81644E14@nipltd.com> seb bacon wrote: > > Really? It's a useful feature, and it only takes a couple of lines of > code (some keyword arguments in the class constructor, and the factory > method). It should stay, IMO - I use it a bit. Why would you *not* > want it? Because it leads to lots of unneccessary code duplication, which means an increased chance of bugs... What you really want is a constructor that does nothing but build the object and an edit methdo which fills in all the details. That way, you don't have 'editing' code in both the __init__ and edit methods. cheers, Chris From seb@jamkit.com Tue Jul 3 15:47:12 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 3 Jul 2001 15:47:12 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory In-Reply-To: <3B41D0B9.81644E14@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 03, 2001 at 03:03:37PM +0100 References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <20010703125518.D19615@lenin.jamkit.com> <3B41BDE8.6750B293@nipltd.com> <20010703144705.E19615@lenin.jamkit.com> <3B41D0B9.81644E14@nipltd.com> Message-ID: <20010703154711.G19615@lenin.jamkit.com> * Chris Withers [010703 15:06]: > seb bacon wrote: > > > > Really? It's a useful feature, and it only takes a couple of lines of > > code (some keyword arguments in the class constructor, and the factory > > method). It should stay, IMO - I use it a bit. Why would you *not* > > want it? > > Because it leads to lots of unneccessary code duplication, which means an > increased chance of bugs... > > What you really want is a constructor that does nothing but build the object and > an edit methdo which fills in all the details. > That way, you don't have 'editing' code in both the __init__ and edit methods. OK, that makes sense :-) The reason I find it useful is because I'm munging the the id in invokeFactory to make sure it's a valid ZopeId, then passing the id in as the title, intact. (we were discussing this a while ago). So, if I call invokeFactory(id), I can't necessarily know what the id actually was, so I can't grab the object to edit it. Wouldn't something like this avoid the code duplication problem you mention: def __init__(self, id, **kw): # blah self._getOb(id).edit(**kw) seb From chrisw@nipltd.com Tue Jul 3 15:18:50 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Jul 2001 15:18:50 +0100 Subject: [Zope-CMF] how to get the object created by invokeFactory References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <20010703125518.D19615@lenin.jamkit.com> <3B41BDE8.6750B293@nipltd.com> <20010703144705.E19615@lenin.jamkit.com> <3B41D0B9.81644E14@nipltd.com> <20010703154711.G19615@lenin.jamkit.com> Message-ID: <3B41D44A.A0E96393@nipltd.com> seb bacon wrote: > > So, if I call invokeFactory(id), I can't necessarily know what the id > actually was, so I can't grab the object to edit it. Wouldn't > something like this avoid the code duplication problem you mention: > > def __init__(self, id, **kw): > # blah > self._getOb(id).edit(**kw) Well, that's still unnecessary (and therefor bad, yes I am a facist ;-) code... What would solve the problem properly is for invokeFactory to return the new object. If it doesn't already, ti should ;-) cheers, Chris From gitte@mmmanager.org Tue Jul 3 15:27:42 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 3 Jul 2001 16:27:42 +0200 Subject: [Zope-CMF] Where do CMF get the "Creator" variable from ? Message-ID: <01070316274304.08433@squidbitch.mmmanager.org> Hello, I would like to be able to display my users real name instead of just their username. I have added a property to the memberdata object called real_name. Now I want to display my users realname in the blark at my CMF portal. In the code for the Blackfolder_view method it display the &dtml-Creator; variable. So I thought that maybe I could find the user object with the Creator ID and ask for the real name. But no ... I have tried this: But I get this error: Error Type: AttributeError Error Value: 'None' object has no attribute 'real_name' So I guess it isn't a valid user object it returns. Any ideas ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Also, can people who have had unhappy relationships with their eepro100 please try to cuddle and make up again? - Linus Torvalds From gregoire.weber@switzerland.org Tue Jul 3 15:38:34 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Tue, 03 Jul 2001 16:38:34 +0200 Subject: [Zope-CMF] how to get the object created by invokeFactory In-Reply-To: <20010703125518.D19615@lenin.jamkit.com> References: <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> <3.0.6.32.20010703130338.01215ca0@pop.dplanet.ch> Message-ID: <3.0.6.32.20010703163834.0116c2c0@pop.dplanet.ch> thanks a lot Seb, it was the missing point to success! > > context.invokeFactory('Topic', id) > > obj=3D### how do I get the obj if the newly created topic with the id?= =20 >=20 > This should work: > obj =3D context[id] See code below. > At 15:18 03.07.01 +0100, Chris Whiters wrote: > What would solve the problem properly is for invokeFactory to=20 > return the new object. If it doesn't already, ti should ;-) It does definitively not and it would be a good thing if it=20 would do! Greg ------------------------------------------------------- ## Script (Python) "invokeTopic" ##bind container=3Dcontainer ##bind context=3Dcontext ##bind namespace=3D ##bind script=3Dscript ##bind subpath=3Dtraverse_subpath ##parameters=3DREQUEST, RESPONSE, id, subj=3DNone, title=3D'', description= =3D'', acquireCriteria=3D'1' ##title=3Dadd a topic with 'id' and a string criteria value of 'subj' or 'id= ' for 'Subject' programmatically ## # instanate a topic with a id of 'id' context.invokeFactory('Topic', id) # get id of topic (thanks seb!) obj=3Dcontext[id] # title and description of topic obj.edit(acquireCriteria=3DacquireCriteria,=20 title=3Dtitle,=20 description=3Ddescription) # add a string criteria for 'Subject' obj.addCriteria(field=3D'Subject',=20 criteria_type=3D'String Criterion') # set the value of the 'Subject' criteria if subj is None: subj =3D id crit=3Dobj.getCriterion('crit__Subject') crit.edit(value=3Dsubj) # redirect to the topics page RESPONSE.redirect(obj.absolute_url()) ------------------------------------------------------- _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From gitte@babytux.dk Tue Jul 3 15:44:45 2001 From: gitte@babytux.dk (=?iso-8859-1?q?Gitte=20Wange?=) Date: Tue, 3 Jul 2001 16:44:45 +0200 (CEST) Subject: [Zope-CMF] Where do CMF get the "Creator" variable from ? Message-ID: <20010703144445.31891.qmail@web9608.mail.yahoo.com> Hello, (Sorry if this mail is posted twice, but I'm not sure if my mailserver works). I would like to be able to display my users real name instead of just their username. I have added a property to the memberdata object called real_name. Now I want to display my users realname in the blark at my CMF portal. In the code for the Blackfolder_view method it display the &dtml-Creator; variable. So I thought that maybe I could find the user object with the Creator ID and ask for the real name. But no ... I have tried this: But I get this error: Error Type: AttributeError Error Value: 'None' object has no attribute 'real_name' So I guess it isn't a valid user object it returns. Any ideas ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Also, can people who have had unhappy relationships with their eepro100 please try to cuddle and make up again? - Linus Torvalds ______________________________________________________ Har du en spændende hobby? Find andre med samme interesse i Yahoo! Grupper - der er hundredevis af danske grupper at vælge imellem om alt mellem himmel og jord. Yahoo! Grupper finder du på adressen: http://dk.groups.yahoo.com From jeff@janix.com Tue Jul 3 16:01:04 2001 From: jeff@janix.com (Jeff Sasmor) Date: Tue, 3 Jul 2001 11:01:04 -0400 Subject: [Zope-CMF] DublinCore & ExtFile as meta type in CMF References: <200106062201.f56M1s901402@old-callisto.ftel.co.uk> <3B417108.83707EC2@ftel.co.uk> Message-ID: <005001c103d1$0f5261f0$1a931340@NETKOOK> > Assuming no existing ExtFile instances (hence no migration needed) should it be > possible to remove ExtFile 1.1.0 beta 3 from my CMFOptions 1.1 product (by deleting > the sub-directory), and install the latest ExtFile ? I doubt that it would work correctly unless you followed all the changes in the older source (they are marked) and duplicated them in a modified ExtFile.py and ExtImage.py > And edited CMFExtFile.py & CMFExtImage.py: > line: > from Products.CMFOptions.ExtFile import ExtFile There are number of changes besides these! I had several reasons to bundle ExtFile with CMFOptions: 1. Easier installation of CMFOptions (no dependencies & no other products to install) 2. Minor mods as pointed out herein 3. Particular adaptations to the CMF 4. Namespace collisons between methods in ExtFile and CMF native functions 5. Remove dependency on PIL, which is a nuisance (confusing, at least) to install. 6. Adding alphabetic subdirs and user-named files to the repository scheme to make it easier to locate files (for removal) for particular users. It wasn't as trivial a task as one might assume - there's a lot of testing required to make sure all of this works properly! In any case, I don't think that having this version of ExtFile bundled with CMFOptions prohibits someone from installing the new version of ExtFile and using it thru the ZMI - these modified versions have different meta-types and should not interfere with a normal product installation. Also, if someone doesn't want to use CMFExtFile or CMFExtImage, they just don't have to install those types using the types tool. In any case, I intend to rebundle the new version of ExtFile at some point in the near future. I just need to have the time to look at it carefully (which I don't, right now). Jeff Sasmor jeff@sasmor.com www.netkook.com is an "open Zope CMF site" ----- Original Message ----- From: "Geoff Benn" To: "Gregor Heine" Cc: "Zope CMF list" ; ; "Tim McLaughlin" Sent: Tuesday, July 03, 2001 3:15 AM Subject: Re: [Zope-CMF] DublinCore & ExtFile as meta type in CMF > Hi, > > Assuming no existing ExtFile instances (hence no migration needed) should it be > possible to remove ExtFile 1.1.0 beta 3 from my CMFOptions 1.1 product (by deleting > the sub-directory), and install the latest ExtFile ? > > I particularly want to use SYNC_ZODB > > I have edited ExtFile's ExtFile.py as per the allowed configuratin (ie. all > different from defaults). > > And edited CMFExtFile.py & CMFExtImage.py: > line: > from Products.CMFOptions.ExtFile import ExtFile > to: > from Products.ExtFile import ExtFile > > It seems that I loose touch with all my old (test) ExtFile objects (perhaps because > I edited ExtFile.py, hint - delete them all first), but the new ones are OK ... > > I note the file names are just %n(%u) rather than %n(%u)%c.%e as specified. > > Regards, > Geoff > > Gregor Heine wrote: > > > Hi, > > > > I just had a quick look on the impact of the changes in ExtFile 1.1.0 final on > > CMFOptions. > > CMF Options includes a slightly modified version of ExtFile 1.1.0beta3 that > > includes some fixes to the beta release. > > Since these these modifications are more or less all covered by the recent > > stable release (Jeff, coerrect me if I'm wrong), there is effectively no reason > > any more to bundle ExtFile with CMFOptions. > > Jeff, I think the best would be if you could publish a version of CMFOptions > > that ships without ExtFile, so people could always use it in conjuction with > > the latest ExtFile. > > Never the less, if that is done, all users that want to upgrade their > > CMFOptions to the current version of ExtFile must run the UpgradePatch for > > ExtFile. I can publish a version of the UpgradePatch that includes upgrades > > of CMFOption objects as soon as a new version of it is available. > > BTW: I'm not sure, if that interests anybody here, but more or less the same > > is valid to ExtDocument 0.2 from Tim McLaughlin. It does not bundle a > > version ExtFile and thus still requires the beta release, because of some > > internal changes to ExtFile that affect ExtDocument aswell. So, people using > > this product must not upgrade to the current release of ExtFile until a > > compatible version of ExtDocument has been released. > > > > Cheers, > > > > Gregor. > > > > > Hi, > > > > > > (Thanks to Tres Seaver for refering to CMFOptions) > > > > > > > > > http://www.zope.org/Members/jeffsasmor/CMFOptions > > > > > > CMF Options 1.0 (Stable) 2001/05/08 (including a copy of ExtFile (old > > > version ?) ) > > > - compatible with CMF > > > - backup versions nice (as per ExtFile 1.1.0) > > > - var/reposit/a/b/name and number ( not so easy to work with ? ) > > > > > > > > > But note the date : ExtFile 1.1.0 (Stable) 2001/06/05 > > > - not compatible with CMF as it is > > > - backup versions are nice > > > - var/reposit/.../file name etc (can sync to database structure - nice) > > > > > > > > > Are there any plans to merge the best of both ? > > > > > > > > > Regards, > > > Geoff > > > > > > > > > Geoff Benn wrote: > > > > > > > > > Hi, > > > > > > I'm very new at this - and I'm learning & trying to integrate ExtFile > > > into CMF 1.1 beta and > > > currently believe that I need to add the following into ExtFile.py (with > > > suitable code in ExtFile's __init__ ): > > > > > > > > > >from DublinCore import DefaultDublinCoreImpl > > > > > > > > > This one line causes my portal_types to be omitted from the Add Content > > > menu. > > > > > > > > > Anyone care to suggest where I should look next ? Has anyone added > > > ExtFile into CMF as a meta type ? Are there any notes on how to add meta > > > types ? > > > > > > > > > Note: I've earlier noticed that > > > - metadata_edit_form.dtml get's the 'Identifier' of a higher level > > > folder rather than the 'id' of the new object. > > > - ExtFile uses descr rather than description. > > > > > > > > > Regards, > > > Geoff > > > -- > > > Fujitsu Telecommunications Europe Ltd > > > Tel: +44 (0)121 717 6441 > > > Fax: +44 (0)121 717 6018 > > > E-mail: G.Benn@ftel.co.uk > > > > > > > > > > > > -- > > > Fujitsu Telecommunications Europe Ltd > > > Tel: +44 (0)121 717 6441 > > > Fax: +44 (0)121 717 6018 > > > E-mail: G.Benn@ftel.co.uk > > > > > > > > -- > Fujitsu Telecommunications Europe Ltd > Tel: +44 (0)121 717 6441 > Fax: +44 (0)121 717 6018 > E-mail: G.Benn@ftel.co.uk > > > From scott.meilicke@intp.com Tue Jul 3 16:01:41 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Tue, 3 Jul 2001 08:01:41 -0700 Subject: [Zope-CMF] CMF for intranets? Message-ID: We are now deciding on a technology for our Intranet. If we decide on zope, we more than likely will use the CMF, and if DocumentLibrary is CMFed, it will be that much easier to get it up and running. In my case, our programmers like tidy packages, and may not be thrilled to scour for documentation. So, they will probably want some sort of official instruction in zope. Kaivo of course comes to mind. Scott -----Original Message----- From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] Sent: Tuesday, July 03, 2001 2:23 AM To: cduncan@kaivo.com Cc: Zope-Cmf Subject: RE: [Zope-CMF] CMF for intranets? Casey's reply to my plea to "CMF-ise" DocumentLibrary is below (forwarded with permission) Anyone else who would like to see Kaivo's DocumentLibrary CMF-ised? Please send cheques to the "Let's Bribe Casey Fund" c/o my Swiss bank account. I'll forward them on, honest! ;-) IMHO, DocumentLibrary would be a great addition to the CMF stable, specially for all the people planning to use CMF for intranets, as discussed last week. But what's in it for Casey/Kaivo? Actually, what's the motivation for anyone to CMF-ise their existing Zope product? Here's a few benefits I thought of. If anyone comes up with any more, please CC Casey, as he is not subscribed to this list.... yet! ;-) (Resistance is futile, you will be assimilated!) 1. There's a growing user-base for CMF. From some of the conversations last week it looks like there's a market for CMF in SMEs who perhaps wouldn't use Zope on its own, but *would* use CMF to get a quick, effective intranet solution, without having to dive into the complexities of Zope straight away. DocumentLibrary would be a natural for these applications... and Kaivo could sell lots of "CMF-in-a-day" training courses! :-) 2. DocumentLibrary already uses DublinCore, topics, subject/metadata hierarchy, and a submit/review/publish workflow. So does CMF. CMF-ising DoucumentLibrary would mean that all the other objects that CMF already handles (articles, links, news-items, and soon RSS feeds and emails) would be accessible to DocumentLibrary, widening its scope and perhaps moving it towards being even more of a "knowledge-base" application? It would also allow it to use add-ons like the DCWorkflow product, and fledgling workgroup stuff to tailor it better for individual organisations (who, of course, will need more Kaivo training courses ;-) 3. Some of the work has already been done? I think Seb has already produced functionality to get Word and Excel documents (and browser Favorites/Bookmarks) into CMF? The defence rests, your honour! BTW I hope this doesn't sound like one of those "I want Zope to do xyz, and I want someone to do it for me" emails! I would be happy to help out anyway I can, if you decide to give it a go, Casey! :-) Anyone else have any thoughts? Cheers, Jon > -----Original Message----- > From: cduncan@kaivo.com [mailto:cduncan@kaivo.com] > > Jon Edwards wrote: > > > > Casey, does the same logic apply if I ask you to "CMF-ise" > DocumentLibrary? > > ;-) > > > > I'm afraid that I have to "CMF-ise" myself first, which I am presently > not incredibly motivated to do. However, bribery has been known to > enhance my motivation 8^) > > -- > | Casey Duncan > | Kaivo, Inc. > | cduncan@kaivo.com > `------------------> > _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From gitte@mmmanager.org Tue Jul 3 16:59:03 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 3 Jul 2001 17:59:03 +0200 Subject: [Zope-CMF] Where do CMF get the "Creator" variable from ? Message-ID: <01070316274304.08433@squidbitch.mmmanager.org> Hello, I would like to be able to display my users real name instead of just their username. I have added a property to the memberdata object called real_name. Now I want to display my users realname in the blark at my CMF portal. In the code for the Blackfolder_view method it display the &dtml-Creator; variable. So I thought that maybe I could find the user object with the Creator ID and ask for the real name. But no ... I have tried this: But I get this error: Error Type: AttributeError Error Value: 'None' object has no attribute 'real_name' So I guess it isn't a valid user object it returns. Any ideas ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: ..Unix, MS-DOS, and Windows NT (also known as the Good, the Bad and the Ugly). - Matt Welsh From sedat@kibele.com Tue Jul 3 18:15:47 2001 From: sedat@kibele.com (Sedat Yilmazer) Date: Tue, 3 Jul 2001 20:15:47 +0300 Subject: [Zope-CMF] Where is the file_edit Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0092_01C103FC.F3498C50 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0093_01C103FC.F3498C50" ------=_NextPart_001_0093_01C103FC.F3498C50 Content-Type: text/plain; charset="windows-1254" Content-Transfer-Encoding: quoted-printable =20 I have created a Windows client to upload office docs to a CMF folder. = But I am not happy with the implementation and would like to switch to = xmprpc ( OK I want to plat with it a little bit) =20 Now, I can create the f'ile by calling the invokeFactory, Set the = metadata via setXxxxx methods but I could not find anything like = 'file_edit' anywhere inn the zope installation. Where is it? how it is = get called? =20 Note: Does anybody have a sample on creating a doc. in CMF portal? =20 Sedat Yilmazer Kibele Iletisim Sis. ve Serv. Ltd. =20 ------=_NextPart_001_0093_01C103FC.F3498C50 Content-Type: text/html; charset="windows-1254" Content-Transfer-Encoding: quoted-printable
 
 I have created=20 a Windows client to upload office docs to a CMF folder. But I am not = happy with=20 the implementation and would like to switch to xmprpc ( OK I want to = plat with=20 it a little bit)
 
 Now, I can=20 create the f'ile by calling the invokeFactory,  Set the metadata = via=20 setXxxxx methods but I could not f=FDnd anything like 'file_edit' = anywhere inn the=20 zope installation. Where is it? how it is get = called?
 
Note: = Does anybody=20 have a sample on creating a doc. in CMF portal?
 
Sedat Yilmazer
Kibele Iletisim Sis. ve Serv.=20 Ltd.
 
------=_NextPart_001_0093_01C103FC.F3498C50-- ------=_NextPart_000_0092_01C103FC.F3498C50 Content-Type: application/octet-stream; name="Sedat Yilmazer (E-mail).vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Sedat Yilmazer (E-mail).vcf" BEGIN:VCARD VERSION:2.1 N:Yilmazer;Sedat FN:Sedat Yilmazer (E-mail) ORG:Kibele TEL;WORK;VOICE:+90 (212) 293 05 80 TEL;CELL;VOICE:+90 (532) 272 68 89 TEL;WORK;FAX:+90 (212) 292 07 44 ADR;WORK;ENCODING=3DQUOTED-PRINTABLE:;;Somuncu Sok. = 17/5=3D0D=3D0AFindikli;Beyoglu;ISTANBUL;80040;Turkey LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:Somuncu Sok. = 17/5=3D0D=3D0AFindikli=3D0D=3D0ABeyoglu, ISTANBUL 80040=3D0D=3D0ATurkey EMAIL;PREF;INTERNET:sedat@kibele.com REV:20010330T091840Z END:VCARD ------=_NextPart_000_0092_01C103FC.F3498C50-- From seb@jamkit.com Tue Jul 3 19:13:47 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 3 Jul 2001 19:13:47 +0100 Subject: [Zope-CMF] Where is the file_edit In-Reply-To: ; from sedat@kibele.com on Tue, Jul 03, 2001 at 08:15:47PM +0300 References: Message-ID: <20010703191346.I19615@lenin.jamkit.com> * Sedat Yilmazer [010703 18:20]: > > I have created a Windows client to upload office docs to a CMF folder. But I am not happy with the implementation and would like to switch to xmprpc ( OK I want to plat with it a little bit) > > Now, I can create the f'ile by calling the invokeFactory, Set the metadata via setXxxxx methods but I could not find anything like 'file_edit' anywhere inn the zope installation. Where is it? how it is get called? If you look in CMFDefault/File.py, you'll see a method called 'edit', which should tell you all you need to know... > Note: Does anybody have a sample on creating a doc. in CMF portal? What do you mean, creating a doc? There's lots of examples of creating files etc in the CMFDefault skins. hth seb From norman@khine.net Tue Jul 3 19:07:15 2001 From: norman@khine.net (Norman Khine) Date: Tue, 3 Jul 2001 19:07:15 +0100 Subject: [Zope-CMF] CatalogQuery-0.1 not showing in the drop-down menu Message-ID: Hi Casey, Thanks for the advice, but unfortunantly, I don't understand it. This is what I have done so far: Using my existing ZCatalog from the CMF I clicked on the vocabulrly folder and queried this?! The query field looks the same as before I installed the CatalogQuery-0.1, just one box. So I am assuming that we use DTML Methods to create the search, so looking at the example you kindly supplied me with I get an error Error Type: SyntaxError Error Value: invalid syntax (line 1) Q. How do I use the product to query the CMF Catalog. Many thankx Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From cduncan@kaivo.com Tue Jul 3 19:02:46 2001 From: cduncan@kaivo.com (Casey Duncan) Date: Tue, 03 Jul 2001 12:02:46 -0600 Subject: [Zope-CMF] Re: CatalogQuery-0.1 not showing in the drop-down menu References: Message-ID: <3B4208C6.4D840815@kaivo.com> Norman Khine wrote: > > Hi Casey, > Thanks for the advice, but unfortunantly, I don't understand it. > > This is what I have done so far: > > Using my existing ZCatalog from the CMF I clicked on the vocabulrly folder > and queried this?! The query field looks the same as before I installed the > CatalogQuery-0.1, just one box. So I am assuming that we use DTML Methods to > create the search, so looking at the example you kindly supplied me with > > > > I get an error > > Error Type: SyntaxError > Error Value: invalid syntax (line 1) > > Q. How do I use the product to query the CMF Catalog. > > Many thankx > > Norman > Sorry, that should have read: Please read: http://www.zope.org/Members/Kaivo/CatalogQuery/HowTo for more information. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------> From marc@bowery.com Tue Jul 3 19:04:17 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 03 Jul 2001 14:04:17 -0400 Subject: [Zope-CMF] Re: MFPhotoAlbum-0.22.tar.gz In-Reply-To: Message-ID: A bug in the doc! Thanks... > From: Joachim Schmitz > Date: Tue, 3 Jul 2001 19:52:28 +0200 (CEST) > To: marc lindahl > Subject: Re: MFPhotoAlbum-0.22.tar.gz > > Hi Marc, > > that did it, so perhaps you should update your INSTALL.txt: > from: > > Once you import this thing into your Products directory > > to: > go to you Zope-Root and issue the command: > > tar xvzf CMFPhotoAlbum-0.22.tar.gz > > then restart Zope. Under control_panel/Products you should find: > > CMFPhotoAlbum > > Apparently you created the distribution with the distribution tab, not with > import/export. > > Thanks for the fast reply. > > From sedat@kibele.com Tue Jul 3 19:23:46 2001 From: sedat@kibele.com (Sedat Yilmazer) Date: Tue, 3 Jul 2001 21:23:46 +0300 Subject: [Zope-CMF] Where is the file_edit In-Reply-To: Message-ID: Hi Ok I have found the missing link - The skins.. I was grep'ing on python = files and there was nothing... But my problem still there since the 'edit' method requires a file = object with a name attached. xmlrpc does not have a 'file' parameter = type. Maybe we should introduce a file parameter type name contentType filedata . This way we can use all of the available methodes as they are. =20 Any suggestions/pointer/products in this direction? Sedat=20 =20 -----Original Message----- From: seb@lenin.jamkit.com [mailto:seb@lenin.jamkit.com]On Behalf Of seb bacon Sent: Tuesday, July 03, 2001 9:14 PM To: Sedat Yilmazer Cc: zope-cmf@zope.org Subject: Re: [Zope-CMF] Where is the file_edit * Sedat Yilmazer [010703 18:20]: > =20 > I have created a Windows client to upload office docs to a CMF = folder. But I am not happy with the implementation and would like to = switch to xmprpc ( OK I want to plat with it a little bit) > =20 > Now, I can create the f'ile by calling the invokeFactory, Set the = metadata via setXxxxx methods but I could not find anything like = 'file_edit' anywhere inn the zope installation. Where is it? how it is = get called? If you look in CMFDefault/File.py, you'll see a method called 'edit', which should tell you all you need to know... > Note: Does anybody have a sample on creating a doc. in CMF portal? What do you mean, creating a doc? There's lots of examples of creating files etc in the CMFDefault skins. hth seb From khine@btinternet.com Tue Jul 3 19:38:16 2001 From: khine@btinternet.com (Norman Khine) Date: Tue, 3 Jul 2001 19:38:16 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: Message-ID: Hi Jon, Yes, this is exactly what I am looking for, it is great. It is a shame that it does not work with Netscape. I have Netscape 6.1 installed, and upon loading of the item to edit I get the title, summary, BUT then I only get a blank area where the actual body text should be. The browser is not locked though. The browser-sniffer is not working, as you say, as it should bring up the normal text area. Thanks Norman -----Original Message----- From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] Sent: 03 July 2001 17:38 To: Norman Khine Subject: RE: [Zope-CMF] Re: Our CMF-CMS Demo Hi Norman, Thanks for your comments (did you mean to CC the CMF-list by the way, I think there's a few people on there tackling similar problems?) I'll have a more detailed look, but in the meantime, here's a quick link that might help - http://cmf.zope.org/Members/joned/index_html/view near the bottom you'll see "WYSIWYG CMF Document Editor". Follow the simple instructions, and hey presto! WYSIWYG editing for CMF Documents. The link you mentioned went dead, but luckily I had already downloaded their code before the site went kaput! Note : IE 4+ only, it seems to be impossible in Netscape. There's a simple browser-sniffer in the code which should give non-IE users the normal textarea, but one person has reported it locked up his copy of Netscape. If you get a chance to test it with Netscape, I'd appreciate any feedback! HTH Cheers, Jon > -----Original Message----- > From: Norman Khine [mailto:khine@btinternet.com] > Sent: 03 July 2001 12:46 > To: Jon Edwards > Subject: RE: [Zope-CMF] Re: Our CMF-CMS Demo > > > Hello Jon, > A very intresting proposal, I am also in the process of > refactoring the CMF > so that it is more "user-friendlier", but must admit my lack of > programming > knowledge lets me down considerably. > > Never the less, I can coble-somthing together, which seems to work for the > local intranet, and hopefully will be released soon for the Internet. > > Your post in April is very informative and has touched on some > issues which > I am having difficulties with, for example, you talk about "d) WYSIWYG > editor - used a Javascript WYSIWYG html editor for all textarea > bits on the edit forms (our editors know little HTML and didnt > want to learn > Structured Text)." > > I have considered using a similar application, but don't know how to > integrate this with the CMF. There was a PHP version somewhere, > but I don't > remeber where. > > Also the link provided does not go anywhere for the editor you use, could > you please provide more details. > > From my opinion, as far as the use of CMF, should be precisely for the > purpose of content mangement that works in a sort of 4-dimensional space: > > 1st dimension - application logic > 2nd dimension - user logic > 3rd dimension - skin/s > 4th dimension - preferences > > Application Logic - this is the core code used to drive the cmf > User Logic - this the code that the site administrator has added > to make the > cmf suited to his/her needs > Skins - this is the layer that sits on top of the application, mainly > aestetic. > Preferences - those are the preferences that each Portal Member > has set. For > example News Items they are intrested to receive only, etc etc.. > > I have a PHP application, that is very similar to the CMF in the > respect of > allowing users to add content and administrators that can administer this > content, and am currently working to transform this for a 100% Zope/CMF. > > Main obsticle so far has been the creation of composite documents > and as you > rightly argue, that there is so much divergence, I think we > should be aiming > to converge the Zope products so that they are all part of the > CMF, with an > option to use them separately, should it be required. > > Of your theory, I would explore (ii) and had considered using HTMLgen > http://starship.python.net/crew/friedrich/HTMLgen/html/main.html, by > creating pre-defined templates for users to add Composite Content > - throught > eh CMF, although still in paper-and-pen stage ;^) > > But I think the biggest leap for zope-kind will be made when "Member A" > types on their document-processor a formatted type (eg MSWord > doc, PDF file, > Excell File, Quark document -- whatever content), this then is > saved on the > cmf and indexed appropriately from the Prefernces of the > application and as > specified by the portal administrator -- and all of this is done > transparrantly -- and available to the Internet/intranet following the > review. > > Perhaps versioning can be accomplished by the versioning tool, > thats already > being used with zope?! > > Any way some food-for-thought. > > All the best > > Norman > > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Jon Edwards > Sent: Tuesday, July 03, 2001 10:59 AM > To: Seb Bacon; Zope-Cmf > Cc: wilson@visi.com > Subject: [Zope-CMF] Re: Our CMF-CMS Demo > > > Tim wrote - > > > I thought this was so cool I submitted the link to Slashdot. Hope that's > OK > > with you! :-) (a joke, don't panic) > > You had me reaching for the valium for a moment there! > > > I would encourage you to post as much info as you can cobble together > about > > your experience working on this. It would seem that this is very similar > to > > what I'd like to try to do with my school's site. > > I'm working on it! I thought Seb's suggestion that people building CMS > functionality on top of CMF should define a few "standards" to improve > interoperability was excellent, so I'm trying to produce something along > those lines. > > (Seb, 'scuse me if I paraphrased you clumsily, any chance you could post > your initial thoughts/examples to get us started... just brief > "back-of-a-cigarette-packet" notes? I think I understand what you > mean, but > I'm finding it hard to verbalise! :-) > > But, in the meantime, if you're looking for a few ideas Tim, I > remembered I > posted an early, clumsy, explanation back in April (seems like a hundred > years ago!) - > > http://lists.zope.org/pipermail/zope-cmf/2001-April/006339.html > > Comments, suggestions, and anything else that helps me kickstart my brain, > welcomed! > > HTH > > Cheers, Jon > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > > > From klm@digicool.com Tue Jul 3 19:33:53 2001 From: klm@digicool.com (Ken Manheimer) Date: Tue, 3 Jul 2001 14:33:53 -0400 (EDT) Subject: [Zope-CMF] tracker (was: Re: Using CMF for a project-centric site?) Message-ID: On Mon, 2 Jul 2001, Jon Edwards wrote: > [...] > You can see the CMF Tracker that Marc mentioned here - > http://www.zope.org/Products/PTK/Tracker - I thought you could download it > as a product, but I can't find any links, so I may be wrong? > [...] The tracker (another in my collection of unsupported beasts) is available from the Zope CVS repository - for instructions about getting it, see: http://www.zope.org/Members/klm/TrackerWiki/TrackerCVSInstructions Someday, hopefully not too far off, we'll see a much more versatile implementation based on the CMF - issues and issue messages as CMF content, workflow tailored to the supporter process (and extensible for each organization's particular resolution workflows!), etc. Tres has looked at this a bit, thinks it should be not hard. Question is, will our priority to create it raise soon enough to beat development by people in the community? (hint hint!-) Ken klm@digicool.com From jon@pcgs.freeserve.co.uk Tue Jul 3 20:55:49 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 3 Jul 2001 20:55:49 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: Message-ID: > -----Original Message----- > From: Norman Khine [mailto:khine@btinternet.com] > Sent: 03 July 2001 19:38 > I have Netscape 6.1 installed, and upon loading of the item to edit I get > the title, summary, BUT then I only get a blank area where the actual body > text should be. The browser is not locked though. errrrr....! The code I used is as follows (gratuitously stolen from a post in the Zope mailinglist archives) - --------------------------------------------------------------------- blahblah blah ...WYSIWYG form blahblah blah ...normal CMF form ------------------------------------------------------------------ So it's odd that the and description are showing up with Netscape, but not the rest of the normal CMF form Can anyone enlighten a poor sinner? Cheers, Jon From jon@pcgs.freeserve.co.uk Tue Jul 3 21:05:43 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 3 Jul 2001 21:05:43 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: Message-ID: D'oh!! I'm so dumb! I bet you're using CMF 1.1? You need to change the bit after the replacing - with - - due to the changes in 1.1 HTH Cheers, Jon > -----Original Message----- > From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] > Sent: 03 July 2001 20:56 > To: Norman Khine > Cc: Zope-CMF > Subject: RE: [Zope-CMF] Re: Our CMF-CMS Demo > > > > -----Original Message----- > > From: Norman Khine [mailto:khine@btinternet.com] > > Sent: 03 July 2001 19:38 > > > I have Netscape 6.1 installed, and upon loading of the item to > edit I get > > the title, summary, BUT then I only get a blank area where the > actual body > > text should be. The browser is not locked though. > > errrrr....! > > The code I used is as follows (gratuitously stolen from a post in > the Zope mailinglist archives) - > --------------------------------------------------------------------- > > > > blahblah > > blah > > > ...WYSIWYG form > > > blahblah > > blah > > > > ...normal CMF form > > > ------------------------------------------------------------------ > > So it's odd that the and description are showing > up with Netscape, but not the rest of the normal CMF form > > Can anyone enlighten a poor sinner? > > Cheers, Jon > From marc@bowery.com Tue Jul 3 21:29:44 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 03 Jul 2001 16:29:44 -0400 Subject: [Zope-CMF] tracker (was: Re: Using CMF for a project-centric site?) In-Reply-To: Message-ID: Sorry, it doesn't seem to be an official product. CMFTracker is in the CVS repository for CMF (not in the releases). I haven't had a chance to try it but I want to set up a site for my engineering projects and use it.... we'll see! > From: Ken Manheimer > Date: Tue, 3 Jul 2001 14:33:53 -0400 (EDT) > To: Jon Edwards > Cc: Zope-Cmf , openspacemovement@yahoo.com > Subject: [Zope-CMF] tracker (was: Re: Using CMF for a project-centric site?) > > On Mon, 2 Jul 2001, Jon Edwards wrote: > >> [...] >> You can see the CMF Tracker that Marc mentioned here - >> http://www.zope.org/Products/PTK/Tracker - I thought you could download it >> as a product, but I can't find any links, so I may be wrong? >> [...] > From marc@bowery.com Tue Jul 3 21:32:04 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 03 Jul 2001 16:32:04 -0400 Subject: [Zope-CMF] CVS download errors... names too long! Message-ID: I'm getting errors with my CVS client (MacCVS 1.6)... it seems like naming conventions might be getting out of hand?? sample: cvs server: Updating CMFWiki/skins/wiki U CMFWiki/skins/wiki/DTML_wiki_copy_page_to_present.dtml Path component =B3DTML_wiki_copy_page_to_present.dtml=B2 is longer than 31 characters. Failed to create temporary file. [error =3D -35] File =B3CMFWiki/skins/wiki/DTML_wiki_copy_page_to_present.dtml=B2 not updated. [error =3D 1] U CMFWiki/skins/wiki/PSCOREDUMPS_wiki_copy_page_to_present_handler.py Path component =B3PSCOREDUMPS_wiki_copy_page_to_present_handler.py=B2 is longer than 31 characters. Failed to create temporary file. [error =3D -35] File =B3CMFWiki/skins/wiki/PSCOREDUMPS_wiki_copy_page_to_present_handler.py=B2 not updated. [error =3D 1] U CMFWiki/skins/wiki/UNUSED_show_wiki_search_results.dtml Path component =B3UNUSED_show_wiki_search_results.dtml=B2 is longer than 31 characters. Failed to create temporary file. [error =3D -35] File =B3CMFWiki/skins/wiki/UNUSED_show_wiki_search_results.dtml=B2 not updated. [error =3D 1] U CMFWiki/skins/wiki/wiki_copy_page_to_present_handler.py Path component =B3wiki_copy_page_to_present_handler.py=B2 is longer than 31 characters. Failed to create temporary file. [error =3D -35] File =B3CMFWiki/skins/wiki/wiki_copy_page_to_present_handler.py=B2 not updated. [error =3D 1] U CMFWiki/skins/wiki/wiki_createform_with_doalternate.dtml Path component =B3wiki_createform_with_doalternate.dtml=B2 is longer than 31 characters. Failed to create temporary file. [error =3D -35] File =B3CMFWiki/skins/wiki/wiki_createform_with_doalternate.dtml=B2 not updated= . [error =3D 1] From klm@digicool.com Tue Jul 3 21:45:36 2001 From: klm@digicool.com (Ken Manheimer) Date: Tue, 3 Jul 2001 16:45:36 -0400 (EDT) Subject: [Zope-CMF] tracker (was: Re: Using CMF for a project-centric site?) In-Reply-To: Message-ID: On Tue, 3 Jul 2001, marc lindahl wrote: > Sorry, it doesn't seem to be an official product. CMFTracker is in the CVS Um, right, the tracker is not supported. (It is "officially" a product, though - in as much as any zope product is a product!-) > Sorry, it doesn't seem to be an official product. CMFTracker is in the CVS > repository for CMF (not in the releases). Last i knew, the checked-in CMFTracker was a skeleton, with most of the fleshed out stuff being help-style use-case documentation, and not much else. > I haven't had a chance to try it but I want to set up a site for my > engineering projects and use it.... we'll see! I'm unsure which tracker you mean by "it". >From your "sorry", i presume not the unsupported (but working) product. But then, it'd be hard just yet to *use* unimplemented CMFTracker.-) (If you're interested enough, you may want to embark on some CMFTracker development. Tres, who's behind what's there, is on vacation at the moment, but i expect would appreciate the interest...) Ken klm@digicool.com From david.d.brown@wamu.net Tue Jul 3 22:26:56 2001 From: david.d.brown@wamu.net (David Brown) Date: Tue, 03 Jul 2001 14:26:56 -0700 Subject: [Zope-CMF] Safety Belts Message-ID: <3B4238A0.1FB24912@wamu.net> As I've been browsing through the source of the CMS, I notice that the safety belt code seems to be duplicated in several places (ZWiki, Document, elsewhere). Isn't this something that should be moved into PortalContent, or perhaps made into it's own mixin? dave From gregoire.weber@switzerland.org Tue Jul 3 23:02:47 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Wed, 04 Jul 2001 00:02:47 +0200 Subject: [Zope-CMF] Where do CMF get the "Creator" variable from ? In-Reply-To: Message-ID: <3.0.6.32.20010704000247.011bcb50@pop.dplanet.ch> Hi Gitte, As I (as Newby) understood portal_membership you have to feed getMemberById with the *id* of an object and not with a (the Creator) property of the object. So try this (not tested): I know the following works with getUserName(), so try this first if the above does not work: If you try to get the Member of an object not created by a Member (e.g. DTML method) getMemberById returns None. So you probably have to check this case to avoid an AttributeError= exception. Hope it helps, Greg > > > >=20 > But I get this error: > Error Type: AttributeError > Error Value: 'None' object has no attribute 'real_name' >=20 > So I guess it isn't a valid user object it returns. _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From chrisw@nipltd.com Wed Jul 4 09:46:06 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 04 Jul 2001 09:46:06 +0100 Subject: [Zope-CMF] tracker (was: Re: Using CMF for a project-centricsite?) References: Message-ID: <3B42D7CE.EC105812@nipltd.com> Ken Manheimer wrote: > > (If you're interested enough, you may want to embark on some CMFTracker > development. Tres, who's behind what's there, is on vacation at the > moment, but i expect would appreciate the interest...) I'm very interested but have about as much time as you guys ATM. Would you be able to help out a newbie if I could find one here at NIP who's interested? cheers, Chris From seb@jamkit.com Wed Jul 4 10:28:18 2001 From: seb@jamkit.com (Seb Bacon) Date: Wed, 4 Jul 2001 10:28:18 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: ; from jon@pcgs.freeserve.co.uk on Tue, Jul 03, 2001 at 10:58:30AM +0100 References: Message-ID: <20010704102818.J19615@lenin.jamkit.com> * Jon Edwards [010703 11:00]: > I'm working on it! I thought Seb's suggestion that people building CMS > functionality on top of CMF should define a few "standards" to improve > interoperability was excellent, so I'm trying to produce something along > those lines. > > (Seb, 'scuse me if I paraphrased you clumsily, any chance you could post > your initial thoughts/examples to get us started... just brief > "back-of-a-cigarette-packet" notes? I think I understand what you mean, but > I'm finding it hard to verbalise! :-) That's pretty much what I meant, although I'd go further and say a standard should the basis for a community implementation, too. I see a need for a community / DC standard for a CMF-based CMS, which takes the best from all worlds. It should follow the principles DC has layed out for the CMF - a framework, not an application[1]. Then people can build on top of it however they want. I haven't looked closely at Kontentor or MetaPublisher yet, and should do. The main problems, I think, are: - Page composition. How are pages composed? There have been some discussions about CompositeContainers and the like elsewhere. It would be nice if the vanilla CMF Types could be used as bits of pages - a text block here, an Image there. Structurally, I think pages should follow the Composite pattern [2] so that they can be recursively composed. You should be able to create widgets, sets of widgets, images, groups of images, etc, and treat them all uniformly. You'd have to mixin some extra funtionality to the components to acheive this, though. - Template (layout) editing. Should the user / site manager be able to create their own templates TTW, or is this a function of the Developer / Designer? If a user can add, for example, an image to a page layout, how is it added? Should we borrow from the various flavours of layout managers available in GUI toolkits? Or should we be hiding this complexity from the user? - Navigational control We need a standard framework for creating navigations, so they can be 'dropped in' to any site. A natural one is to use the Zope folder hierarchy, and build navigations by walking the tree(s). If we do this, we lose the ability to be location-neutral with content; on the other hand, we gain simplicity by reusing an existing metaphor. There is a proposal about defining the relationships between documents, I think by Ken, which may be relevant here, but I can't access the proposals folder on the dogbowl to check. Other (simpler) issues, some one which are not necessarily 'framework' problems, are: - UI (edit items in situ, or from a different location) - Other functions of navigation / site structure, like page ordering - Fine-grained 'Template' security: it should be possible to restrict content type creation by role, TTW - Same goes for skins Well, that'll do for starters :-) seb -- [1] See Shane's escape velocity metaphor: http://lists.zope.org/pipermail/zope-cmf/2001-May/007030.html [2] I'm referring to the 'gang of four' pattern. Note for uninitiated - Design Patterns, by Gamma et al: http://www.amazon.com/exec/obidos/ASIN/0201633612/ From james@codenamefuture.nl Wed Jul 4 10:09:33 2001 From: james@codenamefuture.nl (James van der Veen) Date: Wed, 4 Jul 2001 11:09:33 +0200 Subject: [Zope-CMF] Date in Dublin Core Message-ID: <11204746D436D411A6F90004AC5396110D8462@EXCHSRVR1> Hi all, I would like to change the date format to dd/mm/yyyy I think I should do that in de Dublin Core.py module but thanks to my lack of knowledge of python I would like to ask how to change these lines: def Date( self ): """ Dublin Core element - default date Return type: string, formatted 'YYYY-MM-DD H24:MN:SS TZ' Permissions: View """ Hope someone can help me with this. Greetz, James From gregoire.weber@switzerland.org Wed Jul 4 10:12:07 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Wed, 04 Jul 2001 11:12:07 +0200 Subject: [Zope-CMF] How to work with topics? In-Reply-To: Message-ID: <3.0.6.32.20010704111207.0118d060@pop.dplanet.ch> Hi Sedat, sorry about the big delay, my inbox was so full that after a first read of your e-mail I have overseen it later. Topics appear in the New... object list under "My Stuff" if Members are allowed to "Add portal topics". So you can achieve this by enabling the "Add portal topics" for Members in the Security view of your CMF-Folder. I would recommend to have a look at all permissions. There are a lot of CMF related settings which allow you to 'customize' the behaviour of your CMF instance. Look also at my answer in the same thread: http://zope.nipltd.com/public/lists/ptk-archive.nsf/46f09f5796214c13802568c1 00635ff2/3004e8e8627769cd80256a700066a1a3?OpenDocument Greg At 16:16 01.07.01 +0300, you wrote: >=20 > Hi Gregoire >=20 > I have seen your mails on the cmf-zope mailing list about CMF Topics. I am having the very same problems. I did all that was written on http://cmf.zope.org/doc/admin/AddingTopicsToTheBeta Then I set the "Add Toptal topic" for everybody But then could not find where the "Add content" screen is ? If this is the "new" button then there is no item "Topics" to check >=20 >=20 > For the message from Gitte There is no button/link/action to add topics >=20 > =3D=3D=3D=3D Gittes message > All these portal types (portal content) should be "handled" from the= portal=20 > itself. > Go to your CMF site and login (or join if you are not a member). Then= click=20 > on the "My Stuff" link and you will end up in your member folder. From there=20 > you can add a topic and set it's criteria. > ^^^^^^^^^^^ > Regards, > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 >=20 > Could you share your experience >=20 > Best Regards > Sedat Yilmazer > Kibele Iletisim Sis. ve Serv. Ltd. _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From seb@jamkit.com Wed Jul 4 11:00:02 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 4 Jul 2001 11:00:02 +0100 Subject: [Zope-CMF] Date in Dublin Core In-Reply-To: <11204746D436D411A6F90004AC5396110D8462@EXCHSRVR1>; from james@codenamefuture.nl on Wed, Jul 04, 2001 at 11:09:33AM +0200 References: <11204746D436D411A6F90004AC5396110D8462@EXCHSRVR1> Message-ID: <20010704110000.L19615@lenin.jamkit.com> I presume the YYYY-MM-DD is the ISO date format, as per the DublinCore spec, so it wouldn't be ideal to change it. The effective_date and expiration_date properties, however, are DateTime objects which you can format as you wish in dtml. You can either use them, or bobobase_modification_time if that's what you're interested in. See the Book DTML Reference for examples of how to use the fmt attribute of to format dates. seb * James van der Veen [010704 10:08]: > Hi all, > > I would like to change the date format to dd/mm/yyyy > I think I should do that in de Dublin Core.py module but thanks to my lack > of knowledge of python I would like to ask how to change these lines: > > def Date( self ): > """ > Dublin Core element - default date > > Return type: string, formatted 'YYYY-MM-DD H24:MN:SS TZ' > Permissions: View > """ > Hope someone can help me with this. > > > Greetz, > James > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From gregoire.weber@switzerland.org Wed Jul 4 10:42:38 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Wed, 04 Jul 2001 11:42:38 +0200 Subject: Member Page options (was Re : [Zope-CMF] get a members name / 'project' object into a member folder) Message-ID: <3.0.6.32.20010704114238.0115a140@pop.dplanet.ch> Sorry, forgot to copy to the list: Hi Jon, Tanks a lot for your answers, they helped me! > You might want to check out the DCWorkflow product - > http://cmf.zope.org/Members/hathawsh/DCWorkflow-0.2.tar.gz/view - to help > you configure your workflow better. There's also been some recent > discussions about workgroups, see the wonderful "CMF Week in Review 2" - > http://cmf.zope.org/news/weekly/20010614 ;-) I'm just trying to construct a new workflow (paused the=20 last few days). There is not a lot of doc around this=20 CMF-Product, so I'll see, what I am able to do. > I'm facing a similar problem to you - lots of organisations which need= kinda > sub-portals - so it would be good to bounce some ideas round! Yes, we can do that! For me it would be nice if the subportals could 'talk'=20 to each other and the main portal. Every (sub-)portal=20 should have the possibility to subscribe to the news=20 channels of other subportals and list their news=20 in their own news channel. So there is a need for the opposite of FFS/RSS and a=20 kind of trigger to inform about new object to be=20 reviewed for listing in the own portals news channel. Greg _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From gregoire.weber@switzerland.org Wed Jul 4 10:48:06 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Wed, 04 Jul 2001 11:48:06 +0200 Subject: Member Page options (was Re : [Zope-CMF] get a members name / 'project' object into a member folder) In-Reply-To: References: <3.0.6.32.20010704112626.011f9570@pop.dplanet.ch> Message-ID: <3.0.6.32.20010704114806.0115eec0@pop.dplanet.ch> Hi Jon, > I think I have answers to some of your problems (well, "proto-types" is > probably a better word)! Hu, cool! I would be interested if you have time to talk and discuss about= it. On my side I am working on a demo prototype, but not with nested cmf=20 instances. That would be for the time after the prototype. > But would you mind resending this message, and copying it to the CMF-list? > There's a few people wrestling with similar problems, and it helps to have > all the dicsussions in one place. :-) I just forgot as every second time :-( Greg _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From seb@jamkit.com Wed Jul 4 12:42:43 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 4 Jul 2001 12:42:43 +0100 Subject: [Zope-CMF] site down Message-ID: <20010704124243.Q19615@lenin.jamkit.com> Just in case DC folks weren't aware - the Dogbowl is Down: http://cmf.zope.org/Members/ Error type: Disconnected Error value: This action is temporarily unavailable.

From vcherep@yahoo.com Wed Jul 4 13:52:12 2001 From: vcherep@yahoo.com (Volodymyr Cherepanyak) Date: Wed, 04 Jul 2001 15:52:12 +0300 Subject: [Zope-CMF] Yet Another CMF Site (yACS) Message-ID: <3B43117C.D87839E6@yahoo.com> We, are polishing look and functionality of our portal: http://www.uorbi.com/ It is place where people can post resume and search them. It is CMF 1.0 and we are not porting to CMF 1.1 yet because different architectureal nuances. Link is slow, so be patient, please :) We'd like to get feedback. Tips and Tricks: Classical CMF functionalty can be achieved only in Basic skin. Thanks, Volodymyr Cherepanyak From jon@pcgs.freeserve.co.uk Wed Jul 4 14:58:06 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 4 Jul 2001 14:58:06 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation Message-ID: I have a half-baked idea - Modular Documentation for the CMF and CMF-related products. The best comparison would be with the help-pages that are included with some Zope products (except we're aiming the docs at end-users, not Zopers). So, new/existing documentation is broken down into bite-sized chunks of low-level html text - nothing more complicated than a

or tag allowed, in fact the community could define a set of "permitted tags" (though we might need something fancier to allow screenshots to be included?). We could also define standard formats for a help-doc, e.g. each doc should have, header, intro, explanation of each function, page headers should be

, section headers should be

, and so on? Producers of CMF-products, or people training end-users, then have a range of readymade doc fragments (to which they add their own, for their specific needs) which they can bundle together, apply their own stylesheet and pageheaders/footers, and hey-presto, a user manual! If I use some of Swishdot's functionality in one of my projects, I just take the doc-fragments for the Swishdot functions I'm using and bundle them up with the bits I need from other products, as above. When some functionality changes, only a small amount of documentation needs to be altered and reprinted/redistributed. I think this is similar to what the ZDP aimed to achieve? It'd be interesting to find out why they didn't get a better uptake. It may be that the modular/plug-n-play nature of CMF is better suited to this approach? There's more incentive for people producing products to use the standard, as they gain by being able to use all the other readymade docs in their own user-manual? Does that sound bakeable? :-) Cheers, Jon From marc@bowery.com Wed Jul 4 15:33:18 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 04 Jul 2001 10:33:18 -0400 Subject: [Zope-CMF] Suggestion - Modular Documentation In-Reply-To: Message-ID: > From: "Jon Edwards" > > So, new/existing documentation is broken down into bite-sized chunks of > low-level html text - nothing more complicated than a

or tag > allowed, in fact the community could define a set of "permitted tags" > (though we might need something fancier to allow screenshots to be > included?). We could also define standard formats for a help-doc, e.g. each > doc should have, header, intro, explanation of each function, page headers > should be

, section headers should be

, and so on? CSS would be good for this... From andrew@digicool.com Wed Jul 4 18:41:38 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Wed, 4 Jul 2001 10:41:38 -0700 Subject: [Zope-CMF] site down References: <20010704124243.Q19615@lenin.jamkit.com> Message-ID: <000a01c104b0$94394160$109ff9d0@enfer.netcasting.net> I've restarted it. back up and running again. Andrew ----- Original Message ----- From: "seb bacon" To: Sent: Wednesday, July 04, 2001 4:42 AM Subject: [Zope-CMF] site down > Just in case DC folks weren't aware - the Dogbowl is Down: > > http://cmf.zope.org/Members/ > > Error type: Disconnected > Error value: This action is temporarily unavailable.

> > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From seb@jamkit.com Wed Jul 4 16:35:45 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 4 Jul 2001 16:35:45 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation In-Reply-To: ; from jon@pcgs.freeserve.co.uk on Wed, Jul 04, 2001 at 02:58:06PM +0100 References: Message-ID: <20010704163544.S19615@lenin.jamkit.com> ( use StructuredTextNG, not HTML ... ) I think a doc-as-you-go standard is a very good idea. You're thinking of users *and* developers, right? The requirements are very different for these groups. For developers, the most important documentation apart from the source (including, preferably, interfaces and nice comments) would probably be an API for the tools / services - which should be plugged into the Overview tab. For users, since at least half of user documentation is related to the UI, the correct place for help is with each skin. I'm not sure how reuseable help would be between skins. Do you have any examples in mind to demonstrate how you think it might work? In principle it's an excellent idea, but requires a lot of discipline by developers and simple, strong, easy to follow documentation guidelines / APIs, and a lot of metawork - in other words, someone to drive it who's got quite a lot of spare time. I think this has been a problem with ZDP quite often. seb * Jon Edwards [010704 15:03]: > I have a half-baked idea - Modular Documentation for the CMF and CMF-related > products. > > The best comparison would be with the help-pages that are included with some > Zope products (except we're aiming the docs at end-users, not Zopers). > > So, new/existing documentation is broken down into bite-sized chunks of > low-level html text - nothing more complicated than a

or tag > allowed, in fact the community could define a set of "permitted tags" > (though we might need something fancier to allow screenshots to be > included?). We could also define standard formats for a help-doc, e.g. each > doc should have, header, intro, explanation of each function, page headers > should be

, section headers should be

, and so on? > > Producers of CMF-products, or people training end-users, then have a range > of readymade doc fragments (to which they add their own, for their specific > needs) which they can bundle together, apply their own stylesheet and > pageheaders/footers, and hey-presto, a user manual! > > If I use some of Swishdot's functionality in one of my projects, I just take > the doc-fragments for the Swishdot functions I'm using and bundle them up > with the bits I need from other products, as above. > > When some functionality changes, only a small amount of documentation needs > to be altered and reprinted/redistributed. > > I think this is similar to what the ZDP aimed to achieve? It'd be > interesting to find out why they didn't get a better uptake. It may be that > the modular/plug-n-play nature of CMF is better suited to this approach? > There's more incentive for people producing products to use the standard, as > they gain by being able to use all the other readymade docs in their own > user-manual? > > Does that sound bakeable? :-) > > Cheers, Jon > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From vcherep@yahoo.com Wed Jul 4 16:08:45 2001 From: vcherep@yahoo.com (Volodymyr Cherepanyak) Date: Wed, 04 Jul 2001 18:08:45 +0300 Subject: [Zope-CMF] Yet Another CMF Site (yACS) References: Message-ID: <3B43317D.1F97367E@yahoo.com> Norman Khine wrote: > Your Employment site is really cool, tell though what type of architectural > problems are you experiencing? One annoying thing is that the use of ActiveX > slows down the progress, not many people would have their settings as you > would expect them to. > > Did you build two sets of skins one for Employer and the other for employee, > if so from the registration method can you explain how you manage to do this. > > Also are you using the ZODB or a relational database to store your results. I > am looking to do a similar job board but was following the > http://www.devshed.com/Server_Side/MySQL/PerfectJob/ setup. It is very similar > to your settup, I suppose. > > Any how keep up the good work > > Regards > > Norman Thanks Norman, Regarding our architectural problems: I posted question "New CMF, old Content issue" on 22nd of June on zope-cmf: http://lists.zope.org/pipermail/zope-cmf/2001-June/007756.html Everything is implemented as ZClasses. (Now we are working on python translation.) ActiveX is because of Flash banner(s) and is only for now, on this development stage. We got several skins but they are just for visualization. Employer and Employee have corresponding roles besides Member. We are using ZODB now, it looks quite OK. As soon as ZODB become suffering we will switch to Oracle. Regards, Volodymyr Cherepanyak. From jon@pcgs.freeserve.co.uk Wed Jul 4 17:29:24 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 4 Jul 2001 17:29:24 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation In-Reply-To: <20010704163544.S19615@lenin.jamkit.com> Message-ID: > ( use StructuredTextNG, not HTML ... ) bleeeucccch!! Am I the only person in the world who doesn't "get" Structured-Text? (That was a rhetorical question, *please* don't answer it! I know it's just laziness on my part!) ;-) > I think a doc-as-you-go standard is a very good idea. You're thinking > of users *and* developers, right? Well, I'm thinking of users. I wouldn't feel even slightly qualified to produce docs for developers, but if a similar approach would work for them, that's a bonus. But I know that, sooner or later, I'm going to have to write training-notes and user-manuals for our customers, so that was my motivation. > The requirements are very different > for these groups. For developers, the most important documentation > apart from the source (including, preferably, interfaces and nice > comments) would probably be an API for the tools / services - which > should be plugged into the Overview tab. Actually, I think there are three "audiences" for CMF, each of which needs their own documentation (and this kinda links back to last week's discussion about how to market the CMF against more commercial competitors) - 1. Developers - a wide range, but I would *very* broadly define this as "most people who subscribe to this list" - people who are going to use DTML and/or Python to customise CMF. 2. Integrators (there must be a better word for this?) - people in the IT departments of the SMEs mentioned last week, who are looking for an "instant intranet" and need to know how to install and do some basic customisation/setup, without needing to learn any DTML/Python. (They also want to find some docs to print out for their users - if these docs are easily customisable by anyone with a basic knowledge of HTML/CSS, so much the better). 3. End-users - the "customers" of groups 1 and 2. From bitter experience, I know that these people have a congenital allergy to F1/Help keys! You have to give them dead-trees! > For users, since at least half of user documentation is related to the > UI, the correct place for help is with each skin. I'm not sure how > reuseable help would be between skins. Do you have any examples in > mind to demonstrate how you think it might work? I think you're right, the skin-level is the perfect way to divide documentation into "chunks". So, for example, there's a help-doc for the folder-contents screen. If your product uses folder_contents "as is", you have a readymade page for your manual. If you customise folder_contents, you customise the help-doc to match. If you're distributing your product to a wider audience, you include your customised help-doc in the package. > In principle it's an excellent idea, but requires a lot of discipline > by developers It would be very much a "voluntary standard" - if you're producing a product that you hope will be used widely, it's in your interests to use the standard, as it means less work for you to produce user-documentation, and it means your documentation is easy for the Integrators to slot into the "CMF Manual" for their end-users. > and simple, strong, easy to follow documentation > guidelines / APIs, and a lot of metawork - in other words, someone to > drive it who's got quite a lot of spare time. Well, I think perhaps it's the sort of thing someone at DC should "own", if they think it's a good idea? But, as I said, at some point I'm gonna have to do user-docs (and there must be other people in a similar situation?), so I'd be happy to contribute. Hope that makes sense? Cheers, Jon From seb@jamkit.com Wed Jul 4 20:22:48 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 4 Jul 2001 20:22:48 +0100 Subject: [Zope-CMF] workflow probs Message-ID: <20010704202248.C25562@lenin.jamkit.com> I'm using a recent CMF, and I'm finding workflow-wrapped methods aren't getting reindexed. The problem appears to be rooted in the wrapWorkflowMethod function from WorkflowCore pasted below; it only calls an object 'with notification' if its Workflow has a method called 'isWorkflowMethodSupported' - and only the DCWorkflow answers this description currently. One for the Tracker? seb ---- security.declarePrivate('wrapWorkflowMethod') def wrapWorkflowMethod(self, ob, method_id, func, args, kw): ''' To be invoked only by WorkflowCore. Allows a workflow definition to wrap a WorkflowMethod. ''' wf = None wfs = self.getWorkflowsFor(ob) if wfs: for w in wfs: if (hasattr(w, 'isWorkflowMethodSupported') and w.isWorkflowMethodSupported(ob, method_id)): wf = w break else: wfs = () if wf is None: # No workflow wraps this method. return apply(func, args, kw) return self._invokeWithNotification( wfs, ob, method_id, wf.wrapWorkflowMethod, (ob, method_id, func, args, kw), {}) From jon@pcgs.freeserve.co.uk Thu Jul 5 00:10:46 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Thu, 5 Jul 2001 00:10:46 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo (LONG!) In-Reply-To: <20010704102818.J19615@lenin.jamkit.com> Message-ID: > -----Original Message----- > From: seb@lenin.jamkit.com [mailto:seb@lenin.jamkit.com]On Behalf Of Seb > Bacon > Sent: 04 July 2001 10:28 > > > just brief "back-of-a-cigarette-packet" notes? Thanks Seb, that helps a lot. That's a big cigarette-packet, what are you smoking? ;-) > That's pretty much what I meant, although I'd go further and say a > standard should the basis for a community implementation, too. Sorry, I didn't mean to imply that only people currently working on a CMS should contribute > I see a need for a community / DC standard for a CMF-based CMS, > which takes the best from all worlds. It should follow the principles > DC has layed out for the CMF - a framework, not an application[1]. So, in layman's terms, we're trying to produce a spec for a "portal_CMS" tool? Different people can produce different versions (just as they can with the portal_workflow tool), but as long as they all adhere to that spec, users will be able to pick and choose which one they use? Actually, to use your examples below, you might have several tools - portal_layout, portal_navigation, portal_compdocument, etc. In an ideal world, it would be great if they were all interchangeable (so you could use one CMS' portal_layout with another CMS' portal_navigation), but that's maybe a bit over-ambitious for now? :-) I'm not qualified to design the underlying API structure (to me, "Design Patterns" are what my girlfriend looks at when she's choosing new curtains) but I've added my thoughts below, in the hope that they might help! Personally, I subscribe to the "Lumberjack" methodology of software design - keep hacking till it falls into place! ;-) Warning : What follows is very long, cos I've tried to explain how we do it now, and how I think it should be done (or how I intend to rewrite it) > The main problems, I think, are: > > - Page composition. > > - Template (layout) editing. In our system (see the original post in this thread if you want to login as an editor and play along!), I think we're working along the lines you describe for Page Composition. Each page is a folder, with properties that determine what it looks like and what it contains. The main ones are - ------------------------------------------------------------------------ Layout choice - - which page template/skeleton to use. Properties for everything except the central "body" of the page are stored in the layout - handy for quickly creating consistent pages, but means you have to create a new layout even for small changes (like having a different header-colour for different sections of your site, for example). I'm thinking of storing more of these properties at the page-level, then when you add a new page, it automatically pulls its properties from the next above it in the hierarchy. That way you, hopefully, get the best of both worlds - quick and easy to add new pages that fit the look of the rest of the site, but with the ability to tweak them if necessary. ----------------------------------------------------------------------- Stylesheet - - the combination of being able to pick from several different layouts and stylesheets solves one of the problems of the "portals within portals" discussion - different sections of your site can have different layouts and colour-schemes, but you can still inherit things like headers or news-box from higher up, giving some consistent elemnts across all your "sub-portals". See also the ideas about making stylesheets more editable (and creating a Site StyleGuide) in the thread about the wysiwyg editor. ----------------------------------------------------------------------- Section choice - - a picklist of which method to show in the central "body" of the page. If I had composite-docs, this is where I'd see most use for them - composite docs created anywhere on the site would be included in the picklist (perhaps with some filtering according to what section you are in, and what permissions the page editor has?). At the moment, each one is a dtml-method (which functions a bit like a composite-doc would). I think every one of the methods in the list will work from any page in the site, so feel free to try a few! Though some of them may give an empty page, depending on whether there are any content-objects in the folder you are playing with. All the methods live happily together in a folder in skins, and when you choose one, you are not copying anything into your page-folder, just calling the method. Gregoire, I think this solves the problem you mentioned for "portals within portals", where you want some content to be "syndicated" within the site, without the hassle of RSS? For example, you can select the "PCG Announcements" option for any page in the site. The content will be the same, but the page-layout of that section may be different, and the stylesheet properties may be different, so that it fits in with the local design. These methods are of three types - 1. Methods that do something with the content-objects stored in the actual page-folder itself - "List all items", "List selected items", "Members Weblog", and "Sub-folders list". "Members Weblog" for example, isn't a real weblog! It just displays all the documents in its folder, in reverse order of last-modified date. (a quick hack for now, until I get time to play with Blark properly!) 2. Methods that display contents from a "hidden folder" - "PCG Announcements", "Logolinks", and "Self-help page". Normally, whenever you add a new page, it will automatically be shown in the menu on the left. But if you go to the Home Page, then click "Folder Contents", you'll see "xannouncepage", "xlogolinkpage" and "xselfhelppage". These have an extra "ishidden" property to stop them being displayed by the menu (and I prefixed them with "x" in case someone added one with the same name, by accident - must find a better way to do this!). If you click on xannouncepage, for example, you'll see all the documents that are displayed by the "PCG Announcements" method. Add a new document here (nothing rude please!), and it will be shown by that method, wherever it is used in the site. 3. Methods that pull content from outside the portal - most of the "News" sections are just displaying methods that live in the root of the site, above the portal (so that they can be used in any portal) - this may change once we get the incoming-syndication tool, but it's a handy trick for sharing content across several portals. ----------------------------------------------------------------------- Introduction - - a text property of each pagefolder. This text gets shown at the top of the centre/body of the page. For simple pages, you could actually just type all your content in here. It's also handy when you are using the "internally syndicated" methods mentioned above, as it means you can have a custom intro above the standard content. ------------------------------------------------------------------------ To improve the structure of it all, I wonder if we need an extra object - something like "Content-object-style"? Describes how a content-object should be displayed in a particular context, just as a CSS-style describes how a chunk of text should be displayed in a particular context. You'd use these, somehow, to define how content-objects should be displayed in composite docs/layouts. Another half-baked idea! :-) ----------------------------------------------------------------------- After logging-in to the demo, go to the Home page. Click "Change Folder" on the actions-bar at the top. This form shows you the properties stored for the page. Most should be self-explanatory, "Section choice" tells it which method to display in the body of the page. With the "Layout choice" dropdown, select option 5. (N.B. Don't try layout 1 - it's one i hacked for a demo, that won't work on most pages) Click the "Change" button, then "View" (OK, it's a very similar layout, but you get the idea! ;-) Click "Change Folder". Click the "Edit Page Layout" link next to the dropdown. Try different colours and borders, but don't change the "Content" settings or you'll break it (I need to make a select box for these of allowed content). Click "View" to see your changes. Also try different stylesheets and then click "Edit Stylesheet" to play around with different fonts and colours. Change the "Content" setting for "Cell 1" from "pcg_pagesmenu" to "pcg_pagesmenu2". "View" the page, and the menu on the left will now be a tree-menu (autogenerated by looking at the folder hierarchy underneath) In terms of the "portals within portals" issue, the one thing I haven't done is the ability to restrict searches to sub-portals only, rather than the whole site (this would also apply to the news_box). There was a recent thread on this, but I haven't tried any of the suggestions yet. So if anyone has tried them and found one that works nicely, I'd be glad to hear! > - Navigational control > We need a standard framework for creating navigations, so they can > be 'dropped in' to any site. A natural one is to use the Zope > folder hierarchy, and build navigations by walking the tree(s). This is how I do the auto-generated pcg_pagesmenu/pcg_pagesmenu2 that shows in the lefthand column. I think RadioUserland has a kind of central database/list of pages on your site. Perhaps something like this could be used for more advanced navigation? Might also be handy when you are adding links to pages to be able to call up this list somehow, to save you having to surf off, find the page you want to link to, go back to where you were, then copy in the url? > Other (simpler) issues, some one which are not necessarily > 'framework' problems, are: > > - UI (edit items in situ, or from a different location) I'm not sure what you mean by this Seb? > > Well, that'll do for starters :-) Ditto! ;-) Apologies for the length of the message! HTH Cheers, Jon From Christoph.Schirmer@snafu.de Thu Jul 5 01:07:49 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Thu, 05 Jul 2001 02:07:49 +0200 Subject: [Zope-CMF] Loggin in/directory/index_html Message-ID: <3B43AFD5.B424ABAD@snafu.de> This is a multi-part message in MIME format. --------------F299664B23A54BB84450BD65 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I asked that question some days ago, but got no answer. Hopefully someone can help. I have a subdirectory that can only be accessed by members having a specific role. But when the members go to directly to that subdirectory and log-in, the login-screen stays, and they url changes to cmf site root. How can I manage that after loggin in to the subfolder the index_html of subfolder shows up? cmf 1.1 Thanks, Christoph --------------F299664B23A54BB84450BD65 Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------F299664B23A54BB84450BD65-- From ueck@net-labs.de Thu Jul 5 01:14:08 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Thu, 5 Jul 2001 02:14:08 +0200 Subject: [Zope-CMF] Re: Our CMF-CMS Demo .. needs a workflow References: Message-ID: <006d01c104e7$691c3fa0$6600000a@netlabs.local> > > > I see a need for a community / DC standard for a CMF-based CMS, > > which takes the best from all worlds. It should follow the principles > > DC has layed out for the CMF - a framework, not an application[1]. > I completely agree that we need a standard for CMS based on CMF. I personally think that the DCWorkflow is a good extension to CMS's workflow capabilities, but the hole thing is to item-centric. There was a discussion about Meta-Data stored in Mementos which could be used for an extended Workflow model. for example: one can't define a - workflow with more than one object - higher-level publish/review workflow with several People involved - workflow needed for group-ware functionality the CMFTracker would probably need an extended workflow as well. It would be a big benefit for all CMF-Sites to have an extended workflow, using it for UserInterface, CMS, DocumentManagement, Tracker ... I had many thoughts about that and do not have any answers right now. I worked on a product that included a workflow-engine but it was not as flexible as i thought. I think about to implement an optional replacement for portal_workflow. are there any projects going on that may have the same goals? cheers Ulrich Eck net-labs p.s. There is a proposal for another workflow-engine under: http://dev.zope.org/Wikis/DevSite/Proposals/WorkflowForZope which is based on an open-source implementation of a workflow-engine based on xml. This implementation is much more task-centric From chrisw@nipltd.com Wed Jul 4 19:31:29 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 04 Jul 2001 19:31:29 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation References: <20010704163544.S19615@lenin.jamkit.com> Message-ID: <3B436100.D6739F78@nipltd.com> seb bacon wrote: > > ( use StructuredTextNG, not HTML ... ) StructedText, why? I gotta agree with Jon, why come up with another form of markup language when you have to translate it from there into another one anyway?! > In principle it's an excellent idea, but requires a lot of discipline > by developers and simple, strong, easy to follow documentation > guidelines / APIs, and a lot of metawork - in other words, someone to > drive it who's got quite a lot of spare time. I think this has been a > problem with ZDP quite often. ...and to be blunt, if that's the case, it'll never happen. People with the knowledge rarely have time to explain it to people, let alone write it down :-( cheers, Chris From chrisw@nipltd.com Thu Jul 5 07:46:57 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 05 Jul 2001 07:46:57 +0100 Subject: [Zope-CMF] Niggles Message-ID: <3B440D61.D84A7354@nipltd.com> Hi there, How can I get the HTML title displayed for index_html to be something like: Swishdot : The Open Source Discussion Forum ...rather than... Swishdot : Swishdot The first bit is the name of the portal, and should stay that way, but for the second bit, I'd like to use the document title, which I presume all Zope objects have, including DTML methods, which would default to the 'title' property of that object in most situations? That said, I'm pretty sure FSDTML Methods don't have this attribute. How would I go about adding it or can anyone suggest an alternative solution to this problem? cheers, Chris PS: what, if anything, is the 'title' property of stylesheet_properties used for? From seb@jamkit.com Thu Jul 5 09:54:14 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 09:54:14 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo .. needs a workflow In-Reply-To: <006d01c104e7$691c3fa0$6600000a@netlabs.local>; from ueck@net-labs.de on Thu, Jul 05, 2001 at 02:14:08AM +0200 References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> Message-ID: <20010705095413.D25562@lenin.jamkit.com> I'm with you on the workflow. It seems to me that the existing DCWorkflow stuff is the way to go. Most of what you are looking for can be incorporated without too much trouble. > - workflow with more than one object I presume you mean, for example, the ability to publish a group of items at the same time. Can you give an example of when you might need to do this? I'm thinking there are various scenarios where it's desirable, and they might have different possible solutions. > - higher-level publish/review workflow with several People involved Do you mean some kind of routing / ticketing mechanism? e.g. Fred approves It, then it goes to Lisa to be approved, then Denise can edit it, then Fred publishes it. > - workflow needed for group-ware functionality Not sure what you mean here. There have been discussions elsewhere about using workflows with local roles to manage groups, did you read them? > I think about to implement an optional replacement for portal_workflow. I don't think the correct implentation would put all this functionality in a workflow tool: much of it could be accomplished by incorporating new tools / structures into the existing workflow framework, or even writing a new Workflow (not a new WorkflowTool). For example, routing can be achieved by creating a chain of states with transitions which correspond to passing the buck between individuals. Each transition updates a 'notify' property on the objects' metatdata which triggers a message to be sent to the relevant user. The 'more than one object' scenario could be acheived simply by using folder containment and aquisition of security. You'd just publish the containing folder. For a more sophisticated way of doing it, something could be built on top of ken's OrganisationObjects (http://cmf.zope.org/rqmts/proposals/OrganizationObjects). seb From chrisw@nipltd.com Thu Jul 5 09:54:47 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 05 Jul 2001 09:54:47 +0100 Subject: [Zope-CMF] Niggles References: Message-ID: <3B442B57.77C364AB@nipltd.com> Don't ask me, ask the list ;-) Chris xoph@snafu.de wrote: > > yes, thats something I also wanted to ask. How can this bug (for me it´s a bug, > the redundancy doesn´t make any sense) be cured? > > Thanks, > Christoph > > > Hi there, > > > > How can I get the HTML title displayed for index_html to be something like: > > > > Swishdot : The Open Source Discussion Forum > > > > ....rather than... > > > > Swishdot : Swishdot > > > > The first bit is the name of the portal, and should stay that way, but for the > > second bit, I'd like to use the document title, which I presume all Zope > objects > > have, including DTML methods, which would default to the 'title' property of > > that object in most situations? > > > > That said, I'm pretty sure FSDTML Methods don't have this attribute. How would > I > > go about adding it or can anyone suggest an alternative solution to this > > problem? > > > > cheers, > > > > Chris > > > > PS: what, if anything, is the 'title' property of stylesheet_properties used > > for? > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From seb@jamkit.com Thu Jul 5 10:35:33 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 10:35:33 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation In-Reply-To: <3B436100.D6739F78@nipltd.com>; from chrisw@nipltd.com on Wed, Jul 04, 2001 at 07:31:29PM +0100 References: <20010704163544.S19615@lenin.jamkit.com> <3B436100.D6739F78@nipltd.com> Message-ID: <20010705103532.F25562@lenin.jamkit.com> * Chris Withers [010705 09:12]: > seb bacon wrote: > > > > ( use StructuredTextNG, not HTML ... ) > > StructedText, why? I gotta agree with Jon, why come up with another form of > markup language when you have to translate it from there into another one > anyway?! Well, there's not much in it, but here's my reasoning: 1) You can read stx straight from the filesystem as plain text , which is nice for developers 2) You don't have to translate it - it happens for you :-P 3) There's supposedly the promise of being able to output it as ps, pdf, etc. 4) We'd have to come up with a standard for which tags to use if we went with html, whereas stx enforces a decision for you. seb From seb@jamkit.com Thu Jul 5 10:38:28 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 10:38:28 +0100 Subject: [Zope-CMF] Niggles In-Reply-To: <3B440D61.D84A7354@nipltd.com>; from chrisw@nipltd.com on Thu, Jul 05, 2001 at 07:46:57AM +0100 References: <3B440D61.D84A7354@nipltd.com> Message-ID: <20010705103828.H25562@lenin.jamkit.com> * Chris Withers [010705 09:14]: > The first bit is the name of the portal, and should stay that way, but for the > second bit, I'd like to use the document title, which I presume all Zope objects > have, including DTML methods, which would default to the 'title' property of > that object in most situations? > > That said, I'm pretty sure FSDTML Methods don't have this attribute. How would I > go about adding it or can anyone suggest an alternative solution to this > problem? Use the metadata Title property: &dtml-Title; seb From euroibc@solair1.inter.nl.net Thu Jul 5 10:24:47 2001 From: euroibc@solair1.inter.nl.net (martin van nijnatten) Date: Thu, 05 Jul 2001 11:24:47 +0200 Subject: [Zope-CMF] Suggestion - Modular Documentation References: Message-ID: <3B44325F.B3BA3FBB@solair1.inter.nl.net> > > * Chris Withers [010705 09:12]: > > seb bacon wrote: > > > > > > ( use StructuredTextNG, not HTML ... ) > > > > StructedText, why? I gotta agree with Jon, why come up with another form of > > markup language when you have to translate it from there into another one > > anyway?! > > Well, there's not much in it, but here's my reasoning: > > 1) You can read stx straight from the filesystem as plain text , which > is nice for developers > 2) You don't have to translate it - it happens for you :-P > 3) There's supposedly the promise of being able to output it as ps, > pdf, etc. > 4) We'd have to come up with a standard for which tags to use if we > went with html, whereas stx enforces a decision for you. > > seb We just started a project to "convert" all Ms-Word documentation into Structured Text. The only _real_ problem at the moment is tables ! Tables with 2 columns could be represented in STX (see Zope book) but we really need tables with more than 2 columns. I really wouldn't know how to handle that. Go back to docbook (via XML editor) as editing tool ? Naaaahhhhh: too difficult. The appealing thing about STX is it's simplicity. Any suggestions ? Martin > > From jtk@adelphia.net Thu Jul 5 13:05:36 2001 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Thu, 5 Jul 2001 08:05:36 -0400 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: Message-ID: <001801c1054a$ce3652f0$c417fea9@dev1> As long as the discussion is on portal *designs*, I'd like to point out the .NET portal demo provided at http://ibuyspy.com/portal . Using tables and with no workflow yet, it has nothing on Zope-CMF as a framework, but the content items have a very slick TTW creation and page layout mechanism. For the Businesspeople I've shown it to, this makes the Portal concept click instantly. The people we'll all be developing and deploying portals for want this. I think we'd do well to pick up those features for the default CMF implementation. Unfortunately, the admin interface is the one part you *can't* use at the online demo without a login. However, you can read about it with illustrations in the "About the Portal" page, and it's easy enough to install on any Win2K box. Their store demo is pretty cool, too. http://www.ibuyspy.com/store/ From robert@redcor.ch Thu Jul 5 13:27:35 2001 From: robert@redcor.ch (Robert Rottermann) Date: Thu, 5 Jul 2001 14:27:35 +0200 Subject: [Zope-CMF] Have AutoCAD reader, how to integrate it in CMF Message-ID: <037e01c1054d$f94c6a80$0a01a8c0@stravinsky> This is a multi-part message in MIME format. ------=_NextPart_000_0379_01C1055E.A2D1D5D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi there, I have code that can detect if a file is an AutoCAD-DWG and get at its = thumbnail picture if such a thing is stored. Now my question, how do I integrate it in CMF so that a *.dwg file is = automatically detected when it is uploaded into a file object ? Thanks for your tips Robert ------=_NextPart_000_0379_01C1055E.A2D1D5D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi there,
I have code that can detect if a file = is an=20 AutoCAD-DWG and get at its thumbnail picture if such a thing is=20 stored.
Now my question, how do I integrate it = in CMF so=20 that a *.dwg file is automatically detected when it is uploaded into a = file=20 object ?
 
Thanks for your tips
Robert
------=_NextPart_000_0379_01C1055E.A2D1D5D0-- From seb@jamkit.com Thu Jul 5 14:12:18 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 14:12:18 +0100 Subject: [Zope-CMF] Have AutoCAD reader, how to integrate it in CMF In-Reply-To: <037e01c1054d$f94c6a80$0a01a8c0@stravinsky>; from robert@redcor.ch on Thu, Jul 05, 2001 at 02:27:35PM +0200 References: <037e01c1054d$f94c6a80$0a01a8c0@stravinsky> Message-ID: <20010705141217.J25562@lenin.jamkit.com> I'd create a new DWG File Type, based on File, which does the thumbnail magic, along with actions & skins which display the various metadata. Then you just add a file extension predicate of "dwg" to the content_type_registry . For an example, have a look at the CMFWordDoc in my MailIn dev bundle (which I really will get round to finishing and releasing as a separate product soon. well, maybe within a month or two...) http://cmf.zope.org/Members/seb/JamkitTypes.tar.gz/view I'd be interested in implementing this myself, if you don't get round to it - could you send me the code? seb * Robert Rottermann [010705 13:27]: > Hi there, > I have code that can detect if a file is an AutoCAD-DWG and get at its thumbnail picture if such a thing is stored. > Now my question, how do I integrate it in CMF so that a *.dwg file is automatically detected when it is uploaded into a file object ? > > Thanks for your tips > Robert -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From gregoire.weber@switzerland.org Thu Jul 5 14:50:16 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Thu, 05 Jul 2001 15:50:16 +0200 Subject: [Zope-CMF] Re: Our CMF-CMS Demo (LONG!) Message-ID: <3.0.6.32.20010705155016.011b3330@pop.dplanet.ch> I just forgot to cc to the cmf-list. As every time :-(. Hi all and especially Jon and the rest participating this thread! > Warning : What follows is very long, cos I've tried to explain how we do= it > now, and how I think it should be done (or how I intend to rewrite it) Phuuu! I'm feeling now like (sorry, phrase/saying in german with=20 translation followed) "Ich sehe den Wald vor lauter Baeumen=20 nicht mehr" (+/- translation: there are such a lot of trees=20 I even can't see the forrest anymore, meaning: such a lot of details and ideas not yet arranged in my own brain=20 systematically covering the big picture) Your text contains a lot of good thoughts. See my comments on some of them. > [...] trying to produce a spec for a "portal_CMS" tool? [...] Hm, good idea! Here on the mailing list? > ----------------------------------------------------------------------- > Layout choice - > [...] > [...] but with the ability to tweak them if necessary. I'am not a fan of letting 'normal' users tweak their layout. Most of them never use it and the rest of them missuse it=20 (akward colours, etc.) to show to others the could 'program' a new colour. :-( This kind of persons usualy destroy the consistence of a site. Have a look at http://cancernet.nci.nih.gov/usability/#look_and_feel There is a comment to this covered at the point "Be consistent". My opinion: As manager of a portal you have to ensure usability and that usability can not be destroyed or lowered by members. My a little philosophical approach for information portals is:=20 Let people define their character by their content not by their layout. > ----------------------------------------------------------------------- > Stylesheet - >=20 > [...] different sections of your site can have different layouts and > colour-schemes, but you can still inherit things like headers or news-box > from higher up, giving some consistent elemnts across all your > "sub-portals". This seems to me to be an important idea. We should note this as=20 a requirement for "the spec" we write (possibly)! > ----------------------------------------------------------------------- > [...] composite docs > created anywhere on the site would be included in the picklist (perhaps= with > some filtering according to what section you are in, and what permissions > the page editor has?). ... and the role this composite doc plays in that section=20 (better word: context?). IMHO it is important to have different concepts of content storage and=20 content retrieving structures. If I've understood klm's proposal (http://cmf.zope.org/rqmts/proposals/OrganizationObjects)=20 right it's that what he's saying also. example: A member of the PR department of an organisation writes a=20 press report. He wants his report and additional texts and linklistes to be mentioned in the news section of the org. My "vision": He writes=20 his press report, collects his links and additionaly writes a short summary with a title for the news item. The whole thing is one peace=20 of content (=3Dcomposite content) showing up in the news section with=20 the summary, the summaries title and a link to the same item in the press room. There you see the report with additional links to the=20 news item, the link list and the additional documents. In the link=20 list section (ok this is silly) of the org these links are listed but with hints (in the form of links) to the other parts of the composite document (aka content). > ----------------------------------------------------------------------- > Gregoire, I think this solves the problem you mentioned for "portals= within > portals", where you want some content to be "syndicated" within the site, > [...] Implementation detail: For the moment "real world" topics ar represented by cmf-topics and organisations/suborganisations represented by cmf-members. It's a kind of matrix. Pros: I can use the CMF out of the box after making some minor tweakings on skin layers Cons: The organsisations can not have theyr own members. > ----------------------------------------------------------------------- > Introduction - > [...] > To improve the structure of it all, I wonder if we need an extra object - > something like "Content-object-style"? Describes how a content-object= should > be displayed in a particular context, just as a CSS-style describes how a > chunk of text should be displayed in a particular context. You'd use= these, > somehow, to define how content-objects should be displayed in composite > docs/layouts. Another half-baked idea! :-) See above at "[...] composite docs", I think we talk about the same! We=20 have to bake a little more here! > ----------------------------------------------------------------------- > I've tried your example and it's nice. The Java-Script-Editor is cool!=20 I restored the previous values. > ----------------------------------------------------------------------- > In terms of the "portals within portals" issue, the one thing I haven't= done > is the ability to restrict searches to sub-portals only, rather than the > whole site (this would also apply to the news_box). There was a recent > thread on this, but I haven't tried any of the suggestions yet. So if= anyone > has tried them and found one that works nicely, I'd be glad to hear! Implementation detail: Because the subportals are represented by members=20 in my implementation it's easy for me to restrict searches to subportals= only. I'll give a hint (link and access) on the mailing list when I have=20 something to show. Greg P.S.: Perhaps we should change to a better e-mail subject! _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From seb@jamkit.com Thu Jul 5 16:00:36 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 16:00:36 +0100 Subject: [Zope-CMF] Re: Our CMF-CMS Demo (LONG!) In-Reply-To: <3.0.6.32.20010705155016.011b3330@pop.dplanet.ch>; from gregoire.weber@switzerland.org on Thu, Jul 05, 2001 at 03:50:16PM +0200 References: <3.0.6.32.20010705155016.011b3330@pop.dplanet.ch> Message-ID: <20010705160034.K25562@lenin.jamkit.com> * Grégoire Weber [010705 14:51]: > > [...] but with the ability to tweak them if necessary. > I'am not a fan of letting 'normal' users tweak their layout. > Most of them never use it and the rest of them missuse it > (akward colours, etc.) to show to others the could 'program' > a new colour. :-( This kind of persons usualy destroy the > consistence of a site. I enthusiatically agree with this (nodding head vigorously). In our applications at least, I don't anticipate a need for anyone to create templates but the original developers & designers. There's a reason for the client paying someone else to do their design / usability: it's not their area of expertise. Fewer choices, chosen carefully, enforces a consistent look and feel and makes the clients' content-managing lives simpler and hopefully more intuitive. > > [...] different sections of your site can have different layouts and > > colour-schemes, but you can still inherit things like headers or news-box > > from higher up, giving some consistent elemnts across all your > > "sub-portals". > This seems to me to be an important idea. We should note this as > a requirement for "the spec" we write (possibly)! How does the skins philosophy fit into this? As gregoire and ken have pointed out... > IMHO it is important to have different concepts of content storage and > content retrieving structures. If I've understood klm's proposal > (http://cmf.zope.org/rqmts/proposals/OrganizationObjects) > right it's that what he's saying also. ...the folder containment metaphor / structure is very limited. IMO, it's probably a good thing to get away from this paradigm, though aquisition / inheritance needs to be addressed in any other implementation, if possible. seb From seb@jamkit.com Thu Jul 5 16:08:14 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Jul 2001 16:08:14 +0100 Subject: [Zope-CMF] searching 'subportals' Message-ID: <20010705160813.L25562@lenin.jamkit.com> > > In terms of the "portals within portals" issue, the one thing I haven't done > > is the ability to restrict searches to sub-portals only, rather than the > > whole site (this would also apply to the news_box). There was a recent > > thread on this, but I haven't tried any of the suggestions yet. So if anyone > > has tried them and found one that works nicely, I'd be glad to hear! > Implementation detail: Because the subportals are represented by members > in my implementation it's easy for me to restrict searches to subportals only. > > I'll give a hint (link and access) on the mailing list when I have > something to show. I implemented this today by dropping in a new CatalogTool subclass. I've got 'Sites' inside each portal, which are portal-like objects. Each defines a getSite method, something along the lines of portal_url.getPortal(). I added a 'Site' index to the Catalog (in the enumeratedIndexes method). Every time an object is indexed, the catalog_object method wraps the object with extra information. I added the line vars['Site'] = object.getSite().getId() to this method, so every object is now always indexed with a Site name. Then in the searchResults method, I added an extra criterion: if hasattr(self, 'getSite') and not _checkPermission( ManagePortal, self): kw['Site'] = self.getSite().getId() Tada! If anyone wants the whole Tool, give me a shout. It's dead simple. seb From gregoire.weber@switzerland.org Thu Jul 5 17:37:53 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Thu, 05 Jul 2001 18:37:53 +0200 Subject: [Zope-CMF] searching 'subportals' In-Reply-To: Message-ID: <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> Hi Seb, I would be interested! Greg > > Implementation detail: Because the subportals are represented by members= =20 > > in my implementation it's easy for me to restrict searches to subportals only. > >=20 > > I'll give a hint (link and access) on the mailing list when I have=20 > > something to show. > > I implemented this today by dropping in a new CatalogTool subclass.=20 > [...] > Tada! >=20 > If anyone wants the whole Tool, give me a shout. It's dead simple.=20 > > seb _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From gregoire.weber@switzerland.org Thu Jul 5 17:53:05 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Thu, 05 Jul 2001 18:53:05 +0200 Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: Message-ID: <3.0.6.32.20010705185305.011fc640@pop.dplanet.ch> There is another firm called RedDotSolutions (http://www.RedDotSolutions.com/) which provides users a very natural way to submit/edit/author content. Have a look at the small flash animation. Their concept is very user centric.=20 They seem to have a very capable PR department which made an excellent product information brochure and flash demo cd where they demonstrate the usage of their tool. Could be of interest for DC. I could send the flash animation to interested persons (its an exe file and a html file, together 300kbyte). Greg > As long as the discussion is on portal *designs*, I'd like to point out > the .NET portal demo provided at http://ibuyspy.com/portal . >=20 > Using tables and with no workflow yet, it has nothing on Zope-CMF as a > framework, but the content items have a very slick TTW creation and page > layout mechanism. For the Businesspeople I've shown it to, this makes > the Portal concept click instantly. The people we'll all be developing > and deploying portals for want this. I think we'd do well to pick up > those features for the default CMF implementation.=20 _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From shane@digicool.com Thu Jul 5 19:01:28 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Jul 2001 14:01:28 -0400 Subject: [Zope-CMF] Niggles References: <3B440D61.D84A7354@nipltd.com> Message-ID: <3B44AB78.AB1336FB@digicool.com> Chris Withers wrote: > That said, I'm pretty sure FSDTML Methods don't have this attribute. How would I > go about adding it or can anyone suggest an alternative solution to this > problem? Use a document (as opposed to a method) as the home page. Shane From shane@digicool.com Thu Jul 5 19:02:10 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Jul 2001 14:02:10 -0400 Subject: [Zope-CMF] workflow probs References: <20010704202248.C25562@lenin.jamkit.com> Message-ID: <3B44ABA2.64AB500F@digicool.com> seb bacon wrote: > > I'm using a recent CMF, and I'm finding workflow-wrapped methods > aren't getting reindexed. The problem appears to be rooted in the > wrapWorkflowMethod function from WorkflowCore pasted below; it only > calls an object 'with notification' if its Workflow has a method > called 'isWorkflowMethodSupported' - and only the DCWorkflow answers > this description currently. > > One for the Tracker? Yep. The "right" solution isn't obvious. Shane From chrisw@nipltd.com Thu Jul 5 19:13:16 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 5 Jul 2001 19:13:16 +0100 Subject: [Zope-CMF] Niggles References: <3B440D61.D84A7354@nipltd.com> <3B44AB78.AB1336FB@digicool.com> Message-ID: <007c01c1057e$2b6349f0$af627ad5@withers> > Chris Withers wrote: > > That said, I'm pretty sure FSDTML Methods don't have this attribute. How would I > > go about adding it or can anyone suggest an alternative solution to this > > problem? > > Use a document (as opposed to a method) as the home page. D'uh! Of course :-) Where do I find a FSDTML Document? cheers, Chris From shane@digicool.com Thu Jul 5 19:42:32 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Jul 2001 14:42:32 -0400 Subject: [Zope-CMF] Zope component model and CMF Message-ID: <3B44B518.D2BA28B8@digicool.com> Here at DC a few of us have been working on a component model for Zope. We have roughly defined what components should be like in Zope and have written some documentation. The next step is to update CMF to be fully driven by the component model. So I wrote up a document describing how I think CMF will change. I am seeking input from everyone involved in CMF. Comments encouraged. http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF The new Zope component model is very similar to the current CMF model, so the changes will be small compared with the move from PTK to CMF. The major change is in the use of a new concept called "presentation components" instead of disjoint scripts and methods in the skins tool. Related scripts and methods will be grouped together to form a presentation component. Keep in mind that details may change next week when people get back from vacation. I hope everyone had a great 4th! (Interpret according to your nationality :-) ) Shane From shane@digicool.com Thu Jul 5 19:48:20 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 5 Jul 2001 14:48:20 -0400 (EDT) Subject: [Zope-CMF] Niggles In-Reply-To: <007c01c1057e$2b6349f0$af627ad5@withers> Message-ID: On Thu, 5 Jul 2001, Chris Withers wrote: > > Chris Withers wrote: > > > That said, I'm pretty sure FSDTML Methods don't have this attribute. How > would I > > > go about adding it or can anyone suggest an alternative solution to this > > > problem? > > > > Use a document (as opposed to a method) as the home page. > > D'uh! Of course :-) > > Where do I find a FSDTML Document? Well, it doesn't exist, but I imagine creating a normal (non-FS) Document would suffice for most purposes. What do you think? Shane From fm@synchrologic.com Thu Jul 5 20:12:13 2001 From: fm@synchrologic.com (Frank McGeough) Date: Thu, 5 Jul 2001 15:12:13 -0400 Subject: [Zope-CMF] Repeating Events References: <3B44B518.D2BA28B8@digicool.com> Message-ID: <009901c10586$65be2040$c7010a0a@mcgeough> Is there any plans to introduce the ability to define repeating events? Examples: this event happens every Saturday. every year. every month. From andrew@digicool.com Thu Jul 5 20:14:30 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Thu, 5 Jul 2001 15:14:30 -0400 Subject: [Zope-CMF] Repeating Events In-Reply-To: <009901c10586$65be2040$c7010a0a@mcgeough> Message-ID: I thought about that feature when I was planning out the CMFEvent, but the development was not slotted for the initial release. At this point, I can't speculate what the future holds for the CMFEvent, though there is quite a bit I'd like to add to the CMFCalendar product which is lacking at this point. I know this is a non-answer, but if I'm reassigned to work on the product to implement additional features I'd like to be able to say, 'Yes, this is planned'. Maybe you could add some discussion to the Product page where future features could begin being listed out so whomever does the future implementation of the product has some idea what folks would like. Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Frank McGeough > Sent: Thursday, July 05, 2001 3:12 PM > To: zope-cmf@zope.org > Subject: [Zope-CMF] Repeating Events > > > Is there any plans to introduce the ability to define repeating events? > Examples: this event happens every Saturday. every year. every month. > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From aem@byu.edu Thu Jul 5 20:30:45 2001 From: aem@byu.edu (Adrian Madrid) Date: Thu, 5 Jul 2001 12:30:45 -0700 (PDT) Subject: [Zope-CMF] Re: Our CMF-CMS Demo In-Reply-To: <001801c1054a$ce3652f0$c417fea9@dev1> Message-ID: <20010705193045.69840.qmail@web10103.mail.yahoo.com> --- Jeff Kowalczyk wrote: > As long as the discussion is on portal *designs*, > I'd like to point out > the .NET portal demo provided at > http://ibuyspy.com/portal . Thanks for the pointer. It's a great example. I don't usually go around praising M$ but their portal example is clean, easy to understand and shares tons of knowledge wealth for everyone with eyes to see and ears to hear... ;-) > Using tables and with no workflow yet, it has > nothing on Zope-CMF as a > framework, but the content items have a very slick > TTW creation and page > layout mechanism. I think there nothing to stop us from getting something even better working with the CMF. I too like their approach to editing 'on the spot'. I believe it's very user friendly and intuitive (am I being redundant again?). > For the Businesspeople I've shown > it to, this makes > the Portal concept click instantly. The people we'll > all be developing > and deploying portals for want this. I think we'd do > well to pick up > those features for the default CMF implementation. I think we should not only copy their aproach on building user friendly, cleanly designed sites but have a CMF demo running with a fictional company running. Let's have people joining and see how easy and pretty (did I say pretty?) the CMF can be with real world stuff and pictures. > Unfortunately, the admin interface is the one part > you *can't* use at > the online demo without a login. However, you can > read about it with > illustrations in the "About the Portal" page, and > it's easy enough to > install on any Win2K box. > > Their store demo is pretty cool, too. > http://www.ibuyspy.com/store/ Dido. Wouldn't a intranet/extranet/store package be just wonderful? I think I know what I'm going to be doing for the rest of the summer... ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From gitte@mmmanager.org Thu Jul 5 23:13:21 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Fri, 06 Jul 2001 00:13:21 +0200 Subject: [Zope-CMF] XML in Portal Document Message-ID: <3.0.6.32.20010706001321.00da48a8@mmmanager.org> Hello, I have tried to put some XML code into a portal document and it didn't exactly do as I exptected. (it's an XML file from slashdot.org) So I was wondering if it at all is possible to include xml in a portal document ??? I want to use the slashdot news as a right-sided box in my Blark. As far as I know the document it includes should be of the type Portal Document. Or could it be an dtml-method in the skins folder ??? (somehow I can't find the link for the helpfile anymore :-( ) Regards, Gitte Wange From jccooper@rice.edu Thu Jul 5 23:06:42 2001 From: jccooper@rice.edu (J. Cameron Cooper) Date: Thu, 05 Jul 2001 17:06:42 -0500 Subject: [Zope-CMF] ZMI inconsistencies for CMFDefault Objects References: <200107021934.OAA05875@consulting.is.rice.edu> Message-ID: <3B44E4F2.5030301@rice.edu> This is a multi-part message in MIME format. --------------010304020802020804020006 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > > >
>Type         Metadata   Edit  Properties                
>--------------------------------------------
>Document         y        y        .
>Image            .        y        y
>File             .        y        y
>Link             y        .        .
>Favorite         y        .        .
>News Item        y        y        .
>SkinFolder      (.)      (y)       y
>
> After a bit of hacking I got it down to:
Type         Metadata   Edit  Properties                
--------------------------------------------
Document         y        y        y
Image            y        y        y
File             y        y        y
Link             y        .        y
Favorite         y        .        y
News Item        y        y        y
SkinFolder      (.)      (y)       y
..which is pretty good, but I can't figure out how Link/Favorite doesn't get an Edit tab. For all I can tell, it should. Perhaps someone with a better fundamental knowledge of the codebase can tell me. Anyway, patch is attached (and it's really simple.) --jcc --------------010304020802020804020006 Content-Type: text/plain; name="cmf.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cmf.patch" --- CMFCore/PortalContent.py Mon Jun 11 10:10:40 2001 +++ /usr/local/zope/zope/lib/python/Products/CMFCore/PortalContent.py Tue Jul 3 13:57:42 2001 @@ -92,12 +92,12 @@ ReviewPortalContent, ModifyPortalContent import CMFCorePermissions from DynamicType import DynamicType -from utils import getToolByName, _checkPermission +from utils import getToolByName, _checkPermission, SimpleItemWithProperties from Acquisition import aq_base -class PortalContent(DynamicType, SimpleItem): +class PortalContent(DynamicType, SimpleItemWithProperties): """ Base class for portal objects. @@ -120,7 +120,7 @@ , 'action' : 'view' } ) - + SimpleItem.manage_options + + SimpleItemWithProperties.manage_options ) security = ClassSecurityInfo() --- CMFDefault/File.py Sun Jun 17 14:21:05 2001 +++ /usr/local/zope/zope/lib/python/Products/CMFDefault/File.py Thu Jul 5 10:18:31 2001 @@ -209,6 +209,9 @@ (CMFCorePermissions.ModifyPortalContent, ('edit',)), ) + # Inheritance from OFS screwing with ZMI tags... must set here + manage_options = PortalContent.manage_options + def __init__( self , id , title='' Only in /usr/local/zope/zope/lib/python/Products/CMFDefault/: File.pyc diff -u CMFDefault/Image.py /usr/local/zope/zope/lib/python/Products/CMFDefault/Image.py --- CMFDefault/Image.py Sun Jun 17 14:21:05 2001 +++ /usr/local/zope/zope/lib/python/Products/CMFDefault/Image.py Thu Jul 5 10:09:51 2001 @@ -199,6 +199,9 @@ __ac_permissions__ = ( (CMFCorePermissions.ModifyPortalContent, ('edit',)), ) + + # Inheritance from OFS screwing with ZMI tags... must set here + manage_options = PortalContent.manage_options def __init__( self , id --------------010304020802020804020006-- From ueck@net-labs.de Fri Jul 6 00:17:11 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Fri, 6 Jul 2001 01:17:11 +0200 Subject: A better CMFworkflow (was: Re: [Zope-CMF] Re: Our CMF-CMS Demo .. needs a workflow) References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> Message-ID: <00a301c105a8$9e750bc0$6600000a@netlabs.local> Hi seb, I have talked a lot with kent polk about a better workflow for Zope/CMF. A Content Management System as well as any other larger CMF-Site will benefit from a better workflow. > > > - workflow with more than one object > > I presume you mean, for example, the ability to publish a group of > items at the same time. Can you give an example of when you might > need to do this? I'm thinking there are various scenarios where it's > desirable, and they might have different possible solutions. > we have collected a few scenarios: Workflow example 1 --------------------- Simple CRM Task/Document Workflow for an Customer Service: 1. Office Worker gets a supportcall from some customer and registers this in the SupportTask List 2. OW needs to collect some support information and finds out who can handle this support call 3. OW redirects/delegates the SupportTask to an Engineer 4. Engineer calls back the customer and hopefully finishes the SupportTask otherwise it could be delegated to another person 4.a. if the problem could not be solved via hotline .. a Service-Task is created and there is a new workflow Workflow example 2 --------------------- Kent's workflow example for laboratory-staff - Create Project (P.I. creates/manages) - Create Pedigree Set (fill out data to be stored in sql table) (R.I. creates/manages) - Create MasterRack (fill out tabular data, etc) (head project genotyper creates/manages) - Create Panels (n number of panels) (genotyper pool personnel creates/manages) - Create n number of samplesheets for each panel (genotyper pool personnel creates/manages) - process each samplesheet - build processed Panels (genotyper pool personnel) - submit for approval to genotyping database (genotyper pool personnel/ lab manger approves) The nested heirarchy of the project items needs to be maintained. Workflow example 3 --------------------- One could use such a workflow for applications as well, here an example for my ongoing network-documentation-project: Aim: employees of an university that do inventory of network-hardware and manages lines, rack-space, etc. Workflow: Register a new Component into a existing Subnet: 1. User creates Component 2. User selects Manufacturer/Model, if not existant: allow to create both within workflow 3. User must add at least one physical port to that device (or more e.g. a switch) 4. User must define at least one logical port for each physical port (an ip-address) this logical port must match the subnet it is in (otherwise let the user create a new subnet) 5. After all he needs to define where the component will be installed an who's responsible for it and again be able to create all that doesn't exist. Within this workflow there can start new workflow parts (e.g. when adding a Subnet, you need a line for that, which is usualy leased from a ISP, so that needs to be handled when user creates a new subnet) In such a workflow there could be several people/roles involved. All these scenarios need a workflow that need more than one object involved. Object Relations ( defined in meta_data and OrganisationObjects ) would make things easier. > > - higher-level publish/review workflow with several People involved > > Do you mean some kind of routing / ticketing mechanism? > e.g. Fred approves It, then it goes to Lisa to be approved, then > Denise can edit it, then Fred publishes it. > yepp > > - workflow needed for group-ware functionality > > Not sure what you mean here. There have been discussions elsewhere > about using workflows with local roles to manage groups, did you read > them? > see examples > > I think about to implement an optional replacement for portal_workflow. > > I don't think the correct implentation would put all this > functionality in a workflow tool: much of it could be accomplished by > incorporating new tools / structures into the existing workflow > framework, or even writing a new Workflow (not a new WorkflowTool). > I have looked at the code and the basic functionality of the CMFWorkflow. There is a thight binding of Portal-Type <-> Workflow which does not represent real-live-workflows (an object of a certain type is probably member of serveral different workflows in his lifetime or at the same time if possible ..) The mapping portal_type -> workflow is made by the workflow tool .. This won't work if an object could participate in more than one workflow .. And there comes the next point .. I not the object type defines the workflow .. it probably should be defined by a template that is repuested and filled out with the actual values of the participating objects and workflow-session has begun .. now there are several objects in several states with several possible transistions and participating users/roles. I know .. this is a real workflow-engine .. but that's probably the tool that I (we) would like to have :-) what do you think about that?? Ulrich Eck net-labs From davelehman@loewen.com Fri Jul 6 03:26:03 2001 From: davelehman@loewen.com (davelehman@loewen.com) Date: Thu, 5 Jul 2001 21:26:03 -0500 Subject: [Zope-CMF] Make CMF root of site? Message-ID: I'm sure i've seen the answer to this somewhere but of course I can't for the life of me find it now... When I add a new "CMF Site" in Zope, it always puts it in a folder. How can I make/move it to the root level, so that the default page my users go into is my CMF site? --dave From shane@digicool.com Fri Jul 6 04:36:30 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Jul 2001 23:36:30 -0400 Subject: A better CMFworkflow (was: Re: [Zope-CMF] Re: Our CMF-CMS Demo .. needs a workflow) References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> Message-ID: <3B45323E.51BBD0F1@digicool.com> Ulrich Eck wrote: > I have talked a lot with kent polk about a better workflow for Zope/CMF. > > A Content Management System as well as any other larger CMF-Site > will benefit from a better workflow. Ulrich, I encourage you to try out the DCWorkflow product. Although it's still in its infancy, it provides a good way to implement everything you listed. It is not shipped with CMF yet. It was developed based on PTK/CMF community feedback that was remarkably similar to yours. The feature of binding types to workflow definitions is *specifically* designed to make sub-workflows and multiple simultaneous workflows possible... and maybe even easy. If you disagree, however, just make your own portal_workflow tool. You don't even have to change the CMF source. The binding of type to workflow is only an assumption that the default portal_workflow makes and nothing else in CMF depends on it. Really! Shane From robert@redcor.ch Fri Jul 6 07:53:37 2001 From: robert@redcor.ch (Robert Rottermann) Date: Fri, 6 Jul 2001 08:53:37 +0200 Subject: [Zope-CMF] Zope component model and CMF References: Message-ID: <000901c105e8$623f4630$49a4023e@karin> I know translation an component model are two separate things. Somehow. Both are related in that they need a rethinking of how things are done. And that's what you are doing (and which I hope can be extended "ein wenig") > task. Note, however, that there is only one place (the portal_actions > tool) that is not fully localizable already. Have you seen the German > translation of the CMF? Here I do not agree. Translation and customization are two different things. Although skins can be misused for translation they (to my mind) are here for customization. It just makes no sense to throw all modules of the divers skins on one big translated heap. Even if you do so you still have lots of untranslated elements (result of raise statements, many hardcode strings, descriptions of portal_types ...) Yes I did look at the German skin. It does stress my arguments. Robert ----- Original Message ----- From: "Shane Hathaway" To: "Robert Rottermann" Sent: Thursday, July 05, 2001 11:57 PM Subject: Re: [Zope-CMF] Zope component model and CMF > On Thu, 5 Jul 2001, Robert Rottermann wrote: > > > I would be showing off pretending I did understand every detail. I probably > > have to read some discussion on your paper. So I can not yet talk about its > > technicalities. > > However there is something I am missing badly: > > Support for translating to non English languages. > > I will prepare (with help of others) a proposal what we from the non English > > part of the world need. > > I believe it will be a small effort for you to implement and of a great help > > to us from the rest of the world. > > The translation task is important, but independent of the component model > task. Note, however, that there is only one place (the portal_actions > tool) that is not fully localizable already. Have you seen the German > translation of the CMF? > > Shane > > From gitte@mmmanager.org Fri Jul 6 08:14:23 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Fri, 6 Jul 2001 09:14:23 +0200 Subject: [Zope-CMF] Make CMF root of site? In-Reply-To: References: Message-ID: <01070609142300.01776@squidbitch.mmmanager.org> On Friday 06 July 2001 04:26, davelehman@loewen.com wrote: > I'm sure i've seen the answer to this somewhere but of course I can't for > the life of me find it now... > > When I add a new "CMF Site" in Zope, it always puts it in a folder. How can > I make/move it to the root level, so that the default page my users go into > is my CMF site? > > --dave We use Apache in front of the ZServer (and finally got it to work *S*). Setting up a VirtualHost in Apache with some ProxyPass rules and place a SiteRoot object in your CMF folder - you are up and running. The solution we found is based on this How To: http://www.zope.org/Members/anser/apache_zserver Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Oh, I can agree with that. Discipline can be good for you. - Linus Torvalds From robert@redcor.ch Fri Jul 6 08:41:14 2001 From: robert@redcor.ch (Robert Rottermann) Date: Fri, 6 Jul 2001 09:41:14 +0200 Subject: [Zope-CMF] Zope component model and CMF References: <000901c105e8$623f4630$49a4023e@karin> Message-ID: <001401c105ef$0abd1110$0a01a8c0@stravinsky> >From the if I would only see my typhos before I send the mail dept: I know translation an component model are two separate things should read: I know translation and component model are two separate things. RR From yokemay@apdip.net Fri Jul 6 09:32:57 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Fri, 6 Jul 2001 16:32:57 +0800 Subject: [Zope-CMF] Remove addtoFavorites link Message-ID: <002b01c105f6$440bc400$175ebbca@apdip.net> Hi, How can I remove the addtoFavorites link on the Action box? Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net ICQ: 321345 From seb@jamkit.com Fri Jul 6 10:29:49 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 10:29:49 +0100 Subject: [Zope-CMF] Make CMF root of site? In-Reply-To: <01070609142300.01776@squidbitch.mmmanager.org>; from gitte@mmmanager.org on Fri, Jul 06, 2001 at 09:14:23AM +0200 References: <01070609142300.01776@squidbitch.mmmanager.org> Message-ID: <20010706102947.A1317@lenin.jamkit.com> > We use Apache in front of the ZServer (and finally got it to work *S*). > Setting up a VirtualHost in Apache with some ProxyPass rules and place a > SiteRoot object in your CMF folder - you are up and running. > > The solution we found is based on this How To: > http://www.zope.org/Members/anser/apache_zserver An alternative way of doing the same thing is to use a VirtualHostMonster: http://www.zope.org/Members/mwr/VHosts_With_Zope_Default Largely a matter of taste - I prefer rewrite rules to proxypasses, and if you use a VHM you keep all the rewriting logic in one place (your httpd.conf). seb From seb@jamkit.com Fri Jul 6 10:36:45 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 10:36:45 +0100 Subject: [Zope-CMF] Remove addtoFavorites link In-Reply-To: <002b01c105f6$440bc400$175ebbca@apdip.net>; from yokemay@apdip.net on Fri, Jul 06, 2001 at 04:32:57PM +0800 References: <002b01c105f6$440bc400$175ebbca@apdip.net> Message-ID: <20010706103645.B1317@lenin.jamkit.com> * Yoke May Seow [010706 09:35]: > How can I remove the addtoFavorites link on the Action box? Look in CMFCore/ActionsTool.py; you can remove the offending line there. Hopefully this will be TTW configurable, and part of CMFDefault, soonish? In the mean time, there are still a number of things you can only change in the filesystem. The best way of finding this stuff out is by using your OS's search facility in your products folder to find the text. seb From seb@jamkit.com Fri Jul 6 11:38:03 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 11:38:03 +0100 Subject: [Zope-CMF] Re: A better CMFworkflow In-Reply-To: <3B45323E.51BBD0F1@digicool.com>; from shane@digicool.com on Thu, Jul 05, 2001 at 11:36:30PM -0400 References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> <3B45323E.51BBD0F1@digicool.com> Message-ID: <20010706113803.D1317@lenin.jamkit.com> * Shane Hathaway [010706 04:42]: > Ulrich Eck wrote: > > I have talked a lot with kent polk about a better workflow for Zope/CMF. > > > > A Content Management System as well as any other larger CMF-Site > > will benefit from a better workflow. > > Ulrich, > > I encourage you to try out the DCWorkflow product. Although it's still > in its infancy, it provides a good way to implement everything you > listed. It is not shipped with CMF yet. It was developed based on > PTK/CMF community feedback that was remarkably similar to yours. > > The feature of binding types to workflow definitions is *specifically* > designed to make sub-workflows and multiple simultaneous workflows > possible... and maybe even easy. Yes, I should have made it clear I was referring to the DCWorkflow. Ulrich, your use cases are very helpful. I believe the existing framework *can* accomodate your requirements, as Shane suggests. In the laboratory example, you would start with a Project component workflow, which has various states. After it's been created (approved?) it enters a state which requires the addition of a Pedigree Set before it can progress. The pedigree set would have its own workflow along the same lines. The groups stuff would be defined elsewhere via local roles; only 'lab staff' or similar would have the ability to create Sets to start with. The Set Workflow could alter the access permissions on the set depending on its state. Do you think this would work? seb From lists@net-labs.de Fri Jul 6 11:07:33 2001 From: lists@net-labs.de (Ulrich Eck) Date: Fri, 6 Jul 2001 12:07:33 +0200 Subject: [Zope-CMF] Re: A better CMFworkflow References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> <3B45323E.51BBD0F1@digicool.com> <20010706113803.D1317@lenin.jamkit.com> Message-ID: <004b01c10603$797a6ee0$3300000a@work01> > > Ulrich, your use cases are very helpful. I believe the existing > framework *can* accomodate your requirements, as Shane suggests. In > the laboratory example, you would start with a Project component > workflow, which has various states. After it's been created > (approved?) it enters a state which requires the addition of a > Pedigree Set before it can progress. The pedigree set would have its > own workflow along the same lines. The groups stuff would be defined > elsewhere via local roles; only 'lab staff' or similar would have the > ability to create Sets to start with. The Set Workflow could alter > the access permissions on the set depending on its state. > > Do you think this would work? > This was kent's example .. so I forwarded your reply to him .. let's see what he say's. The more I think about the concept of the DC Workflow the better it fit's my needs :) Do you have an example how to involve more than one object in an workflow .. e.g. There is one object in a certain state that requires another objects state to enable certain transistions. The other object is created and has it's own states and transistions where the other depend on ?? did I get this right ?? thanks for your reply Ulrich Eck net-labs From rcam@psouth.net Fri Jul 6 11:36:28 2001 From: rcam@psouth.net (Bob Campbell) Date: Fri, 6 Jul 2001 06:36:28 -0400 Subject: [Zope-CMF] Re: DC Workflow Message-ID: <00d601c10607$84076760$f9d8723f@psouth.net> This is a multi-part message in MIME format. ------=_NextPart_000_00D3_01C105E5.FCC36CC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Shane wrote.... > The feature of binding types to workflow definitions is *specifically* > designed to make sub-workflows and multiple simultaneous workflows > possible... and maybe even easy. >=20 Hi, Is this similar to the cloning process used by some workflow engines and = described by the WFMC in their article; Workflow: An Introduction? http://www.wfmc.org/standards/docs.htm We are really interested in CMF/Zope as it relates to workflow involving = multiple forms, db's and running stuff cloned and/or running stuff in = some sort of parallel fashion. We have DC coming in for Zope training, will DC be doing a CMF course? = And quickly..-:) Thanks, Bob Campbell Business Line Intranet Development Commercial Lending Banknorth Group=20 207-761-8595 =20 ------=_NextPart_000_00D3_01C105E5.FCC36CC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Shane wrote....
> The = feature of=20 binding types to workflow definitions is *specifically*
> designed = to make=20 sub-workflows and multiple simultaneous workflows
> possible... = and maybe=20 even easy.
>
 
Hi,
Is this similar to the cloning process = used by some=20 workflow engines and described by the WFMC in their = article; Workflow: An=20 Introduction?
 
http://www.wfmc.org/stand= ards/docs.htm
 
We are really interested in CMF/Zope as = it relates=20 to workflow involving multiple forms, db's and running stuff  = cloned and/or=20 running stuff in some sort of parallel fashion.
 
We have DC coming in for Zope training, = will DC be=20 doing a CMF course? And quickly..-:)
 
Thanks,
 
Bob Campbell
Business Line Intranet = Development
Commercial Lending
Banknorth Group 
207-761-8595
 
------=_NextPart_000_00D3_01C105E5.FCC36CC0-- From seb@jamkit.com Fri Jul 6 12:25:37 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 12:25:37 +0100 Subject: [Zope-CMF] searching 'subportals' In-Reply-To: <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch>; from gregoire.weber@switzerland.org on Thu, Jul 05, 2001 at 06:37:53PM +0200 References: <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> Message-ID: <20010706122536.E1317@lenin.jamkit.com> * Grégoire Weber [010705 17:49]: > Hi Seb, > > I would be interested! I wrote up some notes and I've submitted them. Hopefully a new item should appear on the dogbowl later today. seb From seb@jamkit.com Fri Jul 6 12:36:19 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 12:36:19 +0100 Subject: [Zope-CMF] Re: A better CMFworkflow In-Reply-To: <004b01c10603$797a6ee0$3300000a@work01>; from lists@net-labs.de on Fri, Jul 06, 2001 at 12:07:33PM +0200 References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> <3B45323E.51BBD0F1@digicool.com> <20010706113803.D1317@lenin.jamkit.com> <004b01c10603$797a6ee0$3300000a@work01> Message-ID: <20010706123618.H1317@lenin.jamkit.com> * Ulrich Eck [010706 11:10]: > The more I think about the concept of the DC Workflow the better it fit's my > needs :) > > Do you have an example how to involve more than one object in an workflow .. Err... no :-) I'm adlibbing... > e.g. > There is one object in a certain state that requires another objects state > to enable > certain transistions. The other object is created and has it's own states > and > transistions where the other depend on ?? Hmm, it could get pretty complicated and you'd probably need to implement some extra registry services to handle the relationships. I think it could be done, though. > did I get this right ?? I reckon so :) seb From seb@jamkit.com Fri Jul 6 12:45:28 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 6 Jul 2001 12:45:28 +0100 Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <3B44B518.D2BA28B8@digicool.com>; from shane@digicool.com on Thu, Jul 05, 2001 at 02:42:32PM -0400 References: <3B44B518.D2BA28B8@digicool.com> Message-ID: <20010706124527.K1317@lenin.jamkit.com> All sounds completely fine to me. I'd love to see most of these changes. My one concern is that Big New Things may be implemented before they're *completely* fixed. Non-incremental changes can be so destabilising to 3rd party development efforts, and other linked projects such as documentation, they need to be treated very carefully. Having said that, I'm sure you're all very aware of this problem anyway, so it's a bit redundant :) For example, as I understand it part of the NewReligion is to find a solution to the ZOBD/filesystem dichotomy. Would a move to NewReligionCMF be predicated on Zope moving to things like this *first*? seb From jon@pcgs.freeserve.co.uk Fri Jul 6 12:12:29 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Fri, 6 Jul 2001 12:12:29 +0100 Subject: [Zope-CMF] CMF --> CMS (was Re: Our CMF-CMS Demo (LONG!)) In-Reply-To: <3.0.6.32.20010705154833.011800d0@pop.dplanet.ch> Message-ID: Hi Gregoire, > I'm feeling now like (sorry, phrase/saying in german with > translation followed) "Ich sehe den Wald vor lauter Baeumen > nicht mehr" (+/- translation: there are such a lot of trees > I even can't see the forrest anymore, meaning: such a lot of > details and ideas not yet arranged in my own brain > systematically covering the big picture) We have the same saying in English - "I can't see the forest for the trees!" - and I know the feeling. I think that's why my post was so long and rambling. I need a chainsaw... or a helicopter, to get an aerial view! :-) > Hm, good idea! Here on the mailing list? Dunno about anyone else, but I find mailinglists much easier to use than web-discussion pages or wikis. If something pops into my inbox I pay attention, if I have to remember to go and look at a webpage I'll often forget! :-) I think we're trying to define a set of standards for how different CMS-tools interact with the CMF? Are we, perhaps, also trying to define a default_CMS? In the same way there is a default_workflow which can be replaced with other workflows? > I'am not a fan of letting 'normal' users tweak their layout. > Most of them never use it and the rest of them missuse it > (akward colours, etc.) to show to others the could 'program' > a new colour. :-( This kind of persons usualy destroy the > consistence of a site. Absolutely agree! Two points - 1. You would use permissions to restrict who can "tweak", so that only trusted editors can do it, or to turn "tweakability" off completely (have I just invented a new word? sounds kinda kinky! :-) 2. If you have a "Site Styleguide" (see the wysiwyg thread), you can define an acceptable range of colours, fonts, etc. > My a little philosophical approach for information portals is: > Let people define their character by their content not by their layout. Right, but if you have portals-within-portals, the editors of the sub-portals will often want their bit to look slightly/completely different from the "mothership". < seb wrote > > There's a reason > for the client paying someone else to do their design / usability: > it's not their area of expertise. Fewer choices, chosen carefully, > enforces a consistent look and feel and makes the clients' > content-managing lives simpler and hopefully more intuitive. In our market, not many people want/can afford professional designers. RadioUserland and (I think) Blogger have the concept of a library of readymade layouts/templates which you can pick from and then "tweak" to suit your site. > How does the skins philosophy fit into this? As gregoire and ken have > pointed out... > >> IMHO it is important to have different concepts of content storage and >> content retrieving structures. If I've understood klm's proposal >> (http://cmf.zope.org/rqmts/proposals/OrganizationObjects) >> right it's that what he's saying also. > >...the folder containment metaphor / structure is very limited. IMO, > it's probably a good thing to get away from this paradigm, though > aquisition / inheritance needs to be addressed in any other > implementation, if possible. Fair enough. I considered the possibility that content should perhaps live in some kind of separate "content repository", but then my brain exploded, and I decided to keep it simple for now! :-) I do think though, that the folder/containment metaphor has a lot of value for the content-retrieval/presentation structure (as opposed to the content-storage structure). For people constructing a site, it makes a lot of sense IMHO - most webdesigners draw hierarchical tree diagrams when first conceiving a site, most Zope users are familiar with the concept, everyone else is familiar with family-trees and org charts! I'd like to see it remain as a metaphor for the "front-end" - the screens that editors/designers use to construct the site. :-) > Content-object-style - > See above at "[...] composite docs", I think we talk about the same! We > have to bake a little more here! > OK, I'm only a novice chef, but here goes :-) Seems to me that OrganisationObjects define relationships between content-objects - their "context" in the great CMF scheme? They don't define the different ways the info is presented within a page? What I'm proposing is something like the "Presentation Components" in the Component Model Shane posted - http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF - but for internal use by the page-editors when constructing their pages, rather than as views for the end-user. Using your example - after the PR person has composed his composite document, there are at least three different ways it could be viewed within the site. 1. In the news_box - showing the title of the document, which acts as a link to the full view, perhaps with the last_updated date underneath. 2. In the "What's New in PR" summaries list - showing the title, the summary-text, the Creator, the date, and a "read more..." hyperlink to the full view. 3. The full-view - showing the title, the full text, the "links-to-related-stories", and all the other stuff that you find via the OrganisationObjects. I want to be able to define these different views (which don't include the header/footer stuff that the current view methods do, as I want to slot them into my page-layout), without touching any dtml, with only a basic knowledge of html/CSS. So, if I'm the Site-Editor for the organisation the PR person works for, it might work something like this (I've described it in GUI terms, cos I'm too lazy to work out how it could be done TTW at the moment!) - I open up my CMS software, and the first screen I get is a hierarchical view of my site (like an org chart, similar to what Frontpage uses?). I've already created the hompage/root, and branches for Sales, Accounts, Production, and Personnel. I click the "Add New Branch" button and type in the basic details for the PR Department branch and click OK. Now I double-click on the new "PR Department" branch. I see the page-layout screen for my new branch. The layout/template has been inherited from the layout of the Home Page (I could change this if I wanted). The header, footer, lefthand-menu and righthand news_box have also been inherited from the homepage (again, I could change these if I want), but the central "body" of the page is blank. I want the PR page to look the same as the others in my site, so I'm happy, but I have decided that each Department will have a different header-background colour, so that it's easier for visitors to work out where they are. I rightclick on the header section, and choose "Properties". I click the dropdown box for "Background Colour" and select a different colour. Because I had previously defined a list of allowed colours in my Site StyleGuide, I'm only presented with that list of colours in the dropdown box. I click OK, and there's my new page/section, ready for some content! I rightclick on the blank central "body" section, and choose "Define Content". There's a dropdown that allows me to select what I want to be shown. I pick the "List latest 10 objects in reverse date-order" method. Now I have to tell it what to list. I click "Selection Criteria", and I get a dialog with dropdowns which help me define the underlying Catalog-query. I select "type" as 'Documents', and "subject" as 'PR' (I could have refined it with other criteria, but this is a simple one!) But, after I click OK, the "body" section just shows a list of document-IDs! The system knows what I want to display, but not how I want them displayed. This is where I need to define my "Content-object-styles". I could select each listed document ID, and give it a style. But I want them all the same, so I select them all and click "Define Content-style" (must be a better word for this!). My system came with a few readymade styles, and I can add my own if I need to. A dropdown shows the available styles for the document-type. I select "Summary" and press OK. Voila! I now have my "What's new in PR" page, which will be automatically updated whenever a new document is added! But, I'm not totally happy with the look, and the "Creator" property isn't in there, which I wanted. So, I click "Define Content-Style" again, and click the "Customise" button. I get a dialog similar to the WYSIWYG editor, with my first object displayed as an example. I can toggle between "Preview" and "View Source" modes. When I click "View Source", I see something like this - -------------------------------------------------------------------

read more...

------------------------------------------------------------------- I change the

tags to

, then I place the cursor just after , insert a space, then click the "Insert Property" button. I get a list of properties that the document-type exposes. I click "Creator". My source now looks like - -------------------------------------------------------------------

read more...

------------------------------------------------------------------- I click Preview just to check, then click OK. Without knowing a word of DTML, and only the basics of HTML/CSS, I've now created exactly the page I wanted! I make a mental note to send a large cheque to the CMS creators, and head for the pub! :-) Hope that makes things clearer/slightly more baked? Cheers, Jon From gitte@mmmanager.org Fri Jul 6 12:51:27 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Fri, 6 Jul 2001 13:51:27 +0200 Subject: [Zope-CMF] Adding content at cmf.zope.org Message-ID: <01070613512702.01776@squidbitch.mmmanager.org> Hello, I have tried to add a document item at cmf.zope.org Just clicked on the 'My Stuff' link and clicked on the new button. But there are no items I can select to add. Is this a bug or aren't members not allowed to add anything ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: (On the statement print "42 monkeys"+"1 snake") BTW, both perl and Python get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the answer is clearly "41 monkeys and 1 fat snake". - Jim Fulton, 10 Aug 1999 From chrisw@nipltd.com Fri Jul 6 13:38:06 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 06 Jul 2001 13:38:06 +0100 Subject: [Zope-CMF] Niggles References: Message-ID: <3B45B12E.1ACB60E2@nipltd.com> Shane Hathaway wrote: > > Well, it doesn't exist, but I imagine creating a normal (non-FS) Document > would suffice for most purposes. What do you think? Nope :-S It would do as a workaround, but index_html is not a content object. Therefore, it belongs in the a skin layer and would be much easier to manage if ti was FS-based. What should I do? Chris From jtk@adelphia.net Fri Jul 6 13:52:15 2001 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Fri, 6 Jul 2001 08:52:15 -0400 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: Message-ID: <000001c1061a$7c7037d0$0100a8c0@dev1> I'd like to suggest that the (DC) workflow tools support expression of their configuration state with a .toXML() string method. The corollary would be to accept a configuration with a .fromXML() method. With those two methods, I can see an XLST to SVG transform application being possible that would allow TTW GUI workflow configuration. No more writing out states and transitions ahead of time! In fact, I think a first pass at the graphical workflow editor can be hacked just from samples at the impressive http://www.kevlindev.com/ site. In particular, the http://www.kevlindev.com/gui/dom_graph/index.htm and a few of the events/shape creation samples on http://www.kevlindev.com/tutorials/index.htm should provide most of what is needed to reconfigure the XML document during 'editing'. Yes, short term the only practical SVG support is the Adobe plug-in or Batik, but Mozilla's optional SVG project should support 'enough' SVG to handle this by the time the first implementations are finished. We'd need the two XML methods and a versioned XML schema with each new Workflow product to get started with proof-of-concept attempts. Looking forward to it! From chrisw@nipltd.com Fri Jul 6 14:06:37 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 06 Jul 2001 14:06:37 +0100 Subject: [Zope-CMF] Zope component model and CMF References: <3B44B518.D2BA28B8@digicool.com> Message-ID: <3B45B7DD.4CC74AE7@nipltd.com> Shane Hathaway wrote: > > http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF (positive hat) Looks great on the whole :-) > The metadata views are common to all standard CMF content, so presentation > components will need a way to inherit from other presentation components. Well, yes, but surely you should also be able to share presentation components between different CMF Content types? For example, Document, News Item and Reply might all have exactly the same metadata, is there any reason why they couldn't use the same Metadata presentation component? Maybe presentation components could be acquired from some 'higher place' when they need to be re-used like this? > Going deeper, presentation components will need an inheritance hierarchy. One use case involves > site managers who set up a new CMF site and want to customize the presentation of news items. > The default presentation components will be filesystem directory views. The site manager will visit > the news_item presentation component and click the customize button. This will create a new > presentation component, usually in a different folder, that inherits from the default presentation > component. Then the site manager will visit the new presentation component and click an > override button to make a locally modifiable copy of a view. This doesn't quite make sense to me. When I click 'customize' on a presentation component, I want a new editable copy of the whole component to appear. I don't want to have to do this and then customise to somewhere else first before I can actually make changes to anything. Of course, from a maintenance poitn of view, you wouldn't actually want to copy all the methods etc into 'customized' versions straight away 'cos then when the FS-based version gets updated, they won't get the benefits, even if the end user hasn't modified them at all. So, how about: click customize of the FS-presentation object, this creates the ZODB based version which doesn't actually contain anything, but appears to contain editable versiosn of everything. The first time these editable versions are saved, they are then actually stored in the ZODB? Does that make sense? If not, I need to explain better :-) > One > way to deal with this is to perform reindexing in the presentation layer. Another is to make the > catalog transparent, reindexing whenever objects are changed. This is not a vital issue for now. Re-indexing in the presenation layer (as well as rebuilding the discussion tree if necessary; see earlier list threads about my ideas for the discussion tool) are things I'm having to do for Swishdot, this code is fine where it is, but if it gets customized, it'll make life more difficult when it is transparently done. ...of course, I think it's vital that transparent re-indexing (and other hooked in operations, like discussions modification) happen. What service/tool/etc will enable this to happen? cheers, Chris From jtk@adelphia.net Fri Jul 6 14:21:06 2001 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Fri, 6 Jul 2001 09:21:06 -0400 Subject: [Zope-CMF] Re: A better CMFworkflow - Time Domain In-Reply-To: Message-ID: <000001c1061e$83808cb0$0100a8c0@dev1> It would be useful for the workflow to support the time and event domain for state transitions. Some use cases: 1) Content type has a workflow where one or more transitions are a function of time. (User) approved -> published -> (2 weeks) -> archived Not every workflow would need timer events, so it should be a component that is explicitly enabled to pulse to a Zone-wide heartbeat at a selectable resolution. 2) Content type has one or more state transitions that are triggered by an CMFEvent content type's 'arrival'. That interface might be expressed by custom content types. In general, this brings up the idea of linking one items state to another's with weak references becoming raiseable events(). Objects might want to watch specific transitions of other objects, or other content types as a class. P.S. Have the DC guys working on their next workflow revision had any hands-on exposure to the Exchange 2000 Workflow designer? Visual Editor aside, It's a good standard to answer the questions of what we need from general workflow framework, one than can support applications other than portals. Definitely worth a demo installation. Exchange's folder events (now Web Storage System events) are very useful. Items kick off general events defined by the folder on add, change, delete, etc., to which the workflow can hook into. This is also where they get their time-domain workflow events. Very acquisition-like. From chrisw@nipltd.com Fri Jul 6 14:25:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 06 Jul 2001 14:25:39 +0100 Subject: Stable Framework (was Re: [Zope-CMF] Zope component model and CMF) References: <3B44B518.D2BA28B8@digicool.com> <20010706124527.K1317@lenin.jamkit.com> Message-ID: <3B45BC53.6BC83349@nipltd.com> (negative hat response ;-) seb bacon wrote: > Non-incremental changes can be so > destabilising to 3rd party development efforts, I'll say! I've got two major products I want to base on the CMF and by the sounds of it, they'll both need to be completely re-written when this happens :-( Don't get me wrong, I really like the NR stuff and the stuff in Shane's document, but it makes the CMF a hard choice to currently justify as a framework to use, purely for stability reasons. Having come in this afternoon and read that, I feel a bit like I've had the rug pulled out from under me :-S (but in as good a way as possible, IYKWIM :-) > For example, as I understand it part of the NewReligion is to find a > solution to the ZOBD/filesystem dichotomy. Would a move to > NewReligionCMF be predicated on Zope moving to things like this > *first*? ...and, what the overall timescales we should be expecting for these things? Finally, will there be a 'pre-NR' branch of the CMF maintained so that if products are implemented now, they won't _have_ to move until time can be found to re-implement them? How are DC managing this process WRT to installed (and customized) CMF sites which customers are using? Do you (DC) have any customized or alternate tool implementations? If so, how hard to you see it being to migrate them? cheers, Chris From shane@digicool.com Fri Jul 6 15:14:29 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 6 Jul 2001 10:14:29 -0400 Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <20010706124527.K1317@lenin.jamkit.com> References: <3B44B518.D2BA28B8@digicool.com> <20010706124527.K1317@lenin.jamkit.com> Message-ID: <01070610142900.09024@shane.digicool.com> On Friday 06 July 2001 07:45, seb bacon wrote: > For example, as I understand it part of the NewReligion is to find a > solution to the ZOBD/filesystem dichotomy. Would a move to > NewReligionCMF be predicated on Zope moving to things like this > *first*? Fortunately, the ZODB/FS dichotomy is not part of the component model. The component model can help us solve it, though. Shane From dan@control.com Fri Jul 6 15:17:00 2001 From: dan@control.com (Dan L. Pierson) Date: Fri, 06 Jul 2001 10:17:00 -0400 Subject: [Zope-CMF] Make CMF root of site? In-Reply-To: Message-ID: <73250000.994429020@daystar.control.com> --On Thursday, July 05, 2001 09:26:03 PM -0500 "davelehman@loewen.com" wrote: > When I add a new "CMF Site" in Zope, it always puts it in a folder. How > can I make/move it to the root level, so that the default page my users > go into is my CMF site? We're running naked ZServer instead of Apache at the moment so I've got a SiteRoot with all properties set to '' in each CMF folder and a site access rule in the root that sets things up for the correct folder/SiteRoot based on incoming host name. It's a little more complicated to set up the first time but very clear and easy to maintain once you get it going. From shane@digicool.com Fri Jul 6 15:18:53 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 6 Jul 2001 10:18:53 -0400 Subject: [Zope-CMF] Niggles In-Reply-To: <3B45B12E.1ACB60E2@nipltd.com> References: <3B45B12E.1ACB60E2@nipltd.com> Message-ID: <01070610185302.09024@shane.digicool.com> On Friday 06 July 2001 08:38, Chris Withers wrote: > Shane Hathaway wrote: > > Well, it doesn't exist, but I imagine creating a normal (non-FS) > > Document would suffice for most purposes. What do you think? > > Nope :-S It would do as a workaround, but index_html is not a content > object. Therefore, it belongs in the a skin layer and would be much > easier to manage if ti was FS-based. > > What should I do? You could subclass FSDTMLMethod and associate the extension ".dtmldoc" with FSDTMLDocuments. Or you could reconsider the stance on the home page not being content... I think it might be. Hard to say. Shane From shane@digicool.com Fri Jul 6 15:34:44 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 6 Jul 2001 10:34:44 -0400 Subject: Stable Framework (was Re: [Zope-CMF] Zope component model and CMF) In-Reply-To: <3B45BC53.6BC83349@nipltd.com> References: <3B44B518.D2BA28B8@digicool.com> <20010706124527.K1317@lenin.jamkit.com> <3B45BC53.6BC83349@nipltd.com> Message-ID: <01070610344403.09024@shane.digicool.com> On Friday 06 July 2001 09:25, Chris Withers wrote: > (negative hat response ;-) > > seb bacon wrote: > > Non-incremental changes can be so > > destabilising to 3rd party development efforts, > > I'll say! I've got two major products I want to base on the CMF and by > the sounds of it, they'll both need to be completely re-written when > this happens I stated my hope (at the bottom) that migration won't be too difficult. I (we) take migration issues very seriously! Considering that the zope-cmf list has exploded with activity, it would be a terrible mistake to break compatibility now. By releasing version 1.0, we made an implicit (as well as explicit) promise to retain compatibility. > ...and, what the overall timescales we should be expecting for these > things? That is yet to be determined. This is not a project yet, nor even a proposal, just an informal RFC. > Do you (DC) have any customized or alternate tool implementations? If > so, how hard to you see it being to migrate them? The tools will be a piece of cake to migrate IMHO; they just have to be called "services" instead of tools and have to be found a different way. The presentation layer will have more fundamental changes but I believe we can write a script that will migrate your customizations. Shane From chrisw@nipltd.com Fri Jul 6 15:37:20 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 06 Jul 2001 15:37:20 +0100 Subject: [Zope-CMF] Niggles References: <3B45B12E.1ACB60E2@nipltd.com> <01070610185302.09024@shane.digicool.com> Message-ID: <3B45CD20.572B0663@nipltd.com> Shane Hathaway wrote: > > You could subclass FSDTMLMethod and associate the extension ".dtmldoc" > with FSDTMLDocuments. Hmmm, doesn't sounds too hard :-) > Or you could reconsider the stance on the home > page not being content... I think it might be. Hard to say. Well, it collects and displays content objects, which for me isn't content itself but... ...whatabout just adding a PortalTitle property to the portal and using that in standard_html_header instead? Hmmm, that'd do it, but it means the Title that shows up in the Management Interface tree will be the long one :-S Any ideas on how to solve that? (much less serious problem...) cheers, Chris From shane@digicool.com Fri Jul 6 15:40:26 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 6 Jul 2001 10:40:26 -0400 Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <3B45B7DD.4CC74AE7@nipltd.com> References: <3B44B518.D2BA28B8@digicool.com> <3B45B7DD.4CC74AE7@nipltd.com> Message-ID: <01070610402604.09024@shane.digicool.com> On Friday 06 July 2001 09:06, Chris Withers wrote: > Shane Hathaway wrote: > > The metadata views are common to all standard CMF content, so > > presentation components will need a way to inherit from other > > presentation components. > > Well, yes, but surely you should also be able to share presentation > components between different CMF Content types? > For example, Document, News Item and Reply might all have exactly the > same metadata, is there any reason why they couldn't use the same > Metadata presentation component? Um... you just said basically the same thing I did. :-) I suppose I was too terse. > So, how about: click customize of the FS-presentation object, this > creates the ZODB based version which doesn't actually contain anything, > but appears to contain editable versiosn of everything. The first time > these editable versions are saved, they are then actually stored in the > ZODB? Hmm, that may be doable. Nifty! > ...of course, I think it's vital that transparent re-indexing (and > other hooked in operations, like discussions modification) happen. What > service/tool/etc will enable this to happen? It's a piece of Zope infrastructure that isn't there yet. In fact yesterday I spent a lot of time trying to find a nice way to achieve transparent indexing. I even modified cPersistence.c to try out an idea. I'm sure there's a way to do it right but we haven't found it yet. Shane From chrisw@nipltd.com Fri Jul 6 16:09:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 06 Jul 2001 16:09:39 +0100 Subject: [Zope-CMF] Re: Stable Framework References: <3B44B518.D2BA28B8@digicool.com> <20010706124527.K1317@lenin.jamkit.com> <3B45BC53.6BC83349@nipltd.com> <01070610344403.09024@shane.digicool.com> Message-ID: <3B45D4B3.DB0CB697@nipltd.com> Excellent :-) Just the sort of response I was hoping for... thanks, Chris Shane Hathaway wrote: > > On Friday 06 July 2001 09:25, Chris Withers wrote: > > (negative hat response ;-) > > > > seb bacon wrote: > > > Non-incremental changes can be so > > > destabilising to 3rd party development efforts, > > > > I'll say! I've got two major products I want to base on the CMF and by > > the sounds of it, they'll both need to be completely re-written when > > this happens > > I stated my hope (at the bottom) that migration won't be too difficult. > I (we) take migration issues very seriously! Considering that the > zope-cmf list has exploded with activity, it would be a terrible mistake > to break compatibility now. By releasing version 1.0, we made an > implicit (as well as explicit) promise to retain compatibility. > > > ...and, what the overall timescales we should be expecting for these > > things? > > That is yet to be determined. This is not a project yet, nor even a > proposal, just an informal RFC. > > > Do you (DC) have any customized or alternate tool implementations? If > > so, how hard to you see it being to migrate them? > > The tools will be a piece of cake to migrate IMHO; they just have to be > called "services" instead of tools and have to be found a different way. > The presentation layer will have more fundamental changes but I believe > we can write a script that will migrate your customizations. > > Shane From marc@bowery.com Fri Jul 6 16:19:27 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 06 Jul 2001 11:19:27 -0400 Subject: Stable Framework (was Re: [Zope-CMF] Zope component model and CMF) In-Reply-To: <3B45BC53.6BC83349@nipltd.com> Message-ID: > From: Chris Withers > > I'll say! I've got two major products I want to base on the CMF and by the > sounds of it, they'll both need to be completely re-written when this happens > :-( Yes, it's a little frustrating... not to mention, things like skins, etc... At least, with this proposal, we can all see the next 'plateau' and plan for it (hopefully it'll stop moving around before it's implemented)... but for us who are putting sites together now, I hope that the current approach is maintained (i.e. bug fixes) for a while in parallel... From jholland@tomsw.com Fri Jul 6 16:42:27 2001 From: jholland@tomsw.com (John Holland) Date: Fri, 6 Jul 2001 11:42:27 -0400 Subject: [Zope-CMF] docs Message-ID: <20010706114227.A9431@tomsw.com> I hate to send a message like this, but I'm getting nowhere with CMF. Is there any documentation that describes at an end-user level how to add content from one account so others can see it and other basic topics? John Holland From simon@joyful.com Fri Jul 6 17:04:08 2001 From: simon@joyful.com (Simon Michael) Date: 06 Jul 2001 09:04:08 -0700 Subject: [Zope-CMF] Re: Make CMF root of site? In-Reply-To: <73250000.994429020@daystar.control.com> ("Dan L. Pierson"'s message of "Fri, 06 Jul 2001 10:17:00 -0400") References: <73250000.994429020@daystar.control.com> Message-ID: <87u20qcadj.fsf@joyful.com> "Dan L. Pierson" writes: > We're running naked ZServer instead of Apache at the moment so I've > got a SiteRoot with all properties set to '' in each CMF folder and > a site access rule in the root that sets things up for the correct > folder/SiteRoot based on incoming host name. It's a little more > complicated to set up the first time but very clear and easy to > maintain once you get it going. Hi Dan - I'd really like to see this, would you be willing to post your rule ? -Simon From jon@pcgs.freeserve.co.uk Fri Jul 6 17:12:18 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Fri, 6 Jul 2001 17:12:18 +0100 Subject: [Zope-CMF] CMF Week in Review 5 Message-ID: http://cmf.zope.org/news/weekly/20010706 Cheers, Jon Oh, and just for Simon... ;-) -------------------------------------------------------- **The stats ma'am, just the stats...** There were 181 messages, by 54 posters. 37% of messages were created by 7% of the posters. Coincidentally, this is the same proportion of all posters whose surname begins with a vowel. Don't you feel better for knowing that? **On the Most Wanted list this week...** ZopeNewbies "considers":http://www.zopenewbies.net/994068940/index_html becoming a CMFNewbie. Come on in, the water's lovely! Darin wants to use CMF to make a "SourceForge":http://lists.zope.org/pipermail/zope-cmf/2001-July/008027.html clone. Which leads to Ken unleashing another of his "unsupported beasts":http://lists.zope.org/pipermail/zope-cmf/2001-July/008112.html, and the tantalising prospect of a CMF-based Tracker! Do DC's offices resemble the "Marie-Celeste" this week? No postcards from Tres, but Shane is holding the fort and releases an early proposal to "align":http://lists.zope.org/pipermail/zope-cmf/2001-July/008157.html CMF with the Zope "New Religion". And Andrew "muses":http://lists.zope.org/pipermail/zope-cmf/2001-July/008160.html on the possibilities for Repeating Events in CMF Calendar. Seb "proposes":http://lists.zope.org/pipermail/zope-cmf/2001-July/008121.html that a standard should be developed for Content Management Systems to interact with CMF. Many heads nod vigorously in approval, and Ulrich "ties in":http://lists.zope.org/pipermail/zope-cmf/2001-July/008138.html the development of workflow tools. Jeff takes the workflow concept "one step further":http://lists.zope.org/pipermail/zope-cmf/2001-July/008182.html, with the possibility of a GUI workflow tool. Rene "asks":http://lists.zope.org/pipermail/zope-cmf/2001-July/008040.html for tips on CMF-ising Python products, and Marc "obliges":http://lists.zope.org/pipermail/zope-cmf/2001-July/008062.html "Modular Documentation":http://lists.zope.org/pipermail/zope-cmf/2001-July/008129.htm l anyone? **Still at large from last week...** "How to translate CMF":http://lists.zope.org/pipermail/zope-cmf/2001-July/008025.html "CMF for Intranets":http://lists.zope.org/pipermail/zope-cmf/2001-July/008049.html From dieter@handshake.de Thu Jul 5 17:51:57 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 5 Jul 2001 18:51:57 +0200 (CEST) Subject: [Zope-CMF] Suggestion - Modular Documentation In-Reply-To: <20010705103532.F25562@lenin.jamkit.com> References: <20010704163544.S19615@lenin.jamkit.com> <3B436100.D6739F78@nipltd.com> <20010705103532.F25562@lenin.jamkit.com> Message-ID: <15172.39725.804920.430431@lindm.dm> seb bacon writes: > * Chris Withers [010705 09:12]: > > StructedText, why? I gotta agree with Jon, why come up with another form of > > markup language when you have to translate it from there into another one > > anyway?! > > Well, there's not much in it, but here's my reasoning: > > 1) You can read stx straight from the filesystem as plain text , which > is nice for developers You can do that with HTML, too. Okay, not the one produced by MS Word, but HTML can be very readable. > 2) You don't have to translate it - it happens for you :-P I am not always happy with the outcome. At least with the old StructuredText (I do not yet know StructuredText-NG), it was quite difficult to get something like: def foo(a, b='text'): right. The quoting rules have not been as clear as that of HTML. More difficulties: * relative URL's * the inclusion of "<" I once made a comment to one of the Wiki's. I used lots of "<", because I thought it were text not HTML. I was horrified when I saw the result - an unreadable comment. > 3) There's supposedly the promise of being able to output it as ps, > pdf, etc. That's true for HTML, too, isn't it? > 4) We'd have to come up with a standard for which tags to use if we > went with html, whereas stx enforces a decision for you. Aren't the HTML tags not as straight forward as the StructuredText indentation rules? Dieter From dieter@handshake.de Fri Jul 6 17:42:45 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 6 Jul 2001 18:42:45 +0200 (CEST) Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <3B44B518.D2BA28B8@digicool.com> References: <3B44B518.D2BA28B8@digicool.com> Message-ID: <15173.60038.1717.329667@lindm.dm> Shane Hathaway writes: > Here at DC a few of us have been working on a component model for Zope. > We have roughly defined what components should be like in Zope and have > written some documentation. Would be interesting to see this documentation, too. > So I wrote up a document describing how I think CMF will change. I am > seeking input from everyone involved in CMF. Comments encouraged. > > http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF > > The new Zope component model is very similar to the current CMF model, > so the changes will be small compared with the move from PTK to CMF. > The major change is in the use of a new concept called "presentation > components" instead of disjoint scripts and methods in the skins tool. > Related scripts and methods will be grouped together to form a > presentation component. Very good! Dieter From ueck@net-labs.de Fri Jul 6 18:45:47 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Fri, 6 Jul 2001 19:45:47 +0200 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration References: <000001c1061a$7c7037d0$0100a8c0@dev1> Message-ID: <007101c10643$7d39f3d0$3300000a@work01> Hi jeff > I'd like to suggest that the (DC) workflow tools support expression of > their configuration state with a .toXML() string method. The corollary > would be to accept a configuration with a .fromXML() method. > This would be the perfect place to implement some standartised XML-Format .. we have to look around .. what options there are. I searched a lot in the mission to find the right XML-Format for a Workflow-Process-Definition and found the following: - Wf-XML Workflow Process Definition Interface -- XML Process Definition Language (22.05.2001) http://www.wfmc.org/standards/docs.htm pdf-spec: http://www.wfmc.org/standards/docs/xpdl_010522..pdf - wftk (open-source workflow-toolkit) uses an selfmade xml-format for process-definition and process-communiction http://www.vivtek.com/wftk/ - I think Bizztalk has another xml-format but i have no knowledge about that - thought about doing it myself .. but this goes far beond what I think I could get out of my head .. (and timetable) The second point is, that one can edit and replicate many versions of several worfklows better with an editor and cvs than by copy-paste objects within zope. > With those two methods, I can see an XLST to SVG transform application > being possible that would allow TTW GUI workflow configuration. No more > writing out states and transitions ahead of time! > When using a standard .. every workflow-designer of (probably) any other vendor could be used (assumed it conforms to the standard) Is there a python module for svg-read/write availiable ?? It would be interesting though to build some UserInterface with SVG .. > We'd need the two XML methods and a versioned XML schema with each new > Workflow product to get started with proof-of-concept attempts. Looking > forward to it! > me too Ulrich Eck From aboulang@ldeo.columbia.edu Fri Jul 6 19:03:12 2001 From: aboulang@ldeo.columbia.edu (albert boulanger) Date: Fri, 6 Jul 2001 14:03:12 -0400 (EDT) Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: <007101c10643$7d39f3d0$3300000a@work01> (ueck@net-labs.de) Message-ID: <200107061803.OAA03939@ox.ldgo.columbia.edu> The Magi (endtech.com) for P2P workflow have something they call process-xml. They also use SWAP, a predecessor to Wf-XML. FYI, Albert Boulanger aboulanger@vpatch.com From brian@mmmanager.org Fri Jul 6 20:41:27 2001 From: brian@mmmanager.org (Brian Olsen) Date: Fri, 6 Jul 2001 21:41:27 +0200 Subject: [Zope-CMF] Limiting allowed portal types Message-ID: <012c01c10653$a5ccd000$0400000a@mmmanager.org> Hi, Is there any way to limit the what portal types a user can create in his = own member folder??? Specificly I want Managers to be able to make Files but a normal member = should never be allowed to make files. Brian From dan@control.com Fri Jul 6 20:49:44 2001 From: dan@control.com (Dan L. Pierson) Date: Fri, 06 Jul 2001 15:49:44 -0400 Subject: [Zope-CMF] Re: Make CMF root of site? In-Reply-To: <87u20qcadj.fsf@joyful.com> Message-ID: <93430000.994448984@daystar.control.com> --==========940360887========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline --On Friday, July 06, 2001 09:04:08 AM -0700 Simon Michael wrote: > "Dan L. Pierson" writes: >> We're running naked ZServer instead of Apache at the moment so I've >> got a SiteRoot with all properties set to '' in each CMF folder and >> a site access rule in the root that sets things up for the correct >> folder/SiteRoot based on incoming host name. It's a little more >> complicated to set up the first time but very clear and easy to >> maintain once you get it going. > > Hi Dan - I'd really like to see this, would you be willing to post > your rule ? Ask and you shall receive: --==========940360887========== Content-Type: text/plain; charset=us-ascii; name="quintus_access_rule.py" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="quintus_access_rule.py"; size=988 ## Script (Python) "access_rule" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## #context.log_('access rule entered') req = context.REQUEST stack = req['TraversalRequestNameStack'] if stack and stack[-1] == 'Z': stack.pop() req.setVirtualRoot('Z') else: if req.has_key('HTTP_HOST'): host = req['HTTP_HOST'] else: host = 'quintus.control.com' vhost_folder = [] if host in ['www.puffinscada.org', 'puffinscada.control.com']: vhost_folder = ['puffin_scada'] elif host in ['www.puffinplc.org', 'puffinplc.org', 'www.linuxplc.org', 'linuxplc.control.com', 'puffinplc.control.com']: vhost_folder = ['puffin_plc'] #context.log_('access rule goto %s' % `vhost_folder`) if vhost_folder: vhost_folder.reverse() stack.extend(vhost_folder) req.set('SiteRootPATH', '/') --==========940360887==========-- From marc@bowery.com Fri Jul 6 21:06:03 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 06 Jul 2001 16:06:03 -0400 Subject: [Zope-CMF] Limiting allowed portal types In-Reply-To: <012c01c10653$a5ccd000$0400000a@mmmanager.org> Message-ID: If you go to the portal_types/File/manage_access tab, for "Access contents information" uncheck 'acquire' and check 'manager' and (possibly) 'owner'. You might find some bugs in some of the things like folder_contents.dtml when you do this depending on which version of CMF... basically some missing skip_unauthorized's > From: "Brian Olsen" > Date: Fri, 6 Jul 2001 21:41:27 +0200 > To: > Subject: [Zope-CMF] Limiting allowed portal types > > Hi, > > Is there any way to limit the what portal types a user can create in his own > member folder??? > > Specificly I want Managers to be able to make Files but a normal member should > never be allowed to make files. > > Brian > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From rcam@psouth.net Sat Jul 7 03:10:38 2001 From: rcam@psouth.net (Bob Campbell) Date: Fri, 6 Jul 2001 22:10:38 -0400 Subject: [Zope-CMF] Opps References: Message-ID: <00ff01c1068a$0406e9e0$f9d8723f@psouth.net> Sorry about posting with HTML turned on, didn't realize it was set that way...drives me crazy when I have to scroll through a bunch of markup... Bob From jtk@adelphia.net Sat Jul 7 04:12:24 2001 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Fri, 6 Jul 2001 23:12:24 -0400 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: Message-ID: <000001c10692$a5bbe170$0100a8c0@dev1> I've make a quick representation of the DCWorkflow's configuration properties in an XML document. When time permits, something like this will be the source document from which I'll try an XSLT transform to make an SVG workflow diagram. I'm putting it out there early to foster the discussion. This is more or less the config info our best workflow tool stores today, maybe it will help us to spec out what else we need workflow to do going forward. http://cmf.zope.org/Members/JeffK/dcworkflow.xml/view Which may still be waiting on "published" approval. Gotta respect the Workflow, you know :) Regarding the question of whether adherance to a standard XML schema is necessary, I wouldn't want to slow down the Workflow tools developers, or limit their flexibility this early in the game. A standard schema *would* be great, but a clear XML serialization and deserialization that's close to their particular object mapping is still be a good start, and its all we really need to try out the concept of Diagram-based configuration. We can XSLT into any number of schemas after the fact. If the XMLObject project was ready, we could even try this on existing workflow tools without distracting them at all. It sounds like that will someday provide XML (de)serialization. Interim dcworkflow.xml download link: http://jtk.cx/dcworkflow.xml (4.5kb) From shane@digicool.com Sat Jul 7 05:07:34 2001 From: shane@digicool.com (Shane Hathaway) Date: Sat, 07 Jul 2001 00:07:34 -0400 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration References: <000001c10692$a5bbe170$0100a8c0@dev1> Message-ID: <3B468B06.58184F7F@digicool.com> Jeff Kowalczyk wrote: > http://cmf.zope.org/Members/JeffK/dcworkflow.xml/view Wow, thanks Jeff! This is a very good first step. > Regarding the question of whether adherance to a standard XML schema is > necessary, I wouldn't want to slow down the Workflow tools developers, > or limit their flexibility this early in the game. A standard schema > *would* be great, but a clear XML serialization and deserialization > that's close to their particular object mapping is still be a good > start, and its all we really need to try out the concept of > Diagram-based configuration. We can XSLT into any number of schemas > after the fact. That's an important point IMHO. To a large extent, applications are defined by their data schema. Therefore when you limit the data schema, you also limit the application. Standardization is good, but only when maturity has been achieved. In fact the XML file you published revealed a couple of flaws in DCWorkflow. For example, the user action details probably ought to be in a separate object. > If the XMLObject project was ready, we could even try this on existing > workflow tools without distracting them at all. It sounds like that will > someday provide XML (de)serialization. I've written several XML (de)serialization routines (for other projects), and they all turned out to be a lot more work than I expected. There must be a pattern out there that's easy to apply and extend. Look, for example, at the implementation of PPML, the "Python Pickle Markup Language", in lib/python/Shared/DC/xml. The implementation is much more complex than I would expect. Here's an off-topic thought: writing Python object <-> XML routines in Python is more complex than expected, and writing Python object <-> XML routines in XML (i.e. XSLT) is also complex, but maybe the "sweet spot" is in writing a short XML file that combines with a short Python file? Somehow you'd put everything XMLish in the XML file and everything Pythonic in the module. Hmm... :-) Shane From jtk@adelphia.net Sat Jul 7 07:24:47 2001 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Sat, 7 Jul 2001 02:24:47 -0400 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: <3B468B06.58184F7F@digicool.com> Message-ID: <000001c106ad$857c28a0$0100a8c0@dev1> [Shane] I've written several XML (de)serialization routines (for other projects), and they all turned out to be a lot more work than I expected. There must be a pattern out there that's easy to apply and extend. [jtk] This type of thing needs to happen at the framework level to be useful. XML (de)serialization is important because it always gives you a point of disembarkment from your framework if it can't do, or takes undue effort to do, a particular kind of data manipulation. In our case, the highly-configured workflow tool could benefit from an alternative to property pages, for reasons including, but not limited, to visualization. There's two general-case implementations that come to mind. Of course, neither of them are for Python, but could inspire an implementation strategy for Zope. Java: http://www.csse.monash.edu.au/~bren/JSX/ .NET: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguidn f/html/cpconserialization.asp (if one can browse msdn without IE, I'll be shocked) As if compliments to MS would fly in *this* group, but the .NET class libraries are impressive. Never mind about the C#/VB languages, it's the Libraries that do the work. Look at what they can do with XML serialization: http://www.gotdotnet.com/quickstart/howto/doc/xmlserialization/RWObjFrom XML.aspx Turn something like *that* loose with ZPT, and look out! I'm watching the Zope-NewReligon effort with interest, because to preserve Python's productivity edge, we'd be better off imitating .NET rather than IUnknown-era COM. They don't really query interfaces anymore, they cast to interfaces and data types safely. This class framework is going to give Zope some serious competition if they ever get a ODBMS or XMLDBMS to manage what their classes can already do with persistency. From Christoph.Schirmer@snafu.de Sat Jul 7 10:22:59 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Sat, 07 Jul 2001 11:22:59 +0200 Subject: [Zope-CMF] Skinned Folders References: <000001c106ad$857c28a0$0100a8c0@dev1> Message-ID: <3B46D4F3.5776BD59@snafu.de> This is a multi-part message in MIME format. --------------5D3E126980FE1DE63E3D60BE Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit As I didn´t find any documentation on the cmf site, could someone please explain Skinned Folders, in comparison to Folders or Portal Folders? When should one use Skinned Folders? Thank you, Christoph --------------5D3E126980FE1DE63E3D60BE Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------5D3E126980FE1DE63E3D60BE-- From aboulang@ldeo.columbia.edu Sat Jul 7 16:31:36 2001 From: aboulang@ldeo.columbia.edu (albert boulanger) Date: Sat, 7 Jul 2001 11:31:36 -0400 (EDT) Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: <000001c10692$a5bbe170$0100a8c0@dev1> (jtk@adelphia.net) Message-ID: <200107071531.LAA04893@ox.ldgo.columbia.edu> I've make a quick representation of the DCWorkflow's configuration properties in an XML document. When time permits, something like this will be the source document from which I'll try an XSLT transform to make an SVG workflow diagram. I'm putting it out there early to foster the discussion. This is more or less the config info our best workflow tool stores today, maybe it will help us to spec out what else we need workflow to do going forward. I have thought of this path, but my hangup has been dyanmically updating the SVG display from the server if workflow state changes w/o causing the whole page to refresh. THis is a trick I know which involves reading from the DOM tree in an invisible frame to do this, but it seems a bit of a hack and when one wants to author visual workflow, well, one begins thinking of applets to do so, See for example this java based workflow display and authoring system: http://www.ics.uci.edu/pub/endeavors/endeavors.html Regards, Albert Boulanger aboulanger@vpatch.com From simon@joyful.com Sat Jul 7 21:58:43 2001 From: simon@joyful.com (Simon Michael) Date: 07 Jul 2001 13:58:43 -0700 Subject: [Zope-CMF] Re: [Zope-CMF]Make CMF root of site? In-Reply-To: <93430000.994448984@daystar.control.com> ("Dan L. Pierson"'s message of "Fri, 06 Jul 2001 15:49:44 -0400") References: <93430000.994448984@daystar.control.com> Message-ID: <877kxkbgn0.fsf@joyful.com> Thanks! From J&U Becker" This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C10743.0FCA3D40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear ZOPE Developers, I tried to install the CMF 1.1 into Zope Version 2.3.2 following the = installation instructions given but failed.=20 - I tried to copy the folder 'CMF-1.1' into the folder = ZopeRoot\lib\python\Products - I tried to copy the folder 'CMF-1.1' into the folder ZopeRoot\Products = which I created=20 Each time I restarted the Zope server, but the CMF did not show up in = the products list under the Control Panel. Even the upgrade to Zope = Version 2.3.3 did not help. Is this product for UNIX OS only or do I have to follow a different = installation procedure? Regards Juergen ------=_NextPart_000_000B_01C10743.0FCA3D40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear ZOPE = Developers,
I tried to install the = CMF=20 1.1 into Zope Version 2.3.2 following the installation instructions = given=20 but failed.
- I tried to copy the = folder=20 'CMF-1.1' into the folder ZopeRoot\lib\python\Products
- I tried to copy the = folder=20 'CMF-1.1' into the folder ZopeRoot\Products which I=20 created 
Each time I restarted = the Zope=20 server, but the CMF did not show up in the products list under the = Control=20 Panel. Even the upgrade to Zope Version 2.3.3 did not help.
 
Is this product for = UNIX OS only=20 or do I have to follow a different installation procedure?
 
Regards
Juergen
------=_NextPart_000_000B_01C10743.0FCA3D40-- From erik@thingamy.net Sat Jul 7 23:22:27 2001 From: erik@thingamy.net (Erik Enge) Date: 08 Jul 2001 00:22:27 +0200 Subject: [Zope-CMF] Installation CMF 1.1 on Windows 98 OS Failed In-Reply-To: <000e01c10732$4cfa0ee0$cb9776d5@pandora.be> References: <000e01c10732$4cfa0ee0$cb9776d5@pandora.be> Message-ID: <87ith4qt0c.fsf@thingamy.net> [J. &U. Becker] | I tried to copy the folder 'CMF-1.1' into the folder | ZopeRoot\lib\python\Products - I tried to copy the folder 'CMF-1.1' | into the folder ZopeRoot\Products which I created Forgive me if I'm only confusing you more. I'm a CMF-newbie. You need to copy all the folders in the CMF-1.1/ directory that starts with CMF to your Products/ directory. Under Unix that would look something like this: cp -R CMF-1.1/CMF* ZopeRoot/lib/python/Products I'm not sure what you would do under Windows, but you should get an[ idea from this. I hope ;). From Andreas Jung" Message-ID: <01f701c1073b$7c26d870$9865fea9@SUXLAP> Try to put all CMF folders (CMFCore, CMFDefault etc.) under ZopeRoot\lib\python\Products. This should work. Andreas >----- Original Message ----- >From: J&U Becker >To: zope-cmf@zope.org >Sent: Samstag, 7. Juli 2001 17:15 Subject: [Zope-CMF] Installation CMF 1.1 on Windows 98 OS Failed >Dear ZOPE Developers, >I tried to install the CMF 1.1 into Zope Version 2.3.2 following the installation instructions given but failed. >- I tried to copy the folder 'CMF-1.1' into the folder ZopeRoot\lib\python\Products >- I tried to copy the folder 'CMF-1.1' into the folder ZopeRoot\Products which I created >Each time I restarted the Zope server, but the CMF did not show up in the products list under the Control Panel. Even >the upgrade to Zope Version 2.3.3 did not help. >Is this product for UNIX OS only or do I have to follow a different installation procedure? >Regards >Juergen From gitte@mmmanager.org Sat Jul 7 23:40:03 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Sun, 08 Jul 2001 00:40:03 +0200 Subject: [Zope-CMF] Installation CMF 1.1 on Windows 98 OS Failed Message-ID: <3.0.6.32.20010708004003.00dd0c70@mmmanager.org> At 00:15 08-07-2001 +0200, you wrote: > Dear ZOPE Developers, into Zope Version 2.3.2 following the >installation instructions given but failed. - I tried to copy the folder >'CMF-1.1' into the folder ZopeRoot\lib\python\Products Each time I >restarted the Zope server, but the CMF did not show up in the products >list under the Control Panel. Even the upgrade to Zope Version 2.3.3 did >not help. Is this product for UNIX OS only or do I have to follow a >different installation procedure? Regards Juergen Hello, First - please do not post HTML urls. Back to your problem: If you look into the CMF-1.1 directory you will see 3 other directory's (or is it 4 in 1.1?) Anyway - you must copy all these directories into ZopeRoot/lib/python/Products - not just the CMF-1.1 directory. Don't know if what I just wrote makes any sense but after copying the directories, the structure should be like this: ZopeRoot/lib/python/Products/CMFCore ZopeRoot/lib/python/Products/CMFDefault ZopeRoot/lib/python/Products/CMF Hope this helps you (sorry I'm very tired - perhaps sleeping will help *S*) Regards, Gitte Wange From norman@khine.net Sun Jul 8 00:58:57 2001 From: norman@khine.net (Norman Khine) Date: Sun, 8 Jul 2001 00:58:57 +0100 Subject: [Zope-CMF] Topics advice Message-ID: Hello, Perhaps this is not the appropriate list to post this, but I'll have a go ;^), may be is to do with HTML formatting?!?! I have created several Topic queries and some of them have sub-topics, what I am trying to do is list those in a drop-down menu/s, so that: 1st drop down menu contains the Topic 2nd drop-down menu contains the sub-topic 3rd drop-down contains the results This is my problem now, how do I go about in loading the Topic, in this case , for all my queries? I was thinking perhaps, I could load those in a TinyTable, and call them from that. But then if I wanted to add further topic items, will it be possible for those to be added to the list -- automatically? Here is what I have so far: A Tiny Table called Main Topics Columns topic_title url_link relurl:int Data "Topic1", "/Portal/Members/member/topic1", 1 "Topic2", "/Portal/Members/member/topic1", 1 "Topic3", "/Portal/Members/member/topic1", 1 Now my problem is how to call these into a tags form the topic_view, and how to insert each new topic entry into the tiny table list? Thanks Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From ivaldes@hal-pc.org Sun Jul 8 02:32:25 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Sat, 07 Jul 2001 20:32:25 -0500 Subject: [Zope-CMF] Discussion update script error. Message-ID: <3B47B829.4020909@hal-pc.org> Hi Shane, I tried to use your upgrade.py script on my CMF 1.0 installation, but I get a traceback (see below). My site was created with CMF 1.0 do I even need to use your script? -- -- Ignacio Valdes, Editor: Linux Medical News http://www.linuxmednews.com 'Revolutionizing Medical Education and Practice' Site Error An error was encountered while publishing this resource. **ImportError ** Sorry, a site error occurred.Traceback (innermost last): File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 187, in publish File / /home/zope/zope5/lib/python/Zope// __init__.py, line 221, in zpublisher_exception_hook File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/zope5/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addExternalMethod) File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addExternalMethod) File /home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, line 131, in manage_addExternalMethod File /home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, line 179, in __init__ (Object: upgrade.py) File /home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, line 202, in manage_edit (Object: upgrade.py) File /home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, line 209, in getFunction (Object: upgrade.py) File /home/zope/zope5/lib/python/App/Extensions.py, line 217, in getObject (Info: ('/home/zope/zope5/Extensions/upgrade.py', 'upgrade')) File /home/zope/zope5/Extensions/upgrade.py, line 5, in ? ImportError: No module named PTKDemo.DemoDiscussionTool From shane@digicool.com Sun Jul 8 06:07:38 2001 From: shane@digicool.com (Shane Hathaway) Date: Sun, 08 Jul 2001 01:07:38 -0400 Subject: [Zope-CMF] Discussion update script error. References: <3B47B829.4020909@hal-pc.org> Message-ID: <3B47EA9A.DED720B9@digicool.com> Ignacio Valdes wrote: > Hi Shane, I tried to use your upgrade.py script on my CMF 1.0 > installation, but I get a traceback (see below). My site was created > with CMF 1.0 do I even need to use your script? I don't recall writing anything called upgrade.py... if you're moving from CMF 1.0 to 1.1 you don't need a script anyway if I remember correctly. You just need to add a portal_metadata tool. Shane From gitte@mmmanager.org Sun Jul 8 10:04:01 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Sun, 08 Jul 2001 11:04:01 +0200 Subject: [Zope-CMF] Discussion update script error. In-Reply-To: <3B47B829.4020909@hal-pc.org> Message-ID: <3.0.6.32.20010708110401.00d76fb0@mmmanager.org> At 20:32 07-07-2001 -0500, Ignacio Valdes wrote: >Hi Shane, I tried to use your upgrade.py script on my CMF 1.0 >installation, but I get a traceback (see below). My site was created >with CMF 1.0 do I even need to use your script? > >-- >-- Ignacio Valdes, Editor: Linux Medical News >http://www.linuxmednews.com >'Revolutionizing Medical Education and Practice' > > > Site Error > >An error was encountered while publishing this resource. > >**ImportError ** > >Sorry, a site error occurred.Traceback (innermost last): File >/home/zope/zope5/lib/python/ZPublisher/Publish.py, line 223, in >publish_module File /home/zope/zope5/lib/python/ZPublisher/Publish.py, >line 187, in publish File / /home/zope/zope5/lib/python/Zope// >__init__.py, line 221, in zpublisher_exception_hook File >/home/zope/zope5/lib/python/ZPublisher/Publish.py, line 171, in publish >File /home/zope/zope5/lib/python/ZPublisher/mapply.py, line 160, in >mapply (Object: manage_addExternalMethod) File >/home/zope/zope5/lib/python/ZPublisher/Publish.py, line 112, in >call_object (Object: manage_addExternalMethod) File >/home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, >line 131, in manage_addExternalMethod File >/home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, >line 179, in __init__ (Object: upgrade.py) File >/home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, >line 202, in manage_edit (Object: upgrade.py) File >/home/zope/zope5/lib/python/Products/ExternalMethod/ExternalMethod.py, >line 209, in getFunction (Object: upgrade.py) File >/home/zope/zope5/lib/python/App/Extensions.py, line 217, in getObject >(Info: ('/home/zope/zope5/Extensions/upgrade.py', 'upgrade')) File >/home/zope/zope5/Extensions/upgrade.py, line 5, in ? ImportError: No >module named PTKDemo.DemoDiscussionTool Hello, I'm not sure what it is that you want to do, but I think you're about to upgrade your CMF installation from 1.0 to 1.1. Am I right ? If that is the case then have a look at http://cmf.zope.org/download/CMF-1.1/INSTALL.txt That document describes the installation of CMF 1.1 and also has a very good detailed guide on how to upgrade from 1.0 to 1.1. Anyway - AFAIK there isn't any upgrade.py scripts. Or maybe I have missed it. Regards, Gitte Wange From ivaldes@hal-pc.org Sun Jul 8 17:09:46 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Sun, 08 Jul 2001 11:09:46 -0500 Subject: [Zope-CMF] Discussion update script error. References: <3.0.6.32.20010708110401.00d76fb0@mmmanager.org> Message-ID: <3B4885CA.3030107@hal-pc.org> At 20:32 07-07-2001 -0500, Ignacio Valdes wrote: >Hi Shane, I tried to use your upgrade.py script on my CMF 1.0 >installation, but I get a traceback (see below). My site was created >with CMF 1.0 do I even need to use your script? Gitte Wange wrote: > >Hello, > >I'm not sure what it is that you want to do, but I think you're about to >upgrade your CMF installation from 1.0 to 1.1. Am I right ? > >If that is the case then have a look at >http://cmf.zope.org/download/CMF-1.1/INSTALL.txt >That document describes the installation of CMF 1.1 and also has a very >good detailed guide on how to upgrade from 1.0 to 1.1. > >Anyway - AFAIK there isn't any upgrade.py scripts. Or maybe I have missed it. > >Regards, >Gitte Wange > > Sorry for the opacity, I'm referring to: http://cmf.zope.org/Members/jens/howto/discussion_upgrade/view -- -- Ignacio Valdes, Editor: Linux Medical News http://www.linuxmednews.com 'Revolutionizing Medical Education and Practice' From jens@digicool.com Sun Jul 8 17:38:49 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Sun, 8 Jul 2001 12:38:49 -0400 Subject: [Zope-CMF] Discussion update script error. In-Reply-To: <3B4885CA.3030107@hal-pc.org> Message-ID: <20010708163853.3D8D013968@kermit.dataflake.org> the document you mention states: """ What will change for the average Portal manager? Most importantly, if you have an existing portal and you upgrade to the latest CVS checkout (or to CMF 1.0 or one of its betas) your existing discussion componentry will break unless you run the upgrade script. If you instantiate a brand new portal from the new code you will not need to follow the steps below. """ meaning if you base your portal on a fresh CMF 1.0 or later this script is *not* needed. from what you write it looks like you built the site on 1.0. jens On Sunday, July 8, 2001, at 12:09 , Ignacio Valdes wrote: > At 20:32 07-07-2001 -0500, Ignacio Valdes wrote: > >> Hi Shane, I tried to use your upgrade.py script on my CMF 1.0 >> installation, but I get a traceback (see below). My site was created >> with CMF 1.0 do I even need to use your script? > > > Gitte Wange wrote: > >> >> Hello, >> >> I'm not sure what it is that you want to do, but I think you're about to >> upgrade your CMF installation from 1.0 to 1.1. Am I right ? >> >> If that is the case then have a look at >> http://cmf.zope.org/download/CMF-1.1/INSTALL.txt >> That document describes the installation of CMF 1.1 and also has a very >> good detailed guide on how to upgrade from 1.0 to 1.1. >> >> Anyway - AFAIK there isn't any upgrade.py scripts. Or maybe I have >> missed it. >> >> Regards, >> Gitte Wange >> >> > Sorry for the opacity, I'm referring to: > > http://cmf.zope.org/Members/jens/howto/discussion_upgrade/view > > -- -- Ignacio Valdes, Editor: Linux Medical News > http://www.linuxmednews.com > 'Revolutionizing Medical Education and Practice' > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From chrisw@nipltd.com Sun Jul 8 18:06:38 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 8 Jul 2001 18:06:38 +0100 Subject: [Zope-CMF] Permissions to add different content types Message-ID: <003301c107d0$5c1693a0$2341073e@withers> Hi, I hope I'm being dense. I want to make Articles and Replies (both based on the Document type) anonymously addable, while the rest of the content types only addable by members. How can I do this? From what I've seen, everything is protected by the same permission: Add Portal Content so I've got a bit stuck... Help?! Chris :-) From seb@jamkit.com Sun Jul 8 19:10:42 2001 From: seb@jamkit.com (seb bacon) Date: Sun, 8 Jul 2001 19:10:42 +0100 Subject: [Zope-CMF] Permissions to add different content types In-Reply-To: <003301c107d0$5c1693a0$2341073e@withers>; from chrisw@nipltd.com on Sun, Jul 08, 2001 at 06:06:38PM +0100 References: <003301c107d0$5c1693a0$2341073e@withers> Message-ID: <20010708191041.A3054@lenin.jamkit.com> * Chris Withers [010708 18:09]: > I hope I'm being dense. I want to make Articles and Replies (both based on > the Document type) anonymously addable, while the rest of the content types > only addable by members. > > How can I do this? From what I've seen, everything is protected by the same > permission: Add Portal Content so I've got a bit stuck... AFAIK, you're right. In Portal.py, you can find where all the Types are added as products in a single batch (hence the way they all come up in the products list as a single Product, CMFDefault Content). >From CMFDefault.__init__.py: utils.ContentInit( 'CMFDefault Content' , content_types=contentClasses , permission=ADD_CONTENT_PERMISSION , extra_constructors=contentConstructors , fti=CMFDefault.factory_type_information ).initialize( context ) So I add other products separately, something like this: utils.ContentInit( 'Anon Content', content_types = (anonContentClasses,), permission = 'Add Anon Types', extra_constructors = anonContentConstructors, fti = CMFDefault.anon_factory_type_information, ).initialize(context) Which is pretty darn messy, but it gets the job done... seb From marc@bowery.com Sun Jul 8 18:53:43 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 08 Jul 2001 13:53:43 -0400 Subject: [Zope-CMF] Permissions to add different content types In-Reply-To: <20010708191041.A3054@lenin.jamkit.com> Message-ID: Perhaps you could do it by having one folder for the articles and replies, and change the permission for just that folder? From chrisw@nipltd.com Sun Jul 8 21:04:03 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 8 Jul 2001 21:04:03 +0100 Subject: [Zope-CMF] Permissions to add different content types References: Message-ID: <004701c107e9$24e33910$2341073e@withers> > Perhaps you could do it by having one folder for the articles and replies, > and change the permission for just that folder? How would I make it so that only articles and replies could be added to one folder while being able to add all types of content to another? cheers, Chris From chrisw@nipltd.com Sun Jul 8 21:10:19 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 8 Jul 2001 21:10:19 +0100 Subject: [Zope-CMF] N-Dimensional security again (Hi Shane :-) References: <003301c107d0$5c1693a0$2341073e@withers> <20010708191041.A3054@lenin.jamkit.com> Message-ID: <005101c107ea$04af3ee0$2341073e@withers> > AFAIK, you're right. In Portal.py, you can find where all the Types > are added as products in a single batch (hence the way they all come > up in the products list as a single Product, CMFDefault Content). > > >From CMFDefault.__init__.py: > > utils.ContentInit( 'CMFDefault Content' > , content_types=contentClasses > , permission=ADD_CONTENT_PERMISSION > , extra_constructors=contentConstructors > , fti=CMFDefault.factory_type_information > ).initialize( context ) Waaagh! :-S Now, what you could do as a workaround for the moment is change that method to the actual call to initializeClass (name?) is done with: permission = 'Add %s' % contentClass.meta_type > Which is pretty darn messy, but it gets the job done... Indeed, either way, you end up with one hell of a bloated security tab if you get lots of content types. Now, from what I know so far, the DCWorkflow tool solves the N-dimensional security problem once an object has been created, however, it doesn't solve the problem that you need one permission per content type if you want fine grained control over the ability to add content. So, Shane, you solved the last problem with a truly amazing tool, could it be extended to solve this bit of the problem too? here's hoping... Chris From robert@redcor.ch Sun Jul 8 23:38:15 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 9 Jul 2001 00:38:15 +0200 Subject: [Zope-CMF] how can I add actions Message-ID: <004001c107fe$ad6e2910$a9a4023e@karin> Hi there, there is that nice portal_types tool with which it is easy to add new actions to a document type. Now how can I add actions to CMF. I would like to have extra actions when the user is in her desktop folder. Thanks for your tips Robert From marc@bowery.com Sun Jul 8 23:57:10 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 08 Jul 2001 18:57:10 -0400 Subject: [Zope-CMF] Permissions to add different content types In-Reply-To: <004701c107e9$24e33910$2341073e@withers> Message-ID: Ah yes, good point. Actually, I had a similar problem... I wanted some document types that only Managers could add. WHat I did was make a new portal_type, ManagerDocument, so I could give it it's own security. So, perhaps you could make an AnonArticle? And in the type's security enable the anon priveledges. For the replies, I'm not sure, because it's not really another type... hmm.... > From: "Chris Withers" > Date: Sun, 8 Jul 2001 21:04:03 +0100 > To: "marc lindahl" , "seb bacon" > Cc: "zope-cmf" > Subject: Re: [Zope-CMF] Permissions to add different content types > >> Perhaps you could do it by having one folder for the articles and replies, >> and change the permission for just that folder? > > How would I make it so that only articles and replies could be added to one > folder while being able to add all types of content to another? > > cheers, > > Chris > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From chrisw@nipltd.com Sat Jul 7 01:43:41 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sat, 07 Jul 2001 01:43:41 +0100 Subject: [Zope-CMF] FSObject question Message-ID: <3B465B3D.C133C31C@nipltd.com> Hi, Is there any reason why this lump: if DevelopmentMode: # Provide an opportunity to update the properties. def __of__(self, parent): self = Acquisition.ImplicitAcquisitionWrapper(self, parent) self._updateFromFS() return self ...which appears at the bottom of a lot of the FS classes can't be refactored out into FSObject itself? cheers, Chris From chrisw@nipltd.com Sat Jul 7 01:49:22 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sat, 07 Jul 2001 01:49:22 +0100 Subject: [Zope-CMF] FSPropertiesObject Message-ID: <3B465C92.8FA80189@nipltd.com> This is a multi-part message in MIME format. --------------042841E0318C4CD0F1DA28BE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, The attached patch to FSPropertiesobject.py does two things: 1. It tells you which line the file reading method barfed on, if it barfs. 2. It allows you to put blank lines in the .props file so you can split up groups of properties. If anyoen finds this useful, stick this in the Tracker 'cos you'll get around to it before I do ;-) cheers, Chris --------------042841E0318C4CD0F1DA28BE Content-Type: text/plain; charset=us-ascii; name="FSPropertiesObject.py.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="FSPropertiesObject.py.patch" --- FSPropertiesObject.py.original Thu May 17 14:57:52 2001 +++ FSPropertiesObject.py Thu Jul 05 08:19:12 2001 @@ -165,23 +165,30 @@ try: lines = file.readlines() finally: file.close() map = [] + lino=0 for line in lines: - propname, proptv = split( line, ':' ) - #XXX multi-line properties? - proptype, propvstr = split( proptv, '=' ) - propname = strip(propname) - proptv = strip(proptv) - propvstr = strip(propvstr) - converter = get_converter( proptype, lambda x: x ) - propvalue = converter( strip( propvstr ) ) - # Should be safe since we're loading from - # the filesystem. - setattr(self, propname, propvalue) - map.append({'id':propname, - 'type':proptype, - 'mode':'', - 'default_value':propvalue, - }) + lino = lino + 1 + if not strip(line): + continue + try: + propname, proptv = split( line, ':' ) + #XXX multi-line properties? + proptype, propvstr = split( proptv, '=' ) + propname = strip(propname) + proptv = strip(proptv) + propvstr = strip(propvstr) + converter = get_converter( proptype, lambda x: x ) + propvalue = converter( strip( propvstr ) ) + # Should be safe since we're loading from + # the filesystem. + setattr(self, propname, propvalue) + map.append({'id':propname, + 'type':proptype, + 'mode':'', + 'default_value':propvalue, + }) + except: + raise ValueError,'Error processing line %s of %s:\n%s' % (lino,fp,line) self._properties = tuple(map) if Globals.DevelopmentMode: --------------042841E0318C4CD0F1DA28BE-- From chrisw@nipltd.com Sat Jul 7 11:40:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sat, 07 Jul 2001 11:40:30 +0100 Subject: [Zope-CMF] Weirdness with standard_error_message in a Skin Message-ID: <3B46E71E.302C7AD8@nipltd.com> Hi, I'm trying to include a standard_error_message.dtml method in a FS-based CMF skin. The wierdness comes in that if I modify the FS based version, the changes will _only_ get used if I customize the method or restart Zope. Does anyone have any idea what's going on here? cheers, Chris From chrisw@nipltd.com Sun Jul 8 14:47:11 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 08 Jul 2001 14:47:11 +0100 Subject: [Zope-CMF] Bug w/patch in register method Message-ID: <3B48645F.CA92C1FB@nipltd.com> This is a multi-part message in MIME format. --------------1F287786B263E744CA1B438F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, The attached fix cleans up some urls and fixes some url quoting problems in the process in the register method of CMFDefault. Also, should the registered method really contain a url which has both the username and password of a newly generated member in it? Seems like a bit of a security hole to me :-S cheers, Chris --------------1F287786B263E744CA1B438F Content-Type: text/plain; charset=us-ascii; name="register.py.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="register.py.patch" --- register.py.original Fri Jun 29 15:48:40 2001 +++ register.py Sun Jul 08 13:01:35 2001 @@ -9,10 +9,10 @@ if not portal_properties.validate_email: failMessage = portal_registration.testPasswordValidity(password, confirm) if failMessage: - return REQUEST.RESPONSE.redirect(context.absolute_url() +'/join_form?error=%s' % (failMessage)) + return context.join_form(context,REQUEST,error=failMessage) failMessage = portal_registration.testPropertiesValidity(REQUEST) if failMessage: - return REQUEST.RESPONSE.redirect(context.absolute_url() +'/join_form?error=%s' % (failMessage)) + return context.join_form(context,REQUEST,error=failMessage) else: password=REQUEST.get('password') or portal_registration.generatePassword() portal_registration.addMember(REQUEST['username'], password, properties=REQUEST) --------------1F287786B263E744CA1B438F-- From chrisw@nipltd.com Sun Jul 8 22:35:02 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 08 Jul 2001 22:35:02 +0100 Subject: [Zope-CMF] Creating Content and ZODB bloat Message-ID: <3B48D206.359395DE@nipltd.com> Hi, Just realised that the CMF has a slight problem in content creation: What happens when someone wants to create a piece of content? Well, go to folder_factories, select the type, enter an id and click okay. Now they decide they didn't mean to do that. So they can delete it, but the ZODB will have grown a bit. Do people think this is a common occurence? Squishdot had its previewPosting which allowed people to go through the write-preview-edit cycle without ever commiting to ZODB, I know I use it a lot ;-) In fact, it got requsted enough that I added the preview feature for managers and moderators to use when editing postings as well... So, how do we allow the same thing in the CMF without ZODB bloat? In other projects, I've found it usesful to store these objects-which-might-never-need-to-be-stored in a session, that way you get no ZODB bloat but you are dealing with real object rather than fake, code duplicating preview forms, like previewPosting in Squishdot. Does that sounds like a plan? If it sounds good, it core raise the question of when CoreSessionTracking is actually going to become a part of the Zope core :-S cheers, Chris From chrisw@nipltd.com Mon Jul 9 08:46:58 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 09 Jul 2001 08:46:58 +0100 Subject: [Zope-CMF] Type left in inconsistent state during add process Message-ID: <3B496172.136EF94D@nipltd.com> Hi, This one had me baffled for ages. I still don't know what's going on but I think I've found out what's happening. The process of content creation goes: 1. Enter id and select type from folder_factories 2. Enter meta data, click button 3. enter content, click button Now, what I've noticed is that if you stop after step 1, the content is catalogued with a Type of the base product's meta_type, regardless of what meta types have been set up in the types tool (are these meta types actually supposed to do anything?) or, indeed, the name of the relevant TypeInformation object. After step two, the object will be catalogued with Type equal to the name of the TypeInformation object, which is what I'd expect (although I still don't understand where the Meta type set in the TypeInformation object comes into play :-S So, there's definitely at least one bug in here, and I'd love to squash is before I go to Berlin but I'm rapidly running out of time :-S For now, I'm hoping I can workaround this by calling the edit or metadata edit methods again, which is a tad inefficient. If anyone knows how to fix this, please let me know ;-) cheers, Chris From gitte@mmmanager.org Mon Jul 9 09:07:15 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Mon, 9 Jul 2001 10:07:15 +0200 Subject: [Zope-CMF] Font files and image source Message-ID: <01070910071501.01448@squidbitch.mmmanager.org> Hello, I am using the CMF Event product (or is it called CMF Calendar?) to create a new LiveEvent product. I really like the design of the edit - and view - forms so I thought that I would use the same design in my forms. But to modify the gif file isn't easy when it is a "finished" gif file you have to edit from. So I thought: This is OpenSource. Shouldn't I be able to see the "source" of the gif file ? So - when you have a product, shouldn't you put the source image file (and font files etc.) in the code ??? Is there a place I can find the source image file ?? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: This breaks the cron job that calls self.Zoo.Diet.LargeAnimals.hippo.feed(), and all the hippos starve. Someone uses self.Zoo.Diet.buildings.visitor_reception.feed(), and ends up filling the reception with hippo food. - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal From chrisw@nipltd.com Mon Jul 9 09:12:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 09 Jul 2001 09:12:39 +0100 Subject: [Zope-CMF] Permissions to add different content types References: Message-ID: <3B496777.FDDB9BF8@nipltd.com> marc lindahl wrote: > > Ah yes, good point. > Actually, I had a similar problem... I wanted some document types that only > Managers could add. WHat I did was make a new portal_type, ManagerDocument, > so I could give it it's own security. Yeah, that's a workaround, but a pretty horrible one :-S How do we solve this 'properly'? cheers, Chris From jon@pcgs.freeserve.co.uk Mon Jul 9 09:37:58 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 9 Jul 2001 09:37:58 +0100 Subject: [Zope-CMF] Patterns Non-Software Examples of Software Design Patterns - AGCS Message-ID: For anyone, like me, who is struggling with some of the Design Patterns concepts like Mementoes, Composites, etc that have been flying around! Found this quick overview that makes it slightly easier to follow some of the dicsussions! :-) http://www.agcs.com/supportv2/techpapers/patterns/papers/patexamples.htm Cheers, Jon From josh@emediatedesigns.com Mon Jul 9 09:57:58 2001 From: josh@emediatedesigns.com (josh@emediatedesigns.com) Date: 9 Jul 2001 01:57:58 -0700 Subject: [Zope-CMF] setting up default user home page. In-Reply-To: Message-ID: Hello, I have just reviewed CMF and started to use zope as a solution for my website. I would like users to be able to setup their place but want to limit what the layout will happen. In short I have a set of items that I will display but will allow the users to update. I would like to know where are the defaults set so I can change them when a user is created and where I can set what a user can modify. example is: When new user is created they get one graphic, text section and contact fields. I will set the layout of their page but want to allow them to update the info. This is for a directory of musicians. I want a consistent look but have the user take care of their info. Thanks for the help. Zope really looks like a good solution if I can figure this part out. I can modify the look and feel but haven't found the a way to set up default fields and their permissions. Josh From seb@jamkit.com Mon Jul 9 10:47:23 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 9 Jul 2001 10:47:23 +0100 Subject: [Zope-CMF] Creating Content and ZODB bloat In-Reply-To: <3B48D206.359395DE@nipltd.com>; from chrisw@nipltd.com on Sun, Jul 08, 2001 at 10:35:02PM +0100 References: <3B48D206.359395DE@nipltd.com> Message-ID: <20010709104722.D3054@lenin.jamkit.com> This reminds me of another thing: my crusade to make undo transactions comprehensible. Although 'creating a document' is, to the average user, a single action, it shows up in the transaction list as 3 or 4 events. How can the user decide which transactions to delete? If the whole 'create an object' process could be commited as a single transaction (with a 'friendly' name perhaps), it would make things a whole lot more friendly. seb * Chris Withers [010709 09:12]: > Hi, > > Just realised that the CMF has a slight problem in content creation: What > happens when someone wants to create a piece of content? Well, go to > folder_factories, select the type, enter an id and click okay. > > Now they decide they didn't mean to do that. So they can delete it, but the ZODB > will have grown a bit. > > Do people think this is a common occurence? Squishdot had its previewPosting > which allowed people to go through the write-preview-edit cycle without ever > commiting to ZODB, I know I use it a lot ;-) In fact, it got requsted enough > that I added the preview feature for managers and moderators to use when editing > postings as well... > > So, how do we allow the same thing in the CMF without ZODB bloat? In other > projects, I've found it usesful to store these > objects-which-might-never-need-to-be-stored in a session, that way you get no > ZODB bloat but you are dealing with real object rather than fake, code > duplicating preview forms, like previewPosting in Squishdot. Does that sounds > like a plan? > > If it sounds good, it core raise the question of when CoreSessionTracking is > actually going to become a part of the Zope core :-S > > cheers, > From jens@digicool.com Mon Jul 9 12:17:35 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Mon, 9 Jul 2001 07:17:35 -0400 Subject: [Zope-CMF] Font files and image source In-Reply-To: <01070910071501.01448@squidbitch.mmmanager.org> Message-ID: <20010709111747.9F28A13930@kermit.dataflake.org> i'm not sure what it is that you are talking about. GIF and most other image file formats are binary files. there is no source. if you want to modify it you can load it into any image editing program and do it. jens On Monday, July 9, 2001, at 04:07 , Gitte Wange wrote: > Hello, > > I am using the CMF Event product (or is it called CMF Calendar?) to > create a > new LiveEvent product. > > I really like the design of the edit - and view - forms so I thought that > I > would use the same design in my forms. > > But to modify the gif file isn't easy when it is a "finished" gif file you > have to edit from. So I thought: > This is OpenSource. Shouldn't I be able to see the "source" of the gif > file ? > > So - when you have a product, shouldn't you put the source image file (and > font files etc.) in the code ??? > Is there a place I can find the source image file ?? > > Regards, > -- > Gitte Wange Jensen > > Sys Admin, Developer and a lot more > MMmanager.org Aps, Denmark > > Phone: +45 29 72 79 72 > Email: gitte@mmmanager.org > Web: www.mmmanager.org > > Quote of the day: > This breaks the cron job that calls self.Zoo.Diet.LargeAnimals.hippo.feed( > ), > and all the hippos starve. Someone uses > self.Zoo.Diet.buildings.visitor_reception.feed(), > and ends up filling the reception with hippo food. > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From gregoire.weber@switzerland.org Mon Jul 9 12:51:54 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Mon, 09 Jul 2001 13:51:54 +0200 Subject: [Zope-CMF] searching 'subportals' In-Reply-To: <20010706122536.E1317@lenin.jamkit.com> References: <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> Message-ID: <3.0.6.32.20010709135154.01195d90@pop.dplanet.ch> Hi Seb, thanks a lot for the explanations! I didn't understand every detail. I would dive in deeper when I am at the point where I have to use *real* subportals. Nevertheless there remain some (big picture) questions: 1) You have *real* CMF instances as subportals in a main/top CMF portal? Correct? 2) You have one portal_catalog only? The one in the main/top portal with your extension? 3) So the subportals do not have their own portal_catalog tool? Greg At 12:25 06.07.01 +0100, seb bacon wrote: > * Gr=E9goire Weber [010705 17:49]: > > Hi Seb, > >=20 > > I would be interested! >=20 > I wrote up some notes and I've submitted them. Hopefully a new item > should appear on the dogbowl later today. >=20 > seb >=20 _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From chrisw@nipltd.com Mon Jul 9 13:12:41 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 09 Jul 2001 13:12:41 +0100 Subject: [Zope-CMF] Skinned Folders References: <000001c106ad$857c28a0$0100a8c0@dev1> <3B46D4F3.5776BD59@snafu.de> Message-ID: <3B499FB9.5DB67ABB@nipltd.com> Christoph Schirmer wrote: > > As I didn´t find any documentation on the cmf site, could someone please explain > Skinned Folders, in comparison to Folders or Portal Folders? When should one use > Skinned Folders? yeah, I'd like this too, btu I guess we gotta wait for Tres to get back :-) cheers, Chris From erik@mmmanager.org Mon Jul 9 13:35:09 2001 From: erik@mmmanager.org (Erik Lange) Date: Mon, 9 Jul 2001 14:35:09 +0200 Subject: [Zope-CMF] Font files and image source In-Reply-To: <20010709111747.9F28A13930@kermit.dataflake.org> Message-ID: <001201c10873$970ce330$0600000a@erla.mmmanager.org> Allthough binary, .gif files are still created from one or more sources ;-) Our example: In the CMF calendar some .gif-files are used to give a very nice view of an event. E.g. at the top there is a small "Event Info" TAB made with a .gif-file. I believe this TAB-design is made so it's possible to add new TABs for editing of various aspect of special events in a portal, if one creates an event containing more info than included on the default Event_Info TAB in the default CMF calender. We are making such an "extended" CMF event and would like to make a TAB in the edit/view event, containg the edit/view of our extended event-data. And then we need to know what font was used, what shadow, outline or other effect was applied and so on, when the binary event_info_tab.gif-file was originally created, to make a new event_ourinfo_tab.gif-file, with the same look as the TAB that comes with the CMF calendar. And THAT is what is meant by "source-code", regarding graphics ;-) - So, when making a Zope-product including graphic files, please include these informations, font-files and (best of all) a "non-flattened" version of the compositing file, with all used layers seperated (like .PSD). Erik Lange > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Jens Vagelpohl > Sent: Monday, July 09, 2001 1:18 PM > To: Gitte Wange > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Font files and image source > > > i'm not sure what it is that you are talking about. GIF and most other > image file formats are binary files. there is no source. if you want to > modify it you can load it into any image editing program and do it. > > jens > > > On Monday, July 9, 2001, at 04:07 , Gitte Wange wrote: > > > Hello, > > > > I am using the CMF Event product (or is it called CMF Calendar?) to > > create a > > new LiveEvent product. > > > > I really like the design of the edit - and view - forms so I > thought that > > I > > would use the same design in my forms. > > > > But to modify the gif file isn't easy when it is a "finished" > gif file you > > have to edit from. So I thought: > > This is OpenSource. Shouldn't I be able to see the "source" of the gif > > file ? > > > > So - when you have a product, shouldn't you put the source > image file (and > > font files etc.) in the code ??? > > Is there a place I can find the source image file ?? > > > > Regards, > > -- > > Gitte Wange Jensen > > > > Sys Admin, Developer and a lot more > > MMmanager.org Aps, Denmark > > > > Phone: +45 29 72 79 72 > > Email: gitte@mmmanager.org > > Web: www.mmmanager.org > > > > Quote of the day: > > This breaks the cron job that calls > self.Zoo.Diet.LargeAnimals.hippo.feed( > > ), > > and all the hippos starve. Someone uses > > self.Zoo.Diet.buildings.visitor_reception.feed(), > > and ends up filling the reception with hippo food. > > > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports > and feature > > requests > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From seb@jamkit.com Mon Jul 9 14:09:31 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 9 Jul 2001 14:09:31 +0100 Subject: [Zope-CMF] searching 'subportals' In-Reply-To: <3.0.6.32.20010709135154.01195d90@pop.dplanet.ch>; from gregoire.weber@switzerland.org on Mon, Jul 09, 2001 at 01:51:54PM +0200 References: <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> <20010706122536.E1317@lenin.jamkit.com> <3.0.6.32.20010709135154.01195d90@pop.dplanet.ch> Message-ID: <20010709140930.A17911@lenin.jamkit.com> * Grégoire Weber [010709 12:51]: > I didn't understand every detail. I would dive in deeper when I am at the > point where I have to use *real* subportals. > > Nevertheless there remain some (big picture) questions: > 1) You have *real* CMF instances as subportals in a main/top CMF portal? > Correct? No, though you could do something like this. In my system, each 'subportal' is actually a member's home folder. So the root of a 'subportal' in this example is, in fact, a modified PortalFolder which defines a 'getSite()' method. > 2) You have one portal_catalog only? The one in the main/top portal with > your extension? That's right. I've done the same thing using multiple catalogs, but you need to change a bit of code which expects to find catalogs in the portal root, and anyway this approach means you don't have the ability for site-wide searches. > 3) So the subportals do not have their own portal_catalog tool? Yes. Off the top of my head, if you wanted 'real' portals as sub-portals, you'd want to delete most of their tools after they've been created, especially the catalog_tool. You may have problems with getting the CMF to find a catalog in an enclosing portal - have a look at the getToolByName method to find out. Then you could stick a python script in each subportal root which returns a subportal identifier (like getSite in my example) for indexing. seb From gregoire.weber@switzerland.org Mon Jul 9 14:38:36 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Mon, 09 Jul 2001 15:38:36 +0200 Subject: [Zope-CMF] searching 'subportals' In-Reply-To: <20010709140930.A17911@lenin.jamkit.com> References: <3.0.6.32.20010709135154.01195d90@pop.dplanet.ch> <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> <3.0.6.32.20010705183753.011fdc00@pop.dplanet.ch> <20010706122536.E1317@lenin.jamkit.com> <3.0.6.32.20010709135154.01195d90@pop.dplanet.ch> Message-ID: <3.0.6.32.20010709153836.01220070@pop.dplanet.ch> Seb, Oh, so it seems we have the same disposition! See my comments below: > > 1) You have *real* CMF instances as subportals in a main/top CMF portal? > > Correct? >=20 > No, though you could do something like this. In my system, each > 'subportal' is actually a member's home folder. So the root of a > 'subportal' in this example is, in fact, a modified PortalFolder which > defines a 'getSite()' method. =20 Why do you need to make your change to the portal_catalog=20 tool? Why not exclude the other subportals items by adding the=20 'Creator' to the catalog search? Have a look at the following: What I do to achieve the same(?): In the standard_html_header I set a variable to the members name (=3D subportals name) by extracting it from the objects path: So the member is '' if the rendered object is not in a Member=20 (sub)folder. My top news page (my top portals index_html) then=20 shows all news items. But the (same) index_html in the members=20 directory only shows the Creator's news items. The search: > Off the top of my head, if you wanted 'real' portals as sub-portals, > you'd want to delete most of their tools after they've been created, > especially the catalog_tool. You may have problems with getting the > CMF to find a catalog in an enclosing portal - have a look at the > getToolByName method to find out. >=20 > Then you could stick a python script in each subportal root which > returns a subportal identifier (like getSite in my example) for > indexing.=20 Then I probably would need something like this. I'll have to do that for long term but not yet now. So your hints will then be very=20 important. Thanks! Greg P.S.: I had a look at your web page and you bring it to the point! 'And that's it.' -- cool! you're absolutely right! What does Jamkit do? We provide content management facilities for web sites. Our services are more effective and can be delivered quicker=20 than those of our competitors. And that's it. _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From norman@khine.net Mon Jul 9 14:54:15 2001 From: norman@khine.net (Norman Khine) Date: Mon, 9 Jul 2001 14:54:15 +0100 Subject: [Zope-CMF] Count and FS Count Message-ID: Hello, What is the best option to use in order to provide a counter for the number of hits that each type-object generates, so that when a Member creates a Document, this document will have a counter in its footer, and everytime this is viewed it will increment. I did install the FSCounter product, but I can't get it to work correctly? Perhaps I am doing something wrong? Thanks Norman From gregoire.weber@switzerland.org Mon Jul 9 14:54:29 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Mon, 09 Jul 2001 15:54:29 +0200 Subject: [Zope-CMF] Content created by Manager not editable by Member Message-ID: <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> Hi, I'am just wondering. It is not a important point for me at the moment. So for now it's just for learning about CMF. When I am logged in as Manager and I create a Document (or a News Item,=20 etc.) in a Members folder it wouldn't be editable by the Member even=20 it is located in his directory. Is this a intended behaviour? Additional information: When I give the the Member role the permission 'Modify portal content', the Member is then able to edit the Document. Do I open a potential=20 security hole by setting this permission in the /Member folder?=20 Greg _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From jack@digicool.com Mon Jul 9 15:08:24 2001 From: jack@digicool.com (John Fitzgerald) Date: Mon, 9 Jul 2001 10:08:24 -0400 Subject: [Zope-CMF] Weirdness with standard_error_message in a Skin In-Reply-To: <3B46E71E.302C7AD8@nipltd.com> Message-ID: Hello Chris, This is most likely that you do not start ZOPE with a '-D' for debug mode. FS Skins are not updated dynamically unless you start with the '-D'. -Jack > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Chris Withers > Sent: Saturday, July 07, 2001 6:41 AM > To: zope-cmf@zope.org > Subject: [Zope-CMF] Weirdness with standard_error_message in a Skin > > > Hi, > > I'm trying to include a standard_error_message.dtml method in a > FS-based CMF > skin. > > The wierdness comes in that if I modify the FS based version, the > changes will > _only_ get used if I customize the method or restart Zope. > > Does anyone have any idea what's going on here? > > cheers, > > Chris > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From marc@bowery.com Mon Jul 9 16:31:02 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 09 Jul 2001 11:31:02 -0400 Subject: [Zope-CMF] Count and FS Count In-Reply-To: Message-ID: In ZopeGUM/ZopeGUD products there's a nice counter product called ThreadSafeCounter... get one of those packages and pull that product out. It's a ZODB counter, but doesn't cause excessive commits (bloat), a great example of working with persistence. > From: "Norman Khine" > Date: Mon, 9 Jul 2001 14:54:15 +0100 > To: "Zope-Cmf" > Subject: [Zope-CMF] Count and FS Count > > Hello, > What is the best option to use in order to provide a counter for the number > of hits that each type-object generates, so that when a Member creates a > Document, this document will have a counter in its footer, and everytime > this is viewed it will increment. > > I did install the FSCounter product, but I can't get it to work correctly? > Perhaps I am doing something wrong? > > Thanks > > Norman > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From andrew@digicool.com Mon Jul 9 16:37:35 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Mon, 9 Jul 2001 11:37:35 -0400 Subject: [Zope-CMF] Font files and image source In-Reply-To: <01070910071501.01448@squidbitch.mmmanager.org> Message-ID: The CMFEvent is a piece of what was going to be a more robust CMFCalendar product; right now all the exists in the CMFCalendar product is an event. I don't know if and when this will change.... In regards to the images, what do you mean by the source image; do you want the photoshop file as a psd to be included in the product? I also don't know what font he used in the image, but I suppose if this is what you're meaning, I can see about adding them into the product. Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Gitte Wange > Sent: Monday, July 09, 2001 4:07 AM > To: zope-cmf@zope.org > Subject: [Zope-CMF] Font files and image source > > > Hello, > > I am using the CMF Event product (or is it called CMF Calendar?) > to create a > new LiveEvent product. > > I really like the design of the edit - and view - forms so I > thought that I > would use the same design in my forms. > > But to modify the gif file isn't easy when it is a "finished" gif > file you > have to edit from. So I thought: > This is OpenSource. Shouldn't I be able to see the "source" of > the gif file ? > > So - when you have a product, shouldn't you put the source image > file (and > font files etc.) in the code ??? > Is there a place I can find the source image file ?? > > Regards, > -- > Gitte Wange Jensen > > Sys Admin, Developer and a lot more > MMmanager.org Aps, Denmark > > Phone: +45 29 72 79 72 > Email: gitte@mmmanager.org > Web: www.mmmanager.org > > Quote of the day: > This breaks the cron job that calls > self.Zoo.Diet.LargeAnimals.hippo.feed(), > and all the hippos starve. Someone uses > self.Zoo.Diet.buildings.visitor_reception.feed(), > and ends up filling the reception with hippo food. > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From andrew@digicool.com Mon Jul 9 16:41:42 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Mon, 9 Jul 2001 11:41:42 -0400 Subject: [Zope-CMF] Font files and image source In-Reply-To: <001201c10873$970ce330$0600000a@erla.mmmanager.org> Message-ID: I guess I should have read the whole thread before replying. I'll see if I can get these files and include them in the product. I'm not an artist, so i had someone who has more skill in this area do the images for me. Thanks, Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Erik Lange > Sent: Monday, July 09, 2001 8:35 AM > To: zope-cmf@zope.org > Subject: RE: [Zope-CMF] Font files and image source > > > Allthough binary, .gif files are still created from one or more > sources ;-) > > Our example: > In the CMF calendar some .gif-files are used to give a very nice > view of an > event. > > E.g. at the top there is a small "Event Info" TAB made with a .gif-file. > > I believe this TAB-design is made so it's possible to add new TABs for > editing of various aspect of special events in a portal, if one creates an > event containing more info than included on the default Event_Info TAB in > the default CMF calender. > > We are making such an "extended" CMF event and would like to make a TAB in > the edit/view event, containg the edit/view of our extended event-data. > > And then we need to know what font was used, what shadow, outline or other > effect was applied and so on, when the binary event_info_tab.gif-file was > originally created, to make a new event_ourinfo_tab.gif-file, > with the same > look as the TAB that comes with the CMF calendar. > > And THAT is what is meant by "source-code", regarding graphics ;-) > > - > > So, when making a Zope-product including graphic files, please > include these > informations, font-files and (best of all) a "non-flattened" > version of the > compositing file, with all used layers seperated (like .PSD). > > Erik Lange > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Jens Vagelpohl > > Sent: Monday, July 09, 2001 1:18 PM > > To: Gitte Wange > > Cc: zope-cmf@zope.org > > Subject: Re: [Zope-CMF] Font files and image source > > > > > > i'm not sure what it is that you are talking about. GIF and most other > > image file formats are binary files. there is no source. if you want to > > modify it you can load it into any image editing program and do it. > > > > jens > > > > > > On Monday, July 9, 2001, at 04:07 , Gitte Wange wrote: > > > > > Hello, > > > > > > I am using the CMF Event product (or is it called CMF Calendar?) to > > > create a > > > new LiveEvent product. > > > > > > I really like the design of the edit - and view - forms so I > > thought that > > > I > > > would use the same design in my forms. > > > > > > But to modify the gif file isn't easy when it is a "finished" > > gif file you > > > have to edit from. So I thought: > > > This is OpenSource. Shouldn't I be able to see the "source" of the gif > > > file ? > > > > > > So - when you have a product, shouldn't you put the source > > image file (and > > > font files etc.) in the code ??? > > > Is there a place I can find the source image file ?? > > > > > > Regards, > > > -- > > > Gitte Wange Jensen > > > > > > Sys Admin, Developer and a lot more > > > MMmanager.org Aps, Denmark > > > > > > Phone: +45 29 72 79 72 > > > Email: gitte@mmmanager.org > > > Web: www.mmmanager.org > > > > > > Quote of the day: > > > This breaks the cron job that calls > > self.Zoo.Diet.LargeAnimals.hippo.feed( > > > ), > > > and all the hippos starve. Someone uses > > > self.Zoo.Diet.buildings.visitor_reception.feed(), > > > and ends up filling the reception with hippo food. > > > > > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > > > > > _______________________________________________ > > > Zope-CMF maillist - Zope-CMF@zope.org > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports > > and feature > > > requests > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From shane@digicool.com Mon Jul 9 16:49:06 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 09 Jul 2001 11:49:06 -0400 Subject: [Zope-CMF] N-Dimensional security again (Hi Shane :-) References: <003301c107d0$5c1693a0$2341073e@withers> <20010708191041.A3054@lenin.jamkit.com> <005101c107ea$04af3ee0$2341073e@withers> Message-ID: <3B49D272.71B86E2@digicool.com> Chris Withers wrote: > Now, from what I know so far, the DCWorkflow tool solves the N-dimensional > security problem once an object has been created, however, it doesn't solve > the problem that you need one permission per content type if you want fine > grained control over the ability to add content. > > So, Shane, you solved the last problem with a truly amazing tool, could it > be extended to solve this bit of the problem too? You can protect access to the type objects by visiting their security tab. The only thing this solution doesn't provide for is local roles. Shane From gitte@mmmanager.org Mon Jul 9 17:11:14 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Mon, 9 Jul 2001 18:11:14 +0200 Subject: [Zope-CMF] Font files and image source In-Reply-To: References: Message-ID: <01070918111401.01529@squidbitch.mmmanager.org> On Monday 09 July 2001 17:41, Andrew Sawyers wrote: > I guess I should have read the whole thread before replying. I'll see if I > can get these files and include them in the product. I'm not an artist, so > i had someone who has more skill in this area do the images for me. > Thanks, > Andrew The event product - or calendar product - is great !! I have made some modifications to it (created a new portal type that inherits from the Event class) and it just works SUPERB !! :-)))) But we could use the .psd file ... Maybe people should just get used to include this kind of stuf in their products. It makes things so much easier to modify. Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: When I say multiple mails, I mean multiple mails. NOT "26 attachments in one mail." In fact, not a single attachment at all, please. Send me patches as a regular text body, with the explanation at the top, and the patch just appended. Why? Attachements may look simple, but they are not. I end up having to open each and every one of them individually, remembering which one I've checked, save them off individually, remembering what the file name was, and then apply them each individually. See the picture? Attachements are evil. - Linus Torvalds From erik@mmmanager.org Mon Jul 9 17:42:56 2001 From: erik@mmmanager.org (Erik Lange) Date: Mon, 9 Jul 2001 18:42:56 +0200 Subject: [Zope-CMF] Font files and image source In-Reply-To: Message-ID: <000001c10896$348802d0$0600000a@erla.mmmanager.org> Great :-) But please don't let me distract you too much from your excellent programming work ! It's really not that big a problem in the example stated below - it looks like a standard Arial font type.. the shadow is harder to recreate though and a .psd-file would have solved that, but I think I've got it now ;-) So the reason for my last post was more to suggest a common policy for future developed products. Thanks, Erik > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Andrew Sawyers > Sent: Monday, July 09, 2001 5:42 PM > To: erik@mmmanager.org; zope-cmf@zope.org > Subject: RE: [Zope-CMF] Font files and image source > > > I guess I should have read the whole thread before replying. > I'll see if I > can get these files and include them in the product. I'm not an > artist, so > i had someone who has more skill in this area do the images for me. > Thanks, > Andrew > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Erik Lange > > Sent: Monday, July 09, 2001 8:35 AM > > To: zope-cmf@zope.org > > Subject: RE: [Zope-CMF] Font files and image source > > > > > > Allthough binary, .gif files are still created from one or more > > sources ;-) > > > > Our example: > > In the CMF calendar some .gif-files are used to give a very nice > > view of an > > event. > > > > E.g. at the top there is a small "Event Info" TAB made with a .gif-file. > > > > I believe this TAB-design is made so it's possible to add new TABs for > > editing of various aspect of special events in a portal, if one > creates an > > event containing more info than included on the default > Event_Info TAB in > > the default CMF calender. > > > > We are making such an "extended" CMF event and would like to > make a TAB in > > the edit/view event, containg the edit/view of our extended event-data. > > > > And then we need to know what font was used, what shadow, > outline or other > > effect was applied and so on, when the binary > event_info_tab.gif-file was > > originally created, to make a new event_ourinfo_tab.gif-file, > > with the same > > look as the TAB that comes with the CMF calendar. > > > > And THAT is what is meant by "source-code", regarding graphics ;-) > > > > - > > > > So, when making a Zope-product including graphic files, please > > include these > > informations, font-files and (best of all) a "non-flattened" > > version of the > > compositing file, with all used layers seperated (like .PSD). > > > > Erik Lange > > > > > -----Original Message----- > > > From: zope-cmf-admin@zope.org > [mailto:zope-cmf-admin@zope.org]On Behalf > > > Of Jens Vagelpohl > > > Sent: Monday, July 09, 2001 1:18 PM > > > To: Gitte Wange > > > Cc: zope-cmf@zope.org > > > Subject: Re: [Zope-CMF] Font files and image source > > > > > > > > > i'm not sure what it is that you are talking about. GIF and most other > > > image file formats are binary files. there is no source. if > you want to > > > modify it you can load it into any image editing program and do it. > > > > > > jens > > > > > > > > > On Monday, July 9, 2001, at 04:07 , Gitte Wange wrote: > > > > > > > Hello, > > > > > > > > I am using the CMF Event product (or is it called CMF Calendar?) to > > > > create a > > > > new LiveEvent product. > > > > > > > > I really like the design of the edit - and view - forms so I > > > thought that > > > > I > > > > would use the same design in my forms. > > > > > > > > But to modify the gif file isn't easy when it is a "finished" > > > gif file you > > > > have to edit from. So I thought: > > > > This is OpenSource. Shouldn't I be able to see the "source" > of the gif > > > > file ? > > > > > > > > So - when you have a product, shouldn't you put the source > > > image file (and > > > > font files etc.) in the code ??? > > > > Is there a place I can find the source image file ?? > > > > > > > > Regards, > > > > -- > > > > Gitte Wange Jensen > > > > > > > > Sys Admin, Developer and a lot more > > > > MMmanager.org Aps, Denmark > > > > > > > > Phone: +45 29 72 79 72 > > > > Email: gitte@mmmanager.org > > > > Web: www.mmmanager.org > > > > > > > > Quote of the day: > > > > This breaks the cron job that calls > > > self.Zoo.Diet.LargeAnimals.hippo.feed( > > > > ), > > > > and all the hippos starve. Someone uses > > > > self.Zoo.Diet.buildings.visitor_reception.feed(), > > > > and ends up filling the reception with hippo food. > > > > > > > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > > > > > > > _______________________________________________ > > > > Zope-CMF maillist - Zope-CMF@zope.org > > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports > > > and feature > > > > requests > > > > > > _______________________________________________ > > > Zope-CMF maillist - Zope-CMF@zope.org > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > > feature requests > > > > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From andrew@digicool.com Mon Jul 9 17:46:51 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Mon, 9 Jul 2001 12:46:51 -0400 Subject: [Zope-CMF] Font files and image source In-Reply-To: <000001c10896$348802d0$0600000a@erla.mmmanager.org> Message-ID: Ok, well it only took a second for me to ask; and I've got the psd and the font. The font is actually called 'charcoal'; I'll add them to the CVS sometime today. Andrew > -----Original Message----- > From: Erik Lange [mailto:erik@mmmanager.org] > Sent: Monday, July 09, 2001 12:43 PM > To: Andrew Sawyers; zope-cmf@zope.org > Subject: RE: [Zope-CMF] Font files and image source > > > Great :-) > > But please don't let me distract you too much from your excellent > programming work ! > > It's really not that big a problem in the example stated below - it looks > like a standard Arial font type.. the shadow is harder to recreate though > and a .psd-file would have solved that, but I think I've got it now ;-) > > So the reason for my last post was more to suggest a common policy for > future developed products. > > Thanks, > Erik > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Andrew Sawyers > > Sent: Monday, July 09, 2001 5:42 PM > > To: erik@mmmanager.org; zope-cmf@zope.org > > Subject: RE: [Zope-CMF] Font files and image source > > > > > > I guess I should have read the whole thread before replying. > > I'll see if I > > can get these files and include them in the product. I'm not an > > artist, so > > i had someone who has more skill in this area do the images for me. > > Thanks, > > Andrew > > > > > -----Original Message----- > > > From: zope-cmf-admin@zope.org > [mailto:zope-cmf-admin@zope.org]On Behalf > > > Of Erik Lange > > > Sent: Monday, July 09, 2001 8:35 AM > > > To: zope-cmf@zope.org > > > Subject: RE: [Zope-CMF] Font files and image source > > > > > > > > > Allthough binary, .gif files are still created from one or more > > > sources ;-) > > > > > > Our example: > > > In the CMF calendar some .gif-files are used to give a very nice > > > view of an > > > event. > > > > > > E.g. at the top there is a small "Event Info" TAB made with a > .gif-file. > > > > > > I believe this TAB-design is made so it's possible to add new TABs for > > > editing of various aspect of special events in a portal, if one > > creates an > > > event containing more info than included on the default > > Event_Info TAB in > > > the default CMF calender. > > > > > > We are making such an "extended" CMF event and would like to > > make a TAB in > > > the edit/view event, containg the edit/view of our extended > event-data. > > > > > > And then we need to know what font was used, what shadow, > > outline or other > > > effect was applied and so on, when the binary > > event_info_tab.gif-file was > > > originally created, to make a new event_ourinfo_tab.gif-file, > > > with the same > > > look as the TAB that comes with the CMF calendar. > > > > > > And THAT is what is meant by "source-code", regarding graphics ;-) > > > > > > - > > > > > > So, when making a Zope-product including graphic files, please > > > include these > > > informations, font-files and (best of all) a "non-flattened" > > > version of the > > > compositing file, with all used layers seperated (like .PSD). > > > > > > Erik Lange > > > > > > > -----Original Message----- > > > > From: zope-cmf-admin@zope.org > > [mailto:zope-cmf-admin@zope.org]On Behalf > > > > Of Jens Vagelpohl > > > > Sent: Monday, July 09, 2001 1:18 PM > > > > To: Gitte Wange > > > > Cc: zope-cmf@zope.org > > > > Subject: Re: [Zope-CMF] Font files and image source > > > > > > > > > > > > i'm not sure what it is that you are talking about. GIF and > most other > > > > image file formats are binary files. there is no source. if > > you want to > > > > modify it you can load it into any image editing program and do it. > > > > > > > > jens > > > > > > > > > > > > On Monday, July 9, 2001, at 04:07 , Gitte Wange wrote: > > > > > > > > > Hello, > > > > > > > > > > I am using the CMF Event product (or is it called CMF > Calendar?) to > > > > > create a > > > > > new LiveEvent product. > > > > > > > > > > I really like the design of the edit - and view - forms so I > > > > thought that > > > > > I > > > > > would use the same design in my forms. > > > > > > > > > > But to modify the gif file isn't easy when it is a "finished" > > > > gif file you > > > > > have to edit from. So I thought: > > > > > This is OpenSource. Shouldn't I be able to see the "source" > > of the gif > > > > > file ? > > > > > > > > > > So - when you have a product, shouldn't you put the source > > > > image file (and > > > > > font files etc.) in the code ??? > > > > > Is there a place I can find the source image file ?? > > > > > > > > > > Regards, > > > > > -- > > > > > Gitte Wange Jensen > > > > > > > > > > Sys Admin, Developer and a lot more > > > > > MMmanager.org Aps, Denmark > > > > > > > > > > Phone: +45 29 72 79 72 > > > > > Email: gitte@mmmanager.org > > > > > Web: www.mmmanager.org > > > > > > > > > > Quote of the day: > > > > > This breaks the cron job that calls > > > > self.Zoo.Diet.LargeAnimals.hippo.feed( > > > > > ), > > > > > and all the hippos starve. Someone uses > > > > > self.Zoo.Diet.buildings.visitor_reception.feed(), > > > > > and ends up filling the reception with hippo food. > > > > > > > > > > - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal > > > > > > > > > > _______________________________________________ > > > > > Zope-CMF maillist - Zope-CMF@zope.org > > > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports > > > > and feature > > > > > requests > > > > > > > > _______________________________________________ > > > > Zope-CMF maillist - Zope-CMF@zope.org > > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > > > feature requests > > > > > > > > > > > > > _______________________________________________ > > > Zope-CMF maillist - Zope-CMF@zope.org > > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > > feature requests > > > > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > > > From ueck@net-labs.de Mon Jul 9 17:53:41 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Mon, 9 Jul 2001 18:53:41 +0200 Subject: [Zope-CMF] Re: A better CMFworkflow References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> <3B45323E.51BBD0F1@digicool.com> Message-ID: <011101c10897$b569ac90$3300000a@work01> hi shane > I encourage you to try out the DCWorkflow product. Although it's still > in its infancy, it provides a good way to implement everything you > listed. It is not shipped with CMF yet. It was developed based on > PTK/CMF community feedback that was remarkably similar to yours. > I have thought a lot about the state-transition-machine you used for the DCWorkflow and you're right .. most of the scenarios could be implemented using your Product. However I'm still struggling with these questions: - To clearly separate different (hierarchical) workflows i need lots of new PortalTypes (those main job is to define some workflow-relevat parts) After modelling a larger project into the DCWorkflow I'll have probably lots of objects which need to be stored somewhere (where ??) and may confuse users .. any suggestions on this ?? - some of the features in the dc-workflow: How does Triggertype: Initiated by WorkflowMethod work ?? is this transition triggered when the script is called or is this just a definition that the script should trigger this transition?? What's the intend of Guard/Expression .. is this an expression that controls the transition to happen or not and if .. what type of expression: regex or python (and what namespace) > The feature of binding types to workflow definitions is *specifically* > designed to make sub-workflows and multiple simultaneous workflows > possible... and maybe even easy. > I can still not relly figure out how this should work, if e.g. something depends on some other part of the workflow to be finished, if these parts in different workflows (A document and a corresponding news-item for example, where the news-item can only or must be created when the Document is published) As far as I understood what there happens is: Every PortalObject is part of is own workflow while its lifetime. they're all executed parallel and there is no obvious mechanism to syncronize their behaviour. Did I get this right ?? > If you disagree, however, just make your own portal_workflow tool. You > don't even have to change the CMF source. The binding of type to > workflow is only an assumption that the default portal_workflow makes > and nothing else in CMF depends on it. Really! > This will be the last thing I'll start .. I'm thinking of some combination of the "ObjectWorkflow" (yours :) and an addition that could be called portal_groupworkflow which is better in handling multi-user/multi-object workflow that is activity/task-centric .. what do you think about that? cheers Ulrich Eck From pje@telecommunity.com Mon Jul 9 18:14:18 2001 From: pje@telecommunity.com (Phillip J. Eby) Date: Mon, 09 Jul 2001 12:14:18 -0500 Subject: [Zope-CMF] Re: A better CMFworkflow In-Reply-To: <011101c10897$b569ac90$3300000a@work01> References: <006d01c104e7$691c3fa0$6600000a@netlabs.local> <20010705095413.D25562@lenin.jamkit.com> <00a301c105a8$9e750bc0$6600000a@netlabs.local> <3B45323E.51BBD0F1@digicool.com> Message-ID: At 06:53 PM 7/9/01 +0200, Ulrich Eck wrote: > >I can still not relly figure out how this should work, if e.g. something >depends >on some other part of the workflow to be finished, if these parts in >different >workflows (A document and a corresponding news-item for example, where >the news-item can only or must be created when the Document is published) This is what "guard" expressions are for. You can create scripts in the script part which check for these things to exist, and return a true or false value that can be used in a transition guard. However, since nothing happens to a workflow-covered object unless a transition/action is initiated, you may need to have all objects participating in a workflow perform a "nudge" action on each other when they change. That is, sub-workflow transitions should include a call to an action on the parent workflow instance, so that the parent's guard rules have a chance to trigger. You might literally make a workflow transition called "nudge" or "poll", which does nothing to the current workflow state. The idea is that nudging has no effect, but any "automatic" transitions from the current state will automatically occur afterwards. (Actually, there may exist an API in DCWorkflow to do this without making a fake transition, but I'm not aware of it.) Alternatively, you can put the rules about how the parent workflow should progress into the child workflow, but it's probably not generally a good idea since usually one wants to share child workflow schemas among multiple parent workflow schemas, and thus the child does not/should not know how the parent workflow operates, except that it is part of one. From ueck@net-labs.de Mon Jul 9 18:30:26 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Mon, 9 Jul 2001 19:30:26 +0200 Subject: [Zope-CMF] How can CMF and ZPatterns nicely work together .. anyone tried this with success ?? Message-ID: <017f01c1089c$d7a9bbb0$3300000a@work01> We use ZPatterns for our WebApplications and think about to base these applications on CMF which really has solutions for many things we actually need. Has anyone used ZPatterns and CMF together?? I think I'ld need to subclass my dataskins from PortalContent, DublinCoreImpl and DataSkin .. any experience it these classes could be used together (still doing what they should ;-) ?? When I use a Specialist for storing data .. should this be extended with PortalFolder functionality ?? thanks for your comments Ulrich Eck From chrisw@nipltd.com Mon Jul 9 18:33:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 09 Jul 2001 18:33:17 +0100 Subject: [Zope-CMF] Weirdness with standard_error_message in a Skin References: Message-ID: <3B49EADD.15694790@nipltd.com> John Fitzgerald wrote: > > Hello Chris, > This is most likely that you do not start ZOPE with a '-D' for debug mode. > FS Skins are not updated dynamically unless you start with the '-D'. I can assure you, Zope is running in debug mode ;-) It's _only_ the standard_error_message that is affected... cheers, Chris From jeff@thecolemans.ws Mon Jul 9 20:58:20 2001 From: jeff@thecolemans.ws (Jeff) Date: Mon, 9 Jul 2001 14:58:20 -0500 Subject: [Zope-CMF] Require login Message-ID: <00f001c108b1$92e3c9c0$1001a8c0@jeff2k> This is a multi-part message in MIME format. ------=_NextPart_000_00E1_01C10887.97E6FF70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I would like to require login for the entire portal. I have search the site and mail list half the day without finding the = nugget of information I need :-o. Thanks in advance, Jeff ------=_NextPart_000_00E1_01C10887.97E6FF70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I would like to require login for the = entire=20 portal.
I have search the site and mail list = half the day=20 without finding the nugget of information I need :-o.
Thanks in advance,
Jeff
------=_NextPart_000_00E1_01C10887.97E6FF70-- From robert@redcor.ch Mon Jul 9 21:46:41 2001 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 9 Jul 2001 22:46:41 +0200 Subject: [Zope-CMF] How can I use the portal_actions tool Message-ID: <001901c108b8$42145d00$a9a4023e@karin> Can I use the portal_actions toll to add actions to the portal itself. If yes how? Robert From shane@digicool.com Mon Jul 9 21:41:34 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 09 Jul 2001 16:41:34 -0400 Subject: [Zope-CMF] Require login References: <00f001c108b1$92e3c9c0$1001a8c0@jeff2k> Message-ID: <3B4A16FE.548F17A9@digicool.com> > I would like to require login for the entire portal. > I have search the site and mail list half the day without finding the > nugget of information I need :-o. Put all of your site content in a folder. In that folder, visit the Security tab. Disallow the "View" and "Access contents information" permissions for the Anonymous role. That way, users who haven't logged in won't be able to access anything in the folder. Don't turn off the View permission for the site root, though, since that will prevent users from viewing the login page... unless you don't mind using basic auth instead of cookies. Shane From shane@digicool.com Mon Jul 9 21:42:05 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 09 Jul 2001 16:42:05 -0400 Subject: [Zope-CMF] How can I use the portal_actions tool References: <001901c108b8$42145d00$a9a4023e@karin> Message-ID: <3B4A171D.48D48110@digicool.com> Robert Rottermann wrote: > > Can I use the portal_actions toll to add actions to the portal itself. If > yes how? Not yet. :-( Shane From runyaga@thisbox.com Mon Jul 9 22:05:42 2001 From: runyaga@thisbox.com (alan runyan) Date: Mon, 9 Jul 2001 16:05:42 -0500 Subject: [Zope-CMF] anonymous to submit content? Message-ID: <005201c108ba$ea791e70$1701640a@pythonic> ok. if you look on zope-dev you can see i'm having a hard time w/ letting Anonymous users create content in the CMF. It appears its some heavy mojo inside the security machinery (or that is my perception after 2 hours w/ the debugger and lots of Cokes). Two requests: if you are a guru, please look at my post. Its a bit rambling and was composed over a few hours. I believe the jist is there. Second Request: which is on topic for the CMF. What is the 'way' of letting Anonymous Users to create Content Objects in the CMF? I had an idea that seemingly could work well. and would be useable (almost) by all CMF Content Objects. We create 2 Script (Pythons) that are proxied as high level users, we do this for each Content Object. For instance, mine would be createJobPosting and submitJobPosting. I have a user called, PUBLIC. in the createJobPosting: we invokeFactory to create the desired content object in the PUBLIC directory. then we need to return the view (xxx_edit_form) of that object (newly created object), proxied as if they were God. they will be submitting this to submitJobPosting which again another proxied Script (Python) which simply saves it to the edit method of the object and then submits it to a review status. so we could have all job postings sitting in /Members/PUBLIC/job######### and then if we wanted we could move them out of there on 'Publish'. Has anyone got this working? This isnt needed if users are logged into the CMF, but if you are Anonymous I am having all sorts of problems. I would love to see the CMF have a plethora of objects that did common functionality of websites where anonymous users could submit content, it could be reviewed and then integrated into the website. problems: the object has to be away of its view. this could be an acquistion issue, i have no clue. i.e. I ended up having to create a method on the object called, getEditView (which returned the rendered DTML). the second is that on publishing of this view, all calls to this() hork, because of security problems being Anonymous (even if you are proxied) -- in my case, standard_html_header on _.hasattr(this(), 'isEffective') . This is the step I'm trying to figure out. I will jump through the Python hoops so that people dont have to proxy their standard_header or any other DTML Methods. I will write this up as HOW-TO if we/I can figure it out. am I missing something and has someone already conquered this? cheers, ~runyaga p.s. logging into the CMF is quite a bit of user effort and to submit Job Postings/URL (Swishdot?) ,NEWS, Events -- w/o having to log in and then delegated members can review and push it through a more comprehensive workflow would be SWEET. soo, has anyone succeeded? From tseaver@palladion.com Mon Jul 9 22:13:55 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 9 Jul 2001 17:13:55 -0400 (EDT) Subject: [Zope-CMF] How can I use the portal_actions tool In-Reply-To: <001901c108b8$42145d00$a9a4023e@karin> Message-ID: On Mon, 9 Jul 2001, Robert Rottermann wrote: > Can I use the portal_actions toll to add actions to the portal itself. If > yes how? Adding that feature is on the list for the next release of CMF; at the moment, you would need to replace the 'portal_actions' tool with another implementation of its interface (a folder full of ExternalMethods would probably work). The interface is defined in CMFCore/interfaces/portal_actions.py. Tres. -- =============================================================== Tres Seaver tseaver@palladion.com From chrisw@nipltd.com Mon Jul 9 22:35:36 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 9 Jul 2001 22:35:36 +0100 Subject: [Zope-CMF] How can I use the portal_actions tool References: Message-ID: <001c01c108bf$1f5b7df0$eb57073e@withers> > Adding that feature is on the list for the next release of CMF; > at the moment, you would need to replace the 'portal_actions' tool > with another implementation of its interface (a folder full of > ExternalMethods would probably work). The interface is defined > in CMFCore/interfaces/portal_actions.py. I'm up for doing this if you guys have better things to do, I need it for Swishdot afterall :-) cheers, Chris From karl@digicool.com Mon Jul 9 23:30:47 2001 From: karl@digicool.com (Karl Anderson) Date: 09 Jul 2001 15:30:47 -0700 Subject: [Zope-CMF] How can I use the portal_actions tool In-Reply-To: "Robert Rottermann"'s message of "Mon, 9 Jul 2001 22:46:41 +0200" References: <001901c108b8$42145d00$a9a4023e@karin> Message-ID: Robert Rottermann writes: > Can I use the portal_actions toll to add actions to the portal itself. If > yes how? I did this in a Q&D way by creating an object instance that did what an action provider does and adding it to the actions tool: portal.demo_actions_provider = CMFDemoActionProvider() portal_actions = getToolByName(portal, "portal_actions") portal_actions.action_providers = (portal_actions.action_providers + ('demo_actions_provider',)) The CMfDemoActionProvider class only supported the listActions() method, which returns a list of dicts for making links. -- Karl Anderson karl@digicool.com From karl@digicool.com Mon Jul 9 23:59:39 2001 From: karl@digicool.com (Karl Anderson) Date: 09 Jul 2001 15:59:39 -0700 Subject: [Zope-CMF] Re: A better CMFworkflow - XML configuration In-Reply-To: Shane Hathaway's message of "Sat, 07 Jul 2001 00:07:34 -0400" References: <000001c10692$a5bbe170$0100a8c0@dev1> <3B468B06.58184F7F@digicool.com> Message-ID: Shane Hathaway writes: > > If the XMLObject project was ready, we could even try this on existing > > workflow tools without distracting them at all. It sounds like that will > > someday provide XML (de)serialization. > > I've written several XML (de)serialization routines (for other > projects), and they all turned out to be a lot more work than I > expected. There must be a pattern out there that's easy to apply and > extend. Look, for example, at the implementation of PPML, the "Python > Pickle Markup Language", in lib/python/Shared/DC/xml. The > implementation is much more complex than I would expect. This is one of the intended benefits for ZDOM. The idea is that Zope objects could provide a DOM interface, and XML (de)serialization would be on top of that. An XML representation based on a one-size-fits-all DOM interface would likely be clunky for complex objects, but so far I've assumed that this isn't a big deal - XML is made to be clunky :) and the question is what tools could be used to translate this to usablility by the time it reaches a human. Subclasses of the DOM interface tailored to object types? DOM Traversal interfaces to filter out unwanted info? Transforms to compartmentalize unwanted info into nodes that could be collapsed in the interface? > Here's an off-topic thought: writing Python object <-> XML routines in > Python is more complex than expected, and writing Python object <-> XML > routines in XML (i.e. XSLT) is also complex, but maybe the "sweet spot" > is in writing a short XML file that combines with a short Python file? > Somehow you'd put everything XMLish in the XML file and everything > Pythonic in the module. Hmm... :-) I don't get this idea - what's the difference between Pythonic data and XMLish data? I think of XML as a wire format for hierarchical information - look at the DOM or the Infoset to see how simple this hierarchy has to be. If your Python stuff fits that mold, (de)serializing will be easy, else it will take effort. So rather than storing stuff as XML, where it's hard to reach, store it as Python objects which are easily translatable to nodes, attributes, etc.. -- Karl Anderson karl@digicool.com From arkbit@yahoo.com Tue Jul 10 01:22:27 2001 From: arkbit@yahoo.com (Arkaitz) Date: 10 Jul 2001 02:22:27 +0200 Subject: [Zope-CMF] To CMF or not to CMF Message-ID: <994724547.468.8.camel@basajaun> Hi all, For the next site we'll build, we are evaluating the Zope CMF. We like Zope, and could use "bare-bones" Zope to develop it, but we are wondering if the CMF is the magic piece that will give us everything without having to reinvent the wheel ourselves. The site is for a Non-profit organization that is mid-sized. They want to be able to publish all the information they have, which will change over time, plus basic news and little more. This is not going to be a "portal", with lots of members, etc. Just the minimum editors/members that will write the content in STX. Our job is basically to provide a design and the tools for them to publish the information. The site won't be in English. Now, the question is, is this kind of site well suited for the CMF? I guess being in the list I am, the responses will be quite possitive ;-), but I would appreciate any reasoned answer regarding our doubt. The CMF is a big and new beast for us, we'd like to be sure that it's worth the effort to learn it ;-). TIA, Arkaitz. From bill@libc.org Tue Jul 10 06:16:26 2001 From: bill@libc.org (Bill Anderson) Date: 09 Jul 2001 23:16:26 -0600 Subject: [Zope-CMF] Documenting DCWorkflow, an idea Message-ID: <994742195.5363.4.camel@locutus.libc.org> I've been thinking about playing with teh DCWorkflow beta (alpha?). it occurs to me a nice way of documenting it for we the current users of CMF, is a how-to that build the same functionality as the default. that way, the examples can be compared with known behaviours, providing much less need for explanation. Any takers? I myself have not experimented sufficiently to know what ties what to what in DCWorkflow. Bill Anderson From bill@libc.org Tue Jul 10 06:27:42 2001 From: bill@libc.org (Bill Anderson) Date: 09 Jul 2001 23:27:42 -0600 Subject: [Zope-CMF] To CMF or not to CMF In-Reply-To: <994724547.468.8.camel@basajaun> References: <994724547.468.8.camel@basajaun> Message-ID: <994742862.5363.5.camel@locutus.libc.org> On 10 Jul 2001 02:22:27 +0200, Arkaitz wrote: ... > The site is for a Non-profit organization that is mid-sized. They want > to be able to publish all the information they have, which will change > over time, plus basic news and little more. This is not going to be a > "portal", with lots of members, etc. Just the minimum editors/members > that will write the content in STX. Our job is basically to provide a > design and the tools for them to publish the information. The site won't > be in English. > > Now, the question is, is this kind of site well suited for the CMF? I > guess being in the list I am, the responses will be quite possitive ;-), > but I would appreciate any reasoned answer regarding our doubt. The CMF ... In this case, I believe CMF is the right choice. here are some reasons: The functionality of the site *_WILL_* increase. they may want the simple stuff now, but just you wait, it will not stay that way. I have yet to see a site such as the one you describe stay that simple for long. CMF will make it easy to add most things in the future, with an integrated 'look and feel'. With the CMF, you will get the good stuff up front, news, pre-built content-writer's interface, preset permissions (review, etc.), and then, later when the feature creep sets in, there is/will be more easily waiting. Another reason, is that through judicious use of the Scriptable Types interface in the types tool, you can easily, and I mean easily, make different types of standard documents, such as Article, review, howTo, etc. with little effort and easy searching. This is precisely the means I have used on http://bill.noreboots.com and http://www.libc.org. On these sites, I have taken the above procedure to create a veritable cornucopia of document types. on the former, only I have a login, and hence any permissions to do anything other than view. On the latter, site members have differing levels of authority. So, based solely upon what you have posted, I would propose the CMF, as opposed to 'straight zope'. Bill Anderson http://www.immosys.com From erik@thingamy.net Mon Jul 9 17:16:40 2001 From: erik@thingamy.net (Erik Enge) Date: 09 Jul 2001 18:16:40 +0200 Subject: [Zope-CMF] Duplicating NewsItem and custom CMF product. Message-ID: <87sng613iv.fsf@thingamy.net> Hi, guys. I'm endavouring to grok CMF, but it's a struggle. I've got it halfway pinned down now, but suddenly, in a weak moment of mine, it escaped! First, I tried to make my own python CMF product; CMFTestProduct. This product provides the TestObject object and not much else. I basically abused CMFCalendar beyond recognition. Adding it is no problemo, but viewing is a different story. I get: Error Type: Not Found Error Value: Cannot find default view for "/cmf_site/Members/user1/test_object2" What's the secret? Second, I tried to mangle NewsItem.py in CMFDefault/. I copied it to a file (in the same CMFDefault/ folder) named NewsItemErik.py. Then I modified the skins, Portal.py and the content of NewsItemErik.py to reflect this change. I created a new site and News Item Erik is now in the portal_types; great, nice, I like :). I was kinda assuming to be able to see News Item Erik after clicking "New..." as a Member of the site, but uh-oh. No-can-do. After some sourcediving, I narrowed it down to this fellow: def _getFactoryMethod(self, container, raise_exc=0): if not self.product or not self.factory: return None try: p = container.manage_addProduct[self.product] m = getattr(p, self.factory, None) if m is not None: if getSecurityManager().validate(p, p, self.factory, m): return m return None except: if raise_exc: raise return None It's the m = getattr(p, self.factory, None) that fails (or returns None, if you absolutely must know). Could anyone be so kinda as to tell me why? It would be very much appretiated. Sourcediving isn't one of my favourite sports, even though I quite like it, I like real diving and sun-bathing more! (CMF looks great though, keep up the good work!) (Oh, and I have loads of lovely nitpicking on source code - missing module-docstrings, CVS-headers, wild'n'crazy-excepts and more. Anyone interested?) From chrisw@nipltd.com Tue Jul 10 07:41:01 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 07:41:01 +0100 Subject: [Zope-CMF] Documenting DCWorkflow, an idea References: <994742195.5363.4.camel@locutus.libc.org> Message-ID: <3B4AA37D.5A3CF53D@nipltd.com> Bill Anderson wrote: > > Any takers? I myself have not experimented sufficiently to know what > ties what to what in DCWorkflow. That's a great idea, but I'm in the same position as you... Chris From chrisw@nipltd.com Tue Jul 10 08:15:03 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 08:15:03 +0100 Subject: [Zope-CMF] TypesTool question Message-ID: <3B4AAB77.DFAADEC8@nipltd.com> Hi, How come there's a call to isConstructionAllowed() in the ScriptableTypeInformation implementation of constructInstance but there isn't a call to isConstructionAllowed in the FactoryTypeInformation implementaion of constructInstance? cheers, Chris From bill@libc.org Tue Jul 10 08:11:56 2001 From: bill@libc.org (Bill Anderson) Date: 10 Jul 2001 01:11:56 -0600 Subject: [Zope-CMF] Content created by Manager not editable by Member In-Reply-To: <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> References: <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> Message-ID: <994749122.5363.6.camel@locutus.libc.org> On 09 Jul 2001 15:54:29 +0200, Gr=E9goire Weber wrote: > Hi, >=20 > I'am just wondering. It is not a important point for me at the moment. > So for now it's just for learning about CMF. >=20 > When I am logged in as Manager and I create a Document (or a News Item,=20 > etc.) in a Members folder it wouldn't be editable by the Member even=20 > it is located in his directory. Is this a intended behaviour? yes. the content is owned by whomever created it. only the manager, owner, and any role given the permission (as you note below) can modify content. >=20 > Additional information: >=20 > When I give the the Member role the permission 'Modify portal content', > the Member is then able to edit the Document. Do I open a potential=20 > security hole by setting this permission in the /Member folder?=20 Yes. AIUI, with this setting, any member could modify other peoples content. that is generally a bad thing. One thing that comes to my mind as a potential issue, is that a member could modify a manager's methods, and thus onsert malicious code. I think it is a bad idea, but it is not my site, and I am admittedly=20 slightly paranoid about that. Bill From gregoire.weber@switzerland.org Tue Jul 10 08:32:02 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Tue, 10 Jul 2001 09:32:02 +0200 Subject: [Zope-CMF] Content created by Manager not editable by Member In-Reply-To: <994749122.5363.6.camel@locutus.libc.org> References: <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> Message-ID: <3.0.6.32.20010710093202.011c1c50@pop.dplanet.ch> Hi Bill, Lots of thanks for your competent answer! > I think it is a bad idea, but it is not my site, and I am admittedly=20 > slightly paranoid about that. Oh yes, I supposed that also. That's really bad. No fear I have about the=20 same level of paranoia :-) Greg _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From gregoire.weber@switzerland.org Tue Jul 10 08:59:08 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Tue, 10 Jul 2001 09:59:08 +0200 Subject: [Zope-CMF] Content created by Manager not editable by Member In-Reply-To: <994749122.5363.6.camel@locutus.libc.org> References: <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> <3.0.6.32.20010709155429.011e8c80@pop.dplanet.ch> Message-ID: <3.0.6.32.20010710095908.011ed190@pop.dplanet.ch> Another observation just for the people on the list: > the content is owned by whomever created it. only the manager, owner, > and any role given the permission (as you note below) can modify > content. The Member is not able to change the status of the item, but he's able to *delete* (!) and copy/paste it! After copy'n'pasting it the member is the owner of the piece of content! If you like it to have the same name as before 'foo' and not this 'copy_of_foo' name, you should rename it afterwards.=20 And you can do this all as Member and without additional permissions! Greg _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From erik@thingamy.net Tue Jul 10 08:57:38 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 09:57:38 +0200 Subject: [Zope-CMF] Duplicating NewsItem and custom CMF product. In-Reply-To: <87sng613iv.fsf@thingamy.net> References: <87sng613iv.fsf@thingamy.net> Message-ID: <873d85z05p.fsf@thingamy.net> [Erik Enge] | First, I tried to make my own python CMF product; CMFTestProduct. | This product provides the TestObject object and not much else. I | basically abused CMFCalendar beyond recognition. Adding it is | no problemo, but viewing is a different story. I get: | | Error Type: Not Found | Error Value: Cannot find default view for "/cmf_site/Members/user1/test_object2" Just to provide slightly more info: if I add test_object_view = DTMLFile('skins/test_product/test_object_view', globals()) to my TestObject class it works. My icon - defined in the factory_type_information - is also not displaying without me explicitly making it available. Where is the black magic happening? Who has the kung-foo powers? From lists@net-labs.de Tue Jul 10 09:15:37 2001 From: lists@net-labs.de (Ulrich Eck) Date: Tue, 10 Jul 2001 10:15:37 +0200 Subject: [Zope-CMF] Documenting DCWorkflow, an idea References: <994742195.5363.4.camel@locutus.libc.org> <3B4AA37D.5A3CF53D@nipltd.com> Message-ID: <001e01c10918$7fe9ac10$3300000a@work01> For my understanding I made a state-machine-diagramm that shows the states and transitions of a default_workflow which is availiable (after a reviewer published it) under: http://cmf.zope.org/Members/jack-e/WorkflowDesign/CMFWorkflow Every Object is in its "own" workflow form creation-time. the state of an object defines what transitions can be made from there (e.g. object is visible now you can hide or submit ...) Every transition defines the state of the object after transit and can limit its execution to special roles or dependent on a script that makes some checks (guard .. see Phillips answer to "a better workflow" in the mailinglist). within the workflow you can use your Variables to store information that is not directly stored in the object but needed for the work(flow). at last you can query the portal catalog in a neat way by using the worklists to get objects of a certain state to build the "joblists" for the responsible people .. and a snippet i found in the archive: --- [seb] Whichever you use, the underlying concept is of a state machine, where a transition between states results in changing the permissions on an object. In the DefaultWorkflow the states are private, public, and pending. The transitions are retract, publish, and submit. If you look at updateMappingsFor in DefaultWorkflow, you'll see that permissions get set dependent on state, following a transition. The starting point in designing a workflow should be to write a state machine diagram. There's more pointers in the DCWorkflow docs. --- thats how i understood it so far hope this helps From gitte@mmmanager.org Tue Jul 10 09:20:25 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Tue, 10 Jul 2001 10:20:25 +0200 Subject: [Zope-CMF] Re: your LiveEvent thingy In-Reply-To: <004a01c10917$d9dc5d40$0a01a8c0@stravinsky> References: <00eb01c108a0$a0bc5050$0a01a8c0@stravinsky> <01070920244102.01529@squidbitch.mmmanager.org> <004a01c10917$d9dc5d40$0a01a8c0@stravinsky> Message-ID: <01071010202500.08541@squidbitch.mmmanager.org> Hi again Robert I didn't mean lifeevent but live event :-) It's an event that runs ... live :-) We here at Mmmanager.org is creating an online streaming community builded in CMF. Here you can present live and on-demand streams of various formats. So that's why we have modified the existing Event class and created a live event. You can use this to various things: Conferences, schools, tv stations etc. etc. So yes - you could use this for your conference. But as I wrote - the live event product wouldn't be worth much without the rest of our media product. Please have a look at http://www.mmmanager.org/Members/BitchBabe/article_collection/BLARKENTRY_277531942_994678301/document_view It's a usecase about online reality tv-shows. Soon we will be able to also "stream" things such as power point presentations :-) About interactivity - we are looking for a chat. Anybody out there with a little helt on this ? Regards, Gitte Wange On Tuesday 10 July 2001 10:10, you wrote: > Hi Gitte, > thanks for your super quick answer. I had to run yesterday so I answer only > now. > > I do not really understand the meaning of "lifeevent" > Is ist an interactiv meeting? > > An other question(not really related). > A customer of ours (a medical doctor and professor of this trade) does lots > of training for his colleagues. What he would like is to convert the many > powerpoint presentations he has into lessons on his site. > How would I do that best? > > Tanks for all your efforts > Robert > > ----- Original Message ----- > From: "Gitte Wange" > To: "Robert Rottermann" > Sent: Monday, July 09, 2001 8:24 PM > Subject: Re: your LiveEvent thingy > > > On Monday 09 July 2001 19:56, you wrote: > > > Hi Gitte, > > > > > > I am about to create a site for a conference. > > > I alredy started to work with your "enhanced" event. Now I wonder what > > that > > > > live event is you where mentioning? > > > > > > Robert > > > > Hi Robert, > > > > Well right now that portal type is only placed at our portal. > > Would you like it as a product ??? > > > > It isn't much use without the rest of My Media Manager - it is used for > > live > > > streams. > > > > Please write back to tell if I should release it. > > > > Regards, > > > > -- > > Gitte Wange Jensen > > > > Sys Admin, Developer and a lot more > > MMmanager.org Aps, Denmark > > > > Phone: +45 29 72 79 72 > > Email: gitte@mmmanager.org > > Web: www.mmmanager.org > > > > Quote of the day: > > And in the end, reality always tends to hit theory hard in the face > > when you least expect it. > > - Linus Torvalds From erik@thingamy.net Tue Jul 10 09:25:26 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 10:25:26 +0200 Subject: [Zope-CMF] Documenting DCWorkflow, an idea In-Reply-To: <001e01c10918$7fe9ac10$3300000a@work01> References: <994742195.5363.4.camel@locutus.libc.org> <3B4AA37D.5A3CF53D@nipltd.com> <001e01c10918$7fe9ac10$3300000a@work01> Message-ID: <87n16dxkax.fsf@thingamy.net> [Ulrich Eck] | http://cmf.zope.org/Members/jack-e/WorkflowDesign/CMFWorkflow I can't access this one; logged in or not logged in. From james@codenamefuture.nl Tue Jul 10 09:36:17 2001 From: james@codenamefuture.nl (James van der Veen) Date: Tue, 10 Jul 2001 10:36:17 +0200 Subject: [Zope-CMF] Checking if... Message-ID: <11204746D436D411A6F90004AC5396110D8473@EXCHSRVR1> Hi all, I have been trying to find this out on my own but I=B4m affraid I will = need your help (again). I have a folder called generic and a folder custom. like this portal_skins---- =A6--- custom =A6--- generic Well now I have the action box. And I added a action to create a new stylesheet_properties (in custom) called change colors. Now this action either links to the stylesheet_properties of generic = and they will click a buton to copy the method to the custom folder. But the next time they log in they might want to change the colors (the stylesheet_properties) again. But if I send them to the generic folder = again and the click the copy button they will get a error telling them the stylesheet_properties allready exists in the custom folder. So now my question: How can I make the link change depending on if there already exists a stylesheet_properties in custom=20 (URL/custom/stylesheet_properties)and if not like them to the stylesheet_properties of generic(URL/generic/stylesheet_properties) Hope my explanation was clear. Thankz, James From lists@net-labs.de Tue Jul 10 09:31:13 2001 From: lists@net-labs.de (Ulrich Eck) Date: Tue, 10 Jul 2001 10:31:13 +0200 Subject: [Zope-CMF] Documenting DCWorkflow, an idea References: <994742195.5363.4.camel@locutus.libc.org><3B4AA37D.5A3CF53D@nipltd.com> <001e01c10918$7fe9ac10$3300000a@work01> <87n16dxkax.fsf@thingamy.net> Message-ID: <004301c1091a$ae18dff0$3300000a@work01> > [Ulrich Eck] > > | http://cmf.zope.org/Members/jack-e/WorkflowDesign/CMFWorkflow > > I can't access this one; logged in or not logged in. > yes .. like i said: after the reviewer has published it .. in the meantime i put it on one of my servers to view: http://www.net-labs.de/documentation/workflow/CMFWorkflowDiagramm.gif cheers Ulrich Eck From seb@jamkit.com Tue Jul 10 10:26:19 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 10:26:19 +0100 Subject: [Zope-CMF] TypesTool question In-Reply-To: <3B4AAB77.DFAADEC8@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 08:15:03AM +0100 References: <3B4AAB77.DFAADEC8@nipltd.com> Message-ID: <20010710102618.H18193@lenin.jamkit.com> * Chris Withers [010710 08:18]: > How come there's a call to isConstructionAllowed() in the > ScriptableTypeInformation implementation of constructInstance but there isn't a > call to isConstructionAllowed in the FactoryTypeInformation implementaion of > constructInstance? Did you notice that there _is_, however, a call to the same underlying code, viz. _getFactoryMethod? Looks like a case of unfinished refactoring to me... seb From chrisw@nipltd.com Tue Jul 10 09:53:46 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 09:53:46 +0100 Subject: [Zope-CMF] invokeFactory query Message-ID: <3B4AC29A.83EC504@nipltd.com> Should invokeFactory require an id for the content being created? Currently, I have to have a seperate method which duplicates invokeFactory but passes id=None if it isn't supplied, as posting ids in Swishdot are autmatically generated. What do other people think? cheers, Chris From seb@jamkit.com Tue Jul 10 10:31:00 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 10:31:00 +0100 Subject: [Zope-CMF] To CMF or not to CMF In-Reply-To: <994742862.5363.5.camel@locutus.libc.org>; from bill@libc.org on Mon, Jul 09, 2001 at 11:27:42PM -0600 References: <994724547.468.8.camel@basajaun> <994742862.5363.5.camel@locutus.libc.org> Message-ID: <20010710103059.I18193@lenin.jamkit.com> * Bill Anderson [010710 06:38]: > On 10 Jul 2001 02:22:27 +0200, Arkaitz wrote: > ... > > The site is for a Non-profit organization that is mid-sized. They want > > to be able to publish all the information they have, which will change > > over time, plus basic news and little more. This is not going to be a > > "portal", with lots of members, etc. Just the minimum editors/members > > that will write the content in STX. Our job is basically to provide a > > design and the tools for them to publish the information. The site won't > > be in English. > > > > Now, the question is, is this kind of site well suited for the CMF? I > > guess being in the list I am, the responses will be quite possitive ;-), > > but I would appreciate any reasoned answer regarding our doubt. The CMF > ... > > In this case, I believe CMF is the right choice. here are some reasons: > The functionality of the site *_WILL_* increase. they may want the simple > stuff now, but just you wait, it will not stay that way. I have yet to see > a site such as the one you describe stay that simple for long. CMF will make > it easy to add most things in the future, with an integrated 'look and feel'. I'd just add that I agree, it _is_ the correct tool in most cases IMO, but don't expect a 'silver bullet'. There's still a fairly steep learning curve, since if you want to do things in a pleasant way, you have to get down and dirty with the source - there's not exactly a wealth of documentation. But basically, think of it as an enhanced zope. The only reason *not* to use it is if you're on a really right schedule and you already know some other system like the back of your hand. However, if you've got a little space, you'll find the CMF well worth the effort. seb From chrisw@nipltd.com Tue Jul 10 10:02:44 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 10:02:44 +0100 Subject: [Zope-CMF] TypesTool question References: <3B4AAB77.DFAADEC8@nipltd.com> <20010710102618.H18193@lenin.jamkit.com> Message-ID: <3B4AC4B4.FA5640B3@nipltd.com> seb bacon wrote: > > Did you notice that there _is_, however, a call to the same underlying > code, viz. _getFactoryMethod? Looks like a case of unfinished > refactoring to me... Ah, okay :-) cheers, Chris PS: Seb, you going to Berlin? From seb@jamkit.com Tue Jul 10 10:42:50 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 10:42:50 +0100 Subject: [Zope-CMF] invokeFactory query In-Reply-To: <3B4AC29A.83EC504@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 09:53:46AM +0100 References: <3B4AC29A.83EC504@nipltd.com> Message-ID: <20010710104250.J18193@lenin.jamkit.com> I think the current behaviour is probably OK for now. Everyone's got their own preferred system and we'd needs lots more input from everyone before it got changed in the codebase. For example, my opinion which I've voiced before (and put in the Tracker) is that ids should, in fact, get generated from Titles. The problem with your invokeFactory is that if a developer wants to enforce 'meaningful' names on content, they'll have to replace your version. IMO, until there's more of a discussion about the 'correct' implementation, people like us who want something different should just be replacing invokeFactory. Personally, I'm subclassing PortalFolder to extend the services offered by it anyway, so I just override invokeFactory. seb * Chris Withers [010710 09:57]: > Should invokeFactory require an id for the content being created? > > Currently, I have to have a seperate method which duplicates invokeFactory but > passes id=None if it isn't supplied, as posting ids in Swishdot are autmatically > generated. > > What do other people think? From seb@jamkit.com Tue Jul 10 10:50:48 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 10:50:48 +0100 Subject: [Zope-CMF] anonymous to submit content? In-Reply-To: <005201c108ba$ea791e70$1701640a@pythonic>; from runyaga@thisbox.com on Mon, Jul 09, 2001 at 04:05:42PM -0500 References: <005201c108ba$ea791e70$1701640a@pythonic> Message-ID: <20010710105046.L18193@lenin.jamkit.com> > What is the 'way' of letting Anonymous Users to create Content Objects in > the CMF? I had an idea that seemingly could work well. and would be useable > am I missing something and has someone already conquered this? You're missing something :-) Have you tried going to the security tab of the portal and granting 'add portal content' permission (etc, etc) to Anonymous? seb From chrisw@nipltd.com Tue Jul 10 10:31:38 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 10:31:38 +0100 Subject: [Zope-CMF] invokeFactory query References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> Message-ID: <3B4ACB7A.1EBBC86B@nipltd.com> seb bacon wrote: > > I think the current behaviour is probably OK for now. Yeah, so do I, I changed my mind :-) I now have a seperate skin method caleld addArticle: ## Script (Python) "addArticle" ##title=adds an article ##parameters=id=None from DateTime import DateTime now = DateTime() (year,month,day,hour,minute,second,timezone)=now.parts() second=int(second) # find a place to store the article, create if necessary c = container.portal_url.getPortalObject() month = now.Month() path=[`year`,month,`day`] for segment in path: if not hasattr(c,segment): c.manage_addProduct['CMFDefault'].manage_addPortalFolder(segment) c = getattr(c,segment) # generate an id, if necessary, maek sure it doesn't exist already while id is None or hasattr(c,id): id = '%s.%s.%s' % (hour,minute,second) second = second + 1 return c.invokeFactory(type_name='Article', id=id,RESPONSE=container.REQUEST.RESPONSE) ...which I like :-) cheers, Chris From lists@net-labs.de Tue Jul 10 10:31:53 2001 From: lists@net-labs.de (Ulrich Eck) Date: Tue, 10 Jul 2001 11:31:53 +0200 Subject: [Zope-CMF] Duplicating NewsItem and custom CMF product. References: <87sng613iv.fsf@thingamy.net> Message-ID: <00ad01c10923$27657370$3300000a@work01> > I'm endavouring to grok CMF, but it's a struggle. I've got it halfway > pinned down now, but suddenly, in a weak moment of mine, it escaped! > > First, I tried to make my own python CMF product; CMFTestProduct. > This product provides the TestObject object and not much else. I > basically abused CMFCalendar beyond recognition. Adding it is > no problemo, but viewing is a different story. I get: > > Error Type: Not Found > Error Value: Cannot find default view for "/cmf_site/Members/user1/test_object2" > > What's the secret? Did you provide the methods described in the factory_type_information in a FilesystemDirectoryView within the portal_skins-tool and inserted your FDV right after custom in the properties-tab of portal_skins?? > Second, I tried to mangle NewsItem.py in CMFDefault/. I copied it to a > file (in the same CMFDefault/ folder) named NewsItemErik.py. Then I > modified the skins, Portal.py and the content of NewsItemErik.py to > reflect this change. I created a new site and News Item Erik is now > in the portal_types; great, nice, I like :). I was kinda assuming to > be able to see News Item Erik after clicking "New..." as a Member of > the site, but uh-oh. No-can-do. After some sourcediving, I narrowed > it down to this fellow: You have do add a Type in the portal_types tool according to your Factory-info (add Factory-based Type Information). cheers Ulrich Eck From seb@jamkit.com Tue Jul 10 11:19:28 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 11:19:28 +0100 Subject: [Zope-CMF] traversal barf in Opera Message-ID: <20010710111927.M18193@lenin.jamkit.com> I'm getting a KeyError occasionally when I look at my page in Opera, but not in any other browsers: Traceback (innermost last): < snip > File /usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: rootpath="absolute_url()") File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: absolute_url()) (Info: absolute_url) File <string>, line 0, in ? File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url (Object: Traversable) KeyError: SERVER_URL A reload usually gets rid of the problem. Any ideas what's going on here? This is unlikely to be CMF-related, so perhaps I should copy the query to zope-dev? seb From seb@jamkit.com Tue Jul 10 11:20:29 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 11:20:29 +0100 Subject: [Zope-CMF] invokeFactory query In-Reply-To: <3B4ACB7A.1EBBC86B@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 10:31:38AM +0100 References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> Message-ID: <20010710112028.N18193@lenin.jamkit.com> nice. You should post it to the dogbowl as a snippet. Go on, you know you want to... seb * Chris Withers [010710 10:39]: > seb bacon wrote: > > > > I think the current behaviour is probably OK for now. > > Yeah, so do I, I changed my mind :-) > > I now have a seperate skin method caleld addArticle From chrisw@nipltd.com Tue Jul 10 10:49:46 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 10:49:46 +0100 Subject: [Zope-CMF] Zope or CMF bug? Message-ID: <3B4ACFBA.448EBFFE@nipltd.com> My defautl view method didn't exist, so I got a weird error: File E:\Zope\current\Products\CMFCore\PortalContent.py, line 220, in _getDefaultView (Object: DynamicType) File E:\Zope\2379B4~1.2\lib\python\OFS\Traversable.py, line 223, in restrictedTraverse (Object: DynamicType) File E:\Zope\2379B4~1.2\lib\python\OFS\Traversable.py, line 208, in unrestrictedTraverse (Object: DynamicType) AttributeError: __getitem__ Is this a Zope bug or a CMF bug? I guess it's a Zope bug if whatever is looking for __getitem__ should handle the case when its not there (I reckon this is the case ;-) and it'd be a CMF bug if portal content should always supply a __getitem__ method... what do other people think? Chris From erik@thingamy.net Tue Jul 10 10:28:13 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 11:28:13 +0200 Subject: [Zope-CMF] Duplicating NewsItem and custom CMF product. References: <87sng613iv.fsf@thingamy.net> <20010710101530.E18193@lenin.jamkit.com> Message-ID: <8766d1xhea.fsf@thingamy.net> [seb bacon] | Have you defined a 'view' action for the type? Either put it as a | mapping in the factory_type_information of your Type, or add it to | the actions tab in the TypesTool ZMI. I have. Thanks to Ulrich for showing me how to add it to the layers of the skins in the Properties-tab of the TypesTool. | there are a few places you could look: the factory_type_info has a | 'product' key which must correspond with your product module name, | and a 'factory' key. They're present. I found out what my mistake was: contentConstructors = ( Document.addDocument [...] NewsItemErik.NewsItemErik ) should've been contentConstructors = ( Document.addDocument [...] NewsItemErik.addNewsItemErik ) Ugh. I must be tired or something. From yokemay@apdip.net Tue Jul 10 10:58:53 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Tue, 10 Jul 2001 17:58:53 +0800 Subject: [Zope-CMF] Create Mailing List Message-ID: <002101c10926$edcfa460$175ebbca@apdip.net> hi, Will you please tell what are the procedures to create a mailing list for members to inform them on website updates? thanks. Rgds, Yoke May From erik@thingamy.net Tue Jul 10 12:44:11 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 13:44:11 +0200 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) Message-ID: <87vgl1vwj8.fsf@thingamy.net> Hi, guys. I've been browsing the archives after I couldn't figure out what to do/how to provide the content_hide_form after using the DCWorkFlow on one of my content types. It seems, from the comments in the archive (zope-cmf-archive, that is) that these skins are accidentally left out of the DCWorkFlow 0.2 release. Is this the case? If so, is there a 0.3 release comming our way with the missing skins, or should I create my own? From chrisw@nipltd.com Tue Jul 10 12:53:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 12:53:30 +0100 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) References: <87vgl1vwj8.fsf@thingamy.net> Message-ID: <3B4AECBA.15A79A86@nipltd.com> Erik Enge wrote: > > of the DCWorkFlow 0.2 release. Is this the case? If so, is there a > 0.3 release comming our way with the missing skins, or should I create > my own? Working from latest CVS checkouts is safest right now with the CMF... cheers, Chris From erik@thingamy.net Tue Jul 10 12:56:49 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 13:56:49 +0200 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) In-Reply-To: <3B4AECBA.15A79A86@nipltd.com> References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com> Message-ID: <87pub9vvy6.fsf@thingamy.net> [Chris Withers] | Working from latest CVS checkouts is safest right now with the | CMF... Ok, and DCWorkflow is included in the CMF-something-something module? By the way, do you know how/when a content type asks for what workflow belongs to it and what it supposed to be able to do next? From chrisw@nipltd.com Tue Jul 10 13:03:27 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 13:03:27 +0100 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com> <87pub9vvy6.fsf@thingamy.net> Message-ID: <3B4AEF0F.FF348CEC@nipltd.com> Erik Enge wrote: > > Ok, and DCWorkflow is included in the CMF-something-something module? The CMF module contains all things CMF-ish... > By the way, do you know how/when a content type asks for what workflow > belongs to it and what it supposed to be able to do next? Nope... but I have a feeling it happens the other way round... cheers, Chris From erik@thingamy.net Tue Jul 10 13:04:50 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 14:04:50 +0200 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) In-Reply-To: <3B4AEF0F.FF348CEC@nipltd.com> References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com> <87pub9vvy6.fsf@thingamy.net> <3B4AEF0F.FF348CEC@nipltd.com> Message-ID: <87lmlxvvkt.fsf@thingamy.net> [Chris Withers] | Nope... but I have a feeling it happens the other way round... Hm. I feel some sourcediving-urges coming on... :) I can't figure out how content and workflow is hooked together. 'review_state' for example; how is that related to a specific piece of content. *scuba-mode* From erik@thingamy.net Tue Jul 10 13:30:06 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 14:30:06 +0200 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) In-Reply-To: <87lmlxvvkt.fsf@thingamy.net> References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com> <87pub9vvy6.fsf@thingamy.net> <3B4AEF0F.FF348CEC@nipltd.com> <87lmlxvvkt.fsf@thingamy.net> Message-ID: <87g0c5vuep.fsf@thingamy.net> [Erik Enge] | I can't figure out how content and workflow is hooked together. | 'review_state' for example; how is that related to a specific piece | of content. *scuba-mode* I figured it out, in case you were wondering. :) PortalContent.py's manage_afterAdd() does some jugling to find the WorkflowTool and the workflow for that piece of content. After that we dance with notify*() methods of the Workflow and that seems to be the story for how content and workflow stays in sync. From chrisw@nipltd.com Tue Jul 10 13:39:16 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 13:39:16 +0100 Subject: [Zope-CMF] Proxy Roles to Skin Methods Message-ID: <3B4AF774.F792FB73@nipltd.com> Hi, I need to give a proxy role to FS-based skin methods. How do I do that? cheers, Chris From fm@synchrologic.com Tue Jul 10 14:03:51 2001 From: fm@synchrologic.com (Frank McGeough) Date: Tue, 10 Jul 2001 09:03:51 -0400 Subject: [Zope-CMF] To CMF or not to CMF References: <994724547.468.8.camel@basajaun> <994742862.5363.5.camel@locutus.libc.org> Message-ID: <038301c10940$c43fb170$c7010a0a@mcgeough> Just a little comment. The pre-built writers interface provided by CMF is worthless for people who are not programmers. My experience is that it confuses the heck out of them. The best you can say is that it works, not that it's useful for non-programmer types. Because it works it's easier to modify then trying to do the whole thing yourself. I am busy providing a custom interface to add news and events for a site I'm developing using CMF. ----- Original Message ----- From: "Bill Anderson" To: Sent: Tuesday, July 10, 2001 1:27 AM Subject: Re: [Zope-CMF] To CMF or not to CMF > With the CMF, you will get the good stuff up front, news, pre-built content-writer's > interface, preset permissions (review, etc.), and then, later when the feature creep > sets in, there is/will be more easily waiting. From ueck@net-labs.de Tue Jul 10 14:16:33 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Tue, 10 Jul 2001 15:16:33 +0200 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com><87pub9vvy6.fsf@thingamy.net> <3B4AEF0F.FF348CEC@nipltd.com><87lmlxvvkt.fsf@thingamy.net> <87g0c5vuep.fsf@thingamy.net> Message-ID: <01bb01c10942$8a3e1320$3300000a@work01> > > I figured it out, in case you were wondering. :) > > PortalContent.py's manage_afterAdd() does some jugling to find the > WorkflowTool and the workflow for that piece of content. After that > we dance with notify*() methods of the Workflow and that seems to be > the story for how content and workflow stays in sync. > yep thats the way i got it .. From seb@jamkit.com Tue Jul 10 15:02:39 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 15:02:39 +0100 Subject: [Zope-CMF] DCWorkflow; missing skins. (content_hide_form) In-Reply-To: <87g0c5vuep.fsf@thingamy.net>; from erik@thingamy.net on Tue, Jul 10, 2001 at 02:30:06PM +0200 References: <87vgl1vwj8.fsf@thingamy.net> <3B4AECBA.15A79A86@nipltd.com> <87pub9vvy6.fsf@thingamy.net> <3B4AEF0F.FF348CEC@nipltd.com> <87lmlxvvkt.fsf@thingamy.net> <87g0c5vuep.fsf@thingamy.net> Message-ID: <20010710150238.Q18193@lenin.jamkit.com> A bit more info to add which may be useful... the 'review_state' is just a catalog index. the WorkflowTool has a property, _chains_by_type, which you can use to 'chain' workflows together for a particular content type, like: tool._chains_by_type['FooPage']=('default_workflow','bar_workflow') (or of course you can put them in the ZMI version of the workflow tool). the 'notify*()' methods are called on each of the workflows in a chain, one by one. seb * Erik Enge [010710 13:34]: > [Erik Enge] > > | I can't figure out how content and workflow is hooked together. > | 'review_state' for example; how is that related to a specific piece > | of content. *scuba-mode* > > I figured it out, in case you were wondering. :) > > PortalContent.py's manage_afterAdd() does some jugling to find the > WorkflowTool and the workflow for that piece of content. After that > we dance with notify*() methods of the Workflow and that seems to be > the story for how content and workflow stays in sync. From jeff@janix.com Tue Jul 10 15:01:14 2001 From: jeff@janix.com (Jeff Sasmor) Date: Tue, 10 Jul 2001 10:01:14 -0400 Subject: [Zope-CMF] CMFOptions 1.11 release Message-ID: <00e501c10948$dae1f020$1a931340@NETKOOK> CMF Options 1.11 is released. It includes some bug fixes, (mostly minor), and upgrades the email notification feature for the Blark Weblog. CMFOptions adds three new content objects to the CMF: Images and Files that are stored in the filesystem rather than in the ZODB, and a Weblog type called Blark. Blark is a weblog, similar to Slashdot or Squishdot, but tailored for the CMF. You can see it work here: http://www.netkook.com" Netkook's front page is a Blark weblog, customized TOTALLY through the web. DownLoad! You can see it's info pages and download it here: http://www.zope.org/Members/jeffsasmor/CMFOptions" This product has been tested with Zope 2.3.2 and 2.3.3. CMF 1.1 is REQUIRED. CVS-up versions will not be supported for a while - I need a rest! Jeff Sasmor jeff@sasmor.com www.netkook.com is an "open Zope CMF site" From shane@digicool.com Tue Jul 10 15:09:50 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 10 Jul 2001 10:09:50 -0400 Subject: [Zope-CMF] invokeFactory query References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> Message-ID: <3B4B0CAE.86970623@digicool.com> Chris Withers wrote: > > seb bacon wrote: > > > > I think the current behaviour is probably OK for now. > > Yeah, so do I, I changed my mind :-) > > I now have a seperate skin method caleld addArticle: Yes, this is the right way to go! Requiring users to enter the ID is just a presentation detail and is meant to be changed as needed. There are several strategies lurking: - Make the user enter an ID. Great for programmers and others who fiddle with the URL bar directly. :-) - Generate the ID from a title. This is good and bad--there are fewer restrictions on what you can type, but it still doesn't eliminate the need to come up with a unique, descriptive name for a document before the document is written. - Generate the ID from the date and time. Zero effort for users and perfect for documents that don't change over time. - Generate the ID and force the document to start its life in the member's home directory. Force the user to enter a good ID at some point before allowing a workflow transition that moves the document to a public area. For many sites, I think this strategy will work best. It's just like using "File | New", writing the document, then selecting "File | Save As...". Note that you can select any of the above strategies just by changing skins and configuring workflow. Shane From chrisw@nipltd.com Tue Jul 10 15:17:40 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 15:17:40 +0100 Subject: [Zope-CMF] invokeFactory query References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> <3B4B0CAE.86970623@digicool.com> Message-ID: <3B4B0E84.7D6198AB@nipltd.com> Well, I've got a lot of mileage out of having the id computed from the Title. It's a no-brainer for users, you get meaningful URLs (quite important, IMNSHO), and you have to make your documents uniquely identifiable. This last bit is a distinct plus point for me ;-) Shane Hathaway wrote: > > - Generate the ID and force the document to start its life in the > member's home directory. Force the user to enter a good ID at some > point before allowing a workflow transition that moves the document to a > public area. For many sites, I think this strategy will work best. > It's just like using "File | New", writing the document, then selecting > "File | Save As...". Keeping this metaphor going, wouldn't it be great if there was a 'temporary storage' area (C:\temp ;-) that used ChrisM's RAM-based, non-versioning storage to keep this stuff in... cheers, Chris (now panicking to get ready for Berlin...) From erik@thingamy.net Tue Jul 10 15:26:10 2001 From: erik@thingamy.net (Erik Enge) Date: 10 Jul 2001 16:26:10 +0200 Subject: [Zope-CMF] invokeFactory query In-Reply-To: <3B4B0E84.7D6198AB@nipltd.com> References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> <3B4B0CAE.86970623@digicool.com> <3B4B0E84.7D6198AB@nipltd.com> Message-ID: <87ofqsvp19.fsf@thingamy.net> [Chris Withers] | Well, I've got a lot of mileage out of having the id computed from | the Title. It's a no-brainer for users, you get meaningful URLs | (quite important, IMNSHO), Can I ask why it's important? The way I see it: users don't care about the URI. If they want something useful that resembles it they could use a breadcrumb-thingy. I'd love to be mistaken, naturally :) From shane@digicool.com Tue Jul 10 15:31:31 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 10 Jul 2001 10:31:31 -0400 Subject: [Zope-CMF] Documenting DCWorkflow, an idea References: <994742195.5363.4.camel@locutus.libc.org> Message-ID: <3B4B11C3.E8ABC722@digicool.com> Bill Anderson wrote: > > I've been thinking about playing with teh DCWorkflow beta (alpha?). > it occurs to me a nice way of documenting it for we the current users of > CMF, is a how-to that build the same functionality as the default. that > way, the examples can be compared with known behaviours, providing much > less need for explanation. Good idea! (Using time machine) Done! :-) Using DCWorkflow from CVS (since it's still pre-1.0, CVS is really the only way to go anyway :-) ) visit a portal_workflow and add a 'Web-configurable workflow [default]' instance. It's a near-reincarnation of the default workflow. There are only a couple of changes. On a related note, I'd like to "pre-announce" the workflow project wiki. Amos is writing some great docs. http://dev.zope.org/Wikis/DevSite/Projects/Workflow/FrontPage Shane From chrisw@nipltd.com Tue Jul 10 15:40:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 15:40:10 +0100 Subject: [Zope-CMF] Meaningful URLs References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> <3B4B0CAE.86970623@digicool.com> <3B4B0E84.7D6198AB@nipltd.com> <87ofqsvp19.fsf@thingamy.net> Message-ID: <3B4B13CA.F01A705F@nipltd.com> Erik Enge wrote: > > [Chris Withers] > > | Well, I've got a lot of mileage out of having the id computed from > | the Title. It's a no-brainer for users, you get meaningful URLs > | (quite important, IMNSHO), > > Can I ask why it's important? I think this was in one of the original Zope presentations that Jim Fulton gave. Which gives more information: http://www.swishdot.org/2001/July/10/microsoftsucks/notheydont/wellithinktheydo http://www.squishdot.org/98881212/98881213/98881215 > The way I see it: users don't care about the URI. If they want > something useful that resembles it they could use a breadcrumb-thingy. > I'd love to be mistaken, naturally :) Well, my opinion is that users don't consciously care about the URL. However, ask Jon Udell, the more context you can get for the least effort, the easier people will find the system to use. URLs are the first port of call, so it makes good sense for them to be easily understandable... cheers, Chris From seb@jamkit.com Tue Jul 10 16:35:38 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 16:35:38 +0100 Subject: [Zope-CMF] invokeFactory query In-Reply-To: <3B4B0E84.7D6198AB@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 03:17:40PM +0100 References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> <3B4B0CAE.86970623@digicool.com> <3B4B0E84.7D6198AB@nipltd.com> Message-ID: <20010710163538.U18193@lenin.jamkit.com> * Chris Withers [010710 15:20]: > Well, I've got a lot of mileage out of having the id computed from the Title. > It's a no-brainer for users, you get meaningful URLs (quite important, IMNSHO), > and you have to make your documents uniquely identifiable. This last bit is a > distinct plus point for me ;-) Time for my customary emphatic agreement re. Titles :-) Users have to make unique names for things in everyday practice anyway. They certainly don't need to know about strange rules regarding allowed punctuation. I'd love to see the Zope ID rules hidden somehow in the default CMF implementation. They're so ugly and user-unfriendly. > > - Generate the ID and force the document to start its life in the > > member's home directory. Force the user to enter a good ID at some > > point before allowing a workflow transition that moves the document to a > > public area. For many sites, I think this strategy will work best. > > It's just like using "File | New", writing the document, then selecting > > "File | Save As...". I like this, but one problem with it is the UntitledDocumentN syndrome - lazy users often don't get round to naming things nicely. seb From norton@alum.mit.edu Tue Jul 10 16:25:30 2001 From: norton@alum.mit.edu (Joseph Wayne Norton) Date: Wed, 11 Jul 2001 00:25:30 +0900 Subject: [Zope-CMF] invokeFactory query In-Reply-To: <3B4B0CAE.86970623@digicool.com> References: <3B4AC29A.83EC504@nipltd.com> <20010710104250.J18193@lenin.jamkit.com> <3B4ACB7A.1EBBC86B@nipltd.com> <3B4B0CAE.86970623@digicool.com> Message-ID: <87n16c4xhx.wl@namaste.tokyo.att.ne.jp> Shane - Relating to id generation ... I made a small change to the factory method in my checked out version of CMF. This change allows the "add" method for a "CMF Type" to optionally compute the id if the id passed is None or ''. I'm also re-using a portion of the code used to generate session ids in the CoreSessionTracking product for id generation. - joe n =================================================================== RCS file: /cvs-repository/CMF/CMFCore/TypesTool.py,v retrieving revision 1.17 diff -r1.17 TypesTool.py 476c476,478 < apply(m, (id,) + args, kw) --- > mid = apply(m, (id,) + args, kw) > if mid is not None: > id = mid From chrisw@nipltd.com Tue Jul 10 16:35:58 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 16:35:58 +0100 Subject: [Zope-CMF] Event Notification Message-ID: <3B4B20DE.A7FD4BCE@nipltd.com> Hi, The new discussion tool implementation I'm working on requires its DiscussionNode objects to be notified whenever their associated objects are modified so they can get hold of their new metadata in the same way. How should I go about making this happen? cheers, Chris From seb@jamkit.com Tue Jul 10 17:31:45 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 17:31:45 +0100 Subject: [Zope-CMF] Event Notification In-Reply-To: <3B4B20DE.A7FD4BCE@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 04:35:58PM +0100 References: <3B4B20DE.A7FD4BCE@nipltd.com> Message-ID: <20010710173145.C18193@lenin.jamkit.com> * Chris Withers [010710 16:39]: > Hi, > > The new discussion tool implementation I'm working on requires its > DiscussionNode objects to be notified whenever their associated objects are > modified so they can get hold of their new metadata in the same way. > > How should I go about making this happen? Hmm, tricky to catch all circumstances. Something like a combination of the manage_after* hooks and a special DiscussionWorflow with a notifySuccess method which does its thing? Yuck, on second thoughts, maybe not. Don't have any bright ideas apart from that. Good luck! seb From arkaitz@euskalcom.net Tue Jul 10 17:11:59 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 10 Jul 2001 18:11:59 +0200 Subject: [Zope-CMF] STX in NewsItems Message-ID: <994781520.469.13.camel@basajaun> Hi, Is it possible to use STX for the bodies of the News Items? The NewsItem class uses 'html' as the format for the body. I've tried doing but this gives me a TypeError when rendering. Any hint? cheers, Arkaitz. From chrisw@nipltd.com Tue Jul 10 17:04:01 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 17:04:01 +0100 Subject: [Zope-CMF] Event Notification References: <3B4B20DE.A7FD4BCE@nipltd.com> <20010710173145.C18193@lenin.jamkit.com> Message-ID: <3B4B2771.CBF6EEC2@nipltd.com> seb bacon wrote: > > Hmm, tricky to catch all circumstances. Something like a combination > of the manage_after* hooks and a special DiscussionWorflow with a > notifySuccess method which does its thing? Yuck, on second thoughts, > maybe not. Don't have any bright ideas apart from that. Good luck! Idea off top of head: How about, in _createDiscussionForContent doing something (evil?) like: content._normal_edit = content.edit content.edit = discussion_edit where discussion_edit is defined as: def discussion_edit(content,*args,**kw): result = apply(content._normal_edit,args,kw) # do metadata stuff here return result Would that work? Is it wise? How would it break? Chris From arkbit@yahoo.com Tue Jul 10 17:22:15 2001 From: arkbit@yahoo.com (Arkaitz) Date: 10 Jul 2001 18:22:15 +0200 Subject: [Zope-CMF] STX in NewsItems In-Reply-To: <994781520.469.13.camel@basajaun> References: <994781520.469.13.camel@basajaun> Message-ID: <994782135.468.14.camel@basajaun> Sorry for replying to myself, the problem was that I was writing structured_text instead of structured-text. ^ ^ cheers, Arkaitz. On 10 Jul 2001 18:11:59 +0200, Arkaitz Bitorika wrote: > Hi, > > Is it possible to use STX for the bodies of the News Items? The NewsItem > class uses 'html' as the format for the body. I've tried doing > > > > but this gives me a TypeError when rendering. > Any hint? > > cheers, > Arkaitz. > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From seb@jamkit.com Tue Jul 10 17:57:08 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 17:57:08 +0100 Subject: [Zope-CMF] Event Notification In-Reply-To: <3B4B2771.CBF6EEC2@nipltd.com>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 05:04:01PM +0100 References: <3B4B20DE.A7FD4BCE@nipltd.com> <20010710173145.C18193@lenin.jamkit.com> <3B4B2771.CBF6EEC2@nipltd.com> Message-ID: <20010710175708.D18193@lenin.jamkit.com> * Chris Withers [010710 17:06]: > Idea off top of head: > > How about, in _createDiscussionForContent doing something (evil?) like: > > content._normal_edit = content.edit > content.edit = discussion_edit > > where discussion_edit is defined as: > > def discussion_edit(content,*args,**kw): > result = apply(content._normal_edit,args,kw) > # do metadata stuff here > return result Sounds OK to me. If you're doing that, though, you might as well use the notify* workflow methods and wrap every method you think is relevant as a WorkflowMethod. Apart from...there's a bug in the DefaultWorkflow which needs fixing, so perhaps not the best idea in Mad Panic situations. Shane, do you have any idea when you folks are going to have time to look at that Workflow bug? > Would that work? Don't see why not > Is it wise? Probably not but who cares ;-) seb From ueck@net-labs.de Tue Jul 10 17:44:14 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Tue, 10 Jul 2001 18:44:14 +0200 Subject: [Zope-CMF] I Patched CMF to use ZPatterns .. Message-ID: <028b01c1095f$8daaab00$3300000a@work01> Hi ZPatterns- and CMF-Fans, after long thoughts i tried to combine the best of CMF and ZPatterns and the result is astonishingly simple .. I made all modifications in CMFCore and had to touch only 3 files on a few (5 or so) places. 1. i subclassed PortalFolder directly from CustomizerFolder instead of OFS.Folder 2. i needed to modify skins_tool to coop with some ZPatterns magic 3. i subclassed PortalContent directly from DataSkin it worked :)) now one can use the CMF as is, except the freedom of storage and the usefullnes of Skinscript for certain Dataskins. Is anyone interested in this patch ?? Does anyone see some major incompatiblities between ZPatterns and CMF .. I haven't compared all attributes and methods of both .. so if anyone knows both and sees a potential problem .. please give me a note .. I'm not shure however, what format this should be distributed .. for unix a CMF-ZPatterns-Patch would probably be best .. other plattforms do not have this .. any comments ?? thanks for your audience Ulrich Eck net-labs From iford@US.NET Tue Jul 10 18:46:16 2001 From: iford@US.NET (Ian Ford) Date: Tue, 10 Jul 2001 10:46:16 -0700 Subject: [Zope-CMF] Question about Events Message-ID: <46A6138985C6DE478D28257DC769230F2118A0@usnet-ex01.USNET.CORP> I am looking at adding a item just like Events but it would allow users to enter timecard info and be stored just like Events. But my issues is that I keep getting errors when trying to create a new timecard. I pretty much barrowed the code from the Event.py for the structure of the timecard but as of right now I am pulling all my hair trying to figure out what is going on. These are the errors I am getting: Error Type: NameError Error Value: security Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable security. The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. =09 Traceback (innermost last): File C:\Zope\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: invokeFactory) File C:\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: invokeFactory) File C:\Zope\lib\python\Products\CMFCore\PortalFolder.py, line 368, in invokeFactory (Object: SkinsContainer) File C:\Zope\lib\python\Products\CMFCore\TypesTool.py, line 745, in constructContent (Object: Traversable) File C:\Zope\lib\python\Products\CMFCore\TypesTool.py, line 476, in constructInstance (Object: ElementWithAttributes) File C:\Zope\lib\python\Products\CMFTimeCard\TimeCard.py, line 74, in addTimeCard File C:\Zope\lib\python\Products\CMFTimeCard\TimeCard.py, line 136, in __init__ (Object: DynamicType) NameError: (see above) if anyone has any ideas let me know. Thanks Thank you, Ian Ford Web Development Northwest Link / us.net 800.390.1270 x 128 425.451.1151 x 128 From seb@jamkit.com Tue Jul 10 19:38:49 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 10 Jul 2001 19:38:49 +0100 Subject: [Zope-CMF] Question about Events In-Reply-To: <46A6138985C6DE478D28257DC769230F2118A0@usnet-ex01.USNET.CORP>; from iford@US.NET on Tue, Jul 10, 2001 at 10:46:16AM -0700 References: <46A6138985C6DE478D28257DC769230F2118A0@usnet-ex01.USNET.CORP> Message-ID: <20010710193848.D21871@lenin.jamkit.com> Here's how to decode the traceback... * Ian Ford [010710 18:50]: > Error Type: NameError > Error Value: security > File C:\Zope\lib\python\Products\CMFTimeCard\TimeCard.py, line 136, in > __init__ > (Object: DynamicType) > NameError: (see above) Python can't find an object referenced on line 136 of TimeCard.py, in the method called __init__, which is named 'security' (e.g. it doesn't exist) seb From dieter@handshake.de Tue Jul 10 19:07:28 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 10 Jul 2001 20:07:28 +0200 (CEST) Subject: [Zope-CMF] Checking if... In-Reply-To: <11204746D436D411A6F90004AC5396110D8473@EXCHSRVR1> References: <11204746D436D411A6F90004AC5396110D8473@EXCHSRVR1> Message-ID: <15179.17504.426013.826502@lindm.dm> James van der Veen writes: > .... > So now my question: > How can I make the link change depending on if there already exists a > stylesheet_properties in custom > (URL/custom/stylesheet_properties)and if not like them to the > stylesheet_properties of generic(URL/generic/stylesheet_properties) The link goes to a Python script thats, whether "custom" has the "stylesheet_properties" already. If not, it creates it first. Then it modifies the object. Checking is possible like this: try: style= context.custom['stylesheet_properties'] # it is already there except KeyError: # it is not yet there .... Dieter From chrisw@nipltd.com Tue Jul 10 18:49:22 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 18:49:22 +0100 Subject: [Zope-CMF] Default action Message-ID: <008501c1098c$df5a19e0$b5020a0a@Lifebook> If I traverse to: http://cmf.zope.org/folder/mycontent ...what determines the method that gets called on mycontent to return a result to the above? cheers, Chris From chrisw@nipltd.com Tue Jul 10 19:19:00 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 19:19:00 +0100 Subject: [Zope-CMF] MetaType in TypeInformation objects Message-ID: <008601c1098c$e0425700$b5020a0a@Lifebook> Hi, Is there any point (part from for causing confusion ;-) to the meta type box in TypeInformation objects? cheers, Chris From chrisw@nipltd.com Tue Jul 10 22:10:35 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 10 Jul 2001 22:10:35 +0100 Subject: [Zope-CMF] Secure filtering of content & workflow tool Message-ID: <008701c1098c$e13e9150$b5020a0a@Lifebook> Hi, Just wondering why I could view content that hadn't been approved as an anonymous user and then realised I'd taken the following chunk out of standard_html_header: I'm not using DCWorkflow yet but I thought the idea of a workflow tool was to make this kind of permission check unnecessary? ...I just checked DefaultWorkflow in CMFDefault, and updateRoleMappingsFor suggests that this content shouldn't be viewable, but it is! Can anyone comment on this? cheers, Chris (Oh yeah, also, is the Workflow tool going to handle all event notification, etc? I asked about this w.r.t. the discussion tool earlier and Seb suggested a workflow based solution. How feasible does that sound? If it's not, how should I be doing it?) From augusto@artlover.com Wed Jul 11 00:20:51 2001 From: augusto@artlover.com (Ausum) Date: Tue, 10 Jul 2001 18:20:51 -0500 Subject: [Zope-CMF] Portal Topics as items' metadata Message-ID: <3B4B8DD3.446346B4@artlover.com> How would you attach Portal Topics to standard items' metadata? I've been looking for a solution to the problem of automating a "related content" box to every portal object, and Portal Topics seem to be the answer. By allowing every portal object (text, image, or multimedia content) to trigger a keyword-based search to the whole portal archive, it looks pretty possible to count on this type of box, not simply as a textarea (as it was my first approach), but as a living thing. Just like high end content management systems. Would you please point me in the right direction to this purpose? Thanks in advance, Ausum From erik@thingamy.net Wed Jul 11 06:39:02 2001 From: erik@thingamy.net (Erik Enge) Date: 11 Jul 2001 07:39:02 +0200 Subject: [Zope-CMF] Default action In-Reply-To: <008501c1098c$df5a19e0$b5020a0a@Lifebook> References: <008501c1098c$df5a19e0$b5020a0a@Lifebook> Message-ID: <87bsmst47d.fsf@thingamy.net> [Chris Withers] | ...what determines the method that gets called on mycontent to | return a result to the above? I thought __call__() was always called, because index_html is set to None (and this is supposedly a hint to ZPublisher to use __call__). From chrisw@nipltd.com Wed Jul 11 07:18:42 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Jul 2001 07:18:42 +0100 Subject: [Zope-CMF] Default action References: <008501c1098c$df5a19e0$b5020a0a@Lifebook> <87bsmst47d.fsf@thingamy.net> Message-ID: <003501c109d1$57d31270$a8fe7ad5@withers> > [Chris Withers] > > | ...what determines the method that gets called on mycontent to > | return a result to the above? > > I thought __call__() was always called, because index_html is set to > None (and this is supposedly a hint to ZPublisher to use __call__). I may be mistaken, but I think PortalContent has it's own __call__ which finds the appropriate method to call and then calls that. I guess I should take a look at the source ;-) cheers, Chris From seb@jamkit.com Wed Jul 11 09:39:20 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 11 Jul 2001 09:39:20 +0100 Subject: [Zope-CMF] Portal Topics as items' metadata In-Reply-To: <3B4B8DD3.446346B4@artlover.com>; from augusto@artlover.com on Tue, Jul 10, 2001 at 06:20:51PM -0500 References: <3B4B8DD3.446346B4@artlover.com> Message-ID: <20010711093918.F21871@lenin.jamkit.com> You don't really need to use topics in this case. Topics are just catalog queries with a UI. You could simply iterate over an object's subject field and do a catalog query with the results. Note that since subject is a keyword index, if you want to OR the query, you'll need to concatenate the results of more than one query. If you don't know much about catalogs, have a look at the chapter about them in the Book, then search the skins for 'portal_catalog' to see how it's done there. i'd probably put it in a python script. seb * Ausum [010711 00:25]: > How would you attach Portal Topics to standard items' metadata? > I've been looking for a solution to the problem of automating a "related > content" box to every portal object, and Portal Topics seem to be the > answer. > > By allowing every portal object (text, image, or multimedia content) to > trigger a keyword-based search to the whole portal archive, it looks > pretty possible to count on this type of box, not simply as a textarea > (as it was my first approach), but as a living thing. Just like high end > content management systems. > > Would you please point me in the right direction to this purpose? > > Thanks in advance, > > > > Ausum From seb@jamkit.com Wed Jul 11 09:46:09 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 11 Jul 2001 09:46:09 +0100 Subject: [Zope-CMF] Default action In-Reply-To: <003501c109d1$57d31270$a8fe7ad5@withers>; from chrisw@nipltd.com on Wed, Jul 11, 2001 at 07:18:42AM +0100 References: <008501c1098c$df5a19e0$b5020a0a@Lifebook> <87bsmst47d.fsf@thingamy.net> <003501c109d1$57d31270$a8fe7ad5@withers> Message-ID: <20010711094609.I21871@lenin.jamkit.com> I presume you looked at the source, right? (short answer: it returns the first action from the actions list for which the user has appropriate permissions) seb * Chris Withers [010711 07:21]: > > [Chris Withers] > > > > | ...what determines the method that gets called on mycontent to > > | return a result to the above? > > > > I thought __call__() was always called, because index_html is set to > > None (and this is supposedly a hint to ZPublisher to use __call__). > > I may be mistaken, but I think PortalContent has it's own __call__ which > finds the appropriate method to call and then calls that. I guess I should > take a look at the source ;-) > > cheers, > > Chris From seb@jamkit.com Wed Jul 11 09:48:41 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 11 Jul 2001 09:48:41 +0100 Subject: [Zope-CMF] MetaType in TypeInformation objects In-Reply-To: <008601c1098c$e0425700$b5020a0a@Lifebook>; from chrisw@nipltd.com on Tue, Jul 10, 2001 at 07:19:00PM +0100 References: <008601c1098c$e0425700$b5020a0a@Lifebook> Message-ID: <20010711094841.J21871@lenin.jamkit.com> I always wondered about that. The whole type_name / meta_type disctinction causes me a lot of confusion, since it seems that the object's type name gets used like a meta_type most of the time. Can we be enlightened? seb * Chris Withers [010710 23:10]: > Hi, > > Is there any point (part from for causing confusion ;-) to the meta type box > in TypeInformation objects? > > cheers, > > Chris From seb@jamkit.com Wed Jul 11 09:51:01 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 11 Jul 2001 09:51:01 +0100 Subject: [Zope-CMF] I Patched CMF to use ZPatterns .. In-Reply-To: <028b01c1095f$8daaab00$3300000a@work01>; from ueck@net-labs.de on Tue, Jul 10, 2001 at 06:44:14PM +0200 References: <028b01c1095f$8daaab00$3300000a@work01> Message-ID: <20010711095100.K21871@lenin.jamkit.com> Hi Has ZPatterns got more understandable in the last 9 months? Is there a decent introduction somewhere? I'd love to find out more, but I never quite 'got' it... :-) seb * Ulrich Eck [010710 17:48]: > Hi ZPatterns- and CMF-Fans, > > after long thoughts i tried to combine the best of CMF and ZPatterns and the result is > astonishingly simple .. From steve@spvi.com Wed Jul 11 09:59:16 2001 From: steve@spvi.com (Steve Spicklemire) Date: Wed, 11 Jul 2001 03:59:16 -0500 Subject: [ZPatterns] Re: [Zope-CMF] I Patched CMF to use ZPatterns .. References: <028b01c1095f$8daaab00$3300000a@work01> <20010711095100.K21871@lenin.jamkit.com> Message-ID: <3B4C1564.7B98E09D@spvi.com> I can't vouch for their decency.. but I did put together some examples: http://www.zope.org/Members/sspickle/DumbZPatternsExample http://www.zope.org/Members/sspickle/SQLZPatternsExample1 http://www.zope.org/Members/sspickle/SQLZPatternsExample2 -steve seb bacon wrote: > > Hi > > Has ZPatterns got more understandable in the last 9 months? Is there > a decent introduction somewhere? I'd love to find out more, but I > never quite 'got' it... :-) > > seb > > * Ulrich Eck [010710 17:48]: > > Hi ZPatterns- and CMF-Fans, > > > > after long thoughts i tried to combine the best of CMF and ZPatterns and the result is > > astonishingly simple .. > > _______________________________________________ > ZPatterns mailing list > ZPatterns@eby-sarna.com > http://www.eby-sarna.com/mailman/listinfo/zpatterns From robert@redcor.ch Wed Jul 11 12:18:49 2001 From: robert@redcor.ch (Robert Rottermann) Date: Wed, 11 Jul 2001 13:18:49 +0200 Subject: [Zope-CMF] CVS down ?? Message-ID: <012401c109fb$429273e0$0a01a8c0@stravinsky> This is a multi-part message in MIME format. ------=_NextPart_000_0121_01C10A0C.05D699C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Friends, CVS seems to be down. Robert ------=_NextPart_000_0121_01C10A0C.05D699C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Friends,
CVS seems to be down.
 
Robert
------=_NextPart_000_0121_01C10A0C.05D699C0-- From tseaver@palladion.com Wed Jul 11 12:05:31 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 07:05:31 -0400 Subject: [Zope-CMF] CVS down ?? References: <012401c109fb$429273e0$0a01a8c0@stravinsky> Message-ID: <3B4C32FB.20108@palladion.com> Robert Rottermann wrote: > CVS seems to be down. This just worked for me: cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository co CMF Tres. -- ============================================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 11 12:18:13 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 07:18:13 -0400 Subject: [Zope-CMF] MetaType in TypeInformation objects References: <008601c1098c$e0425700$b5020a0a@Lifebook> <20010711094841.J21871@lenin.jamkit.com> Message-ID: <3B4C35F5.1070208@palladion.com> seb bacon wrote: > I always wondered about that. The whole type_name / meta_type disctinction > causes me a lot of confusion, since it seems that the object's type > name gets used like a meta_type most of the time. > > Can we be enlightened? The metatype is there for times when we need to know the true metatype (e.g., when building lists for the "Find" tab of the catalog; when filtering 'objectValues', etc.) Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From seb@jamkit.com Wed Jul 11 13:34:17 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 11 Jul 2001 13:34:17 +0100 Subject: [Zope-CMF] MetaType in TypeInformation objects In-Reply-To: <3B4C35F5.1070208@palladion.com>; from tseaver@palladion.com on Wed, Jul 11, 2001 at 07:18:13AM -0400 References: <008601c1098c$e0425700$b5020a0a@Lifebook> <20010711094841.J21871@lenin.jamkit.com> <3B4C35F5.1070208@palladion.com> Message-ID: <20010711133417.A24387@lenin.jamkit.com> * Tres Seaver [010711 12:47]: > The metatype is there for times when we need to know the true metatype > > (e.g., when building lists for the "Find" tab of the catalog; when > filtering 'objectValues', etc.) Ok, so would it be bad to set the meta_type to the type name rather than expose both in the UI? seb From tseaver@palladion.com Wed Jul 11 12:36:34 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 07:36:34 -0400 Subject: [Zope-CMF] Secure filtering of content & workflow tool References: <008701c1098c$e13e9150$b5020a0a@Lifebook> Message-ID: <3B4C3A42.9030104@palladion.com> Chris Withers wrote: > Just wondering why I could view content that hadn't been approved as an > anonymous user and then realised I'd taken the following chunk out of > standard_html_header: > > isEffective( ZopeTime() )"> > or portal_membership.checkPermission('Review portal > content',this())"> > > > > > I'm not using DCWorkflow yet but I thought the idea of a workflow tool was > to make this kind of permission check unnecessary? This check doesn't involve workflow state at all; it enforces the "effective range" of the content. Only the owner and those with 'Review portal content' permission are supposed to be able to view a piece of content outside of its effective range, regardless of the workflow state. > ...I just checked DefaultWorkflow in CMFDefault, and updateRoleMappingsFor > suggests that this content shouldn't be viewable, but it is! I can't reproduce this on a stock CMF site; content which is private or pending review can't be viewed by anonymous. > > Can anyone comment on this? > > cheers, > > Chris > > (Oh yeah, also, is the Workflow tool going to handle all event notification, > etc? I asked about this w.r.t. the discussion tool earlier and Seb suggested > a workflow based solution. How feasible does that sound? If it's not, how > should I be doing it?) The "event tool" proposal is a more general solution, likely to be implemented for the next release of CMF: http://cmf.zope.org/rqmts/proposals/EventsTool Tres.=============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From robert@redcor.ch Wed Jul 11 13:15:39 2001 From: robert@redcor.ch (Robert Rottermann) Date: Wed, 11 Jul 2001 14:15:39 +0200 Subject: [Zope-CMF] CVS down ?? References: <012401c109fb$429273e0$0a01a8c0@stravinsky> <3B4C32FB.20108@palladion.com> Message-ID: <013601c10a03$3309e270$0a01a8c0@stravinsky> on my windoze I get a timeout error, linux waits and waits .... So I wonder where's the problem then. Robert ----- Original Message ----- From: "Tres Seaver" To: "Robert Rottermann" Cc: Sent: Wednesday, July 11, 2001 1:05 PM Subject: Re: [Zope-CMF] CVS down ?? > Robert Rottermann wrote: > > > CVS seems to be down. > > > This just worked for me: > > cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository co CMF > > Tres. > -- > ============================================================================ == > Tres Seaver > tseaver@digicool.com > Digital Creations "Zope Dealers" > http://www.zope.org > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From arkbit@yahoo.com Wed Jul 11 13:35:20 2001 From: arkbit@yahoo.com (Arkaitz) Date: 11 Jul 2001 14:35:20 +0200 Subject: [Zope-CMF] To CMF or not to CMF In-Reply-To: <994742862.5363.5.camel@locutus.libc.org> References: <994724547.468.8.camel@basajaun> <994742862.5363.5.camel@locutus.libc.org> Message-ID: <994854920.6252.1.camel@basajaun> On 09 Jul 2001 23:27:42 -0600, Bill Anderson wrote: > Another reason, is that through judicious use of the Scriptable Types interface > in the types tool, you can easily, and I mean easily, make different types of > standard documents, such as Article, review, howTo, etc. with little effort > and easy searching. Thanks for telling me about this! Isn't this something similar to ZClasses but better ;-)? It seems to be really easy to create new types. I have just a doubt, in the portal_types tool, there are two types of objects that you can add, "Factory-based Type Information" and "Scriptable Type Information". At first look, they seem to have the same functionality, which is the difference between them? cheers, Arkaitz. From tseaver@palladion.com Wed Jul 11 14:23:42 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 09:23:42 -0400 (EDT) Subject: [Zope-CMF] MetaType in TypeInformation objects In-Reply-To: <20010711133417.A24387@lenin.jamkit.com> Message-ID: On Wed, 11 Jul 2001, seb bacon wrote: > * Tres Seaver [010711 12:47]: > > The metatype is there for times when we need to know the true metatype > > > > (e.g., when building lists for the "Find" tab of the catalog; when > > filtering 'objectValues', etc.) > > Ok, so would it be bad to set the meta_type to the type name rather > than expose both in the UI? Nope, because they aren't always the same. Suppose I want to create a new content type, "Press Release", which is actually a CMFDefault.Document under the covers, but which has different actions / skins / workflow / metdata policies, etc. In this case, the metatype would still be "Document", but the ID of the type object would be "Press Release". Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 11 14:25:05 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 09:25:05 -0400 (EDT) Subject: [Zope-CMF] CVS down ?? In-Reply-To: <013601c10a03$3309e270$0a01a8c0@stravinsky> Message-ID: On Wed, 11 Jul 2001, Robert Rottermann wrote: > on my windoze I get a timeout error, linux waits and waits .... > So I wonder where's the problem then. I would guess that "net weather" is preventing you from connecting; can you ping 'cvs.zope.org'? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Wed Jul 11 14:24:09 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Jul 2001 14:24:09 +0100 (BST) Subject: [Zope-CMF] MetaType in TypeInformation objects In-Reply-To: <3B4C35F5.1070208@palladion.com> References: <008601c1098c$e0425700$b5020a0a@Lifebook> <20010711094841.J21871@lenin.jamkit.com> <3B4C35F5.1070208@palladion.com> Message-ID: <994857849.3b4c537988a68@webmail.nipltd.com> Quoting Tres Seaver : > The metatype is there for times when we need to know the true metatype > > (e.g., when building lists for the "Find" tab of the catalog; when > filtering 'objectValues', etc.) Yeah, I kindof figured this after being bitten quite hard when I set the value in that box to something else and couldn't figure out why none of my content was showing up in Folder views :-S Okay, I can understand why ScriptableTypeInfo objects needs this (even though it is a bit clunky...), but why can't FTI's just inspect the product they know they're going to use to create the object? cheers, Chris From tseaver@palladion.com Wed Jul 11 14:27:19 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 09:27:19 -0400 (EDT) Subject: [Zope-CMF] To CMF or not to CMF In-Reply-To: <994854920.6252.1.camel@basajaun> Message-ID: On 11 Jul 2001, Arkaitz wrote: > On 09 Jul 2001 23:27:42 -0600, Bill Anderson wrote: > > Another reason, is that through judicious use of the > > Scriptable Types interface in the types tool, you can easily, > > and I mean easily, make different types of standard > > documents, such as Article, review, howTo, etc. with little > > effort and easy searching. > > Thanks for telling me about this! Isn't this something similar to > ZClasses but better ;-)? It seems to be really easy to create new types. > > I have just a doubt, in the portal_types tool, there are two types of > objects that you can add, "Factory-based Type Information" and > "Scriptable Type Information". At first look, they seem to have the same > functionality, which is the difference between them? See my "Taming the Wild Types Tool", http://cmf.zope.org/Members/tseaver/how_tos/taming_types_tool for an explanation of the differences. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From erik@thingamy.net Wed Jul 11 15:20:38 2001 From: erik@thingamy.net (Erik Enge) Date: 11 Jul 2001 16:20:38 +0200 Subject: [Zope-CMF] CVS down ?? References: Message-ID: <871ynnsg21.fsf@thingamy.net> [Tres Seaver] | I would guess that "net weather" is preventing you from connecting; | can you ping 'cvs.zope.org'? I can ping, but I can't checkout, either. I thought it was because of the network I'm on, but maybe the problem is elsewhere... erik@somewhere:~/development$ cvs -d :pserver:anonymous@cvs.zope.org:/cvsroot co CMF cvs [checkout aborted]: connect to cvs.zope.org(209.67.167.110):2401 failed: Connection timed out erik@somewhere:~/development$ From robert@redcor.ch Wed Jul 11 16:15:42 2001 From: robert@redcor.ch (Robert Rottermann) Date: Wed, 11 Jul 2001 17:15:42 +0200 Subject: [Zope-CMF] CVS down ?? References: Message-ID: <001001c10a1c$5a3a0b40$0a01a8c0@stravinsky> No, however if I log into a remote machine (which is on an other net) everything works fine. ja, the wonders of computing .. RR ----- Original Message ----- From: "Tres Seaver" To: "Robert Rottermann" Cc: Sent: Wednesday, July 11, 2001 3:25 PM Subject: Re: [Zope-CMF] CVS down ?? > On Wed, 11 Jul 2001, Robert Rottermann wrote: > > > on my windoze I get a timeout error, linux waits and waits .... > > So I wonder where's the problem then. > > I would guess that "net weather" is preventing you from connecting; > can you ping 'cvs.zope.org'? > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From arkaitz@euskalcom.net Wed Jul 11 17:25:48 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 11 Jul 2001 18:25:48 +0200 Subject: [Zope-CMF] disabling syndication Message-ID: <994868751.6313.4.camel@basajaun> Hi, Even though I have disabled syndication in the portal_syndication tool, the "Syndication" link keeps appearing in the action box all the time. Is there a simple way of making that link "hide" until syndication is enabled again? Cheers, Arkaitz. From tseaver@palladion.com Wed Jul 11 17:24:06 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 11 Jul 2001 12:24:06 -0400 (EDT) Subject: [Zope-CMF] CVS down ?? In-Reply-To: <871ynnsg21.fsf@thingamy.net> Message-ID: On 11 Jul 2001, Erik Enge wrote: > [Tres Seaver] > > | I would guess that "net weather" is preventing you from connecting; > | can you ping 'cvs.zope.org'? > > I can ping, but I can't checkout, either. I thought it was because of > the network I'm on, but maybe the problem is elsewhere... > > erik@somewhere:~/development$ cvs -d :pserver:anonymous@cvs.zope.org:/cvsroot co CMF Minor quibble: the last component of the '-d' argument should b ':cvs-repository', not ':cvsroot'. > cvs [checkout aborted]: connect to cvs.zope.org(209.67.167.110):2401 failed: Connection timed out > erik@somewhere:~/development$ Could be a firewall problem? Perhaps the IP address of cvs.zope.org has changed recently, and your firewall needs to be updated? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From klm@digicool.com Wed Jul 11 17:51:05 2001 From: klm@digicool.com (Ken Manheimer) Date: Wed, 11 Jul 2001 12:51:05 -0400 (EDT) Subject: [Zope-CMF] Zope repository changing tomorrow, will affect CMF checkouts! Message-ID: Hopefully most of you have seen the announcements to zope-announce about the impeding reformulation of the public Zope repository. This reorganization is going to affect the CMF section of the repository substantially, to the degree that you will have to do a new checkout of the CMF to continue to track changes. (This is because we are reforming the CMF section into a module, to better integrate it with the overall repository organization.) I'm sorry about the short notice on this specific point - in handling the myriad details of the reorganization, i recognized this only lately. To all our benefit, i think this repository integration will be promote better incorporation of the CMF with Zope. The repository reorganization is a major step on the road to enabling public checkin access at our discretion - something i think will be good for Zope and CMF development, in general. See http://dev.zope.org/Wikis/DevSite/Projects/ZopeCVSMigration/CurrentStatus for current status of the CVS migration project. Let me know if you have any questions or comments. Ken Manheimer klm@digicool.com From andrew@digicool.com Wed Jul 11 18:37:54 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Wed, 11 Jul 2001 13:37:54 -0400 Subject: [Zope-CMF] disabling syndication In-Reply-To: <994868751.6313.4.camel@basajaun> Message-ID: At this point no; this was desired, but there was no easy way to implement this behavior at the time. This will change soon hopefully. Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Arkaitz Bitorika > Sent: Wednesday, July 11, 2001 12:26 PM > To: zope-cmf@zope.org > Subject: [Zope-CMF] disabling syndication > > > Hi, > > Even though I have disabled syndication in the portal_syndication tool, > the "Syndication" link keeps appearing in the action box all the time. > Is there a simple way of making that link "hide" until syndication is > enabled again? > > Cheers, > Arkaitz. > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From augusto@artlover.com Wed Jul 11 19:52:39 2001 From: augusto@artlover.com (Ausum) Date: Wed, 11 Jul 2001 13:52:39 -0500 Subject: [Zope-CMF] Dublin Core's Relation implementation was:(Portal Topics as items' metadata) References: <3B4B8DD3.446346B4@artlover.com> <20010711093918.F21871@lenin.jamkit.com> Message-ID: <3B4CA077.1EEABA8F@artlover.com> Just after posting my previous message I read more about this subject. If I'm not wrong, it looks like DC's Relation element is still a work in progress, and that a simple identifier (URL, URN, etc) is recommended for this label, by the DCMI. I think that within the context of the CMF, the Relation element, IMHO, should be understood as one object's engine, and not just as a collection of identifiers. Your idea, Seb, is good, but I think that without the aid of artificial intelligence tools (which high-end CMSs do have), every related resource must be found after an adjusted search, at a per-object basis. As I see it (considering all the previous), a good "related info" box should contain "stuck", previouly approved resources, and "floating" resources as well. And all this seem to need a user interface. So the question still remains. How would you attach a Portal Topic to a portal resource, as metadata? Thanks again, Ausum seb bacon wrote: > > You don't really need to use topics in this case. Topics are just > catalog queries with a UI. You could simply iterate over an object's > subject field and do a catalog query with the results. Note that > since subject is a keyword index, if you want to OR the query, you'll > need to concatenate the results of more than one query. If you don't > know much about catalogs, have a look at the chapter about them in the > Book, then search the skins for 'portal_catalog' to see how it's done > there. i'd probably put it in a python script. > > seb > > * Ausum [010711 00:25]: > > How would you attach Portal Topics to standard items' metadata? > > I've been looking for a solution to the problem of automating a "related > > content" box to every portal object, and Portal Topics seem to be the > > answer. > > > > By allowing every portal object (text, image, or multimedia content) to > > trigger a keyword-based search to the whole portal archive, it looks > > pretty possible to count on this type of box, not simply as a textarea > > (as it was my first approach), but as a living thing. Just like high end > > content management systems. > > > > Would you please point me in the right direction to this purpose? > > > > Thanks in advance, > > > > > > > > Ausum > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From iford@US.NET Wed Jul 11 23:38:09 2001 From: iford@US.NET (Ian Ford) Date: Wed, 11 Jul 2001 15:38:09 -0700 Subject: [Zope-CMF] Data not being stored Message-ID: <46A6138985C6DE478D28257DC769230F40B5AE@usnet-ex01.USNET.CORP> > I have a product that I am working on that works in the same manor as > events but it stores members timecard information. I have reused most > of the code from the CMFCalendar item. But what is now happing is that > only 3 form fields are being stored and I really need all of them. I > am not getting any sort of error so debugging is not that easy. >=20 > the fields I am trying to store are as follows: >=20 > date > actual_hours_worked > hours_worked > scheduled_pto > unscheduled_pto > fmla_hours > holiday_hours > scheduled_hours > total_hours >=20 > The only ones that are being stored are actual_hours_worked , date, > and hours_worked. >=20 > I have checked to see if the form field names are different from those > in the py scripts and they are not. > If anyone has any ideas that could help I would it would be very > appreciated. >=20 > Thank you, >=20 > Ian Ford >=20 From bill@libc.org Wed Jul 11 23:41:04 2001 From: bill@libc.org (Bill Anderson) Date: 11 Jul 2001 16:41:04 -0600 Subject: [Zope-CMF] To CMF or not to CMF In-Reply-To: <038301c10940$c43fb170$c7010a0a@mcgeough> References: <994724547.468.8.camel@basajaun> <994742862.5363.5.camel@locutus.libc.org> <038301c10940$c43fb170$c7010a0a@mcgeough> Message-ID: <994891264.3585.0.camel@locutus.libc.org> On 10 Jul 2001 09:03:51 -0400, Frank McGeough wrote: > > Just a little comment. The pre-built writers interface provided by CMF is > worthless for people who are not programmers. My experience is that it > confuses the heck out of them. The best you can say is that it works, not > that it's useful for non-programmer types. Because it works it's easier to Uhh, sorry, but I have literally hundreds of people over here who are not programmers, and find it very easy to use. I have people who are, for the most part, computer illiterate, that love the interface for it's simplicity. In fact, I frequently get comments on how it is easier than their word processor, or other things they have used. I have people dropping their usage of FrontPage, because they find entering their text in a field, and following some basic structuring rules that they use anyway (such as empty lines separating paragraphs, and indentation for section differentiation), easier, and faster than the editors they are used to (except, of course, those that use gvim, where it gets even easier with autindenting). To say that because some of the people you know do not like the defalt interface is one thing, but to extrapolate from there that is is worthless to non-programmers is to ignore much evidence to the contrary. Bill Anderson From robert@redcor.ch Thu Jul 12 07:29:59 2001 From: robert@redcor.ch (Robert Rottermann) Date: Thu, 12 Jul 2001 08:29:59 +0200 Subject: [Zope-CMF] How to save extra data with CMF-object Message-ID: <002901c10a9c$137c6560$a9a4023e@karin> Hi there, what would be the best way to save extra data with a CMF object. I would like to have my own type created with the portal_types tool. Next to the standard metadata I would like to save some extra information. Do I have to "misuse" one of the standard metadata fields I do not need, or is there an other way to go. thanks Robert From erik@thingamy.net Thu Jul 12 08:14:31 2001 From: erik@thingamy.net (Erik Enge) Date: 12 Jul 2001 09:14:31 +0200 Subject: [Zope-CMF] Boring CMF Product. Message-ID: <87lmlupqjs.fsf@thingamy.net> Hi, CMFistas. Is there a Boring Product with a Boring How-To out there? If not, should I write one - or is the API changing all the time, so my efforts would be wasted? From seb@jamkit.com Thu Jul 12 09:29:58 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 12 Jul 2001 09:29:58 +0100 Subject: [Zope-CMF] Data not being stored In-Reply-To: <46A6138985C6DE478D28257DC769230F40B5AE@usnet-ex01.USNET.CORP>; from iford@US.NET on Wed, Jul 11, 2001 at 03:38:09PM -0700 References: <46A6138985C6DE478D28257DC769230F40B5AE@usnet-ex01.USNET.CORP> Message-ID: <20010712092957.E24387@lenin.jamkit.com> Things to check which catch me out most times: - Have you specified all the fields as parameters at the top of the python script? - Look out for rogue keyword arguments which overwrite the values you've specified - Try removing the try clause from the pythonscript to see if there's any errors hanging around - Failing that, use the debugger http://www.zope.org/Members/klm/debuggingzope/#zserverdebugmode http://www.zope.org/Wikis/klm/PDBTrack seb * Ian Ford [010711 23:43]: > > I have a product that I am working on that works in the same manor as > > events but it stores members timecard information. I have reused most > > of the code from the CMFCalendar item. But what is now happing is that > > only 3 form fields are being stored and I really need all of them. I > > am not getting any sort of error so debugging is not that easy. From seb@jamkit.com Thu Jul 12 09:54:48 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 12 Jul 2001 09:54:48 +0100 Subject: [Zope-CMF] Dublin Core's Relation implementation was:(Portal Topics as items' metadata) In-Reply-To: <3B4CA077.1EEABA8F@artlover.com>; from augusto@artlover.com on Wed, Jul 11, 2001 at 01:52:39PM -0500 References: <3B4B8DD3.446346B4@artlover.com> <20010711093918.F21871@lenin.jamkit.com> <3B4CA077.1EEABA8F@artlover.com> Message-ID: <20010712095447.F24387@lenin.jamkit.com> Hi, * Ausum [010711 19:52]: > Just after posting my previous message I read more about this subject. > If I'm not wrong, it looks like DC's Relation element is still a work in > progress, and that a simple identifier (URL, URN, etc) is recommended > for this label, by the DCMI. > > I think that within the context of the CMF, the Relation element, IMHO, > should be understood as one object's engine, and not just as a > collection of identifiers. Yes, I would have guessed that the best way of doing the Relation element would be to dynamically generate it using something like ken's OrganisationObjects[1], since URIs are liable to change. > Your idea, Seb, is good, but I think that > without the aid of artificial intelligence tools (which high-end CMSs do > have), every related resource must be found after an adjusted search, at > a per-object basis. When you say 'artificial intelligence' are you referring to things like Autonomy? Autonomy make a big song and dance about their Dynamic Reasoning Engine, but really it's just a decent search engine with automatic document retrieval and index discovery. Ultimately, you're always looking at an 'adjusted search' of some kind. And as I mentioned, a Topic *is* just a catalog search. > As I see it (considering all the previous), a good > "related info" box should contain "stuck", previouly approved resources, > and "floating" resources as well. And all this seem to need a user > interface. > > So the question still remains. How would you attach a Portal Topic to a > portal resource, as metadata? If I understand you correctly, you want to be able to have a list which is made up both of dynamically retrieved, query-based data, and a manually updated list. Topics won't give you this, since they are basically catalog queries, and that's it. In order to add static references to objects which are liable to move at any point, you'll need to implement some kind of reference storage. This could be a catalog which indexes objects by a unique identifier, or something more sophisticated which plays with the not-yet-developed EventsTool. Or wait for an OrganisationObjects implementation ;-) For the query part, you could add a Topic to the DefaultDublinCoreImpl, and move the elements of its interface over into the metadata_edit_form. You'd add a couple of get and set methods, the get method returning the results of the topic's catalog query. I can't think of a simple way of doing it off the top of my head. I'd be tempted to ignore Topics and write my own version. Hopefully someone else will have a better idea :-) seb [1] http://cmf.zope.org/rqmts/proposals/OrganizationObjects From gitte@mmmanager.org Thu Jul 12 09:57:59 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 12 Jul 2001 10:57:59 +0200 Subject: [Zope-CMF] Boring CMF Product. In-Reply-To: <87lmlupqjs.fsf@thingamy.net> References: <87lmlupqjs.fsf@thingamy.net> Message-ID: <01071210580000.02799@squidbitch.mmmanager.org> On Thursday 12 July 2001 09:14, Erik Enge wrote: > Hi, CMFistas. > > Is there a Boring Product with a Boring How-To out there? If not, > should I write one - or is the API changing all the time, so my > efforts would be wasted? > What do you mean by Boring Product ? An "How to write a new CMF product" ??? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: I wrote code that works. I didn't test it, but the discussion is closed. It might have syntactic problems, but it does work. Better than any kernel extension ever would. End of story. - Linus Torvalds From erik@thingamy.net Thu Jul 12 10:19:42 2001 From: erik@thingamy.net (Erik Enge) Date: 12 Jul 2001 11:19:42 +0200 Subject: [Zope-CMF] Boring CMF Product. In-Reply-To: <01071210580000.02799@squidbitch.mmmanager.org> References: <87lmlupqjs.fsf@thingamy.net> <01071210580000.02799@squidbitch.mmmanager.org> Message-ID: <87g0c2pkr5.fsf@thingamy.net> [Gitte Wange] | What do you mean by Boring Product ? An "How to write a new CMF | product" ??? Yes. That explains the API in examples. From yokemay@apdip.net Thu Jul 12 11:08:38 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Thu, 12 Jul 2001 18:08:38 +0800 Subject: [Zope-CMF] Advanced Search not working Message-ID: <003401c10aba$9f86f020$175ebbca@apdip.net> Hi, I was wanted to search an item from the Advanced search (i.e. search_form). The item is already published on the site. I entered the full text and for the review state, i selected Published. The search results found 0 result. When I entered the full text without other criterias, I found 1 result. What could be the problem? Please enlighten me. Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net Tel: +603-2559122 ext. 2206 Fax: +603-2539740 Mobile: +6016-2837395 ICQ: 321345 From Eric.Criens@bece.nl Thu Jul 12 12:50:58 2001 From: Eric.Criens@bece.nl (Eric Criens) Date: Thu, 12 Jul 2001 13:50:58 +0200 Subject: [Zope-CMF] Help please Message-ID: <97942DE63451D511A9C40010B545875327C680@SERVER06> Excuse my ignorance but I'm just beginning. Have Zope 2.3.3 installed locally on my laptop NT and asked my IT dept. to install CMF and CMF Demo. They told me it was for Linux but I couldn't find anything about this in the documentation. Am I nuts or is my IT dept.? Also is there any place were I can find sample web sites tht show how to use Zope as a admin pages like RedDot Content Mangement System so that I can learn from examples.... Thank you very much, regards, Eric Criens From jon@pcgs.freeserve.co.uk Thu Jul 12 13:16:08 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Thu, 12 Jul 2001 13:16:08 +0100 Subject: [Zope-CMF] RE: Our CMF-CMS Demo In-Reply-To: Message-ID: > > If anyone wants to play with it, I've put a demo online here - > > http://www.pricom.co.uk/southhumber Just a quick note to say I'll be taking down this demo today, in order to convert our site to CMF 1.1 Thanks very much to everyone who gave comments and feedback! For those who asked about the code, we plan to open-source it soon. We're in the process of setting up a project-site, mailing-list and so on. Cheers, Jon From erik@thingamy.net Thu Jul 12 13:14:25 2001 From: erik@thingamy.net (Erik Enge) Date: 12 Jul 2001 14:14:25 +0200 Subject: [Zope-CMF] CVS down ?? In-Reply-To: References: Message-ID: <87u20iny3i.fsf@thingamy.net> [Tres Seaver] | Could be a firewall problem? Yeah, looks like it. Can't use Jabber, either. From seb@jamkit.com Thu Jul 12 14:11:32 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 12 Jul 2001 14:11:32 +0100 Subject: [Zope-CMF] Help please In-Reply-To: <97942DE63451D511A9C40010B545875327C680@SERVER06>; from Eric.Criens@bece.nl on Thu, Jul 12, 2001 at 01:50:58PM +0200 References: <97942DE63451D511A9C40010B545875327C680@SERVER06> Message-ID: <20010712141131.I27543@lenin.jamkit.com> * Eric Criens [010712 12:56]: > Excuse my ignorance but I'm just beginning. Have Zope 2.3.3 installed > locally on my laptop NT and asked my IT dept. to install CMF and CMF Demo. > They told me it was for Linux but I couldn't find anything about this in the > documentation. Am I nuts or is my IT dept.? They're nuts. All of the CMF is python and therefore as platform neutral as Zope. > Also is there any place were I can find sample web sites tht show how to use > Zope as a admin pages like RedDot Content Mangement System so that I can > learn from examples.... Not really. Look in the archives for CMS discussions. The CMF is more document-centered than template-centered. There are a number of proposals / vague ideas to remedy this but none are likely to surface immediately. I've never look at them but there are some Zope products which purport to do this kind of thing, Projektor and MetaPublisher. The canonical example of CMF usage comes with the CMF; it's the CMFDefault site. You'll find a little documentation at cmf.zope.org, but for the rest you should search the list archives etc. seb From jon@pcgs.freeserve.co.uk Thu Jul 12 14:23:53 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Thu, 12 Jul 2001 14:23:53 +0100 Subject: [Zope-CMF] Java WYSIWYG editor Message-ID: via another list - http://www.hexidec.com/ekit.html "Ekit is a program & applet that uses the Java 2 libraries to create an HTML editor. The Ekit standalone also allows for HTML to be loaded and saved, as well as serialized and saved as an RTF. It is currently a beta, though many features work fine." Any java gurus out there? :-) Cheers, Jon From jccooper@rice.edu Thu Jul 12 14:45:31 2001 From: jccooper@rice.edu (J. Cameron Cooper) Date: Thu, 12 Jul 2001 08:45:31 -0500 Subject: [Zope-CMF] Help please References: <97942DE63451D511A9C40010B545875327C680@SERVER06> <20010712141131.I27543@lenin.jamkit.com> Message-ID: <3B4DA9FB.4080501@rice.edu> > > >The canonical example of CMF usage comes with the CMF; it's the >CMFDefault site. You'll find a little documentation at cmf.zope.org, >but for the rest you should search the list archives etc. > Is there a way to see the source to the dogbowl site? If not, there should be, and if there is, it should be more transparent. Maybe a "View DTML Source" like on Zope.org. Or read-only access to the ZMI. --jcc From seb@jamkit.com Thu Jul 12 16:49:38 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 12 Jul 2001 16:49:38 +0100 Subject: [Zope-CMF] Java WYSIWYG editor In-Reply-To: ; from jon@pcgs.freeserve.co.uk on Thu, Jul 12, 2001 at 02:23:53PM +0100 References: Message-ID: <20010712164937.J27543@lenin.jamkit.com> A quick note: a problem with Java in applets is that really needs to be 1.1 to ensure browser compatibility, AFAIK seb * Jon Edwards [010712 14:27]: > via another list - http://www.hexidec.com/ekit.html > > "Ekit is a program & applet that uses the Java 2 libraries to create an HTML > editor. The Ekit standalone also allows for HTML to be loaded and saved, as > well as serialized and saved as an RTF. It is currently a beta, though many > features work fine." > > Any java gurus out there? :-) > > Cheers, Jon From shane@digicool.com Thu Jul 12 19:17:23 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 12 Jul 2001 14:17:23 -0400 Subject: [Zope-CMF] Java WYSIWYG editor References: <20010712164937.J27543@lenin.jamkit.com> Message-ID: <3B4DE9B3.451654CF@digicool.com> seb bacon wrote: > A quick note: a problem with Java in applets is that really needs to > be 1.1 to ensure browser compatibility, AFAIK In fact the Ekit applet requires Swing, which hasn't been integrated into Netscape's Java. (Not sure about MSIE.) However, the Ekit demo contains Javascript for using the Java plug-in... and I must say, this applet looks very, very nice! I suppose it just uses Swing to do the fancy work (I haven't checked yet). I'm running it on Linux and there appears to be a problem with the control characters like arrows and the "enter" key, but that can be dealt with. I used to do Java (and Windows) exclusively. Applets were fun except when they crashed (and how they crashed!), so I didn't make many applets. But now that Java works on a more stable platform, there could be some opportunity here! Another thing I looked at yesterday is the possibility of using Plugger, a Netscape plugin that lets you use shell commands as plugins. Shane > * Jon Edwards [010712 14:27]: > > via another list - http://www.hexidec.com/ekit.html > > > > "Ekit is a program & applet that uses the Java 2 libraries to create an HTML > > editor. The Ekit standalone also allows for HTML to be loaded and saved, as > > well as serialized and saved as an RTF. It is currently a beta, though many > > features work fine." > > > > Any java gurus out there? :-) From wilson@visi.com Thu Jul 12 19:44:18 2001 From: wilson@visi.com (Timothy Wilson) Date: Thu, 12 Jul 2001 13:44:18 -0500 (CDT) Subject: [Zope-CMF] Use of Topic on the Dogbowl Message-ID: Hey everyone, I'm trying to understand CMF Topics and how they can be used. Would someone comment on how they're used at cmf.zope.org? Here's what I think is happening: At http://cmf.zope.org/doc there's a list of Folders at the bottom of the page listing some categories (e.g., Administrator Documentation). Does that list of folders represent a set of Topics? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From tseaver@palladion.com Thu Jul 12 17:55:28 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 12 Jul 2001 12:55:28 -0400 (EDT) Subject: [Zope-CMF] Help please In-Reply-To: <3B4DA9FB.4080501@rice.edu> Message-ID: On Thu, 12 Jul 2001, J. Cameron Cooper wrote: > >The canonical example of CMF usage comes with the CMF; it's the > >CMFDefault site. You'll find a little documentation at cmf.zope.org, > >but for the rest you should search the list archives etc. > > > Is there a way to see the source to the dogbowl site? If not, there > should be, and if there is, it should be more transparent. Maybe a "View > DTML Source" like on Zope.org. Or read-only access to the ZMI. The dogbowl is running mostly stock CMF 1.1. We have added or customized a few skin methods; I just created a mini-annotation of them at: http://cmf.zope.org/doc/admin/dogbowl_skins The only non-standard content type on the dogbowl is the not-very- successful UseCase; We will probably be converting them to a Document-derived type, anyway. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Thu Jul 12 18:48:43 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 12 Jul 2001 13:48:43 -0400 (EDT) Subject: [Zope-CMF] Use of Topic on the Dogbowl In-Reply-To: Message-ID: On Thu, 12 Jul 2001, Timothy Wilson wrote: > I'm trying to understand CMF Topics and how they can be used. > Would someone comment on how they're used at cmf.zope.org? > > Here's what I think is happening: > > At http://cmf.zope.org/doc there's a list of Folders at the > bottom of the page listing some categories (e.g., Administrator > Documentation). Does that list of folders represent a set of > Topics? Nope, but it would be a Good Thing (tm) to add Topics to those "real" folders, which exist to provide "canonical" locations for documentation. I'm afraid that the dogbowl's actual structure hasn't gotten a lot of attention, recently; Perhaps someone would like to propose a "new and improved" structure? Tres. -- =============================================================== Tres Seaver tseaver@palladion.com From tseaver@palladion.com Thu Jul 12 18:53:19 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 12 Jul 2001 13:53:19 -0400 (EDT) Subject: [Zope-CMF] Boring CMF Product. In-Reply-To: <87lmlupqjs.fsf@thingamy.net> Message-ID: On 12 Jul 2001, Erik Enge wrote: > Is there a Boring Product with a Boring How-To out there? If not, > should I write one - or is the API changing all the time, so my > efforts would be wasted? The CMFCalendar product is intended to be somewhat "didactic", but a CMFBoring product and accompanying how-to would be welcome. The contract for content objects has not changed significantly since CMF 1.0; the only big change to date is the addition of an (optional) set of content-type-specific metadata policies. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Thu Jul 12 18:59:08 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 12 Jul 2001 13:59:08 -0400 (EDT) Subject: [Zope-CMF] Advanced Search not working In-Reply-To: <003401c10aba$9f86f020$175ebbca@apdip.net> Message-ID: On Thu, 12 Jul 2001, Yoke May Seow wrote: > Hi, > > I was wanted to search an item from the Advanced search (i.e. search_form). > The item is already published on the site. I entered the full text and for > the review state, i selected Published. The search results found 0 result. > > When I entered the full text without other criterias, I found 1 result. > > What could be the problem? Please enlighten me. Hmmm, I can't reproduce this one; are you certain that the document you expect to find really is published? Here is what I did: 1. Created a document with "emergency" in its text. 2. Published the document. 3. Searched for the document using only "emergency" in the "Full Text" field, and found it. 4. Searched for the document using "emergency" in the "Full Text" field, plus "Published" in the "Review Status" field; found it there, too. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From khine@btinternet.com Thu Jul 12 22:35:20 2001 From: khine@btinternet.com (Norman Khine) Date: Thu, 12 Jul 2001 22:35:20 +0100 Subject: [Zope-CMF] RE: [Zope] CMF Question In-Reply-To: <000001c10b0e$1a31bf00$5100000a@jaime> Message-ID: Nat, You need to mail your questions to the zope-cmf mailing list. Also it will help, to help you, if you are a bit more specific as to what is not installing. For the CMF to work, all you need to do is untar the zip file using winzip this will create a number of directories that begin with CMF -- then move these to your your-zope-dir/lib/python/Products, and then restart zope. hth norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Nat Harari Sent: 12 July 2001 21:06 To: zope@zope.org Subject: [Zope] CMF Question I'm looking at the CMF right now on my machine. I run Windows 2000 Pro. It isn't, for some reason, installing. The install notes are all for linux commands (which I am not unfamiliar with, but it isn't what I happen to be running). Any ideas? Thanks, Newbie Nat. :) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From tseaver@palladion.com Thu Jul 12 21:18:10 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 12 Jul 2001 16:18:10 -0400 (EDT) Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: <002901c10a9c$137c6560$a9a4023e@karin> Message-ID: On Thu, 12 Jul 2001, Robert Rottermann wrote: > Hi there, > what would be the best way to save extra data with a CMF object. > I would like to have my own type created with the portal_types tool. Next to > the standard metadata I would like to save some extra information. > Do I have to "misuse" one of the standard metadata fields I do not need, or > is there an other way to go. I was about to say "make a ZClass", when it occurred to me to check something out:: >>> import Zope >>> app = Zope.app() >>> doc = app.cmf.Members.tres.index_html >>> doc.manage_addProperty( 'foo', 'bar', 'string' ) >>> doc.propertyMap() ({'id': 'title', 'mode': 'w', 'type': 'string'}, {'id': 'foo', 'type': 'string'}) >>> doc.foo 'bar' AIYAH! It turns out that CMFDefault.DefaultDublinCoreImpl derives (for unknown reasons) from PropertyManager; therefore, virtually all content objects can have custom properties added to them! As to whether this is a Good Thing (tm), I am of a divided mind. I can't see any reason that DDCI *needs* to have such a base class, but it does make "quick-and-dirty" custom schema simple. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From marc@bowery.com Fri Jul 13 00:53:28 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 12 Jul 2001 19:53:28 -0400 Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: Message-ID: > From: Tres Seaver > > > It turns out that CMFDefault.DefaultDublinCoreImpl derives > (for unknown reasons) from PropertyManager; therefore, virtually > all content objects can have custom properties added to them! Would that also mean they're automatically indexed in catalog too? From bill@libc.org Fri Jul 13 01:27:24 2001 From: bill@libc.org (Bill Anderson) Date: 12 Jul 2001 18:27:24 -0600 Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: References: Message-ID: <994984044.10778.1.camel@locutus.libc.org> On 12 Jul 2001 19:53:28 -0400, marc lindahl wrote: > > > > From: Tres Seaver > > > > > > It turns out that CMFDefault.DefaultDublinCoreImpl derives > > (for unknown reasons) from PropertyManager; therefore, virtually > > all content objects can have custom properties added to them! > > Would that also mean they're automatically indexed in catalog too? > No. not as far as I would guess. For soemthing to be indexed, the catalog needs to know about it. If you added it to the catalog, then I would hazard to say that it would participate in the cataloging. I should ba able to report the veracity of said guess tonight (MST). Bill From yokemay@apdip.net Fri Jul 13 04:15:53 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Fri, 13 Jul 2001 11:15:53 +0800 Subject: [Zope-CMF] Advanced Search not working - solved In-Reply-To: Message-ID: <001801c10b4a$21108220$175ebbca@apdip.net> It wasn't working because I changed the option 'published' to 'Published'. It is case-sensitive. > I was wanted to search an item from the Advanced search (i.e. search_form). > The item is already published on the site. I entered the full text and for > the review state, i selected Published. The search results found 0 result. > > When I entered the full text without other criterias, I found 1 result. Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net Mobile: +6016-2837395 ICQ: 321345 From wilson@visi.com Fri Jul 13 04:21:12 2001 From: wilson@visi.com (Timothy Wilson) Date: Thu, 12 Jul 2001 22:21:12 -0500 (CDT) Subject: [Zope-CMF] CMFTopics Q. Message-ID: Hey everyone, I'm really having trouble wrapping my brain around CMFTopics. I understand that they're canned ZCatalog searches. But it isn't at all clear to me how to get them going on my site. Here's a hypothetical (OK, it's not all that hypothetical :-) I've got one large portal for the entire school district (who knows, maybe I'll change my mind about that). Let's say I've got a few people submitting news for different schools and other events. Let's say I've got a folder 'sibley' for Sibley High School and a subfolder called 'athletics' for our Athletic Dept. I'm assuming that using Topics will allow me to show Sibley news only when a visitor is in that folder and sports news (for Sibley only) in /sibley/athletics/ Have I got that right? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From marc@bowery.com Fri Jul 13 04:33:40 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 12 Jul 2001 23:33:40 -0400 Subject: [Zope-CMF] CMFTopics Q. In-Reply-To: Message-ID: > From: Timothy Wilson > > I'm assuming that using Topics will allow me to show Sibley news only when a > visitor is in that folder and sports news (for Sibley only) in > /sibley/athletics/ > > Have I got that right? Because they're portal_catalog queries, they're independant of the document's location. So it'll show any document in the portal that matches the criterion (sibley news). The query itself (the Topic) is viewed only where it is (in the folder). So it could make it APPEAR that your sibley news was all in the sibley folder, while it could be spread out (e.g. in member's folders) From wilson@visi.com Fri Jul 13 05:02:44 2001 From: wilson@visi.com (Timothy Wilson) Date: Thu, 12 Jul 2001 23:02:44 -0500 (CDT) Subject: [Zope-CMF] CMFTopics Q. In-Reply-To: Message-ID: On Thu, 12 Jul 2001, marc lindahl wrote: > Because they're portal_catalog queries, they're independant of the > document's location. So it'll show any document in the portal that matches > the criterion (sibley news). The query itself (the Topic) is viewed only > where it is (in the folder). So it could make it APPEAR that your sibley > news was all in the sibley folder, while it could be spread out (e.g. in > member's folders) Yes, I understand that the CMF is "me-centric." No problem there. I guess I just have to figure out how to go about actually implementing the Topics. How-to, where art thou? :-) -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From wilson@visi.com Fri Jul 13 05:55:18 2001 From: wilson@visi.com (Timothy Wilson) Date: Thu, 12 Jul 2001 23:55:18 -0500 (CDT) Subject: [Zope-CMF] Entering "Subjects" (are those Topics?) Message-ID: Hi everyone, OK, I'm starting to get an idea of these Topics. (Please don't let that dissuade anyone from writing a nice How-To. :-) I've created a Topic object in the root of my CMF and put a sub-topic within that. It would appear that the options listed in the "Subject" box when adding content correspond to the various Topics. Is that correct? If so, what do I have to do to start making item appear in the Subject selection box? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From seb@jamkit.com Fri Jul 13 10:17:11 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 10:17:11 +0100 Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: ; from tseaver@palladion.com on Thu, Jul 12, 2001 at 04:18:10PM -0400 References: <002901c10a9c$137c6560$a9a4023e@karin> Message-ID: <20010713101710.Q27543@lenin.jamkit.com> * Tres Seaver [010712 23:16]: > On Thu, 12 Jul 2001, Robert Rottermann wrote: > > > Do I have to "misuse" one of the standard metadata fields I do not need, or > > is there an other way to go. < snip > > It turns out that CMFDefault.DefaultDublinCoreImpl derives > (for unknown reasons) from PropertyManager; therefore, virtually > all content objects can have custom properties added to them! > > As to whether this is a Good Thing (tm), I am of a divided mind. > I can't see any reason that DDCI *needs* to have such a base > class, but it does make "quick-and-dirty" custom schema simple. What are the arguments for / against, in your mind? I guess one Bad Thing is that the PropertyManager is not very OOP-minded / NewReligionesque; however, to encapsulate it a bit better, it wouldn't be very difficult to add getPropertyFor() and setPropertyFor() methods to the PropertiesTool, perhaps? seb From seb@jamkit.com Fri Jul 13 10:20:48 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 10:20:48 +0100 Subject: [Zope-CMF] CMFTopics Q. In-Reply-To: ; from wilson@visi.com on Thu, Jul 12, 2001 at 11:02:44PM -0500 References: Message-ID: <20010713102046.R27543@lenin.jamkit.com> * Timothy Wilson [010713 05:07]: > > Because they're portal_catalog queries, they're independant of the > > document's location. So it'll show any document in the portal that matches > > the criterion (sibley news). The query itself (the Topic) is viewed only > > where it is (in the folder). So it could make it APPEAR that your sibley > > news was all in the sibley folder, while it could be spread out (e.g. in > > member's folders) > > Yes, I understand that the CMF is "me-centric." No problem there. I guess I > just have to figure out how to go about actually implementing the > Topics. How-to, where art thou? :-) It's pretty easy, you'll be glad to hear. You just add a Topic like any other content type, to any location. Then if you visit it, you get a 'customise' option in the actions box. If you look at that, you'll find a form which allows you to set criteria for the Topic. seb From seb@jamkit.com Fri Jul 13 10:25:17 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 10:25:17 +0100 Subject: [Zope-CMF] Entering "Subjects" (are those Topics?) In-Reply-To: ; from wilson@visi.com on Thu, Jul 12, 2001 at 11:55:18PM -0500 References: Message-ID: <20010713102515.S27543@lenin.jamkit.com> * Timothy Wilson [010713 06:00]: > I've created a Topic object in the root of my CMF and put a sub-topic within > that. It would appear that the options listed in the "Subject" box when > adding content correspond to the various Topics. Is that correct? If so, > what do I have to do to start making item appear in the Subject selection > box? No, the 'subject' items on the metadata edit form can either be one or more freeform keywords, or you can predefine them using the portal_metadata tool. Depending on the strategy you want to follow, you might want to edit the source of the metadata_edit_form (you'll see some comments there regarding this). The topics query against all the subject keywords in the catalog, whether they have come directly from the person who uploaded the content, or indirectly from the portal_metadata tool. seb From gitte@mmmanager.org Fri Jul 13 10:48:37 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Fri, 13 Jul 2001 11:48:37 +0200 Subject: [Zope-CMF] File objects in skin folder Message-ID: <01071311483705.02230@squidbitch.mmmanager.org> Hello, I am about to "port" the skins for our new product from the ZMI into the Filesystem (so it will be easier to set up). We have 2 File objects in our skin folder. Can I simple just place the two .jar files in the skins folder and then Zope knows that it must create 2 File objects in the ZMI ... or os there another work around ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: [On some PCMCIA cardbus implementations] Who makes those pieces of crap? And who buys them? I can understand it in embedded stuff simply because the chips are simpler and smaller, but in a laptop you should definitely try to avoid it. - Linus Torvalds From yokemay@apdip.net Fri Jul 13 11:02:51 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Fri, 13 Jul 2001 18:02:51 +0800 Subject: [Zope-CMF] Factory-based Type for List folder contents Message-ID: <000001c10b82$fb76b780$175ebbca@apdip.net> Hi, I created a factory-based type information and selected the action, 'List folder contents.' How do I incorporate this into my CMF to display the contents of a folder, i.e. Folder A to Folder E? Thanks in advance. Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net ICQ: 321345 From seb@jamkit.com Fri Jul 13 11:46:59 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 11:46:59 +0100 Subject: [Zope-CMF] The Workflow Bug Message-ID: <20010713114658.X27543@lenin.jamkit.com> Hey DC Malcontents, Just a quick query: do you think anyone's going to have a chance to deal with the Workflow bug any time soon? I just ask because if you lot haven't got the time over the next few days I'll need to stick it at the top of my list of Important Things To Do. If you don't have the time, if someone could have a look at it and suggest what they *might* do if they *did* have the time, it'd be a great help :-) http://www.zope.org/Products/PTK/Tracker/337/1 cheers, seb From mehmety@auslin.com.au Fri Jul 13 11:35:34 2001 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: 13 Jul 2001 20:35:34 +1000 Subject: [Zope-CMF] cmf howto Message-ID: <995020534.9108.1.camel@theo.home> Hi, I've just installed CMF and have it working (looks very impressive!),now I want to start working out how to integrate the dtml methods I've been using (and mainly access a MySql database).So,any suggestions on reading material? Regards, Mehmet From gitte@mmmanager.org Fri Jul 13 11:43:22 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Fri, 13 Jul 2001 12:43:22 +0200 Subject: [Zope-CMF] Stylesheet guide Message-ID: <01071312432206.02230@squidbitch.mmmanager.org> Hello, I am looking for a guide to the style sheets that CMF comes with. I have seen the color guide - but that haven't got anything to to with font sizs etc... The thing I want to change right now is the font size of the frontpage of my portal. I have looked in the default_stylesheet file and tried to change the size of the p attribute. But that didn't help. Anyone who can lead me in the right direction ?? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: [On some PCMCIA cardbus implementations] Who makes those pieces of crap? And who buys them? I can understand it in embedded stuff simply because the chips are simpler and smaller, but in a laptop you should definitely try to avoid it. - Linus Torvalds From tseaver@palladion.com Fri Jul 13 12:35:38 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 13 Jul 2001 07:35:38 -0400 Subject: [Zope-CMF] File objects in skin folder References: <01071311483705.02230@squidbitch.mmmanager.org> Message-ID: <3B4EDD0A.9030505@palladion.com> Gitte Wange wrote: > Hello, > > I am about to "port" the skins for our new product from the ZMI into the > Filesystem (so it will be easier to set up). > > We have 2 File objects in our skin folder. > Can I simple just place the two .jar files in the skins folder and then Zope > knows that it must create 2 File objects in the ZMI ... or os there another > work around ? DirectoryView only creates subobjects for things it knows how to handle. Since we hadn't considered the need for "opaque" skin objects, your ".jar" files won't be loaded. You will need to create a FSOpaqueFile class, derived from FSObject, and register it with the 'DirectoryView.registerFileExtension'. I would look at FSImage for the closest cognate to FSOpaqueFile. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From norman@khine.net Fri Jul 13 13:10:03 2001 From: norman@khine.net (Norman Khine) Date: Fri, 13 Jul 2001 13:10:03 +0100 Subject: [Zope-CMF] Member Groups for the CMF Message-ID: Hello, I would like to extend the cmf, so as to enable for a group of Members to work on one specific Document, and would like some advice on how to set this up. The site basically is for a architectural design competition, that we carry out each year, and I am hoping to be able to make this fully cmf'd so that: 1. Member joins the site, he then is presented of entering the competition. I will create a new document_type eg competition where I will have nth number of details, such as Title of Scheme, Category ( Currently there are 4, main categories ) and Design Statement. I don't think that's much of a problem, my difficulty is in the fact that there will be a number of members working on one particular scheme, all from different backgrounds -- ie architects, landscape architects, stonemasons, artists etc etc... The outcome off all this colaboration should be a number of design pages added individually by the members of the group, that will give other members of the portal a detailed look of the proposed scheme -- these other members are not part of this project. Perhaps a sort of wiki page?!, on the cmf. Main obsticle is how to define the groups -- I was thinking perhaps to let the person who registered for the competion to become the group leader and giving them the facility to add other members to this group, BUT if those members are already members of portal, I can't see a way of how to do this. ie a way to invite other members to the group, and allocating them write privilages to the project?!? I hope I am explaining this clearly, all suggestions will be much appreciated. Thanks Norman From jens@digicool.com Fri Jul 13 13:31:11 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Fri, 13 Jul 2001 08:31:11 -0400 Subject: [Zope-CMF] Member Groups for the CMF In-Reply-To: Message-ID: <20010713123159.5971F13962@kermit.dataflake.org> norman, you might be interested to know that one of the feature additions to the CMF on the "short list" is the ability of a folder owner to assign local roles to other users within that folder. in your situation this could be used by the group leader (who should be the owner of the group's file area) to give other existing portal members the ability to view, create or edit content within the group file area even though the objects cannot be reached by "normal" members. jens On Friday, July 13, 2001, at 08:10 , Norman Khine wrote: > Hello, > I would like to extend the cmf, so as to enable for a group of Members to > work on one specific Document, and would like some advice on how to set > this > up. > > The site basically is for a architectural design competition, that we > carry > out each year, and I am hoping to be able to make this fully cmf'd so > that: > > 1. Member joins the site, he then is presented of entering the > competition. > I will create a new document_type eg competition where I will have nth > number of details, such as Title of Scheme, Category ( Currently there are > 4, main categories ) and Design Statement. > > I don't think that's much of a problem, my difficulty is in the fact that > there will be a number of members working on one particular scheme, all > from > different backgrounds -- ie architects, landscape architects, stonemasons, > artists etc etc... > > The outcome off all this colaboration should be a number of design pages > added individually by the members of the group, that will give other > members > of the portal a detailed look of the proposed scheme -- these other > members > are not part of this project. > > Perhaps a sort of wiki page?!, on the cmf. > > Main obsticle is how to define the groups -- I was thinking perhaps to let > the person who registered for the competion to become the group leader and > giving them the facility to add other members to this group, BUT if those > members are already members of portal, I can't see a way of how to do > this. > ie a way to invite other members to the group, and allocating them write > privilages to the project?!? > > I hope I am explaining this clearly, all suggestions will be much > appreciated. > > Thanks > > Norman > > > > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From mark.langkau@pbmplus.com Fri Jul 13 13:46:23 2001 From: mark.langkau@pbmplus.com (Mark Langkau) Date: Fri, 13 Jul 2001 07:46:23 -0500 Subject: [Zope-CMF] Can "Printable Page" open to new window? Message-ID: <3B4EED9F.36EEDBF0@execpc.com> Hi, I'm using Jeffrey Shell's Printable Page "How-To" doc http://cmf.zope.org/CMF/Members/jshell/News/PrintablePage ... and I'm wondering how to have the resulting "printable page" open into a new browser window. Once the skin is customized, Jeff gives the following as a sample link to use: print This works great. (Thanks Jeff!) But I'm not sure how to cause this to open in a new window. We have a client that likes the way other sites have "Printer Friendly" icons that pop up a new window with the stripped down page to print. Is anyone else doing this, and could they share an example? Cheers, Mark From seb@jamkit.com Fri Jul 13 14:31:48 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 14:31:48 +0100 Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: <3B4EED9F.36EEDBF0@execpc.com>; from mlangkau@execpc.com on Fri, Jul 13, 2001 at 07:46:23AM -0500 References: <3B4EED9F.36EEDBF0@execpc.com> Message-ID: <20010713143146.B27543@lenin.jamkit.com> * Mark Langkau [010713 13:55]: > ... and I'm wondering how to have the resulting "printable page" open > into a new browser window. Once the skin is customized, Jeff gives the > following as a sample link to use: > > print it's an html thing: foo should do the trick. seb From phil.harris@zope.co.uk Fri Jul 13 13:56:39 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 13 Jul 2001 13:56:39 +0100 Subject: [Zope-CMF] Can "Printable Page" open to new window? References: <3B4EED9F.36EEDBF0@execpc.com> Message-ID: <029c01c10b9b$44543410$5c773fc1@media1> print ----- Original Message ----- From: "Mark Langkau" > Hi, > > ... and I'm wondering how to have the resulting "printable page" open > into a new browser window. . . . > Is anyone else doing this, and could they share an example? > > Cheers, > Mark From khine@btinternet.com Fri Jul 13 14:21:06 2001 From: khine@btinternet.com (Norman Khine) Date: Fri, 13 Jul 2001 14:21:06 +0100 Subject: [Zope-CMF] Member Groups for the CMF In-Reply-To: <20010713123159.5971F13962@kermit.dataflake.org> Message-ID: Thats really cool, I'll need to check this out. Can you point me to the right place? Many thanks -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Jens Vagelpohl Sent: Friday, July 13, 2001 1:31 PM To: Norman Khine Cc: Zope-Cmf Subject: Re: [Zope-CMF] Member Groups for the CMF norman, you might be interested to know that one of the feature additions to the CMF on the "short list" is the ability of a folder owner to assign local roles to other users within that folder. in your situation this could be used by the group leader (who should be the owner of the group's file area) to give other existing portal members the ability to view, create or edit content within the group file area even though the objects cannot be reached by "normal" members. jens On Friday, July 13, 2001, at 08:10 , Norman Khine wrote: > Hello, > I would like to extend the cmf, so as to enable for a group of Members to > work on one specific Document, and would like some advice on how to set > this > up. > > The site basically is for a architectural design competition, that we > carry > out each year, and I am hoping to be able to make this fully cmf'd so > that: > > 1. Member joins the site, he then is presented of entering the > competition. > I will create a new document_type eg competition where I will have nth > number of details, such as Title of Scheme, Category ( Currently there are > 4, main categories ) and Design Statement. > > I don't think that's much of a problem, my difficulty is in the fact that > there will be a number of members working on one particular scheme, all > from > different backgrounds -- ie architects, landscape architects, stonemasons, > artists etc etc... > > The outcome off all this colaboration should be a number of design pages > added individually by the members of the group, that will give other > members > of the portal a detailed look of the proposed scheme -- these other > members > are not part of this project. > > Perhaps a sort of wiki page?!, on the cmf. > > Main obsticle is how to define the groups -- I was thinking perhaps to let > the person who registered for the competion to become the group leader and > giving them the facility to add other members to this group, BUT if those > members are already members of portal, I can't see a way of how to do > this. > ie a way to invite other members to the group, and allocating them write > privilages to the project?!? > > I hope I am explaining this clearly, all suggestions will be much > appreciated. > > Thanks > > Norman > > > > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@palladion.com Fri Jul 13 12:35:04 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 13 Jul 2001 07:35:04 -0400 (EDT) Subject: [Zope-CMF] Member Groups for the CMF In-Reply-To: Message-ID: On Fri, 13 Jul 2001, Norman Khine wrote: > Thats really cool, I'll need to check this out. Can you point me to the > right place? You could do this today using skins: - Add a DTML Method displays a form, collecting the userid and on or more local roles. The form posts to a script. - Add the PythonScript, calling 'context.manage_setLocalRoles', passing 'userid' and a 'roles' list. - Set up an action for a folder or content type, pointing to your new DTML Method. We will likely add such stuff to the core for the 1.2 release. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From khine@btinternet.com Fri Jul 13 14:39:22 2001 From: khine@btinternet.com (Norman Khine) Date: Fri, 13 Jul 2001 14:39:22 +0100 Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: <029c01c10b9b$44543410$5c773fc1@media1> Message-ID: just as a side note, so that a user does not have to make any additional "clicks" is there a method, perhaps python or java, that will fire-up the default printer and the user can print directly the printable skin, without having to open it in a new browser? -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Phil Harris Sent: Friday, July 13, 2001 1:57 PM To: mark.langkau@pbmplus.com; zope-cmf@zope.org Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? print ----- Original Message ----- From: "Mark Langkau" > Hi, > > ... and I'm wondering how to have the resulting "printable page" open > into a new browser window. . . . > Is anyone else doing this, and could they share an example? > > Cheers, > Mark _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From phil.harris@zope.co.uk Fri Jul 13 14:37:12 2001 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 13 Jul 2001 14:37:12 +0100 Subject: [Zope-CMF] Can "Printable Page" open to new window? References: Message-ID: <02bc01c10ba0$ec6e77a0$5c773fc1@media1> You can do it with IE, not sure about NutScrape/Mozilla. Can't remember the magic incantations at the moment though. ----- Original Message ----- From: "Norman Khine" To: "Zope-Cmf" ; "Phil Harris" Sent: Friday, July 13, 2001 2:39 PM Subject: RE: [Zope-CMF] Can "Printable Page" open to new window? > just as a side note, so that a user does not have to make any additional > "clicks" is there a method, perhaps python or java, that will fire-up the > default printer and the user can print directly the printable skin, without > having to open it in a new browser? > > > > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Phil Harris > Sent: Friday, July 13, 2001 1:57 PM > To: mark.langkau@pbmplus.com; zope-cmf@zope.org > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? > > > print > > ----- Original Message ----- > From: "Mark Langkau" > > > Hi, > > > > ... and I'm wondering how to have the resulting "printable page" open > > into a new browser window. > . > . > . > > > Is anyone else doing this, and could they share an example? > > > > Cheers, > > Mark > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > From tseaver@digicool.com Fri Jul 13 12:43:23 2001 From: tseaver@digicool.com (Tres Seaver) Date: Fri, 13 Jul 2001 07:43:23 -0400 Subject: [Zope-CMF] Creating new portal type based on Document Message-ID: <3B4EDEDB.574B3B28@digicool.com> > Hello, > > I was trying to create a new portal type based on Document. Actually it > should be like document for now - only that it is an article :-)) > Later on I will create some new views etc. > > I added a new factory based type information, gave it an id of > 'Article' and set it to use the default type information from > CMFDefault: Document. > I changed the meta type on the properties tab to Article. > > Now I know that the Document is an FS-based product and that the meta > type is hard-coded into the class but I thought that there was somehow > to avoid this. > I have added some "articles" to my portal. When I go to the search > screen and search for content with type=Article it finds my articles - > and only them (as I want I to *S*). > Then I have created a page to list the articles (for now just list them > - later on I will make it more sophisticated). I have copy/pasted the > code from the recent_news method and changed the search for News Item > into Article (the meta_type argument). But it finds nothing (guess it's > because the article type is based on the document type). > > I saw at the search page that it could list the type as 'Article'. In > the code it uses the property missing-Type. > > Is there a way that I can search the catalog for missing-Type='Article' > instead of meta_type='Article' (which won't work) Sorry about the delay; I'm only now catching up on mail after vacation. You want to do a search for 'Type'=='Article', not 'metatype'. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From jens@digicool.com Fri Jul 13 14:44:19 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Fri, 13 Jul 2001 09:44:19 -0400 Subject: [Zope-CMF] Member Groups for the CMF In-Reply-To: Message-ID: <20010713134504.0932513962@kermit.dataflake.org> there is no place for it right now because it isn't done yet... jens On Friday, July 13, 2001, at 09:21 , Norman Khine wrote: > Thats really cool, I'll need to check this out. Can you point me to the > right place? > > Many thanks From xoph@snafu.de Fri Jul 13 16:52:30 2001 From: xoph@snafu.de (xoph@snafu.de) Date: Fri, 13 Jul 2001 15:52:30 MET Subject: [Zope-CMF] Can "Printable Page" open to new window? Message-ID: Phil is right; this feature is browser-dependant (does not work with NS, and maybe not with other browsers as well). Cheers, Christoph > You can do it with IE, not sure about NutScrape/Mozilla. > > Can't remember the magic incantations at the moment though. > > ----- Original Message ----- > From: "Norman Khine" > To: "Zope-Cmf" ; "Phil Harris" > Sent: Friday, July 13, 2001 2:39 PM > Subject: RE: [Zope-CMF] Can "Printable Page" open to new window? > > > > just as a side note, so that a user does not have to make any additional > > "clicks" is there a method, perhaps python or java, that will fire-up the > > default printer and the user can print directly the printable skin, > without > > having to open it in a new browser? > > > > > > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Phil Harris > > Sent: Friday, July 13, 2001 1:57 PM > > To: mark.langkau@pbmplus.com; zope-cmf@zope.org > > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? > > > > > > print > > > > ----- Original Message ----- > > From: "Mark Langkau" > > > > > Hi, > > > > > > ... and I'm wondering how to have the resulting "printable page" open > > > into a new browser window. > > . > > . > > . > > > > > Is anyone else doing this, and could they share an example? > > > > > > Cheers, > > > Mark > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > > requests > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From seb@jamkit.com Fri Jul 13 15:35:43 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 15:35:43 +0100 Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: ; from xoph@snafu.de on Fri, Jul 13, 2001 at 03:52:30PM +0100 References: Message-ID: <20010713153542.C27543@lenin.jamkit.com> You can can window.Print() in IE5+ only, but that still requires that you open a window in order to print it in the first place. It also always display the print dialog box. seb * xoph@snafu.de [010713 14:56]: > Phil is right; this feature is browser-dependant (does not work with NS, and > maybe not with other browsers as well). > > Cheers, > Christoph > > > > You can do it with IE, not sure about NutScrape/Mozilla. > > > > Can't remember the magic incantations at the moment though. > > > > ----- Original Message ----- > > From: "Norman Khine" > > To: "Zope-Cmf" ; "Phil Harris" > > Sent: Friday, July 13, 2001 2:39 PM > > Subject: RE: [Zope-CMF] Can "Printable Page" open to new window? > > > > > > > just as a side note, so that a user does not have to make any additional > > > "clicks" is there a method, perhaps python or java, that will fire-up the > > > default printer and the user can print directly the printable skin, > > without > > > having to open it in a new browser? From khine@btinternet.com Fri Jul 13 15:24:04 2001 From: khine@btinternet.com (Norman Khine) Date: Fri, 13 Jul 2001 15:24:04 +0100 Subject: [Zope-CMF] Member Groups for the CMF In-Reply-To: Message-ID: Thanks Tres, Can you tell me if there is a proposals documentation for this, I would like to see the "philosophy" behind your/s proposal. Also to clarify a small issue, the DTML method form, would this be added by the group leader, from the MyStaff wizard or Portal Manager? The way I see this working is to let ALL members join a group, a bit like yahoo's groups model, but with a small difference, the group leader decides who can belong to the group! Maybe this is wrong, as you don't want everybody to join a group, but then could be an asset, as members with the right "skills" could offer their expertise, by adding content to their "portal-space" which can become part of the "Project", similar to what happens now within the cmf, where all members add content, which is indexed/ grouped by subject type. I suppose the group leader will become the project reviewer then. So that every member works "within" their member folder -- adding content, then each content item has the option of becoming part of a larger "Project". Therefore each content_type must have a an optional link to a "PROJECT", should a member decides their content can belong to a project. OR, perhaps, every member has the option to add a Project -- from the types option, this then creates a folder project in the member's folder and sets the security as required, then other members are invited to contribute to the project/ or add directly to that folder. Is this how it is being proposed/ or worked on? And are workflows part of the equation? -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Tres Seaver Sent: Friday, July 13, 2001 12:35 PM To: Norman Khine Cc: Jens Vagelpohl; Zope-Cmf Subject: RE: [Zope-CMF] Member Groups for the CMF On Fri, 13 Jul 2001, Norman Khine wrote: > Thats really cool, I'll need to check this out. Can you point me to the > right place? You could do this today using skins: - Add a DTML Method displays a form, collecting the userid and on or more local roles. The form posts to a script. - Add the PythonScript, calling 'context.manage_setLocalRoles', passing 'userid' and a 'roles' list. - Set up an action for a folder or content type, pointing to your new DTML Method. We will likely add such stuff to the core for the 1.2 release. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From marc@bowery.com Fri Jul 13 15:36:08 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 10:36:08 -0400 Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: Message-ID: target=new works with any browser. > From: xoph@snafu.de > Date: Fri, 13 Jul 2001 15:52:30 MET > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? > > Phil is right; this feature is browser-dependant (does not work with NS, and > maybe not with other browsers as well). > > Cheers, > Christoph > From marc@bowery.com Fri Jul 13 15:39:51 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 10:39:51 -0400 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: <01071312432206.02230@squidbitch.mmmanager.org> Message-ID: Check out http://cmf.zope.org/Members/grifter70000/color_guide > From: Gitte Wange > Organization: MMManager.org > Date: Fri, 13 Jul 2001 12:43:22 +0200 > To: zope-cmf@zope.org > Subject: [Zope-CMF] Stylesheet guide > > Hello, > > I am looking for a guide to the style sheets that CMF comes with. > I have seen the color guide - but that haven't got anything to to with font > sizs etc... > > The thing I want to change right now is the font size of the frontpage of my > portal. > I have looked in the default_stylesheet file and tried to change the size of > the p attribute. But that didn't help. > > Anyone who can lead me in the right direction ?? > > Regards, > > -- > Gitte Wange Jensen > > Sys Admin, Developer and a lot more > MMmanager.org Aps, Denmark > > Phone: +45 29 72 79 72 > Email: gitte@mmmanager.org > Web: www.mmmanager.org > > Quote of the day: > [On some PCMCIA cardbus implementations] Who makes those > pieces of crap? And who buys them? I can understand it in > embedded stuff simply because the chips are simpler and smaller, > but in a laptop you should definitely try to avoid it. > > - Linus Torvalds > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From aem@byu.edu Fri Jul 13 15:47:35 2001 From: aem@byu.edu (Adrian Madrid) Date: Fri, 13 Jul 2001 07:47:35 -0700 (PDT) Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: <3B4EED9F.36EEDBF0@execpc.com> Message-ID: <20010713144735.99607.qmail@web10102.mail.yahoo.com> --- Mark Langkau wrote: > ... > print I believe an easy way to do it would be: print This is pure HTML (no JS necessary) and would do the trick. ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From Christoph.Schirmer@snafu.de Fri Jul 13 16:39:10 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Fri, 13 Jul 2001 17:39:10 +0200 Subject: [Zope-CMF] Can "Printable Page" open to new window? References: Message-ID: <3B4F161E.501CFD14@snafu.de> This is a multi-part message in MIME format. --------------9F044BC4402A2D0110870081 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit target="_blank" :-) yes. But you can´t send it to the printer directly with that tag; and the respective command does not work with all browsers. Cheers, Christoph marc lindahl wrote: > target=new works with any browser. > > > From: xoph@snafu.de > > Date: Fri, 13 Jul 2001 15:52:30 MET > > To: > > marc lindahl wrote: > >> target=new works with any browser. >> >> > From: xoph@snafu.de >> > Date: Fri, 13 Jul 2001 15:52:30 MET >> > To: zope-cmf@zope.org >> > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? >> > >> > Phil is right; this feature is browser-dependant (does not work with NS, and >> >> > maybe not with other browsers as well). >> > >> > Cheers, >> > Christoph >> > > > > > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? > > > > Phil is right; this feature is browser-dependant (does not work with NS, and > > maybe not with other browsers as well). > > > > Cheers, > > Christoph > > --------------9F044BC4402A2D0110870081 Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------9F044BC4402A2D0110870081-- From bill@libc.org Fri Jul 13 16:34:49 2001 From: bill@libc.org (Bill Anderson) Date: 13 Jul 2001 09:34:49 -0600 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: References: Message-ID: <995038490.18213.1.camel@locutus.libc.org> On 13 Jul 2001 10:39:51 -0400, marc lindahl wrote: > Check out > http://cmf.zope.org/Members/grifter70000/color_guide Marc, Gitte has already seen to _color_ guide, which does not talk about the _font_ sizes .... Gitte, I am not aware of any guide which covers this. > > > From: Gitte Wange > > Organization: MMManager.org > > Date: Fri, 13 Jul 2001 12:43:22 +0200 > > To: zope-cmf@zope.org > > Subject: [Zope-CMF] Stylesheet guide > > > > Hello, > > > > I am looking for a guide to the style sheets that CMF comes with. > > I have seen the color guide - but that haven't got anything to to with font > > sizs etc... > > Bill From robert@redcor.ch Fri Jul 13 16:49:31 2001 From: robert@redcor.ch (Robert Rottermann) Date: Fri, 13 Jul 2001 17:49:31 +0200 Subject: Fw: [Zope-CMF] Boring CMF Product. Message-ID: <010c01c10bb3$68d055e0$0a01a8c0@stravinsky> I would sugest to split such a howto in chapters each one talking on on particular tool. So the chore could be split to several people one creating a somehow detailed example on say the topic, the other one on the types tool. This would mean to first scetch an "extensable" boring product. If you would detail me one of the parts, I would add one chapter. Robert > ----- Original Message ----- > From: "Tres Seaver" > To: "Erik Enge" > Cc: > Sent: Thursday, July 12, 2001 7:53 PM > Subject: Re: [Zope-CMF] Boring CMF Product. > > > > On 12 Jul 2001, Erik Enge wrote: > > > > > Is there a Boring Product with a Boring How-To out there? If not, > > > should I write one - or is the API changing all the time, so my > > > efforts would be wasted? > > > > The CMFCalendar product is intended to be somewhat "didactic", > > but a CMFBoring product and accompanying how-to would be welcome. > > The contract for content objects has not changed significantly > > since CMF 1.0; the only big change to date is the addition of > > an (optional) set of content-type-specific metadata policies. > > > > Tres. > > -- > > =============================================================== > > Tres Seaver tseaver@digicool.com > > Digital Creations "Zope Dealers" http://www.zope.org > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > > > From gregoire.weber@switzerland.org Fri Jul 13 16:50:45 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Fri, 13 Jul 2001 17:50:45 +0200 Subject: [Zope-CMF] Bug: 'TypeError: cannot convert string to tuple' in metadata_edit Message-ID: <3.0.6.32.20010713175045.0113a720@pop.dplanet.ch> Something for the tracker? Where to track if so? When I call metadata_edit directly from the browser with a=20 parameter which is internaly represented by a tuple like=20 'contributors' or subject I get a error, if the parameter occurs once only: http://path/to/obj/metadata_edit?contributors=3Dx No error on more than one occurance: http://path/to/obj/metadata_edit?contributors=3Dx&contributors=3Dy Type: TypeError Value: cannot convert string to tuple=20 Traceback (innermost last): File D:\prog\zope\lib\python\ZPublisher\Publish.py, line 223, in publish_module File D:\prog\zope\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\prog\zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File D:\prog\zope\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\prog\zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: metadata_edit) File D:\prog\zope\lib\python\ZPublisher\Publish.py, line 112, in= call_object (Object: metadata_edit) File D:\prog\zope\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in __call__ (Object: metadata_edit) File D:\prog\zope\lib\python\Shared\DC\Scripts\Bindings.py, line 354, in _bindAndExec (Object: metadata_edit) File D:\prog\zope\lib\python\Products\PythonScripts\PythonScript.py, line 336, in _exec (Object: metadata_edit) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (None, None, None, 'x', None, None, None, None, None), {}, (None, None, None, None, None, None, None, None, None))) File Script (Python), line 27, in metadata_edit File , line 8, in tuplify File D:\prog\zope\lib\python\Products\PythonScripts\Guarded.py, line 195, in __careful_tuple__ TypeError: (see above) The problem is metadat_edit.py which resides in the content skin=20 directory. The following patch corrects the issue: cvs -q diff -r HEAD metadata_edit.py (in directory F:\user\greg\tmp\CMF\CMFDefault\skins\content\) Index: metadata_edit.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs-repository/CMF/CMFDefault/skins/content/metadata_edit.py,v retrieving revision 1.1 diff -r1.1 metadata_edit.py 8c8,11 < value =3D tuple( value ) --- > if same_type ( value, '-'): > value =3D ( value, ) > else: > value =3D tuple( value ) *****CVS exited normally with code 1***** Greg _____________________________________ Gr=E9goire Weber mailto:gregoire.weber@switzerland.org From wilson@visi.com Fri Jul 13 16:49:00 2001 From: wilson@visi.com (Timothy Wilson) Date: Fri, 13 Jul 2001 10:49:00 -0500 (CDT) Subject: [Zope-CMF] Searching vs. browsing In-Reply-To: Message-ID: On Fri, 13 Jul 2001, marc lindahl wrote: > Check out > http://cmf.zope.org/Members/grifter70000/color_guide Wow, this one link is going to save me a ton of work. Thank you! This also brings up an issue that I've recognized with the CMF recently. My sense is that navigation in a CMF-enable Web site, and cmf.zope.org in particular, are overwhelmingly search-oriented. The link given above and the content it provided were readily available with a quick search (it was 6th in the list of items returned when I used "stylesheet" as the search term), but completely invisible to a site visitor otherwise. Jakob Nielsen talks quite a bit about the need to make sure content can be found by "searchers" and "browsers." "My usability studies show that slightly more than half of all users are search-dominant, about a fifth of the users are link-dominant, and the rest exhibit mixed behavior. The search-dominant users will usually go straight for the search button when they enter a website. They are not interested in looking around the site; they are task-focused and want to find specific information as fast as possible. In contrast, the link-dominant users prefer to follow the links around a site. Even when they want to find specific information, they will initially try to get to it by following promising links from the home page. Only when they get hopelessly lost will link-dominant users admit defeat and use a search command. Mixed-behavior users switch between search and link-following, depending on what seems most promising to them at any given time, but they do not have an inherent preference." (Nielsen 224) I am not a search-dominant user. I use both techniques, but I do get frustrated when I visit a site and I'm forced to use the search feature to find what I want. The "me-centric" approach of the CMF would seem to require heavy use of the search functions. I'm hoping that Topics will be the tool that will allow me to present content in a way that site visitors can find easily by browsing. Any comments? References ========== Nielsen, Jakob, "Designing Web Usability", 2000. Later, Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From Christoph.Schirmer@snafu.de Fri Jul 13 17:12:05 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Fri, 13 Jul 2001 18:12:05 +0200 Subject: [Zope-CMF] Searching vs. browsing References: Message-ID: <3B4F1DD5.4AC745C8@snafu.de> This is a multi-part message in MIME format. --------------9AD39341CC53D56D75E54A10 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I could´t agree more, also it needs to be said that a search in the cmf leaves you with lots of findings that are irrelevant. But one still has to view many to realize that. I would very much appreciate a CMF book like the Zope book, or a site structure that is ZMF-users centered, e.g. like the O´Reilly Cook books. Cheers, Christoph Timothy Wilson wrote: > On Fri, 13 Jul 2001, marc lindahl wrote: > > > Check out > > http://cmf.zope.org/Members/grifter70000/color_guide > > Wow, this one link is going to save me a ton of work. Thank you! > > This also brings up an issue that I've recognized with the CMF recently. My > sense is that navigation in a CMF-enable Web site, and cmf.zope.org in > particular, are overwhelmingly search-oriented. The link given above and the > content it provided were readily available with a quick search (it was 6th > in the list of items returned when I used "stylesheet" as the search term), > but completely invisible to a site visitor otherwise. > > Jakob Nielsen talks quite a bit about the need to make sure content can be > found by "searchers" and "browsers." > > "My usability studies show that slightly more than half of all users are > search-dominant, about a fifth of the users are link-dominant, and the rest > exhibit mixed behavior. The search-dominant users will usually go straight > for the search button when they enter a website. They are not interested in > looking around the site; they are task-focused and want to find specific > information as fast as possible. In contrast, the link-dominant users prefer > to follow the links around a site. Even when they want to find specific > information, they will initially try to get to it by following promising > links from the home page. Only when they get hopelessly lost will > link-dominant users admit defeat and use a search command. Mixed-behavior > users switch between search and link-following, depending on what seems most > promising to them at any given time, but they do not have an inherent > preference." (Nielsen 224) > > I am not a search-dominant user. I use both techniques, but I do get > frustrated when I visit a site and I'm forced to use the search feature to > find what I want. The "me-centric" approach of the CMF would seem to require > heavy use of the search functions. I'm hoping that Topics will be the tool > that will allow me to present content in a way that site visitors can find > easily by browsing. > > Any comments? > > References > ========== > Nielsen, Jakob, "Designing Web Usability", 2000. > > Later, > Tim > > -- > Tim Wilson | Visit Sibley online: | Check out: > Henry Sibley HS | http://www.isd197.org | http://www.zope.org > W. St. Paul, MN | | http://slashdot.org > wilson@visi.com | | http://linux.com > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests --------------9AD39341CC53D56D75E54A10 Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------9AD39341CC53D56D75E54A10-- From seb@jamkit.com Fri Jul 13 17:46:41 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 17:46:41 +0100 Subject: [Zope-CMF] Bug: 'TypeError: cannot convert string to tuple' in metadata_edit In-Reply-To: <3.0.6.32.20010713175045.0113a720@pop.dplanet.ch>; from gregoire.weber@switzerland.org on Fri, Jul 13, 2001 at 05:50:45PM +0200 References: <3.0.6.32.20010713175045.0113a720@pop.dplanet.ch> Message-ID: <20010713174640.E27543@lenin.jamkit.com> * Grégoire Weber [010713 16:52]: > Something for the tracker? Where to track if so? > > When I call metadata_edit directly from the browser with a > parameter which is internaly represented by a tuple like > 'contributors' or subject I get a error, if the parameter > occurs once only: > http://path/to/obj/metadata_edit?contributors=x > > No error on more than one occurance: > http://path/to/obj/metadata_edit?contributors=x&contributors=y This is what the type coercion rules are for: http://path/to/obj/metadata_edit?contributors:list=x Your patch is a more robust way of dealing with this kind of thing, though. I wonder where the responsibility for ensuring type correctness should lie? seb From seb@jamkit.com Fri Jul 13 17:53:26 2001 From: seb@jamkit.com (Seb Bacon) Date: Fri, 13 Jul 2001 17:53:26 +0100 Subject: [Zope-CMF] That Weekly Thing In-Reply-To: ; from jon@pcgs.freeserve.co.uk on Fri, Jul 06, 2001 at 12:12:29PM +0100 References: <3.0.6.32.20010705154833.011800d0@pop.dplanet.ch> Message-ID: <20010713175326.F27543@lenin.jamkit.com> Jon, are you there? you've been very quiet this week :-) i'll hopefully have time for a 20 minute burst at the news but i'm still in the thick of work at the moment. we might have to miss this week or catch up on monday, otherwise... cheers, seb From seb@jamkit.com Fri Jul 13 17:56:48 2001 From: seb@jamkit.com (Seb Bacon) Date: Fri, 13 Jul 2001 17:56:48 +0100 Subject: [Zope-CMF] That Weekly Thing In-Reply-To: <20010713175326.F27543@lenin.jamkit.com>; from seb@jamkit.com on Fri, Jul 13, 2001 at 05:53:26PM +0100 References: <3.0.6.32.20010705154833.011800d0@pop.dplanet.ch> <20010713175326.F27543@lenin.jamkit.com> Message-ID: <20010713175648.G27543@lenin.jamkit.com> Ooops. That 'reply to all' button will be my downfall.. While I'm at it, does anyone else fancy chipping in on a Weekly News in the future? Volunteers email me directly... cheers seb * Seb Bacon [010713 17:20]: > Jon, > > are you there? you've been very quiet this week :-) > > i'll hopefully have time for a 20 minute burst at the > news but i'm still in the thick of work at the moment. we might have > to miss this week or catch up on monday, otherwise... > > cheers, > > seb From jon@pcgs.freeserve.co.uk Fri Jul 13 17:26:13 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Fri, 13 Jul 2001 17:26:13 +0100 Subject: [Zope-CMF] RE: That Weekly Thing In-Reply-To: <20010713175326.F27543@lenin.jamkit.com> Message-ID: > are you there? you've been very quiet this week :-) Got sick of the sound of my own voice, and decided to do some "real work"! ;-) > i'll hopefully have time for a 20 minute burst at the > news but i'm still in the thick of work at the moment. we might have > to miss this week or catch up on monday, otherwise... If you can make a start, I'll finish off tonight, or over the weekend Cheers, Jon From marc@bowery.com Fri Jul 13 17:27:49 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 12:27:49 -0400 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: <995038490.18213.1.camel@locutus.libc.org> Message-ID: Aha. Well, that guide gives you the essential clue -- the naming convention in default_stylesheet so you can look at the file and tell what's affecting what on the page. Thing is, the fonts are highly dependant on your browser type and user settings. > From: Bill Anderson > Date: 13 Jul 2001 09:34:49 -0600 > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Stylesheet guide > > On 13 Jul 2001 10:39:51 -0400, marc lindahl wrote: >> Check out >> http://cmf.zope.org/Members/grifter70000/color_guide > > Marc, Gitte has already seen to _color_ guide, which does not talk about > the _font_ sizes .... > > Gitte, I am not aware of any guide which covers this. > >> >>> From: Gitte Wange >>> Organization: MMManager.org >>> Date: Fri, 13 Jul 2001 12:43:22 +0200 >>> To: zope-cmf@zope.org >>> Subject: [Zope-CMF] Stylesheet guide >>> >>> Hello, >>> >>> I am looking for a guide to the style sheets that CMF comes with. >>> I have seen the color guide - but that haven't got anything to to with font >>> sizs etc... >>> > > Bill > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From jon@pcgs.freeserve.co.uk Fri Jul 13 17:28:54 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Fri, 13 Jul 2001 17:28:54 +0100 Subject: [Zope-CMF] RE: That Weekly Thing In-Reply-To: Message-ID: Oooops! I've caught the "Reply to all" bug! Apologies to Gregoire and the list for cluttering up your inbox! (which, of course, I have just done again ;-) Cheers, Jon > -----Original Message----- > From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] > Sent: 13 July 2001 17:26 > To: Seb Bacon > Cc: Gregoire Weber; Zope-Cmf > Subject: RE: That Weekly Thing > > > > are you there? you've been very quiet this week :-) > > Got sick of the sound of my own voice, and decided to do some > "real work"! ;-) > > > i'll hopefully have time for a 20 minute burst at the > > news but i'm still in the thick of work at the moment. we might have > > to miss this week or catch up on monday, otherwise... > > If you can make a start, I'll finish off tonight, or over the weekend > > Cheers, Jon From marc@bowery.com Fri Jul 13 17:29:57 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 12:29:57 -0400 Subject: [Zope-CMF] Can "Printable Page" open to new window? In-Reply-To: <3B4F161E.501CFD14@snafu.de> Message-ID: I haven't tested target=3D"_blank"... I'll keep that one in mind as well. I know target=3D"new" works on just about every browser, every platform. As for sending right to the printer... I guess that's why it's called 'print-able' and not 'print this page'. After all, that's a security hole (can you imagine a site that just sends a pile of formfeeds to your printer?!?!) > From: Christoph Schirmer > Date: Fri, 13 Jul 2001 17:39:10 +0200 > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Can "Printable Page" open to new window? >=20 > target=3D"_blank" :-) yes. > But you can=B4t send it to the printer directly with that tag; and the > respective > command does not work with all browsers. >=20 > Cheers, > Christoph >=20 > marc lindahl wrote: >=20 >> target=3Dnew works with any browser. From marc@bowery.com Fri Jul 13 17:31:29 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 12:31:29 -0400 Subject: [Zope-CMF] Searching vs. browsing In-Reply-To: Message-ID: > From: Timothy Wilson > > Jakob Nielsen talks quite a bit about the need to make sure content can be > found by "searchers" and "browsers." I agree -- check out news_box in the default CMF. THat's a good example of a browser interface to the search (catalog) capability. From seb@jamkit.com Fri Jul 13 18:10:41 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 18:10:41 +0100 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: ; from marc@bowery.com on Fri, Jul 13, 2001 at 12:27:49PM -0400 References: <995038490.18213.1.camel@locutus.libc.org> Message-ID: <20010713181041.H27543@lenin.jamkit.com> * marc lindahl [010713 17:32]: > Aha. > Well, that guide gives you the essential clue -- the naming convention in > default_stylesheet so you can look at the file and tell what's affecting > what on the page. > Thing is, the fonts are highly dependant on your browser type and user > settings. I'll second that - I just spent ages trying to sort them out. For example, it turns out that almost every browser neglects to inherit font properties through a table element. Be warned, it's a bit of a minefield. I did manage to sort it out in the end, though. seb From marc@bowery.com Fri Jul 13 17:36:35 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 13 Jul 2001 12:36:35 -0400 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: <20010713181041.H27543@lenin.jamkit.com> Message-ID: > From: seb bacon > > I'll second that - I just spent ages trying to sort them out. For > example, it turns out that almost every browser neglects to inherit > font properties through a table element. Be warned, it's a bit of a > minefield. I did manage to sort it out in the end, though. If you can capsulize your information, then perhaps you can make a default_stylesheet font guide! :) From seb@jamkit.com Fri Jul 13 18:17:12 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 13 Jul 2001 18:17:12 +0100 Subject: [Zope-CMF] Stylesheet guide In-Reply-To: ; from marc@bowery.com on Fri, Jul 13, 2001 at 12:36:35PM -0400 References: <20010713181041.H27543@lenin.jamkit.com> Message-ID: <20010713181712.I27543@lenin.jamkit.com> * marc lindahl [010713 17:41]: > > > > From: seb bacon > > > > I'll second that - I just spent ages trying to sort them out. For > > example, it turns out that almost every browser neglects to inherit > > font properties through a table element. Be warned, it's a bit of a > > minefield. I did manage to sort it out in the end, though. > > If you can capsulize your information, then perhaps you can make a > default_stylesheet font guide! :) Sadly, it was for my own skins rather than the CMFDefault ones... From augusto@artlover.com Fri Jul 13 18:04:49 2001 From: augusto@artlover.com (Ausum) Date: Fri, 13 Jul 2001 12:04:49 -0500 Subject: [Zope-CMF] How to save extra data with CMF-object References: <994984044.10778.1.camel@locutus.libc.org> Message-ID: <3B4F2A31.2738E764@artlover.com> Please let me ask this way: Would the added custom properties be catalogaware? If not, what should we do to turn them so? Ausum Bill Anderson wrote: > > On 12 Jul 2001 19:53:28 -0400, marc lindahl wrote: > > > > > > > From: Tres Seaver > > > > > > > > > It turns out that CMFDefault.DefaultDublinCoreImpl derives > > > (for unknown reasons) from PropertyManager; therefore, virtually > > > all content objects can have custom properties added to them! > > > > Would that also mean they're automatically indexed in catalog too? > > > > No. not as far as I would guess. For soemthing to be indexed, the > catalog needs to know about it. If you added it to the catalog, then I > would hazard to say that it would participate in the cataloging. I > should ba able to report the veracity of said guess tonight (MST). > > Bill > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@digicool.com Fri Jul 13 16:29:35 2001 From: tseaver@digicool.com (Tres Seaver) Date: Fri, 13 Jul 2001 11:29:35 -0400 Subject: [Zope-CMF] Skinned Folders Message-ID: <3B4F13DF.42EA0A8F@digicool.com> Christoph Schirmer wrote: > As I didn=B4t find any documentation on the cmf site, could someone ple= ase explain > Skinned Folders, in comparison to Folders or Portal Folders? When shoul= d one use > Skinned Folders? SkinnedFolder exists to allow the site manager to define a "folderish" type with consistent skins: rather than relying on acquiring 'index_html= ', instances which have SkinnedFolder as their underlying implementation can share a specific, named view. For instance, one might prefer not to create an 'index_html' document in a new member folders; instead, each member folder's view would provide a uniform view on the member's contents, etc. To accomplish this, one might create a SkinnedFolder derivative, 'MemberFolder', and arrange to have it created by the membership tool. Tres. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From lemaitre@dive.com.mx Fri Jul 13 22:48:42 2001 From: lemaitre@dive.com.mx (Felipe Lemaitre) Date: Fri, 13 Jul 2001 16:48:42 -0500 Subject: [Zope-CMF] Offer to help in documentation process of CMF Message-ID: <3B4F6CBA.1096FA61@dive.com.mx> Dear zope team I would like to help in the process of ordering and creating the CMF documentation. Please instruct me the place the proyect is located and also who I should contact. thaks felipe From khine@btinternet.com Sat Jul 14 00:04:18 2001 From: khine@btinternet.com (Norman Khine) Date: Sat, 14 Jul 2001 00:04:18 +0100 Subject: [Zope-CMF] ProxyPass weirdness Message-ID: Hello, I've set up a CMF portal on my zope server which sits behind apache, I have configured apache as discussed in the http://www.zope.org/Members/anser/apache_zserver/ Now everytime I go to my site I am able to access it and all works fine, until I link to the home page, which points http://mysite.com/, well you might say that thats where my home page is and yes you are right, BUT the CMF decides to log me out / or log out any of the users that are loged in. I had experienced the same "weirdness" on the cmf site; if you log in and then link to the HOME button you will be loged out. BUT clicking on any other pages, then you become loged in -- is it something to do with the also in the URI I get double //, so that on my browser every link is as follows http://www.mysite.com//recent_news - when I click on the on the recent news; this repeats for all other links!!! Any ideas, why that is. many thanks Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From gregoire.weber@switzerland.org Sat Jul 14 00:57:35 2001 From: gregoire.weber@switzerland.org (=?iso-8859-1?Q?Gr=E9goire?= Weber) Date: Sat, 14 Jul 2001 01:57:35 +0200 Subject: [Zope-CMF] Bug: 'TypeError: cannot convert string to tuple' in metadata_edit In-Reply-To: <20010713174640.E27543@lenin.jamkit.com> References: <3.0.6.32.20010713175045.0113a720@pop.dplanet.ch> <3.0.6.32.20010713175045.0113a720@pop.dplanet.ch> Message-ID: <3.0.6.32.20010714015735.01d9bec0@pop.dplanet.ch> Hi Seb, > > When I call metadata_edit directly from the browser with a=20 > > parameter which is internaly represented by a tuple like=20 > > 'contributors' or subject I get a error, if the parameter > > occurs once only: > > http://path/to/obj/metadata_edit?contributors=3Dx >=20 > This is what the type coercion rules are for: >=20 > http://path/to/obj/metadata_edit?contributors:list=3Dx You're right. This works! And http://path/to/obj/metadata_edit?contributors:lines=3Dx also. > Your patch is a more robust way of dealing with this kind of > thing, though. I wonder where the responsibility for ensuring type > correctness should lie? That's a good question! I don't see the implications in depth! The question is: Are these types real types describing the datas structure or the datas presentation (in HTML)? Consider this (original code snippet out of metadata_edit_form): Comment out / delete this to ignore controlled vocabulary=20 for Subject.
The question which arrises (for me): Is subject of type lines or of type list? Hmmm! I had some problems a few days ago when I customized=20 metadata_edit_form by puting the > > Comment out / delete this to ignore controlled vocabulary=20 > for Subject. > >
> >=20 > The question which arrises (for me): > Is subject of type lines or of type list? Hmmm! The issue is not whether subject is of those types (it is neither), but how you want to have ZPublisher marshall the 'subject' form variable: - ':list' says to ZPublisher, "Marshall this variable as a list, with an entry for each distinct value passed by the browser, even when the browser supplies only one value; =20 - ':lines' says, "Split the single value supplied by the browser into mutiple values, breaking at newlines; =20 - ':tokens' says, "Split the single value supplied by the browser into mutiple values, breaking at spaces; - ':int' says, "Convert the value supplied by the browser into an integer." etc. =20 > I had some problems a few days ago when I customized=20 > metadata_edit_form by puting the ^^^^^ Results in something like that: ['select-para3', ['textarea-para1', 'textarea-para2']]) In the original order you get one list without sublist: ^^^^^ Hmmmm? It seems to depend in which order you code your form and (what's really bad!) how the browser groups the parameters. So, does ZPublisher do his job correctly? Should he not append the 'subject:lines' parameters to the=20 list instead of inserting them as a list into the top list? To check this yourself: have a look at the original=20 metadata_edit_form in CMF 1.1. Greg _____________________________________ Gr=E9goire Weber Rigistr. 31 CH-8006 Z=FCrich Switzerland phone: +41-(0)1-361 66 11 mobile: +41-(0)79-44 11 457 mailto:gregoire.weber@switzerland.org From bkc@murkworks.com Sat Jul 14 21:50:45 2001 From: bkc@murkworks.com (Brad Clements) Date: Sat, 14 Jul 2001 16:50:45 -0400 Subject: [Zope-CMF] How to edit Zclass Portal Content PropertySheets? In-Reply-To: <20010705160813.L25562@lenin.jamkit.com> Message-ID: <3B507966.9387.4775FDC0@localhost> I have a few zclasses, some with 5 or 6 propertysheets and views (with different rights) I've rebased this to be based on CMFCore:PortalContent Now I'm trying to figure out the best (ie, easiest) way to get these property sheets to look like they belong in a CMF edit screen. I'd like to have management-like tabs on a single CMF Edit action page.. But I'd settle for just about anything that can produce CMF skinned propertysheet pages from my existing ZClass propertysheets without having me manually create view/edit methods for each sheet. Can someone suggest how I can get Zclass property sheets to work correctly under CMF? IE, instead of using myObject/propertysheets/sheet1/manage .. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From marc@bowery.com Sat Jul 14 23:33:20 2001 From: marc@bowery.com (marc lindahl) Date: Sat, 14 Jul 2001 18:33:20 -0400 Subject: [Zope-CMF] How to edit Zclass Portal Content PropertySheets? In-Reply-To: <3B507966.9387.4775FDC0@localhost> Message-ID: You are going to have to make your own skin methods... just take the code from the property sheet editing forms, and jam it into something like the metadata_edit_form.... > From: "Brad Clements" > Organization: MurkWorks, Incorporated. > > Can someone suggest how I can get Zclass property sheets to work correctly > under > CMF? IE, instead of using myObject/propertysheets/sheet1/manage .. From wilson@visi.com Sun Jul 15 03:47:44 2001 From: wilson@visi.com (Timothy Wilson) Date: Sat, 14 Jul 2001 21:47:44 -0500 (CDT) Subject: [Zope-CMF] Entering "Subjects" (are those Topics?) In-Reply-To: <20010713102515.S27543@lenin.jamkit.com> Message-ID: On Fri, 13 Jul 2001, seb bacon wrote: > * Timothy Wilson [010713 06:00]: > > I've created a Topic object in the root of my CMF and put a sub-topic within > > that. It would appear that the options listed in the "Subject" box when > > adding content correspond to the various Topics. Is that correct? If so, > > what do I have to do to start making item appear in the Subject selection > > box? > > No, the 'subject' items on the metadata edit form can either be one or > more freeform keywords, or you can predefine them using the > portal_metadata tool. Depending on the strategy you want to follow, > you might want to edit the source of the metadata_edit_form (you'll > see some comments there regarding this). I just found Tres's How-To on configuring the metadata tool. I think this will get me going. (http://cmf.zope.org/Members/tseaver/how_tos/configuring_metadata_tool) This brings me back to my point about the need for some way of finding content via browsing. The How-To's on Zope.org are an invaluable source of documentation and they could be similarly important for the CMF. The CMF site needs to categorize this content and present a page listing all the How-To's that have been published. (Like Zope.org does.) (I realize there's no pre-defined "How-To" content type on the CMF site.) Presumably a lot of visitors don't try to find things by searching alone. Not to mention the fact that search engines are largely useless to persons (newbies) who don't know what they're searching for yet. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From marc@bowery.com Sun Jul 15 06:15:16 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 15 Jul 2001 01:15:16 -0400 Subject: [Zope-CMF] Entering "Subjects" (are those Topics?) In-Reply-To: Message-ID: > From: Timothy Wilson > > I just found Tres's How-To on configuring the metadata tool. I think this > will get me > going. (http://cmf.zope.org/Members/tseaver/how_tos/configuring_metadata_tool) I have some stuff about metadata, check the link from my cmf page, http://cmf.zope.org/Members/bowerymarc, as I went thru this with Subject metadata (you could also go to the search page on the main zope site and search the lists and check out the many threads on this subject) From augusto@artlover.com Sun Jul 15 10:34:04 2001 From: augusto@artlover.com (Ausum) Date: Sun, 15 Jul 2001 04:34:04 -0500 Subject: [Zope-CMF] 'Retracted' and 'Rejected' resource status Message-ID: <3B51638C.5C360BBC@artlover.com> When a contributor submit a new resource to publish, it's pretty clear for the reviewer that he has pending resources to review. But what happens when any of those are rejected? In the current CMF release that resource resumes its private condition, but the contributor doesn't know it until he finds out, by not seeing the document published, or by opening it again. In both cases, the contributor has to look after the document. At the reviewer's side, when a resource has been retracted by the owner, the reviewer doesn't know it just the same way, at least until the owner submits it again. Considering that the reviewer had previously authorized its publication, it might be of his business to get to know whether the documents are still published or not. This is where the "retracted" and "rejected" resource status are needed. The reviewers should need to see, in adition to those who appear as "pending", at least which are and how many documents are retracted, and in my opinion, also which are and how many he has rejected, therefore having the option to revaluate his previous decision. The contributors at their turn ought to see their rejected material without looking after them, as they might need to resubmit them the sooner the rejection occurs; and also the retracted ones, because it could be possible that he needs to resubmit the document and forget to do it, in the absence of any status message warning their existence. IMHO this is a framework-related request, because they're missing status of existing actions. I swear I tried to dive into the code but guess I must learn more about CMF's core and Python as well. Derived status like "unpublish blocked", "asked for unpublish" or "pending resubmit", seem to be manageable trough skins or regular dtml stuff, if I'm not wrong. What does the list think about this? Ausum From augusto@artlover.com Sun Jul 15 14:17:38 2001 From: augusto@artlover.com (Ausum) Date: Sun, 15 Jul 2001 08:17:38 -0500 Subject: [Zope-CMF] 'Retracted' and 'Rejected' resource status References: <3B51638C.5C360BBC@artlover.com> Message-ID: <3B5197F2.7C1BD653@artlover.com> All right. After installed the latest DCWorkflow from CVS, I would only insist on this subject, with the default_workflow in mind, meaning the 'out of the box' experience :) Ausum I previously wrote: > > When a contributor submit a new resource to publish, it's pretty clear > for the reviewer that he has pending resources to review. But what > happens when any of those are rejected? In the current CMF release that > resource resumes its private condition, but the contributor doesn't know > it until he finds out, by not seeing the document published, or by > opening it again. In both cases, the contributor has to look after the > document. > (...) From bkc@murkworks.com Sun Jul 15 22:05:06 2001 From: bkc@murkworks.com (Brad Clements) Date: Sun, 15 Jul 2001 17:05:06 -0400 Subject: [Zope-CMF] Manager gets Unauthorized from Zclass portal content and ZPT with Parsed XML Message-ID: <3B51CE3E.7444.4CA97634@localhost> This may be a bug.. I had a zclass with a few methods. One of the methods is a DTML Document that uses a Parsed XML document (which also a method of the zclass) to dynamically generate javascript output. A higher level ZPT calls the DTML Document. When I used this class instance as just a ZClass, it worked fine. However I've rebased the zclass to be based on ZObject, _ZClass_for_PortalContent, _ZClass_for_DefaultDublinCoreImpl . Now, when logged into the CMF as manager (i'm defined in the root level acl_users), I get an Unauthorized exception when trying to traverse the DOM in the ParsedXML doc within the DTML Document called from the ZPT in the zclass instance. Anyone have any ideas how to track this down? Also the same exception occurs if I change the DTML Document to a DTML Method Versions Zope 2.3.3 on RH Linux 7.1 Page Templates 1.3.2 CMF-1.1 (says beta in version.txt that's a release bug I think) ParsedXML 1.1b1 Here are some fragments. -- the players -- CategoriesToJava (DTML Method or Document fails either way) Edit (Page Template) Product Categories (Parsed XML) -- some code -- Page Template (Edit)

snip ... DTML Method (CategoriesToJava) And the exception traceback Site Error An error was encountered while publishing this resource. Unauthorized You are not authorized to access ProductCategories. Traceback (innermost last): File /usr/holmes/AdkWood/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/holmes/AdkWood/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/holmes/AdkWood/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/holmes/AdkWood/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: Edit) File /usr/holmes/AdkWood/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: Edit) File /usr/holmes/AdkWood/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: Edit) File /usr/holmes/AdkWood/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: Edit) File /usr/holmes/Zope-2.3.3/lib/python/Products/PageTemplates/ZopePageTemplate.py, line 244, in _exec (Object: Edit) File /usr/holmes/Zope-2.3.3/lib/python/Products/PageTemplates/PageTemplate.py, line 156, in pt_render (Object: Edit) (Info: {'container': , 'here': , 'modules': , 'nothing': None, 'options': {'args': ()}, 'request':

form

cookies

References: <010c01c10bb3$68d055e0$0a01a8c0@stravinsky> <87ae25tla5.fsf@thingamy.net> Message-ID: <01071609183001.01702@squidbitch.mmmanager.org> On Monday 16 July 2001 08:56, you wrote: > [Robert Rottermann] > > | I would sugest to split such a howto in chapters each one talking on > | on particular tool. > > Sounds like an idea. > > | This would mean to first scetch an "extensable" boring product. > > Yes. I can have one up and running with in a day or three. > > | If you would detail me one of the parts, I would add one chapter. > > Once I've got the product up and running (bells and whistles turned > on) we can look at what needs to be done on the documentation part. > > Thanks! :) I have been thinking of a CMF Book (something like the Zope Book). It shouldn't cover the same aspects as the Zope Book does, but perhaps tell about all the things you need to be aware of when creating a "portal product". Is this a good or a bad idea ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: If somebody (you? hint, hint) wants to do this, I'd be very happy -- I can do it myself, but because it's my birthday I'm supposed to drag myself off the computer soon and be social, or Tove will be grumpy. And you don't want Tove grumpy. - Linus Torvalds From aeamalik@yahoo.com Mon Jul 16 09:09:00 2001 From: aeamalik@yahoo.com (Amr Malik) Date: Mon, 16 Jul 2001 01:09:00 -0700 (PDT) Subject: Fw: [Zope-CMF] Boring CMF Product. In-Reply-To: <01071609183001.01702@squidbitch.mmmanager.org> Message-ID: <20010716080900.78726.qmail@web11608.mail.yahoo.com> --- Gitte Wange wrote: much good stuff snipped... > > I have been thinking of a CMF Book (something like the Zope Book). > It shouldn't cover the same aspects as the Zope Book does, but perhaps tell > about all the things you need to be aware of when creating a "portal > product". > > Is this a good or a bad idea ? I'm just getting started with CMF, and the question is not directed to me, but I'll just jump in anyway ..(in my usual idiom). In my newbie opinion, *** I think its an awesome idea! *** The 5th chapter from the BeeHive book is very helpful too, Dunno if the ZWACK book uses CMF as the platform to build their whole sample app or is it only just in that chapter that deals with CMF. But, the more the merrier! :) -Amr P.S. If you decide to go with a "zoo" metaphor, please include some leaping lemurs in the cast! or maybe a couple of large swallows if possible hehehe.. (I would just as soon have a real world example though! ;) __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From seb@jamkit.com Mon Jul 16 10:21:06 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Jul 2001 10:21:06 +0100 Subject: [Zope-CMF] Virtual hosting of cmf In-Reply-To: <995231340.27809.0.camel@theo.home>; from mehmety@auslin.com.au on Mon, Jul 16, 2001 at 07:09:00AM +1000 References: <995231340.27809.0.camel@theo.home> Message-ID: <20010716102103.A17589@lenin.jamkit.com> * Mehmet Yousouf [010716 05:11]: > Hi, > I've set up CMF and have it working, started modifying the default > (it'll be great when there is some documentation available) install. > Now my problem is (not major as I could arrange things differently, > but...) if I set up a cmf site with a virtualhostmonster, the links end > up showing the full path (http://foo.bar/virtual/this-site/whatever_page > as opposed to http://foo.bar/whatever_page). Is there a way to specify > links so they dont do this? Yes, with a a strategic insertion of a VirtualHostBase into the URL. It's there in the documentation for the VirtualHostMonster - just click on a monster you've already added and it tells you all about it. seb From seb@jamkit.com Mon Jul 16 10:48:02 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Jul 2001 10:48:02 +0100 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) In-Reply-To: <01071609183001.01702@squidbitch.mmmanager.org>; from gitte@mmmanager.org on Mon, Jul 16, 2001 at 09:18:30AM +0200 References: <010c01c10bb3$68d055e0$0a01a8c0@stravinsky> <87ae25tla5.fsf@thingamy.net> <01071609183001.01702@squidbitch.mmmanager.org> Message-ID: <20010716104801.B17589@lenin.jamkit.com> * Gitte Wange [010716 08:25]: > On Monday 16 July 2001 08:56, you wrote: > > [Robert Rottermann] > > > > | I would sugest to split such a howto in chapters each one talking on > > | on particular tool. > > > > Sounds like an idea. > > > > | This would mean to first scetch an "extensable" boring product. > > > > Yes. I can have one up and running with in a day or three. > > > > | If you would detail me one of the parts, I would add one chapter. > > > > Once I've got the product up and running (bells and whistles turned > > on) we can look at what needs to be done on the documentation part. > > > > Thanks! :) > > I have been thinking of a CMF Book (something like the Zope Book). > It shouldn't cover the same aspects as the Zope Book does, but perhaps tell > about all the things you need to be aware of when creating a "portal product". > > Is this a good or a bad idea ? I think this is an excellent idea. I've been thinking a lot about audiences lately, and feel that it's very important to identify and prioritise the different possible targets for documentation, before getting stuck into actually writing it. It strikes me that there is a gaping hole in the CMF, between TTW site creation, and Product-based site creationl. The distinction could be phrased in a number of ways: technical focus - business focus python - dtml interfaces - implementation resources to develop custom system - no resources 'zope zen' - beginner The presentation of the framework is currently very PythonProductDeveloper (PPD) oriented. It comes down firmly in the first column. This is, overall, a good thing. It's still a young product and I'm happy that the focus is on interfaces rather than implementation. It gives me confidence that the CMF will be able to grow into a complex system with the minimum of pain. So, the CMF is driven by (excellent) technical design considerations, and is at core a set of interfaces. The CMFDefault is just one implementation of these interfaces. I think most newcomers to the CMF don't understand this, and want to be able to build any site using the CMFDefault, which is really not suited to the kind of template-driven CMS which many people are apparently after. So my point is, at whom should the documentation be addressed? Those with the greatest need are those in the right hand column, but I don't feel documentation of a set of interfaces and an example implementation is what they really need at the moment. Rather, I think the community should be building more CMF-based systems which can be used to solve standard business problems out of the box - then we should document them. An example is Ausum's (and others') points about refining the DefaultWorkflow. His ideas are absolutely right, but where do they belong? The CMFDefault is designed to solve the zope.org membership / content creation problem. Should it be extended with new ideas which might be aimed at solving other problems? Which problems are we trying to solve anyway? With the CMF as it stands at the moment, the two possible focuses for documentation are 1) PPD documentation 2) CMFDefault TTW documentation (a user's manual) Apart from this, I'd like to see a push towards 1) defining the common business problems we think can be solved with the cmf 2) implmenting solutions :-) It would be great, for example, if there was a standard place for finding new workflows, plus some instructions on how to install them. Then we could move towards case studies showing how various CMF components can be assembled to create the right solution. I'd better stop before this email gets too long. Does this strike a chord with anyone else? And just one other quick point: did anyone say what was wrong with building on CMFCalendar as an example product? That's what it was made for originally. cheers seb From seb@jamkit.com Mon Jul 16 10:50:52 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Jul 2001 10:50:52 +0100 Subject: [Zope-CMF] 'Retracted' and 'Rejected' resource status In-Reply-To: <3B51638C.5C360BBC@artlover.com>; from augusto@artlover.com on Sun, Jul 15, 2001 at 04:34:04AM -0500 References: <3B51638C.5C360BBC@artlover.com> Message-ID: <20010716105050.C17589@lenin.jamkit.com> < snip ideas about more states in the workflow > > What does the list think about this? I think you're absolutely right. Now you've found DCWorkflow, hopefully you can better understand how to implement your ideas? See my other rambling mail about documentation for how I think any changes should be shared in the community. seb From erik@thingamy.net Mon Jul 16 10:31:30 2001 From: erik@thingamy.net (Erik Enge) Date: 16 Jul 2001 11:31:30 +0200 Subject: [Zope-CMF] Re: Documentation / audiences (was Boring CMF Product) In-Reply-To: <20010716104801.B17589@lenin.jamkit.com> References: <010c01c10bb3$68d055e0$0a01a8c0@stravinsky> <87ae25tla5.fsf@thingamy.net> <01071609183001.01702@squidbitch.mmmanager.org> <20010716104801.B17589@lenin.jamkit.com> Message-ID: <87snfxqky5.fsf@thingamy.net> [seb bacon] | So my point is, at whom should the documentation be addressed? I spent about three days grokking CMF. I would've liked to grokked it in half an hour. With a Boring Product and an accompanying How-To that would've been possible. Ok, maybe not half an hour, but at least not a full days effort. (Maybe I'm slow, I don't know :) So, speaking from my own perspective: the documentation I write will be addressed to people in my situation; PPD's. | And just one other quick point: did anyone say what was wrong with | building on CMFCalendar as an example product? The problem, if there is one, as I see it is that CMFCalendar is intended to be integrated into a bigger workflow. It has a mission in CMFDefault. To understand CMFCalendar it is important to understand how it is intended to be used, so you know what all the stach is there for. A Boring Product shouldn't do the world any good, whatsoever, besides exposing the interfaces to a developer. The most important thing the CMFCalendar is lacking, though, is an accompanying How-To, explaining (sometimes implicit intricacies) of the interfaces available. From a PPD's point-of-view, that's what I feel the CMF is missing. From timhoffman@cams.wa.gov.au Mon Jul 16 10:32:48 2001 From: timhoffman@cams.wa.gov.au (Tim Hoffman) Date: Mon, 16 Jul 2001 17:32:48 +0800 Subject: [Zope-CMF] ?how to override default content-type when putting files with FTP Message-ID: <3B52B4C0.2020707@cams.wa.gov.au> Hi I am building a CMF site, with a number of customized (ZClass based for the moment) Portal content types. I will need to bulk upload images (which have a new Portal type based on CMFOptions ExtImage) which I am calling ArtWorkMedia, the parent Folder is ArtWorkFolder. ArtWorkFolder is defined to only allows content-types of ArtWorkMedia and ArtWorkMediaThumbnail, however when I upload images into an ArtWorkFolder they are uploaded as Portal Image, which is pretty much what I expected (though I half expected an error). Obviously I have to override the default behaviour/portal_type for the images uploaded by ftp/webdav but I am having trouble working out how/where I can/should do this. Could someone give me a pointer. Thanks Tim Hoffman From vaulnette@yahoo.fr Mon Jul 16 11:03:18 2001 From: vaulnette@yahoo.fr (=?iso-8859-1?q?Val=E9rie=20Aulnette?=) Date: Mon, 16 Jul 2001 12:03:18 +0200 (CEST) Subject: [Zope-CMF] Overloading method Message-ID: <20010716100318.97307.qmail@web13406.mail.yahoo.com> Hi ! I would like to overload the methods addDocument, addFile, addNewsItem... in CMFDefault but I can't manage doing it as they doesn't belong to a class. What could you suggest me to do ? Thank you.. Valérie. ___________________________________________________________ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com From jon@pcgs.freeserve.co.uk Mon Jul 16 11:29:13 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 16 Jul 2001 11:29:13 +0100 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) Message-ID: seb wrote - > And just one other quick point: did anyone say what was wrong with > building on CMFCalendar as an example product? That's what it was > made for originally. There's also the Portal Poll Product Tutorial - http://cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial Cheers, Jon From gitte@mmmanager.org Mon Jul 16 11:32:10 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Mon, 16 Jul 2001 12:32:10 +0200 Subject: [Zope-CMF] Re: Documentation / audiences (was Boring CMF Product) In-Reply-To: <87snfxqky5.fsf@thingamy.net> References: <010c01c10bb3$68d055e0$0a01a8c0@stravinsky> <20010716104801.B17589@lenin.jamkit.com> <87snfxqky5.fsf@thingamy.net> Message-ID: <01071612321006.01702@squidbitch.mmmanager.org> On Monday 16 July 2001 11:31, you wrote: > [seb bacon] > > | So my point is, at whom should the documentation be addressed? > > I spent about three days grokking CMF. I would've liked to grokked it > in half an hour. With a Boring Product and an accompanying How-To > that would've been possible. Ok, maybe not half an hour, but at least > not a full days effort. (Maybe I'm slow, I don't know :) Well I have spent very long time in order to understand Zope and CMF so no - I don't think you are slow :-) > So, speaking from my own perspective: the documentation I write will > be addressed to people in my situation; PPD's. > > | And just one other quick point: did anyone say what was wrong with > | building on CMFCalendar as an example product? > > The problem, if there is one, as I see it is that CMFCalendar is > intended to be integrated into a bigger workflow. It has a mission in > CMFDefault. To understand CMFCalendar it is important to understand > how it is intended to be used, so you know what all the stach is there > for. Well I have had great use of the Calendar Product (or just the Event module) in order to create a customized Live event product. It worked very well for me to have this module as a "background" but now my Live event product is dependant on the Calendar product. Another thing is that the code wasn't well documented so it made a little harder - but it is possible. I have also - before I knew anbout the Type attribute - made a "copy" of the Document product and created a documentation type. > A Boring Product shouldn't do the world any good, whatsoever, besides > exposing the interfaces to a developer. My thoughts exactly - but in a way that is what the calendar product does. Regards, From erik@thingamy.net Mon Jul 16 11:32:46 2001 From: erik@thingamy.net (Erik Enge) Date: 16 Jul 2001 12:32:46 +0200 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) In-Reply-To: References: Message-ID: <877kx9qi41.fsf@thingamy.net> [Jon Edwards] | There's also the Portal Poll Product Tutorial - | http://cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial Gives me a Site Error; Resource not found. From erik@thingamy.net Mon Jul 16 11:45:07 2001 From: erik@thingamy.net (Erik Enge) Date: 16 Jul 2001 12:45:07 +0200 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) In-Reply-To: <877kx9qi41.fsf@thingamy.net> References: <877kx9qi41.fsf@thingamy.net> Message-ID: <87y9ppp2z0.fsf@thingamy.net> [Erik Enge] | [Jon Edwards] | | | There's also the Portal Poll Product Tutorial - | | http://cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial | | Gives me a Site Error; Resource not found. Oops. My bad. I logged in, and everything is working. Or I did some other little nit-bit to mess it up. Whatever :) From paul@digicool.com Mon Jul 16 11:51:17 2001 From: paul@digicool.com (Paul Everitt) Date: Mon, 16 Jul 2001 06:51:17 -0400 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) In-Reply-To: <20010716104801.B17589@lenin.jamkit.com> Message-ID: On 7/16/01 5:48 AM, "seb bacon" wrote: >> Gitte (I think) wrote: >> I have been thinking of a CMF Book (something like the Zope Book). >> It shouldn't cover the same aspects as the Zope Book does, but perhaps tell >> about all the things you need to be aware of when creating a "portal >> product". >> >> Is this a good or a bad idea ? I also think this is a good idea. In fact, I'd strengthen it and say, instead of "like the Zope Book", just make the CMF a section of the Zope Book. The Zope Book (ZB) is meant to be a living creature that is updated before every new Zope release goes out. We at DC are committed to this. The CMF is likely on its track to the same kind of status. This means that the work done by us over here in the CMF can be "maintained" once written by a group that includes the DC documentation team (Amos and Michel). I've already talked with Amos about this. He thinks it's a fine idea to extend the two books (Zope Book and Zope Developers Guide) with sections of chapters to cover the CMF for the two audiences. We then won't have to argue about machinery, etc. Downside is that the ZB and ZDG don't use the CMF or Zope for authoring, they use CVS. But being pretty ruthless about it, the point is writing docs not choosing tools. > I think this is an excellent idea. I've been thinking a lot about > audiences lately, and feel that it's very important to identify and > prioritise the different possible targets for documentation, before > getting stuck into actually writing it. The work on the ZB and ZDG tried to standardize audience jargon a bit, so perhaps we could leverage that. I'm in 100% agreement on the need. > It strikes me that there is a gaping hole in the CMF, between TTW site > creation, and Product-based site creationl. The distinction could be > phrased in a number of ways: > > technical focus - business focus > python - dtml > interfaces - implementation > resources to develop custom system - no resources > 'zope zen' - beginner I think there's an continuum of audiences (I might not have the jargon from the Zope Book right): business decisionmaker -> content author -> site designer -> site developer -> component developer -> site administrator > The presentation of the framework is currently very Agreed. I had some half-done material for a CMF Reviewer's Guide and some other stuff. Shoulda finished it. :^( > PythonProductDeveloper (PPD) oriented. It comes down firmly in the > first column. This is, overall, a good thing. It's still a young > product and I'm happy that the focus is on interfaces rather than > implementation. It gives me confidence that the CMF will be able to > grow into a complex system with the minimum of pain. > > So, the CMF is driven by (excellent) technical design considerations, > and is at core a set of interfaces. The CMFDefault is just one > implementation of these interfaces. I think most newcomers to the CMF don't > understand this, and want to be able to build any site using the > CMFDefault, which is really not suited to the kind of template-driven > CMS which many people are apparently after. I agree that this is an important point and isn't emphasized enough. Some feel this point is one of the top 5 business things about the CMF -- instead of being *your* CMS, it lets you quickly adapt or build your CMS. Stated a different way...with Interwoven etc., you pay a bunch of money and get their CMS. If you spend a bunch of more money, you can turn it into *your* CMS. Ours is designed to quickly and cheaply build *your* CMS. At least that's the theory. :^) > So my point is, at whom should the documentation be addressed? Those > with the greatest need are those in the right hand column, but I don't > feel documentation of a set of interfaces and an example > implementation is what they really need at the moment. Rather, I I agree that this isn't the greatest need. > think the community should be building more CMF-based systems which > can be used to solve standard business problems out of the box - then > we should document them. An example is Ausum's (and others') points > about refining the DefaultWorkflow. His ideas are absolutely right, > but where do they belong? The CMFDefault is designed to solve the > zope.org membership / content creation problem. Should it be extended > with new ideas which might be aimed at solving other problems? Which > problems are we trying to solve anyway? Bingo, you're hitting the documentation nail on the head. Which problems does the CMF solve, and who does it solve them for? > With the CMF as it stands at the moment, the two possible focuses for > documentation are > > 1) PPD documentation > 2) CMFDefault TTW documentation (a user's manual) I think there's a third piece, which is the 20,000ft (or 7km :^) view. What can this thing do? I'm willing to start writing a series of Zope.org spotlight articles on the kinds of problems CMF solves for content authors and site developers. Starting with: what is content management? If we decided to do this a section of chapters for the Zope Book, then this might be the first chapter. > Apart from this, I'd like to see a push towards > > 1) defining the common business problems we think can be solved with > the cmf Right, that's the problem domain of the survey chapter I was thinking about starting. > 2) implmenting solutions :-) > > It would be great, for example, if there was a standard place for > finding new workflows, plus some instructions on how to install them. > Then we could move towards case studies showing how various CMF > components can be assembled to create the right solution. Ohh, _installation_, now you wanna bring *that* up. :^) --Paul From paul@digicool.com Mon Jul 16 11:52:59 2001 From: paul@digicool.com (Paul Everitt) Date: Mon, 16 Jul 2001 06:52:59 -0400 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) Message-ID: On 7/16/01 5:48 AM, "seb bacon" wrote: >> Gitte (I think) wrote: >> I have been thinking of a CMF Book (something like the Zope Book). >> It shouldn't cover the same aspects as the Zope Book does, but perhaps tell >> about all the things you need to be aware of when creating a "portal >> product". >> >> Is this a good or a bad idea ? I also think this is a good idea. In fact, I'd strengthen it and say, instead of "like the Zope Book", just make the CMF a section of the Zope Book. The Zope Book (ZB) is meant to be a living creature that is updated before every new Zope release goes out. We at DC are committed to this. The CMF is likely on its track to the same kind of status. This means that the work done by us over here in the CMF can be "maintained" once written by a group that includes the DC documentation team (Amos and Michel). I've already talked with Amos about this. He thinks it's a fine idea to extend the two books (Zope Book and Zope Developers Guide) with sections of chapters to cover the CMF for the two audiences. We then won't have to argue about machinery, etc. Downside is that the ZB and ZDG don't use the CMF or Zope for authoring, they use CVS. But being pretty ruthless about it, the point is writing docs not choosing tools. > I think this is an excellent idea. I've been thinking a lot about > audiences lately, and feel that it's very important to identify and > prioritise the different possible targets for documentation, before > getting stuck into actually writing it. The work on the ZB and ZDG tried to standardize audience jargon a bit, so perhaps we could leverage that. I'm in 100% agreement on the need. > It strikes me that there is a gaping hole in the CMF, between TTW site > creation, and Product-based site creationl. The distinction could be > phrased in a number of ways: > > technical focus - business focus > python - dtml > interfaces - implementation > resources to develop custom system - no resources > 'zope zen' - beginner I think there's an continuum of audiences (I might not have the jargon from the Zope Book right): business decisionmaker -> content author -> site designer -> site developer -> component developer -> site administrator > The presentation of the framework is currently very Agreed. I had some half-done material for a CMF Reviewer's Guide and some other stuff. Shoulda finished it. :^( > PythonProductDeveloper (PPD) oriented. It comes down firmly in the > first column. This is, overall, a good thing. It's still a young > product and I'm happy that the focus is on interfaces rather than > implementation. It gives me confidence that the CMF will be able to > grow into a complex system with the minimum of pain. > > So, the CMF is driven by (excellent) technical design considerations, > and is at core a set of interfaces. The CMFDefault is just one > implementation of these interfaces. I think most newcomers to the CMF don't > understand this, and want to be able to build any site using the > CMFDefault, which is really not suited to the kind of template-driven > CMS which many people are apparently after. I agree that this is an important point and isn't emphasized enough. Some feel this point is one of the top 5 business things about the CMF -- instead of being *your* CMS, it lets you quickly adapt or build your CMS. Stated a different way...with Interwoven etc., you pay a bunch of money and get their CMS. If you spend a bunch of more money, you can turn it into *your* CMS. Ours is designed to quickly and cheaply build *your* CMS. At least that's the theory. :^) > So my point is, at whom should the documentation be addressed? Those > with the greatest need are those in the right hand column, but I don't > feel documentation of a set of interfaces and an example > implementation is what they really need at the moment. Rather, I I agree that this isn't the greatest need. > think the community should be building more CMF-based systems which > can be used to solve standard business problems out of the box - then > we should document them. An example is Ausum's (and others') points > about refining the DefaultWorkflow. His ideas are absolutely right, > but where do they belong? The CMFDefault is designed to solve the > zope.org membership / content creation problem. Should it be extended > with new ideas which might be aimed at solving other problems? Which > problems are we trying to solve anyway? Bingo, you're hitting the documentation nail on the head. Which problems does the CMF solve, and who does it solve them for? > With the CMF as it stands at the moment, the two possible focuses for > documentation are > > 1) PPD documentation > 2) CMFDefault TTW documentation (a user's manual) I think there's a third piece, which is the 20,000ft (or 7km :^) view. What can this thing do? I'm willing to start writing a series of Zope.org spotlight articles on the kinds of problems CMF solves for content authors and site developers. Starting with: what is content management? If we decided to do this a section of chapters for the Zope Book, then this might be the first chapter. > Apart from this, I'd like to see a push towards > > 1) defining the common business problems we think can be solved with > the cmf Right, that's the problem domain of the survey chapter I was thinking about starting. > 2) implmenting solutions :-) > > It would be great, for example, if there was a standard place for > finding new workflows, plus some instructions on how to install them. > Then we could move towards case studies showing how various CMF > components can be assembled to create the right solution. Ohh, _installation_, now you wanna bring *that* up. :^) --Paul From arkaitz@euskalcom.net Mon Jul 16 12:54:40 2001 From: arkaitz@euskalcom.net (Arkaitz Bitorika) Date: 16 Jul 2001 13:54:40 +0200 Subject: [Zope-CMF] relative URLs in STX Message-ID: <995284482.1225.32.camel@basajaun> Hi, I=B4m trying to use relative URLs in structured text documents, and I've found a problem with them. I have a folder tree like mySite/folder1/folder2/doc, where "doc" is a Document object, and I try to create a link to "doc" in the description field of folder2 with: "The document":doc. This renders to something like The document. So far so good, but when clicking in the "The document" link while viewing "folder2", the browser links to mySite/folder1/doc, instead of mySite/folder1/folder2/doc. Why is this?=20 In the html page, the "base" tags seems to be correct, pointing to mySite/folder1/folder2, but the browser doesn't seem to care. If I change the STX to be "The document":folder2/doc everything works fine, but I don't like it as it is highly unintuitive for the content writers to use. Cheers, Arkaitz. From jon@pcgs.freeserve.co.uk Mon Jul 16 13:57:27 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 16 Jul 2001 13:57:27 +0100 Subject: [Zope-CMF] Documentation / audiences (was Boring CMF Product) Message-ID: > I think there's an continuum of audiences (I might not have the jargon from > the Zope Book right): > > business decisionmaker -> content author -> site designer -> site > developer -> component developer -> site administrator This is just nit-picking, but I'd see this as a circle, rather than a straight line! :-) Same principle with the marketing/advocacy ideas - there's lots of decision-influencers, all feeding opinions to each other round the circle. If you find positives to feed to all of them, it becomes a virtuous circle/spiral, in your favour. If you miss one group out, the circle breaks! Anyway enough waffle, count me in (time permitting) as a contributor, tending towards the less-technical side, but learning fast - and there's nothing like writing training/documentation to increase your own knowledge! Cheers, Jon From fm@synchrologic.com Mon Jul 16 14:06:08 2001 From: fm@synchrologic.com (Frank McGeough) Date: Mon, 16 Jul 2001 09:06:08 -0400 Subject: [Zope-CMF] Answer to syntax error problems with CMF References: Message-ID: <005601c10df8$14552760$c7010a0a@mcgeough> I finally discovered why I was getting syntax errors with CMF files --- where files had cr/lf instead of just lf. There have been a few posts to the list about this so I would imagine some other people ran into the same trouble. The extraction program that I'm using on my Windows box is Winzip. Click on the Options menu, and pick Configuration. Click on the Miscellaneous tab. Uncheck the "TAR file smart CR/LF expansion" and you'll have a much happier installation. Hope this helps others that have run into this. This is another one of those that might belong in an FAQ given the popularity of the Winzip program. Frank McGeough From augusto@artlover.com Mon Jul 16 15:53:58 2001 From: augusto@artlover.com (Ausum) Date: Mon, 16 Jul 2001 09:53:58 -0500 Subject: [Zope-CMF] Re: Dublin Core's Relation implementation References: <3B4B8DD3.446346B4@artlover.com> <20010711093918.F21871@lenin.jamkit.com> <3B4CA077.1EEABA8F@artlover.com> <20010712095447.F24387@lenin.jamkit.com> Message-ID: <3B530006.BFCC0AB7@artlover.com> Thanks, Seb, for your answer. After reading Ken's proposal, the whole concept is now clearer to me. (Although I still need help with the code) :) When I started to investigate the Portal existing tools, months ago, I realized that besides the high-end suites, there weren't good CMS solutions who could manage well all the concepts we were aiming to bring to reality. One of those concepts was a replication of the "related content" boxes found at good news portal. Autonomy does it through Story Server, and I got pleasantly surprised by its refinement. (Actually I didn't try Story Server, but I did Kenjin, a discontinued and pretty smart small app that used to find related internet/hard_disk links from whatever windows application you had in front.) Maybe it wasn't true AI, but it was very close. OrganizationObjects seem to englobe more possible situations regarding more relation cases between portal objects. If I understood it well, OObjects would retain relational information between objects, would gather the changes from objects currently related through them, and provide searching, organization and navigational tools. With a Wiki-oriented concern as a background, it considers not only the relationship between threaded objects, but all other relationships as well. My contribution to this subject is simple. I would like to suggest a conceptual abstraction that would lead us more to a complex object model, instead of a new object type. If we compare every content object to a person, we would notice that every object ought have parents and grandparents, right? Our object/people element would also have children as expected, and this would be our way of understanding linear inheritances. But wait, this object lives in a real world and it's for sure that it has more relatives. It could have brothers, cousins, friends, known people, by example. At their turn its parents have their own cluster of relatives, and the same would happen even for the remotest relative or friend, just like the real world at wich everyone of us is unique. Is there something more appropiate for an object-relation model? What happens when you want to find a remote cousin? Do you start to look for him, or just ask to your parents, trying to find out more about the big picture of its remote condition? My personal answer is number 2, and it's the core of my idea: Every content object should know who it is, who its parents are, who are their immediate relatives/friends, and some idea of their children's friends. This is basic information that every object should have (some of wich is automatically acquired) as this is the starting point to any future complex relationships. You don't need to tell everybody that you are moving from town, you just need to tell one of your relatives, who will store the information until requested, or propagate it immediately to the family. Notice that "my family", "my closest friends", or "my unborn nephews" are all results of queries (persistent or not), and not object by themselves. Is this a valid comparison? My supossition is that this would be a friendlier algorithm to the "everything-related-to-everything" current requirement, as there would be no need to deal with more objects. The hard side, I guess, is that the content object itself might have to store more than just metadata, as it might need to store automatically changed, dynamic criteria for the task of looking for other relatives, and context-dependable logic to store new data from them, as well. This is just a first approach. Any comments? :) Ausum seb bacon wrote: > > Hi, > > * Ausum [010711 19:52]: > > Just after posting my previous message I read more about this subject. > > If I'm not wrong, it looks like DC's Relation element is still a work in > > progress, and that a simple identifier (URL, URN, etc) is recommended > > for this label, by the DCMI. > > > > I think that within the context of the CMF, the Relation element, IMHO, > > should be understood as one object's engine, and not just as a > > collection of identifiers. > > Yes, I would have guessed that the best way of doing the Relation > element would be to dynamically generate it using something like ken's > OrganisationObjects[1], since URIs are liable to change. > > > Your idea, Seb, is good, but I think that > > without the aid of artificial intelligence tools (which high-end CMSs do > > have), every related resource must be found after an adjusted search, at > > a per-object basis. > > When you say 'artificial intelligence' are you referring to things > like Autonomy? Autonomy make a big song and dance about their Dynamic > Reasoning Engine, but really it's just a decent search engine with > automatic document retrieval and index discovery. Ultimately, you're > always looking at an 'adjusted search' of some kind. And as I > mentioned, a Topic *is* just a catalog search. > > > As I see it (considering all the previous), a good > > "related info" box should contain "stuck", previouly approved resources, > > and "floating" resources as well. And all this seem to need a user > > interface. > > > > So the question still remains. How would you attach a Portal Topic to a > > portal resource, as metadata? > > If I understand you correctly, you want to be able to have a list > which is made up both of dynamically retrieved, query-based data, and > a manually updated list. Topics won't give you this, since they are > basically catalog queries, and that's it. > > In order to add static references to objects which are liable to move > at any point, you'll need to implement some kind of reference > storage. This could be a catalog which indexes objects by a unique > identifier, or something more sophisticated which plays with the > not-yet-developed EventsTool. Or wait for an OrganisationObjects > implementation ;-) > > For the query part, you could add a Topic to the > DefaultDublinCoreImpl, and move the elements of its interface over > into the metadata_edit_form. You'd add a couple of get and set > methods, the get method returning the results of the topic's catalog > query. I can't think of a simple way of doing it off the top of my > head. I'd be tempted to ignore Topics and write my own version. > Hopefully someone else will have a better idea :-) > > seb > > [1] http://cmf.zope.org/rqmts/proposals/OrganizationObjects > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@palladion.com Mon Jul 16 15:58:06 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 10:58:06 -0400 (EDT) Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: <20010713101710.Q27543@lenin.jamkit.com> Message-ID: On Fri, 13 Jul 2001, seb bacon wrote: > * Tres Seaver [010712 23:16]: > > On Thu, 12 Jul 2001, Robert Rottermann wrote: > > > > > Do I have to "misuse" one of the standard metadata fields I > > > do not need, or is there an other way to go. > > < snip > > > > It turns out that CMFDefault.DefaultDublinCoreImpl derives > > (for unknown reasons) from PropertyManager; therefore, virtually > > all content objects can have custom properties added to them! > > > > As to whether this is a Good Thing (tm), I am of a divided mind. > > I can't see any reason that DDCI *needs* to have such a base > > class, but it does make "quick-and-dirty" custom schema simple. > > What are the arguments for / against, in your mind? PropertyManager is somewhat icky from the perspective of maintainability: - It is a "flat" namespace; in fact, it stores properties in the as normal Python attributes of the instance. - The schema has to be set "programatically", which means that updating older instances it hard. - One can't look at a central location (e.g., the Python class, or ZClass, or the type object) to determine the schema for all objects of a given type. > I guess one Bad Thing is that the PropertyManager is not very > OOP-minded / NewReligionesque; however, to encapsulate it a bit > better, it wouldn't be very difficult to add getPropertyFor() and > setPropertyFor() methods to the PropertiesTool, perhaps? That would fix the cosmetics (exposing PropertyManager), but not the more substantive issues. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Mon Jul 16 16:01:12 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:01:12 -0400 (EDT) Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: <3B4F2A31.2738E764@artlover.com> Message-ID: On Fri, 13 Jul 2001, Ausum wrote: > Please let me ask this way: > Would the added custom properties be catalogaware? They would be "catalogable"; 'CatalogAware' was a base class which tried to assure that instances got catalogued on creation. > If not, what should we do to turn them so? You would need to add indexes to the catalog. > Bill Anderson wrote: > > > > On 12 Jul 2001 19:53:28 -0400, marc lindahl wrote: > > > > > > > From: Tres Seaver > > > > > > > > It turns out that CMFDefault.DefaultDublinCoreImpl > > > > derives (for unknown reasons) from PropertyManager; > > > > therefore, virtually all content objects can have custom > > > > properties added to them! > > > > > > Would that also mean they're automatically indexed in > > > catalog too? > > > > No. not as far as I would guess. For soemthing to be indexed, > > the catalog needs to know about it. If you added it to the > > catalog, then I would hazard to say that it would participate > > in the cataloging. I should ba able to report the veracity of > > said guess tonight (MST). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Mon Jul 16 16:06:30 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:06:30 -0400 (EDT) Subject: [Zope-CMF] How to edit Zclass Portal Content PropertySheets? In-Reply-To: <3B507966.9387.4775FDC0@localhost> Message-ID: On Sat, 14 Jul 2001, Brad Clements wrote: > I have a few zclasses, some with 5 or 6 propertysheets and > views (with different rights) > > I've rebased this to be based on CMFCore:PortalContent > > Now I'm trying to figure out the best (ie, easiest) way to get > these property sheets to look like they belong in a CMF edit > screen. > > I'd like to have management-like tabs on a single CMF Edit > action page.. But I'd settle for just about anything that can > produce CMF skinned propertysheet pages from my existing ZClass > propertysheets without having me manually create view/edit > methods for each sheet. > > Can someone suggest how I can get Zclass property sheets to > work correctly under CMF? IE, instead of using > myObject/propertysheets/sheet1/manage .. In the "Methods" tab of your ZClass, try creating an "edit" PropertySheetInterface for each property sheet. Replace the ZMI header / footer with a standard one, and cut / paste into your skins. Update the ACTION of the form to post to a Python script which calls 'manage_changePropertes' and redirects to HTTP_REFERRER. Voila! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Mon Jul 16 16:11:31 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:11:31 -0400 (EDT) Subject: [Zope-CMF] ?how to override default content-type when putting files with FTP In-Reply-To: <3B52B4C0.2020707@cams.wa.gov.au> Message-ID: On Mon, 16 Jul 2001, Tim Hoffman wrote: > I am building a CMF site, with a number of customized (ZClass > based for the moment) Portal content types. > > I will need to bulk upload images (which have a new Portal type > based on CMFOptions ExtImage) which I am calling ArtWorkMedia, > the parent Folder is ArtWorkFolder. ArtWorkFolder is defined > to only allows content-types of ArtWorkMedia and > ArtWorkMediaThumbnail, however when I upload images into an > ArtWorkFolder they are uploaded as Portal Image, which is > pretty much what I expected (though I half expected an error). > > Obviously I have to override the default behaviour/portal_type > for the images uploaded by ftp/webdav but I am having trouble > working out how/where I can/should do this. > > Could someone give me a pointer. You can customize the PUT handling of a folder by adding a ContentTypeRegistry object to it, and then configuring it to convert PUTs with Content-type='image/*' to your ArtWorkMedia class. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Mon Jul 16 16:19:45 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:19:45 -0400 (EDT) Subject: [Zope-CMF] Answer to syntax error problems with CMF In-Reply-To: <005601c10df8$14552760$c7010a0a@mcgeough> Message-ID: On Mon, 16 Jul 2001, Frank McGeough wrote: > I finally discovered why I was getting syntax errors with CMF > files --- where files had cr/lf instead of just lf. There have > been a few posts to the list about this so I would imagine some > other people ran into the same trouble. The extraction program > that I'm using on my Windows box is Winzip. Click on the > Options menu, and pick Configuration. Click on the > Miscellaneous tab. Uncheck the "TAR file smart CR/LF expansion" > and you'll have a much happier installation. Hope this helps > others that have run into this. This is another one of those > that might belong in an FAQ given the popularity of the Winzip > program. I'm glad you were able to run down the cause of the problem; thanks very much for reporting it! I'll add a note to the INSTALL docs explaining it. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From marc@bowery.com Mon Jul 16 16:22:18 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 16 Jul 2001 11:22:18 -0400 Subject: [Zope-CMF] relative URLs in STX In-Reply-To: <995284482.1225.32.camel@basajaun> Message-ID: > From: Arkaitz Bitorika > > to create a link to "doc" in the description field of folder2 with: > "The document":doc. > This renders to something like The document. That's where the problem (IMO) is. Supposedly STX is supposed to 'shield' the author from the delivery format -- html, pdf, etc. -- which means they shouldn't be savvy on the particulars of html. One of which (emphasized everywhere else within Zope, in fact) is to return absolute urls for href's, img's, etc. (to aid caching). If the page was DTML, this would be the behavior. Why don't those references in STX follow normal Zope acquisition rules? From jon@pcgs.freeserve.co.uk Mon Jul 16 16:26:14 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 16 Jul 2001 16:26:14 +0100 Subject: [Zope-CMF] Re: Dublin Core's Relation implementation Message-ID: Ausum wrote - > My contribution to this subject is simple. I would like to suggest > a conceptual abstraction that would lead us more to a complex object > model, instead of a new object type. It might be worth looking at the XML Topic Maps concept as a model, or just a source of ideas? http://www.topicmaps.org/ http://www.ontopia.net/ - for some implementation examples Cheers, Jon From marc@bowery.com Mon Jul 16 16:31:30 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 16 Jul 2001 11:31:30 -0400 Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: Message-ID: > From: Tres Seaver > > PropertyManager is somewhat icky from the perspective of > maintainability: > > - It is a "flat" namespace; in fact, it stores properties in the > as normal Python attributes of the instance. Am I confusing this with Property Sheets? > - One can't look at a central location (e.g., the Python class, > or ZClass, or the type object) to determine the schema for all > objects of a given type. ...but OTOH, some collections of objects need that variability... you can't always predetermine the schema, right? Though one could specifically create other kinds of containers to hold random collections of stuff. But then, for someone getting started, it increases development time since you then have to create interfaces, management, etc. etc. which is already there for Properties.... From s.kugler@student.kun.nl Mon Jul 16 16:34:52 2001 From: s.kugler@student.kun.nl (sebas) Date: Mon, 16 Jul 2001 17:34:52 +0200 Subject: [Zope-CMF] problems installing cmf 1.1 on win2k Message-ID: <005d01c10e0c$db327cc0$0601a8c0@sebas> Zope Version: Zope 2.3.3 (binary release, python 1.5.2, win32-x86) platform: win2k server I unpacked the tarball distribution to c:\program files\winzope\lib\python\products I repeated this two times, but i do not get cmf in my products folder :? The documentation on the installation of cmf does not contain debug information, at least I could not find anything there ... Anyone an idea? The zope installation already contains squisdot and Zwiki (Zwiki does not work either, but that's not the problem @the moment as I did not look up if there is some troubleshooting information on that.) any suggestion is welcome, tia, sebas. [sorry for the crosspost, i initially sent it to the wrong list :O] ___________________________________________________________ Inexperienced travellers might think that 'Aargh!' is universal, but in Betrobi it means 'highly enjoyable' and in Howondaland it means, variously, 'I would like to eat your foot', 'Your wife is a big hippo' and 'Hello, Thinks Mr Purple Cat.' From tseaver@palladion.com Mon Jul 16 16:48:24 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:48:24 -0400 (EDT) Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: Message-ID: On Mon, 16 Jul 2001, marc lindahl wrote: > > > > From: Tres Seaver > > > > PropertyManager is somewhat icky from the perspective of > > maintainability: > > > > - It is a "flat" namespace; in fact, it stores properties in the > > as normal Python attributes of the instance. > > Am I confusing this with Property Sheets? Yes. PropertyManager objects (classic Zope folders, DTMLDocuments, etc.) have a single, schema-free "propertysheet-like" interface (the one exposed by the "Properties" tab). Property Sheets are a more general mechanism, which don't have this drawback. > > - One can't look at a central location (e.g., the Python class, > > or ZClass, or the type object) to determine the schema for all > > objects of a given type. > > ...but OTOH, some collections of objects need that > variability... you can't always predetermine the schema, right? My objections have to do with *maintainability* -- a collection of objects with no common properties can't be managed as a whole; everything is "one-off". > Though one could specifically create other kinds of containers > to hold random collections of stuff. But then, for someone > getting started, it increases development time since you then > have to create interfaces, management, etc. etc. which is > already there for Properties.... This discussion is about whether it is reasonable to exploit the fact that PropertyManager is a base class of all the stock content objects. I would avoid exploiting it, because I dislike the maintainability costs; others might prefer to exploit it, rather than write new content classes. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From seb@jamkit.com Mon Jul 16 17:30:48 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Jul 2001 17:30:48 +0100 Subject: [Zope-CMF] Workflow Bug Message-ID: <20010716173048.P17589@lenin.jamkit.com> Hey DC folks, Sorry to bug you about this bug (again), but is it on anyone's Bug Radar? http://www.zope.org/Products/PTK/Tracker/337 I need to deliver a big site next week based on the CMF and the indexing isn't working. If I'm going to have to sort it myself, that's fine, but I need to know so I can restock on the caffeine if necessary ;-) cheers, seb the pesterer From tseaver@palladion.com Mon Jul 16 16:53:54 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 11:53:54 -0400 (EDT) Subject: [Zope-CMF] problems installing cmf 1.1 on win2k In-Reply-To: <005d01c10e0c$db327cc0$0601a8c0@sebas> Message-ID: On Mon, 16 Jul 2001, sebas wrote: > Zope Version: Zope 2.3.3 (binary release, python 1.5.2, win32-x86) > platform: win2k server > > I unpacked the tarball distribution to c:\program > files\winzope\lib\python\products > > I repeated this two times, but i do not get cmf in my products folder :? > > The documentation on the installation of cmf does not contain debug > information, at least I could not find anything there ... > > Anyone an idea? > > The zope installation already contains squisdot and Zwiki (Zwiki does not > work either, but that's not the problem @the moment as I did not look up if > there is some troubleshooting information on that.) > > any suggestion is welcome, The CMF is a "multi-product" piece of software. Its tarball expands to the following structure: CMF-1.1/ CMFCalendar CMFCore CMFDefault CMFTopic You need to copy or move the subdirectories, 'CMFCalendar', 'CMFCore', 'CMFDefault', and 'CMFTopic' into the 'Products' directory of your Zope. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From sebas@ick-kupplungen.de Mon Jul 16 16:57:05 2001 From: sebas@ick-kupplungen.de (=?iso-8859-1?Q?Sebastian_K=FCgler?=) Date: Mon, 16 Jul 2001 17:57:05 +0200 Subject: [Zope-CMF] problems installing cmf 1.1 on win2k References: <005d01c10e0c$db327cc0$0601a8c0@sebas> Message-ID: <009601c10e0f$f5f22530$0601a8c0@sebas> ...just got an email with a working solution, thanx :) > The CMF is a "multi-product" piece of software. Its tarball expands > to the following structure: > > CMF-1.1/ > > CMFCalendar > > CMFCore > > CMFDefault > > CMFTopic > > You need to copy or move the subdirectories, 'CMFCalendar', > 'CMFCore', 'CMFDefault', and 'CMFTopic' into the 'Products' > directory of your Zope. > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > ----- Original Message ----- From: "sebas" To: Sent: Monday, July 16, 2001 5:34 PM Subject: [Zope-CMF] problems installing cmf 1.1 on win2k > Zope Version: Zope 2.3.3 (binary release, python 1.5.2, win32-x86) > platform: win2k server > > I unpacked the tarball distribution to c:\program > files\winzope\lib\python\products > > I repeated this two times, but i do not get cmf in my products folder :? > > The documentation on the installation of cmf does not contain debug > information, at least I could not find anything there ... > > Anyone an idea? > > The zope installation already contains squisdot and Zwiki (Zwiki does not > work either, but that's not the problem @the moment as I did not look up if > there is some troubleshooting information on that.) > > any suggestion is welcome, > > tia, > > sebas. > > [sorry for the crosspost, i initially sent it to the wrong list :O] > ___________________________________________________________ > Inexperienced travellers might think that 'Aargh!' is universal, but in > Betrobi it > means 'highly enjoyable' and in Howondaland it means, variously, > 'I would like to eat your foot', 'Your wife is a big hippo' and 'Hello, > Thinks Mr Purple Cat.' > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@palladion.com Mon Jul 16 17:02:13 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 16 Jul 2001 12:02:13 -0400 (EDT) Subject: [Zope-CMF] Workflow Bug In-Reply-To: <20010716173048.P17589@lenin.jamkit.com> Message-ID: On Mon, 16 Jul 2001, seb bacon wrote: > Hey DC folks, > > Sorry to bug you about this bug (again), but is it on anyone's Bug > Radar? > > http://www.zope.org/Products/PTK/Tracker/337 > > I need to deliver a big site next week based on the CMF and the > indexing isn't working. If I'm going to have to sort it myself, > that's fine, but I need to know so I can restock on the caffeine if > necessary ;-) Can you fix this by abandoning the notion that content objects are not responsible for their own catalog updates? I don't like moving that responsibility into the workflow, as there are many possibile updates which might require re-cataloguing, not all of which are related to workflow. The essence of my notion is that any method which changes catalogable attributes should call 'reindexObject', rather than relying on some underlying magic to get it called. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From seb@jamkit.com Mon Jul 16 17:44:35 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Jul 2001 17:44:35 +0100 Subject: [Zope-CMF] Workflow Bug In-Reply-To: ; from tseaver@palladion.com on Mon, Jul 16, 2001 at 12:02:13PM -0400 References: <20010716173048.P17589@lenin.jamkit.com> Message-ID: <20010716174434.Q17589@lenin.jamkit.com> * Tres Seaver [010716 17:05]: > On Mon, 16 Jul 2001, seb bacon wrote: > > > Hey DC folks, > > > > Sorry to bug you about this bug (again), but is it on anyone's Bug > > Radar? > > > > http://www.zope.org/Products/PTK/Tracker/337 > > Can you fix this by abandoning the notion that content objects > are not responsible for their own catalog updates? I don't like > moving that responsibility into the workflow, as there are many > possibile updates which might require re-cataloguing, not all of > which are related to workflow. Wow, that was a prompt reply :-) Sure, that makes sense. The bug still stands though, since calling wrapped workflow methods with notification never occurs unless you use DCWorkflow. Cheers, seb From jccooper@rice.edu Mon Jul 16 17:07:52 2001 From: jccooper@rice.edu (J. Cameron Cooper) Date: Mon, 16 Jul 2001 11:07:52 -0500 Subject: [Zope-CMF] problems installing cmf 1.1 on win2k References: <005d01c10e0c$db327cc0$0601a8c0@sebas> Message-ID: <3B531158.8050102@rice.edu> > > >I unpacked the tarball distribution to c:\program >files\winzope\lib\python\products > >I repeated this two times, but i do not get cmf in my products folder :? > >The documentation on the installation of cmf does not contain debug >information, at least I could not find anything there ... > >Anyone an idea? > See one or more of http://groups.yahoo.com/group/zope/message/65944 http://lists.zope.org/pipermail/zope-cmf/2001-June/007828.html http://lists.zope.org/pipermail/zope-cmf/2001-June/007996.html --jcc From klm@digicool.com Mon Jul 16 17:26:59 2001 From: klm@digicool.com (Ken Manheimer) Date: Mon, 16 Jul 2001 12:26:59 -0400 (EDT) Subject: [Zope-CMF] Public CVS unavailable from 2:00 PM EST today - CVS migration Message-ID: We're on track to migrate our public CVS to the new server. This means the public repository will be unavailable from 2:00 PM Eastern Standard Time until around 6:00 PM. Note well that when it's back, your old checkouts will *not* work with the new repository layout. You'll have to do new checkouts to syncronize with the new repository. Again, sorry about the disruption - it will be of benefit to everyone, and should be a one-time changeover. Ken Manheimer klm@digicool.com From dieter@handshake.de Mon Jul 16 19:04:56 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 16 Jul 2001 20:04:56 +0200 (CEST) Subject: [Zope-CMF] relative URLs in STX In-Reply-To: <995284482.1225.32.camel@basajaun> References: <995284482.1225.32.camel@basajaun> Message-ID: <15187.11464.384771.173728@lindm.dm> Arkaitz Bitorika writes: > In the html page, the "base" tags seems to be correct, pointing to > mySite/folder1/folder2, but the browser doesn't seem to care. If I In fact, the base is wrong. It needs to be "mySite/folder1/folder2/" (note the trailing '/'). Everything after the last '/' is removed before relative URL resolution starts. Dieter From dieter@handshake.de Mon Jul 16 19:03:13 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 16 Jul 2001 20:03:13 +0200 (CEST) Subject: [Zope-CMF] Error Type: SkinPathError In-Reply-To: References: Message-ID: <15187.11361.589213.639232@lindm.dm> Norman Khine writes: > I just got a new checkout of the CMF and added CMFOptions 1.1, followed the > setup procedure as described by jeff > http://www.zope.org/Members/jeffsasmor/CMFOptions/CMFOptionsInstall > > but when I got to step (3), I got this error > > Error Type: SkinPathError > Error Value: Name not found: CMFOptions I read this as follows: You inserted "CMFOptions" in your SkinPath. But there is no "CMFOptions" subfolder in the "skins" folder. Dieter From nat@harari.org Tue Jul 17 04:04:45 2001 From: nat@harari.org (Traveling Uncle Nat) Date: Mon, 16 Jul 2001 23:04:45 -0400 Subject: [Zope-CMF] Hewwo. :) Message-ID: Hi. :) I got sent here by the zope main list. :) Anyway, I got CMF up and running, and let me tell you that I love it. :) Question is: How on earth do I customize it? Meaning: Layout, colors, etc....is that fairly easy to do for somebody with no coding experience? I just see the tool icons in my Zope interface, but no code to customize (a la Zope/DTML/HTML code, that is). Maybe I'm missing a tutorial someplace? I couldn't find one. Of course, I'm trying to go over the Zope, Squishdot, and CMF interfaces right now all at once...because of time constraints. Any help for a newbie out there? Thanks everyone, Newbie Nat. :) .. Nathaniel Harari .. nat@harari.org http://somethingwonderful.com/ ICQ#: 45777666 .. Our revels now are ended. These our actors, As I foretold you, were all spirits and Are melted into air, into thin air: And, like the baseless fabric of this vision, The cloud-capp'd towers, the gorgeous palaces, The solemn temples, the great globe itself, Ye all which it inherit, shall dissolve And, like this insubstantial pageant faded, Leave not a rack behind. We are such stuff As dreams are made on, and our little life Is rounded with a sleep. From wilson@visi.com Tue Jul 17 04:21:57 2001 From: wilson@visi.com (Timothy Wilson) Date: Mon, 16 Jul 2001 22:21:57 -0500 (CDT) Subject: [Zope-CMF] Hewwo. :) In-Reply-To: Message-ID: On Mon, 16 Jul 2001, Traveling Uncle Nat wrote: > Hi. :) I got sent here by the zope main list. :) Anyway, I got CMF up and > running, and let me tell you that I love it. :) > > Question is: How on earth do I customize it? First step. Read Chap. 5 of the Beehive book. You'll find it at http://cmf.zope.org/CMF/Members/beehive/ZWACKChap5.html -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From jfranz@US.NET Tue Jul 17 01:12:16 2001 From: jfranz@US.NET (Jon Franz) Date: Mon, 16 Jul 2001 20:12:16 -0400 Subject: [Zope-CMF] odd problem with user management Message-ID: <63641C91EC424D47A0913FD91483D22D214516@usnet-ex02.USNET.CORP> Hello, I'm using the CMF for my *gasp* corporate intranet, and due to some policies=20 in place, employees cannot create thier own users. Instead, HR creates the users and=20 defines all of thier properties. the employees can modify only one property - the=20 about_me property, meanwhile all others should be editable by CMF managers only. I have created the needed forms and they pull the current user data, and have created=20 the python code below and placed it inside CMFCore/Registration.py (I know, put it in=20 CMFDefault, but I'm prototyping and dont care at this point), and the code compiles=20 and runs without raising any errors. However, once run, the user's folder disappears=20 from within the ZMI and the portal. =20 Any ideas of what I'm doing wrong? Heres the code: >>>>>>>>> security.declareProtected(CMFCorePermissions.ManagePortal, 'setOthersProperties') def setOthersProperties(self, user=3DNone, properties=3DNone, **kw): '''Allows the authenticated member to set his/her own properties. Accepts either keyword arguments or a mapping for the "properties" argument. ''' if user is None or user=3D=3D'': raise 'Bad request', 'invalid user' =20 if properties is None: properties =3D kw membership =3D getToolByName(self, 'portal_membership') if not membership.isAnonymousUser(): member =3D membership.getMemberById(user) failMessage =3D self.testPropertiesValidity(properties, member) if failMessage is not None: raise 'Bad Request', failMessage member.setMemberProperties(properties) else: raise 'Bad Request', 'Not logged in.' <<<<<<<<<<< From nat@harari.org Tue Jul 17 04:26:05 2001 From: nat@harari.org (Traveling Uncle Nat) Date: Mon, 16 Jul 2001 23:26:05 -0400 Subject: [Zope-CMF] Hewwo. :) In-Reply-To: Message-ID: Oh cool. Thanks! I didn't see that. I'll definitely check it out. I was looking for some sort of tutorial/manual. I guess I just missed the link. :) Thanks again, Newbie Nat. :) -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Timothy Wilson Sent: Monday, July 16, 2001 11:22 PM To: Traveling Uncle Nat Cc: zope-cmf@zope.org Subject: Re: [Zope-CMF] Hewwo. :) On Mon, 16 Jul 2001, Traveling Uncle Nat wrote: > Hi. :) I got sent here by the zope main list. :) Anyway, I got CMF up and > running, and let me tell you that I love it. :) > > Question is: How on earth do I customize it? First step. Read Chap. 5 of the Beehive book. You'll find it at http://cmf.zope.org/CMF/Members/beehive/ZWACKChap5.html -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From mehmety@auslin.com.au Sun Jul 15 22:09:00 2001 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: 16 Jul 2001 07:09:00 +1000 Subject: [Zope-CMF] Virtual hosting of cmf Message-ID: <995231340.27809.0.camel@theo.home> Hi, I've set up CMF and have it working, started modifying the default (it'll be great when there is some documentation available) install. Now my problem is (not major as I could arrange things differently, but...) if I set up a cmf site with a virtualhostmonster, the links end up showing the full path (http://foo.bar/virtual/this-site/whatever_page as opposed to http://foo.bar/whatever_page). Is there a way to specify links so they dont do this? Regards, Mehmet From timhoffman@cams.wa.gov.au Tue Jul 17 08:30:13 2001 From: timhoffman@cams.wa.gov.au (Tim Hoffman) Date: Tue, 17 Jul 2001 15:30:13 +0800 Subject: [Zope-CMF] ?how to override default content-type when putting files with FTP References: Message-ID: <3B53E985.1020009@cams.wa.gov.au> Ahh I am blind Since your reply I discovered the content_type_registry tool which provides a very nice and easy mechanism. Damn I gotta rtfm better I suppose. Tim Tres Seaver wrote: >On Mon, 16 Jul 2001, Tim Hoffman wrote: > >>I am building a CMF site, with a number of customized (ZClass >>based for the moment) Portal content types. >> >>I will need to bulk upload images (which have a new Portal type >>based on CMFOptions ExtImage) which I am calling ArtWorkMedia, >>the parent Folder is ArtWorkFolder. ArtWorkFolder is defined >>to only allows content-types of ArtWorkMedia and >>ArtWorkMediaThumbnail, however when I upload images into an >>ArtWorkFolder they are uploaded as Portal Image, which is >>pretty much what I expected (though I half expected an error). >> >>Obviously I have to override the default behaviour/portal_type >>for the images uploaded by ftp/webdav but I am having trouble >>working out how/where I can/should do this. >> >>Could someone give me a pointer. >> > >You can customize the PUT handling of a folder by adding a >ContentTypeRegistry object to it, and then configuring it to >convert PUTs with Content-type='image/*' to your ArtWorkMedia >class. > >Tres. > From chrisw@nipltd.com Tue Jul 17 08:47:18 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 17 Jul 2001 08:47:18 +0100 Subject: [Zope-CMF] Workflow, Events & Indexing References: Message-ID: <3B53ED86.BD77BAB5@nipltd.com> Tres Seaver wrote: > > The essence of my notion is that any method which changes catalogable > attributes should call 'reindexObject', rather than relying on some > underlying magic to get it called. This does seem to violate the principle of 'only write the code once' :-S If objects recieved a notification that they had changed, they could do this re-indexing rather than other processes having to worry about this. For example, what if the arguments to reindexObject change? You have find all the places you call it and re-write them. And what if (as I need to), you need to call something like portal_discussion.updateDiscussion(object) when the object changes? You need to go find all places the object could change (how do you do that?) and add the extra call. This feels like something that belongs in a workflow or event model. What do people think? cheers, Chris From chrisw@nipltd.com Tue Jul 17 08:53:34 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 17 Jul 2001 08:53:34 +0100 Subject: [Zope-CMF] MetaType in TypeInformation objects References: Message-ID: <3B53EEFE.8D80B738@nipltd.com> Tres Seaver wrote: > > Nope, because they aren't always the same. Suppose I want to > create a new content type, "Press Release", which is actually > a CMFDefault.Document under the covers, but which has different > actions / skins / workflow / metdata policies, etc. In this case, > the metatype would still be "Document", but the ID of the type > object would be "Press Release". Yeah, but in either case, can't you sniff the meta_type from the python product bit? cheers, Chris From chrisw@nipltd.com Tue Jul 17 08:59:44 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 17 Jul 2001 08:59:44 +0100 Subject: [Zope-CMF] CMFDefault register method & security References: Message-ID: <3B53F070.972E9127@nipltd.com> Jens, Did anyone have any thoughts about this bit of the bug? > > Also, should the registered method really contain a url which has both the > > username and password of a newly generated member in it? Seems like a bit of a > > security hole to me :-S cheers, Chris From arkbit@yahoo.com Tue Jul 17 13:32:52 2001 From: arkbit@yahoo.com (Arkaitz) Date: 17 Jul 2001 14:32:52 +0200 Subject: [Zope-CMF] relative URLs in STX In-Reply-To: <15187.11464.384771.173728@lindm.dm> References: <995284482.1225.32.camel@basajaun> <15187.11464.384771.173728@lindm.dm> Message-ID: <995373175.26265.1.camel@basajaun> On 16 Jul 2001 20:04:56 +0200, Dieter Maurer wrote: > Arkaitz Bitorika writes: > > In the html page, the "base" tags seems to be correct, pointing to > > mySite/folder1/folder2, but the browser doesn't seem to care. If I > In fact, the base is wrong. It needs to be > "mySite/folder1/folder2/" (note the trailing '/'). Yes, the base is inserted this way in standard_html_header: The problem is that absolute_url doesn't have the needed trailing '/'. I have fixed it removing completely that piece of code, so now Zope inserts the correct BASE tag automatically. Another way could be putting the '/' after absolute_url; by hand there, it seems to work, but I don't know if it would break sometimes. Can this be considered a bug to be fixed? Cheers, Arkaitz. > > Everything after the last '/' is removed before relative URL > resolution starts. > > > Dieter > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From chrisw@nipltd.com Tue Jul 17 13:19:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 17 Jul 2001 13:19:17 +0100 Subject: [Zope-CMF] Swishdot & Berlin Slides Message-ID: <3B542D45.9EB95B9C@nipltd.com> Hi, - The slides from my talk in Berlin are now available for download. - For those brave souls out there, the very first aplha of Swishdot is now in public CVS. Both can be found by looking at http://www.swishdot.org. WARNING: That's a REALLY EARLY ALPHA. I expect to re-implement a load of stuff, it's probably broken, insecure and maybe even innefficient. But, it might give you a rough idea. I may support upgrades from that thing, but don't count on it ;-) Let me know what you think... Chris From listsmurf@bbox.org Tue Jul 17 14:09:24 2001 From: listsmurf@bbox.org (Jonathan) Date: Tue, 17 Jul 2001 15:09:24 +0200 Subject: [Zope-CMF] CVS down ?? In-Reply-To: <3B4C32FB.20108@palladion.com> References: <012401c109fb$429273e0$0a01a8c0@stravinsky> <3B4C32FB.20108@palladion.com> Message-ID: >Robert Rottermann wrote: > >> CVS seems to be down. > > >This just worked for me: > > cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository co CMF > >Tres. $ cvs -d :pserver:anonymous@cvs.zope.org:/cvs-repository co CMF cvs server: Updating CMF cvs server: failed to create lock directory for `/cvs-repository/Releases/CMF' ( /cvs-repository/Releases/CMF/#cvs.lock): Permission denied cvs server: failed to obtain dir lock in repository `/cvs-repository/Releases/CM F' cvs [server aborted]: read lock failed - giving up Apparently, it does connect with 'cvs.zope.org', but can't login, create a file or something like that. BTW, CVSWeb gives me a 'not found' error? HTH Jonathan From listsmurf@bbox.org Tue Jul 17 14:24:17 2001 From: listsmurf@bbox.org (Jonathan) Date: Tue, 17 Jul 2001 15:24:17 +0200 Subject: [Zope-CMF] CVS down ?? In-Reply-To: References: <012401c109fb$429273e0$0a01a8c0@stravinsky> <3B4C32FB.20108@palladion.com> Message-ID: >Apparently, it does connect with 'cvs.zope.org', but can't login, >create a file or something like that. > >BTW, CVSWeb gives me a 'not found' error? Answering my own question here; probably caused by the CVS migration. Read Ken's message after sending it :) Cya Jonathan From klm@digicool.com Tue Jul 17 15:10:46 2001 From: klm@digicool.com (Ken Manheimer) Date: Tue, 17 Jul 2001 10:10:46 -0400 (EDT) Subject: [Zope-CMF] CVS migration status Message-ID: The migration is just about done. We hit a glitch with the public-write restriction mechanism, which took my attention yesterday evening. I'm going to be working out the pserver mode first thing after i send this message, so public checkouts can resume, will repost when that's done. Ken Manheimer klm@digicool.com From marc@bowery.com Tue Jul 17 15:17:43 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 17 Jul 2001 10:17:43 -0400 Subject: [Zope-CMF] Workflow, Events & Indexing In-Reply-To: <3B53ED86.BD77BAB5@nipltd.com> Message-ID: > From: Chris Withers > > This feels like something that belongs in a workflow or event model. Or inherited from a mixin class? From marc@bowery.com Tue Jul 17 15:25:46 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 17 Jul 2001 10:25:46 -0400 Subject: [Zope-CMF] How to save extra data with CMF-object In-Reply-To: Message-ID: > From: Tres Seaver > > My objections have to do with *maintainability* -- a collection > of objects with no common properties can't be managed as a whole; > everything is "one-off". Seems like that would be more of a problem if the interface were exposed to the portal user... as it is, it's a way to make a 'poor man's content class' - extending the normal types with small effort, which seems like, though it could lead to a mess, also could lead to rapid development... e.g. the extra properties become catalogable just by adding indexes to portal_catalog (a simple ZMI operation). From klm@digicool.com Tue Jul 17 16:04:02 2001 From: klm@digicool.com (Ken Manheimer) Date: Tue, 17 Jul 2001 11:04:02 -0400 (EDT) Subject: [Zope-CMF] Re: [Zope-Annce] CVS migration status In-Reply-To: Message-ID: Hokay, public cvs checkout access is back. As i've stressed, old checkouts will go stale. We're leaving around the current "Zope2" section for a little while, but we will **not** be applying any revisions to it, so it will never change (and it will go away, in not too long). Instead, revisions will happen against the new "Zope" module. This new module will have all the accumulated history of the old one, including tags. The new organization enables much better modularity, supporting decomposition of standalone things like StandaloneZODB and transactions. (CMF, StandaloneZODB, and ZEO checkouts will have the same name, *but different repository-side structure*, so you need to do new checkouts of them, as well!) I believe you should *not* need to redo the cvs login - your old stashed password should work. If you *do* need to do a login, you can use any password with the anonymous account. For instructions, see: http://dev.zope.org/Resources/ZopePublicCVS.html I've just revised them to reflect the new situation. Ken klm@digicool.com On Tue, 17 Jul 2001, Ken Manheimer wrote: > The migration is just about done. We hit a glitch with the public-write > restriction mechanism, which took my attention yesterday evening. I'm > going to be working out the pserver mode first thing after i send this > message, so public checkouts can resume, will repost when that's done. From andrew@digicool.com Tue Jul 17 16:27:15 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Tue, 17 Jul 2001 11:27:15 -0400 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: <3B53F070.972E9127@nipltd.com> Message-ID: Jens and I both think it's a bug; I couldn't come up with an easy solution; all attempts at passing this through failed. If you've got a solution, send it on over. Otherwise this is going to wait until one of us can devote more time to it. We've both got other things on our plate at the moment. Thanks, Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Chris Withers > Sent: Tuesday, July 17, 2001 4:00 AM > To: jens@digicool.com > Cc: zope-cmf@zope.org > Subject: [Zope-CMF] CMFDefault register method & security > > > Jens, > > Did anyone have any thoughts about this bit of the bug? > > > > Also, should the registered method really contain a url which > has both the > > > username and password of a newly generated member in it? > Seems like a bit of a > > > security hole to me :-S > > cheers, > > Chris > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From marc@bowery.com Tue Jul 17 16:40:12 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 17 Jul 2001 11:40:12 -0400 Subject: [Zope-CMF] workflow (public/private), reusing code, and separation of presentation... Message-ID: I know this overlaps some current threads, but to focus on this issue. I'm doing a CMF portal where there are other areas (folders) than the Members area, and I'm running into the situation that in order to properly observe the Workflow (e.g. with the default, simply controlling public/private display behavior), I have to explicitly put DTML to check for this every place I want to display something. For example, I have a page which shows, among other things, the text from another document called 'bio' in a table cell (if it exists): Now, that will show bio regardless of it's workflow status, unless I put a pile of code in there. Seems to me, the object (Document or whatever) should know better? Also, even if it doesn't, is there a standardized way to test for whether it's displayable, independant of the exact workflow (e.g. what if there's no 'published' state, it's called 'public' instead?) From bkc@murkworks.com Tue Jul 17 17:05:37 2001 From: bkc@murkworks.com (Brad Clements) Date: Tue, 17 Jul 2001 12:05:37 -0400 Subject: [Zope-CMF] How about an Admin "add user" form? Message-ID: <3B542B04.32401.55E3EC47@localhost> For the next release.. For those that have turned off anonymous member creation, it'd be nice to have an 'add-user' form that the admin could use to do all the work. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From kent@goathill.org Tue Jul 17 17:41:26 2001 From: kent@goathill.org (Kent Polk) Date: 17 Jul 2001 16:41:26 GMT Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <3B44B518.D2BA28B8@digicool.com> Message-ID: <995388085.965005@fezzik.endicor.com> On 5 Jul 2001 14:20:00 -0500, Shane Hathaway wrote: > Here at DC a few of us have been working on a component model for Zope. > We have roughly defined what components should be like in Zope and have > written some documentation. The next step is to update CMF to be fully > driven by the component model. > > So I wrote up a document describing how I think CMF will change. I am > seeking input from everyone involved in CMF. Comments encouraged. > > http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF ->To accomplish this, the portal root will have a __bobo_traverse__() method ->looks for a traversal adapter appropriate to the content being traversed. ->CMF tool that would have all of the necessary information for supplying a ->traversal adapter is the portal_actions tool. Currently it looks for object ->actions, workflow actions, and discussion actions to supply a list to the ->actions box. In fact, in order for the proposed "memento bags" idea (see ->zope-cmf@zope.org) to work with discussions, discussions will need to be ->implemented with modified travers Would this be able to address my problem with implementing proxy folderish items (a lot like your Transparent Folder behavior), where each proxy client is associated with a particular proxy (server)? Will the new content view components be set up for folders also, so that folderish objects can participate in being able to have their view methods changed? Please, Please, Please This stuff looks great. The problems these changes address were causing me all sorts of grief since I couldn't find reasonable solutions for them. I have several CMF Items which *almost* work as needed, but one or more of these niggling problems have kept me from a clean solution for them. Any idea of the timeframe? If soon, I will just suspend my hacking on these things and work on other issues, like workflow with Ulrich :^) We are still trying to figure out how to implement project-centric workflow for the CMF, in addition to document-centric workflow. From shane@digicool.com Tue Jul 17 17:31:25 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 17 Jul 2001 12:31:25 -0400 Subject: [Zope-CMF] CMFDefault register method & security References: <3B53F070.972E9127@nipltd.com> Message-ID: <3B54685D.2A702402@digicool.com> Andrew Sawyers wrote: > Jens and I both think it's a bug; I couldn't come up with an easy solution; > all attempts at passing this through failed. If you've got a solution, send > it on over. Otherwise this is going to wait until one of us can devote more > time to it. We've both got other things on our plate at the moment. Use a form with hidden fields. Something like this (not looking at the code):
The disadvantage of passing a password in a URL is that it might show up in an HTTP log, which doesn't matter unless you're using HTTPS. The hidden fields solution closes that hole. Shane > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Chris Withers > > Sent: Tuesday, July 17, 2001 4:00 AM > > To: jens@digicool.com > > Cc: zope-cmf@zope.org > > Subject: [Zope-CMF] CMFDefault register method & security > > > > > > Jens, > > > > Did anyone have any thoughts about this bit of the bug? > > > > > > Also, should the registered method really contain a url which > > has both the > > > > username and password of a newly generated member in it? > > Seems like a bit of a > > > > security hole to me :-S > > > > cheers, > > > > Chris From shane@digicool.com Tue Jul 17 18:30:36 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 17 Jul 2001 13:30:36 -0400 (EDT) Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: <20010717162417.5B328108E@tiamat.goathill.org> Message-ID: On Tue, 17 Jul 2001, Kent Polk wrote: > On 5 Jul 2001 14:20:00 -0500, Shane Hathaway wrote: > > http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF > > ->To accomplish this, the portal root will have a __bobo_traverse__() method > ->looks for a traversal adapter appropriate to the content being traversed. > ->CMF tool that would have all of the necessary information for supplying a > ->traversal adapter is the portal_actions tool. Currently it looks for object > ->actions, workflow actions, and discussion actions to supply a list to the > ->actions box. In fact, in order for the proposed "memento bags" idea (see > ->zope-cmf@zope.org) to work with discussions, discussions will need to be > ->implemented with modified travers > > Would this be able to address my problem with implementing proxy > folderish items (a lot like your Transparent Folder behavior), > where each proxy client is associated with a particular proxy > (server)? Yes, I think so, although if you have described the details of this concept before, I cannot recall them at the moment. > Will the new content view components be set up for folders also, > so that folderish objects can participate in being able to have > their view methods changed? Please, Please, Please Yes, that's one of the points I've been hammering too. > Any idea of the timeframe? If soon, I will just suspend my hacking > on these things and work on other issues, like workflow with Ulrich It's a high priority. We're still discussing some of the details. Here is something posted just this morning: http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/CMFContentTypeDesign > We are still trying to figure out how to implement project-centric > workflow for the CMF, in addition to document-centric workflow. What are your current obstacles? Do they consist of what you listed above? Shane From marc@bowery.com Tue Jul 17 18:57:48 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 17 Jul 2001 13:57:48 -0400 Subject: [Zope-CMF] how does Members folder force login? Message-ID: I'm a little stuck on that one... I'd like to get the same behavior out of some other top-level folders I'm making... From seb@jamkit.com Tue Jul 17 20:15:05 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 17 Jul 2001 20:15:05 +0100 Subject: [Zope-CMF] how does Members folder force login? In-Reply-To: ; from marc@bowery.com on Tue, Jul 17, 2001 at 01:57:48PM -0400 References: Message-ID: <20010717201504.C27382@lenin.jamkit.com> * marc lindahl [010717 19:01]: > I'm a little stuck on that one... I'd like to get the same behavior out of > some other top-level folders I'm making... If you try to view something for which you don't have the permission, Zope throws an Unauthorized exception, which generates a basic authentication box. The CMF has a CookieCrumbler in it, which intercepts the exception, and redirects to a login form instead. So check out the cookie crumbler. seb From marc@bowery.com Tue Jul 17 19:46:42 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 17 Jul 2001 14:46:42 -0400 Subject: [Zope-CMF] how does Members folder force login? In-Reply-To: <20010717201504.C27382@lenin.jamkit.com> Message-ID: > If you try to view something for which you don't have the permission, > Zope throws an Unauthorized exception, which generates a basic > authentication box. Sometimes... other times it gives you the (hard-coded) Unauthorized error page. > The CMF has a CookieCrumbler in it, which > intercepts the exception, and redirects to a login form instead. So > check out the cookie crumbler. Sure, I see where it does that in standard_html_header, but then I don't see anything special about the Security settings for the Members folder... From mehmety@auslin.com.au Sun Jul 15 22:09:00 2001 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: 16 Jul 2001 07:09:00 +1000 Subject: [Zope-CMF] Virtual hosting of cmf Message-ID: <995231340.27809.0.camel@theo.home> Hi, I've set up CMF and have it working, started modifying the default (it'll be great when there is some documentation available) install. Now my problem is (not major as I could arrange things differently, but...) if I set up a cmf site with a virtualhostmonster, the links end up showing the full path (http://foo.bar/virtual/this-site/whatever_page as opposed to http://foo.bar/whatever_page). Is there a way to specify links so they dont do this? Regards, Mehmet From kent@goathill.org Tue Jul 17 20:23:40 2001 From: kent@goathill.org (Kent Polk) Date: Tue, 17 Jul 2001 14:23:40 -0500 (CDT) Subject: [Zope-CMF] Zope component model and CMF In-Reply-To: "from Shane Hathaway at Jul 17, 2001 01:30:36 pm" Message-ID: <20010717192340.D1A30108E@tiamat.goathill.org> Shane Hathaway wrote: > On Tue, 17 Jul 2001, Kent Polk wrote: > > > On 5 Jul 2001 14:20:00 -0500, Shane Hathaway wrote: > > > http://dev.zope.org/Wikis/DevSite/Proposals/ApplyComponentModelToCMF > > > > ->To accomplish this, the portal root will have a __bobo_traverse__() method > > ->looks for a traversal adapter appropriate to the content being traversed. > > ->CMF tool that would have all of the necessary information for supplying a > > ->traversal adapter is the portal_actions tool. Currently it looks for object > > ->actions, workflow actions, and discussion actions to supply a list to the > > ->actions box. In fact, in order for the proposed "memento bags" idea (see > > ->zope-cmf@zope.org) to work with discussions, discussions will need to be > > ->implemented with modified travers > > > > Would this be able to address my problem with implementing proxy > > folderish items (a lot like your Transparent Folder behavior), > > where each proxy client is associated with a particular proxy > > (server)? > > Yes, I think so, although if you have described the details of this > concept before, I cannot recall them at the moment. Basically, I have a series of tabular document objects which need to participate in workflow. The tabular data associated with these items is obtained via a series of sql/dtml/python methods where the sql/dtml methods need to be instantiated and customized for different projects, installations. Each CMF 'tabular document' of a particular meta-type can use the same set of methods, so a folder of these things, along with some python code is the general idea. However, it is far easier to implement these as a CMF folderish item (which even needs to have it's own workflow during creation) which the tabular documents explicitly acquire behavior from. Problem is that the CMF's way of handling URL's gets in the way of adding the folderish item to the URL (rightfully so, IMO). My tabular document methods can explicitly call the folderish item (proxy) as long as the calls aren't nested, which won't really work. Your Transparent folders comes close to solving this, but since there are a series of these folders, I need to explicitly acquire the proxy folder by meta-type (and preferably even run-time configure, in case of multiple ones of the same meta-type), which poses a problem with Transparent Folders. ->So, tentatively, traversal adapters will check for a fixed name such as talkback ->for traversal to the discussion container, and if it's not the fixed name then ->they will ask the workflow service for the name of a presentation component from ->which to look for views, then ask the skins service for presentation names from ->either the workflow presentation component or the object presentation component. ->Traversal adapters will come from the portal_actions service. I was hoping that I could configure your traversal adaptor to provide my proxies as a presentation component (folderish) or just rewrite the proxies to be a regular presentation component (maybe prefered?). > > Will the new content view components be set up for folders also, > > so that folderish objects can participate in being able to have > > their view methods changed? Please, Please, Please > > Yes, that's one of the points I've been hammering too. Yeah! > > Any idea of the timeframe? If soon, I will just suspend my hacking > > on these things and work on other issues, like workflow with Ulrich > > It's a high priority. We're still discussing some of the details. Here > is something posted just this morning: > > http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/CMFContentTypeDesign ->For interfaces created in Python modules, we can store interfaces by reference. ->For persistent interfaces, storing by reference requires special handling. If a ->simple persistent reference is used, then the interface will be copied wheever ->the object is copied. If a named reference is used, then a name registry needs ->to be maintained, which adds a lot of complexity. Doesn't look good for sql methods, have you thought of them as interfaces? I'm having a little trouble identifying exactly what 'things' Jim would classify as a marker interface. BTW, equality comparisons is how I initially though the Types tool was implemented - I though they behaved somewhat like aliases. It kinda threw me at first that it was still needing to use specific ids. > > We are still trying to figure out how to implement project-centric > > workflow for the CMF, in addition to document-centric workflow. > > What are your current obstacles? Do they consist of what you listed > above? The project-centric workflow stuff is mostly separate from the obstacles mentioned. We're still struggling with basic concepts right now. I suspect you'll be hearing more from us in the near future with thought about how to accomplish objectives. If you have any ideas on how to accomplish a project-centric workflow via CMF, we'd sure like to hear them. Problems are that a project-centric workflow needs to be able to create and manage CMF documents (which can have their own workflow). Requires associations that we are having trouble defining. From dieter@handshake.de Tue Jul 17 22:30:06 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 17 Jul 2001 23:30:06 +0200 (CEST) Subject: [Zope-CMF] relative URLs in STX In-Reply-To: <995373175.26265.1.camel@basajaun> References: <15187.11464.384771.173728@lindm.dm> <995373175.26265.1.camel@basajaun> Message-ID: <15188.44638.892498.207597@lindm.dm> Arkaitz writes: > Yes, the base is inserted this way in standard_html_header: > > > > > > The problem is that absolute_url doesn't have the needed trailing '/'. Sometimes, it is correct *without* the trailing '/'. > I > have fixed it removing completely that piece of code, so now Zope > inserts the correct BASE tag automatically. That is probably the best you can do. > Another way could be putting > the '/' after absolute_url; by hand there, it seems to work, but I don't > know if it would break sometimes. It will break in some circumstances, for example, it the last URL component is a DTML document. > Can this be considered a bug to be fixed? I would consider it a bug and put it into the tracker. Dieter From dhanunjaya@mindscapecomputing.com Wed Jul 18 07:35:24 2001 From: dhanunjaya@mindscapecomputing.com (Dhanu) Date: Wed, 18 Jul 2001 12:05:24 +0530 Subject: [Zope-CMF] Multilingual cmf site Message-ID: <000a01c10f53$d324a1a0$4ac809c0@saraswathi> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C10F81.ECCEFAF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hai Friends, iam working on building a web site with cmf with multi language = functionality. I came across Localizer and i felt it is good for providing links and = some static content in multiple languages. Does any one has good idea of how to proceed in building good = Multilingual cmf site. I did not spent much time thinking on how to do it. I thought it is better to take your opinion in proceeding further,as = iam still a newbie. Your ideas are very much appreciated. Thank you, regards, Dhanu ------=_NextPart_000_0007_01C10F81.ECCEFAF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hai Friends,
 
iam working on building a web site with = cmf with=20 multi language functionality.
I came across Localizer and i felt it = is good for=20 providing links and some static content in multiple = languages.
 
Does any one has good idea of how to = proceed in=20 building good Multilingual cmf site.
 
I did not spent much time thinking on = how to do=20 it.
I thought it is better to take = your opinion=20 in proceeding further,as iam still a newbie.
 
Your ideas are very much = appreciated.
 
Thank you,
 
regards,
Dhanu
------=_NextPart_000_0007_01C10F81.ECCEFAF0-- From seb@jamkit.com Wed Jul 18 10:18:17 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 18 Jul 2001 10:18:17 +0100 Subject: [Zope-CMF] Multilingual cmf site In-Reply-To: <000a01c10f53$d324a1a0$4ac809c0@saraswathi>; from dhanunjaya@mindscapecomputing.com on Wed, Jul 18, 2001 at 12:05:24PM +0530 References: <000a01c10f53$d324a1a0$4ac809c0@saraswathi> Message-ID: <20010718101806.F27382@lenin.jamkit.com> The people at Eurozope have been putting a lot of work into this, and are probably the best people to deal with the issue. They've just set up a new I18N / L10N mailing list: http://lists.zope.org/mailman/listinfo/zip mailto:zip@zope.org mailto:zip-request@zope.org seb * Dhanu [010718 08:57]: > Hai Friends, > > iam working on building a web site with cmf with multi language functionality. > I came across Localizer and i felt it is good for providing links and some static content in multiple languages. > > Does any one has good idea of how to proceed in building good Multilingual cmf site. > > I did not spent much time thinking on how to do it. > I thought it is better to take your opinion in proceeding further,as iam still a newbie. > > Your ideas are very much appreciated. > > Thank you, > > regards, > Dhanu From yokemay@apdip.net Wed Jul 18 10:14:54 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Wed, 18 Jul 2001 17:14:54 +0800 Subject: [Zope-CMF] Create search for folders Message-ID: <004701c10f6a$1c04a120$175ebbca@apdip.net> Hi, I still can't figure out how to create a search criteria that only allows me to search within the a folder and its sub-folder. Anyone can help me on this? Appreciate it a lot. Thanks. Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net Tel: +603-2559122 ext. 2206 Fax: +603-2539740 Mobile: +6016-2837395 ICQ: 321345 From seb@jamkit.com Wed Jul 18 11:07:01 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 18 Jul 2001 11:07:01 +0100 Subject: [Zope-CMF] Create search for folders In-Reply-To: <004701c10f6a$1c04a120$175ebbca@apdip.net>; from yokemay@apdip.net on Wed, Jul 18, 2001 at 05:14:54PM +0800 References: <004701c10f6a$1c04a120$175ebbca@apdip.net> Message-ID: <20010718110701.J27382@lenin.jamkit.com> If you search the archives, I posted some tips about altering the Catalog to include custom, transparent criteria. You could adapt these principles to make them more TTW. Basicallty, you'd need to add some information about the folder location to each object's index in the Catalog; then you could search based on this criterion. See my 'Subclassing the Catalog Tool' news item on the dogbowl for hints on the hard way of doing this; see the Zope Book for more information on how the Catalog works, if you need to learn more about indices and search criteria. seb * Yoke May Seow [010718 10:17]: > Hi, > > I still can't figure out how to create a search criteria that only allows > me to search within the a folder and its sub-folder. > > Anyone can help me on this? Appreciate it a lot. Thanks. From dhanunjaya@mindscapecomputing.com Wed Jul 18 09:55:10 2001 From: dhanunjaya@mindscapecomputing.com (Dhanu) Date: Wed, 18 Jul 2001 14:25:10 +0530 Subject: [Zope-CMF] Re: Multilingual cmf site (plain text) Message-ID: <002a01c10f67$59c8e230$4ac809c0@saraswathi> Hai Friends, iam working on building a web site with cmf with multi language functionality. I came across Localizer and i felt it is good for providing links and some static content in multiple languages. Does any one has good idea of how to proceed in building good Multilingual cmf site. I did not spent much time thinking on how to do it. I thought it is better to take your opinion in proceeding further,as iam still a newbie. Your ideas are very much appreciated. Thank you, regards, Dhanu I hope above message is in plain text From jhgfjhgfjhgfjhgf@hotmail.com Wed Jul 18 11:48:30 2001 From: jhgfjhgfjhgfjhgf@hotmail.com (Tim Fouracre) Date: Wed, 18 Jul 2001 10:48:30 -0000 Subject: [Zope-CMF] newbie discussion question Message-ID: Hi all Ok what i want to do is create a link in the actions box to all the discussion threads that any member has created and then display all the discussion threads. So far the only way i have found of accessing discussions is by doing a search for them and then clicking on the results, however this would not be very user friendly. Do i have to create a topic that filters out the Discussion Items? or how do i do this? any help/documentation about? cheers Tim _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From khine@btinternet.com Wed Jul 18 12:16:35 2001 From: khine@btinternet.com (Norman Khine) Date: Wed, 18 Jul 2001 12:16:35 +0100 Subject: [Zope-CMF] newbie discussion question In-Reply-To: Message-ID: Hi Tim, best way to do this is to create a topic, with the following criteria: Field id: meta_type Criteria type: String Criterion then add to the Value box Discussion Item, and save. Now you will have all discussion items listed for your portal. You can extend this by modifying the criteria more as per your requirements. Then ALL ;^) you have to do to add it to your actions_box is to modify it by adding an entry something like:
Main thing, to remeber is to put a href to point to the actual place where the topic is stored. It will be great if one can have both the topics and the sub_topics generated as a drop-down list, perhaps this is an html/dtml issue?! or java... any ideas! Hope this helps. Norman -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Tim Fouracre Sent: Wednesday, July 18, 2001 11:49 AM To: zope-cmf@zope.org Subject: [Zope-CMF] newbie discussion question Hi all Ok what i want to do is create a link in the actions box to all the discussion threads that any member has created and then display all the discussion threads. So far the only way i have found of accessing discussions is by doing a search for them and then clicking on the results, however this would not be very user friendly. Do i have to create a topic that filters out the Discussion Items? or how do i do this? any help/documentation about? cheers Tim _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From jhgfjhgfjhgfjhgf@hotmail.com Wed Jul 18 12:38:23 2001 From: jhgfjhgfjhgfjhgf@hotmail.com (Tim Fouracre) Date: Wed, 18 Jul 2001 11:38:23 -0000 Subject: [Zope-CMF] newbie discussion question Message-ID: Thanks for the help Norman, While i was waiting for a reply, i was messing about with creating a Topic, and managed to come out with something similar :-) My question now is does the Topic auto catalog itself? so when new Discussions are added, they are also returned by the query? I don't think it does as i have tried adding a new discussion and it isn't picked up, any ideas on how to do this? cheers Tim >Hi Tim, best way to do this is to create a topic, with the following >criteria: > >Field id: meta_type >Criteria type: String Criterion > >then add to the Value box Discussion Item, and save. > >Now you will have all discussion items listed for your portal. You can >extend this by modifying the criteria more as per your requirements. > >Then ALL ;^) you have to do to add it to your actions_box is to modify it >by >adding an entry something like: > > > > >Main thing, to remeber is to put a href to point to the actual place where >the topic is stored. > >It will be great if one can have both the topics and the sub_topics >generated as a drop-down list, perhaps this is an html/dtml issue?! or >java... any ideas! > >Hope this helps. > >Norman _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From seb@jamkit.com Wed Jul 18 13:16:11 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 18 Jul 2001 13:16:11 +0100 Subject: [Zope-CMF] portal_catalog acquisition problem Message-ID: <20010718131610.C29585@lenin.jamkit.com> I'm having a day of wierdness today... I'm trying to get my content to reindex itself, and it's failing. I've traced the problem to getToolByName, which is returning None. In particular, it's the aq_get(myobj, 'portal_catalog', default, 1) which is failing. The reason this is wierd, is because getToolByName(self, 'portal_anything_else') returns the tool. It's only the catalog tool which not getting acquired. Even stranger is the fact that I can do things like self.aq_inner.aq_parent.aq_parent.portal_catalog successfully, in the code, from the debugger. I had a quick look at the code for Acquisition but as I'm not much of a C hacker I had no idea how I'd debug it to work out what's going on. Any ideas? seb From Marc.van.Grootel@mendez.nl Wed Jul 18 12:40:04 2001 From: Marc.van.Grootel@mendez.nl (Marc van Grootel (Mendez Nederland)) Date: Wed, 18 Jul 2001 13:40:04 +0200 Subject: [Zope-CMF] Returning XML documents from CMF Message-ID: <694C70899F90D4118C4400D0B74741600DA3D4@VOYAGER> Hi, I was playing around creating a skin that outputs pages as XML. Previously with Zope I always added something like: to a document and that was it. However with CMF it seems to ignore this Content-Type. In IE i get the XML content but the browser seems to interpret it as HTML. Is there a way to 'fix' this? Thanks --Marc From jhgfjhgfjhgfjhgf@hotmail.com Wed Jul 18 13:21:33 2001 From: jhgfjhgfjhgfjhgf@hotmail.com (Tim Fouracre) Date: Wed, 18 Jul 2001 12:21:33 -0000 Subject: [Zope-CMF] newbie discussion question Message-ID: Sorry, ignore that last comment of mine! The reason it wasn't working was i was looking for a Document Item when the thing i had created was a Document. It all works now cheers Tim >Thanks for the help Norman, > >While i was waiting for a reply, i was messing about with creating a Topic, >and managed to come out with something similar :-) > >My question now is does the Topic auto catalog itself? so when new >Discussions are added, they are also returned by the query? I don't think >it >does as i have tried adding a new discussion and it isn't picked up, any >ideas on how to do this? > >cheers > >Tim _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From jon@pcgs.freeserve.co.uk Wed Jul 18 14:22:20 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 18 Jul 2001 14:22:20 +0100 Subject: [Zope-CMF] Returning XML documents from CMF Message-ID: Marc, It might be worth looking at the way the RSS and rssBody methods (in portal_skins/generic) do it? Cheers, Jon From lei@boxer.no Wed Jul 18 14:23:46 2001 From: lei@boxer.no (Lene Eikemo) Date: Wed, 18 Jul 2001 15:23:46 +0200 Subject: [Zope-CMF] ZPatterns & LoginManager Message-ID: Hi folks, I'm a real newbee, but need to get really advanced ASAP... (it's for a school-project) so; As far as I've concerned, LoginManager is a really neat, but complex product. -And I THINK I wan't to use it for my CMF-site. But if I've understood it right, I need to know how to use ZPatterns to use LoginManager??? -And that's not too easy, or what? (newbee means 4 weeks experience with Zope&CMF) cheers, Lene From tseaver@palladion.com Wed Jul 18 12:33:04 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 07:33:04 -0400 (EDT) Subject: [Zope-CMF] how does Members folder force login? In-Reply-To: Message-ID: On Tue, 17 Jul 2001, marc lindahl wrote: > > > If you try to view something for which you don't have the permission, > > Zope throws an Unauthorized exception, which generates a basic > > authentication box. > > Sometimes... other times it gives you the (hard-coded) Unauthorized error > page. > > > The CMF has a CookieCrumbler in it, which > > intercepts the exception, and redirects to a login form instead. So > > check out the cookie crumbler. > > Sure, I see where it does that in standard_html_header, but then I don't see > anything special about the Security settings for the Members folder... The 'roster' method, which functions as the default view for the 'Members' folder, calls a protected method on the 'portal_membership' tool; the 'Members' folder therefore doesn't require any special permission settings. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 18 12:42:24 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 07:42:24 -0400 (EDT) Subject: [Zope-CMF] MetaType in TypeInformation objects In-Reply-To: <3B53EEFE.8D80B738@nipltd.com> Message-ID: On Tue, 17 Jul 2001, Chris Withers wrote: > Tres Seaver wrote: > > > > Nope, because they aren't always the same. Suppose I want to > > create a new content type, "Press Release", which is actually > > a CMFDefault.Document under the covers, but which has different > > actions / skins / workflow / metdata policies, etc. In this case, > > the metatype would still be "Document", but the ID of the type > > object would be "Press Release". > > Yeah, but in either case, can't you sniff the meta_type from > the python product bit? Nope; you can't know from the name of the factory method what class it will instantiate, and therefore you can't get to the meta_type. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 18 12:41:19 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 07:41:19 -0400 (EDT) Subject: [Zope-CMF] Workflow, Events & Indexing In-Reply-To: <3B53ED86.BD77BAB5@nipltd.com> Message-ID: On Tue, 17 Jul 2001, Chris Withers wrote: > Tres Seaver wrote: > > > > The essence of my notion is that any method which changes > > catalogable attributes should call 'reindexObject', rather > > than relying on some underlying magic to get it called. > > This does seem to violate the principle of 'only write the code > once' :-S If objects recieved a notification that they had > changed, they could do this re-indexing rather than other > processes having to worry about this. Who else is going to tell an object that its attributes have changed? The object's own methods are responsible for making those changes, and therefore for notifying interested observers of the changes. > For example, what if the arguments to reindexObject change? You > have find all the places you call it and re-write them. This discussion started because of a failure in code which attempts to guess when it would be appropriate to reindex an object; guaranteeing that the reindex happens at the right time is *way* more important than "programmer convenience". > And what if (as I need to), you need to call something like > portal_discussion.updateDiscussion(object) when the object > changes? You need to go find all places the object could change > (how do you do that?) Grep for 'reindexObject'. :) > and add the extra call. > > This feels like something that belongs in a workflow or event > model. If / when we add an event channel, the responsibility for publishing events to it will still rest with the methods which are actually making changes to the objects; at that point, your event-based discussion tool would be a subscriber to the event channel. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 18 12:44:19 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 07:44:19 -0400 (EDT) Subject: [Zope-CMF] Workflow, Events & Indexing In-Reply-To: Message-ID: On Tue, 17 Jul 2001, marc lindahl wrote: > > > > From: Chris Withers > > > > This feels like something that belongs in a workflow or event model. > > Or inherited from a mixin class? Such a solution has two problems: - It is hard to make it work (look at the gymnastics which Persistence.Persistent has to go through sometime); - It makes objects harder to reuse (a lot of the "new religion" effort is aimed at reducing or eliminating the need for mix-in inheritance for just this reason). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From erik@thingamy.net Wed Jul 18 14:39:08 2001 From: erik@thingamy.net (Erik Enge) Date: 18 Jul 2001 15:39:08 +0200 Subject: [Zope-CMF] ZPatterns & LoginManager In-Reply-To: References: Message-ID: <874rsa8igz.fsf@thingamy.net> [Lene Eikemo] | As far as I've concerned, LoginManager is a really neat, but complex | product. -And I THINK I wan't to use it for my CMF-site. But if I've | understood it right, I need to know how to use ZPatterns to use | LoginManager? I don't think you need to know ZPatterns to use it, although it depends on it. You might be able to use LoginManager without grokking ZPatterns fully (I should know, I use LoginManager and I'm not comfortable saying I know ZPatterns). Maybe if you could tell us a bit more about what you're planning for your site, we might be able to rule out LoginManager? :) From marc@bowery.com Wed Jul 18 14:52:02 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 18 Jul 2001 09:52:02 -0400 Subject: [Zope-CMF] how does Members folder force login? In-Reply-To: Message-ID: > From: Tres Seaver > > The 'roster' method, which functions as the default view for the > 'Members' folder, calls a protected method on the 'portal_membership' > tool; the 'Members' folder therefore doesn't require any special > permission settings. Is it: portal_membership.getRoster portal_membership.getHomeUrl or portal_membership.getHomeFolder ? This is a very handy behavior... I wonder if there's some way to integrate it into the portal, like a property of portal folders... From tseaver@palladion.com Wed Jul 18 12:59:57 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 07:59:57 -0400 (EDT) Subject: [Zope-CMF] Create search for folders In-Reply-To: <004701c10f6a$1c04a120$175ebbca@apdip.net> Message-ID: On Wed, 18 Jul 2001, Yoke May Seow wrote: > I still can't figure out how to create a search criteria that > only allows me to search within the a folder and its > sub-folder. > > Anyone can help me on this? Appreciate it a lot. Thanks. Zope 2.4 adds a new index type, 'PathIndex', which is aimed at making this a no-brainer. Until then, you can achieve the effect in a couple of ways: - Add a property to each folder at a given "level" which identifies it uniquely among its peers; add a field index to the catalog on that property, and search it. - Add an ExternalMethod which generates a set of path prefixes for an object, and catalog its results with a keyword index. This script might look something like (untested): from Products.CMFCore.utils import getToolByName def getPathPrefixes( self ): """ Return the set of path prefixes for a given object; the result will be a tuple of tuples, e.g.: ( ( '', ) , ( '', 'Members' ) , ( '', 'Members', 'tres' ) , ( '', 'Members', 'tres', 'index_html' ) ) """ tool = getToolByName( self, 'portal_url' ) path = tool.getRelativeContentPath( self ) # tuple of IDs result = [] for i in range( len( path ) ): result.append( path[ : i+1 ] ) return tuple( result ) Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From seb@jamkit.com Wed Jul 18 15:41:40 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 18 Jul 2001 15:41:40 +0100 Subject: [Zope-CMF] Workflow, Events & Indexing In-Reply-To: ; from tseaver@palladion.com on Wed, Jul 18, 2001 at 07:41:19AM -0400 References: <3B53ED86.BD77BAB5@nipltd.com> Message-ID: <20010718154140.E29585@lenin.jamkit.com> * Tres Seaver [010718 14:39]: > On Tue, 17 Jul 2001, Chris Withers wrote: > > > Tres Seaver wrote: > > > > > > The essence of my notion is that any method which changes > > > catalogable attributes should call 'reindexObject', rather > > > than relying on some underlying magic to get it called. > > > > This does seem to violate the principle of 'only write the code > > once' :-S If objects recieved a notification that they had > > changed, they could do this re-indexing rather than other > > processes having to worry about this. < snip > > This discussion started because of a failure in code which > attempts to guess when it would be appropriate to reindex an > object; guaranteeing that the reindex happens at the right time > is *way* more important than "programmer convenience". I agree with Tres here. Something, somewhere has to take responsibility for reindexing, and the object itself would seem to be the correct place. However, I'd just like to point out again that the failure in the code is nothing to do with reindexing, although that was my own symptom; the code is broken w.r.t. wrapped workflow methods being called 'with notification'. It just so happens that the WorkflowCore also reindexes objects at the 'with notification' point. I fixed my symptoms as you suggested, but if anyone is using the notification features of the workflow, it won't work with CMF1.1. It strikes me this is a fairly serious bug; am I right? seb From listsmurf@bbox.org Wed Jul 18 15:22:46 2001 From: listsmurf@bbox.org (Jonathan) Date: Wed, 18 Jul 2001 16:22:46 +0200 Subject: [Zope-CMF] Members only CMF? Message-ID: Hi all, I want to use CMF 1.1 to build an intranet-type application, which has little use for publishing to anonymous users; all users have to be authenticated first to access content inside the application. How easy/hard is it to adapt CMF to only cater to members? And owners, managers, and reviewers of course. As far as I understand the code, CMF borrows its access control from Zope itself, right? Is that the part I need to look at? Thnx! Jonathan From Marc.van.Grootel@mendez.nl Wed Jul 18 15:20:39 2001 From: Marc.van.Grootel@mendez.nl (Marc van Grootel (Mendez Nederland)) Date: Wed, 18 Jul 2001 16:20:39 +0200 Subject: [Zope-CMF] Returning XML documents from CMF Message-ID: <694C70899F90D4118C4400D0B74741600DA3D6@VOYAGER> Hi Jon, Good thinking. RSS outputs the following at the top: Content-type: text/xml This works. I'm still learning so I did not know this before i was under the impression that this line was needed to get XML but by looking at the HTTP headers I found that this call doesn't work in regular Zope either. Zope just does it's own mime-type mapping based on the extension, is that correct? However, the solution at the top DOES work and seems to override the mapping based on the extension. I'm sure I found this dtml-call trick somewhere but it does not work. I always had document names ending with .xml which set the content-type automagically so I never noticed that it didn't work. I guess i have to study some of the docs on this ;) Thanks --Marc > -----Original Message----- > From: Jon Edwards [mailto:jon@pcgs.freeserve.co.uk] > Sent: Wednesday, July 18, 2001 3:22 PM > To: Zope-Cmf > Cc: Marc van Grootel (Mendez Nederland) > Subject: [Zope-CMF] Returning XML documents from CMF > > > Marc, > > It might be worth looking at the way the RSS and rssBody methods (in > portal_skins/generic) do it? > > Cheers, Jon > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports > and feature requests > From tseaver@palladion.com Wed Jul 18 13:33:32 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 08:33:32 -0400 (EDT) Subject: [Zope-CMF] Members only CMF? In-Reply-To: Message-ID: On Wed, 18 Jul 2001, Jonathan wrote: > Hi all, > > I want to use CMF 1.1 to build an intranet-type application, which > has little use for publishing to anonymous users; all users have to > be authenticated first to access content inside the application. > > How easy/hard is it to adapt CMF to only cater to members? And > owners, managers, and reviewers of course. As far as I understand the > code, CMF borrows its access control from Zope itself, right? Is that > the part I need to look at? Go to the "Security" tab of a CMFSite, and remove all anonymous permissions (uncheck acquired, too). Voila! you have what you want. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From listsmurf@bbox.org Wed Jul 18 15:51:01 2001 From: listsmurf@bbox.org (Jonathan) Date: Wed, 18 Jul 2001 16:51:01 +0200 Subject: [Zope-CMF] Members only CMF? In-Reply-To: References: Message-ID: >Go to the "Security" tab of a CMFSite, and remove all anonymous >permissions (uncheck acquired, too). Voila! you have what you >want. Looked at the Security tab, is it possible to have it set up that way by default when one creates a new CMFSite? The easiest way seems to amount to adding a few custom actions to the code that creates a new portal, adds the 'Members' folder etc. Thnx! Jonathan From tseaver@digicool.com Wed Jul 18 14:30:46 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 18 Jul 2001 09:30:46 -0400 Subject: [Zope-CMF] Members only CMF? References: Message-ID: <3B558F86.1080604@digicool.com> Jonathan wrote: >> Go to the "Security" tab of a CMFSite, and remove all anonymous >> permissions (uncheck acquired, too). Voila! you have what you >> want. > Looked at the Security tab, is it possible to have it set up that way by > default when one creates a new CMFSite? The easiest way seems to amount > to adding a few custom actions to the code that creates a new portal, > adds the 'Members' folder etc. We have a convention for setting up "customized" sites, which is to write a script (PythonScript or ExternalMethod) which can be run against a "stock" CMFSite. In your case, the script would run over all the permissions returned by the ZMI, setting (clearing, actually) the permissions you want. We are unlikely to add such a script to the product itself (but might accept such a patch). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From norbert@attira.com Wed Jul 18 16:37:16 2001 From: norbert@attira.com (Norbert Marrale) Date: Wed, 18 Jul 2001 17:37:16 +0200 Subject: [Zope-CMF] Registration Skin Broken? In-Reply-To: Message-ID: <3B55C94C.5022.3B62AE@localhost> After doing a checkout from the CVS today, I noticed a problem with registering new portal members when Zope needs to generate a user password. Invalid request The parameter, password, was omitted from the request. The new "register" skin in portal_skins/control seems to be the culprit. Copying the skin as released with CMF 1.1 to the custom skins folder seems to help for now. Any ideas on how to fix the pythonscript skin and not having to revert to the old DTML one? Norbert (CMF site at http://www.attira.net) On the Road of Life, there are Tourists and there are Travelers. I'd rather be Traveling! Norbert Marrale norbert@infocatch.com From jon@pcgs.freeserve.co.uk Wed Jul 18 17:04:02 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 18 Jul 2001 17:04:02 +0100 Subject: [Zope-CMF] Returning XML documents from CMF In-Reply-To: <694C70899F90D4118C4400D0B74741600DA3D6@VOYAGER> Message-ID: Hi Marc, I'm afraid I don't have deep enough Zen to tell you why it works, but I'm glad it did! :-) I'm just starting to look at the possibilities of using XML with CMF, and I'd like to fire a few questions/ideas at the group, if I may? 1. On the Proposed Enhancements page - http://cmf.zope.org/rqmts/proposals/ - there's one that's titled "Apply ParsedXML to Build Content Objects from XML", but it leads to an empty page? Is this a dogbowl-bug, or just a document waiting to be written? 2. Perhaps there could be a library of pre-defined XML-content-types, based on popular formats/DTDs (docbook, for example)? Each would have a CMF or XML output method, and an import method - great for interchanging content with other systems. 3. Total fantasy - what if there was a method/wizard for creating CMF content-types by processing a DTD? 4. Thinking about the CMS/layouts/templates thread - has anyone played with using XSLT for this? There are some examples for general Zope - Software Product: XSLTemplate http://www.zope.org/Members/karl/XSLTemplate/XSLTemplate HiawathaZ Zope Plugin - includes "XSLT Bean" http://www.pault.com/pault/prod/Hiawatha/HiawathaZ.html Software Product: nXMLDocument http://www.zope.org/Members/philh/nXMLDocument - but has anyone considered it with CMF? Downside : another technology to learn (but it would be optional, not compulsory), possible performance-hit? Upside : lots of tools/editors available (some open-source?) which might allow you to hide the complexity from end-users?, interop with other apps/systems, maximum buzzword-compliancy! ;-) Cheers, Jon From Marc.van.Grootel@mendez.nl Wed Jul 18 17:18:32 2001 From: Marc.van.Grootel@mendez.nl (Marc van Grootel (Mendez Nederland)) Date: Wed, 18 Jul 2001 18:18:32 +0200 Subject: [Zope-CMF] Returning XML documents from CMF Message-ID: <694C70899F90D4118C4400D0B74741600DA3DA@VOYAGER> Hi, Jon Edwards wrote: > 2. Perhaps there could be a library of pre-defined > XML-content-types, based > on popular formats/DTDs (docbook, for example)? Each would > have a CMF or XML > output method, and an import method - great for interchanging > content with > other systems. > > 3. Total fantasy - what if there was a method/wizard for creating CMF > content-types by processing a DTD? Reminds me of a perl module by Matt Sergeant. It has a nice method of getting from form input to xml (and vice versa) using xpath. I quite liked the idea. (see http://theoryx5.uwinnipeg.ca/CPAN/data/CGI-XMLForm/README.html) BTW his more recent Axkit could contain some other neat ideas (see http://www.axkit.org) --Marc From andrew@digicool.com Wed Jul 18 17:41:35 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Wed, 18 Jul 2001 12:41:35 -0400 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: <3B54685D.2A702402@digicool.com> Message-ID: Well, I guess that's fine since username and password is being passed over the wire in the clear anyhow. I don't see much difference whether it's in the url or in a hidden form. In either case an able person is going to get them if they want them; I guess the log issue is just makes another area where someone could exploit, thus I guess putting it into a post is the better of two evils. What about encoding them into a cookie, decoding them on the server side? Still crackable, but would take slightly more effort and exclude script kiddies?? Andrew > -----Original Message----- > From: shane@localhost.localdomain [mailto:shane@localhost.localdomain]On > Behalf Of Shane Hathaway > Sent: Tuesday, July 17, 2001 12:31 PM > To: Andrew Sawyers > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] CMFDefault register method & security > > > Andrew Sawyers wrote: > > Jens and I both think it's a bug; I couldn't come up with an > easy solution; > > all attempts at passing this through failed. If you've got a > solution, send > > it on over. Otherwise this is going to wait until one of us > can devote more > > time to it. We've both got other things on our plate at the moment. > > Use a form with hidden fields. Something like this (not looking at the > code): > >
> > > > > > The disadvantage of passing a password in a URL is that it might show up > in an HTTP log, which doesn't matter unless you're using HTTPS. The > hidden fields solution closes that hole. > > Shane > > > > -----Original Message----- > > > From: zope-cmf-admin@zope.org > [mailto:zope-cmf-admin@zope.org]On Behalf > > > Of Chris Withers > > > Sent: Tuesday, July 17, 2001 4:00 AM > > > To: jens@digicool.com > > > Cc: zope-cmf@zope.org > > > Subject: [Zope-CMF] CMFDefault register method & security > > > > > > > > > Jens, > > > > > > Did anyone have any thoughts about this bit of the bug? > > > > > > > > Also, should the registered method really contain a url which > > > has both the > > > > > username and password of a newly generated member in it? > > > Seems like a bit of a > > > > > security hole to me :-S > > > > > > cheers, > > > > > > Chris > From augusto@artlover.com Wed Jul 18 17:58:07 2001 From: augusto@artlover.com (Ausum) Date: Wed, 18 Jul 2001 11:58:07 -0500 Subject: [Zope-CMF] How to count the number of replies? Message-ID: <3B55C01F.3A95073B@artlover.com> Is there a default method to count the number of replies to a discussion-enabled content object? How could it be done, in the case there isn't one? Ausum From tseaver@digicool.com Wed Jul 18 17:59:10 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 18 Jul 2001 12:59:10 -0400 Subject: [Zope-CMF] Registration Skin Broken? References: <3B55C94C.5022.3B62AE@localhost> Message-ID: <3B55C05E.5090407@digicool.com> Norbert Marrale wrote: > After doing a checkout from the CVS today, I noticed a problem with > registering new portal members when Zope needs to generate a user > password. > > Invalid request > The parameter, password, was omitted from the request. > > The new "register" skin in portal_skins/control seems to be the culprit. > Copying the skin as released with CMF 1.1 to the custom skins folder > seems to help for now. Any ideas on how to fix the pythonscript skin > and not having to revert to the old DTML one? Fix the PythonScript to have default values for the two parameters, e.g.:: diff -u -r1.3 register.py --- register.py 12 Jul 2001 15:51:46 -0000 1.3 +++ register.py 18 Jul 2001 16:56:51 -0000 @@ -1,7 +1,7 @@ ## Script (Python) "register" ##title=Register a user ##bind namespace=_ -##parameters=password, confirm +##parameters=password='password', confirm='confirm' REQUEST=context.REQUEST portal_properties = context.portal_properties portal_registration = context.portal_registration I will check this in now, so you can: - update from CVS - apply the patch locally - customize the method and apply the patch by hand. > > Norbert > (CMF site at http://www.attira.net) Cool! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From curtis.horn@st.com Wed Jul 18 18:39:30 2001 From: curtis.horn@st.com (curtis.horn@st.com) Date: Wed, 18 Jul 2001 10:39:30 -0700 Subject: [Zope-CMF] Upgrading Zope and web apps In-Reply-To: Message-ID: Sorry if my questions are to basic, I'm relatively new to zope. I've been using zope mostly as a web server and a place to keep my own documents. I'd like to make my site public (on company intranet anyway) but first I want to know how to go about upgrading zope itself. My concern is that I will have something up and have to take it down for a prolonged period, or worse yet lose content. Second question is about "web" apps. I'm thinking of creating an application that will be distributed across many tools and using zope as the "glue" to hold them together. Making results and data go to a central location for all to use. Any suggestions? Curtis From khine@btinternet.com Wed Jul 18 18:53:25 2001 From: khine@btinternet.com (Norman Khine) Date: Wed, 18 Jul 2001 18:53:25 +0100 Subject: [Zope-CMF] New Portal Type Message-ID: Hello, I have setup a new portal type as per various documentation, now the problem I am getting is when I try to add a portal topic with MyNews as my meta_type, the topic does not pick it up? Any ideas as to how I can make these new meta_type known to the system. I have changed the meta type value to MyNews, but I still am unable to query it, if however I change the criteria to News Item, the topic finds it -- as though my new type is still being registered as an old news type. Any ideas or pointers Regards Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From travis@scipy.org Wed Jul 18 19:15:18 2001 From: travis@scipy.org (Travis N. Vaught) Date: Wed, 18 Jul 2001 13:15:18 -0500 Subject: [Zope-CMF] Upgrade lost member Prefs Message-ID: When migrating to the latest CMF and copying acl users and member folders, the Preferences for each member were lost. Namely, the Listed Status was reset to Not Listed for everyone. Is there a way, as an Administrator to set the members' Listed Status individually. Thanks From listsmurf@bbox.org Wed Jul 18 20:29:44 2001 From: listsmurf@bbox.org (Jonathan) Date: Wed, 18 Jul 2001 21:29:44 +0200 Subject: [Zope-CMF] Members only CMF? In-Reply-To: <3B558F86.1080604@digicool.com> References: <3B558F86.1080604@digicool.com> Message-ID: >We have a convention for setting up "customized" sites, which >is to write a script (PythonScript or ExternalMethod) which can >be run against a "stock" CMFSite. In your case, the script would >run over all the permissions returned by the ZMI, setting (clearing, >actually) the permissions you want. > >We are unlikely to add such a script to the product itself (but might >accept such a patch). Ah thanks. I'll see what I can do. BTW, disabling access to content for Anonymous breaks the redirect to the login page apparently, gets stuck in an endless loop redirecting to itself. Pretty logical of course since the login page is protected as well *sigh* Cya Jonathan From Christoph.Schirmer@snafu.de Wed Jul 18 20:36:02 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Wed, 18 Jul 2001 21:36:02 +0200 Subject: [Zope-CMF] Members only CMF? References: <3B558F86.1080604@digicool.com> Message-ID: <3B55E522.E639CFC2@snafu.de> This is a multi-part message in MIME format. --------------A1F72895EC1C7D41B73EA28D Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit ah - that´s the answer I never got when I asked twice :-) Thanks, Christoph Jonathan wrote: > BTW, disabling access to content > for Anonymous breaks the redirect to the login page apparently, gets > stuck in an endless loop redirecting to itself. Pretty logical of > course since the login page is protected as well *sigh* > --------------A1F72895EC1C7D41B73EA28D Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------A1F72895EC1C7D41B73EA28D-- From bkc@murkworks.com Wed Jul 18 22:38:00 2001 From: bkc@murkworks.com (Brad Clements) Date: Wed, 18 Jul 2001 17:38:00 -0400 Subject: [Zope-CMF] Customized image_edit causes browser hang on upload, even with no changes Message-ID: <3B55CA64.22918.5C3A8A31@localhost> I want to customize image_edit so it can create a thumbnail if the image is uploaded as a child of a custom Folder meta-type. I went to the content folder, found image_edit and clicked "customize" In the manage screen of the custom image_edit, I clicked save without making any changes. When I try to upload an image.. my browser now just hangs. If I rename custom/image_edit to image_editXXX, the retry the image upload, it works. There's something very strange happening here, any ideas? CMF-1.1 on Zope-2.3.3 on RH Linux 7.0 Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From bkc@murkworks.com Wed Jul 18 22:41:25 2001 From: bkc@murkworks.com (Brad Clements) Date: Wed, 18 Jul 2001 17:41:25 -0400 Subject: [Zope-CMF] Customize image_edit hang solved Message-ID: <3B55CB31.29352.5C3DAB08@localhost> Hmm. I had to add this line to the custom python script file=context.REQUEST.file Seems that whomever is calling the custom image_edit isn't passing a file argument... Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From tseaver@palladion.com Wed Jul 18 22:49:57 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 17:49:57 -0400 (EDT) Subject: [Zope-CMF] How to count the number of replies? In-Reply-To: <3B55C01F.3A95073B@artlover.com> Message-ID: On Wed, 18 Jul 2001, Ausum wrote: > Is there a default method to count the number of replies to a > discussion-enabled content object? > How could it be done, in the case there isn't one? If you care only about the "top-level" replies to an object, you can compute the length of the set returned by 'obj.talkback.getReplies()'. If you want all replies "below" an object, then use the new 'replyCount' method of DiscussionContainer class (added to CVS after CMF 1.1). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Jul 18 23:15:52 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 18 Jul 2001 18:15:52 -0400 (EDT) Subject: [Zope-CMF] Customized image_edit causes browser hang on upload, even with no changes In-Reply-To: <3B55CA64.22918.5C3A8A31@localhost> Message-ID: On Wed, 18 Jul 2001, Brad Clements wrote: > I want to customize image_edit so it can create a thumbnail if > the image is uploaded as a child of a custom Folder meta-type. > > I went to the content folder, found image_edit and clicked > "customize" > > In the manage screen of the custom image_edit, I clicked save > without making any changes. Does it work before you click "Save changes"? The object is there once you click "Customize". > When I try to upload an image.. my browser now just hangs. > > If I rename custom/image_edit to image_editXXX, the retry the > image upload, it works. > > There's something very strange happening here, any ideas? > > CMF-1.1 on Zope-2.3.3 on RH Linux 7.0 Hmm, have you customized the image upload form, by chance? I can't think of any other reason why this would break, and I can't reproduce it on my Linux box against current CVS. A couple of things to check: - Is the customized 'image_edit' a DTMLMethod or a PythonScript? - What browser are you uploading the file from? - Does the edit form have ':file' appended to the file browser element? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From khine@btinternet.com Thu Jul 19 00:00:42 2001 From: khine@btinternet.com (Norman Khine) Date: Thu, 19 Jul 2001 00:00:42 +0100 Subject: [Zope-CMF] The parameter, type_name, was omitted from the request. [for CMFWiki] Message-ID: Hello, I just got CMFWiki setup, but am getting the following error when adding pages The parameter, type_name, was omitted from the request. Traceback (innermost last): File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/dsuk5/zope/2-3-3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/mapply.py, line 155, in mapply (Object: invokeFactory) File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 117, in missing_name File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/HTTPResponse.py, line 569, in badRequestError BadRequest: (see above) my setup is Zope Version Zope 2.3.3 (source release, python 1.5.2, linux2) Python Version 2.1 (#1, Jun 6 2001, 14:18:24) [GCC 2.95.2 19991024 (release)] System Platform freebsdRELENG_4_2001_03_07 Any help would be much appreciated. Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From augusto@artlover.com Wed Jul 18 23:53:07 2001 From: augusto@artlover.com (Ausum) Date: Wed, 18 Jul 2001 17:53:07 -0500 Subject: [Zope-CMF] How to count the number of replies? References: Message-ID: <3B561353.101899EB@artlover.com> Thank you very much, Tres. I've downloaded CMF from CVS not more than three days ago, and the methods are in the DiscussionItem.py module, but I can't get it to work, no matter what combination of code I've tried, feeling my way all the time. Would you please post the code, in you don't mind, the same as you did with 'obj.talkback.getReplies()' ? Thanks in advance Ausum Tres Seaver wrote: > > On Wed, 18 Jul 2001, Ausum wrote: > > > Is there a default method to count the number of replies to a > > discussion-enabled content object? > > How could it be done, in the case there isn't one? > > If you care only about the "top-level" replies to an object, you > can compute the length of the set returned by > 'obj.talkback.getReplies()'. If you want all replies "below" an > object, then use the new 'replyCount' method of DiscussionContainer > class (added to CVS after CMF 1.1). > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From bkc@murkworks.com Wed Jul 18 23:58:08 2001 From: bkc@murkworks.com (Brad Clements) Date: Wed, 18 Jul 2001 18:58:08 -0400 Subject: [Zope-CMF] CMF-HOWTO: automatically make thumbnails on image upload Message-ID: <3B55DD2C.29995.5C83E59E@localhost> A mini-howto I have a custom portal type derived from a Zclass and Portal Folder. Users will be able to upload multiple images as child objects of this type. I want to automatically make a thumbnail when the image is uploaded. To do this, I customized image_edit (here it is) import PIL.Image import StringIO file=REQUEST.file # work around hang "bug" in CMF-1.1 because file doesn't get passed if custom image_edit used context.edit( precondition=precondition, file=file) qst='?portal_status_message=Image+changed.' parentFolder=context.REQUEST.PARENTS[1] if parentFolder.meta_type == 'CompanyProduct' and \ context.getId()[-10:] != '_Thumbnail': thumbName = context.getId()+'_Thumbnail' newthumb=getattr(parentFolder,thumbName,None) if not newthumb: newthumb = parentFolder.invokeFactory('Image',thumbName,RESPONSE=None) file.seek(0) im = PIL.Image.open(file) im.thumbnail((200,200)) outFile = StringIO.StringIO() im.save(outFile,'jpeg') outFile.seek(0) newthumb.manage_upload(outFile) context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/image_edit_form' + qst ) -- Then I had to create a PILProduct that has this __init__.py ( to allow Python scripts to get access to PIL) from Products.PythonScripts.Utility import allow_module, allow_class from StringIO import StringIO import PIL.Image allow_class(PIL.Image.Image) allow_module('PIL.Image') allow_class(StringIO) allow_module('StringIO') -- Unfortunately I had to use StringIO instead of cStringIO, because you can't pass cStringIO.StringIO to allow_class() Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From augusto@artlover.com Thu Jul 19 01:56:15 2001 From: augusto@artlover.com (Ausum) Date: Wed, 18 Jul 2001 19:56:15 -0500 Subject: [Zope-CMF] Strange catalog behaviour after uploading images Message-ID: <3B56302F.14A01AB9@artlover.com> I have a bunch of images uploaded to CMF trough FTP, after finding out that they were catalogued with this operation. Neverthelees they can't be found by their id, and after supossing it was because of the 'private' status they're set by default after the process, I set a few of them to 'published'. The problem is that while the CMF interface tells you the current image is in 'published' mode, the catalog just don't know it, and if you perform a manual catalog update the same images still are in private condition to the catalog. Now, after uploading one image as usual through the member's desktop, and publish it, the catalog behaviour is the same: The file is catalogued as expected, but the image status is still private. A manual update does solve the problem. Are these issues currently in deveolpment, or is it possible that my CMF installation has inconsistencies?. Thanks in advance, Ausum From yokemay@apdip.net Thu Jul 19 08:49:16 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Thu, 19 Jul 2001 15:49:16 +0800 Subject: [Zope-CMF] Create search for folders In-Reply-To: Message-ID: <000601c11027$50fcd380$175ebbca@apdip.net> Hi, Here's part of the code on the customised search_form: I've created the property, 'folder_name', on the folders. On the Portal Catalog, I created a Field Index on the Indexes and Metadata tab. On the Advanced search, I entered a text on the Full text field and selected option A. The search results found 0 items. What is going on? Regards, SEOW Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net Tel: +603-2559122 ext. 2206 Fax: +603-2539740 Mobile: +6016-2837395 ICQ: 321345 From chrisw@nipltd.com Wed Jul 18 22:20:33 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 18 Jul 2001 22:20:33 +0100 Subject: [Zope-CMF] New religion References: Message-ID: <3B55FDA1.72D993CE@nipltd.com> marc lindahl wrote: > > > From: Chris Withers > > > > This feels like something that belongs in a workflow or event model. > > Or inherited from a mixin class? Nah, it'd be a sercice in the new religion model, which I like very much :-) Chris From chrisw@nipltd.com Wed Jul 18 22:35:47 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 18 Jul 2001 22:35:47 +0100 Subject: [Zope-CMF] workflow (public/private), reusing code, and separation ofpresentation... References: Message-ID: <3B560133.EB352F6D@nipltd.com> I just wanted to shout "me too!" with this... The content object should not let people get it's attributes if the workflow state doesn't allow it. That should be the case with CookedBody() below... cheers, Chris marc lindahl wrote: > > I know this overlaps some current threads, but to focus on this issue. I'm > doing a CMF portal where there are other areas (folders) than the Members > area, and I'm running into the situation that in order to properly observe > the Workflow (e.g. with the default, simply controlling public/private > display behavior), I have to explicitly put DTML to check for this every > place I want to display something. > > For example, I have a page which shows, among other things, the text from > another document called 'bio' in a table cell (if it exists): > >
> > Now, that will show bio regardless of it's workflow status, unless I put a > pile of code in there. > > Seems to me, the object (Document or whatever) should know better? Also, > even if it doesn't, is there a standardized way to test for whether it's > displayable, independant of the exact workflow (e.g. what if there's no > 'published' state, it's called 'public' instead?) > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From chrisw@nipltd.com Wed Jul 18 22:30:14 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 18 Jul 2001 22:30:14 +0100 Subject: [Zope-CMF] CMFDefault register method & security References: Message-ID: <3B55FFE6.C5153016@nipltd.com> Andrew Sawyers wrote: > > Well, I guess that's fine since username and password is being passed over > the wire in the clear anyhow. I don't see much difference whether it's in > the url or in a hidden form. In either case an able person is going to get > them if they want them; I guess the log issue is just makes another area > where someone could exploit, thus I guess putting it into a post is the > better of two evils. What about encoding them into a cookie, decoding them > on the server side? Still crackable, but would take slightly more effort > and exclude script kiddies?? I can't think of a good solution here. What I would say is that if there is no good solution, the 'log me in' feature should really be removed. It's not too much to ask people to type their username and password in after they've just joined... cheers, Chris From chrisw@nipltd.com Wed Jul 18 22:38:07 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 18 Jul 2001 22:38:07 +0100 Subject: [Zope-CMF] MetaType in TypeInformation objects References: Message-ID: <3B5601BF.C69BDF77@nipltd.com> Tres Seaver wrote: > > Nope; you can't know from the name of the factory method what > class it will instantiate, and therefore you can't get to the > meta_type. Yeah, I see this now, but this is a problem. I've already been bitten several times by putting the wrong thing in that box. Should this problem be solved by Zope in general? Should factory methods return the meta_type of objects they create? I dunno, I'm just guessing here... cheers, Chris From robert@redcor.ch Thu Jul 19 09:35:15 2001 From: robert@redcor.ch (Robert Rottermann) Date: Thu, 19 Jul 2001 10:35:15 +0200 Subject: [Zope-CMF] Can not import cmf-win.zexp in unix and vicewersa Message-ID: <002801c1102d$bdf09d40$0a01a8c0@stravinsky> This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C1103E.7F6D4990 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi there, looks like the cr/lf monster has struk again. When I import a CMF-site into a Zope running on Linux it does not show = any file-system skins content for skins I created under windows. When I copy the skins-folder from a Site I create on the Linux box = things are fine again. When I then bring that site back to the windows box per export/import = there is no skins-content anymore (the sins-folder however are there). I am using Zope 2.3.3 and CMF-1.1 I wonder whether the CR/LF fix for python scripts that was in the CVS = did not make it to the final CMF-1.1 robert ------=_NextPart_000_0025_01C1103E.7F6D4990 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi there,
looks like the cr/lf monster has = struk=20 again.
 
When I import a CMF-site into a Zope = running on=20 Linux it does not show any file-system skins content for skins I created = under=20 windows.
 
When I copy the skins-folder from a = Site I create=20 on the Linux box things are fine again.
 
When I then bring that site back to the = windows box=20 per export/import there is no skins-content anymore (the sins-folder = however are=20 there).
 
I am using Zope 2.3.3 and = CMF-1.1
 
I wonder whether the CR/LF fix for = python scripts=20 that was in the CVS did not make it to the final = CMF-1.1
 
robert
------=_NextPart_000_0025_01C1103E.7F6D4990-- From karimy@nipltd.com Thu Jul 19 10:10:53 2001 From: karimy@nipltd.com (Karim Yaici) Date: Thu, 19 Jul 2001 10:10:53 +0100 Subject: [Zope-CMF] New Portal Type References: Message-ID: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> Hi there, I remember I had the same problem when trying to create a Factory-based content type based on the Document type. Though I have changed the 'meta type' to 'My Document' (in the portal_types form), it is still recording it as Document. > I have setup a new portal type as per various documentation, now the problem > I am getting is when I try to add a portal topic with MyNews as my > meta_type, the topic does not pick it up? Maybe you can search for the items by 'Type' rather than by 'Meta Type'. I don't know what are the drawbacks of this methd, though. Cheers, Karim From chrisw@nipltd.com Thu Jul 19 10:16:44 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 10:16:44 +0100 Subject: [Zope-CMF] New Portal Type References: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> Message-ID: <3B56A57C.4A15CD32@nipltd.com> Karim Yaici wrote: > > I remember I had the same problem when trying to create a Factory-based > content type based on the Document type. Though I have changed the 'meta > type' to 'My Document' (in the portal_types form), it is still recording it > as Document. Hehe, Tres, another one bitten ;-) Karim, The meta_type should never be changed, unless you actually change the meta_type of the python product the type is based on. cheers, Chris (who also got confused by this) From seb@jamkit.com Thu Jul 19 11:10:45 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:10:45 +0100 Subject: [Zope-CMF] Customized image_edit causes browser hang on upload, even with no changes In-Reply-To: <3B55CA64.22918.5C3A8A31@localhost>; from bkc@murkworks.com on Wed, Jul 18, 2001 at 05:38:00PM -0400 References: <3B55CA64.22918.5C3A8A31@localhost> Message-ID: <20010719111043.C32136@lenin.jamkit.com> I had something similar yesterday with the stylesheet properties. I clicked 'customize', did nothing to the customized file, and the display went screwy. I deleted the customized file, and everything went normal again. seb * Brad Clements [010718 22:46]: > I want to customize image_edit so it can create a thumbnail if the image is uploaded as > a child of a custom Folder meta-type. > > I went to the content folder, found image_edit and clicked "customize" > > In the manage screen of the custom image_edit, I clicked save without making any > changes. > > When I try to upload an image.. my browser now just hangs. > > If I rename custom/image_edit to image_editXXX, the retry the image upload, it works. > > There's something very strange happening here, any ideas? > > CMF-1.1 on Zope-2.3.3 on RH Linux 7.0 From seb@jamkit.com Thu Jul 19 11:13:06 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:13:06 +0100 Subject: [Zope-CMF] Customize image_edit hang solved In-Reply-To: <3B55CB31.29352.5C3DAB08@localhost>; from bkc@murkworks.com on Wed, Jul 18, 2001 at 05:41:25PM -0400 References: <3B55CB31.29352.5C3DAB08@localhost> Message-ID: <20010719111305.D32136@lenin.jamkit.com> OK, that means my useless comment was *really* useless ;-) Still, a bit puzzling. If it crops up again when I'm not in a frenzied rush, I'll look into it more. seb * Brad Clements [010718 22:49]: > Hmm. I had to add this line to the custom python script > > file=context.REQUEST.file > > Seems that whomever is calling the custom image_edit isn't passing a file argument... From khine@btinternet.com Thu Jul 19 10:45:05 2001 From: khine@btinternet.com (Norman Khine) Date: Thu, 19 Jul 2001 10:45:05 +0100 Subject: [Zope-CMF] New Portal Type In-Reply-To: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> Message-ID: Thanks to all, for clarifying this, it is confusing, but we are all learning by experimenting ;^) -----Original Message----- From: Karim Yaici [mailto:karimy@nipltd.com] Sent: Thursday, July 19, 2001 10:11 AM To: Norman Khine; Zope-CMF Subject: Re: [Zope-CMF] New Portal Type Hi there, I remember I had the same problem when trying to create a Factory-based content type based on the Document type. Though I have changed the 'meta type' to 'My Document' (in the portal_types form), it is still recording it as Document. > I have setup a new portal type as per various documentation, now the problem > I am getting is when I try to add a portal topic with MyNews as my > meta_type, the topic does not pick it up? Maybe you can search for the items by 'Type' rather than by 'Meta Type'. I don't know what are the drawbacks of this methd, though. Cheers, Karim From gitte@mmmanager.org Thu Jul 19 10:40:25 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 19 Jul 2001 11:40:25 +0200 Subject: [Zope-CMF] Isn't Creator a property ? Message-ID: <01071911402501.01914@squidbitch.mmmanager.org> Hello, I want to make a path to the creator of an object's memberfolder. I tried with something like this: But got this error: Error Type: TypeError Error Value: illegal argument type for built-in operation Okay ... then I tried with this: But then the output is: Members/ Is the Creator an object or a property ??? Any other to find the memberfolder of the creator ?? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: This breaks the cron job that calls self.Zoo.Diet.LargeAnimals.hippo.feed(), and all the hippos starve. Someone uses self.Zoo.Diet.buildings.visitor_reception.feed(), and ends up filling the reception with hippo food. - Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal From seb@jamkit.com Thu Jul 19 11:22:29 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:22:29 +0100 Subject: [Zope-CMF] Isn't Creator a property ? In-Reply-To: <01071911402501.01914@squidbitch.mmmanager.org>; from gitte@mmmanager.org on Thu, Jul 19, 2001 at 11:40:25AM +0200 References: <01071911402501.01914@squidbitch.mmmanager.org> Message-ID: <20010719112227.E32136@lenin.jamkit.com> * Gitte Wange [010719 10:45]: < snip > > Is the Creator an object or a property ??? It's a method :-) Creator() seb From khine@btinternet.com Thu Jul 19 10:50:55 2001 From: khine@btinternet.com (Norman Khine) Date: Thu, 19 Jul 2001 10:50:55 +0100 Subject: [Zope-CMF] Swishdot & Berlin Slides In-Reply-To: <3B569F1F.6B19D8AB@nipltd.com> Message-ID: Sorry Chris, My fault, I was loging in for the Swishdot tree and not squshdot as it clearly states in the instructions, perhaps I need a pair of specks now. I checked this out out last night, but am getting errors on starting the zope server, any thoughts? here is the traceback of the broken Swishdot product Traceback (most recent call last): File "/usr/home/dsuk5/zope/2-3-3/lib/python/OFS/Application.py", line 528, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/home/dsuk5/zope/2-3-3/lib/python/Products/Swishdot/__init__.py", line 6, in ? from DiscussionTool import DiscussionTool IndentationError: expected an indented block (DiscussionTool.py, line 57) regards norman -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Thursday, July 19, 2001 9:50 AM To: Norman Khine Subject: Re: [Zope-CMF] Swishdot & Berlin Slides Norman Khine wrote: > > the cvs for swishdot does not allow anonymous login in, i can log in for > squishdot, but I get an authorization fail?! Hmmm, is anyone else experiencing this? cheers, Chris From seb@jamkit.com Thu Jul 19 11:26:50 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:26:50 +0100 Subject: [Zope-CMF] Upgrading Zope and web apps In-Reply-To: ; from curtis.horn@st.com on Wed, Jul 18, 2001 at 10:39:30AM -0700 References: Message-ID: <20010719112648.F32136@lenin.jamkit.com> Hi Curtis, Since your questions aren't specifically about the CMF, which is a framework built on top of Zope, you might get more answers from the zope@zope.org mailing list. * curtis.horn@st.com [010718 18:49]: > I've been using zope mostly as a web server and a place to keep my own > documents. I'd like to make my site public (on company intranet > anyway) but first I want to know how to go about upgrading zope > itself. My concern is that I will have something up and have to take > it down for a prolonged period, or worse yet lose content. To upgrade Zope, the worst case scenario is this: install the new version to a different location; copy the Data.fs file from the old location to the new one; stop the old zope; start the new zope. You won't lose any data. > Second question is about "web" apps. I'm thinking of creating an > application that will be distributed across many tools and using zope > as the "glue" to hold them together. Making results and data go to a > central location for all to use. Any suggestions? Of course, you'll be building your tools in python :-) Look at wxPython for a good GUI toolkit. Look at XML-RPC for remote invocation of zope methods. seb From gitte@mmmanager.org Thu Jul 19 10:48:19 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 19 Jul 2001 11:48:19 +0200 Subject: [Zope-CMF] Isn't Creator a property ? In-Reply-To: <20010719112227.E32136@lenin.jamkit.com> References: <01071911402501.01914@squidbitch.mmmanager.org> <20010719112227.E32136@lenin.jamkit.com> Message-ID: <01071911481902.01914@squidbitch.mmmanager.org> On Thursday 19 July 2001 12:22, you wrote: > * Gitte Wange [010719 10:45]: > > < snip > > > > Is the Creator an object or a property ??? > > It's a method :-) > > Creator() > > seb Thanks seb :-) memberfolder="'Members/' + Creator()" works :-) Is this method documented anywhere ? (Couldn't find it in the help docs for Zope). And what object is it a method of ? Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Yeah, yeah, it's 7PM Christmas Eve over there, and you're in the middle of your Christmas dinner. You might feel that it's unreasonable of me to ask you to test out my latest crazy idea. How selfish of you. Get back there in front of the computer NOW. Christmas can wait. Linus "the Grinch" Torvalds - Linus Torvalds From seb@jamkit.com Thu Jul 19 11:29:13 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:29:13 +0100 Subject: [Zope-CMF] Strange catalog behaviour after uploading images In-Reply-To: <3B56302F.14A01AB9@artlover.com>; from augusto@artlover.com on Wed, Jul 18, 2001 at 07:56:15PM -0500 References: <3B56302F.14A01AB9@artlover.com> Message-ID: <20010719112912.G32136@lenin.jamkit.com> I've never seen this problem with any versions of the CMF. Updating the status of an object in the catalog is the responsability of the Workflow. Have you altered it at all? seb * Ausum [010719 01:59]: > Now, after uploading one image as usual through the member's desktop, > and publish it, the catalog behaviour is the same: The file is > catalogued as expected, but the image status is still private. A manual > update does solve the problem. From seb@jamkit.com Thu Jul 19 11:39:17 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Jul 2001 11:39:17 +0100 Subject: [Zope-CMF] Isn't Creator a property ? In-Reply-To: <01071911481902.01914@squidbitch.mmmanager.org>; from gitte@mmmanager.org on Thu, Jul 19, 2001 at 11:48:19AM +0200 References: <01071911402501.01914@squidbitch.mmmanager.org> <20010719112227.E32136@lenin.jamkit.com> <01071911481902.01914@squidbitch.mmmanager.org> Message-ID: <20010719113915.H32136@lenin.jamkit.com> * Gitte Wange [010719 10:58]: > On Thursday 19 July 2001 12:22, you wrote: > > * Gitte Wange [010719 10:45]: > > > > < snip > > > > > > Is the Creator an object or a property ??? > > > > It's a method :-) > > > > Creator() > Is this method documented anywhere ? > (Couldn't find it in the help docs for Zope). > And what object is it a method of ? It's a method of DublinCore. The best place for documentation of this kind of thing at the moment is a servce's interface definition: CMFCore/interfaces/DublinCore.py Quick thought: it would be easy enough to write a script to HTML-ize the interfaces and their doc strings. Didn't Dieter do something like this? seb From lei@boxer.no Thu Jul 19 12:28:59 2001 From: lei@boxer.no (Lene Eikemo) Date: Thu, 19 Jul 2001 13:28:59 +0200 Subject: [Zope-CMF] Login Message-ID: I want my CMF-site-members to enter from an intranet-site without loggin in! In other words; when the user clicks on the Zope-link on the intranet,he automatically gets his "My stuff" -without seeing the login-schema at all. Is this possible??? (the user is authenticated at the intranet using LDAP, and I'm planning to use LoginManager with LDAP-aut.) (or should i use LDAPAdapter? I'm NOT going to change/add user-records in Zope) Lene K From norman@khine.net Thu Jul 19 12:37:53 2001 From: norman@khine.net (Norman Khine) Date: Thu, 19 Jul 2001 12:37:53 +0100 Subject: [Zope-CMF] CMFWiki -- Error Value: URL Message-ID: Hi, I am currently, experimenting, with the cmfwiki type, for use in colaborative member project/s creations. But I am finding, that a wiki page is being displayed when a search is made as a found item, but if a member clicks on this they get an error, which is as follows: Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: URL and traceback Traceback (innermost last): File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/dsuk5/zope/2-3-3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: FrontPage) File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: view) File /usr/home/dsuk5/zope/2-3-3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: view) File /usr/home/dsuk5/zope/2-3-3/lib/python/Products/CMFCore/PortalContent.py, line 247, in view (Object: FrontPage) File /usr/home/dsuk5/zope/2-3-3/lib/python/Products/CMFWiki/CMFWikiPage.py, line 139, in __call__ (Object: FrontPage) File /usr/home/dsuk5/zope/2-3-3/lib/python/Products/CMFCore/FSDTMLMethod.py, line 182, in __call__ (Object: RestrictedDTML) File /usr/home/dsuk5/zope/2-3-3/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: RestrictedDTML) File /usr/home/dsuk5/zope/2-3-3/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_html_header) File /usr/home/dsuk5/zope/2-3-3/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: standard_html_header) File /usr/home/dsuk5/zope/2-3-3/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_top_bar) File /usr/home/dsuk5/zope/2-3-3/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: standard_top_bar) File /usr/home/dsuk5/zope/2-3-3/lib/python/DocumentTemplate/DT_Let.py, line 149, in render (Object: member="portal_membership.getAuthenticatedMember()" listMembers="portal_membership.checkPermission('List portal members', member)") File /usr/home/dsuk5/zope/2-3-3/lib/python/DocumentTemplate/DT_Var.py, line 277, in render (Object: URL) KeyError: (see above) I can view the wiki, only if I use the wiki contents link, if this is the case, how do I ensure that if a user makes a search and finds a wiki page, this link is not broken as is with the above error. thanks Norman From Anthony Baxter Thu Jul 19 12:53:16 2001 From: Anthony Baxter (Anthony Baxter) Date: Thu, 19 Jul 2001 21:53:16 +1000 Subject: [Zope-CMF] Login In-Reply-To: Message from "Lene Eikemo" of "Thu, 19 Jul 2001 13:28:59 +0200." Message-ID: <200107191153.f6JBrHW22218@mbuna.arbhome.com.au> If you can get them to use Client-side certificates, I have a ClientCertUserDb that could probably be adapted for use in the CMF. Anthony >>> "Lene Eikemo" wrote > I want my CMF-site-members to enter from an intranet-site without loggin in! > In other words; when the user clicks on the Zope-link on the intranet,he > automatically gets his "My stuff" -without seeing the login-schema at all. > Is this possible??? > (the user is authenticated at the intranet using LDAP, and I'm planning to > use LoginManager with LDAP-aut.) (or should i use LDAPAdapter? I'm NOT going > to change/add user-records in Zope) > > Lene K > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requ ests > -- Anthony Baxter It's never too late to have a happy childhood. From jens@digicool.com Thu Jul 19 13:32:32 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Thu, 19 Jul 2001 08:32:32 -0400 Subject: [Zope-CMF] Login In-Reply-To: Message-ID: <20010719123307.A319213930@kermit.dataflake.org> lene, this is probably not possible if your intranet site and your zope site are on different machines with different hostnames. the browser will not send username and password information it collected on one site when you browse to another site, regardless of whether your intranet site uses cookies or basic auth. even the fact that both sites use the same user data on the backend does not change this, it's just a basic browser "security" issue. there is always the (pretty insecure) method of putting username and password into the link that the user clicks to jump to the intranet. an example of that can be found in your CMF, look for "registered.dtml" in the portal_types tool under the "generic" skins folder. this is not secure because username and password are sent across the network in clear text, however, if both your sites are internal and not accessed from the outside that might be all you need. a more complicated way of doing it would be at the user folder level, but this would require writing python code. your link on the intranet site could have a query string with a username and encrypted password that would be tested for and compared with the encrypted version of that user's password in the user folder. jens On Thursday, July 19, 2001, at 07:28 , Lene Eikemo wrote: > I want my CMF-site-members to enter from an intranet-site without loggin > in! > In other words; when the user clicks on the Zope-link on the intranet,he > automatically gets his "My stuff" -without seeing the login-schema at all. > Is this possible??? > (the user is authenticated at the intranet using LDAP, and I'm planning to > use LoginManager with LDAP-aut.) (or should i use LDAPAdapter? I'm NOT > going > to change/add user-records in Zope) > > Lene K > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From pra@baba9.com Thu Jul 19 13:40:40 2001 From: pra@baba9.com (Priya Ramkumar) Date: Thu, 19 Jul 2001 18:10:40 +0530 Subject: [Zope-CMF] Structured text & CMF1.1 Message-ID: <00ce01c11050$0584c560$0f00a8c0@websoft.com> Hi I am using CMF1.1 & Zope2.3.3. I am trying to create documents using structured text but have problems in creating. When I indent the paragraphs to create headings, the headings do not appear as H1. Also, creating tables using "||" does not seem to work. And, the text in unordered list appears in a bigger font then the rest of the text. Example: Heading1 This is indented .... || c1 || c2 || || ab || cd || o element1 o element2 o element3 Could anyone tell me what mistake I am doing? Thanks. Priya From tseaver@palladion.com Thu Jul 19 13:45:57 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 19 Jul 2001 08:45:57 -0400 Subject: [Zope-CMF] Isn't Creator a property ? References: <01071911402501.01914@squidbitch.mmmanager.org> <20010719112227.E32136@lenin.jamkit.com> <01071911481902.01914@squidbitch.mmmanager.org> <20010719113915.H32136@lenin.jamkit.com> Message-ID: <3B56D685.6010106@palladion.com> seb bacon wrote: > * Gitte Wange [010719 10:58]: > >>On Thursday 19 July 2001 12:22, you wrote: >> >>>* Gitte Wange [010719 10:45]: >>> >>>< snip > >>> >>>>Is the Creator an object or a property ??? >>>> >>>It's a method :-) >>> >>> Creator() >>> > >>Is this method documented anywhere ? >>(Couldn't find it in the help docs for Zope). >>And what object is it a method of ? >> > > It's a method of DublinCore. The best place for documentation of this > kind of thing at the moment is a servce's interface definition: > > CMFCore/interfaces/DublinCore.py > > Quick thought: it would be easy enough to write a script to HTML-ize > the interfaces and their doc strings. Didn't Dieter do something like > this? CMFCore registers those interface files as "API Help"; check the Zope help system. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From marc@bowery.com Thu Jul 19 14:22:39 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 19 Jul 2001 09:22:39 -0400 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: <3B55FFE6.C5153016@nipltd.com> Message-ID: > From: Chris Withers > > What I would say is that if there is no good solution, the 'log me in' feature > should really be removed. It's not too much to ask people to type their > username > and password in after they've just joined... Or, remove the log me in feature and just log the person in, not in a separate step... Why else would they join? From gitte@mmmanager.org Thu Jul 19 14:28:05 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Thu, 19 Jul 2001 15:28:05 +0200 Subject: [Zope-CMF] Isn't Creator a property ? In-Reply-To: <3B56D685.6010106@palladion.com> References: <01071911402501.01914@squidbitch.mmmanager.org> <20010719113915.H32136@lenin.jamkit.com> <3B56D685.6010106@palladion.com> Message-ID: <01071915280509.01914@squidbitch.mmmanager.org> On Thursday 19 July 2001 14:45, you wrote: > seb bacon wrote: > > * Gitte Wange [010719 10:58]: > >>On Thursday 19 July 2001 12:22, you wrote: > >>>* Gitte Wange [010719 10:45]: > >>> > >>>< snip > > >>> > >>>>Is the Creator an object or a property ??? > >>> > >>>It's a method :-) > >>> > >>> Creator() > >> > >>Is this method documented anywhere ? > >>(Couldn't find it in the help docs for Zope). > >>And what object is it a method of ? > > > > It's a method of DublinCore. The best place for documentation of this > > kind of thing at the moment is a servce's interface definition: > > > > CMFCore/interfaces/DublinCore.py > > > > Quick thought: it would be easy enough to write a script to HTML-ize > > the interfaces and their doc strings. Didn't Dieter do something like > > this? > > CMFCore registers those interface files as "API Help"; check the > Zope help system. > > Tres. Thank you Seb - I found it :-) I was wondering - is there some "tool" out there to create an API doc help from your python classes ???? They all look so "standard" so I thought you had used some kind of template or so. Regards, -- Gitte Wange Jensen Sys Admin, Developer and a lot more MMmanager.org Aps, Denmark Phone: +45 29 72 79 72 Email: gitte@mmmanager.org Web: www.mmmanager.org Quote of the day: Oh, I can agree with that. Discipline can be good for you. - Linus Torvalds From Anthony Baxter Thu Jul 19 14:47:56 2001 From: Anthony Baxter (Anthony Baxter) Date: Thu, 19 Jul 2001 23:47:56 +1000 Subject: [Zope-CMF] Login In-Reply-To: Message from Jens Vagelpohl of "Thu, 19 Jul 2001 08:32:32 -0400." <20010719123307.A319213930@kermit.dataflake.org> Message-ID: <200107191347.f6JDlu622932@mbuna.arbhome.com.au> couldn't you use a cookie set up to go to all machines in the domain? hacky as hell, but... Anthony >>> Jens Vagelpohl wrote > lene, > > this is probably not possible if your intranet site and your zope site are > on different machines with different hostnames. the browser will not send > username and password information it collected on one site when you browse > to another site, regardless of whether your intranet site uses cookies or > basic auth. even the fact that both sites use the same user data on the > backend does not change this, it's just a basic browser "security" issue. > > there is always the (pretty insecure) method of putting username and > password into the link that the user clicks to jump to the intranet. an > example of that can be found in your CMF, look for "registered.dtml" in > the portal_types tool under the "generic" skins folder. this is not secure > because username and password are sent across the network in clear text, > however, if both your sites are internal and not accessed from the outside > that might be all you need. > > a more complicated way of doing it would be at the user folder level, but > this would require writing python code. your link on the intranet site > could have a query string with a username and encrypted password that > would be tested for and compared with the encrypted version of that user's > password in the user folder. > > jens > > > > > On Thursday, July 19, 2001, at 07:28 , Lene Eikemo wrote: > > > I want my CMF-site-members to enter from an intranet-site without loggin > > in! > > In other words; when the user clicks on the Zope-link on the intranet,he > > automatically gets his "My stuff" -without seeing the login-schema at all. > > Is this possible??? > > (the user is authenticated at the intranet using LDAP, and I'm planning to > > use LoginManager with LDAP-aut.) (or should i use LDAPAdapter? I'm NOT > > going > > to change/add user-records in Zope) > > > > Lene K > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > > requests > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requ ests > -- Anthony Baxter It's never too late to have a happy childhood. From norton@alum.mit.edu Thu Jul 19 17:27:49 2001 From: norton@alum.mit.edu (Joseph Wayne Norton) Date: Fri, 20 Jul 2001 01:27:49 +0900 Subject: [Zope-CMF] PortalFolders - 2 questions Message-ID: <877kx4g9yy.wl@namaste.tokyo.att.ne.jp> Hello. I have 2 questions regarding PortalFolders. - using FTP - is it possible to specify or turn on/turn off behavior of whether a normal Zope Folder or a CMF PortalFolder is created due to a mkdir command? My current understanding is that a Zope folder will always be created. Documents seem to behave as expected. - allowed_content_types - what is the best way to support this behavior on an instance basis? Currently, this behavior seems to be supported only on a class basis. For example, I would like to limit certain PortalFolders to only allow for "Images" to be added. I can think of 2 ways of doing this currently. a. create a new PortalFolder-like python class whose base class is PortalFolder ... such as PortalImageFolder. Then use the type_tool to set allowed_content_types only to "Image". b. after adding a PortalFolder set a property such as "self.allowed_content_types_on_an_instance_basis = (Image,)" modify the invokeFactory skin to check for this property hanging off of each PortalFolderish object and filter based on this property as well. thanks, - joe n. From palomar@sg.uji.es Thu Jul 19 17:46:19 2001 From: palomar@sg.uji.es (Juan David Ibáñez Palomar) Date: Thu, 19 Jul 2001 18:46:19 +0200 (METDST) Subject: [Zope-CMF] Re: Multilingual cmf site (plain text) In-Reply-To: <002a01c10f67$59c8e230$4ac809c0@saraswathi> from "Dhanu" at Jul 18, 2001 02:25:10 PM Message-ID: <20010719164620.235BB66B@nuvol.uji.es> Hi Dhanu, I'm not a CMF user so I can't say too much. Well, my suggestion is to download the latest Localizer release (0.5.1) and try the tutorial that includes (localizer_tutorial.zexp), I think it will give some clue. On a related note, is there somebody else using (or trying to use) the Localizer with CMF? I'd like to make it to play nicely with CMF, but I need help for that since I'm not a CMF user, any feedback would be very appreciated. Regards, jdavid > > Hai Friends, > > iam working on building a web site with cmf with multi language > functionality. > I came across Localizer and i felt it is good for providing links and some > static content in multiple languages. > > Does any one has good idea of how to proceed in building good Multilingual > cmf site. > > I did not spent much time thinking on how to do it. > I thought it is better to take your opinion in proceeding further,as iam > still a newbie. > > Your ideas are very much appreciated. > > Thank you, > > regards, > Dhanu > > > > > > > > > > > > I hope above message is in plain text > > > > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From rlist@apogee-tech.com Thu Jul 19 18:33:19 2001 From: rlist@apogee-tech.com (Richard Shebora) Date: Thu, 19 Jul 2001 13:33:19 -0400 Subject: [Zope-CMF] Virtual Hosting with CMF... In-Reply-To: <877kx4g9yy.wl@namaste.tokyo.att.ne.jp> Message-ID: Hi all, I just started using Zope two months ago and love it. I have done a lot of reading to figure out how to do virtual hosting, and want to host a dozen or so sites from one instance of Zope. So far it works great. It does not behave as expected on the WebDav and FTP though. There are several ways to do Virtual hosting... could you guys shed some light on the one that works consistently across all protocols that Zope serves up? Currently using a standard rewriter and clever path management within each site's folder. No siteroot or virtual hosting monsters yet. I can get the two latter methods to work, but only for one domain. I know I am missing something and/or just don't see the snake. Not looking for anyone to do all the work for me, unless there's a convenient snippet available. I hope that someone can suggest the best approach and offer some links to the resources that I can read for that approach. I am still very new to this, but am committed to making it work. Thanks, Richard The following is the rewriter code: =============================== From mark.langkau@pbmplus.com Thu Jul 19 20:33:42 2001 From: mark.langkau@pbmplus.com (Mark Langkau) Date: Thu, 19 Jul 2001 14:33:42 -0500 Subject: [Zope-CMF] Printable Page - URL problems w/CMFWiki Message-ID: <3B573616.92D5F582@pbmplus.com> Hi, I'm having a problem using the Printable Page howto with CMFWiki. (I realize that CMFWiki is unsupported, so maybe I'll disguise this as a question about "portal_url" ;-) The howto uses print and that seems to work great everywhere. However, when I click on wiki help on a CMFWiki page, Zope complains about **URL** If I change dtml-URL to dtml-portal_url the wiki help pages work fine, but that breaks Printable Page. What happens is no matter where I am in the portal, the Home page is retrieved as the printable page. What's the difference between URL and portal_url? Is portal_url the CMF version of URL? I am also using VirtualHostMonster for this site. Is that contributing to my problem? Thanks, Mark From andrew@digicool.com Thu Jul 19 21:03:12 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Thu, 19 Jul 2001 16:03:12 -0400 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: Message-ID: We've decided to implement Shane's suggestion unless compelling arguments are made and Tres' instructs me to do otherwise. I've not yet made the changes yet.... Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of marc lindahl > Sent: Thursday, July 19, 2001 9:23 AM > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] CMFDefault register method & security > > > > > > From: Chris Withers > > > > What I would say is that if there is no good solution, the 'log > me in' feature > > should really be removed. It's not too much to ask people to type their > > username > > and password in after they've just joined... > > Or, remove the log me in feature and just log the person in, not in a > separate step... > > Why else would they join? > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From aem@byu.edu Thu Jul 19 21:51:08 2001 From: aem@byu.edu (Adrian Madrid) Date: Thu, 19 Jul 2001 13:51:08 -0700 (PDT) Subject: [Zope-CMF] Create search for folders In-Reply-To: <000601c11027$50fcd380$175ebbca@apdip.net> Message-ID: <20010719205108.90739.qmail@web10108.mail.yahoo.com> --- Yoke May Seow wrote: > Hi, > > Here's part of the code on the customised > search_form: > > > > I've created the property, 'folder_name', on the > folders. On the Portal > Catalog, I created a Field Index on the Indexes and > Metadata tab. Are these normal folders (not portal folders)? Check to see if these folders are even in the catalog. I'm not sure if the portal_catalog does the normal folders. > On the Advanced search, I entered a text on the Full > text field and selected > option A. The search results found 0 items. If the folders are in the catalog then you need to: * Know that full text search gets the information from SearchableText which in turn is a method that usually includes title, description and text (documents,news,etc.) * Two options: - Change/create the SearchableText method to include your property for the folder. - Search for folder folder_name=='A' Hope it helps, ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ From Christoph.Schirmer@snafu.de Thu Jul 19 22:17:35 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Thu, 19 Jul 2001 23:17:35 +0200 Subject: [Zope-CMF] Frames prob References: <3B573616.92D5F582@pbmplus.com> Message-ID: <3B574E6F.F9F1F05F@snafu.de> This is a multi-part message in MIME format. --------------C58AC6536ABD652CAA31DC9F Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit How can one set up a page with frames, using dtml-methods? I wanted to setup a frameset, with the navigation on the left, using the dtml method sidebar. But with SRC="" I get "400 bad request", with SRC= I get ressource not found, and from the source code I can see that the cmf changes the last section of the url to the first characters in the method (e.g. the dmtl method starts with , source code says it can´t find a page http://..../%3html) So how does one set up a frameset, rendering the contents with dtml-methods? Any help appreciated. Christoph --------------C58AC6536ABD652CAA31DC9F Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------C58AC6536ABD652CAA31DC9F-- From Christoph.Schirmer@snafu.de Thu Jul 19 22:21:18 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Thu, 19 Jul 2001 23:21:18 +0200 Subject: [Zope-CMF] Frames prob solved References: <3B573616.92D5F582@pbmplus.com> <3B574E6F.F9F1F05F@snafu.de> Message-ID: <3B574F4E.B0AB7630@snafu.de> This is a multi-part message in MIME format. --------------6B44652286C5B7E5ACF85F52 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Walking to the kitchen for a coffee I solved the prob, of course :-) One simply uses the title :-) Sorry, Christoph Christoph Schirmer wrote: > How can one set up a page with frames, using dtml-methods? > > I wanted to setup a frameset, with the navigation on the left, using the dtml method > sidebar. > But with SRC="" I get "400 bad request", with SRC= sidebar> I get ressource not found, and from the source code I can see that the cmf > changes the last section of the url to the first characters in the method (e.g. the > dmtl method starts with , source code says it can´t find a page > http://..../%3html) > > So how does one set up a frameset, rendering the contents with dtml-methods? > > Any help appreciated. > Christoph --------------6B44652286C5B7E5ACF85F52 Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------6B44652286C5B7E5ACF85F52-- From Andreas Jung" <3B574E6F.F9F1F05F@snafu.de> Message-ID: <080001c110a0$21f04210$9865fea9@SUXLAP> I assume the html code for your frame is inside a DTML method or document ?! In this case you just have to call ...SRC=3D"sidebar"... Andreas =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Andreas Jung andreas@digicool.co= m Digital Creations "Zope Dealers" http://www.zope.org ----- Original Message ----- From: "Christoph Schirmer" To: Sent: Donnerstag, 19. Juli 2001 16:17 Subject: [Zope-CMF] Frames prob > How can one set up a page with frames, using dtml-methods? > > I wanted to setup a frameset, with the navigation on the left, using th= e dtml method > sidebar. > But with SRC=3D"" I get "400 bad request", with SRC=3D sidebar> I get ressource not found, and from the source code I can see that the cmf > changes the last section of the url to the first characters in the meth= od (e.g. the > dmtl method starts with , source code says it can=B4t find a page > http://..../%3html) > > So how does one set up a frameset, rendering the contents with dtml-methods? > > Any help appreciated. > Christoph > From bill@libc.org Fri Jul 20 03:19:20 2001 From: bill@libc.org (Bill Anderson) Date: 19 Jul 2001 20:19:20 -0600 Subject: [Zope-CMF] New Portal Type In-Reply-To: <3B56A57C.4A15CD32@nipltd.com> References: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> <3B56A57C.4A15CD32@nipltd.com> Message-ID: <995595560.911.7.camel@locutus.libc.org> On 19 Jul 2001 10:16:44 +0100, Chris Withers wrote: > Karim Yaici wrote: > > > > I remember I had the same problem when trying to create a Factory-based > > content type based on the Document type. Though I have changed the 'meta > > type' to 'My Document' (in the portal_types form), it is still recording it > > as Document. > > Hehe, Tres, another one bitten ;-) > > Karim, > > The meta_type should never be changed, unless you actually change the meta_type > of the python product the type is based on. The problem is the form. The form says meta type, but it means 'Type'. Fix the form, and this problem (bit me too) goes away. On that note, the personalize_form need to check for a logged in user. As it sits now, it will return an atrribute error if you are not logged in. I changed mine to check for Anonymous role, and if present, raise Unauthorized. I'd supply a patch, but it is all of three lines, and those with CVS write access can propbably patch it in their sleep it is so simple. :) Bill From scott@launchpoint.net Fri Jul 20 06:04:56 2001 From: scott@launchpoint.net (Scotts) Date: Thu, 19 Jul 2001 22:04:56 -0700 Subject: [Zope-CMF] CMF 1.1 at Zopesite.com Message-ID: For those of you wanting to use CMF 1.1. I have installed it on Zopesite.com. Or if you have been using it on your home machine and would like to use it live. Sign up for a free site, create your CMF site and show everyone what you can do with CMF. ------ http://www.zopesite.com Zope-driven websites Weblog: http://www.blogthis.com ------ From marc@bowery.com Fri Jul 20 07:10:48 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 20 Jul 2001 02:10:48 -0400 Subject: [Zope-CMF] CMF 1.1 at Zopesite.com In-Reply-To: Message-ID: I signed up for a free site months ago and never got a response.... > From: Scotts > Date: Thu, 19 Jul 2001 22:04:56 -0700 > To: > Subject: [Zope-CMF] CMF 1.1 at Zopesite.com > > For those of you wanting to use CMF 1.1. I have installed it on > Zopesite.com. Or if you have been using it on your home machine and would > like to use it live. Sign up for a free site, create your CMF site and show > everyone what you can do with CMF. > > > ------ > http://www.zopesite.com > Zope-driven websites > Weblog: http://www.blogthis.com > ------ > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From erik@thingamy.net Fri Jul 20 07:39:29 2001 From: erik@thingamy.net (Erik Enge) Date: 20 Jul 2001 08:39:29 +0200 Subject: [Zope-CMF] Unsupported format character. Message-ID: <87ae20umse.fsf@thingamy.net> Hi, I've got CMF 1.1 up and running, and I've added my own workflow (dc_workflow). I've got one content-type that subscribes to this workflow. The states in the workflow are: private visible Transitions are: hide show Fair enough. Then I want to go into the 'hide' transition and add a "Name (formatted)" to it; which I do ("Make private", for example). I back to my content and press refresh to see the change in the box on the left, and this is what I get: ValueError Sorry, a site error occurred. Traceback (innermost last): File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module [snip] File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 148, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/Products/CMFCore/ActionsTool.py, line 189, in listFilteredActionsFor (Object: portal_actions) File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/Products/CMFCore/WorkflowTool.py, line 439, in listActions (Object: Traversable) File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/Products/DCWorkflow/DCWorkflow.py, line 261, in listObjectActions (Object: WorkflowUIMixin) ValueError: unsupported format character '/' (0x2f) Any ideas? From erik@thingamy.net Fri Jul 20 08:10:59 2001 From: erik@thingamy.net (Erik Enge) Date: 20 Jul 2001 09:10:59 +0200 Subject: [Zope-CMF] Unsupported format character. In-Reply-To: <87ae20umse.fsf@thingamy.net> References: <87ae20umse.fsf@thingamy.net> Message-ID: <87zoa0t6rg.fsf@thingamy.net> [Erik Enge] | Hi, Hello, what are you doing up so early? | Any ideas? Naturally, and so would you have if you'd paid more attention. *tsk, tsk*. "URL (formatted)" looked like this: %(content_url)/content_reject_form when it should've look like: %(content_url)s/content_reject_form D'Oh! From chrisw@nipltd.com Thu Jul 19 21:54:36 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 21:54:36 +0100 Subject: [Zope-CMF] Swishdot & Berlin Slides References: Message-ID: <3B57490C.2722DD95@nipltd.com> Norman Khine wrote: > > Traceback (most recent call last): > File "/usr/home/dsuk5/zope/2-3-3/lib/python/OFS/Application.py", line 528, > in import_products > product=__import__(pname, global_dict, global_dict, silly) > File > "/usr/home/dsuk5/zope/2-3-3/lib/python/Products/Swishdot/__init__.py", line > 6, in ? > from DiscussionTool import DiscussionTool > IndentationError: expected an indented block (DiscussionTool.py, line 57) Just put a pass in the empty method that's defined in line 56. cheers, Chris From chrisw@nipltd.com Thu Jul 19 21:47:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 21:47:30 +0100 Subject: [Zope-CMF] CMFDefault register method & security References: Message-ID: <3B574762.80046854@nipltd.com> marc lindahl wrote: > > > From: Chris Withers > > > > What I would say is that if there is no good solution, the 'log me in' feature > > should really be removed. It's not too much to ask people to type their > > username > > and password in after they've just joined... > > Or, remove the log me in feature and just log the person in ...but that's what this is trying to achieve ;-) Chris From chrisw@nipltd.com Thu Jul 19 22:35:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:35:30 +0100 Subject: [Zope-CMF] Transactions & undo References: <3B48D206.359395DE@nipltd.com> <20010709104722.D3054@lenin.jamkit.com> Message-ID: <3B5752A2.FA2793B@nipltd.com> seb bacon wrote: > > Although 'creating a document' is, to the average user, a single > action, it shows up in the transaction list as 3 or 4 events. How can > the user decide which transactions to delete? If the whole 'create an > object' process could be commited as a single transaction (with a > 'friendly' name perhaps), it would make things a whole lot more > friendly. Roll on CST actually getting into the core. I'm sure storing this stuff in the session first is the way to go, what do other people think? cheers, Chris From chrisw@nipltd.com Fri Jul 20 08:13:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 20 Jul 2001 08:13:17 +0100 Subject: [Zope-CMF] Should Effectice Dates be part of Workflow? References: <008701c1098c$e13e9150$b5020a0a@Lifebook> <3B4C3A42.9030104@palladion.com> Message-ID: <3B57DA0D.76A8DECE@nipltd.com> Tres Seaver wrote: > > This check doesn't involve workflow state at all; Okay... > it enforces the > "effective range" of the content. Only the owner and those with > 'Review portal content' permission are supposed to be able to view > a piece of content outside of its effective range, That sounds like a very workflow-ish kind of rule to me. What do other people think? Anyway, regardless of whether its owrkflow related or not, should that lump of code really be written in DTML _and_ be stashed in the presentation layer? > > ...I just checked DefaultWorkflow in CMFDefault, and updateRoleMappingsFor > > suggests that this content shouldn't be viewable, but it is! > > I can't reproduce this on a stock CMF site; content which is private or > pending review can't be viewed by anonymous. Any ideas what I could have broken to have that effect? If anyone would like to see for themselves, Swishdot can be checked out of the Squishdot project's CVS on SourceForge. > The "event tool" proposal is a more general solution, likely to be > implemented > for the next release of CMF: > > http://cmf.zope.org/rqmts/proposals/EventsTool Thanks, I still need to take a look at that :-S Would that also provide a better solution for the Effective Date range problem? cheers, Chris From chrisw@nipltd.com Thu Jul 19 22:38:18 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:38:18 +0100 Subject: [Zope-CMF] Event Notification / workflow References: <3B4B20DE.A7FD4BCE@nipltd.com> <20010710173145.C18193@lenin.jamkit.com> <3B4B2771.CBF6EEC2@nipltd.com> <20010710175708.D18193@lenin.jamkit.com> Message-ID: <3B57534A.32BD2379@nipltd.com> seb bacon wrote: > > Sounds OK to me. If you're doing that, though, you might as well use > the notify* workflow methods and wrap every method you think is > relevant as a WorkflowMethod. Sounds like I need to take a closer look at workflow :-S cheers, Chris From chrisw@nipltd.com Thu Jul 19 22:38:45 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:38:45 +0100 Subject: [Zope-CMF] Default action References: <008501c1098c$df5a19e0$b5020a0a@Lifebook> <87bsmst47d.fsf@thingamy.net> <003501c109d1$57d31270$a8fe7ad5@withers> <20010711094609.I21871@lenin.jamkit.com> Message-ID: <3B575365.9CE656DD@nipltd.com> seb bacon wrote: > > I presume you looked at the source, right? *cough* > (short answer: it returns the first action from the actions list for > which the user has appropriate permissions) ta :-) Chris From chrisw@nipltd.com Thu Jul 19 22:00:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:00:17 +0100 Subject: [Zope-CMF] Suggestion - Modular Documentation References: <20010704163544.S19615@lenin.jamkit.com> <3B436100.D6739F78@nipltd.com> <20010705103532.F25562@lenin.jamkit.com> Message-ID: <3B574A61.993EE3C2@nipltd.com> seb bacon wrote: > > 1) You can read stx straight from the filesystem as plain text , which > is nice for developers True... > 2) You don't have to translate it - it happens for you :-P Yeah, you have to understand esoteric Sturctured text formatting rules though... > 3) There's supposedly the promise of being able to output it as ps, > pdf, etc. ...let me know when that happens :-) > 4) We'd have to come up with a standard for which tags to use if we > went with html, whereas stx enforces a decision for you. Hmmm, don't really buy that. My £0.02, Chris From chrisw@nipltd.com Thu Jul 19 21:52:29 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 21:52:29 +0100 Subject: [Zope-CMF] Login References: <200107191347.f6JDlu622932@mbuna.arbhome.com.au> Message-ID: <3B57488D.7FD0232@nipltd.com> Anthony Baxter wrote: > > couldn't you use a cookie set up to go to all machines in the domain? what about Domain based login? I thought Zope did that out of the box? cheers, Chris From chrisw@nipltd.com Thu Jul 19 22:37:24 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:37:24 +0100 Subject: [Zope-CMF] N-Dimensional security again (Hi Shane :-) References: <003301c107d0$5c1693a0$2341073e@withers> <20010708191041.A3054@lenin.jamkit.com> <005101c107ea$04af3ee0$2341073e@withers> <3B49D272.71B86E2@digicool.com> Message-ID: <3B575314.B4639784@nipltd.com> Shane Hathaway wrote: > > You can protect access to the type objects by visiting their security > tab. Which would, in turn, prevent people from creating objects of that type, right? I'm guessing local roles on the type objects would remove the need to have loads of different 'Add x' permissions? Could there be an interface to this to simplify it? > The only thing this solution doesn't provide for is local roles. Can you expand on that? I'm not quite following... cheers, Chris From chrisw@nipltd.com Fri Jul 20 08:19:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 20 Jul 2001 08:19:39 +0100 Subject: [Zope-CMF] Workflow, Events & Indexing References: Message-ID: <3B57DB8B.39B592E1@nipltd.com> Tres Seaver wrote: > > Who else is going to tell an object that its attributes have > changed? The object's own methods are responsible for making > those changes, and therefore for notifying interested observers > of the changes. Yup, I agree with that :-) So, what's the standard CMF ways of: - registering an interested observer? (how do you specify what, exactly, it's interested in?) - notifying all the interested observers from within you object's methods? > > And what if (as I need to), you need to call something like > > portal_discussion.updateDiscussion(object) when the object > > changes? You need to go find all places the object could change > > (how do you do that?) > > Grep for 'reindexObject'. :) And how do I do that with third party python-based content types that I don't know about? ;-) > If / when we add an event channel, the responsibility for publishing > events to it will still rest with the methods which are actually > making changes to the objects; at that point, your event-based > discussion tool would be a subscriber to the event channel. Yup, that sounds reasonable :-) cheers, Chris From chrisw@nipltd.com Thu Jul 19 22:04:36 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Jul 2001 22:04:36 +0100 Subject: [Zope-CMF] Zope component model and CMF References: <3B44B518.D2BA28B8@digicool.com> <3B45B7DD.4CC74AE7@nipltd.com> <01070610402604.09024@shane.digicool.com> Message-ID: <3B574B64.2BBC97E3@nipltd.com> Shane Hathaway wrote: > > > So, how about: click customize of the FS-presentation object, this > > creates the ZODB based version which doesn't actually contain anything, > > but appears to contain editable versiosn of everything. The first time > > these editable versions are saved, they are then actually stored in the > > ZODB? > > Hmm, that may be doable. Nifty! Thanks :-) > > ...of course, I think it's vital that transparent re-indexing (and > > other hooked in operations, like discussions modification) happen. What > > service/tool/etc will enable this to happen? > > It's a piece of Zope infrastructure that isn't there yet. In fact > yesterday I spent a lot of time trying to find a nice way to achieve > transparent indexing. I even modified cPersistence.c to try out an idea. > I'm sure there's a way to do it right but we haven't found it yet. Is there any way I can help? I'd be more than happy to bounce ideas around about this :-) BTW, whatever solution is reached should probably be hookable, I can see things like cataloging, workflow, etc, all using the same hooks. IIUC, ZPatterns triggers are what you're trying to make the equivalent of. Steve Alexander had some good ideas how to get this to work at the Berlin Zope Conference. Steve? cheers, Chris From steve@cat-box.net Fri Jul 20 09:39:14 2001 From: steve@cat-box.net (Steve Alexander) Date: Fri, 20 Jul 2001 09:39:14 +0100 Subject: [Zope-CMF] Zope component model and CMF References: <3B57E8D3.FD6FCCC5@nipltd.com> Message-ID: <3B57EE32.7000702@cat-box.net> Chris Withers wrote: > > IIUC, ZPatterns triggers are what you're trying to make the equivalent > of. Steve > Alexander had some good ideas how to get this to work at the Berlin > Zope Conference. > > Steve? I'm *almost* finished with a product for a runtime patch to Transaction.py that implements triggers. It works for me, but I need to tidy it up before releasing it. This is more-or-less along the lines of what Phillip Eby and Shane talked about on Zope-Dev a month ago or so, wrt RuleAgents, IndexingAgents and queues of triggers running just before a transaction commit. I'll be releasing it tomorrow (tonight if I'm lucky), along with a slightly forked simplified version of ZPatterns that uses the new hooks in Transaction.py. The patch works nicely with Subtransactions, even if they're commited while a a Trigger is running. It also copes sensibly with triggers that add other triggers. I'll be recommending that people stay with "standard" ZPatterns for important systems, but that they try this one if they need to use subtransactions inside triggers, or they want better behaviour when triggers raise exceptions. I'll be using the Transactions patch on its own (without ZPatterns) on some ZODB work I'm doing. On its own, this change doesn't allow for transparent indexing. This just allows you to register actions that will occur at transaction boundaries. You also need to add a setattr/delattr (or whatever) hook to objects that you want transparently indexed. When an attribute changes, you enqueue an Agent that will catalog the object. This runs at a transaction boundary, just before the commit. This way, you only recatalog at most once per transaction. It's nice for sending out notifications too, again, at most once per transaction. This nice thing is that a framework can separate the two steps of 1: Saying that an object has changed 2: Deciding what actions should occur when an object has changed This is what ZPatterns does with DynPersist.so (for the setattr hook) for 1, and Triggers/Agents/"WHEN OBJECT CHANGED" SkinScript for 2. At the EuroZope conference, Mike P. said something about Jim Fulton thinking about making Transaction pluggable in some form or other. I need to ask Jim about this soon. -- Steve Alexander Software Engineer Cat-Box limited From seb@jamkit.com Fri Jul 20 14:37:58 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 20 Jul 2001 14:37:58 +0100 Subject: [Zope-CMF] Should Effectice Dates be part of Workflow? In-Reply-To: <3B57DA0D.76A8DECE@nipltd.com>; from chrisw@nipltd.com on Fri, Jul 20, 2001 at 08:13:17AM +0100 References: <008701c1098c$e13e9150$b5020a0a@Lifebook> <3B4C3A42.9030104@palladion.com> <3B57DA0D.76A8DECE@nipltd.com> Message-ID: <20010720143757.F937@lenin.jamkit.com> * Chris Withers [010720 09:15]: > Anyway, regardless of whether its owrkflow related or not, should that lump of > code really be written in DTML _and_ be stashed in the presentation layer? I agree, it's ugly. It would be nice if it were at least in a pythonscript. > > The "event tool" proposal is a more general solution, likely to be > > implemented > > for the next release of CMF: > > > > http://cmf.zope.org/rqmts/proposals/EventsTool > > Thanks, I still need to take a look at that :-S > > Would that also provide a better solution for the Effective Date range problem? Surely so. It would present endless opportunities to hook presentation logic to strategic points. I'm really looking forward to this tool :-) Have you folks started working on it yet? I've not checked out the CVS for a while... seb From fm@synchrologic.com Fri Jul 20 14:05:29 2001 From: fm@synchrologic.com (Frank McGeough) Date: Fri, 20 Jul 2001 09:05:29 -0400 Subject: [Zope-CMF] CMF - not in your face? References: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> <3B56A57C.4A15CD32@nipltd.com> <995595560.911.7.camel@locutus.libc.org> Message-ID: <001a01c1111c$a6c465d0$c7010a0a@mcgeough> How much of CMF can be hidden? All of it? Most sites are divided up into the large number of people who use the site by browsing/searching; and the (relatively) small number of people who actually contribute content. Why is CMF setup so that all the CMF stuff is visible to every user? How would you go about hiding CMF from those large number of people. That is, no indication for the casual user of the web site that CMF is being used at all? If I had a URL that a contributor would have to go to login and then alter the actions_box DTML method would that do it? The key is the actions_box stuff and I'm having trouble figuring out how to manipulate the code in there since it's doing mystery stuff like :   |   hey! where's the for loop :-) If I could figure out more about DTML I might be able to at least understand why I can or can't do what I want. Is it correct that the zope creators are moving away from this DTML syntax and toward Python (which I can read). Thanks for any clues for the clueless. From seb@jamkit.com Fri Jul 20 14:54:00 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 20 Jul 2001 14:54:00 +0100 Subject: [Zope-CMF] CMF - not in your face? In-Reply-To: <001a01c1111c$a6c465d0$c7010a0a@mcgeough>; from fm@synchrologic.com on Fri, Jul 20, 2001 at 09:05:29AM -0400 References: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> <3B56A57C.4A15CD32@nipltd.com> <995595560.911.7.camel@locutus.libc.org> <001a01c1111c$a6c465d0$c7010a0a@mcgeough> Message-ID: <20010720145359.H937@lenin.jamkit.com> * Frank McGeough [010720 14:09]: > How much of CMF can be hidden? All of it? > > Most sites are divided up into the large number of people who use the site > by browsing/searching; and the (relatively) small number of people who > actually contribute content. Why is CMF setup so that all the CMF stuff is > visible to every user? How would you go about hiding CMF from those large > number of people. That is, no indication for the casual user of the web site > that CMF is being used at all? If I had a URL that a contributor would have > to go to login and then alter the actions_box DTML method would that do it? The CMF is a *Framework*. It provides services for building websites quickly. The services include workflow, indexing, personalisation, etc... The site you see when you create a 'Portal' is an example site based on the requirements of the zope.org website. It's not meant to be a system you can use for managing the content on any website. It's just meant to be a sample / inspiration / example code. You need to learn how to use dtml / more Zope before you can expect to be able to configure the CMF to your requirements. Maybe one day it'll all be TTW configurable with a GUI, but for now, it's a programming toolkit. > The key is the actions_box stuff and I'm having trouble figuring out how to > manipulate the code in there since it's doing mystery stuff like : > > >   |   > > > hey! where's the for loop :-) If I could figure out more about DTML I might > be able to at least understand why I can or can't do what I want. Is it > correct that the zope creators are moving away from this DTML syntax and > toward Python (which I can read). Thanks for any clues for the clueless. Read the DTML chapter in the Zope book, and the stuff about PythonScripts, and you'll be well on your way to understanding. *is* a for loop, incidentally. And you're right, there will be a slow move away from DTML, but it'll take a while. The replacement is ZPT, which still hasn't arrived in a mature form yet (though it's very cool, works well, and lots of people are using it already). seb From seb@jamkit.com Fri Jul 20 15:25:27 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 20 Jul 2001 15:25:27 +0100 Subject: [Zope-CMF] Event Notification / workflow In-Reply-To: <3B57534A.32BD2379@nipltd.com>; from chrisw@nipltd.com on Thu, Jul 19, 2001 at 10:38:18PM +0100 References: <3B4B20DE.A7FD4BCE@nipltd.com> <20010710173145.C18193@lenin.jamkit.com> <3B4B2771.CBF6EEC2@nipltd.com> <20010710175708.D18193@lenin.jamkit.com> <3B57534A.32BD2379@nipltd.com> Message-ID: <20010720152527.J937@lenin.jamkit.com> * Chris Withers [010720 09:15]: > seb bacon wrote: > > > > Sounds OK to me. If you're doing that, though, you might as well use > > the notify* workflow methods and wrap every method you think is > > relevant as a WorkflowMethod. > > Sounds like I need to take a closer look at workflow :-S Well, it would be a bit of a hack anyways. Perhaps bide your time for the glory that will be the event tool? seb From erik@thingamy.net Fri Jul 20 14:51:34 2001 From: erik@thingamy.net (Erik Enge) Date: 20 Jul 2001 15:51:34 +0200 Subject: [Zope-CMF] Event Notification / workflow In-Reply-To: <20010720152527.J937@lenin.jamkit.com> References: <3B4B20DE.A7FD4BCE@nipltd.com> <20010710173145.C18193@lenin.jamkit.com> <3B4B2771.CBF6EEC2@nipltd.com> <20010710175708.D18193@lenin.jamkit.com> <3B57534A.32BD2379@nipltd.com> <20010720152527.J937@lenin.jamkit.com> Message-ID: <873d7ru2s9.fsf@thingamy.net> [seb bacon] | Well, it would be a bit of a hack anyways. Perhaps bide your time | for the glory that will be the event tool? Hey, sounds like fun. When's it due? From seb@jamkit.com Fri Jul 20 15:42:34 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 20 Jul 2001 15:42:34 +0100 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: ; from andrew@digicool.com on Thu, Jul 19, 2001 at 04:03:12PM -0400 References: Message-ID: <20010720154233.L937@lenin.jamkit.com> * Andrew Sawyers [010719 21:14]: > We've decided to implement Shane's suggestion unless compelling arguments > are made and Tres' instructs me to do otherwise. I've not yet made the > changes yet.... Shane's suggestion was good, but I like Marc's better: > > Or, remove the log me in feature and just log the person in, not in a > > separate step... > > > > Why else would they join? It seems very silly to me that someone has to go through the whole process of signing up, and then press what is to them a completely redundant button actually to log in. But I've never worked out how I can log someone in programmatically without some horrible hack. Am I missing something? seb From jccooper@rice.edu Fri Jul 20 15:05:12 2001 From: jccooper@rice.edu (J. Cameron Cooper) Date: Fri, 20 Jul 2001 09:05:12 -0500 Subject: [Zope-CMF] CMF - not in your face? References: <006801c11032$b631a2c0$a5020a0a@private.nipltd.com> <3B56A57C.4A15CD32@nipltd.com> <995595560.911.7.camel@locutus.libc.org> <001a01c1111c$a6c465d0$c7010a0a@mcgeough> Message-ID: <3B583A98.9050902@rice.edu> > > >How much of CMF can be hidden? All of it? > Yep. Just go and delete all the skins. Hides it pretty effectively. Sorry. Not very constructive, I know, but so wide open. >Most sites are divided up into the large number of people who use the site >by browsing/searching; and the (relatively) small number of people who >actually contribute content. Why is CMF setup so that all the CMF stuff is >visible to every user? > That's not necessarily true. The CMF used to be the PTK (Portal Toolkit) and in a portal, it makes sense to always have a little box out to the side that reminds one of one's current role. When using the CMF in a largely information management and publishing role, the default setup begins to make less sense. >How would you go about hiding CMF from those large >number of people. That is, no indication for the casual user of the web site >that CMF is being used at all? If I had a URL that a contributor would have >to go to login and then alter the actions_box DTML method would that do it? > That's how I would do it. I'm afraid I can't tell you off the top o' me head *exactly* how to do it, but probably the easiest thing to do with the default setup would be to provide a login url that has the actions box and then wrap the one in standard_html_header with a dtml-if tag that's only true when the user is authenticated. Search the list or docs or source for "authenticated user" to find out how. ---jcc (not authenticated) From chris123@magma.ca Fri Jul 20 17:49:23 2001 From: chris123@magma.ca (Chris Herrnberger) Date: Fri, 20 Jul 2001 11:49:23 -0500 Subject: [Zope-CMF] CMF-Calendar issues Message-ID: <20010720154859.IYXB3790.femail1.rdc1.on.home.com@there> Greetings Just started playing with CMF again (1.1) after a long hiatus. Its come a long way since the early PTK days. Congrats to all the coders.. I am having problems installing the CMF-Calendar though. Followed the HowTo from http://cmf.zope.org/Members/frankmc/UsingCalendarTag/ and it seems to choke on line 3 of the dateMunger. While there are comments to this on the site there is no solution posted. Using the supplied script from the referenced site. http://cmf.zope.org/Members/andrew/projects/CMFCalendar/dateMunger resluts in the traceback below. Any comments or suggestions would be helpful. Also where is the link to CVS versions or is this locked down to developers only? Best and many thanks Chris PS: If this should have been posted to the zope list pls accept my apologies in advance. output file below: _____________________________________________________________ Traceback (innermost last): File /home/chris/zope233/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/chris/zope233/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/chris/zope233/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/chris/zope233/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/chris/zope233/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: calendar) File /home/chris/zope233/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: calendar) File /home/chris/zope233/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: calendar) File /home/chris/zope233/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: calendar) File /home/chris/zope233/lib/python/DocumentTemplate/DT_Let.py, line 148, in render (Object: pm="dateMunger()[0]" current="dateMunger()[1]" nm="dateMunger()[2]") File /home/chris/zope233/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval (Object: dateMunger()[0]) (Info: dateMunger) File , line 0, in ? File /home/chris/zope233/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: dateMunger) File /home/chris/zope233/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: dateMunger) File /home/chris/zope233/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: dateMunger) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 3, in dateMunger File /home/chris/zope233/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: monthRange) File /home/chris/zope233/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: monthRange) File /home/chris/zope233/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: monthRange) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (DateTime('2001/07/20 11:44:01.36874 US/Eastern'),), {}, None)) TypeError: (see above) From scott@launchpoint.net Fri Jul 20 17:20:36 2001 From: scott@launchpoint.net (scott ) Date: Fri, 20 Jul 2001 09:20:36 -0700 Subject: [Zope-CMF] CMF 1.1 at Zopesite.com Message-ID: <200107200920.AA1245840034@launchpoint.net> >I signed up for a free site months ago and never got a response.... Hmmm, must have missed that one. Well.... That is one reason why I added the site creation form to the homepage. So, if you still want one go to Zopesite.com and create one right there. Sorry about that. From chrisw@nipltd.com Fri Jul 20 17:38:46 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 20 Jul 2001 17:38:46 +0100 Subject: [Zope-CMF] CMFDefault register method & security References: <20010720154233.L937@lenin.jamkit.com> Message-ID: <3B585E96.AEF76E00@nipltd.com> seb bacon wrote: > > can log someone in programmatically without some horrible hack. Am I > missing something? Nope, that's why it's a seperate process. That said, given that login is Cookie-based, I don't see why the register method couldn't just set the appropriate cookie and then redirect, rather than redirecting with the form or URL kludge just so the normal login process can set the cookie. thoughts? Chris From tseaver@palladion.com Fri Jul 20 18:59:20 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 20 Jul 2001 13:59:20 -0400 (EDT) Subject: [Zope-CMF] Should Effectice Dates be part of Workflow? In-Reply-To: <20010720143757.F937@lenin.jamkit.com> Message-ID: On Fri, 20 Jul 2001, seb bacon wrote: > * Chris Withers [010720 09:15]: > > Anyway, regardless of whether its owrkflow related or not, > > should that lump of code really be written in DTML _and_ be > > stashed in the presentation layer? > > I agree, it's ugly. It would be nice if it were at least in a > pythonscript. > > > > The "event tool" proposal is a more general solution, > > > likely to be implemented for the next release of CMF: > > > > > > http://cmf.zope.org/rqmts/proposals/EventsTool > > > > Thanks, I still need to take a look at that :-S > > > > Would that also provide a better solution for the Effective > > Date range problem? > > Surely so. It would present endless opportunities to hook > presentation logic to strategic points. I'm really looking forward to > this tool :-) Have you folks started working on it yet? I've not > checked out the CVS for a while... Heh, what do you mean "started working yet"? All those docs in that folder didn't get left by the Tooth Fairy! :) WRT actual software, we built a working version of the event channel which has no CMF dependencies at all. The remaining effort is to wire up the event producers (factories, content objects, etc.) and the subscribers (the catalog, first off). We are also trying hard to measure the performance impact, as such a tool could suck up a *lot* of cycles if we aren't careful. We will likely move the event channel product into the CMF module sometime in the next few weeks, with the "plumbing work" to follow very quickly (assuming no disasters emerge in the performance testing). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From janrosen@ca.ibm.com Fri Jul 20 19:00:12 2001 From: janrosen@ca.ibm.com (Janet Rosenfeld/CanWest/IBM) Date: Fri, 20 Jul 2001 11:00:12 -0700 Subject: [Zope-CMF] installation problem with CMF Message-ID: Hi, I've installed Zope on a Windows NT machine. I also downloaded the CMF 1.0 zip file from http://cmf.zope.org/download. I notice that the installation are all for the tar file. How do I link Zope and CMF if I used the zip file? Janet Rosenfeld IBM Canada Ltd. 4611 Canada Way, Burnaby, B.C. V5G 4X3 Phone: (604) 297-3378 Fax: (604) 297-3030 Email: janrosen@ca.ibm.com From tseaver@palladion.com Fri Jul 20 19:04:46 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 20 Jul 2001 14:04:46 -0400 (EDT) Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: <3B585E96.AEF76E00@nipltd.com> Message-ID: On Fri, 20 Jul 2001, Chris Withers wrote: > seb bacon wrote: > > > > can log someone in programmatically without some horrible > > hack. Am I missing something? > > Nope, that's why it's a seperate process. > > That said, given that login is Cookie-based, I don't see why > the register method couldn't just set the appropriate cookie > and then redirect, rather than redirecting with the form or URL > kludge just so the normal login process can set the cookie. If you know that your site is always going to use cookie auth, then that works fine. It is *not* possible with HTTP basic auth. > thoughts? Customize CMFDefault/skins/control/register.py to do what login.py does, and then 'self.aq_uncle == "bob"'. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Fri Jul 20 19:50:06 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 20 Jul 2001 14:50:06 -0400 (EDT) Subject: [Zope-CMF] CMF 1.1 at Zopesite.com In-Reply-To: Message-ID: On Thu, 19 Jul 2001, Scotts wrote: > For those of you wanting to use CMF 1.1. I have installed it on > Zopesite.com. Or if you have been using it on your home machine and would > like to use it live. Sign up for a free site, create your CMF site and show > everyone what you can do with CMF. Cool! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From jccooper@rice.edu Fri Jul 20 19:59:04 2001 From: jccooper@rice.edu (J. Cameron Cooper) Date: Fri, 20 Jul 2001 13:59:04 -0500 Subject: [Zope-CMF] installation problem with CMF References: Message-ID: <3B587F78.10907@rice.edu> > > >I've installed Zope on a Windows NT machine. I also downloaded the CMF 1.0 >zip file from http://cmf.zope.org/download. I notice that the installation >are all for the tar file. How do I link Zope and CMF if I used the zip >file? > Huh? You're installing CMF 1.0? Shouldn't do that. Use 1.1 instead. WinZip can handle tar.gz files. --jcc (gzipped) From Christoph.Schirmer@snafu.de Fri Jul 20 22:17:37 2001 From: Christoph.Schirmer@snafu.de (Christoph Schirmer) Date: Fri, 20 Jul 2001 23:17:37 +0200 Subject: [Zope-CMF] Metapublisher (vs?) Zope References: <3B587F78.10907@rice.edu> Message-ID: <3B589FF1.FCB21352@snafu.de> This is a multi-part message in MIME format. --------------22917DD682D7EF695390461E Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Newbie :-) I am somewhat unclear about beehive´s Metapublisher. Would Metapublisher be a replacement for customized objects (ZClasses)? Is it "competing" with cmf then? Or does it make sense to have Metapublisher within cmf? Christoph --------------22917DD682D7EF695390461E Content-Type: text/x-vcard; charset=us-ascii; name="Christoph.Schirmer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Christoph Schirmer Content-Disposition: attachment; filename="Christoph.Schirmer.vcf" begin:vcard n:Schirmer;Christoph x-mozilla-html:TRUE url:http://www.MastersofGPL.org adr:;;;;;; version:2.1 email;internet:Christoph.Schirmer@snafu.de x-mozilla-cpt:;-26944 fn:Christoph Schirmer end:vcard --------------22917DD682D7EF695390461E-- From marc@bowery.com Fri Jul 20 16:21:38 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 20 Jul 2001 11:21:38 -0400 Subject: [Zope-CMF] CMFDefault register method & security In-Reply-To: <3B574762.80046854@nipltd.com> Message-ID: > From: Chris Withers > >> Or, remove the log me in feature and just log the person in > > ...but that's what this is trying to achieve ;-) I meant as a separate step as it is now... From tseaver@palladion.com Sat Jul 21 03:20:15 2001 From: tseaver@palladion.com (Tres Seaver) Date: Fri, 20 Jul 2001 22:20:15 -0400 Subject: [Zope-CMF] How to count the number of replies? References: <3B561353.101899EB@artlover.com> Message-ID: <3B58E6DF.5020104@palladion.com> Ausum wrote: > Thank you very much, Tres. I've downloaded CMF from CVS not more than > three days ago, and the methods are in the DiscussionItem.py module, but > I can't get it to work, no matter what combination of code I've tried, > feeling my way all the time. > > Would you please post the code, in you don't mind, the same as you did > with 'obj.talkback.getReplies()' ? 'obj.talkback.replyCount( obj )', I think (I didn't add the feature, but that is what the signature implies). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From jon@pcgs.freeserve.co.uk Sat Jul 21 16:34:56 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Sat, 21 Jul 2001 16:34:56 +0100 Subject: [Zope-CMF] CMF Bookmarks Message-ID: Hi all, In the hope that it might help people struggling to find documentation, I've exported my CMF Bookmarks/Favorites, and posted em here - http://cmf.zope.org/Members/joned/cmfbookmarks/view (once it's been approved) - note: I've been collecting them for several months, so some may be out of date! :-) Cheers, Jon From augusto@artlover.com Sat Jul 21 17:54:41 2001 From: augusto@artlover.com (Ausum) Date: Sat, 21 Jul 2001 11:54:41 -0500 Subject: [Zope-CMF] Re: How to count the number of replies? References: <3B561353.101899EB@artlover.com> <3B58E6DF.5020104@palladion.com> Message-ID: <3B59B3D1.9EF08FF7@artlover.com> Thanks Tres. This is the code I came up with, to count the number of replies from an object, listed at a typical portal_catalog list: Put in a method it works fine, but I'm supposing that due it has to call every found object in order to tell whether it has replies or not, it is somehow costly. Shouldn't 'num_of_replies' be a catalogable object's property, updated by the workflow? How do I perform this? Thanks in advance, Ausum Tres Seaver wrote: > > 'obj.talkback.replyCount( obj )', I think (I didn't add the feature, > but that is what the signature implies). > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org From dkesh@channel1.com Sun Jul 22 17:45:59 2001 From: dkesh@channel1.com (Dan Keshet) Date: Sun, 22 Jul 2001 12:45:59 -0400 (EDT) Subject: [Zope-CMF] Changing portal_metadata tool Message-ID: <995820359.3b5b034736a25@webmail.channel1.com> Hi, I want to add an Element to the portal_metadata tool. Are there plans to make metadata Elements configurable? Right now, is it possible to change the metadata tool without creating a whole new CMF site? I can't seem to add or delete a portal_metadata tool... So I tried playing with MetadataTool.py, and adding to the list of DEFAULT_ELEMENT_SPECS, but that doesn't seem to have an effect. Also, I noticed later down that each Element has it's own listAllowed function. Why not make listAllowedVocabulary public and pass the Element type in? Would this make it easier to add Elements? Thanks! From khine@btinternet.com Sun Jul 22 19:47:33 2001 From: khine@btinternet.com (Norman Khine) Date: Sun, 22 Jul 2001 19:47:33 +0100 Subject: [Zope-CMF] CMF Security Options Message-ID: Hello, Can someone be kind enough to demonstrate the security settings for a cmf site, what I am missing ;^( sadly to say, is the overall picture. So, if I want to disable the Member not to be able to ADD news stories, what should the Security tab for the Portal be, or do I need to modify the workflow? or create my own? Thanx Norman zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz zz/********/z/****\zzz|****\*\zz|*******|z z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz zz/******/zz\******/zz|*|zzzzzzz|*|*****|z z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz From norbert@attira.com Sun Jul 22 19:39:13 2001 From: norbert@attira.com (Norbert Marrale) Date: Sun, 22 Jul 2001 20:39:13 +0200 Subject: [Zope-CMF] SMTPRecipientsRefused - mail forgotten password In-Reply-To: Message-ID: <3B5B39F1.10036.19CA779@localhost> This happens when users ask to be sent their forgotten passwords. Other SMTP / Password related things work fine. Checked permissions, everything seems ok there too. Any idea on what I'm missing? Error Type: SMTPRecipientsRefused Error Value: {} Thanks! Norbert doc.review_state = 'published' updated.append( doc ) if I want to make all these documents published, for example? Also, shouldn't portal_type be meta_type, as I am changing the meta_type from Document to Card? Regards Norman -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Tres Seaver Sent: 31 July 2001 05:11 To: Norman Khine Cc: Zope-CMF Subject: Re: [Zope-CMF] Is there a way to change the meta-type of a number of object types Norman Khine wrote: > Hi, > I have over 300 Documents that are a document type, I have now created a new > type called Card which is based on the Document type, but this type only has > a number of Subject topics taken from the original Document type. > > So now I want to take all Documents with the specific topics and make them > the new Card type. I *think* that what you are looking for is the 'portal_type' attribute; content objects use that attribute to find their type objects, which then give them access to the other type-specific policies. You should be able to write an ExternalMethod which queries the catalog for the Documents you would like to make into Cards, and then just set the attribute. Something like: updated = [] for brain in self.portal_catalog.searchResults( Type='Document' # other criteria here ): doc = brain.getObject() doc.portal_type = 'Card' updated.append( doc ) for doc in updated: doc.reindexObject() > I can create a Topic query which can list these items, but I don't think it > is possible to change them, or is it? > > Where in the system, does an object stores these detail and can it be > changed? Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From dhanunjaya@mindscapecomputing.com Tue Jul 31 07:41:44 2001 From: dhanunjaya@mindscapecomputing.com (Dhanu) Date: Tue, 31 Jul 2001 12:11:44 +0530 Subject: [Zope-CMF] do i have to change site root????? Message-ID: <000701c1198b$dd136970$4ac809c0@saraswathi> Hai, .........Iam using "zope-cmf" via "apache"................ My cmfsite is at http://MYIPAddress/zope/DHV My problem is, i cant view the images added via cmf.Because,the url generated by inside image_view is some thing like "DHV/Members/dhanu/img.jpg " instead of "zope/DHV?Members/dhanu/img.jpg." Do i need to change my siteroot path to /zope/. If i do ,does this affect anything else?????? Or there any easy way like modifying output of with out changing site root.? I am little afraid of changing my site root ,as i failed to start working with ZMI and reinstalled zope in the past. Thank you, regards, dhanu From dario@ita.chalmers.se Tue Jul 31 08:13:36 2001 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Tue, 31 Jul 2001 09:13:36 +0200 Subject: [Zope-CMF] I want to RTFM. Where is it? References: <20010731043555.55391.qmail@web11605.mail.yahoo.com> Message-ID: <001e01c11990$51625b70$33de1081@ita.chalmers.se> ----- Original Message ----- From: "Amr Malik" To: "Dario_Lopez-K=E4sten" ; Sent: Tuesday, July 31, 2001 6:35 AM Subject: Re: [Zope-CMF] I want to RTFM. Where is it? > Might wannaa try ZWACK chapter 5 by beehive and the PortalPollProduct tutorial > They're quite helpful in explaining the basics. > > Amr Hi, Unfortunately ZWACK is not available until september, and there are no excerpts available at the Beehive site AFAICT. Will try to find the PortalPollProduct and have a look at it (I assume it= is at the CMF site?) Thanks, /dario From marc@bowery.com Tue Jul 31 08:19:01 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 31 Jul 2001 03:19:01 -0400 Subject: [Zope-CMF] portaltitle:portaltitle ?? -- silly! Message-ID: I always thought it was silly that at the root (home) of your portal the name (title) would appear twice in the top bar... now I did something about it. >From about line 19 of standard_top_bar.dtml, the stanza for the PortalTitle changes to:
(basically, code from folder_contents.dtml) From dario@ita.chalmers.se Tue Jul 31 08:22:42 2001 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Tue, 31 Jul 2001 09:22:42 +0200 Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features References: <20010731040417.82063.qmail@web11603.mail.yahoo.com> <3B664EEB.DDA233C3@franklin.edu> Message-ID: <002101c11991$962bf4e0$33de1081@ita.chalmers.se> Count me/us in into Amr's and Lynn's crowd as well. We'd love to use the MCF, especially after Chris Wither's walkthrough of Swishdot at the Euroz= ope conference in Berin. What he does is to simply use the CMF as general components/modules to build upon, and not only to be used for portal desi= gn. This is doc thing of the CMF is actually history repeating itself. Think Zope about 1-1.5 yeas ago... As lynn said, it is **very** hard to write docs about something you don't understand. At the moment it is very hard for a newcomer looking at the C= MF for the first time to do any of the things mentioned in the "CMF Fact Sheet"... **groan, groan** We'll probably have to abandon CMF for the time being until we understand= it a bit more. If I can find the time write som docs for internal use, I'll = be happy to make the available for general use, but this will probably not happen until the end of year (we have a **very** tight schedule for the n= ext 6 months, and I need time to grok the CMF...) /dario - -------------------------------------------------------------------- Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From mpratt@beehive.de Tue Jul 31 08:38:05 2001 From: mpratt@beehive.de (Mark Pratt) Date: Tue, 31 Jul 2001 09:38:05 +0200 (CEST) Subject: [ez] Re: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features In-Reply-To: <002101c11991$962bf4e0$33de1081@ita.chalmers.se> Message-ID: hi dario, have you had a chance to take a look at our Chapter 5 from the upcoming Sams book "Zope Web Application Construction Kit". its almost 100 pages of documentation about the CMF. its very difficult to find on the cmf.zope.org since a link to=20 it seems to have been (accidentally removed). so here is the URL: http://cmf.zope.org/Members/beehive/ZWACKChap5.html cheers, mark -------------------------------------------------------------- mark pratt (managing director) =09mark@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 On Tue, 31 Jul 2001, Dario Lopez-K=E4sten wrote: > Count me/us in into Amr's and Lynn's crowd as well. We'd love to use the > MCF, especially after Chris Wither's walkthrough of Swishdot at the Euroz= ope > conference in Berin. What he does is to simply use the CMF as general > components/modules to build upon, and not only to be used for portal desi= gn. >=20 > This is doc thing of the CMF is actually history repeating itself. Think > Zope about 1-1.5 yeas ago... >=20 > As lynn said, it is **very** hard to write docs about something you don't > understand. At the moment it is very hard for a newcomer looking at the C= MF > for the first time to do any of the things mentioned in the "CMF Fact > Sheet"... **groan, groan** >=20 > We'll probably have to abandon CMF for the time being until we understand= it > a bit more. If I can find the time write som docs for internal use, I'll = be > happy to make the available for general use, but this will probably not > happen until the end of year (we have a **very** tight schedule for the n= ext > 6 months, and I need time to grok the CMF...) >=20 > /dario >=20 > - -------------------------------------------------------------------- > Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technology > dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services >=20 >=20 >=20 > _____________________________________________________ > EuroZope mailing list http://eurozope.beehive.de/ > EuroZope@comlounge.net > https://admin.comlounge.net/mailman/listinfo/eurozope >=20 From yokemay@apdip.net Tue Jul 31 10:12:16 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Tue, 31 Jul 2001 17:12:16 +0800 Subject: [Zope-CMF] Recover CMF Message-ID: <000901c119a0$e5ca80c0$175ebbca@apdip.net> Hi, My Zope crashed today and it was reinstalled again. Unfortunately, I've to do a fresh installation and therefore, my CMF is lost. How do i recover my previous (backup copy) of my CMF? Please advise. Regards, Yoke May From pra@baba9.com Tue Jul 31 11:21:34 2001 From: pra@baba9.com (Priya Ramkumar) Date: Tue, 31 Jul 2001 15:51:34 +0530 Subject: [Zope-CMF] News Item view Message-ID: <005701c119aa$9329a800$0f00a8c0@websoft.com> Hi I am using CMF1.1 and Zope version 2.3.3. I use structured text to create the documents. It works fine with document type content. But when I create news items, it expects me to type the content in html. I would like to use structured text to create news items too. Could anyone please tell me what I should do to type content in structured text? Thanks for any help or suggestion. Regards, Priya From sedat@kibele.com Tue Jul 31 12:40:33 2001 From: sedat@kibele.com (Sedat Yilmazer) Date: Tue, 31 Jul 2001 14:40:33 +0300 Subject: [Zope-CMF] Recover CMF In-Reply-To: Message-ID: Do you have the Data.fs somewhere backed up? All your CMF content is = keep there. If you have it then you might=20 1-) Save your current Data.fs somewhere 2-) Replace Data=E7fs with your backup copy 3-) Export your CMF branch 4-) Copy your saved Data.fs (in step1) back 5-) Import your CMF back into your new Site Sedat -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Yoke May Seow Sent: Tuesday, July 31, 2001 12:12 PM To: zope-cmf@zope.org Subject: [Zope-CMF] Recover CMF Hi, My Zope crashed today and it was reinstalled again. Unfortunately, I've = to do a fresh installation and therefore, my CMF is lost. How do i recover my previous (backup copy) of my CMF? Please advise. Regards, Yoke May _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature = requests From Andrew Sawyers" Message-ID: <002801c119d2$ff3c6820$0100a8c0@enfer.netcasting.net> I've actually pulled this completely from the ZPT based skins; it get's moved down onto the content item. The only content item that's been updated is the document; the rest are coming. Andrew ----- Original Message ----- From: "marc lindahl" To: Sent: Tuesday, July 31, 2001 12:19 AM Subject: [Zope-CMF] portaltitle:portaltitle ?? -- silly! > I always thought it was silly that at the root (home) of your portal the > name (title) would appear twice in the top bar... now I did something about > it. > > >From about line 19 of standard_top_bar.dtml, the stanza for the PortalTitle > changes to: > > > > > (basically, code from folder_contents.dtml) > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From tseaver@palladion.com Tue Jul 31 13:14:39 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 08:14:39 -0400 Subject: [Zope-CMF] Using CMF without portal like features References: <3B65F54A.AD5B7994@franklin.edu> <3B661851.50206@palladion.com> <3B664E2F.38061E44@franklin.edu> Message-ID: <3B66A12F.8030809@palladion.com> Lynn Walton wrote: > Thanks for the reply Tres. > >>I said: If they can't log in, how do you plan to allow them access? >>You could move the login link up into the 'standard_top_bar', for >>instance. >> >>You said:> I want users who have been given access >> >>>using the usual ZMI user folders to be able to create CMF Documents in >>>our various subdirectories under the zope site root. >>> > > Can't they login to the ZMI rather than the portal to create CMF content? Not fully: the ZMI isn't wired up to the skins, for instance, which means that many of the interactions needed to complete the content authoring process (e.g., interacting with workflow, etc.) wouldn't be available. The ZMI machinery won't set the 'portal_type' attribute, either, which will break lots of the other mechanisms. Perhaps you need to build a default skin for anonymous viewers which has no actions box; your content authors could log in through a well-known URL, without needing a "login" link on the page perhaps? Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Tue Jul 31 13:17:55 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 08:17:55 -0400 Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features References: <20010731040417.82063.qmail@web11603.mail.yahoo.com> <3B664EEB.DDA233C3@franklin.edu> Message-ID: <3B66A1F3.6060900@palladion.com> Lynn Walton wrote: > I try not to use the mailing list just to post "here here" or "me too" type of > comments. But in this case I'm going to make an exception because I feel like it > is VERY important that the CMF creators understand that this is how MANY > developer's feel. I wholeheartedly agree with Amr's comments. > > I want desperately to use the CMF, but the docs don't seem to start at anything > like the beginning. And I agree that what Amr and I are asking for isn't spoon > feeding to a total ignoramus who isn't willing to do any work at all to help > himself, or to a total beginner at web application development. But, I've been > trying for weeks to get enough info to make a decision to use CMF, and despite > pouring over everything written on the CMF website, I can't put the basics > together. The docs spend a lot of time on outlines or the conceptual idea of CMF, > but little on how to really do it. It's leading me to a decision not to use CMF, > which greatly saddens me since I think if there were enough docs that I think I > could put it together faster, and safer, then it would be the best decision for me > to go with. > > It really does feel like Amr's "cheezy metaphor" .... that we're having to " spin > my own rope, smelt the iron and make myself the axe and the hooks and the rest of > the climbing gear from scratch". > > I'm sympathetic to the folks trying to build and refine the CMF product not having > enough time to do docs too, but it doesn't help my frustration level. Perhaps the slides from my OSCon tutorial would help some: http://cmf.zope.org/Members/tseaver/oss_2001/building_sites The original text is there as portal content, along with the StarOffice slides. The outline implied by the slides is a likely start on a "CMF Site Manager's Guide", I think. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Tue Jul 31 13:22:21 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 08:22:21 -0400 Subject: [Zope-CMF] Is there a way to change the meta-type of a number of object types References: Message-ID: <3B66A2FD.8040901@palladion.com> Norman Khine wrote: > Using the external method as described, does it mean, I can modify other > attributes, just by including > > doc = brain.getObject() > doc.portal_type = 'Card' > ----> doc.review_state = 'published' > updated.append( doc ) > > if I want to make all these documents published, for example? Yes, that is possible. You might rather call the appropriate workflow methods, however, as setting the attribute directly breaks encapsulation; for a one-time hack, it won't be too awful. > Also, shouldn't portal_type be meta_type, as I am changing the meta_type > from Document to Card? If I understood your original question, you have created a new type object, "Card", based against the CMFDefault.Document Python class. In this case, the 'meta_type' of the instances will still be 'Document', but the 'portal_type' (the ID of the type objects) will be 'Card'. I can't think of any time when I would want to set the 'meta_type' on an instance to be different from its class. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tol@tanghus.dk Tue Jul 31 13:20:04 2001 From: tol@tanghus.dk (Thomas Olsen) Date: Tue, 31 Jul 2001 14:20:04 +0200 Subject: [Zope-CMF] CMFDecor/CMFCalendar Message-ID: <20010731122546.AD4F23861F@aadal.tanghus.dk> Hi If anyones interested I have ported event_view and event_edit_form from CMFCalendar to ZPT. They can be found at http://www.tanghus.dk/Members/tol/CMFDecor/calendar (This is just a testground site so dont mind the dummy content ;-) -- Regards, Thomas Olsen From sedat@kibele.com Tue Jul 31 13:42:30 2001 From: sedat@kibele.com (Sedat Yilmazer) Date: Tue, 31 Jul 2001 15:42:30 +0300 Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features In-Reply-To: Message-ID: The link for OSCon tutorial below gets me nowhere! Does anybody managed = to see these slides -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Tres Seaver Sent: Tuesday, July 31, 2001 3:18 PM To: Lynn Walton; zope-cmf@zope.org Subject: Re: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features Perhaps the slides from my OSCon tutorial would help some: http://cmf.zope.org/Members/tseaver/oss_2001/building_sites The original text is there as portal content, along with the StarOffice slides. The outline implied by the slides is a likely start on a "CMF=20 Site Manager's Guide", I think. Tres. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature = requests From sedat@kibele.com Tue Jul 31 13:52:07 2001 From: sedat@kibele.com (Sedat Yilmazer) Date: Tue, 31 Jul 2001 15:52:07 +0300 Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features In-Reply-To: Message-ID: Could the DC open up the design Documentation ( or the design doc is = the CMF itself). I hope there are some docs for CMF such as Toplevel = Design Deocumentation or better a detailed design documentation. Are = these to specific to DC (huups I mean ZC)=20 Sedat -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Dario Lopez-K=E4sten Sent: Tuesday, July 31, 2001 10:23 AM To: zope-cmf@zope.org Cc: eurozope Subject: Re: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features Count me/us in into Amr's and Lynn's crowd as well. We'd love to use the MCF, especially after Chris Wither's walkthrough of Swishdot at the = Eurozope conference in Berin. What he does is to simply use the CMF as general components/modules to build upon, and not only to be used for portal = design. This is doc thing of the CMF is actually history repeating itself. Think Zope about 1-1.5 yeas ago... As lynn said, it is **very** hard to write docs about something you = don't understand. At the moment it is very hard for a newcomer looking at the = CMF for the first time to do any of the things mentioned in the "CMF Fact Sheet"... **groan, groan** We'll probably have to abandon CMF for the time being until we = understand it a bit more. If I can find the time write som docs for internal use, I'll = be happy to make the available for general use, but this will probably not happen until the end of year (we have a **very** tight schedule for the = next 6 months, and I need time to grok the CMF...) /dario - -------------------------------------------------------------------- Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature = requests From bkc@murkworks.com Tue Jul 31 14:25:27 2001 From: bkc@murkworks.com (Brad Clements) Date: Tue, 31 Jul 2001 09:25:27 -0400 Subject: [Zope-CMF] Using CMF without portal like features In-Reply-To: <3B664E2F.38061E44@franklin.edu> Message-ID: <3B667A36.1118.8E02A23@localhost> On 31 Jul 2001, at 1:20, Lynn Walton wrote: > I'm still entertaining the idea of trying to find someone with enough > experience to give me GOOD guidance on using CMF with ZPT in a non-portal > like site for starters, to do some consulting (just telephone ... not in > person) to help answer enough questions to get us rolling. Anyone who has > the experience and time and interest in doing this kind of consulting, > please send me your name, rates, and *brief* idea of experience pertaining > to CMF/ZPT. I'm a consultant using Zope and CMF and I need to do what you want to do. I'm not looking for a consulting job from this, got too much to do! Anyway, here's the approach I'm taking. 1. Objective : allow 1000+ wood product manufacturers to maintain public information about their companies, their products and pictures of their products. 2. Allow anonymous users to browse/search for products or companies that work with specific wood types (mahogany, for example), search criteria will also include "show me within x miles of this zipcode), etc. 3. "Shrink-wrap" the site onto a CD for distribution to Windows clients.. (down the road) I did the http://www.AdirondackCraft.com website in Zope on RH Linux with Interbase. Product images are stored in the Zope site, and product inventory information is stored in Interbase. To meet goal #3, I chose to put everything into Zope by creating new portal types derived from ZClasses (had started this site using ZClasses, just rebased them to use CMF types instead). So now we have Company, Product and ProductImage. ProductImage includes automatic thumbnails by using PIL and attaching the thumbnail data as a string property associated with the ProductImage instance. Is that a hack? I created the CMF folder as a sub-folder of the main site. Manufacturers will go directly to the CMF to manage their products. The root site folder (above CMF) will use CMF Topics to do the searching, but display the results either using ZPT methods that are instances of the Zclasses, or new ZPT methods stored in the root folder. This way I'm hoping that "typical public users" won't have any idea how the underlying stuff is stored or managed, yet the CMF interface will still be used by maintainers.. Will know later today if this works, as I'm planning to populate the site with 700 manufacturers.. Site Layout: /Root /AdkWood (this is where Apache will proxy to) /CMF /Members /CompanyA /CompanyInfo (CMF Content/ZClass Instance) /ProductA (CMF Content/ZClass) /ImageA /ImageB /ProductB /ImageA /CompanyB /CompanyInfo (CMF Content/ZClass Instance) /ProductA (CMF Content/ZClass) /ImageA /ImageB Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From dario@ita.chalmers.se Tue Jul 31 16:00:26 2001 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Tue, 31 Jul 2001 17:00:26 +0200 Subject: [Zope-CMF] OSCon tutorial by Tres Seaver Message-ID: <006301c119d1$880a4c00$33de1081@ita.chalmers.se> Excellent stuff, tahnk you for making itavailable. One thing: this link: http://cmf.zope.org/Members/tseaver/oss_2001/building_sites/authoring_con= ten t/structured_text gives me an unauthorized error. Cheers, /dario - -------------------------------------------------------------------- Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From dan@control.com Tue Jul 31 16:12:49 2001 From: dan@control.com (Dan L. Pierson) Date: Tue, 31 Jul 2001 11:12:49 -0400 Subject: [Zope-CMF] odd problem with user management In-Reply-To: <63641C91EC424D47A0913FD91483D22D214538@usnet-ex02.USNET.CORP> Message-ID: <126430000.996592369@daystar.control.com> --On Tuesday, July 31, 2001 12:32:38 AM -0400 Jon Franz wrote: > As for making the code change a product: I'd be happy to do that, but > the code requires and expexcts certain properties to exist on the main > portal itself, and on the users. I'm not too sure how to go about > writing an install to add these properties programatically - I'm sure > its not too hard, I'm just short on time, due to the nature of my job. CMFCore/RegistrationTool.py is the implementation of the tool 'portal_registration'; there can only be one instance of a CMF tool on a site at a time. What Tres was suggesting is what we do: 1. make your own subclass of CMFCore.Registration.RegistrationTool 2. delete the standard CMF tool portal_registration 3. create an instance of your tool in it's place Then *all* CMF registration actions will go through your tool. Your tool, or other custom tools of yours, would be responsible for managing your site-specific properties. At this point we have: portal_registration, portal_membership, portal_actions and portal_url as our own subclasses. The advantage of doing things this was is that upgrading to new versions of the CMF is MUCH, MUCH easier. From steve@spvi.com Tue Jul 31 16:24:48 2001 From: steve@spvi.com (Steve Spicklemire) Date: Tue, 31 Jul 2001 10:24:48 -0500 Subject: [Zope-CMF] view_source on dogbowl? In-Reply-To: <002801c119d2$ff3c6820$0100a8c0@enfer.netcasting.net> Message-ID: <200107311532.f6VFWsK92704@obsidian.spvi.com> Hi (D/Z)C folk, How hard would it be to add 'view_source' to the dogbowl, like Zope.org? That might help newbies see how things are done... -steve From dan@control.com Tue Jul 31 16:38:08 2001 From: dan@control.com (Dan L. Pierson) Date: Tue, 31 Jul 2001 11:38:08 -0400 Subject: [Zope-CMF] CMFDecor troubles In-Reply-To: <3B65AA0F.6030606@palladion.com> Message-ID: <130450000.996593888@daystar.control.com> --On Monday, July 30, 2001 02:40:15 PM -0400 Tres Seaver wrote: > Dan L. Pierson wrote: > >> Partly. I'd really like some idea of how long it will stay 2.3 >> compatible and some very visible notice when that is broken. > > My crystal ball is a bit murky, but it is my current guess that > the biggest distinguising feature of the next "major" Zope release > ("2.5" is the most likely label) will be folding ZPT into the core. > At that point (could be as early as September), we will replace the > DTML-based HTML skins with their ZPT-based equivalents, and rev the > CMF. From that point forward, you will have to have ZPT installed > in order to use the default skins. Thanks, that helps a lot. We'd really like to move to ZPT as well, but there's just too much custom DTML for a small staff to switch over as quickly as we'd like. > We won't introduce gratuitous incompatibilities with Zope 2.3 into > the CMF codebase; I won't guarantee that some Python 2.x-isms won't > creep in, however (e.g., support of Unicode). That scares me a bit, but we'll have to live with it. So does the prospect of 2.5.0 :-) From past history, Zope 2.x.0 hasn't been all that stable, .1 is better, and .2+ is about what I'd like to base a live site on. We don't want indefinite support, but we really can't afford to go through major Zope upgrades more than twice a year at the very most. When the time comes we'll probably just have to step back from the bleeding edge and keep the older version running for a while without doing much with the new stuff. From hamish_lawson@yahoo.co.uk Tue Jul 31 18:19:08 2001 From: hamish_lawson@yahoo.co.uk (=?iso-8859-1?q?Hamish=20Lawson?=) Date: Tue, 31 Jul 2001 18:19:08 +0100 (BST) Subject: [Zope-CMF] I want to RTFM. Where is it? Message-ID: <20010731171908.49290.qmail@web11006.mail.yahoo.com> > > Might wannaa try ZWACK chapter 5 by beehive > Unfortunately ZWACK is not available until september, and there are no > excerpts available at the Beehive site AFAICT. Hi Dario Try: http://cmf.zope.org/Members/beehive/ZWACKChap5.html/view Hamish Lawson ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From uriel.gomez@ccpace.com Tue Jul 31 18:28:42 2001 From: uriel.gomez@ccpace.com (Gomez, Uriel) Date: Tue, 31 Jul 2001 13:28:42 -0400 Subject: [Zope-CMF] Dynamic Menu Navigation Message-ID: <1C90DA898152D3119FBD0090278A3B2C0150562D@PMS01> I need ideas. I am using CMF for my company's Intranet content submission system. Our Intranet has 10 different sections. Each section has its own content submission interface. So naturally the menu interface will be different and variant. Here is what I need: I need to design a dynamic menu for the Intranet of all the published objects. Two objects portal folders and documents will populate this menu. Is there a zope product out there that I can use?? I was looking at dtm-tree. Has any one played w/this product?? I am coming out short of ideas. Help, thanks. Uriel G, C.C. Pace Systems, Inc 703-631-6600 "Mathematics is music for the mind, and Music is Mathematics for the Soul." - J.S. Bach From Stephen.Boddy@btcellnet.net Tue Jul 31 19:17:11 2001 From: Stephen.Boddy@btcellnet.net (Boddy Stephen) Date: Tue, 31 Jul 2001 19:17:11 +0100 Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF withou t portal like features Message-ID: <5E5EEA049DAED31195A10008C7A4385B1FFFAC@skye.cellnet.co.uk> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C119ED.04917670 Content-Type: text/plain; charset="iso-8859-1" Tres, I'm not attacking you Tres, but this is a perfect example of the problem. These slides tell me (a grasshopper) what the CMF can do, without explaining the techniques you (the Master) would use. Short of me spending the next several months reading code, (particularly code written by someone else who's a more experienced coder, and possibly :o) much smarter than me) then it is highly unlikely that I, or someone like me, is going to be able to create this documentation. Until someone with the knowledge and understanding takes on the onerous, difficult and decidedly boring task of creating end-user documentation, there will be a limited take up of CMF. This is not because of inherent problems / shortcomings of CMF, but rather the large investment of time to achieve professional, commercially acceptable results. At a time when time is at a premium, it's difficult to justify the time needed to understand the CMF, in order to make a judgment call as to whether it's viable, write documentation, or adapt it to one's needs. In the long run I could see the documentation helping out. There seems to lots of newbie style questions on this list, which to me should be more about the development, bug-fixin' and improvement of CMF. A reduction in this level of "noise" (Zope-CMF-[FAQ|Newbie]? Vote now!) would probably justify a knowledgable persons time. I'm sure there'd be dozens of beta-readers on this list alone. Regards Steve -----Original Message----- From: Tres Seaver [mailto:tseaver@palladion.com] Sent: 31 July 2001 13:18 To: Lynn Walton; zope-cmf@zope.org Subject: Re: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features Lynn Walton wrote: > I try not to use the mailing list just to post "here here" or "me too" type of > comments. But in this case I'm going to make an exception because I feel like it > is VERY important that the CMF creators understand that this is how MANY > developer's feel. I wholeheartedly agree with Amr's comments. > > I want desperately to use the CMF, but the docs don't seem to start at anything > like the beginning. And I agree that what Amr and I are asking for isn't spoon > feeding to a total ignoramus who isn't willing to do any work at all to help > himself, or to a total beginner at web application development. But, I've been > trying for weeks to get enough info to make a decision to use CMF, and despite > pouring over everything written on the CMF website, I can't put the basics > together. The docs spend a lot of time on outlines or the conceptual idea of CMF, > but little on how to really do it. It's leading me to a decision not to use CMF, > which greatly saddens me since I think if there were enough docs that I think I > could put it together faster, and safer, then it would be the best decision for me > to go with. > > It really does feel like Amr's "cheezy metaphor" .... that we're having to " spin > my own rope, smelt the iron and make myself the axe and the hooks and the rest of > the climbing gear from scratch". > > I'm sympathetic to the folks trying to build and refine the CMF product not having > enough time to do docs too, but it doesn't help my frustration level. Perhaps the slides from my OSCon tutorial would help some: http://cmf.zope.org/Members/tseaver/oss_2001/building_sites The original text is there as portal content, along with the StarOffice slides. The outline implied by the slides is a likely start on a "CMF Site Manager's Guide", I think. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests ------_=_NextPart_001_01C119ED.04917670 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF = without portal like features

Tres,

I'm not attacking you Tres, but this is a perfect = example of the problem. These slides tell me (a grasshopper) what the = CMF can do, without explaining the techniques you (the Master) would = use. Short of me spending the next several months reading code, = (particularly code written by someone else who's a more experienced = coder, and possibly :o) much smarter than me) then it is highly = unlikely that I, or someone like me, is going to be able to create this = documentation.

Until someone with the knowledge and understanding = takes on the onerous, difficult and decidedly boring task of creating = end-user documentation, there will be a limited take up of CMF. This is = not because of inherent problems / shortcomings of CMF, but rather the = large investment of time to achieve professional, commercially = acceptable results. At a time when time is at a premium, it's difficult = to justify the time needed to understand the CMF, in order to make a = judgment call as to whether it's viable, write documentation, or adapt = it to one's needs.

In the long run I could see the documentation helping = out. There seems to lots of newbie style questions on this list, which = to me should be more about the development, bug-fixin' and improvement = of CMF. A reduction in this level of "noise" = (Zope-CMF-[FAQ|Newbie]? Vote now!) would probably justify a = knowledgable persons time. I'm sure there'd be dozens of beta-readers = on this list alone.

Regards
Steve

-----Original Message-----
From: Tres Seaver [mailto:tseaver@palladion.com]<= /FONT>
Sent: 31 July 2001 13:18
To: Lynn Walton; zope-cmf@zope.org
Subject: Re: [Zope-CMF] Re: Chicken and the Egg -- = WAS -- Using CMF
without portal like features


Lynn Walton wrote:

> I try not to use the mailing list just to post = "here here" or "me too" type of
> comments.  But in this case I'm going to = make an exception because I feel like it
> is VERY important that the CMF creators = understand that this is how MANY
> developer's feel.  I wholeheartedly agree = with Amr's comments.
>
> I want desperately to use the CMF, but the docs = don't seem to start at anything
> like the beginning.  And I agree that what = Amr and I are asking for isn't spoon
> feeding to a total ignoramus who isn't willing = to do any work at all to help
> himself, or to a total beginner at web = application development.   But, I've been
> trying for weeks to get enough info to make a = decision to use CMF, and despite
> pouring over everything written on the CMF = website, I can't put the basics
> together.  The docs spend  a lot of = time on outlines or the conceptual idea of CMF,
> but little on how to really do it. It's leading = me to a decision not to use CMF,
> which greatly saddens me since I think if there = were enough docs that I think I
> could put it together faster, and safer, then = it would be the best decision for me
> to go with.
>
> It really does feel like Amr's "cheezy = metaphor" .... that we're having to " spin
> my own rope, smelt the iron and make myself the = axe and the hooks and the rest of
> the climbing gear from scratch".
>
> I'm sympathetic to the folks trying to build = and refine the CMF product not having
> enough time to do docs too, but it doesn't help = my frustration level.


Perhaps the slides from my OSCon tutorial would help = some:

   http://cmf.zope.org/Members/tseaver/oss_2001/building_= sites


The original text is there as portal content, along = with the

StarOffice slides.

The outline implied by the slides is a likely start = on a "CMF

Site Manager's Guide", I think.

Tres.
--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Tres = Seaver           =             =          = tseaver@zope.com
Zope Corporation      = "Zope Dealers"       http://www.zope.com


_______________________________________________
Zope-CMF maillist  -  = Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug = reports and feature requests

------_=_NextPart_001_01C119ED.04917670-- From tseaver@palladion.com Tue Jul 31 18:49:47 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 13:49:47 -0400 (EDT) Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF without portal like features In-Reply-To: Message-ID: On Tue, 31 Jul 2001, Sedat Yilmazer wrote: > The link for OSCon tutorial below gets me nowhere! Does > anybody managed to see these slides Hmm, works for me, even as anonymous. I see the standard dogbowl folder view, with three items under "Documents, Images, and Files" and eight subfolders. > > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Tres Seaver > Sent: Tuesday, July 31, 2001 3:18 PM > To: Lynn Walton; zope-cmf@zope.org > Subject: Re: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF > without portal like features > > Perhaps the slides from my OSCon tutorial would help some: > > http://cmf.zope.org/Members/tseaver/oss_2001/building_sites > > > The original text is there as portal content, along with the > > StarOffice slides. > > The outline implied by the slides is a likely start on a "CMF > > Site Manager's Guide", I think. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Tue Jul 31 18:52:07 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 13:52:07 -0400 (EDT) Subject: [Zope-CMF] OSCon tutorial by Tres Seaver In-Reply-To: <006301c119d1$880a4c00$33de1081@ita.chalmers.se> Message-ID: On Tue, 31 Jul 2001, [iso-8859-1] Dario Lopez-K=E4sten wrote: > Excellent stuff, tahnk you for making itavailable. >=20 > One thing: >=20 > this link: >=20 > http://cmf.zope.org/Members/tseaver/oss_2001/building_sites/authoring_con= ten > t/structured_text >=20 > gives me an unauthorized error. Thanks, I hadn't gotten that document published. Tres. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Tue Jul 31 18:58:09 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 13:58:09 -0400 (EDT) Subject: [Zope-CMF] Re: OSCon tutorial slides In-Reply-To: Message-ID: On Tue, 31 Jul 2001 davelehman@loewen.com wrote: > I realize you are a busy man, but if there is any way you could post your > OSCon slides in Powerpoint format (I believe Staroffice makes this fairly > easy) it would be greatly appreciated! You can e-mail them to me if you > wish, or post them on your homepage. Done, thanks for pointing this out. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From slash@dotnetslash.net Tue Jul 31 20:55:00 2001 From: slash@dotnetslash.net (Mark W. Alexander) Date: Tue, 31 Jul 2001 15:55:00 -0400 (EDT) Subject: [Zope-CMF] embed Zope applications in CMF Message-ID: I'm looking at CMF for a intranet portal. I've got some existing Zope applications that I'd like to make available to members, but only those with appropriate roles withing the portal membership. Is there any documentation describing this process? -- Mark W. Alexander slash@dotnetslash.net From tseaver@palladion.com Tue Jul 31 19:06:11 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 31 Jul 2001 14:06:11 -0400 (EDT) Subject: [Zope-CMF] Re: Chicken and the Egg -- WAS -- Using CMF withou t portal like features In-Reply-To: <5E5EEA049DAED31195A10008C7A4385B1FFFAC@skye.cellnet.co.uk> Message-ID: On Tue, 31 Jul 2001, Boddy Stephen wrote: > Tres, > > I'm not attacking you Tres, but this is a perfect example of the problem. > These slides tell me (a grasshopper) what the CMF can do, without explaining > the techniques you (the Master) would use. Short of me spending the next > several months reading code, (particularly code written by someone else > who's a more experienced coder, and possibly :o) much smarter than me) then > it is highly unlikely that I, or someone like me, is going to be able to > create this documentation. I'd just like to reiterate the tail end of my message: > > The outline implied by the slides is a likely start on a "CMF > > Site Manager's Guide", I think. I think that fleshing out the "skeleton" indicated by those slides into a real manual is a desirable goal; not only that, it is one I am likely to have resources for in the near term. > Until someone with the knowledge and understanding takes on the onerous, > difficult and decidedly boring task of creating end-user documentation, > there will be a limited take up of CMF. This is not because of inherent > problems / shortcomings of CMF, but rather the large investment of time to > achieve professional, commercially acceptable results. At a time when time > is at a premium, it's difficult to justify the time needed to understand the > CMF, in order to make a judgment call as to whether it's viable, write > documentation, or adapt it to one's needs. > > In the long run I could see the documentation helping out. There seems to > lots of newbie style questions on this list, which to me should be more > about the development, bug-fixin' and improvement of CMF. A reduction in > this level of "noise" (Zope-CMF-[FAQ|Newbie]? Vote now!) would probably > justify a knowledgable persons time. I'm sure there'd be dozens of > beta-readers on this list alone. I think that there *are* people on this list who *can* help create the required documentation; I would be delighted to enlist as many as practical in the effort. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From khine@btinternet.com Tue Jul 31 23:26:44 2001 From: khine@btinternet.com (Norman Khine) Date: Tue, 31 Jul 2001 23:26:44 +0100 Subject: [Zope-CMF] Is there a way to change the meta-type of a number of object types In-Reply-To: <3B66A2FD.8040901@palladion.com> Message-ID: Hello Tres, Sorry to bother you with trivia stuff, but I am having difficulties in running the external method and get the following error: Error Type: NameError Error Value: name 'self' is not defined Traceback (innermost last): File /usr/home/dsuk5/zope/2.4.0/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/dsuk5/zope/2.4.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/dsuk5/zope/2.4.0/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /usr/home/dsuk5/zope/2.4.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/dsuk5/zope/2.4.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addExternalMethod) File /usr/home/dsuk5/zope/2.4.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addExternalMethod) File /usr/home/dsuk5/zope/2.4.0/lib/python/Products/ExternalMethod/ExternalMethod .py, line 131, in manage_addExternalMethod File /usr/home/dsuk5/zope/2.4.0/lib/python/Products/ExternalMethod/ExternalMethod .py, line 179, in __init__ (Object: update) File /usr/home/dsuk5/zope/2.4.0/lib/python/Products/ExternalMethod/ExternalMethod .py, line 202, in manage_edit (Object: update) File /usr/home/dsuk5/zope/2.4.0/lib/python/Products/ExternalMethod/ExternalMethod .py, line 209, in getFunction (Object: update) File /usr/home/dsuk5/zope/2.4.0/lib/python/App/Extensions.py, line 217, in getObject (Info: ('/usr/home/dsuk5/zope/2.4.0/Extensions/change_type.py', 'change_type')) File /usr/home/dsuk5/zope/2.4.0/Extensions/change_type.py, line 2, in ? NameError: (see above) Any help would be much welcomed. Regrds Norman -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Tres Seaver Sent: 31 July 2001 13:22 To: Norman Khine Cc: Zope-CMF Subject: Re: [Zope-CMF] Is there a way to change the meta-type of a number of object types Norman Khine wrote: > Using the external method as described, does it mean, I can modify other > attributes, just by including > > doc = brain.getObject() > doc.portal_type = 'Card' > ----> doc.review_state = 'published' > updated.append( doc ) > > if I want to make all these documents published, for example? Yes, that is possible. You might rather call the appropriate workflow methods, however, as setting the attribute directly breaks encapsulation; for a one-time hack, it won't be too awful. > Also, shouldn't portal_type be meta_type, as I am changing the meta_type > from Document to Card? If I understood your original question, you have created a new type object, "Card", based against the CMFDefault.Document Python class. In this case, the 'meta_type' of the instances will still be 'Document', but the 'portal_type' (the ID of the type objects) will be 'Card'. I can't think of any time when I would want to set the 'meta_type' on an instance to be different from its class. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From khine@btinternet.com Tue Jul 31 23:41:02 2001 From: khine@btinternet.com (Norman Khine) Date: Tue, 31 Jul 2001 23:41:02 +0100 Subject: [Zope-CMF] embed Zope applications in CMF In-Reply-To: Message-ID: Mark, The way I installed additional applications to the CMF was to put all the folders within the portal_skins/custom folder. You must ensure that the url links within your application match that of the portal or put "&dtml-portal_url;/folder" an easy example is to put the SQLPoll product within your customs folder, stick the database on the root of the portal, or anywhere above your skins folder and you will have an external product running within your CMF. i think a lot of the misunderstanding about the cmf is that it is not that difficult to customise and add additional functionality to it, as some may have thought. the main thing the cmf provides you with is a frame work with core requirements to get you up and running without having to do a lot. But should you want to extend it then the same principles apply as to when one writes an application in pure zope, security included. hth regards norman -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Mark W. Alexander Sent: 31 July 2001 20:55 To: zope-cmf@zope.org Subject: [Zope-CMF] embed Zope applications in CMF I'm looking at CMF for a intranet portal. I've got some existing Zope applications that I'd like to make available to members, but only those with appropriate roles withing the portal membership. Is there any documentation describing this process? -- Mark W. Alexander slash@dotnetslash.net _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From norbert@attira.com Tue Jul 31 23:44:46 2001 From: norbert@attira.com (Norbert Marrale) Date: Wed, 1 Aug 2001 00:44:46 +0200 Subject: [Zope-CMF] CMF Registration Email Headers Message-ID: <3B6750FE.32465.31C57B1@localhost> I hope I'm not being too impatient here, as no reaction from the list yesterday :) but it looks like the email headers created in the confirmation message after initial registration and when sending the password reminder are crooked! As in: Date: Sun, 29 Jul 2001 21:15:10 -0400 (EDT) From: Norbert Marrale Message-Id: <200107300115.f6U1FAJ22713@Improv.Openlearning.net> To: undisclosed-recipients:; X-UIDL: ITI"!YJ@"!bPC"!XL,#! X-MDRcpt-To: reg@mail.infocatch.com X-MDaemon-Deliver-To: reg@mail.infocatch.com Reply-To: community@embassyweb.com To: reg@infocatch.com From: "EmbassyWeb Community Administrator" Subject: Portal Membership Information Note the blank line between the Reply-To and To headers. This causes the final two lines to be inserted in the message body instead of the header. Can any of you even reproduce this? Norbert On the Road of Life, there are Tourists and there are Travelers. I'd rather be Traveling! Norbert Marrale norbert@infocatch.com
zmi_use_css'1'
sql_pref__cols'75'
zmi_top_frame'1'
Discussions href="/Portal/Members/member1/topicID_20010702223900">Discussions > "bio.CookedBody()"> >

&dtml-title; : &dtml-Title;

valign="center"> >

&dtml-title; > > : &dtml-Title;

>