From slinkp23@yahoo.com Mon Oct 1 01:16:42 2001 From: slinkp23@yahoo.com (Paul Winkler) Date: Sun, 30 Sep 2001 20:16:42 -0400 Subject: [Zope-CMF] Combining CMF and shopping? In-Reply-To: <003a01c14930$ff85a110$0500000a@erla.mmmanager.org>; from erik@mmmanager.org on Sat, Sep 29, 2001 at 11:52:13PM +0200 References: <003a01c14930$ff85a110$0500000a@erla.mmmanager.org> Message-ID: <20010930201642.A1328@bestweb.net> On Sat, Sep 29, 2001 at 11:52:13PM +0200, Erik Lange wrote: (snip) Erik, I find this micropayment idea of yours very interesting... one major question springs to mind: > 4. he authorises portal B to check for credit on Portal A. How does this get done? How do you do it so that it's both * easier than starting a new account with portal B? * secure? What stops someone from going to portal B and impersonating a member of portal A, using their money at portal A to access resources at portal B? Also, am I correct that you are proposing a system that doesn't depend on Zope? i.e. might work on a variety of portal servers? -- ................ paul winkler ................ custom calendars: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com From gitte@mmmanager.org Mon Oct 1 09:44:06 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 01 Oct 2001 10:44:06 +0200 Subject: [Zope-CMF] Problem with publishing to a specific folder. Message-ID: <1001925852.31489.16.camel@squidbitch.mmmanager.org> Hello, I have followed a recipe from ZopeLabs on how to publish content into a specific folder. And it works. The only annoting thing is if a member retracts an item, edits it and submit it again. When a reviewer tries to publish it, I get an error telling me that the object already exists (and it does). So I wanted to modify the code a bit so that if an object exists, it should be deleted from the destination folder and the modified object should be published to that folder. But how do I delete an object from a FS python script ?? TIA, Gitte Wange From a.donnini@smarten.com Mon Oct 1 10:16:29 2001 From: a.donnini@smarten.com (Alessandra Donnini) Date: Mon, 1 Oct 2001 11:16:29 +0200 Subject: [Zope-CMF] Installing Message-ID: <002f01c14a59$c1780e60$1665020a@cpg.it> Messaggio in formato MIME composto da più parti. ------=_NextPart_000_002C_01C14A6A.84948800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, We are providing the company Intranet and I would like to try CMF. The = target server shall be Linux, but now I have my PC with MS Window, and I = have the following problems and doubts 1 - I downloaded Zope 2.4.1 (because the zope.com site gives only this = option) but CMF 1.1 depends on Zope 2.3.2 that is not available! 2 - CMF doesn't seem available for windows, it is possible to try it on = my PC? Thanx Alessandra Donnini Smarten Software Spa ------=_NextPart_000_002C_01C14A6A.84948800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
We are providing the company Intranet = and I would=20 like to try CMF. The target server shall be Linux, but now I have my PC = with MS=20 Window, and I have the following problems and doubts
1 - I downloaded Zope 2.4.1 (because = the zope.com=20 site gives only this option) but = CMF 1.1=20 depends on Zope 2.3.2 that is not available!
2 - CMF doesn't seem available for = windows, it is=20 possible to try it on my PC?
 
Thanx
 
Alessandra Donnini
Smarten Software=20 Spa
------=_NextPart_000_002C_01C14A6A.84948800-- From gitte@mmmanager.org Mon Oct 1 10:48:37 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 01 Oct 2001 11:48:37 +0200 Subject: [Zope-CMF] Using portal_membership object from underlying portals ... Message-ID: <1001929722.31489.24.camel@squidbitch.mmmanager.org> Hello, I am about to set up some sort of project-based website ... We have chosen to do it like this: A primary portal where every worker must be a member. Underlying portals where each project resides. Members from the primary are also members in the project portals they work on (with different roles). Now I want to create a page on the primary portal where a manager can administre the users (he should assign the members of each project). I wanted to list a projects name, description, and the members of the portal. I can get hold of the CMF Site objects (and their id's) but not there members ? This is the code I have tried: &dtml-obj_id;
[1]
1: This only outputs the CMF Site objects ids ???? Anyone with a good hint on what I could do ? -- 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 strongly believe that trying to be clever is detrimental to your health. - Linus Torvalds From seb@jamkit.com Mon Oct 1 11:41:56 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 1 Oct 2001 11:41:56 +0100 Subject: [Zope-CMF] Installing In-Reply-To: <002f01c14a59$c1780e60$1665020a@cpg.it>; from a.donnini@smarten.com on Mon, Oct 01, 2001 at 11:16:29AM +0200 References: <002f01c14a59$c1780e60$1665020a@cpg.it> Message-ID: <20011001114155.D4510@lenin.jamkit.com> * Alessandra Donnini [011001 10:28]: > Hi, > 1 - I downloaded Zope 2.4.1 (because the zope.com site gives only this option) but CMF 1.1 depends on Zope 2.3.2 that is not available! Zope 2.3.2 is available - but you have to look hard for it :-0 http://www.zope.org/Products/Zope/2.3.2 But a better option is to get the latest CVS version of the CMF, which has several new features, and works with the latest Zope. http://dev.zope.org/CVS/ReadOnlyAccess has some instructions. The relevant command would be: cvs -z7 -d :pserver:anonymous@cvs.zope.org:/cvs-repository checkout CMF > 2 - CMF doesn't seem available for windows, it is possible to try it > on my PC? Yes. It's all written in python, i.e. it's completely cross-platform. However, there is a buglet in the skins tool which you will need to be aware of if you move a site from windows to linux. Search the list archives for fixes. seb From gitte@mmmanager.org Mon Oct 1 12:11:07 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 01 Oct 2001 13:11:07 +0200 Subject: [Zope-CMF] Problem with publishing to a specific folder. In-Reply-To: <20011001113228.C4510@lenin.jamkit.com> References: <1001925852.31489.16.camel@squidbitch.mmmanager.org> <20011001113228.C4510@lenin.jamkit.com> Message-ID: <1001934672.32649.9.camel@squidbitch.mmmanager.org> On man, 2001-10-01 at 12:32, seb bacon wrote: > * Gitte Wange [011001 09:47]: > > But how do I delete an object from a FS python script ?? > > Look for manage_delObjects in the API section of Zope Help. Something > like context.manage_delObjects(['id']) should do the trick. > > seb. Well the python script I want to do this in is actually the DCWorkflow/DCWorkflow.py ... can I use the context object there ?? So I think I need a reguarly delete function ... TIA, -- 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: Just because a program takes text commands makes it complex? I love GUI's. I love using the web. I love WYSIWYG word processors. But I also love CLIs. It feels more natural to me, as if I'm talking with the computer (granted, the language isn't english, it's bash, and the vocabulary happens to be whatever's is my PATH)--I tell it what to do and it does it for me (unlike GUI's where I have to do everything my own damn self). - fassler, in response to MS France FUD From gitte@mmmanager.org Mon Oct 1 11:51:00 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 01 Oct 2001 12:51:00 +0200 Subject: [Zope-CMF] DC worflow and editing published objects Message-ID: <1001933465.32649.2.camel@squidbitch.mmmanager.org> Hello, When using the default workflow, a manager i able to edit content even if it is published. I have a portal where I use DC workflow but here a manager isn't able to edit the content if it is published. What should I change in order to enable this editing ? TIA, -- 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 strongly believe that trying to be clever is detrimental to your health. - Linus Torvalds From tseaver@zope.com Mon Oct 1 12:17:35 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 01 Oct 2001 07:17:35 -0400 Subject: [Zope-CMF] Installing References: <002f01c14a59$c1780e60$1665020a@cpg.it> <20011001114155.D4510@lenin.jamkit.com> Message-ID: <3BB850CF.4040808@zope.com> seb bacon wrote: > * Alessandra Donnini [011001 10:28]: > >> 1 - I downloaded Zope 2.4.1 (because the zope.com site gives only >> this option) but CMF 1.1 depends on Zope 2.3.2 that is not available! CMF 1.1 should work fine on a Zope 2.4.1 box (the note on the CMF site says, "*not* 2.4a1", which was the *alpha* release of 2.4). That page also says, "Zope 2.3.2 or later" -- Zope 2.3.3 is definitely OK. I just tested, and CMF 1.1 runs fine on Zope 2.4.1. > > Zope 2.3.2 is available - but you have to look hard for it :-0 > > http://www.zope.org/Products/Zope/2.3.2 > > But a better option is to get the latest CVS version of the CMF, which > has several new features, and works with the latest Zope. > > http://dev.zope.org/CVS/ReadOnlyAccess > > has some instructions. The relevant command would be: > > cvs -z7 -d :pserver:anonymous@cvs.zope.org:/cvs-repository checkout CMF > > >>2 - CMF doesn't seem available for windows, it is possible to try it >>on my PC? >> > > Yes. It's all written in python, i.e. it's completely cross-platform. > However, there is a buglet in the skins tool which you will need to be > aware of if you move a site from windows to linux. Search the list > archives for fixes. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Mon Oct 1 11:51:10 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 01 Oct 2001 06:51:10 -0400 Subject: [Zope-CMF] DCWorkflow References: <3BB7657B.63B22BF@rasselstein-hoesch.de> Message-ID: <3BB84A9E.2000702@zope.com> Dirk Datzert wrote: > Hi all, > > I have a problem to install DCWorkflow into Zope. I got the following > startup messages: > > 2001-09-30T18:22:04 ERROR(200) Zope Could not import Products.DCWorkflow > > Traceback (innermost last): > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/OFS/Application.py, > line 558, in import_product > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/DCWorkflow/__init__.py, > line 92, in ? > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/DCWorkflow/DCWorkflow.py, > line 117, in ? > (Object: aq_inner) > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/DCWorkflow/Transitions.py, > line 102, in ? > (Object: aq_inner) > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/DCWorkflow/Guard.py, > line 100, in ? > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/DCWorkflow/Expression.py, > line 98, in ? > (Object: aq_inner) > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/PageTemplates/Expressions.py, > line 95, in ? > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/PageTemplates/TALES.py, > line 92, in ? > ImportError: No module named ZTUtils > > 2001-09-30T18:22:11 ERROR(200) Zope Couldn't install PageTemplates > Traceback (innermost last): > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/OFS/Application.py, > line 663, in install_product > (Object: ApplicationDefaultPermissions) > (Info: PageTemplates) > File > /usr/src/packages/BUILD/Zope-2.4.1-src/lib/python/Products/PageTemplates/__init__.py, > line 96, in initialize > AttributeError: 'Products.PageTemplates.ZopePageTemplate' module has no > attribute 'initialize' > > Versions: > > Zope-2.4.1 > python-2.1.1 > DCWorkflow-0.4.1 or DCWorkflow 0.4.0 > PageTemplates-1.4.0 > TAL-1.4.0 > ZTUtils-1.1.1 > CMF-1.1 > > Can anybody help me to find a solution ? That list looks fine -- perhaps you were misled into installing TAL and ZTUtils under the 'Products' directory? They need to be in the 'lib/python' directory of either your SOFTWARE_HOME or your INSTANCE_HOME, because they are "packages" but not "products" (technically, they need to be findable on the Python module search path). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From gitte@mmmanager.org Mon Oct 1 15:45:59 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 01 Oct 2001 16:45:59 +0200 Subject: [Zope-CMF] DCWorkflow - Setting more than one role on q worklist Message-ID: <1001947565.32649.27.camel@squidbitch.mmmanager.org> Hello, I want to create a worklist from all the objects in a specific state. The worklist should appear whenever a member with one of these roles are logged in: Jounalist, Producer, Videoreporter But I don't know the syntax for this. If I add Journalist, Producer in the field, the worklist doesn't show up. If just enter Journalist, the user can see the worklist. What is the correct syntax ?? TIA, -- 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: Just because a program takes text commands makes it complex? I love GUI's. I love using the web. I love WYSIWYG word processors. But I also love CLIs. It feels more natural to me, as if I'm talking with the computer (granted, the language isn't english, it's bash, and the vocabulary happens to be whatever's is my PATH)--I tell it what to do and it does it for me (unlike GUI's where I have to do everything my own damn self). - fassler, in response to MS France FUD From janulrich.hasecke@web.de Mon Oct 1 17:54:06 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 01 Oct 2001 18:54:06 +0200 Subject: [Zope-CMF] problem editing retracted items Message-ID: <878zevmhch.fsf@debian.hasecke> Hi, I have a CMF-Site and encountered a problem while editing retracted items, when I am logged in via ZMI as superuser. When I am logged in via ZMI and view a document inside the right frame of the ZMI and try to edit in this frame a retracted document all changes are lost and the document is empty. Alas, my English! When I log in as superuser at the member-page of the CMF I can edit retracted documents. Am I not supposed to edit content while logged in via ZMI? Or is it a bug? Zope 2.4.1 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2, CMF 1.1 TIA juh -- Das Realismuskonzept in Krzysztof Kieslowskis DEKALOG http://hasecke.com/Dekalog/ From tseaver@zope.com Mon Oct 1 07:38:06 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 1 Oct 2001 02:38:06 -0400 (EDT) Subject: [Zope-CMF] Installing In-Reply-To: <009801c14a80$32c19020$1665020a@cpg.it> Message-ID: On Mon, 1 Oct 2001, Alessandra Donnini wrote: > Yes, I extracted the files in > zope_directory\lib\python\Products (it was the only "Products" > directory in the subtree), I restarted zope, but it doesn't > work. Can you report the contents of the 'lib\python\Products' directory? If you have a single 'CMF' subdirectory there, you need to move the three subdirectories under that one up into 'Products', and then remove the 'CMF' directory (it isn't a product, but rather a collection of products). > I have another question, there is a way to stop zope other than > kill the window where it run? Ctrl-C in that window should interrupt Python. You can also use the "Shutdown" button on the ZMI Control Panel; if you are running on Windows NT or 2000, and installed Zope as a service, then you could also use the ServiceManager applet on the Windows Control Panel to stop it (but in this case, it won't be running in a window). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From seb@jamkit.com Mon Oct 1 20:46:17 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 1 Oct 2001 20:46:17 +0100 Subject: [Zope-CMF] Compound elements Message-ID: <20011001204615.X4510@lenin.jamkit.com> I'd like to ask about the status of compound documents, since they are scheduled for CMF 1.2, which I understand is forthcoming (sort of). In particular, I've done a lot of work on the concept already, so it would be a shame not to discuss it a bit more first. I don't think my implementation is very good, but it works. Here are some thoughts in no particular order (warning - long and convoluted): 1) The interface. I put the 'Slots' in a tab of the TypesTool ZMI. I created a new TypeInformation which knows how to add and remove slots on the content in question, but of course only certain Types can be composite. I wondered whether these types should live in their own tool rather than mixing with the normal types. Has anyone else thought about this? 2) The location of components. Should components be attributes of compound elements? I made my compound elements be ObjectManagers, but I'm not convinced that the folderish containment paradigm is the right one - ideally perhaps this would work with Ken's OrganizationObjects, but these are some way off, I presume. 3) Event distribution. Jeffrey identifies workflow as an example of the kind of event which needs to happen to a compound element and its components collectively. The other obvious thing is indexing. Less obvious, but potentially quite powerful, is the action that the compound element is being called with (see thought number 5, below). A problem with this is that in order to have a two-way event channel between the compound element and the component, both must be special content. The consequence is that you won't be able just to drop a Document into a compound element slot; you'll have to mixin the extra functionality, or something similar. One solution is to make PortalContent be CompoundAware by default. 4) Compound elements should be recursively composed. You could make a compound element which is an image and a link, and place that in turn into a compound element which is a page of image/link combos. By this token, PortalContent CompoundAwareness should enable all content to be compound elements *and* components. Is this feasible? 5) Actions distributed to components. I really like this idea, though I'm struggling to think of an example of where it would be useful. In the system I'm working on at the moment, the 'edit' action causes each of the components to display their 'edit' views too. (I can then make text boxes become textareas, etc, giving a nice WYSIWYG editing interface). As part of a compound element's Slot information, it also stores a mapping between the container's actions and the each component's action. For example, I might have a compound element called PlainTextTemplate, which contains two components, text_1 and text_2. These are defined in the slots for the Type. For each component, there is a list of the compound element's actions, and next to each action, a drop-down list of the component's actions. This enables me to create text components which can't be edited, or other ones which turn into flashing blue gifs when I'm editing the template. (Like I said, hard to think of useful examples). Anyway, my question here is: what might the best way to implement this event propagation be? Since my compound elements are ObjectManagers, I can use their beforeTraverse hooks to sniff out the actions being called on them, and then inform each contained component in turn. However, I find this really ugly. Are there any better ways of doing this? Or is this unecessary anyway? Hope that made sense. I'm hoping to refactor my work over the next two weeks, so feedback before then would be great. Otherwise, a CMF1.2 in the next 2 weeks which implements someone else's vision of this would be a very nice alternative :) seb From janulrich.hasecke@web.de Mon Oct 1 17:59:26 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 01 Oct 2001 18:59:26 +0200 Subject: [Zope-CMF] Error when I allow discussions Message-ID: <874rpjmh3l.fsf@debian.hasecke> Hi, when I allow discussion in my Portal, I get the following error when I want to view discussable content, eg. a document. On Zope 2.3.3 I had no problems. But now on Zope 2.4.1 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2, CMF-1.1 I get this error: Error Type: TypeError Error Value: hasReplies() takes exactly 2 arguments (1 given) Error Type: KeyError Error Value: ---------------------------------------------------------------------- Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable . 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. Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: view) File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: view) File /usr/local/Zope-2.3.0/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: view) File /usr/local/Zope- 2.3.0/lib/python/DocumentTemplate/DT_String.py, line 540, in __call__ (Object: view) File /usr/local/Zope-2.3.0/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval (Object: getElement({'00':'Nicht spezifiziert','01':'Architektur','02':'Biotechnologie - Pharmazie - Chemie','03':'Consulting - Beratung','04':'Hardware - Computer','05':'Herstellung - Produktion - Automotive','06':'Ingenieurwesen','07':'IT','08':'Software - Computer','09':'Telekommunikation'},area)) (Info: getElement) File , line 0, in ? File /usr/local/Zope- 2.3.0/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: getElement) File /usr/local/Zope- 2.3.0/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: getElement) File /usr/local/Zope- 2.3.0/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: getElement) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, ({'09': 'Telekommunikation', '08': 'Software - Computer', '05': 'Herstellung - Produktion - Automotive', '04': 'Hardware - Computer', '07': 'IT', '06': 'Ingenieurwesen', '01': 'Architektur', '0 0': 'Nicht spezifiziert', '03': 'Consulting - Beratung', '02': 'Biotechnologie - Pharmazie - Chemie'}, ''), {}, None)) File Script (Python), line 2, in dictionaryElement KeyError: (see above) End of the error--> I don't have this problem when I create the object from the portal interface. I guess the problem could be the way that I am using to create the objects or the location of the method getElement. This is the code I am using to create the object: context.portal_types.constructContent(type_name='FullTimeJob', container=container, id='test') Does somebody know what I am doing wrong? Where should I put the method getElement? My last question is: After creating the object programatically, how can I call its editForm immediately? Thanks in advance. From gitte@mmmanager.org Wed Oct 3 08:58:22 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 03 Oct 2001 09:58:22 +0200 Subject: [Zope-CMF] Problem creating products programatically In-Reply-To: <9pefnk+362t@eGroups.com> References: <9pefnk+362t@eGroups.com> Message-ID: <1002095908.4683.3.camel@squidbitch.mmmanager.org> On ons, 2001-10-03 at 09:45, Josef Albert Meile wrote: > I am having the following error message when I try to view an object > which has been created programatically: > [SNIP error message] > > I don't have this problem when I create the object from the portal > interface. I guess the problem could be the way that I am using to > create the objects or the location of the method getElement. This is > the code I am using to create the object: > > context.portal_types.constructContent(type_name='FullTimeJob', > container=container, > id='test') > > Does somebody know what I am doing wrong? > Where should I put the method getElement? > > My last question is: > After creating the object programatically, how can I call its > editForm immediately? When I create portal objects programatically, I first find the folder where I want to put the object (mostly in the logged in members portal folder). Then I call the invokeFactory method on this folder like this: Hope this little code snippet can help you .... -- 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: Chris McDonough: "We should kill two birds with one stone with this..." Ethan Fremen: "Oh, believe me, we've got LOTS of birds lined up to die..." - Ethan Fremen, f2f conversation with chrism From fg@nuxeo.com Wed Oct 3 13:46:53 2001 From: fg@nuxeo.com (Florent Guillaume) Date: 3 Oct 2001 12:46:53 GMT Subject: [Zope-CMF] I can't live without DTML in Portal Document References: Message-ID: <9pf1bt$67a$1@dev.in.nuxeo.com> > What is the right solution to this problem? What is the real problem? I believe that Document (and other contents in general) should insert a tag in the in some situations, but I've not yet completely figured out the mechanism used (it's fairly intricate and not very well documented -- see HTTPResponse::insertBase, and the call to response.setBase in BaseRequest::traverse ...). Your best bet in the meantime, as you mentionned, would be acquisition, which is not that much of a hack (except that it can lead to caching-unfriendly behaviour). Florent Guillaume Nuxeo > Not a great subject line, but I'm having trouble expressing the real problem > in a few words. So here are a lot of words: > > On my Intranet site, I've got a Portal Folder > > http://morphicsweb//Portal/Members/lstaffor/Papers/2001_09_01/, > > and in that folder a Document (Format HTML) called 'index_html' and a Portal > Image 'Fig_1.gif'. In 'index_html' I reference the image with src="../Fig_1.gif">. When I click the View action the document is requested > with the URL > > > http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/index_html/docu > ment_view > > and the browser expands the 'img' reference to > > http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/Fig_1.gif > > and all is well. > > However, if I find the document by a Topic search, the document is requested > with the URL > > http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/index_html > > and the browser expands the 'img' reference to > > http://morphicsweb/Portal/Members/lstaffor/Papers/Fig_1.gif > > which is invalid, since Fig_1.gif is not in that folder. > > I've made a temporary fix by coding the absolute URL of the image in the img > tag, but, until now, I haven't had to code absolute URLs since I started > using Zope. I usually generate them with DTML, but I can't use DTML in a > Portal Document. I could play a trick with acquisition, moving the image up > one level (or the index_html Document down one level); but that would still > be a trick. > > > -- Loren > > > _______________________________________________ > 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 > -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From pra@baba9.com Wed Oct 3 14:17:29 2001 From: pra@baba9.com (Priya Ramkumar) Date: Wed, 3 Oct 2001 18:47:29 +0530 Subject: [Zope-CMF] Authenticated Member Data Message-ID: <003e01c14c0d$c0a7e900$0f00a8c0@websoft.com> Hi all, I am using Zope2.3.3 & CMF1.1 with ZEO1.0b3. The CMF site was working fine all through. But suddenly, there is a problem in authenticating users. That is, whenever a method such as "portal_membership.getAuthenticatedMember().getMemberId()" or "portal_membership.getAuthenticatedMember().getUserName()" is invoked from a DTML method, I get the following error message. Error Type: MemberDataError Error Value: Can't find user data. Also, "portal_membership.isAnonymousUser()" returns 0. I also checked that "portal_membership.getAuthenticatedMember()" returns the member. But I am surprised that I am unable to get the attributes of the member object like name or id. Has anyone faced this sort of problem? Or does anyone know under what circumstances such functions as getMemberId(), getUserName() returns an error? Thanks for any help & suggestions. This is the traceback I get. Traceback (innermost last): File /export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py, line 187, in publish File /export/usr/local/Zope3/Zope_software_home/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py, line 171, in publish File /export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: copy_of_news_box) File /export/usr/local/Zope3/Zope_software_home/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: copy_of_news_box) File /export/usr/local/Zope3/Zope_software_home/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: copy_of_news_box) File /export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_St ring.py, line 540, in __call__ (Object: copy_of_news_box) File /export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Le t.py, line 149, in render (Object: member="portal_membership.getAuthenticatedMember()") File /export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Le t.py, line 148, in render (Object: name="member.getUserName()") File /export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Ut il.py, line 339, in eval (Object: member.getUserName()) (Info: member) File <string>, line 0, in ? File /export/usr/local/Zope3/Zope_software_home/lib/python/DocumentTemplate/DT_Ut il.py, line 144, in careful_getattr File /export/usr/local/Zope3/Zope_software_home/lib/python/OFS/DTMLMethod.py, line 261, in validate (Object: copy_of_news_box) File /export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py, line 337, in __str__ File /export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py, line 287, in getMemberId File /export/usr/local/Zope3/Instance_home/Products/CMFCore/MemberDataTool.py, line 278, in getUser MemberDataError: (see above) Regards, Priya From fluxent@yahoo.com Wed Oct 3 14:44:56 2001 From: fluxent@yahoo.com (Bill Seitz) Date: Wed, 03 Oct 2001 13:44:56 -0000 Subject: [Zope-CMF] convert zwiki to CMFWiki? Message-ID: <9pf4oo+el5i@eGroups.com> I have hundreds of zwiki pages (all in one folder). Is there a simple process to convert them to a CMFWiki? Ideally, would like to maintain (a) the last-mod dates and (b) the parent relations. From marc@bowery.com Wed Oct 3 15:05:52 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 03 Oct 2001 10:05:52 -0400 Subject: [Zope-CMF] Authenticated Member Data In-Reply-To: <003e01c14c0d$c0a7e900$0f00a8c0@websoft.com> Message-ID: > From: "Priya Ramkumar" > > Error Type: MemberDataError > Error Value: Can't find user data. This happened to me when logged in outside the portal (for me, I was logged in as admin, doing stuff in the ZMI, and then in the portal). I'd never set "preferences" (portal) for admin. Once I did that the problem went away. From nat@interactivehq.org Wed Oct 3 16:08:44 2001 From: nat@interactivehq.org (Nat Harari) Date: Wed, 3 Oct 2001 11:08:44 -0400 Subject: [slinkp23@yahoo.com: [Zope] Re: [Zope-CMF] ZPT and CMF] In-Reply-To: <20011002180506.G1259@bestweb.net> Message-ID: <000801c14c1d$4c114f90$5100000a@jaime> Great. :) Well, thanks! :) I'd love CMFDecor, sure. Could you email it to me sometime today, please? Yep...I don't really know what CVS is, I guess. I thought CVS was the old CMF project so...no clue what you mean by that. :) Argh. I guess I'll just tell them that I can't have it done by monday then and give myself some time. I guess it doesn't matter all that much since I already told them that even if the portal is not done, they can still upload content into the database, which will take them several days at the very least. :) I will be using blark, of course. Best damned product out there and Jeff is just a damned cool guy. :) I guess I can make the right and left sidebars behave and look the way I want with Blark, in a way. I already posted on netkook about that and he gave me a few pointers about the right side bar. Customizing the left one will be a little bit harder, I would imagine, as it is based in CMF and not blark....I think. I'm not sure about that, but I am not a complete idiot, of course. :) Oh, yes...I *do* know HTML but I don't know DTML. And while DTML is a set of easy tags and all that, it isn't so easy when you are moving tags around whose function you are not sure of. I could learn DTML in a week or two, of course, and I did the Elvis and Zoo tutorials (as well as the CMF tutorial building the site for the students), but I'm sure that reading that code in CMF, not just a tutorial page, will be somehow a little different. :) Okay, anyway, I'd love CMF decor and I can try it out. Sure. I'd love that. Yep. :) I will stick with Zope. The last thing I want to do is try a visual ASP studio crap program for a crappy server. :P Zope *is* awesome, even if it isn't "out of the box" yet. I do agree with Erik that it is close, however. With Zope, CMF, and Blark or Squishdot, you can easily set up a great interactive site without doing much customizing at all. Of course, the problem I have with it so far is that if you want it to look different than the default, you're gonna have problems. I'll try to work on that. :) BTW, as a designer - and I know that you guys don't know me from the next guy in the street but - if I can help in any way at all, I would love to. :) Maybe I can make some skins later on after this project is done, after I learn how, and give them to the community? Or maybe make some template design pages? Any way that I can help out, please tell me. :) Thanks again and waiting for your email, Nat. :) -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Paul Winkler Sent: Tuesday, October 02, 2001 5:05 PM To: zope-cmf@zope.org Subject: [slinkp23@yahoo.com: [Zope] Re: [Zope-CMF] ZPT and CMF] ----- Forwarded message from Paul Winkler ----- Subject: [Zope] Re: [Zope-CMF] ZPT and CMF Date: Tue, 2 Oct 2001 17:55:25 -0400 From: Paul Winkler To: Nat Harari Cc: zope@zope.org On Tue, Oct 02, 2001 at 03:27:13PM -0400, Nat Harari wrote: > But I am a designer, foremost. I'm not a coder. Meaning what? Can you at least read html and write html by hand? If not, you're going to have a very hard time getting this stuff to work. > And reading lines of code doesn't explain much to me at all. I was hoping that with > WebDAV, I wouldn't really have to learn much code at all. > http://www.somethingwonderful.com/misc/aim4.jpg > That is a mock-up of > what I am trying to make, using Zope, CMF, and Blark. That is what I > have to have ready by Monday. Yeeow. That's not much time! > It isn't all that hard to create in Dreamweaver, but I'll be damned > if I understand how to make it work with Zope without some sort of > visual tutorial that a newbie like myself can learn. As you can see, > it uses most everything that Zope/CMF/Blark uses, and almost exactly > in the same format. I just need to know how to change some things - > like move them around OK, that *might* work. But I think it will be very hard. I honestly don't know if you're ready to pull this off. ZPT is supposed to make it easier for a site designer to design stuff without caring how it works, while a site developer makes it work without caring how it looks. It doesn't magically enable you to avoid needing a developer if you need a developer. But CMF is supposed to let you set up a portal without being much of a developer. So in theory, it's possible to do what you want. In practice, CMF and ZPT have not been used together until recently and there just isn't any documentation of the sort you're looking for. You'll be pioneering a new technique, travelling in a hurry without a road map. I wouldn't want to be in your shoes. If you can look at a demo CMF site and imagine what you want each part to say, that's helpful. If you want something to *behave* slightly differently than how it does in CMF... that takes code. So here's what I suggest. It might be a long shot, but it might be worth a try. You need to customize a CMF skin. Skins exist to make it easier to change the look of a CMF site. Partly so users can select their favorite skin, but partly also to make it easier for you and me to create a new look. Unfortunately, what you need is a ZPT skin, and CMF doesn't come with one by default. You need the CMFDecor product. And that brings up another problem... You can currently only get the CMFDecor product (as far as I can tell) from CVS. You can browse it at cvs.zope.org, but to download you'll need a cvs program. Never heard of CVS? I suspect you don't have time for that now. Ask me and I'll mail you a copy of CMFDecor. Once you have CMFDecor in your zope Products directory, follow these instructions: http://cmf.zope.org/Members/teyc/skinPageTemplate/view That will set you up with all the skin ZPT files on your filesystem, so you can edit them there and not have to deal with WebDav or FTP or whatever. Changes you make should appear on the running zope site. I think. Be careful to keep an unmodified copy of CMFDecor around in case you screw something up by accident. Now, on the filesystem, look around in CMFDecor/skins. In particular, look in zpt_content, zpt_control, and zpt_generic. Most things you want are probably in zpt_generic. For example, main_template.pt is probably the one you care the most about. It changes how everything else looks: where the menus go and what they look like, etc. This template also makes use of a css stylesheet, zpt_stylesheet.css. actions_box.zpt is the box that shows your user name and any actions the user can take on the current page, like logging out, changing your preferences, etc. index_html.pt is the portal home page. I haven't figured out all the rest yet - I'm just looking at this stuff now. It's important to understand that with Page Templates, an individual page might not look like much when you edit it directly, but when you see it on a running Zope site it's getting wrapped in other templates (usually, in this case, main_template.pt). For example, if you look at index_html.pt directly in a browser, it doesn't look like much of anything. Hell, it's only 26 lines long. But it uses main_template, and then it displays the title of your portal, and the description you gave when you set up the portal, and then inserts news_box. If you can't manage to figure out which files correspond to which parts of the interface, you're f*cked I'm afraid. CMF is big, the ZPT skin is new, and there's not really any map that I know of that explains what it all does. You have to find out by reading the .pt files. So with any luck, you might be able to edit these templates in Dreamweaver and move things around on the page without breaking your portal. We can hope. -- ................ paul winkler ................ custom calendars: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com _______________________________________________ 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 ) ----- End forwarded message ----- -- ................ paul winkler ................ custom calendars: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.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 joe@iuveno-net.de Wed Oct 3 17:43:14 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Wed, 3 Oct 2001 18:43:14 +0200 Subject: [Zope-CMF] How to remove a member References: Message-ID: <00b301c14c2a$7f3b1380$1d00a8c0@iuvenonet.home> > Remove their username from the acl_user folder as well Yep! But this should be handled by something like a "manage_removeMember" method. I remember a recent thread about that. Removing a user is actually missing in the API of the CMF :-( Joachim From scott.meilicke@intp.com Wed Oct 3 23:34:10 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Wed, 3 Oct 2001 15:34:10 -0700 Subject: [Zope-CMF] registering python products Message-ID: Hello, My python products are not showing up when users click 'New'. Here's what I have done: Installed CMFBoringProduct - this works fine after installing the product and following the tutorial. I made a copy of the CMFBoringProduct directory and contents, then renamed all instances related to Boring to Market (I'm creating a Market Item). This includes CMFBoringPermissions.py to MarketItemPermissions.py. So far so good. I can restart zope, the Product appears healthy in the control panel, and I can click on portal_types and add it by 1. Clicking on the Content tab 2. From the drop down, select Factory-based content information 3. Type my name 'Market Item', and select the proper item (CMFInside: MarketItem in my case). I then register the skins with the skins tool. Now my 'Market Item' type shows up, and the security tab from the root indicates that members and managers can 'Add Market Item' (my security). However, when I log into the CMF, click My Stuff, then New, 'Market Item' does not show up. What else am I missing? Is there another file system based product tutorial for the CMF other than CMFBoringProduct? TIA - Scott From kent@goathill.org Thu Oct 4 00:15:36 2001 From: kent@goathill.org (Kent Polk) Date: 3 Oct 2001 23:15:36 GMT Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. In-Reply-To: <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> Message-ID: <1002150936.113088@fezzik.endicor.com> On 2 Oct 2001 14:25:00 -0500, Phillip J. Eby wrote: >> > > I don't know what you mean by "managed by an item". But to try and explain By Items, I mean CMF items, such as a CMF Document or Folder, etc.. Right now, workflows must belong to CMF Items and not tasks, as far as I can tell. Not to mean that this can't change. ... >>We have several feedback loops where data is determined to be of >>insufficient quality, etc. and it must be reexamined. Some of these >>should be arranged for by a workflow filter, but some will be done >>by humans. Will have to take a closer look at that. > > Perhaps what I was saying was unclear. I don't see how what you're saying > is relevant to the above. Feedback loops are part of a single workflow, > and I was speaking about the need to create a dependency between two > pre-existing tasks. For example, if two projects were waiting for the > analysis of a single DNA sample to be completed. While the first project > might create the "DNA analysis" task, the second would have to find it and > link to it, rather than creating a new task. Make sense? Ok. I was still stuck in a task workflow manipulating item workflows. >>This issue of group or team activities keeps coming up. I wish we >>could find a solution to it, and not one that requires that CMF >>items be structured in a storage heirarchy to accomplish it. > > It doesn't. The standard DCWorkflow "worklist" idiom works just fine for > this. To do security correctly without a group-structured hierarchy, > however, you might need to use local roles on the objects. Right now, these are still problems with the current packaged CMF. This is one of the issues I'd like to see a general solution for. From hoffman@as220.org Thu Oct 4 05:56:11 2001 From: hoffman@as220.org (Tom Hoffman) Date: Thu, 4 Oct 2001 00:56:11 -0400 Subject: [Zope-CMF] CMFWiki folders invisible Message-ID: <200110040455.AAA13465@ride.ri.net> OK, I know CMFWiki is not officially supported, but perhaps someone can clue me in. With 2.4.1 and CMF/CVS, I can make individual CMFWiki Pages perfectly well, and CMFWiki site folders work too, aside from the fact that the folder doesn't show up in the "My Stuff" directory view. It is visible in the ZMI and is accessible. Anyone else notice this? --Tom From d.turpie@open.ac.uk Thu Oct 4 09:59:32 2001 From: d.turpie@open.ac.uk (d.turpie@open.ac.uk) Date: Thu, 04 Oct 2001 08:59:32 -0000 Subject: [Zope-CMF] CMF and user roles/permissions Message-ID: <9ph8dk+blk5@eGroups.com> I am building an Intranet using the CMF and require to setup various roles giving users specific rights to access and modify the Intranet. I have content authors who can create and submit portal content. I have content managers who can create, publish, reject, delete portal content. I want the content managers to also be able to edit and amend portal content but am having trouble understanding what all the roles do within the security tab. At the moment the content manager role cannot edit portal content/documents and I can't seem to work out what permission(s) I need them to have so they can do this. Anyone got experience of using the CMF security tab, setting up roles, know what the different permissions mean/allow. Thanks in advance for your help. David Turpie. From rmendes@bmc.pt Thu Oct 4 12:44:03 2001 From: rmendes@bmc.pt (Ricardo Mendes) Date: Thu, 04 Oct 2001 12:44:03 +0100 Subject: [Zope-CMF] 'Factory-based Type information' object Message-ID: <5.0.0.25.2.20011004124142.02b46668@mail.bmc.pt> I had CMFAudio Installed, When i remove this product, that problem was automatically solved . Thanks for your help !! Ricardo Mendes From seb@jamkit.com Thu Oct 4 13:55:56 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 4 Oct 2001 13:55:56 +0100 Subject: [Zope-CMF] registering python products In-Reply-To: ; from scott.meilicke@intp.com on Wed, Oct 03, 2001 at 03:34:10PM -0700 References: Message-ID: <20011004135556.B8287@lenin> In the types tool, did you make sure the Product and Factory method properties were changed? The list of available content types is security checked by attempting to call the factory method, and if it fails, it assumes you don't have permission. seb * Meilicke, Scott [011003 23:39]: > Hello, > > My python products are not showing up when users click 'New'. Here's what I > have done: > > Installed CMFBoringProduct - this works fine after installing the product > and following the tutorial. > > I made a copy of the CMFBoringProduct directory and contents, then renamed > all instances related to Boring to Market (I'm creating a Market Item). > This includes CMFBoringPermissions.py to MarketItemPermissions.py. > > So far so good. I can restart zope, the Product appears healthy in the > control panel, and I can click on portal_types and add it by > > 1. Clicking on the Content tab > 2. From the drop down, select Factory-based content information > 3. Type my name 'Market Item', and select the proper item (CMFInside: > MarketItem in my case). > > I then register the skins with the skins tool. > > Now my 'Market Item' type shows up, and the security tab from the root > indicates that members and managers can 'Add Market Item' (my security). > > However, when I log into the CMF, click My Stuff, then New, 'Market Item' > does not show up. > > What else am I missing? Is there another file system based product tutorial > for the CMF other than CMFBoringProduct? From seb@jamkit.com Thu Oct 4 14:28:55 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 4 Oct 2001 14:28:55 +0100 Subject: [Zope-CMF] Q. about isConstructionAllowed In-Reply-To: <20011004135556.B8287@lenin>; from seb@jamkit.com on Thu, Oct 04, 2001 at 01:55:56PM +0100 References: <20011004135556.B8287@lenin> Message-ID: <20011004142855.C8287@lenin> In the light of the kind of problems which occur when creating new content types (see below), I was wondering why exceptions get trapped by default in TypesTool._getFactoryMethod? This mostly servers to obscure bugs, which is Bad. seb * seb bacon [011004 13:16]: > In the types tool, did you make sure the Product and Factory method > properties were changed? The list of available content types is > security checked by attempting to call the factory method, and if it > fails, it assumes you don't have permission. > > seb > > * Meilicke, Scott [011003 23:39]: > > Hello, > > > > My python products are not showing up when users click 'New'. Here's what I > > have done: > > > > Installed CMFBoringProduct - this works fine after installing the product > > and following the tutorial. > > > > I made a copy of the CMFBoringProduct directory and contents, then renamed > > all instances related to Boring to Market (I'm creating a Market Item). > > This includes CMFBoringPermissions.py to MarketItemPermissions.py. > > > > So far so good. I can restart zope, the Product appears healthy in the > > control panel, and I can click on portal_types and add it by > > > > 1. Clicking on the Content tab > > 2. From the drop down, select Factory-based content information > > 3. Type my name 'Market Item', and select the proper item (CMFInside: > > MarketItem in my case). > > > > I then register the skins with the skins tool. > > > > Now my 'Market Item' type shows up, and the security tab from the root > > indicates that members and managers can 'Add Market Item' (my security). > > > > However, when I log into the CMF, click My Stuff, then New, 'Market Item' > > does not show up. > > > > What else am I missing? Is there another file system based product tutorial > > for the CMF other than CMFBoringProduct? From seb@jamkit.com Thu Oct 4 14:35:30 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 4 Oct 2001 14:35:30 +0100 Subject: [Zope-CMF] Q. about isConstructionAllowed In-Reply-To: <20011004142855.C8287@lenin>; from seb@jamkit.com on Thu, Oct 04, 2001 at 02:28:55PM +0100 References: <20011004135556.B8287@lenin> <20011004142855.C8287@lenin> Message-ID: <20011004143530.D8287@lenin> * seb bacon [011004 13:48]: > In the light of the kind of problems which occur when creating new > content types (see below), I was wondering why exceptions get trapped > by default in TypesTool._getFactoryMethod? This mostly servers to > obscure bugs, which is Bad. OK, further investigation shows that ZopeSecurityPolicy sometimes raises Unauthorized exceptions, so I'll rephrase my question: is there any reason why _getFactoryMethod shouldn't read except Unauthorized: rather than except: ? From fg@nuxeo.com Thu Oct 4 14:06:18 2001 From: fg@nuxeo.com (Florent Guillaume) Date: 4 Oct 2001 13:06:18 GMT Subject: [Zope-CMF] CMF and user roles/permissions References: <9ph8dk+blk5@eGroups.com> Message-ID: <9phmsa$d7j$1@dev.in.nuxeo.com> Your content manager role should have a "Modify portal content" and "View" permission. To be sure, check what permissions "Owner" has in the Security tab of any already created object. Also of interest in CMF is the "Add portal content" permission, which deals with the creation of CMF objects, "Add portal folders", which is obvious (only for CMF folders), "Delete objects", obvious too, and "Manage properties" (which is only used for management of folder properties, i.e., title and description (and syndication)). Florent Guillaume Nuxeo wrote: > I am building an Intranet using the CMF and require to setup various > roles giving users specific rights to access and modify the Intranet. > > I have content authors who can create and submit portal content. > I have content managers who can create, publish, reject, delete > portal content. > > I want the content managers to also be able to edit and amend portal > content but am having trouble understanding what all the roles do > within the security tab. At the moment the content manager role > cannot edit portal content/documents and I can't seem to work out > what permission(s) I need them to have so they can do this. > > Anyone got experience of using the CMF security tab, setting up > roles, know what the different permissions mean/allow. > > Thanks in advance for your help. > > David Turpie. -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From kbolton@sputnik7.com Thu Oct 4 16:20:51 2001 From: kbolton@sputnik7.com (Kenneth Bolton) Date: Thu, 4 Oct 2001 11:20:51 -0400 Subject: [Zope-CMF] JamkitTypes Message-ID: <65876E5B-B8DB-11D5-9A0D-0030657DF494@sputnik7.com> I installed the Zope 2.4.1 upgrade and JamkitTypes comes up under FTI. ken From fg@nuxeo.com Thu Oct 4 17:02:01 2001 From: fg@nuxeo.com (Florent Guillaume) Date: 4 Oct 2001 16:02:01 GMT Subject: [Zope-CMF] CMF and user roles/permissions References: <9ph8dk+blk5@eGroups.com> <9phmsa$d7j$1@dev.in.nuxeo.com> <9pi0b4+hu08@eGroups.com> Message-ID: <9pi15p$e7c$1@dev.in.nuxeo.com> Ah yes, of course. The workflow removes acquisition of permissions, so this prevents the document from seeing them. If you want to change this, you must use a configurable workflow like DCWorkflow (which can have the same behavior as the default workflow), and in the Permission tab of each state of the workflow, check that "Acquire permission settings" is set, for the states which are supposed to acquire permissions from higher in the tree. I hope I'm clear enough :) Florent d.turpie@open.ac.uk wrote: > Thanks Florent > > I have already given the content manager the permissions you > mentioned and wghile they are able to edit folder properties thay are > not able to edit actual document, files etc. > > I can as an administartor but then I have full permission which isn't > quite what I want to give to the content manager role > > David. > > --- Florent Guillaume wrote: > >>Your content manager role should have a "Modify portal content" and >>"View" permission. To be sure, check what permissions "Owner" has >>in the Security tab of any already created object. >> >>Also of interest in CMF is the "Add portal content" permission, which >>deals with the creation of CMF objects, "Add portal folders", which is >>obvious (only for CMF folders), "Delete objects", obvious too, and >>"Manage properties" (which is only used for management of folder >>properties, i.e., title and description (and syndication)). -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From cccomputer@c4.com Thu Oct 4 10:17:06 2001 From: cccomputer@c4.com (CC Computer Consulting Co.) Date: Thu, 4 Oct 2001 09:17:06 Subject: [Zope-CMF] THE MAIL KING - ah13 Message-ID: IF YOU USE DIRECT MAIL IN YOUR BUSINESS -- THEN READ ON. OTHERWISE, JUST DELETE THIS MESSAGE. Make Every Letter Count - Get Every Letter Opened! Did you know?? According to experts, today's deluged direct mail recipient throws away 26% to 88% of all their "junk mail" UNOPENED! Would you like to increase your responses by an average of 3 to 6 times?? If you would (and who wouldn't) just REPLY to this message and we will e-mail you more details. CC Computer Consulting Co. PS: If you prefer a response by "snail mail", include your name and mailing address in your reply. **************************************** This email is sent in compliance with our strict anti-abuse regulations. This is not SPAM. This message was sent to you because you, or someone using your email address, requested information, sent or posted to our system, Opt-in, FFA site, Classifieds, web site or email box If you would like to be removed from this list, e-mail to or click on: Remove@cccomputer.zzn.com *************************************** ah13 From brians@meetingbywire.com Thu Oct 4 18:46:12 2001 From: brians@meetingbywire.com (Brian Sullivan) Date: Thu, 4 Oct 2001 13:46:12 -0400 Subject: [Zope-CMF] Basic CMF information Message-ID: <003301c14cfc$75784390$c700a8c0@dell667> I am examining CMF -- trying to evaluate the issues in modifying it to my needs. I am having trouble finding basic information about things like: 1) creating skins/different looks 2) modifying the content/ look/ format of different pages (specifically the home page) 3) modifying membership information ( I would like to have members information include much more than the basic information) 4) using discussion/news features 5) adding other features/products Is there any good starting information ( I am not a python programmer but do have a technical background) about doing things like this -- the documentation I can find seems not to be complete or is out of date -- or starts with an assumption of knowledge that I don't have. From scott.meilicke@intp.com Thu Oct 4 19:00:50 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Thu, 4 Oct 2001 11:00:50 -0700 Subject: [Zope-CMF] registering python products Message-ID: Yes, the product and factory method properties were changed (I think - still new to the CMF). I started over by copying NewsItem.py into another ./Products/MyProduct directory, modified __init__.py, changed a few import statements to reflect the path differences, and within NewsItem.py, changed Id and Meta Type from 'News Item' to 'Market Item'. I could then add my product via the types tool, and it would show up in the list of products to add after clicking 'New' within the portal. Feeling brave, I then changed all references from 'News' to 'Market', renamed NewsItem.py to MarketItem.py, and modified __init__.py accordingly. >From the types tool, I deleted the item I added, then recreated it, but it does not show up in the list of 'New' items. Is this a CMFCorePermissions issue? I'm stuck. Thanks - Scott -----Original Message----- From: seb bacon [mailto:seb@jamkit.com] Sent: Thursday, October 04, 2001 5:56 AM To: Meilicke, Scott Cc: 'zope-cmf@zope.org' Subject: Re: [Zope-CMF] registering python products In the types tool, did you make sure the Product and Factory method properties were changed? The list of available content types is security checked by attempting to call the factory method, and if it fails, it assumes you don't have permission. seb * Meilicke, Scott [011003 23:39]: > Hello, > > My python products are not showing up when users click 'New'. Here's what I > have done: > > Installed CMFBoringProduct - this works fine after installing the product > and following the tutorial. > > I made a copy of the CMFBoringProduct directory and contents, then renamed > all instances related to Boring to Market (I'm creating a Market Item). > This includes CMFBoringPermissions.py to MarketItemPermissions.py. > > So far so good. I can restart zope, the Product appears healthy in the > control panel, and I can click on portal_types and add it by > > 1. Clicking on the Content tab > 2. From the drop down, select Factory-based content information > 3. Type my name 'Market Item', and select the proper item (CMFInside: > MarketItem in my case). > > I then register the skins with the skins tool. > > Now my 'Market Item' type shows up, and the security tab from the root > indicates that members and managers can 'Add Market Item' (my security). > > However, when I log into the CMF, click My Stuff, then New, 'Market Item' > does not show up. > > What else am I missing? Is there another file system based product tutorial > for the CMF other than CMFBoringProduct? From lstafford@morphics.com Thu Oct 4 19:09:02 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 4 Oct 2001 11:09:02 -0700 Subject: [Zope-CMF] List of null strings in Subject Message-ID: I just changed the CMF Metadata Subject configuration to show both a suggested vocabulary and allow subjects not in the suggested vocabulary. This results in the display of a textarea of type Lines. After updating Metadata where no items are entered into the textarea (because the subject is selected from the suggested vocabulary), the resource receives as one of its Subjects a value of [''], which shows up in the textarea thus:
Update Meadata one more time and you get:
This is a familiar problem to anyone who has worked with Lines textareas in Zope, and most of us have developed workarounds. I think CMF needs to include a workaround too. Should I submit this as a bug report? -- Loren From seb@jamkit.com Thu Oct 4 20:01:16 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 4 Oct 2001 20:01:16 +0100 Subject: [Zope-CMF] Basic CMF information In-Reply-To: <003301c14cfc$75784390$c700a8c0@dell667>; from brians@meetingbywire.com on Thu, Oct 04, 2001 at 01:46:12PM -0400 References: <003301c14cfc$75784390$c700a8c0@dell667> Message-ID: <20011004200115.H8287@lenin> There isn't much of a body of documentation, and the mailing list archives are probably the best place to look. There's a FAQ with links to quite a few relevant threads at: http://cmf.zope.org/doc/FAQ/ seb * Brian Sullivan [011004 18:51]: > 1) creating skins/different looks > 2) modifying the content/ look/ format of different pages (specifically > the home page) > 3) modifying membership information ( I would like to have members > information include much more than the basic information) > 4) using discussion/news features > 5) adding other features/products > > Is there any good starting information ( I am not a python programmer > but do have a technical background) about doing things like this -- the > documentation I can find seems not to be complete or is out of date -- From flynt@gmx.ch Thu Oct 4 19:21:38 2001 From: flynt@gmx.ch (flynt) Date: Thu, 04 Oct 2001 20:21:38 +0200 Subject: [Zope-CMF] Basic CMF information References: <003301c14cfc$75784390$c700a8c0@dell667> Message-ID: <3BBCA8B2.89BA1E6@gmx.ch> Brian Sullivan wrote: > > I am examining CMF -- trying to evaluate the issues in modifying it to > my needs. > > I am having trouble finding basic information about things like: > > 1) creating skins/different looks > 2) modifying the content/ look/ format of different pages (specifically > the home page) > 3) modifying membership information ( I would like to have members > information include much more than the basic information) > 4) using discussion/news features > 5) adding other features/products > > Is there any good starting information ( I am not a python programmer > but do have a technical background) about doing things like this -- the > documentation I can find seems not to be complete or is out of date -- > or starts with an assumption of knowledge that I don't have. > Hi Brian, did you see this ressource ? http://cmf.zope.org/Members/beehive/ZWACKChap5.html HTH Flynt From seb@jamkit.com Thu Oct 4 20:32:02 2001 From: seb@jamkit.com ('seb bacon') Date: Thu, 4 Oct 2001 20:32:02 +0100 Subject: [Zope-CMF] registering python products In-Reply-To: ; from scott.meilicke@intp.com on Thu, Oct 04, 2001 at 11:00:50AM -0700 References: Message-ID: <20011004203201.I8287@lenin> * Meilicke, Scott [011004 19:03]: > Yes, the product and factory method properties were changed (I think - still > new to the CMF). I mean 'changed in the types tool'. The Type Information for your new Content Type needs to be pointing to the correct constructor, i.e. addMarketItem, or something like that. You can either do this TTW, or in the factory_type_information. Or did you do this already? seb > > I started over by copying NewsItem.py into another ./Products/MyProduct > directory, modified __init__.py, changed a few import statements to reflect > the path differences, and within NewsItem.py, changed Id and Meta Type from > 'News Item' to 'Market Item'. I could then add my product via the types > tool, and it would show up in the list of products to add after clicking > 'New' within the portal. > > Feeling brave, I then changed all references from 'News' to 'Market', > renamed NewsItem.py to MarketItem.py, and modified __init__.py accordingly. > > > >From the types tool, I deleted the item I added, then recreated it, but it > does not show up in the list of 'New' items. > > Is this a CMFCorePermissions issue? I'm stuck. > > Thanks - Scott From lstafford@morphics.com Thu Oct 4 19:44:02 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 4 Oct 2001 11:44:02 -0700 Subject: [Zope-CMF] Basic CMF information In-Reply-To: <003301c14cfc$75784390$c700a8c0@dell667> Message-ID: In addition to the resources others have suggested, there is nothing quite like installing the CMF and playing with it. That makes the generalities in the documents come to life and gives you more specific criteria to use in searching for more info on http://cmf.zope.org/ and zope-cmf@zope.org. -- Loren > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Brian Sullivan > Sent: Thursday, October 04, 2001 10:46 > To: zope-cmf@zope.org > Subject: [Zope-CMF] Basic CMF information > > > I am examining CMF -- trying to evaluate the issues in modifying it to > my needs. > > I am having trouble finding basic information about things like: > > 1) creating skins/different looks > 2) modifying the content/ look/ format of different pages (specifically > the home page) > 3) modifying membership information ( I would like to have members > information include much more than the basic information) > 4) using discussion/news features > 5) adding other features/products > > Is there any good starting information ( I am not a python programmer > but do have a technical background) about doing things like this -- the > documentation I can find seems not to be complete or is out of date -- > or starts with an assumption of knowledge that I don't have. > > > _______________________________________________ > 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 scott.meilicke@intp.com Thu Oct 4 20:38:32 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Thu, 4 Oct 2001 12:38:32 -0700 Subject: [Zope-CMF] registering python products Message-ID: Yes, that has been changed. I have posted the files I'm using if that helps: http://www.kmclan.net/Members/smeilicke/init.py - that's really __init__.py http://www.kmclan.net/Members/smeilicke/MarketItem.py http://www.kmclan.net/Members/smeilicke/MarketItemPermissions.py Thanks Seb. - Scott -----Original Message----- From: 'seb bacon' [mailto:seb@jamkit.com] Sent: Thursday, October 04, 2001 12:32 PM To: Meilicke, Scott Cc: 'zope-cmf@zope.org' Subject: Re: [Zope-CMF] registering python products * Meilicke, Scott [011004 19:03]: > Yes, the product and factory method properties were changed (I think - still > new to the CMF). I mean 'changed in the types tool'. The Type Information for your new Content Type needs to be pointing to the correct constructor, i.e. addMarketItem, or something like that. You can either do this TTW, or in the factory_type_information. Or did you do this already? seb > > I started over by copying NewsItem.py into another ./Products/MyProduct > directory, modified __init__.py, changed a few import statements to reflect > the path differences, and within NewsItem.py, changed Id and Meta Type from > 'News Item' to 'Market Item'. I could then add my product via the types > tool, and it would show up in the list of products to add after clicking > 'New' within the portal. > > Feeling brave, I then changed all references from 'News' to 'Market', > renamed NewsItem.py to MarketItem.py, and modified __init__.py accordingly. > > > >From the types tool, I deleted the item I added, then recreated it, but it > does not show up in the list of 'New' items. > > Is this a CMFCorePermissions issue? I'm stuck. > > Thanks - Scott From scott.meilicke@intp.com Fri Oct 5 00:10:00 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Thu, 4 Oct 2001 16:10:00 -0700 Subject: [Zope-CMF] jcNTUserFolder and CMF Message-ID: Hi - Has anyone gotten jcNtUserFolder (1.3) to operate with CMF 1.1 (zope 2.4.1) as seamlessly as the default user folder? Here's what I'm doing: 1. Install a CMF Site - no user folder 2. Add a jcNtUserFolder 3. Add a member to the userfolder for my domain (not the local domain) via the ZMI When I try to join, I get user already exists When I try to log in, I don't have a logon_time or email address property, so errors are thrown. If I don't add a user to the userfolder, I can create a zope, not NT, user by joining. However, I want to add an NT domain user, not a zope user. If I have the membership tool not create a userfolder, then I can login without joining first, but I don't have a Member folder. Thanks - Scott From lstafford@morphics.com Fri Oct 5 00:13:35 2001 From: lstafford@morphics.com (Loren Stafford) Date: Thu, 4 Oct 2001 16:13:35 -0700 Subject: [Zope-CMF] Where is metadata case insensitivity? Message-ID: I think I'll modify Topics to AND Subject search arguments. But before I do that I think it would be good to make Subject searches case insensitive (eliminating a major reason for ORing). But I don't see where case insensitivity is implemented in all the CMF Catalog, ZCatalog, or Catalog code, nor why Subject indexes should be case sensitive while others are not. Can someone illuminate and point me to the right part of the source? -- Thanks -- Loren From jmeile@hotmail.com Fri Oct 5 11:44:12 2001 From: jmeile@hotmail.com (Josef Albert Meile) Date: Fri, 05 Oct 2001 10:44:12 -0000 Subject: [Zope-CMF] Problem adding Portal Images programatically Message-ID: <9pk2ts+foa5@eGroups.com> Hello group, I saw Gr=E9goire Weber's HowTo about "adding objects at member creation" (http://www.zope.org/Members/gregweb/cmf_add_objects_at_member_creatio n), took some code from it, and addapted it to my necessities. I need to add an image (on this case a logo) before I create an instance of my product. I can add the image and I can see it from my product and from the manage interface, but I can't see it from the portal. Whenever I click on the link that appears on the folder_contents form, I get the following error: BEGIN ERROR MESSAGE ---> Error Type: Not Found Error Value: Cannot find default view for /NewPortal/Members/jmeile/GRYTXTR5.JPG" Troubleshooting Suggestions 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. Traceback (innermost last): File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: GRYTXTR5.JPG) File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: view) File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: view) File /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, line 247, in view (Object: GRYTXTR5.JPG) File /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, line 234, in __call__ (Object: GRYTXTR5.JPG) File /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, line 227, in _getDefaultView (Object: GRYTXTR5.JPG) Not Found: (see above) END ERROR MESSAGE ---> My editDone form looks like this: BEGIN EDITDONE ---> END EDITDONE ---> note1: The function getShortName returns only the filename without its path note2: attachedImage comes from this input: and my method createImage, which is external, looks like this: BEGIN CREATEIMAGE ---> from Products.CMFDefault import Image from string import rfind def createImage(location, fileName, fileContent): #gets only the file name without its path pos=3Drfind(fileName,'\\') shortName=3DfileName[pos+1:len(fileName)] #adds the image in the specified location Image.addImage (self=3Dlocation,id=3DshortName,file=3DfileContent,title=3DfileName,co ntent_type=3D'Image') END CREATEIMAGE ---> I guess the problem could be the part where Gregory say: if hasattr(ob, '_setPortalTypeName'): ob._setPortalTypeName('Image') I didn't put this line because then I get another error which says that names beginning with "_" are forbidden. What could be wrong? Thanks in advanced, Josef. From jens@zope.com Fri Oct 5 12:41:22 2001 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 5 Oct 2001 07:41:22 -0400 Subject: [Zope-CMF] Problem adding Portal Images programatically In-Reply-To: <9pk2ts+foa5@eGroups.com> Message-ID: if you use invokeFactory instead of addImage in your createImage method=20= then the portal type gets set correctly as well as cataloging and = workflow=20 stuff. check CMFCore/PortalFolder.py for details, it takes an argument = "type_name" ('Image' in this case) and an id. then you grab a reference to this = new=20 image and set the image contents (the "file" argument) by using the = image' s edit method (see CMFDefault/Image.py) jens On Friday, October 5, 2001, at 06:44 , Josef Albert Meile wrote: > Hello group, > > I saw Gr=E9goire Weber's HowTo about "adding objects at member > creation" > (http://www.zope.org/Members/gregweb/cmf_add_objects_at_member_creatio > n), took some code from it, and addapted it to my necessities. > > I need to add an image (on this case a logo) before I create an > instance of my product. I can add the image and I can see it from my > product and from the manage interface, but I can't see it from the > portal. Whenever I click on the link that appears on the > folder_contents form, I get the following error: > > BEGIN ERROR MESSAGE ---> > > Error Type: Not Found > Error Value: Cannot find default view for > /NewPortal/Members/jmeile/GRYTXTR5.JPG" > > Troubleshooting Suggestions > > 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. > > Traceback (innermost last): > File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line > 223, in publish_module > File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /usr/local/Zope-2.3.0/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook (Object: GRYTXTR5.JPG) > File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /usr/local/Zope-2.3.0/lib/python/ZPublisher/mapply.py, line > 160, in mapply (Object: view) > File /usr/local/Zope-2.3.0/lib/python/ZPublisher/Publish.py, line > 112, in call_object (Object: view) > File > /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, > line 247, in view (Object: GRYTXTR5.JPG) > File > /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, > line 234, in __call__ (Object: GRYTXTR5.JPG) > File > /usr/local/Zope-2.3.0/lib/python/Products/CMFCore/PortalContent.py, > line 227, in _getDefaultView (Object: GRYTXTR5.JPG) > Not Found: (see above) > > END ERROR MESSAGE ---> > > My editDone form looks like this: > > BEGIN EDITDONE ---> > > REQUEST.form['attachedImage'].read())"> > REQUEST.form['attachedImage'].filename)"> > > ()" folderLocation=3D"portal_membership.getHomeFolder(user).absolute_url= > ()"> > > fileName,fileContent)"> > folderLocation+'/'+objectName)"> > > "propertysheets.JobOfferPropertySheet.manage_changeProperties > (REQUEST)"> > > > > > END EDITDONE ---> > note1: The function getShortName returns only the filename without > its path > note2: attachedImage comes from this input: > > > and my method createImage, which is external, looks like this: > > BEGIN CREATEIMAGE ---> > > from Products.CMFDefault import Image > from string import rfind > > def createImage(location, fileName, fileContent): > #gets only the file name without its path > pos=3Drfind(fileName,'\\') > shortName=3DfileName[pos+1:len(fileName)] > > #adds the image in the specified location > > Image.addImage > (self=3Dlocation,id=3DshortName,file=3DfileContent,title=3DfileName,co > ntent_type=3D'Image') > > END CREATEIMAGE ---> > > I guess the problem could be the part where Gregory say: > if hasattr(ob, '_setPortalTypeName'): > ob._setPortalTypeName('Image') > I didn't put this line because then I get another error which says > that > names beginning with "_" are forbidden. > > What could be wrong? > > Thanks in advanced, > Josef. > > > _______________________________________________ > 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=20 > requests From fg@nuxeo.com Fri Oct 5 13:33:20 2001 From: fg@nuxeo.com (Florent Guillaume) Date: 5 Oct 2001 12:33:20 GMT Subject: [Zope-CMF] Problem adding Portal Images programatically References: <9pk2ts+foa5@eGroups.com> Message-ID: <9pk9ag$kia$1@dev.in.nuxeo.com> Speaking about invokeFactory, I wanted to mention a little bug: constructInstance builds the object by calling the factory method (or the script), then sets the portal_type using _setPortalTypeName. But it never reindexes the object, which means that this portal_type is not catalogged until the next object edition (usually). This is a problem for me because I have a site where I do a lot of searches on portal_type. Would a "ob.reindexObject()" at the end of constructContent be an acceptable patch ? Florent Jens Vagelpohl wrote: > if you use invokeFactory instead of addImage in your createImage method > then the portal type gets set correctly as well as cataloging and workflow > stuff. > > check CMFCore/PortalFolder.py for details, it takes an argument "type_name" > ('Image' in this case) and an id. then you grab a reference to this new > image and set the image contents (the "file" argument) by using the image' > s edit method (see CMFDefault/Image.py) > > jens -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From jens@zope.com Fri Oct 5 13:45:17 2001 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 5 Oct 2001 08:45:17 -0400 Subject: [Zope-CMF] Problem adding Portal Images programatically In-Reply-To: <9pk9ag$kia$1@dev.in.nuxeo.com> Message-ID: florent, CMFCore.PortalContent has a call to indexObject inside manage_afterAdd, this should get invoked unless you have special content that grabs a different manage_afterAdd because of its inheritance hierarchy (i've come up against that myself before). jens On Friday, October 5, 2001, at 12:33 , Florent Guillaume wrote: > Speaking about invokeFactory, I wanted to mention a little bug: > constructInstance builds the object by calling the factory method (or > the script), then sets the portal_type using _setPortalTypeName. But it > never reindexes the object, which means that this portal_type is not > catalogged until the next object edition (usually). This is a problem > for me because I have a site where I do a lot of searches on > portal_type. > > Would a "ob.reindexObject()" at the end of constructContent be an > acceptable patch ? > > > Florent > > > Jens Vagelpohl wrote: >> if you use invokeFactory instead of addImage in your createImage method >> then the portal type gets set correctly as well as cataloging and >> workflow >> stuff. >> >> check CMFCore/PortalFolder.py for details, it takes an argument >> "type_name" >> ('Image' in this case) and an id. then you grab a reference to this new >> image and set the image contents (the "file" argument) by using the >> image' >> s edit method (see CMFDefault/Image.py) >> >> jens > -- > Florent Guillaume, Nuxeo SARL (Paris, France) > +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.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 fg@nuxeo.com Fri Oct 5 14:00:12 2001 From: fg@nuxeo.com (Florent Guillaume) Date: Fri, 5 Oct 2001 15:00:12 +0200 Subject: [Zope-CMF] Problem adding Portal Images programatically In-Reply-To: References: <9pk9ag$kia$1@dev.in.nuxeo.com> Message-ID: <20011005150011.A5518@flo.in.nuxeo.com> Jens, Indeed, but manage_afterAdd is called at _setObject time, which happens in the factory method (or script). portal_type is initialized just after that. Florent In article you write: > florent, > > CMFCore.PortalContent has a call to indexObject inside manage_afterAdd, > this should get invoked unless you have special content that grabs a > different manage_afterAdd because of its inheritance hierarchy (i've come > up against that myself before). > > jens > > > > On Friday, October 5, 2001, at 12:33 , Florent Guillaume wrote: > > > Speaking about invokeFactory, I wanted to mention a little bug: > > constructInstance builds the object by calling the factory method (or > > the script), then sets the portal_type using _setPortalTypeName. But it > > never reindexes the object, which means that this portal_type is not > > catalogged until the next object edition (usually). This is a problem > > for me because I have a site where I do a lot of searches on > > portal_type. > > > > Would a "ob.reindexObject()" at the end of constructContent be an > > acceptable patch ? > > > > > > Florent > > > > > > Jens Vagelpohl wrote: > >> if you use invokeFactory instead of addImage in your createImage method > >> then the portal type gets set correctly as well as cataloging and > >> workflow > >> stuff. > >> > >> check CMFCore/PortalFolder.py for details, it takes an argument > >> "type_name" > >> ('Image' in this case) and an id. then you grab a reference to this new > >> image and set the image contents (the "file" argument) by using the > >> image' > >> s edit method (see CMFDefault/Image.py) > >> > >> jens -- Florent Guillaume, Nuxeo SARL (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From joao@fabricadeideias.com Fri Oct 5 14:01:49 2001 From: joao@fabricadeideias.com (=?iso-8859-1?Q?Jo=E3o?= Neves) Date: Fri, 05 Oct 2001 10:01:49 -0300 Subject: [Zope-CMF] Basic CMF information References: <003301c14cfc$75784390$c700a8c0@dell667> <20011004200115.H8287@lenin> Message-ID: <3BBDAF3D.C9464612@fabricadeideias.com> There's a searchable mailing list archive at: http://aspn.activestate.com/ASPN/Mail/Archives/Zope-CMF/ Joao seb bacon wrote: > There isn't much of a body of documentation, and the mailing list > archives are probably the best place to look. There's a FAQ with > links to quite a few relevant threads at: > > http://cmf.zope.org/doc/FAQ/ > > seb > > * Brian Sullivan [011004 18:51]: > > 1) creating skins/different looks > > 2) modifying the content/ look/ format of different pages (specifically > > the home page) > > 3) modifying membership information ( I would like to have members > > information include much more than the basic information) > > 4) using discussion/news features > > 5) adding other features/products > > > > Is there any good starting information ( I am not a python programmer > > but do have a technical background) about doing things like this -- the > > documentation I can find seems not to be complete or is out of date -- > > _______________________________________________ > 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 ------------------------------------------- João Neves joao@fabricadeideias.com Fabrica de Ideias SBS - Ed. Empire Center - bl. S - sala 508 cep 70070-904 - Brasilia - DF - Brazil tel: (61) 321 1357 fax: (61) 223 1712 ------------------------------------------- From Sebastien.Bigaret@inqual.com Fri Oct 5 14:12:55 2001 From: Sebastien.Bigaret@inqual.com (Big) Date: 05 Oct 2001 15:12:55 +0200 Subject: [Zope-CMF] [skins' Filesystem Directory View] Pb when migrating from Linux to Windows Message-ID: <87k7yaxmaw.fsf@bidibule.inqual.maisel.enst-bretagne.fr> Hi, I found out that there is a problem with skins' Filesystem Directory Views when copying a Zope install. from linux to windows or vice-versa. As stated in some previous messages I found out in the archives this is because the path separator should be '/' for linux and '\' for windows. There is a small patch you'll find at the end of this message trying to solve the issue. As far as I tested (linux vs. windows 2000) this works fine but maybe there are some particular side-effects I've missed. So if you have any comment on this, I'd like to hear them! (BTW this is the reason why I did not submit this in the Tracker since I'm not sure about possible side-effects and unfortunately not have much time to investigate any further). Oooh, last remark: using normcase() does *not* solve the problem ; I just don't know whether this is a specific windows 2000 problem (which /seems/ to be case-insensitive when it comes to path resolution) or... whatever it could be, including my own misunderstanding ;) [again, I do not have time to really search, and the windows machine I have at hand is real slow] Hope this might help, Kind regards, -- SB aka Big Index: DirectoryView.py =================================================================== RCS file: /cvs-repository/CMF/CMFCore/DirectoryView.py,v retrieving revision 1.11 diff -u -r1.11 DirectoryView.py --- DirectoryView.py 20 Sep 2001 18:07:40 -0000 1.11 +++ DirectoryView.py 5 Oct 2001 12:56:39 -0000 @@ -381,6 +381,8 @@ security = ClassSecurityInfo() def __init__(self, real, data, objects): + if real._dirpath!=path.normpath(real._dirpath): + real._dirpath=path.normpath(real._dirpath) d = self.__dict__ d.update(data) d.update(real.__dict__) From simon@nipltd.com Fri Oct 5 14:26:18 2001 From: simon@nipltd.com (Simon Coles) Date: Fri, 05 Oct 2001 14:26:18 +0100 Subject: [Zope-CMF] Making read-only content Message-ID: <1151151.1002291978@[10.10.2.10]> Hi, We have a CMF-based product (OS-ELN, http://www.opensourceeln.org). The user can create content ("Experiments") the normal way through the web and edit existing experiments etc. just fine. They can also create experiments by importing an XML file. In this case, we would like those experiments and their component files to be read only so no one (including the owner) can modify them. Is there a clean way of doing this in the CMF? Thanks, Simon --------- My opinions are my own, NIP's opinions are theirs ---------- Simon J. Coles Email: simon@nipltd.com New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 =============== Life is too precious to take seriously =============== From tseaver@palladion.com Fri Oct 5 02:42:07 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 4 Oct 2001 21:42:07 -0400 (EDT) Subject: [Zope-CMF] Q. about isConstructionAllowed In-Reply-To: <20011004143530.D8287@lenin> Message-ID: On Thu, 4 Oct 2001, seb bacon wrote: > * seb bacon [011004 13:48]: > > In the light of the kind of problems which occur when creating new > > content types (see below), I was wondering why exceptions get trapped > > by default in TypesTool._getFactoryMethod? This mostly servers to > > obscure bugs, which is Bad. > > OK, further investigation shows that ZopeSecurityPolicy sometimes > raises Unauthorized exceptions, so I'll rephrase my question: is there > any reason why _getFactoryMethod shouldn't read > > except Unauthorized: > > rather than > > except: Right now, the Types Tool assumes that *any* error in finding or validating the factory method should make the FTI "non-addable". If we can decide what behavior the normal CMF user should see for a FTI which has a malformed factory or product name, and then implementing it should be easy. If you don't swallow unexpected exceptions here, then your users will be unable to add *any* content if a single FTI is "broken". Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Fri Oct 5 02:53:36 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 4 Oct 2001 21:53:36 -0400 (EDT) Subject: [Zope-CMF] Problem adding Portal Images programatically In-Reply-To: <9pk9ag$kia$1@dev.in.nuxeo.com> Message-ID: On 5 Oct 2001, Florent Guillaume wrote: > Speaking about invokeFactory, I wanted to mention a little bug: > constructInstance builds the object by calling the factory method (or > the script), then sets the portal_type using _setPortalTypeName. But it > never reindexes the object, which means that this portal_type is not > catalogged until the next object edition (usually). This is a problem > for me because I have a site where I do a lot of searches on > portal_type. > > Would a "ob.reindexObject()" at the end of constructContent be an > acceptable patch ? Yep, I just checked this in: --- TypesTool.py 13 Aug 2001 21:44:18 -0000 1.19 +++ TypesTool.py 5 Oct 2001 13:47:38 -0000 @@ -755,6 +755,8 @@ ob = apply(info.constructInstance, (container, id) + args, kw) + ob.reindexObject() + if RESPONSE is not None: immediate_url = '%s/%s' % ( ob.absolute_url() , info.immediate_view ) Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@palladion.com Fri Oct 5 03:00:10 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 4 Oct 2001 22:00:10 -0400 (EDT) Subject: [Zope-CMF] Making read-only content In-Reply-To: <1151151.1002291978@[10.10.2.10]> Message-ID: On Fri, 5 Oct 2001, Simon Coles wrote: > Hi, > > We have a CMF-based product (OS-ELN, http://www.opensourceeln.org). > > The user can create content ("Experiments") the normal way through the web > and edit existing experiments etc. just fine. > > They can also create experiments by importing an XML file. In this case, we > would like those experiments and their component files to be read only so > no one (including the owner) can modify them. > > Is there a clean way of doing this in the CMF? Yes. Define a custom workflow for your "Experiment" type (e.g., start from the "classic" DCWorkflow sample). Add a state, "Locked", and a transition, "lock", to your workflow, and have your XML parsing routine invoke that transition. Set the permissions on the "Locked" state such that nobody (or just Manager?) has "Modify portal content", and make sure that there are no transitions out of that state. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From usaflagtshirt@usa.com Sun Oct 7 16:51:23 2001 From: usaflagtshirt@usa.com (usaflagtshirt@usa.com) Date: Sun, 7 Oct 2001 21:21:23 +0530 Subject: [Zope-CMF] Wear T-Shirt with USA Flag. Message-ID:

 

Visit

Click here to order the T-Shirt

A portion of the proceeds to be contributed to the American Red Cross Disaster Relief fund. Flag also available on mugs, mousepads, etc.

To remove yourself from this mailing list, please click here


From jmeile@hotmail.com Sun Oct 7 19:28:51 2001 From: jmeile@hotmail.com (Josef Albert Meile) Date: Sun, 07 Oct 2001 18:28:51 -0000 Subject: [Zope-CMF] Problem adding Portal Images programatically Message-ID: <9pq6t3+mh09@eGroups.com> For the people interested, I solved the problem without using the invokeFactory method. I had just forgot some steps. This is the code: from Products.CMFDefault import Image from string import rfind,lower def createImage(location,fileName,fileContent): #gets the fileName without its path pos=rfind(fileName,'\\') shortName=fileName[pos+1:len(fileName)] #gets its extension and determines its kind of file #I'm not sure if this is necessary, but it works pos=rfind(fileName,'.') extension=lower(fileName[pos+1:len(fileName)]) if extension=='gif' or extension=='jpg' or extension=='jpeg' or extension=='bmp': fileFormat='image/' if extension=='jpg': fileFormat=fileFormat+'jpeg' else: fileFormat=fileFormat+extension else: fileFormat='text/html' #calls the method addImage from the class CMFDefault.Image Image.addImage(self=location,id=shortName,file=fileContent, title=fileName,content_type='Image',format=fileFormat) #This is the part I had forgot #gets the created object and changes its PortalTypeName attribute #This ensures that you will be able to see it through the portal ob=location._getOb(shortName) if hasattr(ob, '_setPortalTypeName'): ob._setPortalTypeName('Image') #You have to do this if you want that this image appears on the #catalog ob.reindexObject() Notes: - On my personal opinion the last step is useless because I think most people looks for information rather than images, and, if I am not wrong, as many objects as you have on your catalog, the search will be slower. - location is a folder object, which on my case is the folder user. I got it by calling the following lines: - fileName and fileContent were acquired from the following input on my editForm: I put the following on my editDone form: I hope that you find this useful. Once more, thank you to Gregoire Weber for its valuable howTo, from which I took most of the code. From Sebastien.Bigaret@inqual.com Mon Oct 8 12:10:31 2001 From: Sebastien.Bigaret@inqual.com (Sebastien Bigaret) Date: 08 Oct 2001 13:10:31 +0200 Subject: [Zope-CMF] DCWorkflow - Setting more than one role on q worklist In-Reply-To: Gitte Wange's message of "01 Oct 2001 16:45:59 +0200" References: <1001947565.32649.27.camel@squidbitch.mmmanager.org> Message-ID: <87wv26tmjc.fsf@bidibule.inqual.maisel.enst-bretagne.fr> Hi, Your message is a bit old and my reading a bit slow... but this might still be of some interest for you (didnt see any answer for it): > I want to create a worklist from all the objects in a specific state. > The worklist should appear whenever a member with one of these roles are > logged in: Jounalist, Producer, Videoreporter The correct syntax is: Journalist; Producer; Videoreporter (semi-colons are separators) HTH. -- SB aka Big. From srath@zeomega.com Mon Oct 8 14:22:02 2001 From: srath@zeomega.com (sushant) Date: Mon, 08 Oct 2001 18:52:02 +0530 Subject: [Zope-CMF] pls help me Message-ID: <3BC1A87A.FF0C4F7E@zeomega.com> hi, i want the documentation for CMF. can you please help in getting it. bye waiting for you mail sushant From scott.meilicke@intp.com Mon Oct 8 15:43:38 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Mon, 8 Oct 2001 07:43:38 -0700 Subject: [Zope-CMF] pls help me Message-ID: The cmf site has a documentation section: http://cmf.zope.org/doc An the mailing list archives (one of several): http://zope.nipltd.com/public/lists/ptk-archive.nsf/ There is a link on the archive page to search through the archives or browse them directly. Good luck! Scott -----Original Message----- From: sushant [mailto:srath@zeomega.com] Sent: Monday, October 08, 2001 6:22 AM To: zope-ptk@zope.org Subject: [Zope-CMF] pls help me hi, i want the documentation for CMF. can you please help in getting it. bye waiting for you mail sushant _______________________________________________ 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 public@tjora.no Mon Oct 8 16:22:54 2001 From: public@tjora.no (Sigve Tjora) Date: Mon, 8 Oct 2001 17:22:54 +0200 (CEST) Subject: [Zope-CMF] review_state lost when moving or renaming cmf-objects Message-ID: When I rename or move a folder, an object or the whole cmf-site-object, all information in review_state (e.g. workflow-state) is lost. How can I rename a cmf-site without this side effect? Thanks for all replys. Sigve From iford@US.NET Mon Oct 8 23:29:24 2001 From: iford@US.NET (Ian Ford) Date: Mon, 8 Oct 2001 15:29:24 -0700 Subject: [Zope-CMF] Question.... or records attribute. Message-ID: <46A6138985C6DE478D28257DC769230F2118CE@usnet-ex01.USNET.CORP> I have a form that send a form field call amount to a python script to create the catalog entry, the form field is being created dynamiclly so a user could enter more then one amount. (i.e. if a user selects to have two products that they need to order then the amount field will display twice.) I am trying to use the records attribute but it seems to be choking the python script. the format that I am send to the python script is=20 name=3D'items.amount:records' value=3D'value typed' On the python script the parameter I am looking for is items. Then the context is as follows context.edit(amount=3Ditems.amount) But again it does not seem to work. Please help. Thank you, Ian Ford From jeffrey@cuemedia.com Mon Oct 8 23:35:48 2001 From: jeffrey@cuemedia.com (Jeffrey P Shell) Date: Mon, 8 Oct 2001 16:35:48 -0600 Subject: [Zope-CMF] Question.... or records attribute. In-Reply-To: <46A6138985C6DE478D28257DC769230F2118CE@usnet-ex01.USNET.CORP> Message-ID: On Monday, October 8, 2001, at 04:29 PM, Ian Ford wrote: > I have a form that send a form field call amount to a python script to > create the catalog entry, > the form field is being created dynamiclly so a user could enter more > then one amount. > (i.e. if a user selects to have two products that they need to order > then the amount field will display twice.) > > I am trying to use the records attribute but it seems to be choking the > python script. > the format that I am send to the python script is > name='items.amount:records' value='value typed' > > On the python script the parameter I am looking for is items. > Then the context is as follows > > context.edit(amount=items.amount) > There is an important distinguishing characteristic between the type 'records' and 'record'. 'records' makes a list of record objects, 'record' makes a single one. Change your python script to do: for item in items: context.edit(amount=item.amount) or change the HTML form to have: name='item.amount:record' value='value typed' If your form only has one 'item', you can just use the singular version. If your form has multiple ones, use the plural, and then use the 'for...' loop in your python script. Note that even if you only have one record when using the 'records' type, it still gets turned into a sequence. -- jeffrey@cuemedia.com From iford@US.NET Mon Oct 8 23:46:34 2001 From: iford@US.NET (Ian Ford) Date: Mon, 8 Oct 2001 15:46:34 -0700 Subject: [Zope-CMF] Question.... or records attribute. Message-ID: <46A6138985C6DE478D28257DC769230F2118CF@usnet-ex01.USNET.CORP> Now if I do modify the script to run a for loop what will happen to the other vars that are not in the list. (i.e. total, request_type) I tried to create the for loop like you stated but I get a syntax error. Python Code below: for item in items: context.edit(amount=3Ditem.amount) context.edit(total=3Dtotal ,request_type=3Drequest_type ) RESPONCE.redirect('%s/view' % context.abslute_url()) -----Original Message----- From: Jeffrey P Shell [mailto:jeffrey@cuemedia.com] Sent: Monday, October 08, 2001 3:36 PM To: Ian Ford Cc: zope-cmf@zope.org Subject: Re: [Zope-CMF] Question.... or records attribute. On Monday, October 8, 2001, at 04:29 PM, Ian Ford wrote: > I have a form that send a form field call amount to a python script to > create the catalog entry, > the form field is being created dynamiclly so a user could enter more > then one amount. > (i.e. if a user selects to have two products that they need to order > then the amount field will display twice.) > > I am trying to use the records attribute but it seems to be choking the > python script. > the format that I am send to the python script is > name=3D'items.amount:records' value=3D'value typed' > > On the python script the parameter I am looking for is items. > Then the context is as follows > > context.edit(amount=3Ditems.amount) > There is an important distinguishing characteristic between the=20 type 'records' and 'record'. 'records' makes a list of record=20 objects, 'record' makes a single one. Change your python script to do: for item in items: context.edit(amount=3Ditem.amount) or change the HTML form to have: name=3D'item.amount:record' value=3D'value typed' If your form only has one 'item', you can just use the singular=20 version. If your form has multiple ones, use the plural, and then=20 use the 'for...' loop in your python script. Note that even if you only have one record when using the 'records'=20 type, it still gets turned into a sequence. -- jeffrey@cuemedia.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 lstafford@morphics.com Tue Oct 9 00:27:24 2001 From: lstafford@morphics.com (Loren Stafford) Date: Mon, 8 Oct 2001 16:27:24 -0700 Subject: [Zope-CMF] Topic ANDing In-Reply-To: Message-ID: I tried to do this on my Zope 2.3.2 installaion, but things still got ORed. I see support for texindex_operator, but not for a field index operator. Does that mean there is no way to AND Subject criteria on Zope 2.3.x? -- Loren > > What you require is not a "drop-in index"; standard keyword indexes > (of which the Subject index is one) have this feature, but the > CMFTopic.ListCriterion does not expose it. We would need to add > a property to ListCriterion to track the "operator" desired, and > then modify its 'getCriteriaItems' method to add that value, using > field + "_operator" as its key. > > 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 marcbpc@gmx.de Tue Oct 9 11:34:47 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Tue, 9 Oct 2001 12:34:47 +0200 (MEST) Subject: [Zope-CMF] Moving CMF Site from Linux to Windows References: <46A6138985C6DE478D28257DC769230F2118CF@usnet-ex01.USNET.CORP> Message-ID: <22045.1002623687@www13.gmx.net> Hi, I've got problems by moving my cmf site (with the full "local.fs" or just with zexp-import) to a windows installation. I use RedHat 7 and Win98 (both with Zope240). The problem is, that the standard folders in the portal_skin-tool like "generic" are empty! Not my custom folders, only the standard ones! All the other things seem to work fine! Perhabs someone knows or has an idea, how to solve my little prob :-) Thanks in advance ... Marc -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From tseaver@zope.com Tue Oct 9 12:19:52 2001 From: tseaver@zope.com (Tres Seaver) Date: Tue, 09 Oct 2001 07:19:52 -0400 Subject: [Zope-CMF] Topic ANDing References: Message-ID: <3BC2DD58.50201@zope.com> Loren Stafford wrote: > I tried to do this on my Zope 2.3.2 installaion, but things still got ORed. > > I see support for texindex_operator, but not for a field index operator. > > Does that mean there is no way to AND Subject criteria on Zope 2.3.x? > >>What you require is not a "drop-in index"; standard keyword indexes >>(of which the Subject index is one) have this feature, but the >>CMFTopic.ListCriterion does not expose it. We would need to add >>a property to ListCriterion to track the "operator" desired, and >>then modify its 'getCriteriaItems' method to add that value, using >>field + "_operator" as its key. I just looked at my Zope 2.3 checkout -- you are correct, the KeywordIndex there does not know from 'operator'. You could perhaps implement a "hammer-in" index (unlike pluggable indices, it requires some violence to get it installed) which did what you want in Zope 2.3. This would either require a "monkey patch" to $ZOPE_HOME/lib/python/Products/ZCatalog/Catalog.py, as its 'addIndex' hardwires the list of possible indeex types, or else reaching into the catalog's 'indexes' dict and installing your notional AndingKeywordIndex directly. The AndingKeywordIndex would override '_apply_index', replacing the use of 'union' with 'intersection'. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Tue Oct 9 12:22:12 2001 From: tseaver@zope.com (Tres Seaver) Date: Tue, 09 Oct 2001 07:22:12 -0400 Subject: [Zope-CMF] List of null strings in Subject References: Message-ID: <3BC2DDE4.3050502@zope.com> Loren Stafford wrote: > I just changed the CMF Metadata Subject configuration to show both a > suggested vocabulary and allow subjects not in the suggested vocabulary. > This results in the display of a textarea of type Lines. After updating > Metadata where no items are entered into the textarea (because the subject > is selected from the suggested vocabulary), the resource receives as one of > its Subjects a value of [''], which shows up in the textarea thus: > >
> > Update Meadata one more time and you get: > >
> > This is a familiar problem to anyone who has worked with Lines textareas in > Zope, and most of us have developed workarounds. I think CMF needs to > include a workaround too. > > Should I submit this as a bug report? Please do: http://www.zope.org/Products/PTK/Tracker Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From Sebastien.Bigaret@inqual.com Tue Oct 9 12:25:02 2001 From: Sebastien.Bigaret@inqual.com (Sebastien Bigaret) Date: 09 Oct 2001 13:25:02 +0200 Subject: [Zope-CMF] Moving CMF Site from Linux to Windows In-Reply-To: Marc Fischer's message of "Tue, 9 Oct 2001 12:34:47 +0200 (MEST)" References: <46A6138985C6DE478D28257DC769230F2118CF@usnet-ex01.USNET.CORP> <22045.1002623687@www13.gmx.net> Message-ID: <87wv25rr75.fsf@bidibule.inqual.maisel.enst-bretagne.fr> Marc, > I've got problems by moving my cmf site (with the full "local.fs" or just > with zexp-import) to a windows installation. I use RedHat 7 and Win98 (both > with Zope240). > > The problem is, that the standard folders in the portal_skin-tool like > "generic" are empty! Not my custom folders, only the standard ones! This problem bite me last week: the problem is that the 'Filesystem Directory Views' 's path should be like 'folder1/folder2' on linux, and 'folder1\folder2' for windows. You can edit all your fs directory views properties and change all '/' with '\' -- everything will be fine again. Alternatively I proposed a patch here: http://lists.zope.org/pipermail/zope-cmf/2001-October/010048.html which works fine for me -- but nobody but me ever says that there were no unwanted side-effects, hmmm... What it does is change DirectoryViewSurrogate to update the underlying path whenever it needs to (you'll have to pack the database afterwards, since it makes it 'a bit' grow --depending on how much fs-dir.views are updated). Hope this helps, regards, -- SB aka Big. From tseaver@zope.com Tue Oct 9 12:26:57 2001 From: tseaver@zope.com (Tres Seaver) Date: Tue, 09 Oct 2001 07:26:57 -0400 Subject: [Zope-CMF] jcNTUserFolder and CMF References: Message-ID: <3BC2DF01.6000302@zope.com> Meilicke, Scott wrote: > Hi - > > Has anyone gotten jcNtUserFolder (1.3) to operate with CMF 1.1 (zope 2.4.1) > as seamlessly as the default user folder? Here's what I'm doing: > > 1. Install a CMF Site - no user folder > 2. Add a jcNtUserFolder > 3. Add a member to the userfolder for my domain (not the local domain) via > the ZMI > > When I try to join, I get user already exists > When I try to log in, I don't have a logon_time or email address property, > so errors are thrown. > > If I don't add a user to the userfolder, I can create a zope, not NT, user > by joining. However, I want to add an NT domain user, not a zope user. > > If I have the membership tool not create a userfolder, then I can login > without joining first, but I don't have a Member folder. You are on the right track with this last attempt. The MembershipTool has a toggle on its "role mapping" tab to turn on/off creation of member folders at initial login; you want that turned on, so that the users who are authenticated via jcNTUserFolder get a folder created. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Tue Oct 9 12:32:22 2001 From: tseaver@zope.com (Tres Seaver) Date: Tue, 09 Oct 2001 07:32:22 -0400 Subject: [Zope-CMF] Where is metadata case insensitivity? References: Message-ID: <3BC2E046.80404@zope.com> Loren Stafford wrote: > I think I'll modify Topics to AND Subject search arguments. But before I do > that I think it would be good to make Subject searches case insensitive > (eliminating a major reason for ORing). But I don't see where case > insensitivity is implemented in all the CMF Catalog, ZCatalog, or Catalog > code, nor why Subject indexes should be case sensitive while others are not. > > Can someone illuminate and point me to the right part of the source? Someone (I hope not me, this time) has misled you; the Subject index is *not* case insensitive. It would be fairly easy to do: customize the 'metadata_edit' Python Script to case flatten the Subject values before saving them. Might not be desirable in all cases, as it is a "lossy" transform. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From marcbpc@gmx.de Tue Oct 9 12:53:21 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Tue, 9 Oct 2001 13:53:21 +0200 (MEST) Subject: [Zope-CMF] Moving CMF Site from Linux to Windows References: <87wv25rr75.fsf@bidibule.inqual.maisel.enst-bretagne.fr> Message-ID: <18300.1002628401@www60.gmx.net> Thanks Sebastien, that helped :-) I modified it by hand with only a few klicks! > > Marc, > > > I've got problems by moving my cmf site (with the full "local.fs" or > just > > with zexp-import) to a windows installation. I use RedHat 7 and Win98 > (both > > with Zope240). > > > > The problem is, that the standard folders in the portal_skin-tool like > > "generic" are empty! Not my custom folders, only the standard ones! > > > This problem bite me last week: the problem is that the 'Filesystem > Directory > Views' 's path should be like 'folder1/folder2' on linux, and > 'folder1\folder2' for windows. > > You can edit all your fs directory views properties and change all '/' > with > '\' -- everything will be fine again. > > Alternatively I proposed a patch here: > http://lists.zope.org/pipermail/zope-cmf/2001-October/010048.html > which works fine for me -- but nobody but me ever says that there were no > unwanted side-effects, hmmm... > What it does is change DirectoryViewSurrogate to update the underlying > path > whenever it needs to (you'll have to pack the database afterwards, since > it > makes it 'a bit' grow --depending on how much fs-dir.views are updated). > > Hope this helps, regards, > > -- SB aka Big. > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From Serge.Stinckwich@info.unicaen.fr Tue Oct 9 12:52:38 2001 From: Serge.Stinckwich@info.unicaen.fr (Serge Stinckwich) Date: Tue, 09 Oct 2001 13:52:38 +0200 Subject: [Zope-CMF] Shared folders between members Message-ID: <87pu7xrpx5.wl@er158.info.unicaen.fr.iutc3.unicaen.fr> Hi all,=20 i would like to make a shared editable folder beetween members (with a specific role) of my portal. I try to create a folder at the root of my CMF portal and then change the permissions (add&modify CMF content) inside the security tab without success ... I can't see an edit item like when i log as admin. How can i do that ? Thanks you, -- Serge Stinckwich -< ) http://multiagent.= com/ CNRS UMR 6072>GREYC>I3>SMILE /~\ http://squeak.org/ Universit=E9 de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://smalltalk= .org/ http://www.iutc3.unicaen.fr/~stincs/ _|_/ http://zope.org/ JID : Serge.Stinckwich@jabber.org http://debian.org/ From chrisw@nipltd.com Tue Oct 9 14:13:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 14:13:30 +0100 Subject: [Zope-CMF] MetaZope.org Message-ID: <3BC2F7FA.1D6B9CAA@nipltd.com> Hello... Just found this: http://metazope.org/metazope Looks kindof funky, no? Apparently you can get it from: http://zope.org/Members/runyaga/CMFPloneSkin It needs CSS, but it's still proof that Zope doesn't _have_ to look butt ugly ;-) Chris From chrisw@nipltd.com Tue Oct 9 14:14:35 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 14:14:35 +0100 Subject: [Zope-CMF] Basic CMF information References: <003301c14cfc$75784390$c700a8c0@dell667> <20011004200115.H8287@lenin> <3BBDAF3D.C9464612@fabricadeideias.com> Message-ID: <3BC2F83B.ACA0E59E@nipltd.com> João Neves wrote: > > There's a searchable mailing list archive at: > > http://aspn.activestate.com/ASPN/Mail/Archives/Zope-CMF/ And another one at: http://zope.nipltd.com/public/lists/ptk-archive.nsf/$$Search?OpenForm Chris From chrisw@nipltd.com Tue Oct 9 14:32:30 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 14:32:30 +0100 Subject: [Zope-CMF] Problem adding Portal Images programatically References: Message-ID: <3BC2FC6E.1E949F71@nipltd.com> Tres Seaver wrote: > > On 5 Oct 2001, Florent Guillaume wrote: > > > Speaking about invokeFactory, I wanted to mention a little bug: > > constructInstance builds the object by calling the factory method (or > > the script), then sets the portal_type using _setPortalTypeName. But it > > never reindexes the object, which means that this portal_type is not > > catalogged until the next object edition (usually). This is a problem > > for me because I have a site where I do a lot of searches on > > portal_type. > > > > Would a "ob.reindexObject()" at the end of constructContent be an > > acceptable patch ? > > Yep, I just checked this in: > > --- TypesTool.py 13 Aug 2001 21:44:18 -0000 1.19 > +++ TypesTool.py 5 Oct 2001 13:47:38 -0000 > @@ -755,6 +755,8 @@ > > ob = apply(info.constructInstance, (container, id) + args, kw) > > + ob.reindexObject() > + > if RESPONSE is not None: > immediate_url = '%s/%s' % ( ob.absolute_url() > , info.immediate_view ) > yay! :-) I've been fighting with this for a few months now btu never did figure otu how to fix it... Chris From srath@zeomega.com Tue Oct 9 14:32:32 2001 From: srath@zeomega.com (sushant) Date: Tue, 09 Oct 2001 19:02:32 +0530 Subject: [Zope-CMF] i need your help Message-ID: <3BC2FC70.8B31262C@zeomega.com> hello, can you pls help me getting some information like how to use portal_discussion, and mail host really i need it urgently. please help me in getting information regarding this. thanks bye sushant From chrisw@nipltd.com Tue Oct 9 14:54:54 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 14:54:54 +0100 Subject: [Zope-CMF] Q. about isConstructionAllowed References: <20011004135556.B8287@lenin> <20011004142855.C8287@lenin> <20011004143530.D8287@lenin> Message-ID: <3BC301AE.76E5A674@nipltd.com> seb bacon wrote: > > OK, further investigation shows that ZopeSecurityPolicy sometimes > raises Unauthorized exceptions, so I'll rephrase my question: is there > any reason why _getFactoryMethod shouldn't read > > except Unauthorized: > > rather than > > except: 'cos that raise is prolly a: raise 'Unauthorized' ...which can't be caught by anything other than a bare except :-( Chris -- roll on class based exceptions everywhere... From lstafford@morphics.com Tue Oct 9 16:31:30 2001 From: lstafford@morphics.com (Loren Stafford) Date: Tue, 9 Oct 2001 08:31:30 -0700 Subject: [Zope-CMF] List of null strings in Subject In-Reply-To: <3BC2DDE4.3050502@zope.com> Message-ID: Done. http://www.zope.org/Products/PTK/Tracker/393 -- Loren > -----Original Message----- > From: Tres Seaver [mailto:tseaver@zope.com] > Sent: Tuesday, October 09, 2001 04:22 > To: lstafford@morphics.com > Cc: Zope-Cmf > Subject: Re: [Zope-CMF] List of null strings in Subject > > > Loren Stafford wrote: > > > I just changed the CMF Metadata Subject configuration to show both a > > suggested vocabulary and allow subjects not in the suggested vocabulary. > > This results in the display of a textarea of type Lines. After updating > > Metadata where no items are entered into the textarea (because > the subject > > is selected from the suggested vocabulary), the resource > receives as one of > > its Subjects a value of [''], which shows up in the textarea thus: > > > >
> > > > Update Meadata one more time and you get: > > > >
> > > > This is a familiar problem to anyone who has worked with Lines > textareas in > > Zope, and most of us have developed workarounds. I think CMF needs to > > include a workaround too. > > > > Should I submit this as a bug report? > > > Please do: > > http://www.zope.org/Products/PTK/Tracker > > Tres. > -- > =============================================================== > Tres Seaver tseaver@zope.com > Zope Corporation "Zope Dealers" http://www.zope.com > > From chrisw@nipltd.com Tue Oct 9 16:51:55 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 16:51:55 +0100 Subject: [Zope-CMF] Security on Skins References: <3B9CA02F.87BECAB2@nipltd.com> <3B9F0E58.9542C990@nipltd.com> <15263.4651.167851.715824@lindm.dm> Message-ID: <3BC31D1B.FA8E09ED@nipltd.com> Dieter Maurer wrote: > > You know, we can soon hope to have open CVS repositiories, hopefully ;-) Well, we now do, and I have access, so where's the best place to sort out a proposal for this? cheers, Chris From marc@bowery.com Tue Oct 9 16:52:10 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 09 Oct 2001 11:52:10 -0400 Subject: [Zope-CMF] List of null strings in Subject In-Reply-To: Message-ID: > From: "Loren Stafford" >>>> >>> This is a familiar problem to anyone who has worked with Lines >> textareas in >>> Zope, and most of us have developed workarounds. I think CMF needs to >>> include a workaround too. What would be the workaround? From chrisw@nipltd.com Tue Oct 9 16:58:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 09 Oct 2001 16:58:10 +0100 Subject: [Zope-CMF] Remove Members?! References: <3BA84F86.891145BC@nipltd.com> <3BA874F7.D7A6C3A8@akeirou.com> Message-ID: <3BC31E92.366F959C@nipltd.com> Rémi Houdaille wrote: > > Chris Withers a écrit : > > > marc lindahl wrote: > > > > > > > You just need to give Manager and Owner the 'Manage portal members' > > > > permission. > > > > > > You also need to delete the Member folder, right? > > > > Well, that's at the skin level, but yes... > > Not so obvious: let's say a team is working on some project. Every member > contributes in his home folder. Suppose one member leaves the team. You may whish to > delete the member, but keep his existing contributions in the site. That's why I said it should bve done at the skin level ;-) Chris From marc@bowery.com Tue Oct 9 16:54:35 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 09 Oct 2001 11:54:35 -0400 Subject: [Zope-CMF] Shared folders between members In-Reply-To: <87pu7xrpx5.wl@er158.info.unicaen.fr.iutc3.unicaen.fr> Message-ID: WIth CMF1.1, you can use local roles along with permissions. > From: Serge Stinckwich > Date: Tue, 09 Oct 2001 13:52:38 +0200 > To: zope-cmf@zope.org > Subject: [Zope-CMF] Shared folders between members >=20 > Hi all,=20 >=20 > i would like to make a shared editable folder beetween members (with > a specific role) of my portal. I try to create a folder at the root of > my CMF portal and then change the permissions (add&modify CMF content) > inside the security tab without success ... I can't see an edit item > like when i log as admin. How can i do that ? >=20 > Thanks you, >=20 > -- > Serge Stinckwich -< ) > http://multiagent.com/ > CNRS UMR 6072>GREYC>I3>SMILE /~\ http://squeak.or= g/ > Universit=E9 de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://smalltalk= .org/ > http://www.iutc3.unicaen.fr/~stincs/ _|_/ http://zope.org/ > JID : Serge.Stinckwich@jabber.org http://debian.or= g/ >=20 >=20 >=20 > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf >=20 > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From Serge.Stinckwich@info.unicaen.fr Tue Oct 9 17:37:21 2001 From: Serge.Stinckwich@info.unicaen.fr (Serge Stinckwich) Date: Tue, 09 Oct 2001 18:37:21 +0200 Subject: [Zope-CMF] Shared folders between members In-Reply-To: References: <87pu7xrpx5.wl@er158.info.unicaen.fr.iutc3.unicaen.fr> Message-ID: <877ku43h32.wl@er158.info.unicaen.fr.iutc3.unicaen.fr> At Tue, 09 Oct 2001 11:54:35 -0400, marc lindahl wrote: >=20 > WIth CMF1.1, you can use local roles alu ong with permissions. Yes, with local roles it works without problem, but it's a bit annoying because you have to add all the users by hand in the folder. Cheers, --=20 Serge Stinckwich -< ) http://multiagent.= com/ CNRS UMR 6072>GREYC>I3>SMILE /~\ http://squeak.org/ Universit=E9 de Caen>IUT de Caen>Campus 3>Dept Info (/ | http://smalltalk= .org/ http://www.iutc3.unicaen.fr/~stincs/ _|_/ http://zope.org/ JID : Serge.Stinckwich@jabber.org http://debian.org/ From tseaver@palladion.com Tue Oct 9 05:47:11 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 9 Oct 2001 00:47:11 -0400 (EDT) Subject: [Zope-CMF] Security on Skins In-Reply-To: <3BC31D1B.FA8E09ED@nipltd.com> Message-ID: On Tue, 9 Oct 2001, Chris Withers wrote: > Dieter Maurer wrote: > > > > You know, we can soon hope to have open CVS repositiories, > > hopefully ;-) > > Well, we now do, and I have access, so where's the best place > to sort out a proposal for this? Steve Alexander's "compendium", http://dev.zope.org/CVS/ZenFromZopeCoders, contains the response I gave you about process, which itself addressed the "where do I make a proposal?" question. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From lstafford@morphics.com Tue Oct 9 18:17:10 2001 From: lstafford@morphics.com (Loren Stafford) Date: Tue, 9 Oct 2001 10:17:10 -0700 Subject: [Zope-CMF] List of null strings in Subject In-Reply-To: Message-ID: I didn't actually fix this in CMF, because I decided to totally control the Subject vocabulary, thereby eliminating the textarea. What I did in another custom ZClass/DTML application was create an external method that filters textarea lists -- something like this: from string import strip def clean_list(self, list): return filter(strip, list) The DTML form handler cleans the textarea list before storing it in ZODB. This worked in that old application of mine; I'm not sure we're looking at exactly the same problem in the case of CMF Subject textareas, but it's something similar. This case may be different, because the forms (.../portal_skins/content/metadata_edit_form and .../portal_skins/content/full_metadata_edit_form ) force Zope to marshall both a subject:lines and a subject:list into one subject list. You can end up with a list that contains a list containing a null string. I saw a line in ListCriterion.py that does something like this: import operator value = tuple(filter(operator.truth, self.value)) ...which would filter out "null" lists, but wouldn't strip non-null strings. Maybe a combination of both is needed. The fix would go somewhere in metadata_edit. Aha! this is a skin (.../portal_skins/content/metadata_edit) so you can easily fix it locally. -- Loren > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > > From: "Loren Stafford" > >>>> > >>> This is a familiar problem to anyone who has worked with Lines > >> textareas in > >>> Zope, and most of us have developed workarounds. I think CMF needs to > >>> include a workaround too. > > What would be the workaround? > > From scott.meilicke@intp.com Tue Oct 9 20:38:27 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Tue, 9 Oct 2001 12:38:27 -0700 Subject: [Zope-CMF] jcNTUserFolder and CMF Message-ID: Thanks for the response, but when I have the member folder creation turned on, I get an error. When it is turned off, I get no error, and no member folder. Here is the traceback when create member folder is turned on: Error Type: AttributeError Error Value: login_time Traceback (innermost last): File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 223, in publish_module File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\PROGRA~1\intranet\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\PROGRA~1\intranet\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: logged_in) File D:\PROGRA~1\intranet\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: logged_in) File D:\PROGRA~1\intranet\lib\python\Products\CMFCore\FSDTMLMethod.py, line 180, in __call__ (Object: logged_in) File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_String.py, line 544, in __call__ (Object: logged_in) File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_With.py, line 148, in render (Object: portal_properties) File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_Let.py, line 148, in render (Object: member="portal_membership.getAuthenticatedMember()") File D:\PROGRA~1\intranet\lib\python\DocumentTemplate\DT_Util.py, line 230, in eval (Object: member.login_time == _.DateTime('2000/01/01') and validate_email) (Info: member) File , line 0, in ? AttributeError: (see above) Thanks - Scott -----Original Message----- From: Tres Seaver [mailto:tseaver@zope.com] Sent: Tuesday, October 09, 2001 4:27 AM To: Meilicke, Scott Cc: 'zope-cmf@zope.org' Subject: Re: [Zope-CMF] jcNTUserFolder and CMF Meilicke, Scott wrote: > Hi - > > Has anyone gotten jcNtUserFolder (1.3) to operate with CMF 1.1 (zope 2.4.1) > as seamlessly as the default user folder? Here's what I'm doing: > > 1. Install a CMF Site - no user folder > 2. Add a jcNtUserFolder > 3. Add a member to the userfolder for my domain (not the local domain) via > the ZMI > > When I try to join, I get user already exists > When I try to log in, I don't have a logon_time or email address property, > so errors are thrown. > > If I don't add a user to the userfolder, I can create a zope, not NT, user > by joining. However, I want to add an NT domain user, not a zope user. > > If I have the membership tool not create a userfolder, then I can login > without joining first, but I don't have a Member folder. You are on the right track with this last attempt. The MembershipTool has a toggle on its "role mapping" tab to turn on/off creation of member folders at initial login; you want that turned on, so that the users who are authenticated via jcNTUserFolder get a folder created. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From kbolton@sputnik7.com Tue Oct 9 21:42:31 2001 From: kbolton@sputnik7.com (Kenneth Bolton) Date: Tue, 9 Oct 2001 16:42:31 -0400 Subject: [Zope-CMF] Password Changing Message-ID: <28EFBE54-BCF6-11D5-BAF6-0030657DF494@sputnik7.com> Hi all, I have 2 (two) different zope 2.4.1 sites running CMF 1.1. In both cases, the password_form bonks when I try to change the users password. change_password returns: Error Type: NameError Error Value: global name 'has' is not defined Traceback (innermost last): File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/ken/Zope-2.4.0-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: change_password) File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: change_password) File /home/ken/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: change_password) File /home/ken/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: change_password) File /home/ken/Zope-2.4.0-src/lib/python/Products/CMFCore/FSPythonScript.py, line 187, in _exec (Object: change_password) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, ('password', 'password', []), {}, (None,))) File Script (Python), line 9, in change_password File /home/ken/Zope-2.4.0-src/lib/python/Products/CMFCore/MembershipTool.py, line 354, in credentialsChanged (Object: portal_membership) File /home/ken/Zope-2.4.0-src/lib/python/OFS/Traversable.py, line 233, in restrictedTraverse (Object: portal_membership) File /home/ken/Zope-2.4.0-src/lib/python/OFS/Traversable.py, line 193, in unrestrictedTraverse (Object: ApplicationDefaultPermissions) NameError: (see above) Has anyone else had this problem? How did you fix it? ken From tseaver@palladion.com Tue Oct 9 11:13:01 2001 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 9 Oct 2001 06:13:01 -0400 (EDT) Subject: [Zope-CMF] Password Changing In-Reply-To: <28EFBE54-BCF6-11D5-BAF6-0030657DF494@sputnik7.com> Message-ID: On Tue, 9 Oct 2001, Kenneth Bolton wrote: > Hi all, > > I have 2 (two) different zope 2.4.1 sites running CMF 1.1. In both > cases, the password_form bonks when I try to change the users password. > change_password returns: > > Error Type: NameError > Error Value: global name 'has' is not defined > > Traceback (innermost last): > File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line > 223, in publish_module > File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /home/ken/Zope-2.4.0-src/lib/python/Zope/__init__.py, line 226, > in zpublisher_exception_hook > (Object: LockableItem) > File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/mapply.py, line > 160, in mapply > (Object: change_password) > File /home/ken/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line > 112, in call_object > (Object: change_password) > File > /home/ken/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line > 324, in __call__ > (Object: change_password) > File > /home/ken/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line > 354, in _bindAndExec > (Object: change_password) > File > /home/ken/Zope-2.4.0-src/lib/python/Products/CMFCore/FSPythonScript.py, > line 187, in _exec > (Object: change_password) > (Info: ({'script': , 'context': > , 'container': 9746e80>, 'traverse_subpath': []}, ('password', 'password', []), {}, > (None,))) > File Script (Python), line 9, in change_password > File > /home/ken/Zope-2.4.0-src/lib/python/Products/CMFCore/MembershipTool.py, > line 354, in credentialsChanged > (Object: portal_membership) > File /home/ken/Zope-2.4.0-src/lib/python/OFS/Traversable.py, line 233, > in restrictedTraverse > (Object: portal_membership) > File /home/ken/Zope-2.4.0-src/lib/python/OFS/Traversable.py, line 193, > in unrestrictedTraverse > (Object: ApplicationDefaultPermissions) > NameError: (see above) > > Has anyone else had this problem? How did you fix it? This is a bug in Zope 2.4, already fixed in CVS. Here is the patch: --- Zope/lib/python/OFS/Traversable.py 2001/08/30 13:07:49 1.8.4.2 +++ Zope/lib/python/OFS/Traversable.py 2001/09/11 14:29:30 1.8.4.3 @@ -142,6 +142,7 @@ if not path: return self get=getattr + has=hasattr N=None M=_marker Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From bryan_lists@netmeme.org Wed Oct 10 03:33:02 2001 From: bryan_lists@netmeme.org (Bryan Field-Elliot) Date: 09 Oct 2001 20:33:02 -0600 Subject: [Zope-CMF] Hard time grokking Zope-CMF Message-ID: <1002681182.23911.4.camel@c1593933-a.boulder1.co.home.com> --=-NnbJLNPiJsRp/SSO168i Content-Type: text/plain Content-Transfer-Encoding: 7bit I am having a hard time _really_ getting to understand exactly what Zope CMF is, and what it isn't. All the docs on the site are small "how-to"'s, or short descriptive whitepapers, on very focused little subtopics -- but nowhere do I get a description of the big picture. It's quite frustrating. Can anyone please point me in the right direction as to understanding where Zope CMF fits into the world? I am familiar with several other CMS systems -- Interwoven, Vignette, Accumedia, and could use them as a frame of reference. For example -- who exactly is doing most of the content creation in Zope CMF -- is it site operators, or is it end-users? A CMS system is typically used by site staff to maintain the site -- defining content types, roles, workflow, etc. However, in Zope CMF, I see an awful lot of stuff related to end-users personalizing their home page, contributing messages or discussion threads, etc -- not really "classical content", but rather, it's community and portal stuff. So the "Content Management" moniker doesn't seem to fit so neatly as, say, "portal, personalization, and community" might. Thanks in advance for any clarifying comments, Bryan --=-NnbJLNPiJsRp/SSO168i Content-Type: text/html; charset=utf-8 I am having a hard time _really_ getting to understand exactly what Zope CMF is, and what it isn't. All the docs on the site are small "how-to"'s, or short descriptive whitepapers, on very focused little subtopics -- but nowhere do I get a description of the big picture. It's quite frustrating. Can anyone please point me in the right direction as to understanding where Zope CMF fits into the world? I am familiar with several other CMS systems -- Interwoven, Vignette, Accumedia, and could use them as a frame of reference.

For example -- who exactly is doing most of the content creation in Zope CMF -- is it site operators, or is it end-users? A CMS system is typically used by site staff to maintain the site -- defining content types, roles, workflow, etc.  However, in Zope CMF, I see an awful lot of stuff related to end-users personalizing their home page, contributing messages or discussion threads, etc -- not really "classical content", but rather, it's community and portal stuff. So the "Content Management" moniker doesn't seem to fit so neatly as, say, "portal, personalization, and community" might.

Thanks in advance for any clarifying comments,

Bryan





--=-NnbJLNPiJsRp/SSO168i-- From seb@jamkit.com Wed Oct 10 11:33:44 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 10 Oct 2001 11:33:44 +0100 Subject: [Zope-CMF] Hard time grokking Zope-CMF In-Reply-To: <1002681182.23911.4.camel@c1593933-a.boulder1.co.home.com> References: <1002681182.23911.4.camel@c1593933-a.boulder1.co.home.com> Message-ID: <20011010113342.C2753@lenin.jamkit.com> * Bryan Field-Elliot [011010 06:19]: > For example -- who exactly is doing most of the content creation in Zope > CMF -- is it site operators, or is it end-users? A CMS system is > typically used by site staff to maintain the site -- defining content > types, roles, workflow, etc. However, in Zope CMF, I see an awful lot > of stuff related to end-users personalizing their home page, > contributing messages or discussion threads, etc -- not really > "classical content", but rather, it's community and portal stuff. So the > "Content Management" moniker doesn't seem to fit so neatly as, say, > "portal, personalization, and community" might. You're absolutely right - you *see* things relating to a community portal. But what you see isn't the CMF, it's the CMFDefault demo site. In a nutshell, the CMF is a *toolkit* for solving particular CM problems like workflow and personalisation. Here's a list of the problems the CMF + Zope solves so far: - workflow - metadata (Dublin Core) - membership & roles-based security - personalisation - skins (content and presentation cleanly separated) - multiple user interfaces (TTW, FTP, webDAV) - content syndication - indexing - rolling back actions (undoing) It doesn't have a solution for authors to create and edit web pages based on complex templates, which I think a lot of people need; this is in the pipeline for the next version. There is nothing about the toolset which means you have to use it for "portal, personalization, and community". The reason many people get this impression is because the demo site supplied with the CMF fulfills this role. I think in terms of a graphics toolkit. The CMF is like GTK+: it provides widgets which solve common (GUI/CMS) problems. CMFDefault is like Gnome: it uses the underlying toolkit to meet a specific requirement (Desktop / Community Portal). seb From tseaver@zope.com Wed Oct 10 12:56:58 2001 From: tseaver@zope.com (Tres Seaver) Date: Wed, 10 Oct 2001 07:56:58 -0400 Subject: [Zope-CMF] Hard time grokking Zope-CMF References: <1002681182.23911.4.camel@c1593933-a.boulder1.co.home.com> <20011010113342.C2753@lenin.jamkit.com> Message-ID: <3BC4378A.7030309@zope.com> seb bacon wrote: > * Bryan Field-Elliot [011010 06:19]: >=20 >>For example -- who exactly is doing most of the content creation in Zop= e >>CMF -- is it site operators, or is it end-users? A CMS system is >>typically used by site staff to maintain the site -- defining content >>types, roles, workflow, etc. However, in Zope CMF, I see an awful lot >>of stuff related to end-users personalizing their home page, >>contributing messages or discussion threads, etc -- not really >>"classical content", but rather, it's community and portal stuff. So th= e >>"Content Management" moniker doesn't seem to fit so neatly as, say, >>"portal, personalization, and community" might. >> >=20 > You're absolutely right - you *see* things relating to a community > portal. But what you see isn't the CMF, it's the CMFDefault demo > site. In a nutshell, the CMF is a *toolkit* for solving particular CM > problems like workflow and personalisation.=20 > Here's a list of the problems the CMF + Zope solves so far:=20 >=20 > - workflow > - metadata (Dublin Core) > - membership & roles-based security > - personalisation > - skins (content and presentation cleanly separated) > - multiple user interfaces (TTW, FTP, webDAV) > - content syndication > - indexing > - rolling back actions (undoing) >=20 > It doesn't have a solution for authors to create and edit web pages > based on complex templates, which I think a lot of people need; this > is in the pipeline for the next version. >=20 > There is nothing about the toolset which means you have to use it for > "portal, personalization, and community". The reason many people get > this impression is because the demo site supplied with the CMF > fulfills this role. I think in terms of a graphics toolkit. The CMF > is like GTK+: it provides widgets which solve common (GUI/CMS) > problems. CMFDefault is like Gnome: it uses the underlying toolkit to > meet a specific requirement (Desktop / Community Portal). To extend Seb's excellent reply, I'll provide some "hysterical" backgroun= d. The CMF (n=E9 PTK, for Portal Toolkit) was originally planned as a set of tools for allowing people to build Zope.org-like sites. While these *are= * "community" or "portal" sites, they are also "content management" sites; such sites distribute the content creation role (not just discussions, bu= t documents, software, images, etc.) across their entire membership. During its lifetime, we (Zope Corp, n=E9 Digital Creations :) have used i= t on several consulting gigs for which community-originated content was *not* part of the customer's (immediate) goals. In particular, we used it to build the CMS for two large, multi site New Media company, where their producers develop and share content among multiple "properties". Both customers' needs contributed significantly to the evolution of the CMF's architecture, and we continue to propoose and build such solutions atop the CMF today. Hope that helps clarify, 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 seb@jamkit.com Wed Oct 10 13:47:54 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 10 Oct 2001 13:47:54 +0100 Subject: [Zope-CMF] Compound elements In-Reply-To: <20011001204615.X4510@lenin.jamkit.com> References: <20011001204615.X4510@lenin.jamkit.com> Message-ID: <20011010134751.B5168@lenin.jamkit.com> I wrote a mail some time ago about 'compound elements'. It was a bit massive, so I'm not surprised no-one replied. The important bit, to which I'd really appreciate an answer, is reproduced below: > I'd like to ask about the status of compound documents, > since they are scheduled for CMF 1.2, which I understand is forthcoming > (sort of). So, is someone at ZC doing this? Am I wasting my time bothering to do it myself? If someone has already started, I'd like to swap some ideas with them. If they haven't I'll probably make my system available soon for feedback. seb From tseaver@zope.com Wed Oct 10 13:15:41 2001 From: tseaver@zope.com (Tres Seaver) Date: Wed, 10 Oct 2001 08:15:41 -0400 Subject: [Zope-CMF] Compound elements References: <20011001204615.X4510@lenin.jamkit.com> <20011010134751.B5168@lenin.jamkit.com> Message-ID: <3BC43BED.2080807@zope.com> seb bacon wrote: > I wrote a mail some time ago about 'compound elements'. It was a bit > massive, so I'm not surprised no-one replied. The important bit, to > which I'd really appreciate an answer, is reproduced below: > > >>I'd like to ask about the status of compound documents, >>since they are scheduled for CMF 1.2, which I understand is forthcoming >>(sort of). >> > > So, is someone at ZC doing this? Am I wasting my time bothering > to do it myself? If someone has already started, I'd like to swap > some ideas with them. If they haven't I'll probably make my system > available soon for feedback. We have definitely commissioned the task for the CMF 1.2 release, but have not yet begun the effort to generalize the consulting work we have done. What we *do* have is Jeffrey's "inception" document for composite (my preferred term) / compound (Paul's preferred term) content: http://cmf.zope.org/rqmts/proposals/compounds/compoundproposal.txt I had originally planned to branch 1.2 for release by the end of October; a number of other priorities have interfered, and I am re-evaluating that goal. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Wed Oct 10 13:23:02 2001 From: tseaver@zope.com (Tres Seaver) Date: Wed, 10 Oct 2001 08:23:02 -0400 Subject: [Zope-CMF] I can't live without DTML in Portal Document References: <9pf1bt$67a$1@dev.in.nuxeo.com> Message-ID: <3BC43DA6.4050505@zope.com> Florent Guillaume wrote: >Loren Stafford wrote: >>Not a great subject line, but I'm having trouble expressing the real problem >>in a few words. So here are a lot of words: >> >>On my Intranet site, I've got a Portal Folder >> >> http://morphicsweb//Portal/Members/lstaffor/Papers/2001_09_01/, >> >>and in that folder a Document (Format HTML) called 'index_html' and a Portal >>Image 'Fig_1.gif'. In 'index_html' I reference the image with >src="../Fig_1.gif">. When I click the View action the document is requested >>with the URL >> >> >>http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/index_html/docu >>ment_view >> >>and the browser expands the 'img' reference to >> >> http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/Fig_1.gif >> >>and all is well. >> >>However, if I find the document by a Topic search, the document is requested >>with the URL >> >> http://morphicsweb/Portal/Members/lstaffor/Papers/2001_09_01/index_html >> >>and the browser expands the 'img' reference to >> >> http://morphicsweb/Portal/Members/lstaffor/Papers/Fig_1.gif >> >>which is invalid, since Fig_1.gif is not in that folder. >> >>I've made a temporary fix by coding the absolute URL of the image in the img >>tag, but, until now, I haven't had to code absolute URLs since I started >>using Zope. I usually generate them with DTML, but I can't use DTML in a >>Portal Document. I could play a trick with acquisition, moving the image up >>one level (or the index_html Document down one level); but that would still >>be a trick. >> >>What is the right solution to this problem? What is the real problem? >> > > I believe that Document (and other contents in general) should insert a > tag in the in some situations, but I've not yet completely > figured out the mechanism used (it's fairly intricate and not very well > documented -- see HTTPResponse::insertBase, and the call to > response.setBase in BaseRequest::traverse ...). > > Your best bet in the meantime, as you mentionned, would be acquisition, > which is not that much of a hack (except that it can lead to > caching-unfriendly behaviour). Note that the default skiins for content objects already set the BASE tag, for just this reason. Here is 'document_view'::
That 'relative_to_content' flag causes 'standard_html_header' to insert a base tag with the current object's 'absolute_url'. I think this is still broken in CMFDecor, however. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Wed Oct 10 13:26:05 2001 From: tseaver@zope.com (Tres Seaver) Date: Wed, 10 Oct 2001 08:26:05 -0400 Subject: [Zope-CMF] convert zwiki to CMFWiki? References: <9pf4oo+el5i@eGroups.com> Message-ID: <3BC43E5D.3080705@zope.com> Bill Seitz wrote: > I have hundreds of zwiki pages (all in one folder). > > Is there a simple process to convert them to a CMFWiki? Ideally, > would like to maintain (a) the last-mod dates and (b) the parent > relations. Last-mod is essentially impossible; the stock implementations of all CMF Content derive that value from the underlying ZODB transaction. The migration script in CMFWiki/Extensions/migrate.py does try to maintain all the other stuff. Note that it removes the "boilerplate" pages, as those are all done via skins in CMFWiki. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From tseaver@zope.com Wed Oct 10 13:44:09 2001 From: tseaver@zope.com (Tres Seaver) Date: Wed, 10 Oct 2001 08:44:09 -0400 Subject: [Zope-CMF] CMFWiki folders invisible References: <200110040455.AAA13465@ride.ri.net> Message-ID: <3BC44299.9060203@zope.com> Tom Hoffman wrote: > OK, I know CMFWiki is not officially supported, but perhaps someone can clue > me in. With 2.4.1 and CMF/CVS, I can make individual CMFWiki Pages perfectly > well, and CMFWiki site folders work too, aside from the fact that the folder > doesn't show up in the "My Stuff" directory view. It is visible in the ZMI > and is accessible. > > Anyone else notice this? That smells as though the "CMFWikiFolder" type object has the ultra-seekrit "stealth" feature. *Checking my sandbox* Yep, the 'meta_type' of CMFWikiFolder is not explicitly set, and so the value set in the type object ('CMF Wiki') doesn't match the object (which has 'Skinned Folder' by inheritance). Two fixes / workarounds are possible: - Change the meta_type field on the type object to 'Skinned Folder'; this works immediately, with no problems, but is going to break after we fix the real bug. - Apply the following patch to CMFWiki: --- CMFWiki/CMFWikiPage.py 7 Aug 2001 22:20:57 -0000 1.15 +++ CMFWiki/CMFWikiPage.py 10 Oct 2001 12:41:21 -0000 @@ -1834,6 +1834,8 @@ class CMFWikiFolder( SkinnedFolder ): + meta_type="CMF Wiki" + def PUT_factory(self, name, typ, body): if find(typ, 'text') != -1: return makeCMFWikiPage(name, '', body) And then arrange to get your CMFWikiFolder instance re-seated in its containing folder, so the cached meta_type is updated. The simplest way to do that would be to cut and paste the wiki into a new location, and then cut and paste it back. Sorry for the confusion! Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From jon@pcgs.freeserve.co.uk Wed Oct 10 14:25:36 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 10 Oct 2001 14:25:36 +0100 Subject: [Zope-CMF] Compound elements Message-ID: > So, is someone at ZC doing this? Am I wasting my time bothering > to do it myself? If someone has already started, I'd like to swap > some ideas with them. If they haven't I'll probably make my system > available soon for feedback. Hi Seb As you saw at the ZUGUK meeting on Monday, we're working on similar problems for our CMS (I'm working on a releasable version... coming soon, honest!) So, if you want to bat a few ideas round, or combine efforts, I'm up for it! :-) Cheers, Jon From jon@pcgs.freeserve.co.uk Wed Oct 10 15:10:03 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Wed, 10 Oct 2001 15:10:03 +0100 Subject: [Zope-CMF] Microsoft invests in Groove Message-ID: http://news.moneycentral.msn.com/ticker/article.asp?Symbol=US:MSFT&Feed=PR&D ate=20011010&ID=1125837 Press release - Microsoft Invests $51 million in Groove There was a lot of talk at the ZUGUK (Zope User Group UK) meeting on Monday about how Zope and/or CMF is great for collaboration/groupware tools as well as Content Management. Maybe it's time to get some of those ideas kickstarted before MS/Groove owns the whole market? :-) Cheers, Jon From seb@jamkit.com Wed Oct 10 16:09:18 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 10 Oct 2001 16:09:18 +0100 Subject: [Zope-CMF] Compound elements In-Reply-To: <3BC43BED.2080807@zope.com> References: <20011001204615.X4510@lenin.jamkit.com> <20011010134751.B5168@lenin.jamkit.com> <3BC43BED.2080807@zope.com> Message-ID: <20011010160916.C5168@lenin.jamkit.com> * Tres Seaver [011010 16:13]: > seb bacon wrote: > >>I'd like to ask about the status of compound documents, > >>since they are scheduled for CMF 1.2, which I understand is forthcoming > >>(sort of). > We have definitely commissioned the task for the CMF 1.2 release, but > have not yet begun the effort to generalize the consulting work we have > done. What we *do* have is Jeffrey's "inception" document for composite > (my preferred term) / compound (Paul's preferred term) content: > > http://cmf.zope.org/rqmts/proposals/compounds/compoundproposal.txt > > I had originally planned to branch 1.2 for release by the end of October; > a number of other priorities have interfered, and I am re-evaluating that > goal. I already saw Jeffrey's document, which I thought summed up the problems very well. I think my solution is appropriately generalized, so what would my best route be for taking it forward? It meets most of the requirements Jeffrey outlines, and I have scheduled it for completion within 10 working days. If anyone has any feedback about how I'm doing it, please let me know. The mail I wrote last week was probably really hard to follow, but it's very hard to describe, IMO. I'd particularly like to be involved in any generalising effort, when you get round to it. Unless anyone suggests otherwise, I'm going to get on with it, and I'll probably release a version towards the end of next week. seb From seb@jamkit.com Wed Oct 10 16:14:18 2001 From: seb@jamkit.com (Seb Bacon) Date: Wed, 10 Oct 2001 16:14:18 +0100 Subject: [Zope-CMF] Compound elements In-Reply-To: References: Message-ID: <20011010161414.D5168@lenin.jamkit.com> * Jon Edwards [011010 17:24]: > > So, is someone at ZC doing this? Am I wasting my time bothering > > to do it myself? If someone has already started, I'd like to swap > > some ideas with them. If they haven't I'll probably make my system > > available soon for feedback. > So, if you want to bat a few ideas round, or combine efforts, I'm up for it! > :-) Cheers - I'll try to ask my questions in a slower dribble as I face certain issues over the next couple of weeks... seb From scott.meilicke@intp.com Wed Oct 10 16:30:15 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Wed, 10 Oct 2001 08:30:15 -0700 Subject: [Zope-CMF] pls help me Message-ID: Hello Sushant, I am cc'ing the list, as that's the best way to get help with problems. In answer to your question, from a default site (no modifications) you should be able to login to the site, click 'My Stuff', and add a News Item. Then publish the News Item, and it will show up on the home page underneath 'News'. You must have reviewer or manager permissions to publish. Hope that helps - Scott -----Original Message----- From: sushant [mailto:srath@zeomega.com] Sent: Wednesday, October 10, 2001 7:25 AM To: Meilicke, Scott Subject: Re: [Zope-CMF] pls help me hello, can u tell me how to add news..in to news. because i ahve tried to change in recent_news and news_box .dtml method. is that the way to change. pls mail me back thanks bye sushant From marc@bowery.com Wed Oct 10 17:23:59 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 10 Oct 2001 12:23:59 -0400 Subject: [Zope-CMF] Compound elements In-Reply-To: <20011010160916.C5168@lenin.jamkit.com> Message-ID: I added this comment to Jeffrey's proposal: The CMFPhotoAlbum would benefit from being a compound type. Thinking about it gives some added perspective to the issue. One of these photo albums consists of a (potentially heirarchical) collection of photos and other photo albums. The individual photo albums and photos may want to be searchable in addition to the compound photo album. A typical scenario when creating a photo album is to immediately upload a bunch of photos into it. So the creation workflow would need a loop terminated by the user. theCMFPhotoAlbum would definitely benefit (over the current implementation) from searchability, and workflow (publishing, etc. all sub-objects at once). From lstafford@morphics.com Wed Oct 10 17:17:40 2001 From: lstafford@morphics.com (Loren Stafford) Date: Wed, 10 Oct 2001 09:17:40 -0700 Subject: [Zope-CMF] I can't live without DTML in Portal Document In-Reply-To: <3BC43DA6.4050505@zope.com> Message-ID: > From: Tres Seaver [mailto:tseaver@zope.com] > > > > That 'relative_to_content' flag causes 'standard_html_header' to > > insert a base tag with the current object's 'absolute_url'. I think > this is still broken in CMFDecor, however. > Aha! My custom 'standard_html_header" was missing that code (probably for hysterical reasons). I inserted... ...and now everything works as it should. -- Thanks -- Loren From bryan_lists@netmeme.org Thu Oct 11 05:24:01 2001 From: bryan_lists@netmeme.org (Bryan Field-Elliot) Date: 10 Oct 2001 22:24:01 -0600 Subject: [Zope-CMF] Hard time grokking Zope-CMF In-Reply-To: <3BC4378A.7030309@zope.com> References: <1002681182.23911.4.camel@c1593933-a.boulder1.co.home.com> <20011010113342.C2753@lenin.jamkit.com> <3BC4378A.7030309@zope.com> Message-ID: <1002774241.23919.26.camel@c1593933-a.boulder1.co.home.com> --=-wuBzMFWeLMwY0FNO1sny Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK, that's helpful, thanks -- some follow-on questions/comments: 1. Please -- for the sake of all newbies -- put something on the CMF home page which explains what Zope CMF is and isn't, particularly relative to what people probably expect when they are coming to check out "a CMS system". (e.g. it's really more portal/personalization/community, than classical CMS which would typical include content editors, layout designers, workflow, etc). 2. Is the Zope CMF workflow component the same as DCWorkflow? If not, how do they differ? 3. I'm interested in the metadata piece, but again, am having a hard time grokking it. I've been playing with zope for a couple of weeks now. What I've come away with, is that to create your own "content type", you create your own ZClass, and define your own properties and methods. Frankly, I think it's a great mechanism and can't imagine it done any better. But the Zope CMF metadata section appears to take some kind of different approach. Is there any document anywhere which compares and contrasts the two approaches, particularly with respect to which approach is more appropriate under which circumstances? Thanks again, Bryan On Wed, 2001-10-10 at 05:56, Tres Seaver wrote: seb bacon wrote: =20 > * Bryan Field-Elliot [011010 06:19]: >=20 >>For example -- who exactly is doing most of the content creation in Z= ope >>CMF -- is it site operators, or is it end-users? A CMS system is >>typically used by site staff to maintain the site -- defining content >>types, roles, workflow, etc. However, in Zope CMF, I see an awful lo= t >>of stuff related to end-users personalizing their home page, >>contributing messages or discussion threads, etc -- not really >>"classical content", but rather, it's community and portal stuff. So = the >>"Content Management" moniker doesn't seem to fit so neatly as, say, >>"portal, personalization, and community" might. >> >=20 > You're absolutely right - you *see* things relating to a community > portal. But what you see isn't the CMF, it's the CMFDefault demo > site. In a nutshell, the CMF is a *toolkit* for solving particular C= M > problems like workflow and personalisation.=20 > Here's a list of the problems the CMF + Zope solves so far:=20 >=20 > - workflow > - metadata (Dublin Core) > - membership & roles-based security > - personalisation > - skins (content and presentation cleanly separated) > - multiple user interfaces (TTW, FTP, webDAV) > - content syndication > - indexing > - rolling back actions (undoing) >=20 > It doesn't have a solution for authors to create and edit web pages > based on complex templates, which I think a lot of people need; this > is in the pipeline for the next version. >=20 > There is nothing about the toolset which means you have to use it for > "portal, personalization, and community". The reason many people get > this impression is because the demo site supplied with the CMF > fulfills this role. I think in terms of a graphics toolkit. The CMF > is like GTK+: it provides widgets which solve common (GUI/CMS) > problems. CMFDefault is like Gnome: it uses the underlying toolkit t= o > meet a specific requirement (Desktop / Community Portal). =20 To extend Seb's excellent reply, I'll provide some "hysterical" backgro= und. =20 The CMF (n=E9 PTK, for Portal Toolkit) was originally planned as a set = of tools for allowing people to build Zope.org-like sites. While these *a= re* "community" or "portal" sites, they are also "content management" sites= ; such sites distribute the content creation role (not just discussions, = but documents, software, images, etc.) across their entire membership. =20 During its lifetime, we (Zope Corp, n=E9 Digital Creations :) have used= it on several consulting gigs for which community-originated content was *not= * part of the customer's (immediate) goals. In particular, we used it to build the CMS for two large, multi site New Media company, where their producers develop and share content among multiple "properties". Both customers' needs contributed significantly to the evolution of the CMF'= s architecture, and we continue to propoose and build such solutions atop the CMF today. =20 Hope that helps clarify, =20 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 =20 =20 _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf =20 See http://www.zope.org/Products/PTK/Tracker for bug reports and featur= e requests =20 =20 --=-wuBzMFWeLMwY0FNO1sny Content-Type: text/html; charset=utf-8 OK, that's helpful, thanks -- some follow-on questions/comments:

1. Please -- for the sake of all newbies -- put something on the CMF home page which explains what Zope CMF is and isn't, particularly relative to what people probably expect when they are coming to check out "a CMS system". (e.g. it's really more portal/personalization/community, than classical CMS which would typical include content editors, layout designers, workflow, etc).

2. Is the Zope CMF workflow component the same as DCWorkflow? If not, how do they differ?

3. I'm interested in the metadata piece, but again, am having a hard time grokking it. I've been playing with zope for a couple of weeks now. What I've come away with, is that to create your own "content type", you create your own ZClass, and define your own properties and methods. Frankly, I think it's a great mechanism and can't imagine it done any better. But the Zope CMF metadata section appears to take some kind of different approach. Is there any document anywhere which compares and contrasts the two approaches, particularly with respect to which approach is more appropriate under which circumstances?

Thanks again,

Bryan


On Wed, 2001-10-10 at 05:56, Tres Seaver wrote:
seb bacon wrote:

> * Bryan Field-Elliot <bryan_lists@netmeme.org> [011010 06:19]:
> 
>>For example -- who exactly is doing most of the content creation in Zope
>>CMF -- is it site operators, or is it end-users? A CMS system is
>>typically used by site staff to maintain the site -- defining content
>>types, roles, workflow, etc.  However, in Zope CMF, I see an awful lot
>>of stuff related to end-users personalizing their home page,
>>contributing messages or discussion threads, etc -- not really
>>"classical content", but rather, it's community and portal stuff. So the
>>"Content Management" moniker doesn't seem to fit so neatly as, say,
>>"portal, personalization, and community" might.
>>
> 
> You're absolutely right - you *see* things relating to a community
> portal.  But what you see isn't the CMF, it's the CMFDefault demo
> site.  In a nutshell, the CMF is a *toolkit* for solving particular CM
> problems like workflow and personalisation. 
> Here's a list of the problems the CMF + Zope solves so far: 
> 
> - workflow
> - metadata (Dublin Core)
> - membership & roles-based security
> - personalisation
> - skins (content and presentation cleanly separated)
> - multiple user interfaces (TTW, FTP, webDAV)
> - content syndication
> - indexing
> - rolling back actions (undoing)
> 
> It doesn't have a solution for authors to create and edit web pages
> based on complex templates, which I think a lot of people need; this
> is in the pipeline for the next version.
> 
> There is nothing about the toolset which means you have to use it for
> "portal, personalization, and community".  The reason many people get
> this impression is because the demo site supplied with the CMF
> fulfills this role.  I think in terms of a graphics toolkit. The CMF
> is like GTK+: it provides widgets which solve common (GUI/CMS)
> problems.  CMFDefault is like Gnome: it uses the underlying toolkit to
> meet a specific requirement (Desktop / Community Portal).

To extend Seb's excellent reply, I'll provide some "hysterical" background.

The CMF (né PTK, for Portal Toolkit) was originally planned as a set of
tools for allowing people to build Zope.org-like sites.  While these *are*
"community" or "portal" sites, they are also "content management" sites;
such sites distribute the content creation role (not just discussions, but
documents, software, images, etc.) across their entire membership.

During its lifetime, we (Zope Corp, né Digital Creations :) have used it on
several consulting gigs for which community-originated content was *not*
part of the customer's (immediate) goals.  In particular, we used it to
build the CMS for two large, multi site New Media company, where their
producers develop and share content among multiple "properties".  Both
customers' needs contributed significantly to the evolution of the CMF's
architecture, and we continue to propoose and build such solutions atop
the CMF today.

Hope that helps clarify,

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

--=-wuBzMFWeLMwY0FNO1sny-- From delza@alliances.org Thu Oct 11 05:07:49 2001 From: delza@alliances.org (Dethe Elza) Date: Wed, 10 Oct 2001 21:07:49 -0700 Subject: [Zope-CMF] Re: Grokking Zope-CMF Message-ID: <3BC51B15.8010802@alliances.org> Hi folks, The recent discussion begun by Bryan Field-Elliot's question, and carried on by Seb Bacon and Tres Seaver's answers, is very helpful, by far the best description of what the Zope CMF *is* and is *for* that I've yet seen. I agree fully with Bryan that the existing site/wiki/docs are hard to fathom, and even the answers Seb gives leave a lot unanswered to my earlier question ("What does CMF add that Zope doesn't have?"). For instance, Seb mentions undoing, multiple user interfaces, and roles-based security, which are all characteristics of vanilla Zope. Still, this is a great start and if the Wiki and documentation were focussed around these key areas it would be easier for newcomers to Zope-CMF to get started (and understand why they should) and to help spread the word of Zope-CMF more widely in the CMF field. Thanks for the toehold, now I can get climbing! --Dethe -- Dethe Elza (delza@burningtiger.com) Chief Mad Scientist Burning Tiger Technologies (http://burningtiger.com) Living Code Weblog (http://livingcode.ca) From janulrich.hasecke@web.de Thu Oct 11 08:08:27 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 11 Oct 2001 09:08:27 +0200 Subject: [Zope-CMF] Pending review broken? Message-ID: <87zo6yac2c.fsf@debian.hasecke> Hi, I think something is broken in my CMF-Site, but I do not know what. I made up a CMF-Site, some people logged in and played around.[1] Everything went fine. People submitted things, I published them. But since yesterday "Pending review" is kinda broken. Whenever I klick on "Pending review" I get a list of _all_ documents in the CMF, whether published, pending or private. I discovered that seemingly _all_ members see the "Pendings review" link in their tool box! I have not the slightest idea what I've done to mix it up. Any help? TIA juh Fußnoten: [1] If you want I will tell you something about the problems absolute beginners have with CMF. I had to write a handful of how-tos in german to tell the members how to make a news or a document, and what for are metadata and submitting. -- Brot für die Welt, Büchsenfleisch für Bayern http://www.sudelbuch.de/2000/20001219.html From janulrich.hasecke@web.de Thu Oct 11 08:28:17 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 11 Oct 2001 09:28:17 +0200 Subject: [Zope-CMF] Pending review broken? In-Reply-To: <87zo6yac2c.fsf@debian.hasecke> References: <87zo6yac2c.fsf@debian.hasecke> Message-ID: <87vghmab5a.fsf@debian.hasecke> Jan Ulrich Hasecke writes: > I discovered that seemingly _all_ members see the "Pendings review" > link in their tool box! This is not correct, sorry. I just joined the CMF with a new name, and saw _no_ link to Pending review. So now I got a vague idea, what could be the reason. I have two accounts on that CMF. Say "admin" and "juh". "admin" is the not a real member of the CMF but the superuser of the Zope Installation. In the Zope Root Folder in acl_user there is "admin" In the CMF Site Members Folder there is "juh" Now I wrote a document as "juh" (Member of CMF Site) submitted it, logged out, logged in as "admin" (At the CMF Join page) and published the document. Maybe doing this with the same browser I mixed up something. But what? Ciao! juh -- Roland Koch, Marc Dutroux und die BSE-Dividende http://www.sudelbuch.de/2000/20001220.html From marcbpc@gmx.de Thu Oct 11 08:51:12 2001 From: marcbpc@gmx.de (Marc Fischer) Date: Thu, 11 Oct 2001 09:51:12 +0200 (MEST) Subject: [Zope-CMF] AUTHENTICATED_USER.has_role and local roles References: <27351.1002785528@www20.gmx.net> Message-ID: <17710.1002786672@www20.gmx.net> Hi, I just noticed a little problem. In the index_html of my cmf site, I check a link with the following command before displaying it: xxx That works fine if the user has the original 'Manager' role. But If I assign only the local role 'Manager' to him in the root of the cmf site - which should do the same thing, I think -he does not get displayed the link! Perhaps someone could help ... Thank you, Marc -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From seb@jamkit.com Thu Oct 11 11:34:38 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 11 Oct 2001 11:34:38 +0100 Subject: [Zope-CMF] How to tell what action has been called Message-ID: <20011011113424.A6343@lenin.jamkit.com> How can I find out which action has been called on an object just before its publication? At the moment, I'm using a BeforeTraverse hook to snarf the TraversalRequestNameStack. Then I'm walking the stack comparing each method in turn to each method in the object's TypeInfo actions list. When they match I have found the correct action. This feels very wrong, and very inefficient. Can anyone think of any better ways of doing this? def __call__(self, client, request, response=None): stack = request['TraversalRequestNameStack'] myAction = None stack.reverse() ti = self.getTypeInfo() if ti is not None: actions = ti.getActions() for stackItem in stack: for a in actions: if a['action'] == stackItem: myAction = a['id'] break # do stuff with myAction, before I get published In case you're wondering what I'm up to, here's an explanation, which is entirely optional reading ;-) A question which arises when making composite content is what action should be performed on components which are in slots. In the following example, FooTemplate is a page layout which contains an image and a document in slot 1 and slot 2. When the 'view' action is performed on the FooTemplate, what should the action be which is performed on the slots? FooTemplate/view | `- image_1/view | `- document_1/view In this diagram, I'm having the slots perform the same action as the Template, but I think the concept is much more powerful (and generalised) if you can map Template actions to slot actions arbitrarily. I've set up a kind of actions mapping registry, but now I need to know what action has been performed on the Template before it is published, in order to look up the information for its respective slots. cheers, seb From richard.ettema@yoursolutions.co.uk Thu Oct 11 10:52:28 2001 From: richard.ettema@yoursolutions.co.uk (Richard Ettema) Date: Thu, 11 Oct 2001 10:52:28 +0100 Subject: [Zope-CMF] DC Workflow and 'Status History' Message-ID: Hi, I have installed DCWorkflow 0.4.1 and have used the default setup as a workflow for a portal type. A great tool, but I cannot work out what I need to change to get the 'Status History' link to appear on the users action options (or is this unavailable in the DCWorkflow returned actions). I also have the problem that an action of 'None' is stored in the status history when the object is created. This all works fine using the Default CMF Workflow. Any ideas? Thanks for your help. Richard From jens@zope.com Thu Oct 11 12:36:51 2001 From: jens@zope.com (Jens Vagelpohl) Date: Thu, 11 Oct 2001 07:36:51 -0400 Subject: [Zope-CMF] AUTHENTICATED_USER.has_role and local roles In-Reply-To: <17710.1002786672@www20.gmx.net> Message-ID: <43969FCF-BE3C-11D5-8E29-003065C04F34@zope.com> use getRolesInContext instead:: ... it takes local roles into account by making sure to check in the context of the object you pass along. jens On Thursday, October 11, 2001, at 03:51 , Marc Fischer wrote: > Hi, > > I just noticed a little problem. In the index_html of my cmf site, I > check a > link with the following command before displaying it: > > > xxx > > > That works fine if the user has the original 'Manager' role. But If I > assign > only the local role 'Manager' to him in the root of the cmf site - which > should do the same thing, I think -he does not get displayed the link! > > Perhaps someone could help ... > > Thank you, Marc > > From samuele.brignoli@darpha.com Thu Oct 11 13:30:20 2001 From: samuele.brignoli@darpha.com (Samuele Brignoli) Date: Thu, 11 Oct 2001 14:30:20 +0200 Subject: [Zope-CMF] Dreamweaver + Webdav, only little ideas In-Reply-To: <000801c14c1d$4c114f90$5100000a@jaime> Message-ID: Hi all, I'm a novice and I'm searching a way to modify Zope templates from my local computer via WebDav. I've discovered that DW does't appreciate too much the DTML code, so which is the best choice to manipulate visually the templates? Maybe ZPT, but I'm working with CMF and I have some doubts about the integration of this two Components. Tomorrow I have a briefing with a customer, I have to solve the problem of updating site. Maybe the idea of creating new Contetn Types in CMF, with the proper skin is the only successfull. But if that how can I create new content types, where is the documentation ? Please help me, give me some guidelines... --kako From tseaver@zope.com Thu Oct 11 13:40:48 2001 From: tseaver@zope.com (Tres Seaver) Date: Thu, 11 Oct 2001 08:40:48 -0400 Subject: [Zope-CMF] Re: cmf on windows References: Message-ID: <3BC59350.2060502@zope.com> Markus Wolfsbauer wrote: > you have posted following on zope.org: >=20 > CMF 1.1 should work fine on a Zope 2.4.1 box (the note on the CMF site > says, "*not* 2.4a1", which was the *alpha* release of 2.4). That page > also says, "Zope 2.3.2 or later" -- Zope 2.3.3 is definitely OK. > I just tested, and CMF 1.1 runs fine on Zope 2.4.1. >=20 > question: is there a install-manual for windows. i copyied the cmf-dire= ctory > to program files/zope/products. but i can=B4t find it in > control_panel/products afer restarting zope. There is no separate set of installation instructions for Windows. The INSTALL.txt for the CMF says: * Link (or copy/move) the CMF packages into $INSTANCE_HOME/Products. For instance: $ cd /var/zope/Products $ ln -s /usr/local/zope/CMF-1.1/CMF* . The Windows equivalent (copying, rather than linking) would be > cd C:\zope\Products > copy \tmp\CMF\CMF* . The trick is that the top-level directory in the tarball is *not* a Zope Produtc; it contains three Zope products. 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 seb@jamkit.com Thu Oct 11 16:07:26 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 11 Oct 2001 16:07:26 +0100 Subject: [Zope-CMF] Pending review broken? In-Reply-To: <87vghmab5a.fsf@debian.hasecke> References: <87zo6yac2c.fsf@debian.hasecke> <87vghmab5a.fsf@debian.hasecke> Message-ID: <20011011160725.A8824@lenin.jamkit.com> * Jan Ulrich Hasecke [011011 08:32]: > Jan Ulrich Hasecke writes: > > > I discovered that seemingly _all_ members see the "Pendings review" > > link in their tool box! > > This is not correct, sorry. I just joined the CMF with a new name, and > saw _no_ link to Pending review. > Maybe doing this with the same browser I mixed up something. But what? I'm not sure what your question is... ask it again :) seb From janulrich.hasecke@web.de Thu Oct 11 15:56:59 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 11 Oct 2001 16:56:59 +0200 Subject: [Zope-CMF] Pending review broken? In-Reply-To: <20011011160725.A8824@lenin.jamkit.com> References: <87zo6yac2c.fsf@debian.hasecke> <87vghmab5a.fsf@debian.hasecke> <20011011160725.A8824@lenin.jamkit.com> Message-ID: <87sncq8bt0.fsf@debian.hasecke> seb bacon writes: > I'm not sure what your question is... ask it again :) Mh, yes I mentioned two problems in one posting. Not too clever. ;-) When I klick on Pending review I see _all_ documents in the CMF no matter if they are pending, published or private. Ciao! juh -- Zwangsarbeiterentschädigung: Almosen statt Strafgericht http://www.sudelbuch.de/2001/20010309.html From tseaver@palladion.com Thu Oct 11 04:26:47 2001 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 10 Oct 2001 23:26:47 -0400 (EDT) Subject: [Zope-CMF] Pending review broken? In-Reply-To: <87sncq8bt0.fsf@debian.hasecke> Message-ID: On 11 Oct 2001, Jan Ulrich Hasecke wrote: > seb bacon writes: > > > I'm not sure what your question is... ask it again :) > > Mh, yes I mentioned two problems in one posting. Not too clever. ;-) > > When I klick on Pending review I see _all_ documents in the CMF no > matter if they are pending, published or private. This is my bad -- last week, I made one fix to the CatalogTool (to make it possible to script catalog queries without passing an explicit request) but thereby broke the search results page, which didn't expect to pass the REQUEST. I have checked in fixes for both the DTML and ZPT versions; if you have customized the 'search' page, you will need to tweak the bit which calls 'portal_catalog' (by name, in DTML) to call it as an expression, passing the REQUEST. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From dan@control.com Thu Oct 11 19:09:59 2001 From: dan@control.com (Dan L. Pierson) Date: Thu, 11 Oct 2001 14:09:59 -0400 Subject: [Zope-CMF] Hard time grokking Zope-CMF In-Reply-To: <1002774241.23919.26.camel@c1593933-a.boulder1.co.home.com> Message-ID: <11120000.1002823799@daystar.control.com> --On Wednesday, October 10, 2001 10:24:01 PM -0600 Bryan Field-Elliot wrote: > 2. Is the Zope CMF workflow component the same as DCWorkflow? If not, how > do they differ? The Zope CMF workflow component is a simple canned workflow designed to be customized by replacing the Python code that implements it. DCWorkflow is a later generation through the web programmable workflow system which includes a full emulation of the CMF workflow. From dan@control.com Thu Oct 11 19:14:55 2001 From: dan@control.com (Dan L. Pierson) Date: Thu, 11 Oct 2001 14:14:55 -0400 Subject: [Zope-CMF] Dreamweaver + Webdav, only little ideas In-Reply-To: Message-ID: <12300000.1002824095@daystar.control.com> As I understand it, this problem is exactly why ZPT was invented. Unfortunately, ZPT support for CMF is still a bit rough. If you can work with the CVS version of CMF and track evolving bug fixes, the CMFDecor product provides ZPT skins (i.e. ZPT support) for the CMF. Since it's so new, this is not the best documented area of the CMF... --On Thursday, October 11, 2001 02:30:20 PM +0200 Samuele Brignoli wrote: > > Hi all, > > I'm a novice and I'm searching a way to modify Zope templates from my > local computer via WebDav. I've discovered that DW does't appreciate too > much the DTML code, so which is the best choice to manipulate visually > the templates? Maybe ZPT, but I'm working with CMF and I have some doubts > about the integration of this two Components. Tomorrow I have a briefing > with a customer, I have to solve the problem of updating site. Maybe the > idea of creating new Contetn Types in CMF, with the proper skin is the > only successfull. But if that how can I create new content types, where > is the documentation ? > > Please help me, give me some guidelines... > > --kako > > > _______________________________________________ > 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 c.duncan@nlada.org Thu Oct 11 19:59:12 2001 From: c.duncan@nlada.org (Casey Duncan) Date: Thu, 11 Oct 2001 14:59:12 -0400 Subject: [Zope-CMF] MetaZope.org In-Reply-To: <3BC2F7FA.1D6B9CAA@nipltd.com> References: <3BC2F7FA.1D6B9CAA@nipltd.com> Message-ID: On Tuesday 09 October 2001 09:13 am, Chris Withers allegedly wrote: > Hello... > > Just found this: > http://metazope.org/metazope > > Looks kindof funky, no? > > Apparently you can get it from: > http://zope.org/Members/runyaga/CMFPloneSkin > > It needs CSS, but it's still proof that Zope doesn't _have_ to look butt > ugly ;-) > > Chris The funny thing is I suggested the idea for this site on the #zope chat one Saturday and by Monday there was a CMF/ZEO based site running on two continents. Now we just need some content, that and another few hours in a day... 8^) Runyaga gets the credit for the great skin. I myself am still a CMF newbie, but we've all gotta start somewhere... /---------------------------------------------------\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association c.duncan@nlada.org \---------------------------------------------------/ From tkovacs@e-park.hu Fri Oct 12 08:42:45 2001 From: tkovacs@e-park.hu (=?iso-8859-2?Q?Kov=E1cs_Tibor?=) Date: Fri, 12 Oct 2001 09:42:45 +0200 Subject: [Zope-CMF] I don't see the document that I created... Message-ID: <001201c152f1$7b795630$2502a8c0@eurotrend.hu> This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C15302.3EB2CDB0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable I created a document in the root folder of my portal as manager , then I = published it. Now I couldn't see it. Why? Is there a step by step documentation for beginners? Thanks Karika ------=_NextPart_000_000F_01C15302.3EB2CDB0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
I created a document in the root folder = of my=20 portal as manager , then I published it.
Now I couldn't see = it.
Why?
 
Is there a step by step = documentation for=20 beginners?
 
Thanks
 
Karika
------=_NextPart_000_000F_01C15302.3EB2CDB0-- From seb@jamkit.com Fri Oct 12 11:25:54 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 12 Oct 2001 11:25:54 +0100 Subject: [Zope-CMF] what's _implicit__name__? Message-ID: <20011012112554.E1115@lenin.jamkit.com> I'm doing some introspection on class methods in the CMF; however, some of them are workflow-wrapped methods. I notice that such methods have an _implicit__name__ attribute, as well as WorkflowCore-supplied _id and _m attributes (which refer to the 'real' method). What would the best, most generic way of making sure I get the 'real' method be? Does _implicit__name__ imply a wrapped method? Or does 'wrapping' only exist in specific forms such as WorkflowMethod, rather than a generalised format? Cheers seb From jmeile@hotmail.com Fri Oct 12 11:56:25 2001 From: jmeile@hotmail.com (Josef Albert Meile) Date: Fri, 12 Oct 2001 10:56:25 -0000 Subject: [Zope-CMF] How to check if an object exists? Message-ID: <9q6i8p+b0kf@eGroups.com> How can I know if an object (ie: a picture) exists? I have its url, let's say: http://localhost:8080/MainPortal/myObjects/test I know I can make a loop with the "dtml-in" tag, but it isn't the best solution, for if you have too much objects on the folder, it will take too long. I have tried to do the following but I got an error because the resource doesn't exists: This resource exist This resource doesn't exist. I don't have this error when the object exists. What can I do to know if it exists? From seb@jamkit.com Fri Oct 12 12:55:44 2001 From: seb@jamkit.com (seb bacon) Date: Fri, 12 Oct 2001 12:55:44 +0100 Subject: [Zope-CMF] How to check if an object exists? In-Reply-To: <9q6i8p+b0kf@eGroups.com> References: <9q6i8p+b0kf@eGroups.com> Message-ID: <20011012125543.G1115@lenin.jamkit.com> * Josef Albert Meile [011012 11:59]: > How can I know if an object (ie: a picture) exists? > ('http://localhost:8080/MainPortal/myObjects/test')"> > This resource exist > > This resource doesn't exist. > resolve_url raises the same error that a normal HTTP request would, e.g. NotFound, so you could do the following, for example: Supah. Oh dear. seb From ueck@net-labs.de Fri Oct 12 13:21:50 2001 From: ueck@net-labs.de (Ulrich Eck) Date: Fri, 12 Oct 2001 14:21:50 +0200 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> Message-ID: <009e01c15318$78026d30$3300000a@work01> Hello I just want to jump into the Workflow Discussion. I had many thoughts on how to integrate an Activity-based Workflow into the CMF smoothly too, without a perfect solution yet. As far as I can see right now, it would be good to create a new tool e.g. portal-activity/portal-task or whatever it will be called. This tool holds different process-definitions and is based on the portal-worklfow-tool (optimally the interface could be used without major modifications). I see the activity-tool as a coordinator for Application-objects that internally use the portal-workflow (DCWorkflow/hardcoded ...). The activity-tool leads the participant to the application/task which is finished when it reaches a certain state. Then transitions defined in the activity-tool can be made (manually/automatically). Worklists can be used to determine which activities are open depending on the participants information of a ProcessDefinition. A participant can be a person/group/machine. Does this alltogether make sense ?? I'm talking with Vinzenco Di Somma, who's working on OpenFlow, about these issues as well and perhaps we could bundle our interests and capacity into a shared project. I still like the wf-mc concept (www.wfmc.org), cause it covers a fairly complete specification of a Actifity/Task-Workflow. This is why I'm interested to bring in the work of Vinzenco into the new CMF-Workflow we're working on. For me it's beyond my imagination to create use-cases for all possible usages of an Activity-based Workflow, but every example that came to my little brain, could be solved with this solution. > >How is WarpCore doing? Been too busy to keep up with it. > > I've been too busy to work on TransWarp much lately. WarpCORE has long ago > been in production use as a base schema for our Sybase application > databases, however, and Ty has made prototype versions of the WarpCORE > kernel schema for Firebird/Interbase and PostgreSQL. I've also begun a > draft of documentation for the WarpCORE design patterns and kernel, but > have no schedule for completing it. > 1. What exactly is WARPCore? 2. Is there some code that I could see to find out what it does ?? I'm searching for a Relational<->Object Binding and would contribute a shema for SAP-DB if possible. thanks for your answers Ulrich Eck net-labs Systemhaus GmbH ueck@net-labs.de From pje@telecommunity.com Fri Oct 12 14:30:07 2001 From: pje@telecommunity.com (Phillip J. Eby) Date: Fri, 12 Oct 2001 08:30:07 -0500 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. In-Reply-To: <009e01c15318$78026d30$3300000a@work01> References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> Message-ID: <5.1.0.14.0.20011012081421.00a88230@telecommunity.com> At 02:21 PM 10/12/01 +0200, Ulrich Eck wrote: >As far as I can see right now, it would be good to create a new tool >e.g. portal-activity/portal-task or whatever it will be called. > >This tool holds different process-definitions and is based on the >portal-worklfow-tool (optimally the interface could be used >without major modifications). > >I see the activity-tool as a coordinator for Application-objects >that internally use the portal-workflow (DCWorkflow/hardcoded ...). > >The activity-tool leads the participant to the application/task which >is finished when it reaches a certain state. Then transitions defined >in the activity-tool can be made (manually/automatically). > >Worklists can be used to determine which activities are open depending >on the participants information of a ProcessDefinition. > >A participant can be a person/group/machine. > >Does this alltogether make sense ?? Not to me, but I'm probably blinded by viewing this through the lenses of my "waiter-for" model perspective. What you're saying above sounds like overkill to me, as I don't think it's necessary to modify the existing CMF at all in order to do more complex workflows. At most, DCWorkflow might need some extra features, but I'm not sure even that would be necessary. > > >How is WarpCore doing? Been too busy to keep up with it. > > > > I've been too busy to work on TransWarp much lately. WarpCORE has long > ago > > been in production use as a base schema for our Sybase application > > databases, however, and Ty has made prototype versions of the WarpCORE > > kernel schema for Firebird/Interbase and PostgreSQL. I've also begun a > > draft of documentation for the WarpCORE design patterns and kernel, but > > have no schedule for completing it. > > > >1. What exactly is WARPCore? >2. Is there some code that I could see to find out what it does ?? I'm >searching >for a Relational<->Object Binding and would contribute a shema for >SAP-DB if possible. Here's the "Overview" section from the documentation... which is in fact all I've written so far. Any further discussion of WarpCORE should probably go to the TransWarp list, which I've cc:'d on this e-mail, since it has little relevance to the CMF. ====== Overview WarpCORE is a set of patterns for implementing "business object" applications in relational databases. Truly implementing business objects requires not only "object" concepts like classes, polymorphism, interfaces, and object composition, but also "business" concepts such as relationships and historical event records. Further, creating practical applications usually requires interaction with "legacy" applications or other systems/databases which are not a part of the new application. WarpCORE addresses most of these requirements with only a few tables and stored procedures. A typical base WarpCORE implementation, depending on the specific database platform, may need as few as 7 tables and 13 stored procedures, many of which can be eliminated if they are not needed for that application. WarpCORE is also highly cross-platform, with production DDL already in existence for Sybase, and prototypes written for Interbase/Firebird, and PostgreSQL. Porting to other databases (as long as they have transactions and stored procedures) should be straightforward, since WarpCORE tends towards least-common-denominator SQL features. Unlike many object-relational approaches, however, WarpCORE still allows for very high-performance applications, by leveraging the relational database's strengths. WarpCORE uses a "table per interface" approach which allows each interface to have indexes specifically tuned for that interface's requirements. It also uses a stored-procedure manipulation pattern that makes it easy to hide any denormalizations introduced for performance enhancement. Although the creators of WarpCORE prefer using Python to most any other language, and mostly develop web applications, there is nothing particularly Pythonic or web-oriented in WarpCORE, as it is a set of design patterns for relational databases, not applications per se. (There are a few fields in the standard "tw_classes" table which are useful for web-based applications, but their use is subject to application interpretation anyway, so there's nothing stopping you from using them for something else or omitting them altogether.) Indeed, WarpCORE databases are quite usable from other languages besides Python. For example, Java offers many object-relational mapping libraries that should work without modification against WarpCORE databases, once the appropriate mappings are defined. For example, ArsDigita's ACS system includes a "persistence definition language", PDL, which is rather ideally suited to using WarpCORE objects for persistence. By contrast, PyDO, the closest equivalent to PDL available for Python, would require quite a bit of extension to work well with schemas based on WarpCORE, or at minimum the addition of extra views to the schemas. We hope to remedy this situation in the future by creating a TransWarp "horizontal framework" for mapping Python objects to/from WarpCORE database schemas. ====== So, as you can see, WarpCORE is *not* an O-R binding or mapping tool, it's a set of modelling patterns for schemas, a set of idioms for organizing data. If I document it well, I think it will turn out to be a full-blown "pattern language". But it's not software, even though at some point TransWarp will evolve to include code that's specialized for use with schemas modelled with it. Currently, the single production WarpCORE application is actually based on Zope+ZPatterns, but Ty and I have just begun work on porting it to ZLite+TransWarp. This should result in enhancements to both ZLite and TransWarp, probably including some kind of database mapping tools, since the target application has both WarpCORE-on-Sybase and LDAP datasets that it works with. From aboulanger@vpatch.com Fri Oct 12 15:19:20 2001 From: aboulanger@vpatch.com (Albert Boulanger) Date: Fri, 12 Oct 2001 10:19:20 -0400 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> <5.1.0.14.0.20011012081421.00a88230@telecommunity.com> Message-ID: <3BC6FBE8.326CEDC2@vpatch.com> Phillip writes: > > Not to me, but I'm probably blinded by viewing this through the lenses of > my "waiter-for" model perspective. What you're saying above sounds like > overkill to me, as I don't think it's necessary to modify the existing CMF > at all in order to do more complex workflows. At most, DCWorkflow might > need some extra features, but I'm not sure even that would be necessary. > To me, the approach taken by wfmc represents best practice of a group of companies building workflow systems. Many workflow systems have used this model and to me there two main advantages: 1) Avoid reinventing the wheel. 2) Interoperability with other workflow systems or other workflow design packages designed to work with the wfmc model. Regards, Albert Boulanger aboulanger@vpatch.com From shane@zope.com Fri Oct 12 16:04:08 2001 From: shane@zope.com (Shane Hathaway) Date: Fri, 12 Oct 2001 11:04:08 -0400 Subject: [Zope-CMF] what's _implicit__name__? References: <20011012112554.E1115@lenin.jamkit.com> Message-ID: <3BC70668.9060803@zope.com> seb bacon wrote: > I'm doing some introspection on class methods in the CMF; however, > some of them are workflow-wrapped methods. I notice that such methods > have an _implicit__name__ attribute, as well as WorkflowCore-supplied > _id and _m attributes (which refer to the 'real' method). > > What would the best, most generic way of making sure I get the 'real' > method be? Does _implicit__name__ imply a wrapped method? Or does > 'wrapping' only exist in specific forms such as WorkflowMethod, rather > than a generalised format? _implicit__name__ is actually found in App/class_init.py and its purpose is to warn you when you're using security declarations ambiguously. It doesn't really have anything to do with wrapping. I'm not sure that there is a generic way to unwrap wrappers like these, though maybe you can achieve what you want by making WorkflowMethods more closely emulate the methods they wrap. You could provide __doc__, func_code, func_defaults, etc. Shane From rowegg@telocity.com Fri Oct 12 16:09:35 2001 From: rowegg@telocity.com (Gerard Rowe) Date: Fri, 12 Oct 2001 11:09:35 -0400 Subject: [Zope-CMF] CMF and 2.4.1 Message-ID: Pardon my ignorance but I'd like to know if CMF 1.1 can be used with Zope 2.4.1 or do I have to get it from CVS? Thanks. From tseaver@palladion.com Fri Oct 12 04:16:10 2001 From: tseaver@palladion.com (Tres Seaver) Date: Thu, 11 Oct 2001 23:16:10 -0400 (EDT) Subject: [Zope-CMF] CMF and 2.4.1 In-Reply-To: Message-ID: On Fri, 12 Oct 2001, Gerard Rowe wrote: > Pardon my ignorance but I'd like to know if CMF 1.1 can be used with Zope > 2.4.1 or do I have to get it from CVS? Yes, CMF 1.1 works with Zope 2.4.1 (Zope 2.4a1 broke the CMF badly, but that was back in June). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From scott.meilicke@intp.com Fri Oct 12 16:16:11 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Fri, 12 Oct 2001 08:16:11 -0700 Subject: [Zope-CMF] CMF and 2.4.1 Message-ID: I'm running it with no problems. -----Original Message----- From: Gerard Rowe [mailto:rowegg@telocity.com] Sent: Friday, October 12, 2001 8:10 AM To: zope-cmf@zope.org Subject: [Zope-CMF] CMF and 2.4.1 Pardon my ignorance but I'd like to know if CMF 1.1 can be used with Zope 2.4.1 or do I have to get it from CVS? Thanks. _______________________________________________ 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 scott.meilicke@intp.com Fri Oct 12 16:28:06 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Fri, 12 Oct 2001 08:28:06 -0700 Subject: [Zope-CMF] I don't see the document that I created... Message-ID: 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_01C15332.7D7BCC60 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable There an intro at http://cmf.zope.org/Members/beehive/ZWACKChap5.html that may help. =20 Regarding your specific question, do you mean you can't see it when you click on 'Folder Contents' while at the root, or that you can't see it = on the front page of your portal? All content must be exposed somehow, = such as the News Box on the right hand side of the default install. It grabs = all news items, where ever they may be, and puts them in that list. Take a = look at the news_box code in the generic skin. =20 Scott -----Original Message----- From: Kov=E1cs Tibor [mailto:tkovacs@e-park.hu] Sent: Friday, October 12, 2001 12:43 AM To: zope-cmf@zope.org Subject: [Zope-CMF] I don't see the document that I created... I created a document in the root folder of my portal as manager , then = I published it. Now I couldn't see it. Why? =20 Is there a step by step documentation for beginners? =20 Thanks =20 Karika ------_=_NextPart_001_01C15332.7D7BCC60 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
There=20 an intro at http://cmf.= zope.org/Members/beehive/ZWACKChap5.html that=20 may help.
 
Regarding your specific question, do you mean you can't see it = when you=20 click on 'Folder Contents' while at the root, or that you can't see it = on the=20 front page of your portal?  All content must be exposed somehow, = such as=20 the News Box on the right hand side of the default install.  It = grabs all=20 news items, where ever they may be, and puts them in that list.  = Take a=20 look at the news_box code in the generic skin.
 
Scott
-----Original Message-----
From: Kov=E1cs Tibor=20 [mailto:tkovacs@e-park.hu]
Sent: Friday, October 12, 2001 = 12:43=20 AM
To: zope-cmf@zope.org
Subject: [Zope-CMF] I = don't see=20 the document that I created...

I created a document in the root = folder of my=20 portal as manager , then I published it.
Now I couldn't see = it.
Why?
 
Is there a step by step = documentation for=20 beginners?
 
Thanks
 
Karika
------_=_NextPart_001_01C15332.7D7BCC60-- From e.disomma@icube.it Fri Oct 12 17:20:02 2001 From: e.disomma@icube.it (Vincenzo Di Somma) Date: Fri, 12 Oct 2001 18:20:02 +0200 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> <5.1.0.14.0.20011012081421.00a88230@telecommunity.com> Message-ID: <3BC71832.8070002@icube.it> Phillip J. Eby wrote: > At 02:21 PM 10/12/01 +0200, Ulrich Eck wrote: > >> As far as I can see right now, it would be good to create a new tool >> e.g. portal-activity/portal-task or whatever it will be called. >> >> This tool holds different process-definitions and is based on the >> portal-worklfow-tool (optimally the interface could be used >> without major modifications). >> >> I see the activity-tool as a coordinator for Application-objects >> that internally use the portal-workflow (DCWorkflow/hardcoded ...). >> >> The activity-tool leads the participant to the application/task which >> is finished when it reaches a certain state. Then transitions defined >> in the activity-tool can be made (manually/automatically). >> >> Worklists can be used to determine which activities are open depending >> on the participants information of a ProcessDefinition. >> >> A participant can be a person/group/machine. >> >> Does this alltogether make sense ?? > > > > Not to me, but I'm probably blinded by viewing this through the lenses > of my "waiter-for" model perspective. What you're saying above sounds > like overkill to me, as I don't think it's necessary to modify the > existing CMF at all in order to do more complex workflows. At most, > DCWorkflow might need some extra features, but I'm not sure even that > would be necessary. Hi all, First of all, sorry for my english :) I`m an OpenFlow developer and I`m very interested in this discussion, I don`t want to start a flame, I`ve good experience in 'activity based' workflow but not to much in 'entity based', so it could be interesting for me to understand this approach. We`ve started the OpenFlow development following as much as possible the WfMC interfaces (and, in the next release we`ll do it better) because, even if it isn`t the smartest way, is certainly stable, well tested, as much general purpouse as possible and is often well appreciated by the customers who fells itself more guaranteed. IMO, there are situations in which follow the status changes of an object is all you need for your application, but often the activity based workflow are the natural way to describe business processes and, for great or strange process, the fastest way to design the flow. Lots of problems described in the thread find simple solutions with this approach.Companies, often, have well defined (and activity based) procedures and they wants applications that can help them to work better. So you have a good description of their processes when you start your work, what is the advantage of remap the activity based processes in entity based? Moreover, a fundamental workflow function is the processes, activities and eployees, monitoring and statistic reports, important because helps quality enanchements, process optimizations and offers good corporative decisions support. Can 'entity based' approach offer this features with the same flexibility of the 'activity based' ? The last thing I want to consider is that the most important commercial WfMS are tryng to hide lots of implementative details to the users and even to the developers, giving them natural tools to develop workflow based applications, IMO excluding an important design approach as the 'activity based' is, can make work more difficult for a lot of developers who use commercial system and are searching for good opensource workflow tools till they will not use it at all. All comments are welcome ;) -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: e.disomma@icube.it WWW: www.icube.it Tel: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588 From jmeile@hotmail.com Fri Oct 12 18:31:18 2001 From: jmeile@hotmail.com (Josef Albert Meile) Date: Fri, 12 Oct 2001 19:31:18 +0200 Subject: [Zope-CMF] How to check if an object exists? References: <9q6i8p+b0kf@eGroups.com> <20011012125543.G1115@lenin.jamkit.com> Message-ID: > resolve_url raises the same error that a normal HTTP request would, > e.g. NotFound, so you could do the following, for example: > > > ('http://localhost:8080/MainPortal/myObjects/test')"> > Supah. > > Oh dear. > > > seb Thank you very much for your answer. You gave me the right hint. However, it doesn't work with the "Not Found" Error on the tag. I don't know why. So I had to do the following and now it works: Object Found Object not found. From kent@goathill.org Fri Oct 12 19:18:12 2001 From: kent@goathill.org (Kent Polk) Date: 12 Oct 2001 18:18:12 GMT Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. In-Reply-To: <3BC71832.8070002@icube.it> Message-ID: <1002910692.403700@fezzik.endicor.com> On 12 Oct 2001 12:30:00 -0500, Vincenzo Di Somma wrote: > Hi all, > > I`m an OpenFlow developer and I`m very interested in this discussion, I > don`t want to start a flame, I`ve good experience in 'activity based' > workflow but not to much in 'entity based', so it could be interesting > for me to understand this approach. Suppose that a small effort to fund the initial development of a working, example task-workflow engine was available, could we come up with a description of it? I'll be the first to admit that this stuff is over my head, but I know the type of capabilitity I need and I have an idea of the fundamental requirements. From shane@zope.com Fri Oct 12 19:16:03 2001 From: shane@zope.com (Shane Hathaway) Date: Fri, 12 Oct 2001 14:16:03 -0400 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> <5.1.0.14.0.20011012081421.00a88230@telecommunity.com> <3BC71832.8070002@icube.it> Message-ID: <3BC73363.5000403@zope.com> Vincenzo Di Somma wrote: > I`m an OpenFlow developer and I`m very interested in this discussion, I > don`t want to start a flame, I`ve good experience in 'activity based' > workflow but not to much in 'entity based', so it could be interesting > for me to understand this approach. I also need to understand activity-based workflow better. Let's compare the two approaches, maybe that will help. - How do you begin a workflow? With DCWorkflow, you create an object and it is automatically put in an initial workflow state. - How does the user interact with workflow? With DCWorkflow, the CMF actions box is populated with actions corresponding to transitions. - How do you implement subflows? With DCWorkflow and the portal_types tool, you can set up objects that get stored in workflowed containers. The contained objects can have partially dependent workflows. - If the model doesn't support some capability, how do you fit it in? DCWorkflow lets you use persistent variables, expressions, and scripts. (We both know WfMC, nor anyone else, can create a perfect model that lets you do everything.) > We`ve started the OpenFlow development following as much as possible the > WfMC interfaces (and, in the next release we`ll do it better) because, > even if it isn`t the smartest way, is certainly stable, well tested, as > much general purpouse as possible and is often well appreciated by the > customers who fells itself more guaranteed. I've been keeping track of OpenFlow and WfMC, but frankly, it took less time and effort to write DCWorkflow than it's taking to make sense of WfMC. :-) > IMO, there are situations in which follow the status changes of an > object is all you need for your application, but often the activity > based workflow are the natural way to describe business processes and, > for great or strange process, the fastest way to design the flow. Lots > of problems described in the thread find simple solutions with this > approach.Companies, often, have well defined (and activity based) > procedures and they wants applications that can help them to work > better. So you have a good description of their processes when you start > your work, what is the advantage of remap the activity based processes > in entity based? It sounds like you're saying activity-based workflow is more appropriate for large, complex processes, while a simple state machine is more appropriate for simple things. I still hold the opinion that if your workflow is too complex for a simple state machine, it really ought to be modeled using a programming language. Python, which is flexible, portable, fast, easy to understand, and easy to write, would be a good choice. ;-) But maybe there are companies ought there who are already sold on WfMC's workflow concepts and don't want to move. > Moreover, a fundamental workflow function is the processes, activities > and eployees, monitoring and statistic reports, important because helps > quality enanchements, process optimizations and offers good corporative > decisions support. Can 'entity based' approach offer this features with > the same flexibility of the 'activity based' ? I can answer the question, "Can 'entity based' approach offer these features?" The answer is certainly yes. I can't answer the question you asked, however, because I have not used any tools based on the WfMC. Besides OpenFlow, what tools are there? (Preferrably open source.) > The last thing I want to consider is that the most important commercial > WfMS are tryng to hide lots of implementative details to the users and even > to the developers, giving them natural tools to develop workflow based > applications. IMO excluding an important design approach as the > 'activity based' is, can make work more difficult for a lot of > developers who use commercial system and are searching for good > opensource workflow tools till they will not use it at all. Then do you agree that the goal is to integrate OpenFlow into CMF? Shane From kent@goathill.org Sat Oct 13 06:36:05 2001 From: kent@goathill.org (Kent Polk) Date: 13 Oct 2001 05:36:05 GMT Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. In-Reply-To: <3BC73363.5000403@zope.com> Message-ID: <1002951365.193396@fezzik.endicor.com> Shane Hathaway wrote: > > I also need to understand activity-based workflow better. Let's compare > the two approaches, maybe that will help. > > - How do you begin a workflow? With DCWorkflow, you create an object > and it is automatically put in an initial workflow state. > > - How does the user interact with workflow? With DCWorkflow, the CMF > actions box is populated with actions corresponding to transitions. Most of our workflows will start with a request to perform some action. This action may be to create a document or other cmf item, or to simply respond to the request with information. Or it may be to start the creation of some collaborative project. The thread of actions in the workflow should be represented by a status diagram (dtml tree layout would be sufficient, I believe). The simplist example might resemble an informal email exchange or collection of email exchanges. The status diagram would report the initial request, its status, and all other requests that were issued as children of that first request. The next level would apply specific constraints that must be met before requests are completed. While possibly DCWorkflow might suffice, I believe I need something that is easier to understand and configure to accomplish this. Possibly a superset of DCWorkflow. > - How do you implement subflows? With DCWorkflow and the portal_types > tool, you can set up objects that get stored in workflowed containers. > The contained objects can have partially dependent workflows. This is (IMO) the big difference between entity based and activity based workflow. With activity based, you don't need to create some Item to have a workflow, and indeed, much workflow doesn't revolve around creating items, but mainly passing information around, often resulting at different points in creating both temporary as well as permanent informational items. Activity-based subworkflows are not (necessarily?) related to a created item, but to a request that someone or something is waiting on or for. This is where Philip's 'waiters' concept comes in. At any point in an existing workflow, another request can be issued - for more information or for some additional requirement to be issued/created. When this request is issued, it is somehow attached to it's parent request or waiter so a status diagram can explore and report on these relationships. View Status: item name status actor [+] Req 1 Received 12/15/2000 jfk [+] Req 2 Requested 12/14/2000 gwb [-] Req 3 Received 12/14/2000 [+] Req 4 Completed 12/15/2000 --- (limit sub-wf view) [+] Req 5 Received 12/16/2000 --- [+] Req 6 Rejected 12/15/2000 --- > It sounds like you're saying activity-based workflow is more appropriate > for large, complex processes, while a simple state machine is more > appropriate for simple things. Yes! And likely the current item-specific state-machines can be used when an item is created as part of an activity-based workflow (or maybe overridden when needed). > I still hold the opinion that if your workflow is too complex for a > simple state machine, it really ought to be modeled using a programming > language. Python, which is flexible, portable, fast, easy to > understand, and easy to write, would be a good choice. ;-) Quite possibly so. But I still think that a framework is better, and I think one should be able to specify/configure the relationships separate from the code, so it looks like we are back to something like DCWorkflow. From e.disomma@icube.it Sat Oct 13 15:28:12 2001 From: e.disomma@icube.it (Vincenzo Di Somma) Date: Sat, 13 Oct 2001 16:28:12 +0200 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. References: <5.1.0.14.0.20011001111138.058810e0@telecommunity.com> <5.1.0.14.0.20011002125705.009d2ec0@telecommunity.com> <5.1.0.14.0.20011012081421.00a88230@telecommunity.com> <3BC71832.8070002@icube.it> <3BC73363.5000403@zope.com> Message-ID: <3BC84F7C.6010304@icube.it> Shane Hathaway wrote: > I also need to understand activity-based workflow better. Let's compare > the two approaches, maybe that will help. > > - How do you begin a workflow? With DCWorkflow, you create an object > and it is automatically put in an initial workflow state. In OpenFlow after the creation of a process map, the starting application generates a process instance (called Token for the moment, but which will be soon renamed ProcessInstance) that starts from the activity of "begin" kind. > - How does the user interact with workflow? With DCWorkflow, the CMF > actions box is populated with actions corresponding to transitions. The interaction between workflow and the user is basically a task assignment. There are two task assignment metodology, the "pull" and the "push". With the "pull" the system offers to the user a list of task, depending on his roles, and user chooses what to do first. For the moment is the only methodology OpenFlow supports. With the "push", another user or the system assign a task specifically to a user. The user interacts with its "ToDoList" (that will be renamed "WorkList" in the next release). In this list the user will find the task he has to do and the links to the applications. > - How do you implement subflows? With DCWorkflow and the portal_types > tool, you can set up objects that get stored in workflowed containers. > The contained objects can have partially dependent workflows. Subflows (and loops) are simply process maps, like the others. OpenFlow will support subflows and loops in the next release. > - If the model doesn't support some capability, how do you fit it in? > DCWorkflow lets you use persistent variables, expressions, and scripts. > (We both know WfMC, nor anyone else, can create a perfect model that > lets you do everything.) In the same way as DCWorkflow :) > I've been keeping track of OpenFlow and WfMC, but frankly, it took less > time and effort to write DCWorkflow than it's taking to make sense of > WfMC. :-) Regarding WfMC docs you`re perflectly right :) I`ve spent a lot of time trying to understand the meaning of some specifications, but as I said before, maybe MfMC interfaces are not the smartest, but, IMO, a good starting point. Regarding OpenFlow I`m sorry, maybe our code and docs aren`t as clear as we think they are, we`ll try to make them better, all comments are welcome :) >> IMO, there are situations in which follow the status changes of an >> object is all you need for your application, but often the activity >> based workflow are the natural way to describe business processes and, >> for great or strange process, the fastest way to design the flow. Lots >> of problems described in the thread find simple solutions with this >> approach.Companies, often, have well defined (and activity based) >> procedures and they wants applications that can help them to work >> better. So you have a good description of their processes when you >> start your work, what is the advantage of remap the activity based >> processes in entity based? > > It sounds like you're saying activity-based workflow is more appropriate > for large, complex processes, while a simple state machine is more > appropriate for simple things. > I still hold the opinion that if your workflow is too complex for a > simple state machine, it really ought to be modeled using a programming > language. Python, which is flexible, portable, fast, easy to > understand, and easy to write, would be a good choice. ;-) What I mean is that there are problems you can easily solve with 'entity based', problems you can easily solve with 'activity based'. If we offer both we surely help more developers in createing applications without python coding. > But maybe there are companies ought there who are already sold on WfMC's > workflow concepts and don't want to move. Maybe but, if we give them familiar tools maybe they will appreciate all the rest, have to say, some IT companies and universities, are following OpenFlow development and the main reason is his WfMC inspiration. >> Moreover, a fundamental workflow function is the processes, activities >> and eployees, monitoring and statistic reports, important because >> helps quality enanchements, process optimizations and offers good >> corporative decisions support. Can 'entity based' approach offer this >> features with the same flexibility of the 'activity based' ? > > I can answer the question, "Can 'entity based' approach offer these > features?" The answer is certainly yes. I can't answer the question > you asked, however, because I have not used any tools based on the WfMC. > Besides OpenFlow, what tools are there? (Preferrably open source.) I`ve seen lots of opensource projects but most of them are ad hoc workflows or in early development state. There are instead many commercial workflow management system like Plexus Floware www.plx.com and Ultimus www.ultimus.com. If this could help tell me your diffuculties with using OpenFlow so I can understand the usability problems and you could have an idea of an activity based workflow paradigm. What do you think about ? >> The last thing I want to consider is that the most important >> commercial WfMS are tryng to hide lots of implementative details to >> the users and even to the developers, giving them natural tools to >> develop workflow based applications. IMO excluding an important design >> approach as the 'activity based' is, can make work more difficult for >> a lot of developers who use commercial system and are searching for >> good opensource workflow tools till they will not use it at all. > > Then do you agree that the goal is to integrate OpenFlow into CMF? I think it will be a good idea to have an 'activity based' togheter with an 'entity base' workflow. We are working hard on OpenFlow and I think the next release (0.5) will be a mature activity based workflow engine, so if is interesting for you to add an activity based workflow in CMF we will be pleased to collaborate. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: e.disomma@icube.it WWW: www.icube.it Tel: (+39) 050 97 02 07 Fax: (+39) 050 31 36 588 From pje@telecommunity.com Sat Oct 13 19:46:08 2001 From: pje@telecommunity.com (Phillip J. Eby) Date: Sat, 13 Oct 2001 13:46:08 -0500 Subject: [Zope-CMF] Project-style workflows, DCWorkflow, SQL, etc. In-Reply-To: <1002951365.193396@fezzik.endicor.com> References: <3BC73363.5000403@zope.com> Message-ID: <5.1.0.14.0.20011013133553.05b31380@telecommunity.com> At 05:36 AM 10/13/01 +0000, Kent Polk wrote: >Shane Hathaway wrote: > > > - How do you implement subflows? With DCWorkflow and the portal_types > > tool, you can set up objects that get stored in workflowed containers. > > The contained objects can have partially dependent workflows. > >This is (IMO) the big difference between entity based and activity >based workflow. With activity based, you don't need to create some >Item to have a workflow, and indeed, much workflow doesn't revolve >around creating items, but mainly passing information around, often >resulting at different points in creating both temporary as well >as permanent informational items. > >Activity-based subworkflows are not (necessarily?) related to a >created item, but to a request that someone or something is waiting >on or for. I'm not sure that this is really a meaningful distinction. Why can't a request *be* a created item? It's going to be an object, no matter what approach you take. It might as well be a content object. I can't say that I'm an expert on workflow systems, but I've studied the formal and informal metamodels of a lot of different systems (about a dozen), both academic and commercial (including a lot of OMG/WFMC stuff), and as far as I can tell they are all essentially isomorphic. Some people prefer to use a Petri-net modelling approach where tokens move like race cars around a flowchart, others prefer to view the state machine as being contained within an object. Some systems use special restrictions on composition of flows in order to achieve certain desired properties, such as provable termination, or the ability to specify most things as a hierarchy of operations. Some systems make distinctions between tasks, assignments, and workflow instances, and others use fewer distinctions and combine concepts. I have occasionally seen "entity-oriented" workflows that are tied to work product and are not really generic workflow tools like DCWorkflow is. But as far as I can tell, DCWorkflow is "computationally complete" where workflow is concerned. The only thing it "lacks", if you can really say that, is tools for managing inter-task communication and synchronization. However, this is not due to a lack of expressivity in the model used by DCWorkflow. From sorular@netscape.net Sun Oct 14 04:13:52 2001 From: sorular@netscape.net (Hasan Kacmaz) Date: Sun, 14 Oct 2001 13:13:52 +1000 Subject: [Zope-CMF] CMF customization site does not exist? Message-ID: <3BC902F0.9070602@netscape.net> G'day As I try to get some information on how to create/modify/manage my first CMF portal, at http://cmf.zope.org/doc/FAQ/customization I get Attribute errors! are there anyother resources for these information? cheers ~hasan eg. @ http://cmf.zope.org/doc/FAQ/customization/faq28 [Zope] Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __getitem__ Troubleshooting Suggestions * 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. From jens@zope.com Sun Oct 14 15:28:13 2001 From: jens@zope.com (Jens Vagelpohl) Date: Sun, 14 Oct 2001 10:28:13 -0400 Subject: [Zope-CMF] CMF customization site does not exist? In-Reply-To: <3BC902F0.9070602@netscape.net> Message-ID: hasan, i just looked at those pages and they work for me without a problem... (both logged in and as anonymous) jens On Saturday, October 13, 2001, at 11:13 , Hasan Kacmaz wrote: > G'day > > As I try to get some information on how to create/modify/manage my first > CMF portal, at > http://cmf.zope.org/doc/FAQ/customization > I get Attribute errors! > > are there anyother resources for these information? > > cheers > > ~hasan > > eg. > > @ http://cmf.zope.org/doc/FAQ/customization/faq28 > > [Zope] > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: __getitem__ > > Troubleshooting Suggestions > > * 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. > > > _______________________________________________ > 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 sorular@netscape.net Sun Oct 14 15:32:11 2001 From: sorular@netscape.net (sorular@netscape.net) Date: Sun, 14 Oct 2001 10:32:11 -0400 Subject: [Zope-CMF] How to place Event-Folder on CMF Portals? Message-ID: <6B593AF5.0D101572.0022125C@netscape.net> G'day I installed Event folder on my zope server. I created the event folder instance inside my CMF portal but to get it appear on my portal, I have to add the following DTML: I want the eventfolder appear on my CMF portal, where can I place this DTML line? thanks in advance ~hasan __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From pc-sofa@web.de Sun Oct 14 16:10:32 2001 From: pc-sofa@web.de (Jan Mechtel) Date: Sun, 14 Oct 2001 17:10:32 +0200 Subject: [Zope-CMF] Webdav - CMF Message-ID: Hi everybody, I have setup a zope server using CMF, now I want to author content using a Editor e.g. Word 2000 or Dreamweaver, the problem is all of these can access the WebdavFolder (http://localhost:9800/) but I can not save changes to the files. I have downloaded "DAV-Explorer" a Java GUI for accessing Webdav directories, same problems, creating, deleting and geting files work, while locking is not avaible. Has anybody experience in using Zope & Webdav? best regards, hope for help Jan Mechtel ------------------------------- pc-sofa jan@pc-sofa.de Telefon: +49 (0)30 21469659 Fax: +49 (0)30 21469659 Oschatzer Ring 28 12627 Berlin Germany www.pc-sofa.de From joe@iuveno-net.de Sun Oct 14 19:56:37 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Sun, 14 Oct 2001 20:56:37 +0200 Subject: [Zope-CMF] Webdav - CMF References: Message-ID: <002901c154e1$ff37b420$1d00a8c0@iuvenonet.home> > Hi everybody, > I have setup a zope server using CMF, now I want to author content using a > Editor e.g. Word 2000 or Dreamweaver, the problem is all of these can access > the WebdavFolder (http://localhost:9800/) but I can not save changes to the > files. > > I have downloaded "DAV-Explorer" a Java GUI for accessing Webdav > directories, same problems, creating, deleting and geting files work, while > locking is not avaible. > > Has anybody experience in using Zope & Webdav? I use WebDAV quite frequently. There are issues (like you can not change file names via the windows web folder, and Windows will not know that DOC and doc are two different folders and mix them up), but it works in general. For me, uploading stuff from Word 2000 into CMF works fine. There seems to be an issue if you have lines in the document that are completely empty. I guess there is an error in the parsing module of the CMF Document implementation. But I even managed to upload docs as news, using filenames like "news_blablabla.htm and adding a corresponding regex rule to the content types tool ... Of course you'll get Word-style HTML uploaded if you use Word 2000 ... WebDrive, which unfortunately is not free, but only has a 30-day trial version, works better than the windows webfolders (e.g. renaming works), but seems to crash rather often. I don`t know about DAV-Explorer. Dreamweaver should work fine with some tweaking and the newest bug fixes installed, and GoLive works fine with WebDAV. It have tested that one, too. From Robert Davis Sun Oct 14 20:29:41 2001 From: Robert Davis (Robert Davis) Date: Sun, 14 Oct 2001 20:29:41 +0100 Subject: Re[2]: [Zope-CMF] Webdav - CMF In-Reply-To: <002901c154e1$ff37b420$1d00a8c0@iuvenonet.home> References: <002901c154e1$ff37b420$1d00a8c0@iuvenonet.home> Message-ID: <2841184880.20011014202941@nipltd.com> >> Has anybody experience in using Zope & Webdav? JW> Of course you'll get Word-style HTML uploaded if you use Word 2000 ... Ta - that's all very interesting! JW> WebDrive, which unfortunately is not free, but only has a 30-day trial JW> version, works better than the windows webfolders (e.g. renaming works), but JW> seems to crash rather often. fyi, I use WebDrive on my Windows 2000 pc heavily against Zope content, albeit with FTP not with WebDAV, and find it is very robust. I would recommend people try WebDrive out. If there is a problem with WebDrive and WebDAV, try contacting the authors - I've found them very helpful (The usual: I'm not affiliated with WebDrive etc) Robert Robert Davis - mailto:robertd@nipltd.com New Information Paradigms Ltd - http://www.nipltd.com From janulrich.hasecke@web.de Mon Oct 15 08:56:02 2001 From: janulrich.hasecke@web.de (Jan Ulrich Hasecke) Date: 15 Oct 2001 09:56:02 +0200 Subject: [Zope-CMF] Error when I allow discussions In-Reply-To: <874rpjmh3l.fsf@debian.hasecke> References: <874rpjmh3l.fsf@debian.hasecke> Message-ID: <873d4lwd4d.fsf@debian.hasecke> Hi, sorry for replying my own message, but I could not solve the problem on my own. Does nobody encountered the same error or is it a FAQ or a known bug? Is there any pointer? Jan Ulrich Hasecke writes: > Hi, > > when I allow discussion in my Portal, I get the following error when I > want to view discussable content, eg. a document. > > On Zope 2.3.3 I had no problems. But now on Zope 2.4.1 (binary > release, python 2.1, linux2-x86), python 2.1.0, linux2, CMF-1.1 I get > this error: > > Error Type: TypeError > Error Value: hasReplies() takes exactly 2 arguments (1 given) > > Error Type: NameError Error Value: metadata_edit ------------------------------------------------------------------- This resource may be trying to reference a nonexistent object or variable metadata_edit. 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. Traceback (innermost last): File C:\Programme\Zope\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Programme\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Programme\Zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File C:\Programme\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Programme\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: editDone) File C:\Programme\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: editDone) File C:\Programme\Zope\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: editDone) File C:\Programme\Zope\lib\python\DocumentTemplate\DT_String.py, line 540, in __call__ (Object: editDone) File C:\Programme\Zope\lib\python\DocumentTemplate\DT_Util.py, line 339, in review (Object: metadata_edit (title=jobTitle,description=jobDescription,expiration_date=jobExpirati on)) (Info: jobTitle) File , line 0, in ? NameError: (see above) END ERROR MESSAGE---> I don't know why it happens. On my original instalation, it doesn't occur. Did I forget something? Thanks in advanced, Josef. PS: This is just a suggestion to the CMF developers: Why don't you include a FAQ about doing this? I think it would be very useful because many people would like to do it and don't know how. From sean.bowman@acm.org Sun Oct 21 23:02:33 2001 From: sean.bowman@acm.org (sean.bowman@acm.org) Date: Sun, 21 Oct 2001 17:02:33 -0500 (CDT) Subject: [Zope-CMF] small patch Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-871895524-1003701691=:63109 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: hello, I was playing around a bit with the CMF and discovered that a couple of
tags never get closed. Attached is a patch correcting the problem. Thanks for the neato software! Sean --0-871895524-1003701691=:63109 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=cmf_div_patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME=cmf_div_patch SW5kZXg6IENNRkRlZmF1bHQvc2tpbnMvZ2VuZXJpYy9mb2xkZXJfY29udGVu dHMuZHRtbA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9j dnMtcmVwb3NpdG9yeS9DTUYvQ01GRGVmYXVsdC9za2lucy9nZW5lcmljL2Zv bGRlcl9jb250ZW50cy5kdG1sLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4x MQ0KZGlmZiAtdSAtcjEuMTEgZm9sZGVyX2NvbnRlbnRzLmR0bWwNCi0tLSBD TUZEZWZhdWx0L3NraW5zL2dlbmVyaWMvZm9sZGVyX2NvbnRlbnRzLmR0bWwg ICAgICAgMjMgSnVsIDIwMDEgMjE6Mzg6MjYgLTAwDQowMCAgICAgIDEuMTEN CisrKyBDTUZEZWZhdWx0L3NraW5zL2dlbmVyaWMvZm9sZGVyX2NvbnRlbnRz LmR0bWwgICAgICAgMjEgT2N0IDIwMDEgMjE6MzU6MjEgLTAwDQowMA0KQEAg LTE1Niw0ICsxNTYsNiBAQA0KIA0KIDwvRk9STT4NCiA8ZHRtbC12YXIgZm9s ZGVyX2ZpbHRlcl9mb3JtPg0KKzwvZGl2Pg0KKw0KIDxkdG1sLXZhciBzdGFu ZGFyZF9odG1sX2Zvb3Rlcj4NCkluZGV4OiBDTUZEZWZhdWx0L3NraW5zL2dl bmVyaWMvZm9sZGVyX3JlbmFtZV9mb3JtLmR0bWwNCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT0NClJDUyBmaWxlOiAvY3ZzLXJlcG9zaXRvcnkvQ01GL0NNRkRl ZmF1bHQvc2tpbnMvZ2VuZXJpYy9mb2xkZXJfcmVuYW1lX2Zvcm0uZHRtbCx2 DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNg0KZGlmZiAtdSAtcjEuNiBmb2xk ZXJfcmVuYW1lX2Zvcm0uZHRtbA0KLS0tIENNRkRlZmF1bHQvc2tpbnMvZ2Vu ZXJpYy9mb2xkZXJfcmVuYW1lX2Zvcm0uZHRtbCAgICAyOCBKdW4gMjAwMSAx OTo1ODoxMSAtMDANCjAwICAgICAgMS42DQorKysgQ01GRGVmYXVsdC9za2lu cy9nZW5lcmljL2ZvbGRlcl9yZW5hbWVfZm9ybS5kdG1sICAgIDIxIE9jdCAy MDAxIDIxOjM1OjIyIC0wMA0KMDANCkBAIC00MCw0ICs0MCw1IEBADQogPElO UFVUIFRZUEU9InN1Ym1pdCIgVkFMVUU9IiBPayAiPg0KIDwvRk9STT4NCiA8 L2R0bWwtaW4+DQorPC9kaXY+DQogPGR0bWwtdmFyIHN0YW5kYXJkX2h0bWxf Zm9vdGVyPg0K --0-871895524-1003701691=:63109-- From tseaver@zope.com Mon Oct 22 12:07:52 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 22 Oct 2001 07:07:52 -0400 Subject: [Zope-CMF] small patch References: Message-ID: <3BD3FE08.5070302@zope.com> sean.bowman@acm.org wrote: > I was playing around a bit with the CMF and discovered that a couple > of
tags never get closed. Attached is a patch correcting the > problem. Thanks for the neato software! > ------------------------------------------------------------------------ > > Index: CMFDefault/skins/generic/folder_contents.dtml > =================================================================== > RCS file: /cvs-repository/CMF/CMFDefault/skins/generic/folder_contents.dtml,v > retrieving revision 1.11 > diff -u -r1.11 folder_contents.dtml > --- CMFDefault/skins/generic/folder_contents.dtml 23 Jul 2001 21:38:26 -00 > 00 1.11 > +++ CMFDefault/skins/generic/folder_contents.dtml 21 Oct 2001 21:35:21 -00 > 00 > @@ -156,4 +156,6 @@ > > > > +
> + > > Index: CMFDefault/skins/generic/folder_rename_form.dtml > =================================================================== > RCS file: /cvs-repository/CMF/CMFDefault/skins/generic/folder_rename_form.dtml,v > retrieving revision 1.6 > diff -u -r1.6 folder_rename_form.dtml > --- CMFDefault/skins/generic/folder_rename_form.dtml 28 Jun 2001 19:58:11 -00 > 00 1.6 > +++ CMFDefault/skins/generic/folder_rename_form.dtml 21 Oct 2001 21:35:22 -00 > 00 > @@ -40,4 +40,5 @@ > > > > +
> > Thanks for reporting this; I have applied your patch and checked it in. In the future, please submit a tracker issue, so that we don't let it slip through the cracks if we can't apply it as we read it: http://www.zope.org/Products/PTK/Tracker Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From seb@jamkit.com Mon Oct 22 13:01:05 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 22 Oct 2001 13:01:05 +0100 Subject: [Zope-CMF] meta_type != content_meta_type In-Reply-To: <20011018192008.A15987@lenin.jamkit.com> References: <20011018192008.A15987@lenin.jamkit.com> Message-ID: <20011022130103.F18340@lenin.jamkit.com> * seb bacon [011018 18:49]: > Hi, > > When I create a new TypeInformation 'MyFoo', based on an > existing class 'Foo', but with its own meta_type 'My Foo', > instances of it do not appear in lists such as contentValues(). > > This is because contentValues() passes a list of meta_types for > objectValues() to filter by. The list passed from contentValues() is > a list of content_meta_types (i.e. 'My Foo'); but objectValues() > compares it to meta_types (i.e. 'Foo'). OK, my solution was to add a new attribute to TypeInformation, base_meta_data, and a new parameter to listContentTypes, viz: def listContentTypes( self, container=None, by_metatype=0, by_base_metatype=0 ) Then PortalFolder._morphSpec returns a list of base meta_types for use with objectIds. Does this sound OK? seb From tseaver@zope.com Mon Oct 22 12:51:19 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 22 Oct 2001 07:51:19 -0400 Subject: [Zope-CMF] meta_type != content_meta_type References: <20011018192008.A15987@lenin.jamkit.com> <20011022130103.F18340@lenin.jamkit.com> Message-ID: <3BD40837.6060602@zope.com> seb bacon wrote: > * seb bacon [011018 18:49]: > >> Hi, >> >> When I create a new TypeInformation 'MyFoo', based on an existing class >> 'Foo', but with its own meta_type 'My Foo', This should not ever happen: 'meta_type' is an attribute of the underlying Python class for a content type, and not of an individual content type itself. No code anywhere in the system should ever overwrite 'meta_type' on an instance, as weird and ugly things will result. >> instances of it do not appear in lists such as contentValues(). >> >> This is because contentValues() passes a list of meta_types >> for objectValues() to filter by. The list passed from contentValues() is >> a list of content_meta_types (i.e. 'My Foo'); but objectValues() compares >> it to meta_types (i.e. 'Foo'). >> > > OK, my solution was to add a new attribute to TypeInformation, base_meta_data, > and a new parameter to listContentTypes, viz: > > def listContentTypes( self, container=None, > by_metatype=0, > by_base_metatype=0 ) > > Then PortalFolder._morphSpec returns a list of base meta_types for use with > objectIds. > > Does this sound OK? Your 'base_meta_type' is performing *exactly* the function for which 'content_meta_type' was added (what else are you using 'content_meta_type' for?) Generally, *don't* change 'content_meta_type', and you won't have a problem. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From jens@zope.com Mon Oct 22 13:03:12 2001 From: jens@zope.com (Jens Vagelpohl) Date: Mon, 22 Oct 2001 08:03:12 -0400 Subject: [Zope-CMF] URL Redirection Problems In-Reply-To: <01101908261800.01553@mis.shufflemasterrd.com> Message-ID: you could use ZopeTime, but you must always make sure that the output strings are properly munged by using url_quote format: view?start_date="" jens On Friday, October 19, 2001, at 10:26 , Mike Doanh Tran wrote: > i am using the latest version of the Zope's Redirector script. I was > trying > to set the Target URL to a but did not work. Does anyone know > how > i can redirect a page to go to a dynamic url base on the current date. > Here > is what i was trying to do. > > Target URL: view?start_date="" > > I am trying to force my calendar to redirect and default to current date. > The > calendar that i am using is SempoiCalendar. > > Any suggestion is appreciated. > > _______________________________________________ > 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 darran.edmundson@anu.edu.au Mon Oct 22 15:08:04 2001 From: darran.edmundson@anu.edu.au (darran.edmundson@anu.edu.au) Date: Mon, 22 Oct 2001 14:08:04 GMT Subject: [Zope-CMF] 3 days in, 3 newbie questions ... Message-ID: <200110221408.f9ME84b03283@anusf.anu.edu.au> Dear CMF-Zopistas, I've been Zoping for a couple of years now but only recently started looking at the CMF/PTK. I'm starting in on my first customizations and migrating some useful ZClasses over. If you'd be so kind, a couple of questions though: 1) I'd like each member to be able to maintain their own contact details (mailnig address, phone numbers, etc.). It's tempting to add these fields to the properties tab of the portal_memberdata tool. I imagine getting clobbered though on the next CMF update ... 2) Related to the above, I notice that in the personalize_form, there's a commented-out loop over member.propertysheets.CommonProperties.propertyIds() I can't actually find this propertysheet but would it be the preferred place to add such data? 3) Am I right in thinking that the "element policies" in the portal_metadata tool are not enforced? For example, requiring subject and enforcing the vocab don't seem to occur in my CMF site. Many thanks in advance. The more I play with CMF, the more I kick myself for staying away until now. Cheers, Darran. --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ From davelehman@loewen.com Mon Oct 22 18:29:29 2001 From: davelehman@loewen.com (davelehman@loewen.com) Date: Mon, 22 Oct 2001 12:29:29 -0500 Subject: [Zope-CMF] Get list of published items that user has access to Message-ID: Well, i'm sorry to ask this because i'm sure it's a FAQ, but I just haven't been able to put all the pieces of the puzzle together. I've spent the weekend banging my head against the wall and need a little relief... (I'm running CMF1.1 under Zope2.4. My "member" role has "access portal content" and "view" access, but *not* "access future") I want to display a summary of news items. Basically, I want to get a list of documents from a specified news folder that are both published, and that the current website visitor has access to. It seems this is easier said that done... Previously, I had tried:

This pops up an authentication dialog if you are not logged in. And it displays *all* items-- both published and private. >From reading the list, I got the impression that this *may* have worked in Zope2.3 but now doesn't (not sure if this was broken by accident, or on purpose). The "recommended" way now seems to be to use ZopeFind (although no one seems willing to offer an example except to say "Go look in the Zope Quick Reference!"). So I tried this:

but it also displays all items, published and private. Well, I guess that means it must be "skip_unauthorized" that is broken. So I tried manually filtering out the non-published items from a recipe on ZopeLabs: import string news = [] for id, obj in context.ZopeFind( context, obj_metatypes=['Document'], ): if hasattr(obj, 'published') and obj.published: news.append( '' + obj.Title() + '
' + obj.Description() + '
' ) return news but this returns nothing at all, not even the items that are published. So that must not be what determines is a doc is "published" in the CMF. It seems like it should be possible to use ZopeFind to search for just items that the user has access to, using "obj_roles" and "obj_permissions" but from the scant detail in the ZQR, i have no idea how to do this. All I want is a way to show a visitor (anonymous, member or manager) a list of the news items that they should see. Anonymous and Member should both see a list of published docs only. Manager should see all-- both published and private. And I suppose it would be self-defeating to heap more on this issue, but is it also possible to work the CMF "effective_date" into this, so that anonymous and members only see stuff that is published and has an effective date less that or equal to today? I really want to make this work-- Zope just seems *so* hard sometimes... Regards, Dave From marc@bowery.com Mon Oct 22 19:36:26 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 22 Oct 2001 14:36:26 -0400 Subject: [Zope-CMF] Get list of published items that user has access to In-Reply-To: Message-ID: Hmm.... I think a catalog search will work... because, isn't that what news_box does? > From: davelehman@loewen.com > Date: Mon, 22 Oct 2001 12:29:29 -0500 > To: zope-cmf@zope.org > Subject: [Zope-CMF] Get list of published items that user has access to > > Well, i'm sorry to ask this because i'm sure it's a FAQ, but I just haven't > been able to put all the pieces of the puzzle together. I've spent the > weekend banging my head against the wall and need a little relief... > > (I'm running CMF1.1 under Zope2.4. My "member" role has "access portal > content" and "view" access, but *not* "access future") > > I want to display a summary of news items. Basically, I want to get a list > of documents from a specified news folder that are both published, and that > the current website visitor has access to. It seems this is easier said > that done... > > Previously, I had tried: > > >
>
>
> > This pops up an authentication dialog if you are not logged in. And it > displays *all* items-- both published and private. > >> From reading the list, I got the impression that this *may* have worked in > Zope2.3 but now doesn't (not sure if this was broken by accident, or on > purpose). The "recommended" way now seems to be to use ZopeFind (although > no one seems willing to offer an example except to say "Go look in the Zope > Quick Reference!"). So I tried this: > > skip_unauthorized> >
>
>
> > but it also displays all items, published and private. Well, I guess that > means it must be "skip_unauthorized" that is broken. So I tried manually > filtering out the non-published items from a recipe on ZopeLabs: > > import string > news = [] > for id, obj in context.ZopeFind( context, obj_metatypes=['Document'], ): > if hasattr(obj, 'published') and obj.published: > news.append( '' + obj.Title() + > '
' + obj.Description() + '
' ) > return news > > but this returns nothing at all, not even the items that are published. So > that must not be what determines is a doc is "published" in the CMF. > > It seems like it should be possible to use ZopeFind to search for just > items that the user has access to, using "obj_roles" and "obj_permissions" > but from the scant detail in the ZQR, i have no idea how to do this. > > All I want is a way to show a visitor (anonymous, member or manager) a list > of the news items that they should see. Anonymous and Member should both > see a list of published docs only. Manager should see all-- both published > and private. > > And I suppose it would be self-defeating to heap more on this issue, but is > it also possible to work the CMF "effective_date" into this, so that > anonymous and members only see stuff that is published and has an effective > date less that or equal to today? > > I really want to make this work-- Zope just seems *so* hard sometimes... > > Regards, > Dave > > > > _______________________________________________ > 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 abotero@uiah.fi Mon Oct 22 19:45:47 2001 From: abotero@uiah.fi (Andrea Botero Cabrera) Date: Mon, 22 Oct 2001 21:45:47 +0300 Subject: [Zope-CMF] A bug or ignorance? Message-ID: <3BD4695B.1ADBC0D6@uiah.fi> Hello Zope CMF masters, I am "trying" to do some portals with this CMF thingy, I am not an engineer... what I need right now is very straight forward help "for non initiated people" someone who is not stupid though =) I add a CMF site form the zope manager interface, after having a lot of trouble with previous experiments, I have found that every time I attempt to customize the index of your product (as it is) -I visit the site from another window and another browser (anonymous user) and it goes straight to the "login_form". With out attempting to customize the index I am able to add content, create users, change the skins, logos and edit all the contents of everything and still anonymous users can see the welcome page SO: I delete the customized index and voila it works again.... after many many tries I have found that if in the index-html that I customized (and is now in the custom folder) I delete the it works again!!!! with out this box the welcome page is available for anonymous users and nobody gets asked the login name before pushing the "log in" link..... BUT I am afraid I don't want to preserve the layout of the CMF, so I really will like to customize the index but still have the news in there somewhere..... is this a bug (?) or what I am doing wrong? I have tried the procedure many times, with many CMF tests and I have tried to check the documentation with no luck I really , really appreciate any help - hints any of you can give abc ----------------------------- Andrea Botero C University of Art and Design Helsinki Media Lab ------------------------------ From davelehman@loewen.com Mon Oct 22 21:35:03 2001 From: davelehman@loewen.com (davelehman@loewen.com) Date: Mon, 22 Oct 2001 15:35:03 -0500 Subject: [Zope-CMF] Get list of published items that user has access to Message-ID: Crap-- that sounds a heck of a lot easier than what I was trying to do, now doesn't it? Um, is there any way to restrict the catalog search to a specific folder? That is, for this particular news summary, I would like to grab only the qualifying documents (ie published) from a certain folder. Regards, Dave On 10/22/2001 01:36:26 PM marc lindahlwrote: >Hmm.... I think a catalog search will work... because, isn't that what >news_box does? > >> From: davelehman@loewen.com >> Date: Mon, 22 Oct 2001 12:29:29 -0500 >> To: zope-cmf@zope.org >> Subject: [Zope-CMF] Get list of published items that user has access to >> >> Well, i'm sorry to ask this because i'm sure it's a FAQ, but I just haven't >> been able to put all the pieces of the puzzle together. I've spent the >> weekend banging my head against the wall and need a little relief... >> >> (I'm running CMF1.1 under Zope2.4. My "member" role has "access portal >> content" and "view" access, but *not* "access future") >> >> I want to display a summary of news items. Basically, I want to get a list >> of documents from a specified news folder that are both published, and that >> the current website visitor has access to. It seems this is easier said >> that done... >> >> Previously, I had tried: >> >> >>
>>
>>
>> >> This pops up an authentication dialog if you are not logged in. And it >> displays *all* items-- both published and private. >> >>> From reading the list, I got the impression that this *may* have worked in >> Zope2.3 but now doesn't (not sure if this was broken by accident, or on >> purpose). The "recommended" way now seems to be to use ZopeFind (although >> no one seems willing to offer an example except to say "Go look in the Zope >> Quick Reference!"). So I tried this: >> >> > skip_unauthorized> >>
>>
>>
>> >> but it also displays all items, published and private. Well, I guess that >> means it must be "skip_unauthorized" that is broken. So I tried manually >> filtering out the non-published items from a recipe on ZopeLabs: >> >> import string >> news = [] >> for id, obj in context.ZopeFind( context, obj_metatypes=['Document'], ): >> if hasattr(obj, 'published') and obj.published: >> news.append( '' + obj.Title() + >> '
' + obj.Description() + '
' ) >> return news >> >> but this returns nothing at all, not even the items that are published. So >> that must not be what determines is a doc is "published" in the CMF. >> >> It seems like it should be possible to use ZopeFind to search for just >> items that the user has access to, using "obj_roles" and "obj_permissions" >> but from the scant detail in the ZQR, i have no idea how to do this. >> >> All I want is a way to show a visitor (anonymous, member or manager) a list >> of the news items that they should see. Anonymous and Member should both >> see a list of published docs only. Manager should see all-- both published >> and private. >> >> And I suppose it would be self-defeating to heap more on this issue, but is >> it also possible to work the CMF "effective_date" into this, so that >> anonymous and members only see stuff that is published and has an effective >> date less that or equal to today? >> >> I really want to make this work-- Zope just seems *so* hard sometimes... >> >> Regards, >> Dave >> >> >> >> _______________________________________________ >> 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 Oct 22 09:52:55 2001 From: tseaver@palladion.com (Tres Seaver) Date: Mon, 22 Oct 2001 04:52:55 -0400 (EDT) Subject: [Zope-CMF] Get list of published items that user has access to In-Reply-To: Message-ID: On Mon, 22 Oct 2001 davelehman@loewen.com wrote: > > Crap-- that sounds a heck of a lot easier than what I was trying to do, now > doesn't it? > > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )" size="10"> > > Um, is there any way to restrict the catalog search to a specific folder? > That is, for this particular news summary, I would like to grab only the > qualifying documents (ie published) from a certain folder. In Zope 2.4, the catalog comes standard with an instance of a new kind of index, called PathIndex, motivated exactly by the use case you outline. Taking advantage of it, your query would look something like this:: Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From marc@bowery.com Mon Oct 22 22:26:27 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 22 Oct 2001 17:26:27 -0400 Subject: [Zope-CMF] Get list of published items that user has access to In-Reply-To: Message-ID: You'd get the list from the catalog, get the list of objects, then check those for where they are. Or... you could add another index to the catalog and search against it. > From: davelehman@loewen.com > Date: Mon, 22 Oct 2001 15:35:03 -0500 > To: marc lindahl > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Get list of published items that user has access to > > > Crap-- that sounds a heck of a lot easier than what I was trying to do, now > doesn't it? > > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )" size="10"> > > Um, is there any way to restrict the catalog search to a specific folder? > That is, for this particular news summary, I would like to grab only the > qualifying documents (ie published) from a certain folder. > > Regards, > Dave > > > On 10/22/2001 01:36:26 PM marc lindahlwrote: > >> Hmm.... I think a catalog search will work... because, isn't that what >> news_box does? >> >>> From: davelehman@loewen.com >>> Date: Mon, 22 Oct 2001 12:29:29 -0500 >>> To: zope-cmf@zope.org >>> Subject: [Zope-CMF] Get list of published items that user has access to >>> >>> Well, i'm sorry to ask this because i'm sure it's a FAQ, but I just > haven't >>> been able to put all the pieces of the puzzle together. I've spent the >>> weekend banging my head against the wall and need a little relief... >>> >>> (I'm running CMF1.1 under Zope2.4. My "member" role has "access portal >>> content" and "view" access, but *not* "access future") >>> >>> I want to display a summary of news items. Basically, I want to get a > list >>> of documents from a specified news folder that are both published, and > that >>> the current website visitor has access to. It seems this is easier said >>> that done... >>> >>> Previously, I had tried: >>> >>> >>>
>>>
>>>
>>> >>> This pops up an authentication dialog if you are not logged in. And it >>> displays *all* items-- both published and private. >>> >>>> From reading the list, I got the impression that this *may* have worked > in >>> Zope2.3 but now doesn't (not sure if this was broken by accident, or on >>> purpose). The "recommended" way now seems to be to use ZopeFind > (although >>> no one seems willing to offer an example except to say "Go look in the > Zope >>> Quick Reference!"). So I tried this: >>> >>> >> skip_unauthorized> >>>
>>>
>>>
>>> >>> but it also displays all items, published and private. Well, I guess > that >>> means it must be "skip_unauthorized" that is broken. So I tried manually >>> filtering out the non-published items from a recipe on ZopeLabs: >>> >>> import string >>> news = [] >>> for id, obj in context.ZopeFind( context, obj_metatypes=['Document'], ): >>> if hasattr(obj, 'published') and obj.published: >>> news.append( '' + obj.Title() + >>> '
' + obj.Description() + '
' ) >>> return news >>> >>> but this returns nothing at all, not even the items that are published. > So >>> that must not be what determines is a doc is "published" in the CMF. >>> >>> It seems like it should be possible to use ZopeFind to search for just >>> items that the user has access to, using "obj_roles" and > "obj_permissions" >>> but from the scant detail in the ZQR, i have no idea how to do this. >>> >>> All I want is a way to show a visitor (anonymous, member or manager) a > list >>> of the news items that they should see. Anonymous and Member should both >>> see a list of published docs only. Manager should see all-- both > published >>> and private. >>> >>> And I suppose it would be self-defeating to heap more on this issue, but > is >>> it also possible to work the CMF "effective_date" into this, so that >>> anonymous and members only see stuff that is published and has an > effective >>> date less that or equal to today? >>> >>> I really want to make this work-- Zope just seems *so* hard sometimes... >>> >>> Regards, >>> Dave >>> >>> >>> >>> _______________________________________________ >>> 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 jmeile@hotmail.com Mon Oct 22 22:30:12 2001 From: jmeile@hotmail.com (Josef Albert Meile) Date: Mon, 22 Oct 2001 21:30:12 -0000 Subject: [Zope-CMF] Complex sorting on Zcatalogs. Message-ID: <9r2354+qpr1@eGroups.com> Sorry for this question which for some of you could be very simple, but I tried to find the answer on the Zope's website by giving the keywords: ZCatalog, sorting and sort, but I found nothing. I just found that it isn't possible with the original "dtml-in" tag and that there is a testing patch which permits to do it. I guess that it isn't possible with ZCatalogs. Anyway, correct me if I am wrong. I would like to make search on a Zcatalog and sort it on two or more field indexes. For example: objects=catalog( { 'meta_type' : pType, 'review_state' : pStatus, 'sort_on' : ['personTitle','personName'], } ) I tried it but it didn't work. What is the correct sintax? Thanks in advanced, Josef. From davelehman@loewen.com Mon Oct 22 22:44:48 2001 From: davelehman@loewen.com (davelehman@loewen.com) Date: Mon, 22 Oct 2001 16:44:48 -0500 Subject: [Zope-CMF] Get list of published items that user has access to Message-ID: Sweet! This is exactly what I needed, and simple to boot! Thanks for showing me which tree I should have been barking up! --dave On 10/22/2001 03:52:55 AM Tres Seaverwrote: >In Zope 2.4, the catalog comes standard with an instance of a new >kind of index, called PathIndex, motivated exactly by the use >case you outline. Taking advantage of it, your query would look >something like this:: > > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > , path=absolute_url > )" size="10"> > >Tres. >-- >=============================================================== >Tres Seaver tseaver@zope.com >Zope Corporation "Zope Dealers" http://www.zope.com > From tseaver@zope.com Tue Oct 23 01:51:12 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 22 Oct 2001 20:51:12 -0400 Subject: [Zope-CMF] Complex sorting on Zcatalogs. References: <9r2354+qpr1@eGroups.com> Message-ID: <3BD4BF00.6030604@zope.com> Josef Albert Meile wrote: > Sorry for this question which for some of you could be very simple, > but I tried to find the answer on the Zope's website by giving the > keywords: ZCatalog, sorting and sort, but I found nothing. I just > found that it isn't possible with the original "dtml-in" tag and that > there is a testing patch which permits to do it. I guess that it > isn't possible with ZCatalogs. Anyway, correct me if I am wrong. > > I would like to make search on a Zcatalog and sort it on two or more > field indexes. For example: > > objects=catalog( > { > 'meta_type' : pType, > 'review_state' : pStatus, > 'sort_on' : ['personTitle','personName'], > } > ) > > I tried it but it didn't work. > What is the correct sintax? Unlike the in-tag's sort attribute, which can be a tuple, the catalog's 'sort_on' parameter must map to an index name (the only reason to have the catalog sort your requests is to take advantage of indexing). You might either - fetch the objects without sorting, and then sort yourself:: objects = catalog( ...) objects.sort( lambda x, y: cmp( ( x.personTitle(), x.personName() ), ( y.personTitle(), y.personName() ) ) or: - create a PythonScript, 'personTitleName', which concatenates the two fields:: ## Script (Python) "personTitleName" return '%s %s' % ( context.personTitle(), context.personName() ) and then create a field index on 'personTitleName'; you could then query that index using 'sort_on' (after reindexing your content):: objects=catalog( { 'meta_type' : pType , 'review_state' : pStatus , 'sort_on' : 'personTitleName' } ) BTW, this is really a question for zope@zope.org, rather than zope-cmf. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From davelehman@loewen.com Tue Oct 23 02:33:37 2001 From: davelehman@loewen.com (davelehman@loewen.com) Date: Mon, 22 Oct 2001 20:33:37 -0500 Subject: [Zope-CMF] Get list of published items that user has access to Message-ID: This is working great, except that it doesn't seem to be honoring the "effective date" specified in the metadata. I assumed the document wouldn't show up in the catalog until the effective date, but looks like that isn't the case. eg. I create a new document and set the effective date to tomorrow. I publish it and it shows up immediately in the searchResults. Is there an extra filter I can add to the search to have it honor effective_dates? --dave On 10/22/2001 03:52:55 AM Tres Seaverwrote: >On Mon, 22 Oct 2001 davelehman@loewen.com wrote: > >> >> Crap-- that sounds a heck of a lot easier than what I was trying to do, now >> doesn't it? >> >> > , sort_on='Date' >> , sort_order='reverse' >> , review_state='published' >> )" size="10"> >> >> Um, is there any way to restrict the catalog search to a specific folder? >> That is, for this particular news summary, I would like to grab only the >> qualifying documents (ie published) from a certain folder. > >In Zope 2.4, the catalog comes standard with an instance of a new >kind of index, called PathIndex, motivated exactly by the use >case you outline. Taking advantage of it, your query would look >something like this:: > > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > , path=absolute_url > )" size="10"> > >Tres. >-- >=============================================================== >Tres Seaver tseaver@zope.com >Zope Corporation "Zope Dealers" http://www.zope.com > From tseaver@zope.com Tue Oct 23 02:56:01 2001 From: tseaver@zope.com (Tres Seaver) Date: Mon, 22 Oct 2001 21:56:01 -0400 Subject: [Zope-CMF] Get list of published items that user has access to References: Message-ID: <3BD4CE31.9060203@zope.com> davelehman@loewen.com wrote: > This is working great, except that it doesn't seem to be honoring the > "effective date" specified in the metadata. I assumed the document > wouldn't show up in the catalog until the effective date, but looks like > that isn't the case. > > eg. I create a new document and set the effective date to tomorrow. I > publish it and it shows up immediately in the searchResults. > > Is there an extra filter I can add to the search to have it honor > effective_dates? Can you please verify that this is true only if you are logged in as a manager or reviewer? Non-privileged users should only see content which is within its effective range. You can also explicitly add it to your query: Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com From davelehman@loewen.com Tue Oct 23 03:17:15 2001 From: davelehman@loewen.com (Dave Lehman) Date: Mon, 22 Oct 2001 21:17:15 -0500 Subject: [Zope-CMF] Get list of published items that user has access to Message-ID: Hmm... you're right-- the effective date does work for non-priviledged users. Is this behaviour by design? I guess this is OK-- just a bit unintuitive at first blush. Thanks for your quick response. --dave >> Is there an extra filter I can add to the search to have it honor >> effective_dates? > >Can you please verify that this is true only if you are logged in as > >a manager or reviewer? Non-privileged users should only see content >which is within its effective range. > >You can also explicitly add it to your query: > > )"> > >Tres. >-- >=============================================================== >Tres Seaver tseaver@zope.com >Zope Corporation "Zope Dealers" http://www.zope.com > From marc@bowery.com Tue Oct 23 03:28:37 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 22 Oct 2001 22:28:37 -0400 Subject: [Zope-CMF] Get list of published items that user has access to In-Reply-To: Message-ID: > From: "Dave Lehman" > Date: Mon, 22 Oct 2001 21:17:15 -0500 > To: Tres Seaver > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Get list of published items that user has access to > > Hmm... you're right-- the effective date does work for non-priviledged > users. Is this behaviour by design? I guess this is OK-- just a bit > unintuitive at first blush. > It has to be - because those roles are allowed to set the effective date. They have to be able to get at the stuff to set it! :) From gitte@mmmanager.org Tue Oct 23 11:26:46 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 23 Oct 2001 12:26:46 +0200 Subject: [Zope-CMF] Localization support in future versions ? Message-ID: <1003832811.18093.10.camel@squidbitch.mmmanager.org> Hello, I have created a multi lingual version of one of the portals I am working on with the ZBabel product (which is a nice product btw.) .. Everything works great but ... What will happen with future versions of CMF ? I have customized all the CMF script (login pages, view pages, etc. etc.). Wouldn't it be nice if the future versions of CMF came with support for ZBabel or something ? What I am concerned about is that all the customization I have made will be outdated when the next version of CMF is released .... -- 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: Our goal is to be the "Linux of Content Management". This means Open Source, it means community... - Paul Everitt, Zope-CMF Mailing List From robert@redcor.ch Tue Oct 23 12:55:26 2001 From: robert@redcor.ch (Robert Rottermann) Date: Tue, 23 Oct 2001 13:55:26 +0200 Subject: [Zope-CMF] Localization support in future versions ? References: <1003832811.18093.10.camel@squidbitch.mmmanager.org> Message-ID: <002b01c15bb9$9bb71970$0a01a8c0@stravinsky> Hi Gite, This is of great concern to me also. I did a three-language CMF and will be facing the same question. One of the problems I see is, that it we non English speakers split our efforts among a number of translation tools. We really should start to pester (ehem start lobbing I mean) our friends at zope.org that they add hooks for the translation into the source. It really would not be to big an effort. And I would love to help. And quite a number of others I am sure. Robert ----- Original Message ----- From: "Gitte Wange" To: "CMF mailinglist" Sent: Tuesday, October 23, 2001 12:26 PM Subject: [Zope-CMF] Localization support in future versions ? > Hello, > > I have created a multi lingual version of one of the portals I am > working on with the ZBabel product (which is a nice product btw.) .. > > Everything works great but ... > What will happen with future versions of CMF ? > > I have customized all the CMF script (login pages, view pages, etc. > etc.). > > Wouldn't it be nice if the future versions of CMF came with support for > ZBabel or something ? > > What I am concerned about is that all the customization I have made will > be outdated when the next version of CMF is released .... > > -- > 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: > Our goal is to be the "Linux of Content Management". > This means Open Source, it means community... > > - Paul Everitt, Zope-CMF Mailing List > > > _______________________________________________ > 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 Oct 23 13:16:05 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 23 Oct 2001 14:16:05 +0200 Subject: [Zope-CMF] Localization support in future versions ? In-Reply-To: <002b01c15bb9$9bb71970$0a01a8c0@stravinsky> References: <1003832811.18093.10.camel@squidbitch.mmmanager.org> <002b01c15bb9$9bb71970$0a01a8c0@stravinsky> Message-ID: <1003839370.2525.2.camel@squidbitch.mmmanager.org> tir, 2001-10-23 kl. 13:55 skrev Robert Rottermann: > Hi Gite, > > This is of great concern to me also. > I did a three-language CMF and will be facing the same question. > > One of the problems I see is, that it we non English speakers split our > efforts among a number of translation tools. > > We really should start to pester (ehem start lobbing I mean) our friends at > zope.org that they add hooks for the translation into the source. > It really would not be to big an effort. > And I would love to help. And quite a number of others I am sure. > > Robert Well the translations for CMF 1.1 is already there. In our installations of CMF. So the skins are there ... the problem is that mine language variable is named language and perhaps Robert's is called something else ? So I guess this would be the perfect time to start incoporating a translation tool into CMF before more people are doing another translation another way. I would be happy to contribe with my scripts ... Gitte > ----- Original Message ----- > From: "Gitte Wange" > To: "CMF mailinglist" > Sent: Tuesday, October 23, 2001 12:26 PM > Subject: [Zope-CMF] Localization support in future versions ? > > > > Hello, > > > > I have created a multi lingual version of one of the portals I am > > working on with the ZBabel product (which is a nice product btw.) .. > > > > Everything works great but ... > > What will happen with future versions of CMF ? > > > > I have customized all the CMF script (login pages, view pages, etc. > > etc.). > > > > Wouldn't it be nice if the future versions of CMF came with support for > > ZBabel or something ? > > > > What I am concerned about is that all the customization I have made will > > be outdated when the next version of CMF is released .... > > > > -- > > 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: > > Our goal is to be the "Linux of Content Management". > > This means Open Source, it means community... > > > > - Paul Everitt, Zope-CMF Mailing List > > > > > > _______________________________________________ > > 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 kayeva@hotmail.com Tue Oct 23 14:25:22 2001 From: kayeva@hotmail.com (kamon ayeva) Date: Tue, 23 Oct 2001 13:25:22 +0000 Subject: [Zope-CMF] CMF/Zope 2.4.2 Content creation bug Message-ID: Hello Cmf-Zopistas, Has anyone experienced this bug ? Our version of CMF (the Zopera.org site) is one from the CVS downloaded in mid Sep. (I don't have the exact date). We just upgraded Zope to the latest version, and since then people can't create new content inside their member folder. From my testing, it seems you can edit existing content though. You get the Zope authentication dialog box, and even if you enter your name and password, you can't complete the creation. (Consequently, an instance of the object is created but without any content.) Here is the type of traceback I got when I tried: Unauthorized You are not authorized to access editMetadata.