From jtinsky@mindspring.com Sun Apr 1 00:54:19 2001 From: jtinsky@mindspring.com (Jim Tinsky) Date: Sat, 31 Mar 2001 16:54:19 -0800 Subject: [Zope-CMF] Installation problems on win98 Message-ID: <001001c0ba46$48fb9c20$0301000a@digitaria.com> This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C0BA03.3A308360 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've unzipped the CMF 1.0 files and placed them in my products folder = but when I restart I keep getting the following errors: >From the dos window when I start: 2001-04-01T00:46:46 ERROR(200) Zope Couldn't import Products.CMFTopic Traceback (innermost last): File C:\Program Files\Zope\lib\python\OFS\Application.py, line 530, in = import_ products (Object: string) File C:\Program Files\Zope\lib\python\Products\CMFTopic\__init__.py, = line 86, in ? File C:\Program Files\Zope\lib\python\Products\CMFTopic\Topic.py, line = 87, in ? ImportError: cannot import name PortalFolder >From the CMFCore product:=20 Traceback (innermost last): File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, = in import_products product=3D__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\Zope\lib\python\Products\CMFCore\__init__.py", = line 89, in ? import PortalObject, PortalContent, PortalFolder File "C:\Program = Files\Zope\lib\python\Products\CMFCore\PortalObject.py", line 87, in ? from PortalFolder import PortalFolder File "C:\Program = Files\Zope\lib\python\Products\CMFCore\PortalFolder.py", line 120, in ? class PortalFolder( Folder, DynamicType ): File "C:\Program Files\Zope\lib\python\OFS\ObjectManager.py", line = 221, in __class_init__ default__class_init__(self) File "C:\Program Files\Zope\lib\python\App\class_init.py", line 117, = in default__class_init__ security_info.apply(self) File "C:\Program Files\Zope\lib\python\AccessControl\SecurityInfo.py", = line 245, in apply entry =3D (permission_name, tuple(names), tuple(roles)) TypeError: tuple() argument must be a sequence >From CMFDefault:Traceback (innermost last): File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, = in import_products product=3D__import__(pname, global_dict, global_dict, silly) File "C:\Program = Files\Zope\lib\python\Products\CMFDefault\__init__.py", line 90, in ? import Portal File "C:\Program Files\Zope\lib\python\Products\CMFDefault\Portal.py", = line 87, in ? from Products.CMFCore.PortalObject import PortalObjectBase ImportError: cannot import name PortalObjectBase >From CMFTopic:Traceback (innermost last): File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, = in import_products product=3D__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\Zope\lib\python\Products\CMFTopic\__init__.py", = line 86, in ? import Topic File "C:\Program Files\Zope\lib\python\Products\CMFTopic\Topic.py", = line 87, in ? from Products.CMFCore.PortalFolder import PortalFolder ImportError: cannot import name PortalFolder ------=_NextPart_000_000D_01C0BA03.3A308360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've unzipped the CMF 1.0 files and = placed them in=20 my products folder but when I restart I keep getting the following=20 errors:
 
From the dos window when I=20 start:
 
2001-04-01T00:46:46 ERROR(200) Zope Couldn't import = Products.CMFTopic
Traceback (innermost last):
  File = C:\Program=20 Files\Zope\lib\python\OFS\Application.py, line 530, in=20 import_
products
    (Object: string)
  = File=20 C:\Program Files\Zope\lib\python\Products\CMFTopic\__init__.py, line = 86,
in=20 ?
  File C:\Program = Files\Zope\lib\python\Products\CMFTopic\Topic.py,=20 line 87, in
?
ImportError: cannot import name=20 PortalFolder

From the CMFCore = product:=20
Traceback (innermost=20 last):
  File "C:\Program = Files\Zope\lib\python\OFS\Application.py",=20 line 530, in import_products
    = product=3D__import__(pname,=20 global_dict, global_dict, silly)
  File "C:\Program=20 Files\Zope\lib\python\Products\CMFCore\__init__.py", line 89, in=20 ?
    import PortalObject, PortalContent,=20 PortalFolder
  File "C:\Program=20 Files\Zope\lib\python\Products\CMFCore\PortalObject.py", line 87, in=20 ?
    from PortalFolder import PortalFolder
  = File=20 "C:\Program Files\Zope\lib\python\Products\CMFCore\PortalFolder.py", = line 120,=20 in ?
    class PortalFolder( Folder, DynamicType = ):
 =20 File "C:\Program Files\Zope\lib\python\OFS\ObjectManager.py", line 221, = in=20 __class_init__
    = default__class_init__(self)
  File=20 "C:\Program Files\Zope\lib\python\App\class_init.py", line 117, in=20 default__class_init__
    = security_info.apply(self)
 =20 File "C:\Program Files\Zope\lib\python\AccessControl\SecurityInfo.py", = line 245,=20 in apply
    entry =3D (permission_name, tuple(names), = tuple(roles))
TypeError: tuple() argument must be a=20 sequence
From =
CMFDefault:
Traceback (innermost last):
  File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, =
in import_products
    product=3D__import__(pname, global_dict, global_dict, silly)
  File "C:\Program =
Files\Zope\lib\python\Products\CMFDefault\__init__.py", line 90, in ?
    import Portal
  File "C:\Program Files\Zope\lib\python\Products\CMFDefault\Portal.py", =
line 87, in ?
    from Products.CMFCore.PortalObject import PortalObjectBase
ImportError: cannot import name PortalObjectBase
From =
CMFTopic:
Traceback (innermost last):
  File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, =
in import_products
    product=3D__import__(pname, global_dict, global_dict, silly)
  File "C:\Program Files\Zope\lib\python\Products\CMFTopic\__init__.py", =
line 86, in ?
    import Topic
  File "C:\Program Files\Zope\lib\python\Products\CMFTopic\Topic.py", =
line 87, in ?
    from Products.CMFCore.PortalFolder import PortalFolder
ImportError: cannot import name PortalFolder
------=_NextPart_000_000D_01C0BA03.3A308360-- From tseaver@digicool.com Sun Apr 1 14:03:51 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 01 Apr 2001 09:03:51 -0400 Subject: [Zope-CMF] Installation problems on win98 References: <001001c0ba46$48fb9c20$0301000a@digitaria.com> Message-ID: <3AC72737.9F352A9@novacoxmail.com> > Jim Tinsky wrote: > > I've unzipped the CMF 1.0 files and placed them in my products > folder but when I restart I keep getting the following errors: > > From the dos window when I start: > From the CMFCore product: > Traceback (innermost last): > File "C:\Program Files\Zope\lib\python\OFS\Application.py", line 530, in import_products > product=__import__(pname, global_dict, global_dict, silly) > File "C:\Program Files\Zope\lib\python\Products\CMFCore\__init__.py", line 89, in ? > import PortalObject, PortalContent, PortalFolder > File "C:\Program Files\Zope\lib\python\Products\CMFCore\PortalObject.py", line 87, in ? > from PortalFolder import PortalFolder > File "C:\Program Files\Zope\lib\python\Products\CMFCore\PortalFolder.py", line 120, in ? > class PortalFolder( Folder, DynamicType ): > File "C:\Program Files\Zope\lib\python\OFS\ObjectManager.py", line 221, in __class_init__ > default__class_init__(self) > File "C:\Program Files\Zope\lib\python\App\class_init.py", line 117, in default__class_init__ > security_info.apply(self) > File "C:\Program Files\Zope\lib\python\AccessControl\SecurityInfo.py", line 245, in apply > entry = (permission_name, tuple(names), tuple(roles)) > TypeError: tuple() argument must be a sequence You need to be running Zope 2.3.1b1 or later, or to apply the following patch you your Zope: $ cvs diff -u -r Zope-2_3_0-src lib/python/AccessControl/SecurityInfo.py Index: lib/python/AccessControl/SecurityInfo.py =================================================================== RCS file: /cvs-repository/Zope2/lib/python/AccessControl/SecurityInfo.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- SecurityInfo.py 2001/01/16 20:01:09 1.7 +++ SecurityInfo.py 2001/02/08 16:45:35 1.8 @@ -242,7 +242,7 @@ for permission_name, names in permissions: roles = getRoles(permission_name, ()) if len(roles): - entry = (permission_name, tuple(names), tuple(roles)) + entry = (permission_name, tuple(names), tuple(roles.keys())) else: entry = (permission_name, tuple(names)) __ac_permissions__.append(entry) I would recommend upgrading to Zope 2.3.1, myself. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sun Apr 1 14:16:34 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 01 Apr 2001 09:16:34 -0400 Subject: [Zope-CMF] using the subject property References: Message-ID: <3AC72A32.D9F8E28A@novacoxmail.com> Ben Riga wrote: > > >> How can I build a list of all the subjects that have been used? > > > >Ask the catalog: > > > > > > I've tried this a bunch of different ways but can't get it to give me the > list of subjects. It is definitely iterating through something. I just > don't know how to get at the data to display it. Can you point me to an > example I can study to learn more about this? > > I've copied my snippet below. It's in a DTML-method at > /DSP/portal_skins/custom/SubjList. I'm calling it with a SubjList> from the /DSP/portal_skins/custom/index_html. > > > > > sequence-number: > sequence-key: , title:
> id:
>

> > Hmm, this works for me on a customized search form: Subject Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From briga@borland.com Sun Apr 1 20:00:02 2001 From: briga@borland.com (Ben Riga) Date: Sun, 1 Apr 2001 12:00:02 -0700 Subject: [Zope-CMF] using the subject property In-Reply-To: <3AC72A32.D9F8E28A@novacoxmail.com> Message-ID: >Hmm, this works for me on a customized search form: > > > Subject > > > > Cool. Thanks. The 'dtml-sequence-item' is what I was looking for. Looking now at the documentation, I'm embarassed that I missed that. The next step is to fire a topic/query that lists items in a 'subject'. I'll play with that over the next couple of days. This stuff is cool but needs more documentation, a really comprehensive tutorial and/or a demo portal to steal/learn code from. I realize that this is in the works. With solid documentation and a bit more marketing this stuff would be unstoppable. Kind of like the effect Linux has had on Windows. Only you'd be stepping on Interwoven, Vignette and maybe Broadvision. This list is a huge help. Thanks again, Ben From dieter@handshake.de Sun Apr 1 20:21:09 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 1 Apr 2001 21:21:09 +0200 (CEST) Subject: [Zope-CMF] using the subject property In-Reply-To: <879864246@toto.iv> Message-ID: <15047.32677.925764.415905@lindm.dm> Ben Riga writes: > >> How can I build a list of all the subjects that have been used? > .... > > > > sequence-number: > sequence-key: , title:
"uniqueValuesFor" returns a list of strings (in your case). "sequence-key" only makes sense for lists of pairs. Dieter From webmaven@lvcm.com Sun Apr 1 23:27:06 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Sun, 01 Apr 2001 15:27:06 -0700 Subject: [Zope-CMF] Trust Metrics in Python (pymmetry) Message-ID: <3AC7AB3A.9F2F5AF@lvcm.com> I just happened across this interesting article: http://advogato.org/article/263.html Which announces a implementation of advogato's 'trust metric' system in Python: http://sourceforge.net/projects/pymmetry http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/pymmetry/?cvsroot=pymmetry This would seem like great addition to the CMF (I know, I know, patches accepted) and/or Swishdot. I haven't looked at the code yet to see if this is something that I should attempt with my current level of Zope Zen, but it looks promising. Cheers, Michael Bernstein. From tseaver@digicool.com Mon Apr 2 00:11:11 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 1 Apr 2001 19:11:11 -0400 (EDT) Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: On Sun, 1 Apr 2001, Ben Riga wrote: > >Hmm, this works for me on a customized search form: > > > > > > Subject > > > > > > > > > > Cool. Thanks. The 'dtml-sequence-item' is what I was looking > for. Looking now at the documentation, I'm embarassed that I > missed that. The next step is to fire a topic/query that lists > items in a 'subject'. I'll play with that over the next couple > of days. That should be straightforward: add a "String Criterion" for "Subject" on the "Criteria" page of the topic. > This stuff is cool but needs more documentation, a really > comprehensive tutorial and/or a demo portal to steal/learn code > from. I realize that this is in the works. With solid > documentation and a bit more marketing this stuff would be > unstoppable. Kind of like the effect Linux has had on Windows. > Only you'd be stepping on Interwoven, Vignette and maybe > Broadvision. Agreed. However, putting full-bore "productizing" resources into that effort is a non-trivial problem for a consulting / services company; we are too busy using it for our clients, plus evolving it, to go there just yet. > This list is a huge help. > > Thanks again, You are most welcome. As a long-time "Borland Barbarian" (I was the founding president of the Houston Association of Delphi Professionals, and still have the manual for Turbo Pascal 1.0 for CP/M), I'm delighted to be of service. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Mon Apr 2 01:00:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Apr 2001 01:00:10 +0100 Subject: [Zope-CMF] WebDAV, ZPT & CMF Message-ID: <3AC7C10A.B4BB8FB1@nipltd.com> Hi, Has anyone tried editing/customising a CMF instance via WebDAV? Can WebDAB used as a 'front end' to the CMF or is the normal web interface the onyl way for 'users' to interact with a site, as opposed to 'editors', etc, if you see what i mean? Also, has anyone created any skins using ZPT's yet? cheers, Chris From chrisw@nipltd.com Mon Apr 2 09:36:27 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Apr 2001 09:36:27 +0100 Subject: [Zope-CMF] Trust Metrics in Python (pymmetry) References: <3AC7AB3A.9F2F5AF@lvcm.com> Message-ID: <3AC83A0B.C3910C56@nipltd.com> "Michael R. Bernstein" wrote: > > This would seem like great addition to the CMF (I know, I > know, patches accepted) and/or Swishdot. I haven't looked at > the code yet to see if this is something that I should > attempt with my current level of Zope Zen, but it looks > promising. Cool... I'll try and take a look some time soon. I finally got to customising a CMF Instance last night, and it rocks :-) I'm trying to decide whether to get the initial Swishdot skin done now (and maybe in time for the competition... ;-) or try and get it done using ZPT (now that 1.0 has landed) What do people think? cheers, Chris PS: Anyone good with GoLive here that I can badger? From chrisw@nipltd.com Mon Apr 2 09:38:29 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Apr 2001 09:38:29 +0100 Subject: [Zope-CMF] Sharing bits of Skins between sites Message-ID: <3AC83A85.DF86DAE9@nipltd.com> Hi, Say I wanted to share the 'custom' bit of the skins folder between several CMF instances, could I just move it up to the folder in which the CMF instances live? cheers, Chris From seb@jamkit.com Mon Apr 2 10:58:07 2001 From: seb@jamkit.com (Seb Bacon) Date: 02 Apr 2001 10:58:07 +0100 Subject: [Zope-CMF] WebDAV, ZPT & CMF In-Reply-To: <3AC7C10A.B4BB8FB1@nipltd.com> Message-ID: Chris Withers wrote: > Hi, > > Has anyone tried editing/customising a CMF instance via WebDAV? > > Can WebDAB used as a 'front end' to the CMF or is the normal web interface the > onyl way for 'users' to interact with a site, as opposed to 'editors', etc, if > you see what i mean? I've been having a lot of problems with WebDAV - I've not got round to investigating it properly yet, but there seems to be some problem with publishing to Member Folders in the CMFDefault over webDAV. Outside Member Folders everything seems to work OK. I've decided, though, that in the the context of the CMF WebDAV is not a good idea, since it removes any way of enforcing inclusion of metadata. This decision conveniently means I won't need to look into the Member Folder issue, either...;-) seb From patrick@eahd.or.ug Mon Apr 2 11:05:58 2001 From: patrick@eahd.or.ug (Patrick Okui) Date: Mon, 02 Apr 2001 13:05:58 +0300 (EAT) Subject: [Zope-CMF] (no subject) Message-ID: <986205958.3ac84f06152fa@mail.eahd.or.ug> Hi all; I recently installed the CMF product on my zope 2.3.0 server with the patch that was posted on the CMF download site. That went fine; I added a portal and some members subscribed to it. However, whenever someone tries to edit his/her homepage and they press the button they get a screen with the following error.... I also get it when I login as a manager and try to edit the pages. any ideas??? Zope Error Zope has encountered an error while publishing this resource. Error Type: NameError Error Value: sys -------------------------------------------------------------------------------- Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable sys. 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/www/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: document_edit) File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: document_edit) File /usr/local/www/Zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: document_edit) File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: document_edit) File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: edit(REQUEST['text_format'], REQUEST['text'], REQUEST.get('file', ''))) (Info: edit) File , line 0, in ? File /usr/local/www/Zope/lib/python/Products/CMFCore/WorkflowCore.py, line 128, in __call__ (Object: edit) NameError: (see above) From paul@digicool.com Mon Apr 2 11:11:52 2001 From: paul@digicool.com (Paul Everitt) Date: Mon, 02 Apr 2001 06:11:52 -0400 Subject: [Zope-CMF] Trust Metrics in Python (pymmetry) References: <3AC7AB3A.9F2F5AF@lvcm.com> <3AC83A0B.C3910C56@nipltd.com> Message-ID: <3AC85068.557DDBE6@digicool.com> Chris Withers wrote: > I'm trying to decide whether to get the initial Swishdot skin done now (and > maybe in time for the competition... ;-) or try and get it done using ZPT (now > that 1.0 has landed) You should probably go the conservative route and do a DTML skin version. I'd like to see Swishdot aggressively tinker with the CMF machinery (e.g. topics) and help us make sure a 1.1 version of the CMF has a solid foundation for Swishdot. > What do people think? I think you'll see page templates pop up in CMF pretty soon. Have you had much of a chance to look at them, and do they address some of the issues you had with DTML? --Paul From paul@digicool.com Mon Apr 2 11:16:54 2001 From: paul@digicool.com (Paul Everitt) Date: Mon, 02 Apr 2001 06:16:54 -0400 Subject: [Zope-CMF] WebDAV, ZPT & CMF References: Message-ID: <3AC85196.BDCB187@digicool.com> Seb Bacon wrote: > I've been having a lot of problems with WebDAV - I've not got round to > investigating it properly yet, but there seems to be some problem with > publishing to Member Folders in the CMFDefault over webDAV. Outside > Member Folders everything seems to work OK. I've decided, though, that > in the the context of the CMF WebDAV is not a good idea, since it > removes any way of enforcing inclusion of metadata. This decision > conveniently means I won't need to look into the Member Folder issue, > either...;-) I also had some issues with saving in a member folder, but it only seemed to happen when I was on the road giving a demo. :^) For some reason it always worked fine if I saved as a manager outside the portal. For what it's worth, it *should* work, and moreover it *should* be the preferred way to author. So you're outta luck with your simplifying assumption. :^) While out-of-the-box you can't enforce the metadata, you should be able to customize the PUT handler. As you've probably noticed, the CMF inserts any metadata in HTML or STX that you don't provide, so it's part of the way there. If you think it would be useful, I'll get someone to put up a howto in the dogbowl about enforcing metadata. You, though, will have to do your part by: a. Filling in a nice, reproducible bug regarding WebDAV and member folders. b. Help us with the scenario or use case that you'd like for PUT handling. --Paul From chrisw@nipltd.com Mon Apr 2 11:24:05 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Apr 2001 11:24:05 +0100 Subject: [Zope-CMF] Trust Metrics in Python (pymmetry) References: <3AC7AB3A.9F2F5AF@lvcm.com> <3AC83A0B.C3910C56@nipltd.com> <3AC85068.557DDBE6@digicool.com> Message-ID: <3AC85345.6616DF81@nipltd.com> Paul Everitt wrote: > > You should probably go the conservative route and do a DTML skin > version. I'd like to see Swishdot aggressively tinker with the CMF > machinery (e.g. topics) and help us make sure a 1.1 version of the CMF > has a solid foundation for Swishdot. Okay, and besides, then I stand a chance of winning the T-Shirt and mug ;-) > > What do people think? > > I think you'll see page templates pop up in CMF pretty soon. Have you > had much of a chance to look at them, and do they address some of the > issues you had with DTML? I've only had a brief look but they seem to handle all of my gripes and more :-) (now if I could only persuade GoLive to play ncie with Zope over WebDAV...) cheers, Chris From nagarjun@hbcse.tifr.res.in Mon Apr 2 11:27:22 2001 From: nagarjun@hbcse.tifr.res.in (Nagarjuna G.) Date: Mon, 2 Apr 2001 15:57:22 +0530 (IST) Subject: [Zope-CMF] Members Join Off Message-ID: Could any one suggest me a way of suspending members `join in' off, but `login' on, in CMF. I want the admin to create the member folders, and once created the members can manage their area. Nagarjuna From wschan@bee-net.com Mon Apr 2 11:54:06 2001 From: wschan@bee-net.com (Chan Wai Shan) Date: Mon, 02 Apr 2001 18:54:06 +0800 Subject: [Zope-CMF] installing CMF-1.0 Message-ID: <3AC85A4E.B43B5531@bee-net.com> --------------456F6345D58BF18168191612 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Dear all, The readme file stated the following assumptions Assumptions - New installation - Zope configured using INSTANCE_HOME, '/var/zope', and SOFTWARE_HOME, '/usr/local/zope/Zope-2.3.1b1'. Q. Must? Q. Any workaround? Regards, wschan@bee-net.com Application Development Programmer --------------456F6345D58BF18168191612 Content-Type: text/html; charset=big5 Content-Transfer-Encoding: 7bit Dear all,

The readme file stated the following assumptions

Assumptions

 - New installation

 - Zope configured using INSTANCE_HOME, '/var/zope', and
   SOFTWARE_HOME, '/usr/local/zope/Zope-2.3.1b1'.
 

Q. Must?
Q. Any workaround?

Regards,
wschan@bee-net.com
Application Development Programmer
 
  --------------456F6345D58BF18168191612-- From tony.mcdonald@ncl.ac.uk Mon Apr 2 12:43:11 2001 From: tony.mcdonald@ncl.ac.uk (Tony McDonald) Date: Mon, 02 Apr 2001 12:43:11 +0100 Subject: [Zope-CMF] installing CMF-1.0 In-Reply-To: <3AC85A4E.B43B5531@bee-net.com> Message-ID: On 2/4/01 11:54 am, "Chan Wai Shan" wrote: > Dear all, > > The readme file stated the following assumptions > > Assumptions > > - New installation > > - Zope configured using INSTANCE_HOME, '/var/zope', and > SOFTWARE_HOME, '/usr/local/zope/Zope-2.3.1b1'. > > > Q. Must? > Q. Any workaround? I saw that and thought - uh-oh. Installed the software (moved the CMF* files into lib/python/Products basically) and it all seems ok to me... Hth tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope From jens@digicool.com Mon Apr 2 12:49:08 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Mon, 02 Apr 2001 07:49:08 -0400 Subject: [Zope-CMF] installing CMF-1.0 In-Reply-To: <3AC85A4E.B43B5531@bee-net.com> Message-ID: the only important piece is that you use a Zope version higher than 2.3.0 and make sure that CMFTopic, CMFCore and CMFDefault are copied to or linked into your zope installation's Products directory (/lib/python/Products) so that Zope sees them. restarting is mandatory after that of course. jens on 4/2/01 6:54, Chan Wai Shan at wschan@bee-net.com wrote: > Dear all, > > The readme file stated the following assumptions > > Assumptions > > - New installation > > - Zope configured using INSTANCE_HOME, '/var/zope', and > SOFTWARE_HOME, '/usr/local/zope/Zope-2.3.1b1'. > > > Q. Must? > Q. Any workaround? > > Regards, > wschan@bee-net.com > Application Development Programmer > > From khine@bmpublications.co.uk Mon Apr 2 15:08:56 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Mon, 2 Apr 2001 15:08:56 +0100 Subject: [Zope-CMF] CMF and Z39.50 protocol Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C0BB86.D6DC7DC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Here is an excerpt from the http://lcweb.loc.gov/z3950/agency/markup/01.html in respect to the above protocol which ALL libraries and information content provider software are promoting in one way or another. "This standard specifies a client/server based protocol for Information Retrieval. It specifies procedures and structures for a client to search a database provided by a server, retrieve database records identified by a search, scan a term list, and sort a result set. Access control, resource control, extended services, and a "help" facility are also supported. The protocol addresses communication between corresponding information retrieval applications, the client and server (which may reside on different computers); it does not address interaction between the client and the end-user." The CMF/Zope I believe addresses the interaction between the client and the end-user, and I suppose with the Standard Resource Metadata form a user can build and catalog the particular "object" as required. My question, well not so much a question but more of a requirement I have found to exist within the British establishment and its educational and learning institutions is for any software that provide content to support the Z39.50 search protocol. I think this will also enhance content provided by CMF as the Z39.50 search protocol was developed to give searchers the ability to query any catalogue or bibliographic file without needing to understand the different search interfaces provided by different software suppliers. Thanks for reading so far. Norman ------=_NextPart_000_001D_01C0BB86.D6DC7DC0 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IjgOAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANEHBAACAA8ACAAAAAEA9gAB A5AGAPwIAAAlAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB AAAAGQAAAENNRiBhbmQgIFozOS41MCBwcm90b2NvbAAAAAACAXEAAQAAABYAAAABwLt+a8ba3wmD J0MR1ZoXAGCXFmhgAAACAR0MAQAAACAAAABTTVRQOktISU5FQEJNUFVCTElDQVRJT05TLkNPLlVL AAsAAQ4AAAAAQAAGDgDgDFN+u8ABAgEKDgEAAAAYAAAAAAAAADSHBPUpPdQRmQwAABzWBCPCgAAA CwAfDgEAAAACAQkQAQAAAKEEAACdBAAAKgcAAExaRnU/KuiCAwAKAHJjcGcxMjUWMgD4C2BuDhAw MzNPAfcCpAPjAgBjaArAc/BldDAgBxMCgwBQA1RXEMkHbQKAfQqBdgiQd9JrC4BkNAxgYwBQCwNJ C7UgSASQZSAEACBxA5FleGMEkAUxA1IgFHRoFnBoAkBwOi+AL2xjd2ViLgkAAGMuZ292L3ozQDk1 MC9hZwnwYwR5LwDAcmt1cC9oMDEuGABtAyALgCCZCXBzcAWQBUB0bxezdwGgGSAWcHADYBvACOEg FHdoDeBoEWBMTCBwbGlicgrACJAWomRLGwECEHIAwHRpAiAgfwWgAjAJ8AVAHJEUkASBIPRzbwGA dwrAHBEWYRyRfwRgHxAPIBsCAiAWcCCweZ8iAAXAAHAcsBfQci4KomcKhAqECzBzYg9AAUBzDmEk ghICC/A0ICJU+x0wBCBzAZAU8AsRIGAbcV8GkB4jH1AdwB+hLxEgcvMcYAXAYmERIB6AHJcewbQg SR65UhEwCIF2B0C+LilQBUAmmByRFxBkCHDrHjUmAHIVMHQsAykiJzb/G7IRIArAHVEnMCZAAZEo Qbsf1h6AYiJwJzAnxCwbMd8qQxZwLtcJcAWhZAQgICH/AjAm0i/XLmIwoATwA5EnMP8fkB7gHbEm ADCgLFMJESchORtBdWwq4REwKrBBY+8XEAQRH2IDYGwwoiBwCHD/FxA22BbwH5EvsifCDeAHkIs0 5CcwIhfQbHAiF2CzANADEGl0MAEg0mwgcPsgYBpgcAkRCYAqsCWwHHk4YWRkG0ERIDbCbW3udQMA M/AfE2IRMBiQCfDtH1FyG0ICIGQhpB7IMMX/B0AWsDvQHcA+RDmRF8ItpfssUyfUKB0kAMAicBtB ICF3IgEuwAaQZhZRH7E90XBidTRRcyk7FoAFQGT+bweRItE9JhsBNFEA0D5rJ0JdF8I4wS11J8Eu IgMjRDxiQ01GL1pv/xtwKVA+oSdhHGE9OBfCR6//SL9JyzTkS+A7sy8xA/AXwN0Xs1MmFiogN5VN ETA9MH8u4SkSF6AnMEpSH1ADkWK+dQMQOeEecT5BB0BvIcA3F8IKsR8QYzXgCsEib7xiahuBOnAo QBsxcVSg+wlxIzVNInBXgAeQHxIwoP0YkGwDIEbiO4E+AC6DWIb/VIEFQARgFmEggDWDV4MHgP8f sUvgEPAcYQIQPhBJsRvQ3xbwNLFRQxsRF8JCBRAfEN5zHWBYoQGgNKFoXDMeY750BCAr4T5EQUIe cWwuUX8DACGzWLEs4EHjFoItQ27/InAgdxfAHwAf1h9XLhI7xPUXs1oZYC4ZgC42HJYjNftL4F4C a2gyBCAD8FlBO2P/CfAQ8BngZMgvaktRVyJmH38ciVcxAQAcYAkAG3BdM2f+aRxhLkRGARvlOsQb wViB/nIwAWNRVTUKUCKCb8BfUftVgB3wcB0xF2ADEFE0CGD/BUAiIAmAIaIbwV0RRgEmEv8Xs0UI LkVNYzqRK3Qvl3UpfyCGO7InYREQIzUlsABwa38tJAlwPTAhojuBOpAjLE7/HtILkCNZCuMjjAu2 fXMUUQIAf5AAAAALAAGACCAGAAAAAADAAAAAAAAARgAAAAADhQAAAAAAAAMAA4AIIAYAAAAAAMAA AAAAAABGAAAAABCFAAAAAAAACwAUgAggBgAAAAAAwAAAAAAAAEYAAAAAgoUAAAEAAAADAByACCAG AAAAAADAAAAAAAAARgAAAABShQAAJ2oBAB4AHYAIIAYAAAAAAMAAAAAAAABGAAAAAFSFAAABAAAA BAAAADkuMAALAB6ACCAGAAAAAADAAAAAAAAARgAAAAAGhQAAAAAAAAMAH4AIIAYAAAAAAMAAAAAA AABGAAAAAAGFAAAAAAAACwAogAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADACmACCAGAAAA AADAAAAAAAAARgAAAAARhQAAAAAAAAMAK4AIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAAHgA6 gAggBgAAAAAAwAAAAAAAAEYAAAAANoUAAAEAAAABAAAAAAAAAB4AO4AIIAYAAAAAAMAAAAAAAABG AAAAADeFAAABAAAAAQAAAAAAAAAeADyACCAGAAAAAADAAAAAAAAARgAAAAA4hQAAAQAAAAEAAAAA AAAAAgH4DwEAAAAQAAAANIcE9Sk91BGZDAAAHNYEIwIB+g8BAAAAEAAAADSHBPUpPdQRmQwAABzW BCMCAfsPAQAAAHcAAAAAAAAAOKG7EAXlEBqhuwgAKypWwgAAUFNUUFJYLkRMTAAAAAAAAAAATklU Qfm/uAEAqgA32W4AAABDOlxQcm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlc1xTeXN0ZW1cTWFwaVwx MDMzXE5UXG91dGxvb2sucHN0AAADAP4PBQAAAAMADTT9NwAAAgF/AAEAAAA6AAAAPE5FQkJKSkFN REVJSEJJQ0RDTkJPTUVKTENIQUEua2hpbmVAYm1wdWJsaWNhdGlvbnMuY28udWs+AAAAAwAGECe7 q84DAAcQKQUAAAMAEBAAAAAAAwAREAAAAAAeAAgQAQAAAGUAAABIRVJFSVNBTkVYQ0VSUFRGUk9N VEhFSFRUUDovL0xDV0VCTE9DR09WL1ozOTUwL0FHRU5DWS9NQVJLVVAvMDFIVE1MSU5SRVNQRUNU VE9USEVBQk9WRVBST1RPQ09MV0hJQ0hBAAAAAF0r ------=_NextPart_000_001D_01C0BB86.D6DC7DC0-- From jeffrey@Digicool.com Mon Apr 2 15:08:22 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Mon, 02 Apr 2001 10:08:22 -0400 Subject: [Zope-CMF] WebDAV, ZPT & CMF In-Reply-To: Message-ID: On 4/2/01 5:58 AM, "Seb Bacon" wrote: > Chris Withers wrote: >> Hi, >> >> Has anyone tried editing/customising a CMF instance via WebDAV? >> >> Can WebDAB used as a 'front end' to the CMF or is the normal web interface >> the >> onyl way for 'users' to interact with a site, as opposed to 'editors', etc, >> if >> you see what i mean? > > I've been having a lot of problems with WebDAV - I've not got round to > investigating it properly yet, but there seems to be some problem with > publishing to Member Folders in the CMFDefault over webDAV. Outside > Member Folders everything seems to work OK. I've decided, though, that > in the the context of the CMF WebDAV is not a good idea, since it > removes any way of enforcing inclusion of metadata. This decision > conveniently means I won't need to look into the Member Folder issue, > either...;-) While it doesn't enforce Metadata, it does allow it (when it comes to the CMF Document class). You can fill in the metadata in tags. When authoring HTML via FTP or the WebDAV source port in the CMF, all the meta tags get sent to the client on subsequent edits (anything done after creation). Granted, one still has to know to look for the meta tags in their editor, but can be done. Enforcement? None. Mostly because it's very hard to communicate with the clients well - you can't [easily] say "Oh, you *need* to fill in a Subject and Description meta tag." I'll look into WebDAV and GoLive into member folders a bit more today. Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From webmaven@lvcm.com Mon Apr 2 16:37:09 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Mon, 02 Apr 2001 08:37:09 -0700 Subject: [Zope-CMF] CMF and Z39.50 protocol References: Message-ID: <3AC89CA4.72980DF4@lvcm.com> Norman Khine wrote: > > [snip] > The CMF/Zope I believe addresses the interaction between the client and the > end-user, and I suppose with the Standard Resource Metadata form a user can > build and catalog the particular "object" as required. > [snip] > I think this will also enhance content provided by CMF as the Z39.50 search > protocol was developed to give searchers the ability to query any catalogue > or bibliographic file without needing to understand the different search > interfaces provided by different software suppliers. Personally, I'd be more interested (in the short term) for Zope to be able to act as a Z39.50 *client*, instead. Here is wxPresso, a Python implementation of the protocol: http://www.bsn.com/Z39.50/wxPresso.html Which I found on the following page: http://nile.dmu.ac.uk/elise/el2_dels/z3950.htm And here are some old postings to the Zope-dev list: http://lists.zope.org/pipermail/zope-dev/1999-November/002068.html http://classic.zope.org/pipermail/zope-dev/2000-May/004437.html HTH, Michael Bernstein. From khine@bmpublications.co.uk Mon Apr 2 16:48:01 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Mon, 2 Apr 2001 16:48:01 +0100 Subject: [Zope-CMF] CMF and Z39.50 protocol Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C0BB94.AEB252D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Thanks Michael, I think this was what I was looking for setting a client. Personally, I'd be more interested (in the short term) for Zope to be able to act as a Z39.50 *client*, instead. Here is wxPresso, a Python implementation of the protocol: Which I found on the following page: And here are some old postings to the Zope-dev list: HTH, Michael Bernstein. ------=_NextPart_000_0023_01C0BB94.AEB252D0 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IgIPAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANEHBAACABAALgAAAAEAHQEB A5AGAOgGAAAlAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB AAAAGAAAAENNRiBhbmQgWjM5LjUwIHByb3RvY29sAAIBcQABAAAAFgAAAAHAu4wTwdrfCb0nQxHV mhcAYJcWaGAAAAIBHQwBAAAAIAAAAFNNVFA6S0hJTkVAQk1QVUJMSUNBVElPTlMuQ08uVUsACwAB DgAAAABAAAYOAKzNA4y7wAECAQoOAQAAABgAAAAAAAAANIcE9Sk91BGZDAAAHNYEI8KAAAALAB8O AQAAAAIBCRABAAAAkgIAAI4CAACZAwAATFpGdQhXLfUDAAoAcmNwZzEyNRYyAPgLYG4OEDAzM08B 9wKkA2MCAGNoCsBz8GV0MCAHbQKDAFAD1DcQyQcTAoB9CoAIyCA7WwlvDjA1AoAKgXYIkHfSawuA ZDQMYGMAUAsDzHNiD0ABQHNhGCILtKY0EWAQ8G5rBCBNDeABEPBlbCwgSSB0mmgLgGsaUgQgd2Ea 8V8Q8AVAGkAbEgkAbxcRZy4gAhAFwBEhdBxCYSBsY2wIkAIwLgqiCoBQTQSQcwIgB0BseRohJ2Bk IGJlIARgCXAgvQuAdASQB5Af0B8QKAuAcxpRH0BzaAkRGlAEkG0iKRxzWm9wH0B0b/sfIgGgbCIT ANAFQBshHUCgWjM5LjURUCodZI4qGiALgCARYWQuCuOdCoBIH+EfoBrxeFAf8eceYBogHUBQeRpg AiAfoLptC1BlB4ACMBtwaSchdG9mIJNwA2AiMAjhOpUDMGMAQXUDIDxoAkAgcDovL3cqUC5iyHNu LgWgbS8jpCpAxSY1LingbWw+KVEBQN0poG4CIB9AJTVXGnAQ4PsaMQIQdRcwKDAghAIQHqBObwPw HFEKsGdlKT8vgQMBZS5kbXUuANCwLnVrLxoABABlMcGEMl8BAGxzL3ojsO8j4CwCLF8eAUEuQSCw H4E/CsAgwQNwH0AG8B8QcG+/IBAcQQQgIjEgoiHiLQEAVnYb8AQAdC/PLzeCcxQueiHxLgWwZy9w NwUgIVELcGwysDcFLzHCOTsQLU5vdieQHzDMci8YMAHQNjgsDy0R/yltHWAbIA3ROT86SgHQGDAQ LU1heTvRNDQzxjc8Ty0WSFRIGiAZtfwgQgSRIBELgCUmCvQSoxcMAR3jFFEARoAAAAsAAYAIIAYA AAAAAMAAAAAAAABGAAAAAAOFAAAAAAAAAwADgAggBgAAAAAAwAAAAAAAAEYAAAAAEIUAAAAAAAAL ABSACCAGAAAAAADAAAAAAAAARgAAAACChQAAAQAAAAMAHIAIIAYAAAAAAMAAAAAAAABGAAAAAFKF AAAnagEAHgAdgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAsAHoAIIAYAAAAA AMAAAAAAAABGAAAAAAaFAAAAAAAAAwAfgAggBgAAAAAAwAAAAAAAAEYAAAAAAYUAAAAAAAALACiA CCAGAAAAAADAAAAAAAAARgAAAAAOhQAAAAAAAAMAKYAIIAYAAAAAAMAAAAAAAABGAAAAABGFAAAA AAAAAwArgAggBgAAAAAAwAAAAAAAAEYAAAAAGIUAAAAAAAAeADqACCAGAAAAAADAAAAAAAAARgAA AAA2hQAAAQAAAAEAAAAAAAAAHgA7gAggBgAAAAAAwAAAAAAAAEYAAAAAN4UAAAEAAAABAAAAAAAA AB4APIAIIAYAAAAAAMAAAAAAAABGAAAAADiFAAABAAAAAQAAAAAAAAACAfgPAQAAABAAAAA0hwT1 KT3UEZkMAAAc1gQjAgH6DwEAAAAQAAAANIcE9Sk91BGZDAAAHNYEIwIB+w8BAAAAdwAAAAAAAAA4 obsQBeUQGqG7CAArKlbCAABQU1RQUlguRExMAAAAAAAAAABOSVRB+b+4AQCqADfZbgAAAEM6XFBy b2dyYW0gRmlsZXNcQ29tbW9uIEZpbGVzXFN5c3RlbVxNYXBpXDEwMzNcTlRcb3V0bG9vay5wc3QA AAMA/g8FAAAAAwANNP03AAACAX8AAQAAADoAAAA8TkVCQkpKQU1ERUlIQklDRENOQk9HRUpQQ0hB QS5raGluZUBibXB1YmxpY2F0aW9ucy5jby51az4AAAADAAYQOl7JGQMABxDuAQAAAwAQEAAAAAAD ABEQAQAAAB4ACBABAAAAZQAAAFRIQU5LU01JQ0hBRUwsSVRISU5LVEhJU1dBU1dIQVRJV0FTTE9P S0lOR0ZPUlNFVFRJTkdBQ0xJRU5UUEVSU09OQUxMWSxJREJFTU9SRUlOVEVSRVNURUQoSU5USEVT SE9SVFQAAAAA8W4= ------=_NextPart_000_0023_01C0BB94.AEB252D0-- From khine@bmpublications.co.uk Mon Apr 2 17:02:26 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Mon, 2 Apr 2001 17:02:26 +0100 Subject: [Zope-CMF] CMF and Z39.50 protocol In-Reply-To: <3AC89CA4.72980DF4@lvcm.com> Message-ID: Thanks Micheal, This is very interesting, there is not a lot of movement from CMF on this subject, is there a particular reason for this, apart from the obvious once, time. I'll try this evening to set up the the server for FreeBSD and then link this to MySQL from which maybe one can write a client for zope?!? Norman -----Original Message----- From: webmaven [mailto:webmaven]On Behalf Of Michael R. Bernstein Sent: Monday, April 02, 2001 4:37 PM To: Norman Khine Cc: Zope-Cmf Subject: Re: [Zope-CMF] CMF and Z39.50 protocol Norman Khine wrote: > > [snip] > The CMF/Zope I believe addresses the interaction between the client and the > end-user, and I suppose with the Standard Resource Metadata form a user can > build and catalog the particular "object" as required. > [snip] > I think this will also enhance content provided by CMF as the Z39.50 search > protocol was developed to give searchers the ability to query any catalogue > or bibliographic file without needing to understand the different search > interfaces provided by different software suppliers. Personally, I'd be more interested (in the short term) for Zope to be able to act as a Z39.50 *client*, instead. Here is wxPresso, a Python implementation of the protocol: http://www.bsn.com/Z39.50/wxPresso.html Which I found on the following page: http://nile.dmu.ac.uk/elise/el2_dels/z3950.htm And here are some old postings to the Zope-dev list: http://lists.zope.org/pipermail/zope-dev/1999-November/002068.html http://classic.zope.org/pipermail/zope-dev/2000-May/004437.html HTH, Michael Bernstein. From shane@digicool.com Mon Apr 2 17:01:16 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 02 Apr 2001 12:01:16 -0400 Subject: [Zope-CMF] Sharing bits of Skins between sites References: <3AC83A85.DF86DAE9@nipltd.com> Message-ID: <3AC8A24C.74187C59@digicool.com> Chris Withers wrote: > Say I wanted to share the 'custom' bit of the skins folder between several CMF > instances, could I just move it up to the folder in which the CMF instances > live? Short answer: yes! Long answer: before doing that, you'll probably want to create a folder other than "custom". It's really just an example. In portal_skins, create a folder called "swishdot" and add it as a layer in at least one skin path. Shane From info@sjeems.nl Mon Apr 2 17:07:47 2001 From: info@sjeems.nl (Info@sjeems.nl) Date: Mon, 2 Apr 2001 18:07:47 +0200 Subject: [Zope-CMF] Search Message-ID: <003901c0bb8f$107cb6a0$9600000a@blah> This is a multi-part message in MIME format. ------=_NextPart_000_0036_01C0BB9F.D2F8F8A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello can someone help me? I've setup my CMF portal and everything works fine except for the search = parts. If I search with the search form I get this error: Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 22] Invalid argument If I search using the searchbox (and shouldn't get any results) in the = top bar I get this error: Zope Error Zope has encountered an error while publishing this resource.=20 TypeError Sorry, a Zope error occurred.=20 Traceback (innermost last): File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line = 223, in publish_module File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line = 187, in publish File C:\Program Files\james\lib\python\Zope\__init__.py, line 221, in = zpublisher_exception_hook (Object: Traversable) File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line = 171, in publish File C:\Program Files\james\lib\python\ZPublisher\mapply.py, line 160, = in mapply (Object: search) File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line = 112, in call_object (Object: search) File C:\Program = Files\james\lib\python\Products\CMFCore\FSDTMLMethod.py, line 218, in = __call__ (Object: search) File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, = line 538, in __call__ (Object: search) File C:\Program Files\james\lib\python\OFS\DTMLMethod.py, line 182, in = __call__ (Object: standard_html_header) File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, = line 538, in __call__ (Object: standard_html_header) File C:\Program Files\james\lib\python\OFS\DTMLMethod.py, line 182, in = __call__ (Object: actions_box) File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, = line 538, in __call__ (Object: actions_box) File C:\Program Files\james\lib\python\DocumentTemplate\DT_Let.py, = line 146, in render (Object: isAnon=3D"portal_membership.isAnonymousUser()" AuthClass=3D"isAnon and 'GuestActions' or 'MemberActions'" uname=3D"isAnon and 'Guest' or = portal_membership.getAuthenticatedMember().getUserName()" obj=3D"this()" actions=3D"portal_actions.listFilteredActionsFor(obj)" user_actions=3D"actions['user']" folder_actions=3D"actions['folder']" object_actions=3D"actions['object'] + actions['workflow']" global_actions=3D"actions['global']") File C:\Program Files\james\lib\python\DocumentTemplate\DT_Util.py, = line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File C:\Program = Files\james\lib\python\Products\CMFCore\ActionsTool.py, line 162, in = listFilteredActionsFor (Object: portal_actions) File C:\Program = Files\james\lib\python\Products\CMFCore\WorkflowTool.py, line 222, in = listActions (Object: portal_workflow) File C:\Program = Files\james\lib\python\Products\CMFCore\DefaultWorkflow.py, line 209, in = listGlobalActions File C:\Program = Files\james\lib\python\Products\CMFCore\CatalogTool.py, line 200, in = searchResults (Object: Traversable) File C:\Program Files\james\lib\python\Products\ZCatalog\ZCatalog.py, = line 535, in searchResults (Object: Traversable) File C:\Program Files\james\lib\python\Products\ZCatalog\Catalog.py, = line 651, in searchResults File C:\Program Files\james\lib\python\Products\ZCatalog\Catalog.py, = line 542, in _indexedSearch File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, = line 513, in _apply_index File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, = line 576, in query File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, = line 616, in evaluate File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, = line 448, in __getitem__ TypeError: expected integer key Thanx, James ------=_NextPart_000_0036_01C0BB9F.D2F8F8A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello can someone help me?
 
I've setup my CMF portal and everything works = fine=20 except for the search parts.
 
If I search with the search form I get this=20 error:
 

Zope Error

Zope has encountered an error while = publishing=20 this resource.

Error Type: IOError
Error Value: = [Errno 22]=20 Invalid argument

 

If I search using the searchbox (and = shouldn't get=20 any results) in the top bar I get this error:

Zope Error

Zope has encountered an error while publishing this resource. =

TypeError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line =
223, in publish_module
  File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line =
187, in publish
  File C:\Program Files\james\lib\python\Zope\__init__.py, line 221, in =
zpublisher_exception_hook
    (Object: Traversable)
  File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line =
171, in publish
  File C:\Program Files\james\lib\python\ZPublisher\mapply.py, line 160, =
in mapply
    (Object: search)
  File C:\Program Files\james\lib\python\ZPublisher\Publish.py, line =
112, in call_object
    (Object: search)
  File C:\Program =
Files\james\lib\python\Products\CMFCore\FSDTMLMethod.py, line 218, in =
__call__
    (Object: search)
  File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, =
line 538, in __call__
    (Object: search)
  File C:\Program Files\james\lib\python\OFS\DTMLMethod.py, line 182, in =
__call__
    (Object: standard_html_header)
  File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, =
line 538, in __call__
    (Object: standard_html_header)
  File C:\Program Files\james\lib\python\OFS\DTMLMethod.py, line 182, in =
__call__
    (Object: actions_box)
  File C:\Program Files\james\lib\python\DocumentTemplate\DT_String.py, =
line 538, in __call__
    (Object: actions_box)
  File C:\Program Files\james\lib\python\DocumentTemplate\DT_Let.py, =
line 146, in render
    (Object: isAnon=3D"portal_membership.isAnonymousUser()"
          AuthClass=3D"isAnon and 'GuestActions' or 'MemberActions'"
          uname=3D"isAnon and 'Guest'
                 or =
portal_membership.getAuthenticatedMember().getUserName()"
          obj=3D"this()"
          actions=3D"portal_actions.listFilteredActionsFor(obj)"
          user_actions=3D"actions['user']"
          folder_actions=3D"actions['folder']"
          object_actions=3D"actions['object'] + actions['workflow']"
          global_actions=3D"actions['global']")
  File C:\Program Files\james\lib\python\DocumentTemplate\DT_Util.py, =
line 334, in eval
    (Object: portal_actions.listFilteredActionsFor(obj))
    (Info: portal_actions)
  File <string>, line 0, in ?
  File C:\Program =
Files\james\lib\python\Products\CMFCore\ActionsTool.py, line 162, in =
listFilteredActionsFor
    (Object: portal_actions)
  File C:\Program =
Files\james\lib\python\Products\CMFCore\WorkflowTool.py, line 222, in =
listActions
    (Object: portal_workflow)
  File C:\Program =
Files\james\lib\python\Products\CMFCore\DefaultWorkflow.py, line 209, in =
listGlobalActions
  File C:\Program =
Files\james\lib\python\Products\CMFCore\CatalogTool.py, line 200, in =
searchResults
    (Object: Traversable)
  File C:\Program Files\james\lib\python\Products\ZCatalog\ZCatalog.py, =
line 535, in searchResults
    (Object: Traversable)
  File C:\Program Files\james\lib\python\Products\ZCatalog\Catalog.py, =
line 651, in searchResults
  File C:\Program Files\james\lib\python\Products\ZCatalog\Catalog.py, =
line 542, in _indexedSearch
  File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, =
line 513, in _apply_index
  File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, =
line 576, in query
  File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, =
line 616, in evaluate
  File C:\Program Files\james\lib\python\SearchIndex\UnTextIndex.py, =
line 448, in __getitem__
TypeError: expected integer key

Thanx,

James

------=_NextPart_000_0036_01C0BB9F.D2F8F8A0-- From briga@borland.com Mon Apr 2 17:16:00 2001 From: briga@borland.com (Ben Riga) Date: Mon, 2 Apr 2001 09:16:00 -0700 Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: >That should be straightforward: add a "String Criterion" for >"Subject" on the "Criteria" page of the topic. Thanks. I'll try this. >Agreed. However, putting full-bore "productizing" resources >into that effort is a non-trivial problem for a consulting / >services company; we are too busy using it for our clients, >plus evolving it, to go there just yet. I understand this all to well. I think that it's the right way to go. >You are most welcome. As a long-time "Borland Barbarian" (I >was the founding president of the Houston Association of Delphi >Professionals, and still have the manual for Turbo Pascal 1.0 >for CP/M), I'm delighted to be of service. Very cool. I wouldn't wave the TP manual to high. You're dating yourself. So have you tried integrating Delphi and Zope? I've wondered if there is any way for Delphi developers to take advantage of the Zope/CMF infrastructure. Thanks again, Ben From briga@borland.com Mon Apr 2 17:16:01 2001 From: briga@borland.com (Ben Riga) Date: Mon, 2 Apr 2001 09:16:01 -0700 Subject: [Zope-CMF] using the subject property In-Reply-To: <15047.32677.925764.415905@lindm.dm> Message-ID: Thanks. As you can see I'm a novice at this. Thanks for your help, Ben -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Dieter Maurer Sent: Sunday, April 01, 2001 12:21 PM To: Ben Riga Cc: zope-cmf@zope.org Subject: RE: [Zope-CMF] using the subject property Ben Riga writes: > >> How can I build a list of all the subjects that have been used? > .... > > > > sequence-number: > sequence-key: , title:
"uniqueValuesFor" returns a list of strings (in your case). "sequence-key" only makes sense for lists of pairs. Dieter From shane@digicool.com Mon Apr 2 17:26:23 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 02 Apr 2001 12:26:23 -0400 Subject: [Zope-CMF] WebDAV, ZPT & CMF References: Message-ID: <3AC8A82F.8D9D0AA1@digicool.com> Jeffrey P Shell wrote: > > On 4/2/01 5:58 AM, "Seb Bacon" wrote: > > I've been having a lot of problems with WebDAV - I've not got round to > > investigating it properly yet, but there seems to be some problem with > > publishing to Member Folders in the CMFDefault over webDAV. Outside > > Member Folders everything seems to work OK. I've decided, though, that > > in the the context of the CMF WebDAV is not a good idea, since it > > removes any way of enforcing inclusion of metadata. This decision > > conveniently means I won't need to look into the Member Folder issue, > > either...;-) > > While it doesn't enforce Metadata, it does allow it (when it comes to the > CMF Document class). You can fill in the metadata in tags. When > authoring HTML via FTP or the WebDAV source port in the CMF, all the meta > tags get sent to the client on subsequent edits (anything done after > creation). Granted, one still has to know to look for the meta tags in > their editor, but can be done. Enforcement? None. Mostly because it's > very hard to communicate with the clients well - you can't [easily] say "Oh, > you *need* to fill in a Subject and Description meta tag." Here's how I see it: the server should accept WebDAV uploads regardless of metadata, but the workflow should disallow specific transitions until the metadata tool verifies that the required metadata is filled in correctly. For example, on one site a document could not be moved to the "published" state until the "creator" and "subject" fields have been filled in. Shane From webmaven@lvcm.com Mon Apr 2 17:49:56 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Mon, 02 Apr 2001 09:49:56 -0700 Subject: [Zope-CMF] CMF and Z39.50 protocol References: Message-ID: <3AC8ADB4.942D9786@lvcm.com> Norman Khine wrote: > > This is very interesting, there is not a lot of movement from CMF on this > subject, is there a particular reason for this, apart from the obvious once, > time. Well, developers tend to do work that gets them the biggest result for a given anount of work. Z39.50 is not a very popular protocol, compared with, say, HTTP. Therefore there is less incentive to work on it. In contrast, XML-RPC, which uses HTTP as it's transport layer, is very popular, so more work is being done on it. There are, however, a lot of interesting data resources that are only accessible through a Z39.50 interface, so I expect that sooner or later this work will get done by someone. > I'll try this evening to set up the the server for FreeBSD and then link > this to MySQL from which maybe one can write a client for zope?!? Umm, I'm not sure what you mean here. Zope can integrate with a relational DB such as MySQL rather easily, but how are you going to write a Z39.50 client from MySQL? Or were you referring to the Zope/MySQL combination? Cheers, Michael Bernstein. From jeffrey@Digicool.com Mon Apr 2 17:44:24 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Mon, 02 Apr 2001 12:44:24 -0400 Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: On 4/2/01 12:16 PM, "Ben Riga" wrote: >> That should be straightforward: add a "String Criterion" for >> "Subject" on the "Criteria" page of the topic. > > Thanks. I'll try this. I do plan to implement a 'Keyword Criterion', which will use the 'uniqueValues' from the catalog to present a multiple-select box on the criterion editing screen. This should be done and checked into the head in a couple of days. Or hours. :) Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From gogo@bluedynamics.com Mon Apr 2 17:54:08 2001 From: gogo@bluedynamics.com (Georg BERNHARD) Date: Mon, 2 Apr 2001 18:54:08 +0200 Subject: [Zope-CMF] CMF product development problems Message-ID: <002701c0bb95$8af04fe0$c900a8c0@NETWORK> Hello, everybody! I'm developing some CMF products and therefore I went through the CMF PortalPoll Tutorial. I ran into problems: When the product is set up like discribed and I want to instantiate it I get an error that reads like this: --------schnipp-------- Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __call__ Traceback (innermost last): File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: invokeFactory) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: invokeFactory) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Porta lFolder.py, line 368, in invokeFactory (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types Tool.py, line 714, in constructContent (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types Tool.py, line 473, in constructInstance (Object: ElementWithAttributes) AttributeError: (see above) --------schnapp-------- I have no clue how the error can be fixed and need help. Maybe some file just needs to be at another spot in the object database, but the tutorial doesn't tell anything about that. I also wonder if there is some more up-to-date tutorial online... Okay, thank you all in advance. Regards, Gogo. From barknech@ph-cip.uni-koeln.de Mon Apr 2 19:04:57 2001 From: barknech@ph-cip.uni-koeln.de (barknech@ph-cip.uni-koeln.de) Date: Mon, 2 Apr 2001 20:04:57 +0200 Subject: [Zope-CMF] Different skins in portal subfolders Message-ID: <20010402200457.A728@fliwatut.scifi> How can I let a subfolder in a CMF site use a different skin than the rest of the portal? Say, I had a Zoo site where animals from around the world can discuss their favorite food. In this, I want subfolders for discussions of Italian, Indian or African food only. Those should be skinned in a style using the national colors (e.g red-green-white for all items in the section "italian food discussions") I don't see the CMF'ish way to do this. I can make skin directories "italian", "indian" "african" in the portal_skins, customize here, but how do I activate the matching skin in a subfolder? Clueless, -- __ __ Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______ / __// __ /__/ __// // __ \ \/ / __ \\ ___\ / / / ____/ / / / // ____// /\ \\ ___\\____ \ /_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\ /_/ \_\ From jeffrey@Digicool.com Mon Apr 2 19:23:23 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Mon, 02 Apr 2001 14:23:23 -0400 Subject: [Zope-CMF] Different skins in portal subfolders In-Reply-To: <20010402200457.A728@fliwatut.scifi> Message-ID: On 4/2/01 2:04 PM, "barknech@ph-cip.uni-koeln.de" wrote: > How can I let a subfolder in a CMF site use a different skin than the > rest of the portal? > > Say, I had a Zoo site where animals from around the world can discuss their > favorite food. In this, I want subfolders for discussions of Italian, > Indian or African food only. Those should be skinned in a style using the > national colors (e.g red-green-white for all items in the section "italian > food discussions") > > I don't see the CMF'ish way to do this. I can make skin directories > "italian", "indian" "african" in the portal_skins, customize here, but how > do I activate the matching skin in a subfolder? > > Clueless, You can programmatically set the 'portal_skin' REQUEST variable (or however you choose to name it on the 'portal_skins' Properties tab). You might try setting this as a folder property (through the ZMI) in the specified folder. ie: set 'portal_skin' property in folder "African" to the string value 'african'. Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From dieter@handshake.de Mon Apr 2 20:00:07 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Apr 2001 21:00:07 +0200 (CEST) Subject: [Zope-CMF] CMF and Z39.50 protocol In-Reply-To: <697484628@toto.iv> Message-ID: <15048.52279.718188.190496@lindm.dm> Norman Khine writes: > This is a multi-part message in MIME format. > > ------=_NextPart_000_001D_01C0BB86.D6DC7DC0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit Did you ever hear that we do not favour MIME messages? Please stick to plain text. "Application/ms-tnef" parts need not go into the archives, my Linux box, ... > ... Zope and Z39.50 ... I like the idea. Looking for volunteers to implement the integration .... Dieter From dieter@handshake.de Mon Apr 2 19:55:57 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 2 Apr 2001 20:55:57 +0200 (CEST) Subject: [Zope-CMF] (no subject) In-Reply-To: <62371449@toto.iv> Message-ID: <15048.52029.479641.813976@lindm.dm> Patrick Okui writes: > I recently installed the CMF product on my zope 2.3.0 server with the > patch that was posted on the CMF download site.... > .... > Error Type: NameError > Error Value: sys Obviously a bug. You may contemplate to upgrade .... Or add import sys near the top of /usr/local/www/Zope/lib/python/Products/CMFCore/WorkflowCore.py Dieter From briga@borland.com Tue Apr 3 02:22:31 2001 From: briga@borland.com (Ben Riga) Date: Mon, 2 Apr 2001 18:22:31 -0700 Subject: [Zope-CMF] Images not appearing Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C0BBA1.E1CF1E70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit When I moved from 1.0beta to 1.0, I seem to have broken the link to the images (for example the logo.png in the standard header is not appearing). Has anyone else had this happen? Any ideas as to how I might track down the problem. Thanks, Ben ------=_NextPart_000_002D_01C0BBA1.E1CF1E70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
When I = moved from=20 1.0beta to 1.0, I seem to have broken the link to the images (for = example the=20 logo.png in the standard header is not appearing).  Has anyone else = had=20 this happen?  Any ideas as to how I might track down the=20 problem.
 
Thanks,
Ben
 
------=_NextPart_000_002D_01C0BBA1.E1CF1E70-- From briga@borland.com Tue Apr 3 02:43:36 2001 From: briga@borland.com (Ben Riga) Date: Mon, 2 Apr 2001 18:43:36 -0700 Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: >>>>> > >Hmm, this works for me on a customized search form: > > > > > > Subject > > > > > > > > > > Cool. Thanks. The 'dtml-sequence-item' is what I was looking > for. Looking now at the documentation, I'm embarassed that I > missed that. The next step is to fire a topic/query that lists > items in a 'subject'. I'll play with that over the next couple > of days. That should be straightforward: add a "String Criterion" for "Subject" on the "Criteria" page of the topic. <<<<< So the way I'd like to solve this is to have a query that builds a list of existing subject keywords. Then have the user click on one to fire another query that lists all objects that have that subject in their metadata. I have the method that lists all the subjects (SubjList) and I have a method that can list the details of a subject (SubjDetl). My question is how do I pass the 'subject' that the user clicked on. SubjList: &dtml-sequence-item;
No subjects
SubjDetl >> , sort_on='Date' , sort_order='reverse' , review_state='published' )" size="10"> "> &dtml-Title;
&dtml-Date;
There are no details.
Thanks, Ben From from-hkg@hongkong.com Tue Apr 3 04:05:55 2001 From: from-hkg@hongkong.com (from-hkg) Date: Tue, 3 Apr 2001 11:05:55 +0800 Subject: [Zope-CMF] Grouping Members ?? Message-ID: <002401c0bbeb$0a9c7bb0$9aa8a8c0@WAH> Hello all, Can CMF group members into different Group ? For the same group members, they can access any contents information for their group. Please give me some suggestion. Thanks You! From aem@byu.edu Tue Apr 3 05:43:07 2001 From: aem@byu.edu (Adrian Madrid) Date: Mon, 2 Apr 2001 21:43:07 -0700 (PDT) Subject: [Zope-CMF] Problem with custom types (HELP!) Message-ID: <20010403044307.71782.qmail@web10104.mail.yahoo.com> I'm having problems with the custom types I had working before upgrading from 2.3.1b3 to 2.3.1. I had portalpoll (from the tutorial) and two other alike working just fine but since I upgraded I keep getting the same error everytime a member/reviewer/manager adds one TTW. I even tried adding a new cmf site and reinstall the types but the same problem follows. Here is the traceback: Any ideas? I _really_ need to get a couple of types, basically news & documents with extra properties, working yesterday. If anybody has created something like that and is working on cmf 1.0 please give me some pointers or lines. Please? Thanks in advance, ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From patrick@eahd.or.ug Tue Apr 3 08:47:39 2001 From: patrick@eahd.or.ug (Patrick) Date: Tue, 3 Apr 2001 10:47:39 +0300 (EAT) Subject: [Zope-CMF] (no subject) In-Reply-To: <15048.52029.479641.813976@lindm.dm> Message-ID: Thanks, that was it; only that I got a new error for another indefined symbol which I traced to /usr/local/www/Zope/lib/python/SearchIndex/UnTextIndex.py the symobl was 'i' and it was being called by sys((i).... I changed this to id and it works... I just hope that in so doing, I did not break anything else.. Thanks again, Patrick. On Mon, 2 Apr 2001, Dieter Maurer wrote: > Patrick Okui writes: > > I recently installed the CMF product on my zope 2.3.0 server with the > > patch that was posted on the CMF download site.... > > .... > > Error Type: NameError > > Error Value: sys > Obviously a bug. > > You may contemplate to upgrade .... > > Or add > > import sys > > near the top of > > /usr/local/www/Zope/lib/python/Products/CMFCore/WorkflowCore.py > > > > Dieter > From sigve@tjora.no Tue Apr 3 08:44:05 2001 From: sigve@tjora.no (Sigve Tjora) Date: Tue, 3 Apr 2001 09:44:05 +0200 (CEST) Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: > So have you tried integrating Delphi and Zope? I've wondered if > there is any way for Delphi developers to take advantage of the > Zope/CMF infrastructure. There is a Python for Delphi package that you can get from http://www.multimania.com/marat/ I have used this package to separate gui from logic in an Delphi application. Gui in Delphi and logic in python. It should be quite easy doing this with Zope too. Just make a reference to your "root" object on the server with the PytonAtom, and then you can call python/Zope methods and properties directly from Delphi. You might want to add a RPC layer so you don't have to run Zope and your app on the same machine. To get all objects from a folder, you can write var: objects; objects=ZopeRoot.myFolder.Items(); in Delphi. The Python for Delphi package have I used sucessfully since late 2000. Hope this helps! mvh Sigve From chrisw@nipltd.com Mon Apr 2 23:43:21 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 02 Apr 2001 23:43:21 +0100 Subject: [Zope-CMF] Sharing bits of Skins between sites References: <3AC83A85.DF86DAE9@nipltd.com> <3AC8A24C.74187C59@digicool.com> Message-ID: <3AC90089.7356007E@nipltd.com> Shane Hathaway wrote: > > Long answer: before doing that, you'll probably want to create a folder > other than "custom". It's really just an example. In portal_skins, > create a folder called "swishdot" and add it as a layer in at least one > skin path. Hmmm... I don't think I got through what I meant... Say I created a CMF Site called TestCMF in the root of my ZODB. Then I do what you say above. Now, what I'd like to be able to do is move the swishdot folder up to the root of my ZODB, so that I can share it between TestCMF and AnotherCMF, if you see what I mean. I tried it, and TestCMF stops using the swishdot skin bits :-( Any ideas? cheers, Chris PS: Little buglet? I set my preferences to be 'listed' but I don't show up on /roster... how come? From adeknegt@worldonline.nl Tue Apr 3 09:29:54 2001 From: adeknegt@worldonline.nl (Arjan de Knegt) Date: Tue, 3 Apr 2001 10:29:54 +0200 (MET DST) Subject: [Zope-CMF] Skinning (translating) the actionbox Message-ID: All, I've been playing around with the skinning functionality in CMF, in my case focussing on translating the text. Works quite flexible, except for the actionbox. I couldn't find a DTML-doc or otherwise properties to change the text in the actionbox (the menuoptions like "Log in, Join, View"...) As far as I can see, the DTML uses the "name" property of object "actions", and these names are hardcoded in ActionsTool.py. Is this an issue or did I miss an entry in the maillist? Thanx in advance. Greatings, Arjan. From tseaver@digicool.com Tue Apr 3 12:26:41 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 3 Apr 2001 07:26:41 -0400 (EDT) Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: On Mon, 2 Apr 2001, Ben Riga wrote: > Very cool. I wouldn't wave the TP manual to high. You're dating > yourself. Heh, don't I know it. TP for CP/M was the first "professional tool" I ever bought, in what turned out to be my real career. > So have you tried integrating Delphi and Zope? I've wondered if > there is any way for Delphi developers to take advantage of the > Zope/CMF infrastructure. I haven't looked at it, I'm afraid; I no longer even boot to Windows except to read MS Project files dumped on me by hapless project managers. :) I did a presentation for HADP on integrating Delphi and Python: http://www.palladion.com/HADP_Jan99/ Assuming that the "Python embedding components", http://www.multimania.com/marat/delphi/python.htm still work, then it should be possible to open and manipulate the ZODB directly from within a Python script running under Delphi: import Zope app = Zope.app() cmf_site = app.CMF_Site If 'cmf_site' is exposed as a variable to Delphi code, then the Delphi app could call its methods directly (I *think*; I haven't tried this). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From shane@digicool.com Tue Apr 3 13:40:47 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 3 Apr 2001 08:40:47 -0400 (EDT) Subject: [Zope-CMF] Sharing bits of Skins between sites In-Reply-To: <3AC90089.7356007E@nipltd.com> Message-ID: On Mon, 2 Apr 2001, Chris Withers wrote: > Shane Hathaway wrote: > > > > Long answer: before doing that, you'll probably want to create a folder > > other than "custom". It's really just an example. In portal_skins, > > create a folder called "swishdot" and add it as a layer in at least one > > skin path. > > Hmmm... I don't think I got through what I meant... > > Say I created a CMF Site called TestCMF in the root of my ZODB. Then I do what > you say above. > > Now, what I'd like to be able to do is move the swishdot folder up to the root > of my ZODB, so that I can share it between TestCMF and AnotherCMF, if you see > what I mean. Ah, I see. Nope, you can't do that. You might consider creating a product that registers a DirectoryView, however. Shane From tseaver@digicool.com Tue Apr 3 13:17:43 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 3 Apr 2001 08:17:43 -0400 (EDT) Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: On Mon, 2 Apr 2001, Ben Riga wrote: > > >>>>> > > >Hmm, this works for me on a customized search form: > > > > > > > > > Subject > > > > > > > > > > > > > > > > Cool. Thanks. The 'dtml-sequence-item' is what I was looking > > for. Looking now at the documentation, I'm embarassed that I > > missed that. The next step is to fire a topic/query that lists > > items in a 'subject'. I'll play with that over the next couple > > of days. > > That should be straightforward: add a "String Criterion" for > "Subject" on the "Criteria" page of the topic. > <<<<< > > So the way I'd like to solve this is to have a query that > builds a list of existing subject keywords. Then have the user > click on one to fire another query that lists all objects that > have that subject in their metadata. I have the method that > lists all the subjects (SubjList) and I have a method that can > list the details of a subject (SubjDetl). My question is how > do I pass the 'subject' that the user clicked on. > > SubjList: > > &dtml-sequence-item;
You need to encode the value into the URL, or else arrange to get it to the next method via an HTTP POST. The first method would look like: > > No subjects >
The second method would be like the one I posted above, where the value was passed via the form variable bound to a ' element. > SubjDetl > pass info here>>> > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )" size="10"> > > > "> &dtml-Title;
> &dtml-Date;
> > > > > > There are no details. > > >
Hope that helps! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From shane@digicool.com Tue Apr 3 14:20:20 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 03 Apr 2001 09:20:20 -0400 Subject: [Zope-CMF] Skinning (translating) the actionbox References: Message-ID: <3AC9CE14.BE73500D@digicool.com> Arjan de Knegt wrote: > > All, > > I've been playing around with the skinning functionality in CMF, in my > case focussing on translating the text. Works quite flexible, except for > the actionbox. I couldn't find a DTML-doc or otherwise properties to > change the text in the actionbox (the menuoptions like "Log in, Join, > View"...) As far as I can see, the DTML uses the "name" property of object > "actions", and these names are hardcoded in ActionsTool.py. > > Is this an issue or did I miss an entry in the maillist? Yes, it is an issue. Perhaps an FSProperties object would be the right solution. Shane From shane@digicool.com Tue Apr 3 14:22:53 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 03 Apr 2001 09:22:53 -0400 Subject: [Zope-CMF] Problem with custom types (HELP!) References: <20010403044307.71782.qmail@web10104.mail.yahoo.com> Message-ID: <3AC9CEAD.29277A9E@digicool.com> Adrian Madrid wrote: > > C:\BensonP\lib\python\Products\CMFCore\TypesTool.py, > line 471, in constructInstance > (Object: ElementWithAttributes) > Unauthorized: Cannot create Poll > > Any ideas? I _really_ need to get a couple of types, > basically news & documents with extra properties, > working yesterday. If anybody has created something > like that and is working on cmf 1.0 please give me > some pointers or lines. Please? If you install the ZDebug product, it will give you more information about the reason for the exception. http://www.zope.org/Members/hathawsh/ZDebug is the URL, I think. Shane From senn@maya.com Tue Apr 3 14:38:02 2001 From: senn@maya.com (Jeff Senn) Date: 03 Apr 2001 08:38:02 -0500 Subject: [Zope-CMF] Re: [Zope] CMF reconfiguration error In-Reply-To: <4F6632C1F6D@mercury.scp.nl> ("Hans de Wit"'s message of "Tue, 3 Apr 2001 11:11:02 MET") References: <4F6632C1F6D@mercury.scp.nl> Message-ID: [on the Zope list] "Hans de Wit" writes: > I tried the CMF on a clean Zope 2.3.1 configuration. Everything went pretty good, except > for the reconfiguration of the portal: > > Error Type: TypeError > Error Value: expected integer key > > The traceback is in the end of this message. > > I am using a Windows machine, so the assumptions in the readme are not completely met: I have the same problem on a linux install (fresh Zope 2.3.1 and CMF 1.0). Help! -- -Jas ----snip----- Error Type: TypeError Error Value: expected integer key Traceback (innermost last): File /home/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: reconfig) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: reconfig) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: reconfig) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: reconfig) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_Return.py, line 106, in render (Object: reconfig_form(_.None, _, portal_status_message='Settings changed')) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: reconfig_form(_.None, _, portal_status_message='Settings changed')) (Info: _) File , line 0, in ? File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: reconfig_form) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: reconfig_form) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: actions_box) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: actions_box) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File /home/zope/Zope-2.3.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/ActionsTool.py, line 162, in listFilteredActionsFor (Object: portal_actions) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/WorkflowTool.py, line 222, in listActions (Object: portal_workflow) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/DefaultWorkflow.py, line 209, in listGlobalActions File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/CMFCore/CatalogTool.py, line 200, in searchResults (Object: Traversable) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, line 651, in searchResults File /home/zope/Zope-2.3.1-linux2-x86/lib/python/Products/ZCatalog/Catalog.py, line 542, in _indexedSearch File /home/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, line 513, in _apply_index File /home/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, line 576, in query File /home/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, line 616, in evaluate File /home/zope/Zope-2.3.1-linux2-x86/lib/python/SearchIndex/UnTextIndex.py, line 448, in __getitem__ TypeError: (see above) From paul@digicool.com Tue Apr 3 14:46:56 2001 From: paul@digicool.com (Paul Everitt) Date: Tue, 03 Apr 2001 09:46:56 -0400 Subject: [Zope-CMF] Skinning (translating) the actionbox References: <3AC9CE14.BE73500D@digicool.com> Message-ID: <3AC9D450.544C8F96@digicool.com> I think that having Python Scripts in skins as the "presentation logic" is a good idea, and that this is a good candidate for a Python Script. That is, a Python Script that returns a sequence of sequences: ActionsItems.py ---------------- def list_action_items(): return [ ('Action One Label', '/action/one/url'), ('Action Two Label', '/action/two/url'), ] It's hard to construct something more convenient than Python for representing this. --Paul Shane Hathaway wrote: > > Arjan de Knegt wrote: > > > > All, > > > > I've been playing around with the skinning functionality in CMF, in my > > case focussing on translating the text. Works quite flexible, except for > > the actionbox. I couldn't find a DTML-doc or otherwise properties to > > change the text in the actionbox (the menuoptions like "Log in, Join, > > View"...) As far as I can see, the DTML uses the "name" property of object > > "actions", and these names are hardcoded in ActionsTool.py. > > > > Is this an issue or did I miss an entry in the maillist? > > Yes, it is an issue. Perhaps an FSProperties object would be the right > solution. > > Shane > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From shane@digicool.com Tue Apr 3 14:49:52 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 3 Apr 2001 09:49:52 -0400 (EDT) Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: <3AC9D450.544C8F96@digicool.com> Message-ID: On Tue, 3 Apr 2001, Paul Everitt wrote: > I think that having Python Scripts in skins as the "presentation logic" > is a good idea, and that this is a good candidate for a Python Script. FSPythonScript is already done and checked in. (Just add a .py file to the filesystem and voila!) > That is, a Python Script that returns a sequence of sequences: > > ActionsItems.py > ---------------- > > def list_action_items(): > return [ > ('Action One Label', '/action/one/url'), > ('Action Two Label', '/action/two/url'), > ] > > It's hard to construct something more convenient than Python for > representing this. That's an interesting idea but I don't think it is appropriate for the standard ActionsTool. ActionsTool is too complex and speed critical to be implemented as a Python Script IMO. Shane From shane@digicool.com Tue Apr 3 14:54:43 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 3 Apr 2001 09:54:43 -0400 (EDT) Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: <3AC9D450.544C8F96@digicool.com> Message-ID: On Tue, 3 Apr 2001, Paul Everitt wrote: > > I think that having Python Scripts in skins as the "presentation logic" > is a good idea, and that this is a good candidate for a Python Script. > That is, a Python Script that returns a sequence of sequences: > > ActionsItems.py > ---------------- > > def list_action_items(): > return [ > ('Action One Label', '/action/one/url'), > ('Action Two Label', '/action/two/url'), > ] > > It's hard to construct something more convenient than Python for > representing this. Hmm... I just took another look at ActionsTool and decided that maybe you're on to something after all. I should not be so quick to dismiss ideas. ActionsTool would not go away but would use a script to generate actions. Community, what would you prefer: editing a short script or filling in properties? The script idea is more flexible but requires more knowledge by the portal manager. Shane From barknech@ph-cip.uni-koeln.de Tue Apr 3 15:02:22 2001 From: barknech@ph-cip.uni-koeln.de (Frank Barknecht) Date: Tue, 3 Apr 2001 16:02:22 +0200 Subject: [Zope-CMF] Different skins in portal subfolders Message-ID: <20010403160222.A4314@server.online.dradio.de> Jeffrey P Shell wrote: > wrote: > > How can I let a subfolder in a CMF site use a different skin than the > > rest of the portal? > > > You can programmatically set the 'portal_skin' REQUEST variable (or however > you choose to name it on the 'portal_skins' Properties tab). You might try > setting this as a folder property (through the ZMI) in the specified folder. > > ie: set 'portal_skin' property in folder "African" to the string value > 'african'. Hi Jeffrey, I could not get this to work. I tried to set a property in a folder to the name of the skin. The skin is okay, it shows, if I log into my site and select it in the Member Preferences. But if I make a property, it is not used. And "" in a test document still shows the main portal skin. If I try to set the portal_skin REQUEST with this is shown in the debugging output but the skin is still is not used. bye, -- Frank Barknecht From jeffrey@Digicool.com Tue Apr 3 15:00:01 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 03 Apr 2001 10:00:01 -0400 Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: Message-ID: On 4/3/01 4:29 AM, "Arjan de Knegt" wrote: > All, > > I've been playing around with the skinning functionality in CMF, in my > case focussing on translating the text. Works quite flexible, except for > the actionbox. I couldn't find a DTML-doc or otherwise properties to > change the text in the actionbox (the menuoptions like "Log in, Join, > View"...) As far as I can see, the DTML uses the "name" property of object > "actions", and these names are hardcoded in ActionsTool.py. > > Is this an issue or did I miss an entry in the maillist? In the Types Tool, you can change the name of the actions (don't change the id!) for the Content Types. This doesn't help for the global actions though. Ultimately, more of the tools, including the ActionsTool, need a UI where this can be configured. The TypesTool is a good start by exposing this for the content objects, I don't know what other tools like Workflow that participate in Actions do (or are capable of). Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From chrisw@nipltd.com Tue Apr 3 15:35:51 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Apr 2001 15:35:51 +0100 Subject: [Zope-CMF] Skinning (translating) the actionbox References: Message-ID: <3AC9DFC7.3FBE6282@nipltd.com> Shane Hathaway wrote: > actions. Community, what would you prefer: editing a short script or > filling in properties? The script idea is more flexible but requires more > knowledge by the portal manager. Can't we have the option to do either depending on what type of ActionTool we instantiate? Loving the taste of the cake he's eating (skins are v.v.v.cool :-), Chris From jeffrey@Digicool.com Tue Apr 3 15:55:52 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 03 Apr 2001 10:55:52 -0400 Subject: [Zope-CMF] Skinning (translating) the actionbox Message-ID: On 4/3/01 9:54 AM, "Shane Hathaway" wrote: > Hmm... I just took another look at ActionsTool and decided that maybe > you're on to something after all. I should not be so quick to dismiss > ideas. ActionsTool would not go away but would use a script to generate > actions. Community, what would you prefer: editing a short script or > filling in properties? The script idea is more flexible but requires more > knowledge by the portal manager. > > Shane I think it requires too much knowledge for a majority of the audience we claim we want to target. I agree with Chris Withers - maybe there should be the option for both. But I think the default should be property based. Flexibility is a nice option, but at what usability cost? Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From webmaven@lvcm.com Tue Apr 3 16:00:31 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Tue, 03 Apr 2001 08:00:31 -0700 Subject: [Zope-CMF] Skinning (translating) the actionbox References: Message-ID: <3AC9E58F.885ABFED@lvcm.com> Shane Hathaway wrote: > > On Tue, 3 Apr 2001, Paul Everitt wrote: > > > > > I think that having Python Scripts in skins as the "presentation logic" > > is a good idea, and that this is a good candidate for a Python Script. > > That is, a Python Script that returns a sequence of sequences: > > > > [snip Python] > > Hmm... I just took another look at ActionsTool and decided that maybe > you're on to something after all. I should not be so quick to dismiss > ideas. ActionsTool would not go away but would use a script to generate > actions. Community, what would you prefer: editing a short script or > filling in properties? How would either approach affect localization products? Michael Bernstein. From seb@jamkit.com Tue Apr 3 17:02:34 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 3 Apr 2001 17:02:34 +0100 Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: ; from shane@digicool.com on Tue, Apr 03, 2001 at 09:54:43AM -0400 References: <3AC9D450.544C8F96@digicool.com> Message-ID: <20010403170232.B1535@lenin.jamkit.com> * Shane Hathaway [010403 16:01]: > On Tue, 3 Apr 2001, Paul Everitt wrote: > > > > > I think that having Python Scripts in skins as the "presentation logic" > > is a good idea, and that this is a good candidate for a Python Script. > > That is, a Python Script that returns a sequence of sequences: > > > > ActionsItems.py > > Hmm... I just took another look at ActionsTool and decided that maybe > you're on to something after all. I should not be so quick to dismiss > ideas. ActionsTool would not go away but would use a script to generate > actions. Community, what would you prefer: editing a short script or > filling in properties? The script idea is more flexible but requires more > knowledge by the portal manager. > > Shane ...my 2 euros worth: The problem with putting actions in a skin is that they're *not* presentation logic, but data. Moving data outside the tool implementations would be inconsistent. global_actions should be a property of an ActionsTool, I think, which could be edited TTW just like TypesTools. seb From shane@digicool.com Tue Apr 3 16:32:02 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 3 Apr 2001 11:32:02 -0400 (EDT) Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: <3AC9DFC7.3FBE6282@nipltd.com> Message-ID: On Tue, 3 Apr 2001, Chris Withers wrote: > Shane Hathaway wrote: > > > actions. Community, what would you prefer: editing a short script or > > filling in properties? The script idea is more flexible but requires more > > knowledge by the portal manager. > > Can't we have the option to do either depending on what type of ActionTool we > instantiate? Yeah, but the question is which we should do first. > Loving the taste of the cake he's eating (skins are v.v.v.cool :-), Great! Shane From jeffrey@Digicool.com Tue Apr 3 17:15:18 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 03 Apr 2001 12:15:18 -0400 Subject: [Zope-CMF] Personalization (was something about some guy leaving some place) Message-ID: Paul said: > > Can you explain personalization? The CMF (formerly PTK) does some of > personalization, but I wonder what parts it doesn't address of > "personalization" as you see it. > Well, Topics and Favorites and Syndication (client) per Member may get most of the personalization we want, or may think is personalization. But since you like to give me so much to read, here's a return on the favor ;). It's a paper from IBM about Web Site Personalization. I read it a long time ago and am looking back over it now myself. http://www-106.ibm.com/developerworks/library/personalization/index.html Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From design@aet-es.org Tue Apr 3 17:23:00 2001 From: design@aet-es.org (design) Date: Tue, 3 Apr 2001 18:23:00 +0200 Subject: [Zope-CMF] New and need info on site building with CMF Message-ID: <002301c0bc5a$bac33e10$53b02a3e@OFFICE> Has anyone out there got any documentation, however rudimentary, on actual site building with CMF? Possible approaches...basic information...is the PTK documentation still valid? we have just set up a zope install and I've been honoured with the task of trying to make sense of it...never touched PTK and have never built any sites in zope...yes, its one of those crys for help!!!! regards Eduardo From shane@digicool.com Tue Apr 3 17:35:16 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 03 Apr 2001 12:35:16 -0400 Subject: [Zope-CMF] New and need info on site building with CMF References: <002301c0bc5a$bac33e10$53b02a3e@OFFICE> Message-ID: <3AC9FBC4.6526C5E9@digicool.com> design wrote: > > Has anyone out there got any documentation, however rudimentary, on > actual site building with CMF? Possible approaches...basic > information...is the PTK documentation still valid? we have just set > up a zope install and I've been honoured with the task of trying to > make sense of it...never touched PTK and have never built any sites > in zope...yes, its one of those crys for help!!!! Docs are being written at http://cmf.zope.org/ . Jeffrey especially has written some good documentation. Shane From chrisw@nipltd.com Tue Apr 3 17:51:48 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 03 Apr 2001 17:51:48 +0100 Subject: [Zope-CMF] Skinning (translating) the actionbox References: Message-ID: <3AC9FFA4.B0FA94F@nipltd.com> Shane Hathaway wrote: > > Yeah, but the question is which we should do first. Whichever's easiest to implement, XP it ;-) cheers, Chris From khine@btinternet.com Tue Apr 3 18:26:18 2001 From: khine@btinternet.com (Norman Khine) Date: Tue, 3 Apr 2001 18:26:18 +0100 Subject: [Zope-CMF] CMF and Z39.50 protocol In-Reply-To: <3AC8ADB4.942D9786@lvcm.com> Message-ID: Hello Michael, What I meant was by integrating MySQL (or any db for that fact)is to use CMF and zope as the fron end window for users to build their data and this in turn to be stored within MySQL, which will then be made available to Z39.50 ZAP. A bit like add a News Item, this can then be stored and extracted via the Z39.50 protocol and therefore made available to a larger array of "portals" Isn't;^) that the idea behind the Z39.50 protocol?! I think if we could search content from CMF from an nth number of portals and list nth number of entries provided from different type of portals ie swishdot, squishdot and slashdot will be pretty cool. And even cooler is the fact that it can provide this in parallel, would you agree? I must appologise, being new to programming and development, I sometimes find myself I want to learn to teleport my self before I've learned to fly ;^) Any way I set up Z39.50 on a FreeBSD4.2 quite easily, I was supprised myself it went so smoothly (I must be getting good ha ha ha ), ZAP as the search interface and the YAZ client for entering the data, I will put some records and see if my ZAP finds them!!!!???. I also saw a post somewhere where it showed a way of storing the data into a MySQL table, but I lost the link, Ugh ugh... I am sure I remmember one day, in the mean time do you think firstly I am doing this in the correct manner. Thanks for your thoughts Regards Norman PS appologies to Dieter, I did not realise my settings are in MIME. -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Michael R. Bernstein Sent: Monday, April 02, 2001 5:50 PM To: Norman Khine Cc: Zope-Cmf Subject: Re: [Zope-CMF] CMF and Z39.50 protocol Norman Khine wrote: > > This is very interesting, there is not a lot of movement from CMF on this > subject, is there a particular reason for this, apart from the obvious once, > time. Well, developers tend to do work that gets them the biggest result for a given anount of work. Z39.50 is not a very popular protocol, compared with, say, HTTP. Therefore there is less incentive to work on it. In contrast, XML-RPC, which uses HTTP as it's transport layer, is very popular, so more work is being done on it. There are, however, a lot of interesting data resources that are only accessible through a Z39.50 interface, so I expect that sooner or later this work will get done by someone. > I'll try this evening to set up the the server for FreeBSD and then link > this to MySQL from which maybe one can write a client for zope?!? Umm, I'm not sure what you mean here. Zope can integrate with a relational DB such as MySQL rather easily, but how are you going to write a Z39.50 client from MySQL? Or were you referring to the Zope/MySQL combination? Cheers, Michael Bernstein. _______________________________________________ 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 webmaven@lvcm.com Tue Apr 3 18:46:40 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Tue, 03 Apr 2001 10:46:40 -0700 Subject: [Zope-CMF] CMF and Z39.50 protocol References: Message-ID: <3ACA0C80.A2051830@lvcm.com> Norman Khine wrote: > > Hello Michael, > What I meant was by integrating MySQL (or any db for that fact)is to use CMF > and zope as the fron end window for users to build their data and this in > turn to be stored within MySQL, which will then be made available to Z39.50 > ZAP. A bit like add a News Item, this can then be stored and extracted via > the Z39.50 protocol and therefore made available to a larger array of > "portals" > > Isn't;^) that the idea behind the Z39.50 protocol?! I think if we could > search content from CMF from an nth number of portals and list nth number of > entries provided from different type of portals ie swishdot, squishdot and > slashdot will be pretty cool. And even cooler is the fact that it can > provide this in parallel, would you agree? This would be cool, but also a bit of a hack. Is the only reason that you're storing the data in MySQL to expose it via Z39.50? If so, it would be cooler to expose the ZODB directly instead. Cheers, Michael Bernstein. P.S. Perhaps you should write up a fishbowl proposal at http://dev.zope.org From Charles.Hall@sas.com Tue Apr 3 19:15:06 2001 From: Charles.Hall@sas.com (Charles Hall) Date: Tue, 3 Apr 2001 14:15:06 -0400 Subject: [Zope-CMF] Newbie CMF install question Message-ID: I've installed Python and Zope. Got it started and viewed the Control Panel, etc. So far so good. Next I linked the CMFCore, CMFDefault, CMFTopic directories under "lib/Python/Products" in the Zope directory, just as the CMF instructions say. When I restart Zope I get the error below. Can anyone tell me how to debug? Line 89 is the first 'import' command in the __init__.py script. Or should I start looking at the last file mentioned, SecurityInfo.py? Where are the best docs for CMF? The web site looks mighty lean on set up stuff, or else I missed something (highly possible!). Seems like an awful lot for a newbie to grasp all at once... Thanks in advance. C. Hall Cary, NC 2001-04-03T17:50:44 ERROR(200) Zope Couldn't import Products.CMFCore Traceback (innermost last): File /vol/chhall/Zope-2.3.0-src/lib/python/OFS/Application.py, line 530, in import_products (Object: string) File /vol/chhall/Zope-2.3.0-src/lib/python/Products/CMFCore/__init__.py, line 89, in ? File /vol/chhall/Zope-2.3.0-src/lib/python/Products/CMFCore/PortalObject.py, line 87, in ? File /vol/chhall/Zope-2.3.0-src/lib/python/Products/CMFCore/PortalFolder.py, line 120, in ? File /vol/chhall/Zope-2.3.0-src/lib/python/OFS/ObjectManager.py, line 221, in __class_init__ (Object: PortalFolder) File /vol/chhall/Zope-2.3.0-src/lib/python/App/class_init.py, line 117, in default__class_init__ (Object: PortalFolder) File /vol/chhall/Zope-2.3.0-src/lib/python/AccessControl/SecurityInfo.py, line 245, in apply TypeError: tuple() argument must be a sequence From briga@borland.com Tue Apr 3 19:38:22 2001 From: briga@borland.com (Ben Riga) Date: Tue, 3 Apr 2001 11:38:22 -0700 Subject: [Zope-CMF] using the subject property In-Reply-To: Message-ID: >>>>> > So have you tried integrating Delphi and Zope? I've wondered if > there is any way for Delphi developers to take advantage of the > Zope/CMF infrastructure. I haven't looked at it, I'm afraid; I no longer even boot to Windows except to read MS Project files dumped on me by hapless project managers. :) I did a presentation for HADP on integrating Delphi and Python: http://www.palladion.com/HADP_Jan99/ <<<<< The Delphi stuff sounds cool. I printed out some stuff and will play and read some more offline. Thanks, Ben From johanc@torped.se Tue Apr 3 19:57:28 2001 From: johanc@torped.se (Johan Carlsson) Date: Tue, 3 Apr 2001 20:57:28 +0200 Subject: [Zope-CMF] Grouping Members ?? References: <002401c0bbeb$0a9c7bb0$9aa8a8c0@WAH> Message-ID: <007f01c0bc71$a10ec540$ad0aa8c0@tor.torped.se> > Hello all, >=20 > Can CMF group members into different Group ? > For the same group members, they can access any contents information = for > their group. >=20 > Thanks You! Hi, There is no group support in Zope or CMF (as far as I know). I been thinking about making an extended UserManager (using LoginManager) that would support groups of users. My plan is to connect users to groups with roles, so that a user gets a role with in a group. It would also be necessary to add a GroupSupport Mixin (or manipulate the RoleManager) to extend the localroles=20 support to also include groups. If one of the users groups have rights on a object the users will get there roles in that group as there localrole. Unfortunately I am tied up with consulting work at the moment (and learing CMF). Regards, Johan From Charles.Hall@sas.com Tue Apr 3 20:26:35 2001 From: Charles.Hall@sas.com (Charles Hall) Date: Tue, 3 Apr 2001 15:26:35 -0400 Subject: [Zope-CMF] Newbie CMF install question Message-ID: Thanks so much to all that replied to me. My "tuple" error was caused by NOT installing the Security Patch (which the instructions specifically tell you to install!). I just made the patch and I'm up! Charles Hall Cary, NC From shane@digicool.com Tue Apr 3 20:33:34 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 3 Apr 2001 15:33:34 -0400 (EDT) Subject: [Zope-CMF] New and need info on site building with CMF In-Reply-To: <006101c0bc73$4ea83000$53b02a3e@OFFICE> Message-ID: On Tue, 3 Apr 2001, design wrote: > Great, Shane... good news ..maybe its a daft question but but where > is the information? http://cmf.zope.org/overview http://cmf.zope.org/Members/jshell/index_html/PortalDesigns.txt http://cmf.zope.org/doc/user/BasicContent.txt http://cmf.zope.org/Members/andrew/how-tos/PTK2CMF http://cmf.zope.org/doc/devel/writing_skins http://cmf.zope.org/projmgmt/project_schedule/roadmap_1_0 etc. There are dozens more documents like these. I found most of these by following the links from the right side of the page. Shane > > regards > Eduardo > > > ----- Original Message ----- > From: Shane Hathaway > To: > Sent: Tuesday, April 03, 2001 6:35 PM > Subject: Re: [Zope-CMF] New and need info on site building with CMF > > > > design wrote: > > > > > > Has anyone out there got any documentation, however rudimentary, > on > > > actual site building with CMF? Possible approaches...basic > > > information...is the PTK documentation still valid? we have just > set > > > up a zope install and I've been honoured with the task of trying > to > > > make sense of it...never touched PTK and have never built any > sites > > > in zope...yes, its one of those crys for help!!!! > > > > Docs are being written at http://cmf.zope.org/ . Jeffrey > especially has > > written some good documentation. > > > > Shane > > > > _______________________________________________ > > 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 vago@lilo2000.hu Tue Apr 3 20:50:57 2001 From: vago@lilo2000.hu (Vago Istvan) Date: Tue, 03 Apr 2001 21:50:57 +0200 Subject: [Zope-CMF] ssl certificate authentication Message-ID: <3ACA29A1.8040801@lilo2000.hu> Hi all, I'd like to use the following authentication shceme, if it feasible: normal authentication for members and SSL client certificate based=20 authentication for administrators. Is there any chance to do this? Thanks Istv=E1n V=E1g=F3 From dieter@handshake.de Tue Apr 3 20:04:51 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 3 Apr 2001 21:04:51 +0200 (CEST) Subject: [Zope-CMF] Search In-Reply-To: <716128007@toto.iv> Message-ID: <15050.7891.944848.669838@lindm.dm> Info@sjeems.nl writes: > This is a multi-part message in MIME format. > > ------=_NextPart_000_0036_01C0BB9F.D2F8F8A0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable Please do not post MIME messages! > ... > If I search with the search form I get this error: > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: IOError > Error Value: [Errno 22] Invalid argument It appears that you have started Zope in the background with the "-D" option (debug mode), and that Zope wants to say something (write to the console) but it no longer can, because the console connection is cut. The easiest thing is to activate logging for Zope: "STUPID_LOG_FILE=" as an argument to the Zope start script. Dieter From shane@digicool.com Tue Apr 3 22:10:57 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 03 Apr 2001 17:10:57 -0400 Subject: [Zope-CMF] Grouping Members ?? References: <002401c0bbeb$0a9c7bb0$9aa8a8c0@WAH> <007f01c0bc71$a10ec540$ad0aa8c0@tor.torped.se> Message-ID: <3ACA3C61.9AC97923@digicool.com> Johan Carlsson wrote: > > > Hello all, > > > > Can CMF group members into different Group ? > > For the same group members, they can access any contents information for > > their group. > > > > Thanks You! > > Hi, > There is no group support in Zope or CMF (as far as I know). > I been thinking about making an extended UserManager > (using LoginManager) that would support groups of users. > My plan is to connect users to groups with roles, so that > a user gets a role with in a group. I did this in the ACLManager product. (Available on zope.org; requires the DatabaseAPI product.) It creates pseudo-users that have the roles matching the group assignment for a directory. Groups are assigned locally by someone with central authority. Unfortunately it's over a year old. It might be useful as a reference. One other approach is to override the __local_roles__ attribute with a callable class instance that computes roles based on groups. The drawback (and a very big drawback indeed) is that to maintain compatibility with everything that uses local roles, __local_roles__() has to return the roles for all users, not just the current user. Perhaps the problem should be solved by changing the security policy, which is actually a standard thing to do. Shane From tseaver@digicool.com Wed Apr 4 00:56:49 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 19:56:49 -0400 Subject: [Zope-CMF] Images not appearing References: Message-ID: <3ACA6341.14F47797@novacoxmail.com> Ben Riga wrote: > When I moved from 1.0beta to 1.0, I seem to have broken the link > to the images (for example the logo.png in the standard header is > not appearing). Has anyone else had this happen? Any ideas as > to how I might track down the problem. This is due to a fix Martijn Pieters made to make the "/Images" folder a "first-class" skin member: http://lists.zope.org/pipermail/cmf-checkins/2001-March/000087.html Create and run a PythonScript in the root of your CMFSite with the method whose source is in that message. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Apr 4 01:01:01 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 20:01:01 -0400 Subject: [Zope-CMF] [newbie] key error Message-ID: <3ACA643D.736064EA@novacoxmail.com> "Jason Wehmhoener" wrote: > I'm attempting to create a custom skin for a CMF 1.0beta site. > > I'm getting a key error with an image object whose id is "about_btn". > The full contents of the DTML method is this: > > > > I've placed the image object in a folder called "images". > > What am I doing wrong? First, you'll get better answers for skins-related questions in the "zope-cmf mailing list":mailto:zope-cmf@zope.org Second, the 'images' folder probably isn't in the "skin path" of the skin you have selected. See Jeffrey Shell's How-to on using CMF skins: http://cmf.zope.org/doc/devel/writing_skins Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From briga@borland.com Wed Apr 4 02:01:43 2001 From: briga@borland.com (Ben Riga) Date: Tue, 3 Apr 2001 18:01:43 -0700 Subject: [Zope-CMF] Images not appearing In-Reply-To: <3ACA6341.14F47797@novacoxmail.com> Message-ID: >>>>> This is due to a fix Martijn Pieters made to make the "/Images" folder a "first-class" skin member: http://lists.zope.org/pipermail/cmf-checkins/2001-March/000087.html Create and run a PythonScript in the root of your CMFSite with the method whose source is in that message. <<<<<< That did the trick. Thanks a bunch. Ben From mindlace@digicool.com Tue Apr 3 21:21:33 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 03 Apr 2001 16:21:33 -0400 Subject: [Zope-CMF] Grouping Members ?? In-Reply-To: <007f01c0bc71$a10ec540$ad0aa8c0@tor.torped.se> Message-ID: <8730000.986329293@progeny> --On Tuesday, April 03, 2001 20:57:28 +0200 Johan Carlsson wrote: >> Hello all, >> >> Can CMF group members into different Group ? >> For the same group members, they can access any contents information for >> their group. >> >> Thanks You! > > Hi, > There is no group support in Zope or CMF (as far as I know). > I been thinking about making an extended UserManager > (using LoginManager) that would support groups of users. > My plan is to connect users to groups with roles, so that > a user gets a role with in a group. I believe you can get a similar effect by assigning many users a role. This allows you to achieve the effect that you are looking for. -- -mindlace- zopatista community liason From tseaver@digicool.com Wed Apr 4 01:50:41 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 20:50:41 -0400 Subject: [Zope-CMF] Re: [Zope] CMF reconfiguration error References: <4F6632C1F6D@mercury.scp.nl> Message-ID: <3ACA6FE1.AB35AAF7@novacoxmail.com> Jeff Senn wrote: > > [on the Zope list] "Hans de Wit" writes: > > > I tried the CMF on a clean Zope 2.3.1 configuration. Everything went pretty good, except > > for the reconfiguration of the portal: > > > > Error Type: TypeError > > Error Value: expected integer key > > > > The traceback is in the end of this message. > > > > I am using a Windows machine, so the assumptions in the readme are not completely met: > > I have the same problem on a linux install (fresh Zope 2.3.1 and CMF 1.0). > > Help! I can reproduce this problem. The culprit is the "dtml-return" tag in CMFDefault/skins/control/reconfig.dtml. This patch clears it right up (I've just checked it in): ------- begin patch ------------------ Index: CMFDefault/skins/control/reconfig.dtml =================================================================== RCS file: /cvs-repository/CMF/CMFDefault/skins/control/reconfig.dtml,v retrieving revision 1.1 diff -u -u -r1.1 reconfig.dtml --- CMFDefault/skins/control/reconfig.dtml 2001/02/23 14:24:09 1.1 +++ CMFDefault/skins/control/reconfig.dtml 2001/04/04 00:59:33 @@ -1,2 +1,3 @@ - + Message-ID: <005301c0bcaa$10dd88b0$9aa8a8c0@WAH> > > --On Tuesday, April 03, 2001 20:57:28 +0200 Johan Carlsson > wrote: > > >> Hello all, > >> > >> Can CMF group members into different Group ? > >> For the same group members, they can access any contents information for > >> their group. > >> > >> Thanks You! > > > > Hi, > > There is no group support in Zope or CMF (as far as I know). > > I been thinking about making an extended UserManager > > (using LoginManager) that would support groups of users. > > My plan is to connect users to groups with roles, so that > > a user gets a role with in a group. > > I believe you can get a similar effect by assigning many users a role. > This allows you to achieve the effect that you are looking for. > > -- > -mindlace- > zopatista community liason You mean I need create many user-defined roles to similar groups, and assign members to a user-defined role (group) ? Thanks for your suggestion! From webmaster@saturn.deanza.fhda.edu Wed Apr 4 03:00:00 2001 From: webmaster@saturn.deanza.fhda.edu (Jason Wehmhoener) Date: Tue, 3 Apr 2001 19:00:00 -0700 Subject: [Zope-CMF] Disable ActionBox for guest? Message-ID: I want to force all members to login by typing in the login_form url, and I don't want an ActionBox to show for anonymous/guest users. What do I need to modify? Thanks, Jason From tseaver@digicool.com Wed Apr 4 02:44:14 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 21:44:14 -0400 Subject: [Zope-CMF] Problem with custom types (HELP!) References: <20010403044307.71782.qmail@web10104.mail.yahoo.com> Message-ID: <3ACA7C6E.F840AEEA@novacoxmail.com> Adrian Madrid wrote: > > I'm having problems with the custom types I had > working before upgrading from 2.3.1b3 to 2.3.1. I had > portalpoll (from the tutorial) and two other alike > working just fine but since I upgraded I keep getting > the same error everytime a member/reviewer/manager > adds one TTW. I even tried adding a new cmf site and > reinstall the types but the same problem follows. Here > is the traceback: > > C:\BensonP\lib\python\Products\CMFCore\PortalFolder.py, > line 368, in invokeFactory > (Object: Traversable) > File > C:\BensonP\lib\python\Products\CMFCore\TypesTool.py, > line 714, in constructContent > (Object: Traversable) > File > C:\BensonP\lib\python\Products\CMFCore\TypesTool.py, > line 471, in constructInstance > (Object: ElementWithAttributes) > Unauthorized: Cannot create Poll > > --> > > Any ideas? I _really_ need to get a couple of types, > basically news & documents with extra properties, > working yesterday. If anybody has created something > like that and is working on cmf 1.0 please give me > some pointers or lines. Please? I can't reproduce this here. Are you *sure* that your ZClass products survived the upgrade from 2.3.1b3 to 2.3.1? The "Cannot create Poll" message on line 471 of CMFCore/TypesTool.py can only come about if the '_getFactoryMethod' call fails, which would typically mean that either: * Zope can't find the Product or its factory method or: * Your user doesn't have permission to invoke the factory method. Hope this helps! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Apr 4 03:03:07 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 22:03:07 -0400 Subject: [Zope-CMF] ssl certificate authentication References: <3ACA29A1.8040801@lilo2000.hu> Message-ID: <3ACA80DB.EC8FACD2@novacoxmail.com> Vago Istvan wrote: > > Hi all, > > I'd like to use the following authentication shceme, if it feasible: > > normal authentication for members and SSL client certificate based > authentication for administrators. > > Is there any chance to do this? This is really a general Zope question, so I am CC'ing the main zope list; please follow up there, rather than on the CMF list. You would also do well to try a query on "SSL" on the zope.org site -- several how-tos and products show up there for me. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From shane@digicool.com Wed Apr 4 03:39:08 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 03 Apr 2001 22:39:08 -0400 Subject: [Zope-CMF] Re: [Zope] CMF reconfiguration error References: <4F6632C1F6D@mercury.scp.nl> <3ACA6FE1.AB35AAF7@novacoxmail.com> Message-ID: <3ACA894C.192367E5@digicool.com> Tres Seaver wrote: > > Jeff Senn wrote: > > > > [on the Zope list] "Hans de Wit" writes: > > > > > I tried the CMF on a clean Zope 2.3.1 configuration. Everything went pretty good, except > > > for the reconfiguration of the portal: > > > > > > Error Type: TypeError > > > Error Value: expected integer key > > > > > > The traceback is in the end of this message. > > > > > > I am using a Windows machine, so the assumptions in the readme are not completely met: > > > > I have the same problem on a linux install (fresh Zope 2.3.1 and CMF 1.0). > > > > Help! > > I can reproduce this problem. The culprit is the "dtml-return" > tag in CMFDefault/skins/control/reconfig.dtml. This patch clears > it right up (I've just checked it in): You're sure this isn't a catalog bug? I think we ought to figure out how to reproduce this again then add some debugging code that reveals what is being submitted to the catalog. > > ------- begin patch ------------------ > Index: CMFDefault/skins/control/reconfig.dtml > =================================================================== > RCS file: /cvs-repository/CMF/CMFDefault/skins/control/reconfig.dtml,v > retrieving revision 1.1 > diff -u -u -r1.1 reconfig.dtml > --- CMFDefault/skins/control/reconfig.dtml 2001/02/23 14:24:09 1.1 > +++ CMFDefault/skins/control/reconfig.dtml 2001/04/04 00:59:33 > @@ -1,2 +1,3 @@ > > - > + > -------- end patch ------------------- > > That said, I would like to declare jihad against the use of "dtml-return" > as a quasi-optimization to avoid a second trip on the wire: > > * It causes the URL bar to lie about the actual method producing > the response; > > * It yields bizarre error cases, which never show up in the logically > equivalent redirect. Redirections also have their downsides, which I consider worse than your list. :-) - Methods that always redirect can mask exceptions that occur after the DTML or Python is finished, such as storage or conflict errors. - Redirection complicates XML-RPC and SOAP clients. (In fact, it can make XML-RPC impossible.) - Redirections used this way are an abuse of the HTTP protocol. Redirect was intended to be used for static resources that have moved. We should try our best to be standards compliant. - Redirections can hurt WebDAV. CookieCrumblers use redirections, but on cmf.zope.org we had to disable redirection for this reason. Shane From tseaver@digicool.com Wed Apr 4 03:22:23 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 22:22:23 -0400 Subject: [Zope-CMF] Disable ActionBox for guest? References: Message-ID: <3ACA855F.58A24EAE@novacoxmail.com> Jason Wehmhoener wrote: > > I want to force all members to login by typing in the login_form > url, and I don't want an ActionBox to show for anonymous/guest > users. What do I need to modify? > In your portal, navigate to 'portal_skins.generic.actions_box'. Note that the first line is: ' tag. Now, click the "Customize" button, which creates a DTMLMethod in your 'custom' skin folder. Immediately after the '', add: and then, just before '' at the bottom: The whole actions box will just disappear for anonymous users at that point. P.S. Do you *really* mean that you want to make them *type* in the URL box to log in? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrism@digicool.com Wed Apr 4 04:13:49 2001 From: chrism@digicool.com (Chris McDonough) Date: Tue, 3 Apr 2001 23:13:49 -0400 Subject: [Zope-CMF] Re: [Zope] CMF reconfiguration error References: <4F6632C1F6D@mercury.scp.nl> <3ACA6FE1.AB35AAF7@novacoxmail.com> <3ACA894C.192367E5@digicool.com> Message-ID: <028f01c0bcb5$458a2e00$6801a8c0@kurtz> This looks like a catalog bug that went out in 2.3.1. See http://lists.zope.org/pipermail/zope-checkins/2001-April/005802.html for a patch to fix it. ----- Original Message ----- From: "Shane Hathaway" To: Sent: Tuesday, April 03, 2001 10:39 PM Subject: Re: [Zope-CMF] Re: [Zope] CMF reconfiguration error > Tres Seaver wrote: > > > > Jeff Senn wrote: > > > > > > [on the Zope list] "Hans de Wit" writes: > > > > > > > I tried the CMF on a clean Zope 2.3.1 configuration. Everything went pretty good, except > > > > for the reconfiguration of the portal: > > > > > > > > Error Type: TypeError > > > > Error Value: expected integer key > > > > > > > > The traceback is in the end of this message. > > > > > > > > I am using a Windows machine, so the assumptions in the readme are not completely met: > > > > > > I have the same problem on a linux install (fresh Zope 2.3.1 and CMF 1.0). > > > > > > Help! > > > > I can reproduce this problem. The culprit is the "dtml-return" > > tag in CMFDefault/skins/control/reconfig.dtml. This patch clears > > it right up (I've just checked it in): > > You're sure this isn't a catalog bug? I think we ought to figure out > how to reproduce this again then add some debugging code that reveals > what is being submitted to the catalog. > > > > > ------- begin patch ------------------ > > Index: CMFDefault/skins/control/reconfig.dtml > > =================================================================== > > RCS file: /cvs-repository/CMF/CMFDefault/skins/control/reconfig.dtml,v > > retrieving revision 1.1 > > diff -u -u -r1.1 reconfig.dtml > > --- CMFDefault/skins/control/reconfig.dtml 2001/02/23 14:24:09 1.1 > > +++ CMFDefault/skins/control/reconfig.dtml 2001/04/04 00:59:33 > > @@ -1,2 +1,3 @@ > > > > - > > + > > > -------- end patch ------------------- > > > > That said, I would like to declare jihad against the use of "dtml-return" > > as a quasi-optimization to avoid a second trip on the wire: > > > > * It causes the URL bar to lie about the actual method producing > > the response; > > > > * It yields bizarre error cases, which never show up in the logically > > equivalent redirect. > > Redirections also have their downsides, which I consider worse than your > list. :-) > > - Methods that always redirect can mask exceptions that occur after the > DTML or Python is finished, such as storage or conflict errors. > > - Redirection complicates XML-RPC and SOAP clients. (In fact, it can > make XML-RPC impossible.) > > - Redirections used this way are an abuse of the HTTP protocol. > Redirect was intended to be used for static resources that have moved. > We should try our best to be standards compliant. > > - Redirections can hurt WebDAV. CookieCrumblers use redirections, but > on cmf.zope.org we had to disable redirection for this reason. > > Shane > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From tseaver@digicool.com Wed Apr 4 02:58:00 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 03 Apr 2001 21:58:00 -0400 Subject: [Zope-CMF] Newbie CMF install question References: Message-ID: <3ACA7FA8.822EA82@novacoxmail.com> Charles Hall wrote: > Thanks so much to all that replied to me. My "tuple" error was > caused by NOT installing the Security Patch (which the > instructions specifically tell you to install!). I just made > the patch and I'm up! Excellent! The other fix would be to upgrade Zope to 2.3.1, which has this fix already. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From nagarjun@hbcse.tifr.res.in Wed Apr 4 05:04:50 2001 From: nagarjun@hbcse.tifr.res.in (Nagarjuna G.) Date: Wed, 4 Apr 2001 09:34:50 +0530 (IST) Subject: [Zope-CMF] Disable ActionBox for guest? In-Reply-To: <3ACA855F.58A24EAE@novacoxmail.com> Message-ID: On Tue, 3 Apr 2001, Tres Seaver wrote: -> -> ->The whole actions box will just disappear for anonymous users at ->that point. -> ->P.S. Do you *really* mean that you want to make them *type* in -> the URL box to log in? -> ->Tres. I asked a similar query earlier. What I want at my site is no `join in' to appear in the action box, and also I want only the admin to use the join in form. How do I acheive this customization? Could I do this by making the join in form non-viewable by anonymous? Nagarjuna From Dominique.Dutoit@cec.eu.int Wed Apr 4 11:28:12 2001 From: Dominique.Dutoit@cec.eu.int (Dominique.Dutoit@cec.eu.int) Date: Wed, 4 Apr 2001 12:28:12 +0200 Subject: [Zope-CMF] Installing CMF on Windows NT Message-ID: <51D6FF030F6ED411993000D0B7823C06010A2F@EX2BEBREYMBX04> I have a couple of problems: 1) Installation A: When I tried to join my portal with a new user, nothing happends. I got the login form but no user is created in the User Folder. The installation A use an upgraded 2.3.0 database so I think it's better to try with a new configuration on another port. 2) Installation B: I have installed a fresh new copy of Zope 2.3.1 with CMF 1.0 and I tried again. This time, it works fine but I get another problem. When I save the configuration of the portal, I got this error and a very long traceback: Error Type: TypeError Error Value: expected integer key Traceback (innermost last): File C:\PROGRA~1\Intranet\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\PROGRA~1\Intranet\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\Intranet\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\PROGRA~1\Intranet\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\Intranet\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: reconfig) File C:\PROGRA~1\Intranet\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: reconfig) File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\FSDTMLMethod.py, line 218, in __call__ (Object: reconfig) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: reconfig) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_Return.py, line 106, in render (Object: reconfig_form(_.None, _, portal_status_message='Settings changed')) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: reconfig_form(_.None, _, portal_status_message='Settings changed')) (Info: _) File <string>, line 0, in ? File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in __call__ (Object: reconfig_form) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: reconfig_form) File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: standard_html_header) File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in __call__ (Object: actions_box) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: actions_box) File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_Let.py, line 146, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File C:\PROGRA~1\Intranet\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File <string>, line 0, in ? File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\ActionsTool.py, line 162, in listFilteredActionsFor (Object: portal_actions) File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\WorkflowTool.py, line 222, in listActions (Object: portal_workflow) File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\DefaultWorkflow.py, line 209, in listGlobalActions File C:\PROGRA~1\Intranet\lib\python\Products\CMFCore\CatalogTool.py, line 200, in searchResults (Object: Traversable) File C:\PROGRA~1\Intranet\lib\python\Products\ZCatalog\ZCatalog.py, line 535, in searchResults (Object: Traversable) File C:\PROGRA~1\Intranet\lib\python\Products\ZCatalog\Catalog.py, line 651, in searchResults File C:\PROGRA~1\Intranet\lib\python\Products\ZCatalog\Catalog.py, line 542, in _indexedSearch File C:\PROGRA~1\Intranet\lib\python\SearchIndex\UnTextIndex.py, line 513, in _apply_index File C:\PROGRA~1\Intranet\lib\python\SearchIndex\UnTextIndex.py, line 576, in query File C:\PROGRA~1\Intranet\lib\python\SearchIndex\UnTextIndex.py, line 616, in evaluate File C:\PROGRA~1\Intranet\lib\python\SearchIndex\UnTextIndex.py, line 448, in __getitem__ TypeError: (see above) But I don't have that problem with the installation A! How can I get it working? Thanks for help. From seb@jamkit.com Wed Apr 4 12:12:54 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 4 Apr 2001 12:12:54 +0100 Subject: [Zope-CMF] Enforcing Metadata (was: WebDAV, ZPT & CMF) In-Reply-To: <3AC8A82F.8D9D0AA1@digicool.com>; from shane@digicool.com on Mon, Apr 02, 2001 at 12:26:23PM -0400 References: <3AC8A82F.8D9D0AA1@digicool.com> Message-ID: <20010404121254.A1602@lenin.jamkit.com> * Shane Hathaway [010402 18:30]: > Jeffrey P Shell wrote: > > > > On 4/2/01 5:58 AM, "Seb Bacon" wrote: > > > ... I've decided, though, that > > > in the the context of the CMF WebDAV is not a good idea, since it > > > removes any way of enforcing inclusion of metadata. > > > > Granted, one still has to know to look for the meta tags in > > their editor, but can be done. Enforcement? None. Mostly because it's > > very hard to communicate with the clients well - you can't [easily] say "Oh, > > you *need* to fill in a Subject and Description meta tag." > > Here's how I see it: the server should accept WebDAV uploads regardless > of metadata, but the workflow should disallow specific transitions until > the metadata tool verifies that the required metadata is filled in > correctly. For example, on one site a document could not be moved to > the "published" state until the "creator" and "subject" fields have been > filled in. As Paul pointed out in the oss4lib interview (see link from the news section on the dogbowl), everyone uses Word but no-one knows File->Properties exists. Yet the success of a CMF-based application depends completely on the entry of metadata, IMO. There really must be some way of enforcing metadata. Shane's suggestion of enforcing it at the workflow level makes sense. However, I don't think it would be appropriate in all circumstances. The CMF I'm currently implementing is for a company knowledge-sharing portal, and all employees can see all uploaded content immediately. Publishing content makes it available outside the organisation. I'm concerned that having a two stage process will act as a barrier to people ever sharing content. They'll save something to the system using webDAV, but then the onus will continue to be on them to mark up the content before anyone else can see it within the organisation. Ideally I'd want webDAV to provide for interacting with a user to enforce properites, but I'm not aware that it does so. Another idea might be that people save their articles in some kind of special word template, which uses some hideous configuration of VBA and modal dialogues to make the user update the document properties. Can anyone think of any other solutions? cheers, seb From adeknegt@worldonline.nl Wed Apr 4 12:21:31 2001 From: adeknegt@worldonline.nl (Arjan de Knegt) Date: Wed, 4 Apr 2001 13:21:31 +0200 (MET DST) Subject: [Zope-CMF] Skinning (translating) the actionbox Message-ID: All, Thanks for the many reactions and options I've seen on the mailinglist. I cannot really judge which option would be best, but all of them would solve my 'problem'. Final question (possibily for Shane?): Should I enter this issue in the PTK tracker, or do you already have it on some list? greatings, Arjan. >Shane Hathaway wrote: >> >> Yeah, but the question is which we should do first. > >Whichever's easiest to implement, XP it ;-) > >cheers, > >Chris From jq@jquade.de Wed Apr 4 13:27:32 2001 From: jq@jquade.de (Jens Quade) Date: 04 Apr 2001 14:27:32 +0200 Subject: [Zope-CMF] Skinning (translating) the actionbox In-Reply-To: Jeffrey P Shell's message of "Tue, 03 Apr 2001 10:00:01 -0400" References: Message-ID: Jeffrey P Shell writes: > > I've been playing around with the skinning functionality in CMF, in my > > case focussing on translating the text. Works quite flexible, except for > > the actionbox. I couldn't find a DTML-doc or otherwise properties to > In the Types Tool, you can change the name of the actions (don't change the > id!) for the Content Types. This doesn't help for the global actions > though. > > Ultimately, more of the tools, including the ActionsTool, need a UI where > this can be configured. The TypesTool is a good start by exposing this for > the content objects, I don't know what other tools like Workflow that > participate in Actions do (or are capable of). Translating often happens to several languages, not just to one. People want to switch to another language... Every string that should be shown on the screen (like action names) must go through a "translater", something like GNU gettext. The basic translator just returns the string unmodified. A real translator function looks up the translation for the requested language and returns it. Globally configurable names will not work here, and the translation should happen at one single point, not one form for every tool. I also think this translation layer is better called where the string appears, and that's obviously not always in the skins. e.g. actions = [ {'name': 'Log in', should read actions = [ {'name': i18n('Log in'), in ActionTools.py. The same scheme could apply to skins: in document_edit.dtml This would enable internationalization. The support for the i18n function (and its context, etc) should better be part of Zope, not CMF. CMF could then plug-in its own TTW translator. btw, lot of internationalization issues are solved e.g. in KDE, this howto shows how it should work in Zope, too: http://developer.kde.org/kde2arch/kde-i18n-howto.html jens -- Shipping software is an unnatural act From tseaver@digicool.com Wed Apr 4 13:08:52 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 4 Apr 2001 08:08:52 -0400 (EDT) Subject: [Zope-CMF] Disable ActionBox for guest? In-Reply-To: Message-ID: On Wed, 4 Apr 2001, Nagarjuna G. wrote: > I asked a similar query earlier. What I want at my site is no > `join in' to appear in the action box, and also I want only the > admin to use the join in form. How do I acheive this > customization? Could I do this by making the join in form > non-viewable by anonymous? You could handle it there, or you could replace the 'portal_actions' tool with one of your own, implementing its interface. I can see two ways to do this: * Create and register an ActionsTool in your own product, deriving from CMFCore.ActionsTool.ActionsTool and overriding the 'listActionsFor' method to suppress the 'login_form' action; then delete the 'portal_actions' tool and replace it with an instance of your class. * Replace the 'portal_actions' tool with a folder of the same name, containing two PythonScripts: 'listFilteredActionsFor' and 'listActions'. A third option would be to wait for the ZMI-configurable version of CMFCore's actions tool in CMF 1.1, scheduled for delivery by the end of April. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mindlace@imeme.net Wed Apr 4 18:14:56 2001 From: mindlace@imeme.net (emf) Date: Wed, 04 Apr 2001 13:14:56 -0400 Subject: [Zope-CMF] Grouping Members ?? In-Reply-To: <005301c0bcaa$10dd88b0$9aa8a8c0@WAH> Message-ID: <2842585516.986390096@[192.168.1.69]> --On Wednesday, April 04, 2001 9:51 AM +0800 from-hkg wrote: >> I believe you can get a similar effect by assigning many users a role. >> This allows you to achieve the effect that you are looking for. >> -mindlace- > > You mean I need create many user-defined roles to similar groups, > and assign members to a user-defined role (group) ? well, as mentioned, there are no groups. So you assign memebers to an administrator-defined role, like "Reviewer". Then you give the role Reviewer whatever permissions you want it to have: This is how zope.org does it. Basically, the "group" is the set of members that have a given Role. it's not exactly like having groups but it is close. ~ethan From tseaver@digicool.com Wed Apr 4 14:02:14 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 4 Apr 2001 09:02:14 -0400 (EDT) Subject: [Zope-CMF] Re: [Zope] CMF reconfiguration error In-Reply-To: Message-ID: On 4 Apr 2001, Jeff Senn wrote: > > Tres Seaver writes: > > > I can reproduce this problem. The culprit is the "dtml-return" > > tag in CMFDefault/skins/control/reconfig.dtml. This patch clears > > it right up (I've just checked it in): > > > > ------- begin patch ------------------ > > Index: CMFDefault/skins/control/reconfig.dtml > > =================================================================== > > RCS file: /cvs-repository/CMF/CMFDefault/skins/control/reconfig.dtml,v > > retrieving revision 1.1 > > diff -u -u -r1.1 reconfig.dtml > > --- CMFDefault/skins/control/reconfig.dtml 2001/02/23 14:24:09 1.1 > > +++ CMFDefault/skins/control/reconfig.dtml 2001/04/04 00:59:33 > > @@ -1,2 +1,3 @@ > > > > - > > + > (I'm assuming there's a closing ">" in the patch you actually applied > -- or soon will be... :-) ) Oops, cut and paste didn't pick it up. It is there -- check out: Thanks! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Apr 4 14:16:31 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 04 Apr 2001 09:16:31 -0400 Subject: [Zope-CMF] Enforcing Metadata (was: WebDAV, ZPT & CMF) References: <3AC8A82F.8D9D0AA1@digicool.com> <20010404121254.A1602@lenin.jamkit.com> Message-ID: <3ACB1EAF.4A0580EB@novacoxmail.com> seb bacon wrote: > As Paul pointed out in the oss4lib interview (see link from the news > section on the dogbowl), everyone uses Word but no-one knows > File->Properties exists. Yet the success of a CMF-based application > depends completely on the entry of metadata, IMO. There really must > be some way of enforcing metadata. > > Shane's suggestion of enforcing it at the workflow level makes sense. > However, I don't think it would be appropriate in all > circumstances. The CMF I'm currently implementing is for a company > knowledge-sharing portal, and all employees can see all uploaded > content immediately. Publishing content makes it available outside > the organisation. I'm concerned that having a two stage process will > act as a barrier to people ever sharing content. They'll > save something to the system using webDAV, but then the onus will > continue to be on them to mark up the content before anyone else can > see it within the organisation. > > Ideally I'd want webDAV to provide for interacting with a user to > enforce properites, but I'm not aware that it does so. Another idea > might be that people save their articles in some kind of special word > template, which uses some hideous configuration of VBA and modal > dialogues to make the user update the document properties. > > Can anyone think of any other solutions? The "proposed portal_metadata tool", http://cmf.zope.org/rqmts/proposals/metadata_tool allows a site manager to set some policies on required / default metadata. However, technology is *not* going to be able to "solve the problem", here; humans have to perceive the benefit to assigning metadata, and then do it. All the CMF can do is make it as straightforward as possible for them to get it there. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Apr 4 14:20:59 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 04 Apr 2001 09:20:59 -0400 Subject: [Zope-CMF] Installing CMF on Windows NT References: <51D6FF030F6ED411993000D0B7823C06010A2F@EX2BEBREYMBX04> Message-ID: <3ACB1FBB.141FBD0@novacoxmail.com> Dominique.Dutoit@cec.eu.int wrote: > > I have a couple of problems: > > 1) Installation A: When I tried to join my portal with a new user, nothing > happends. I got the login form but no user is created in the User Folder. I can't reproduce this. > The installation A use an upgraded 2.3.0 database so I think it's better to > try with a new configuration on another port. OK, makes sense. > 2) Installation B: I have installed a fresh new copy of Zope 2.3.1 with CMF > 1.0 and I tried again. This time, it works fine but I get another problem. > > When I save the configuration of the portal, I got this error and a very > long traceback: > > Error Type: TypeError > Error Value: expected integer key > > But I don't have that problem with the installation A! > > How can I get it working? Thanks for help. The problem with your second installation is due to a bug in 2.3.1. You can either: * Update your Zope to the head of the 2.3 CVS branch (harder to do on NT, but possible, given WinCVS); or * Replace the "reconfig" method with one which works around the problem. Check the list archives for a message from me last night detailing a workaround. The thread was titled something like "CMF reconfiguration error". Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From webmaven@lvcm.com Wed Apr 4 15:28:05 2001 From: webmaven@lvcm.com (Michael R. Bernstein) Date: Wed, 04 Apr 2001 07:28:05 -0700 Subject: [Zope-CMF] Enforcing Metadata (was: WebDAV, ZPT & CMF) References: <3AC8A82F.8D9D0AA1@digicool.com> <20010404121254.A1602@lenin.jamkit.com> Message-ID: <3ACB2F75.AE154C3A@lvcm.com> seb bacon wrote: > > As Paul pointed out in the oss4lib interview (see link from the news > section on the dogbowl), everyone uses Word but no-one knows > File->Properties exists. Yet the success of a CMF-based application > depends completely on the entry of metadata, IMO. There really must > be some way of enforcing metadata. > > [snip] I'm concerned that having a two stage process will > act as a barrier to people ever sharing content. They'll > save something to the system using webDAV, but then the onus will > continue to be on them to mark up the content before anyone else can > see it within the organisation. > > Ideally I'd want webDAV to provide for interacting with a user to > enforce properites, but I'm not aware that it does so. Another idea > might be that people save their articles in some kind of special word > template, which uses some hideous configuration of VBA and modal > dialogues to make the user update the document properties. Nix the client-side solution. Ok, so you need to encourage people to enter meta-data... How about showing a blinking icon or some other 'warning' for items that lack metadata in the person's folder view? Exclamation marks, little yellow and black diagonal stripes in a square icon, a stop sign, or various other visual cues come to mind. A text warning at the top in bold text (maybe in a box) if the person has any such 'un-metadata-ed' items could also work. If you wanted to be *really* annoying, you could pop-up a 'freindly reminder' using Javascript, but I wouldn't reccomend it. :-) The approach you take depends on whether the user could have legitimate reasons for not adding meta-data, which could lead them to ignoring the cues. HTH, Michael Bernstein. From docwhat@gerf.org Wed Apr 4 17:59:35 2001 From: docwhat@gerf.org (The Doctor What) Date: Wed, 4 Apr 2001 11:59:35 -0500 Subject: [Zope-CMF] Icon problems with SiteRoot Message-ID: <20010404115935.A10724@gerf.org> I have a siterooted CMF portal at http://dd.gerf.org:9673/ However any page that has this construct in it: &dtml-typ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ (boo boo) (this is from actions_box.dtml, line 46) renders as src="//icon_file.gif" This is obviously wrong. BASEPATH1 is empty (I printed it out seperately) so it must be 'icon' that has the extra '/' in it. Is this a Zope problem or a CMF problem? This is both with CVS CMF and CMF-1.0. My Zope is 2.3.0-4 (from Debian). Ciao! -- Will you loan me $20.00 and only give me ten of it? That way, you will owe me ten, and I'll owe you ten, and we'll be even! The Doctor What: Need I say more? http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC From docwhat@gerf.org Wed Apr 4 18:05:01 2001 From: docwhat@gerf.org (The Doctor What) Date: Wed, 4 Apr 2001 12:05:01 -0500 Subject: [Zope-CMF] Icon problems with SiteRoot In-Reply-To: <20010404115935.A10724@gerf.org>; from docwhat@gerf.org on Wed, Apr 04, 2001 at 11:59:35AM -0500 References: <20010404115935.A10724@gerf.org> Message-ID: <20010404120501.B10724@gerf.org> * The Doctor What (docwhat@gerf.org) [010404 12:00]: > &dtml-typ > ^^^ (boo boo) > (this is from actions_box.dtml, line 46) It isn't a boo-boo, my mistake. Sorry. Ciao! -- "I'm playing that game, "General P. Fault", on my Wintendo." The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC From kbolton@sputnik7.com Wed Apr 4 19:24:51 2001 From: kbolton@sputnik7.com (Kenneth Bolton) Date: Wed, 04 Apr 2001 14:24:51 -0400 Subject: [Zope-CMF] Enforcing Metadata (was: WebDAV, ZPT & CMF) In-Reply-To: <3ACB2F75.AE154C3A@lvcm.com> Message-ID: on 4/4/01 10:28 AM, Michael R. Bernstein at webmaven@lvcm.com wrote: > Nix the client-side solution. > > Ok, so you need to encourage people to enter meta-data... > How about showing a blinking icon or some other 'warning' > for items that lack metadata in the person's folder view? > > Exclamation marks, little yellow and black diagonal stripes > in a square icon, a stop sign, or various other visual cues > come to mind. > > A text warning at the top in bold text (maybe in a box) if > the person has any such 'un-metadata-ed' items could also > work. > > If you wanted to be *really* annoying, you could pop-up a > 'freindly reminder' using Javascript, but I wouldn't > reccomend it. :-) > > The approach you take depends on whether the user could have > legitimate reasons for not adding meta-data, which could > lead them to ignoring the cues. > I seem to recall a HowTo which detailed a means for making a second News Item. In this instance, the author hard-coded the Subject metadata into the dtml method and script for generating the news item and the view returned a list of objects that returned with the appropriate Subject metadata. Now say I wanted to create an mp3 type. I'd set the Subject metadata in my Zclass to mp3 and provide an alternative metadata_edit_form that did not allow for setting the Subject. Or, even better, it allowed you to set the Subject, say the artist and song name, and appended "mp3" to the list of Subject metadata. Am I barking up the wrong tree? Ken From johanc@torped.se Wed Apr 4 20:13:54 2001 From: johanc@torped.se (Johan Carlsson) Date: Wed, 4 Apr 2001 21:13:54 +0200 Subject: [Zope-CMF] Grouping Members ?? References: <8730000.986329293@progeny> Message-ID: <008701c0bd3b$687b3900$ad0aa8c0@tor.torped.se> > >> Hello all, > >> Can CMF group members into different Group ? > >> For the same group members, they can access any contents = information=20 > >> for their group. > >> > >> Thanks You! > > > > Hi, > > There is no group support in Zope or CMF (as far as I know). > > I been thinking about making an extended UserManager > > (using LoginManager) that would support groups of users. > > My plan is to connect users to groups with roles, so that > > a user gets a role with in a group. >=20 > I believe you can get a similar effect by assigning many users a role. = > This allows you to achieve the effect that you are looking for. IMHO, This isn't flexible enought. I would like to assign special roles with in a group, for instance have someone having a Manager role within the group. You do this in Zope by having a seperate acl_folder but the=20 you would tie that group to a specific branch. Also the=20 acl_folder would have to be a proxy for a centralized acl_folder if you want to manage all users form the same source. The thing is that groups should connect user together with different roles (and in turn diffrent permissions), not connect users together to a fixed set of set of permissions. Another problem with using roles as groups is that in a large community with allot of groups you would have roles polution making the current permission UI virtualy unmanagable. Sticking to a small set of roles and using local_roles and local_groups would avoid that problem. Regards, Johan Carlsson From klm@digicool.com Wed Apr 4 20:44:28 2001 From: klm@digicool.com (Ken Manheimer) Date: Wed, 4 Apr 2001 15:44:28 -0400 (EDT) Subject: [Zope-CMF] Grouping Members ?? In-Reply-To: <008701c0bd3b$687b3900$ad0aa8c0@tor.torped.se> Message-ID: On Wed, 4 Apr 2001, Johan Carlsson wrote: > > I believe you can get a similar effect by assigning many users a role. > > This allows you to achieve the effect that you are looking for. > > IMHO, This isn't flexible enought. > I would like to assign special roles with in a group, for instance > have someone having a Manager role within the group. > You do this in Zope by having a seperate acl_folder but the > you would tie that group to a specific branch. Also the > acl_folder would have to be a proxy for a centralized acl_folder > if you want to manage all users form the same source. I'm a bit vague about the issues here, but it sounds like you could get what you want with using local roles. (I *don't* think using a separate acl_users folder is what you want - it usually isn't). With local roles, you essentially associate users within a context with the permissions accorded to a role. Ie, users are members of the role's group within the context where the local role's apply. > The thing is that groups should connect user together with different > roles (and in turn diffrent permissions), not connect users together > to a fixed set of set of permissions. I think local roles enables you to connect users together with different roles. How does it not do what you want? > Another problem with using roles as groups is that in a large > community with allot of groups you would have roles polution > making the current permission UI virtualy unmanagable. > Sticking to a small set of roles and using local_roles and > local_groups would avoid that problem. Creation of user defined roles in particular contexts helps with that - but the current permission UI is pretty darn bad. Ken Manheimer klm@digicool.com From briga@borland.com Wed Apr 4 20:51:31 2001 From: briga@borland.com (Ben Riga) Date: Wed, 4 Apr 2001 12:51:31 -0700 Subject: [Zope-CMF] Can't change the logo.png Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0041_01C0BD05.F8D68B70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I just hit an interesting one and am wondering if anyone else has hit this. I'm trying to customize the skin for my site. To do that I: - went to the portal_skins/Images folder, chose logo.png and hit the customize button to copy it to my custom folder - I then went to the custom folder and tried to upload a new image into the logo.png - It seemed to be successful and I can see that the file size changed but when I try to view the image I still see the Zope logo I've worked around this by creating another Image in the custom folder (mylogo.png) and uploading into that and changing the index_html file to pull the new image in. This is obviously not the most elegant solution. Am I doing something wrong? Ben ------=_NextPart_000_0041_01C0BD05.F8D68B70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I just = hit an=20 interesting one and am wondering if anyone else has hit this. =20
 
I'm = trying to=20 customize the skin for my site.  To do that I:
 
- went = to the=20 portal_skins/Images folder, chose logo.png and hit the customize button = to copy=20 it to my custom folder
 
- I = then went to the=20 custom folder and tried to upload a new image into the=20 logo.png
 
- It = seemed to be=20 successful and I can see that the file size changed but when I try to = view the=20 image I still see the Zope logo
 
I've = worked around=20 this by creating another Image in the custom folder (mylogo.png) and = uploading=20 into that and changing the index_html file to pull the new image = in.  This=20 is obviously not the most elegant solution.
 
Am I = doing something=20 wrong?
 
Ben
------=_NextPart_000_0041_01C0BD05.F8D68B70-- From tseaver@digicool.com Thu Apr 5 00:08:08 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 04 Apr 2001 19:08:08 -0400 Subject: [Zope-CMF] Can't change the logo.png References: Message-ID: <3ACBA958.B5B73505@novacoxmail.com> > Ben Riga wrote: > > I just hit an interesting one and am wondering if anyone else has > hit this. > > I'm trying to customize the skin for my site. To do that I: > > - went to the portal_skins/Images folder, chose logo.png and hit > the customize button to copy it to my custom folder > > - I then went to the custom folder and tried to upload a new > image into the logo.png > > - It seemed to be successful and I can see that the file size > changed but when I try to view the image I still see the Zope logo This is the classic fingerprint of a caching problem: check that your browser is not caching the image (you may have to assault it with a big stick to get it to release the cached version). Another culprit could be a dodgy upstream cache. > > I've worked around this by creating another Image in the custom > folder (mylogo.png) and uploading into that and changing the > index_html file to pull the new image in. This is obviously > not the most elegant solution. > > Am I doing something wrong? Investigate the caching options your browser provides; on a Netscape 4.x browser, I typically set the "Every time" option for staleness checking. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From aem@byu.edu Thu Apr 5 03:18:47 2001 From: aem@byu.edu (Adrian Madrid) Date: Wed, 4 Apr 2001 19:18:47 -0700 (PDT) Subject: [Zope-CMF] User roles Message-ID: <20010405021847.870.qmail@web10106.mail.yahoo.com> How do I know which roles the current user has? I tried with valid_roles but I get instead the whole list. ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From aem@byu.edu Thu Apr 5 04:36:49 2001 From: aem@byu.edu (Adrian Madrid) Date: Wed, 4 Apr 2001 20:36:49 -0700 (PDT) Subject: [Zope-CMF] User roles In-Reply-To: <3ACBD9CD.457AA155@novacoxmail.com> Message-ID: <20010405033649.40747.qmail@web10104.mail.yahoo.com> Sorry to be python illiterate but how do I get a list of those roles? I tried creating a python script like this one: # Get all roles defined in user folder. if 'Translator' in SecurityManager().getUser().getRoles(): return 1 else: return 0 with _ as a parameter and then I called the script as: xy but I always get x even though the user is not a Translator. How can I make it work --- Tres Seaver wrote: > Adrian Madrid wrote: > > > > How do I know which roles the current user has? I > > tried with valid_roles but I get instead the whole > > list. > > In a PythonScript which binds '_' to the DTML > namespace: > > # Get all roles defined in user folder. > _.SecurityManager().getUser().getRoles() > > # Get all roles pertaining to an object, 'foo' > _.SecurityGetUser().getRolesInContext( foo ) > > > Tres. ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From oliver@sufface.net Thu Apr 5 04:41:57 2001 From: oliver@sufface.net (Oliver Daly) Date: Thu, 05 Apr 2001 13:41:57 +1000 Subject: [Zope-CMF] PTK-0.9 - logout function References: Message-ID: <3ACBE985.EA043CFB@sufface.net> Hi, This concerns an older release of PTK, but can anyone tell me where the logout function is defined in the demoportal? Thanks Oliver From seb@jamkit.com Thu Apr 5 09:25:35 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 5 Apr 2001 09:25:35 +0100 Subject: [Zope-CMF] Enforcing Metadata (was: WebDAV, ZPT & CMF) In-Reply-To: ; from kbolton@sputnik7.com on Wed, Apr 04, 2001 at 02:24:51PM -0400 References: <3ACB2F75.AE154C3A@lvcm.com> Message-ID: <20010405092533.A2984@lenin.jamkit.com> * Kenneth Bolton [010404 20:30]: > on 4/4/01 10:28 AM, Michael R. Bernstein at webmaven@lvcm.com wrote: > > > Ok, so you need to encourage people to enter meta-data... > > How about showing a blinking icon or some other 'warning' > > for items that lack metadata in the person's folder view? > > Now say > I wanted to create an mp3 type. I'd set the Subject metadata in my Zclass to > mp3 and provide an alternative metadata_edit_form that did not allow for > setting the Subject. Or, even better, it allowed you to set the Subject, say > the artist and song name, and appended "mp3" to the list of Subject > metadata. > > Am I barking up the wrong tree? I guess you mean that the actual object type itself would provide the metadata, much like the meta_type property of a Product? This helps to an extent, but you'd end up needing a huge amount of nearly identical products to support all the types you'd require. I think Michael's suggestion is probably the most realistic in my context, combined with enforcing some metadata through workflows where practical. Interestingly, this is a problem that has apparently been discussed elsewhere. Take a look at this post to the IETF WebDAV newsgroup, for example, in which a 'Properties Requested' response is suggested: http://lists.w3.org/Archives/Public/w3c-dist-auth/2000JulSep/0062.html seb From jq@jquade.de Thu Apr 5 12:41:15 2001 From: jq@jquade.de (Jens Quade) Date: 05 Apr 2001 13:41:15 +0200 Subject: [Zope-CMF] action_box.dtml obj.id vs getId() Message-ID: Hi, creating a complex content type, I had some trouble with this source in CMFDefault/skins/generic/action_box.dtml: Is there any reason why this is'nt spelled objID="obj.getId()" instead ? regards, jens From dogboy@tough.net.au Thu Apr 5 13:05:26 2001 From: dogboy@tough.net.au (dogboy@tough.net.au) Date: Thu, 05 Apr 2001 08:05:26 -0400 Subject: [Zope-CMF] (no subject) Message-ID: CMF Subject: Join is broken Reply-To: dogboy@tough.net.au From: paul Content-Type: multipart/mixed; boundary="=_____(6590181122753937471152)_____=" MIME-Version: 1.0 Date: Thu, 5 Apr 2001 22:05:27 +1000 X-Mailer: Musashi 3.2.3-us Message-ID: <1225614163-4454081@tough.net.au> --=_____(6590181122753937471152)_____= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, I just upgraded Zope and CMF to the new versions, was running the previous betas and everything was fine. Now when I attempt to join up with any name at all I get the error - Error Type: Bad Request Error Value: The id "any_name" is invalid--it is already in use. The traceback is attached. Anyone got any clues? TIA, Paul |------- |www.tough.net.au |____________ --=_____(6590181122753937471152)_____= Content-Type: multipart/appledouble; x-mac-creator="74747874"; x-mac-type="54455854"; name="Traceback"; boundary="=_____(7331616897122754028431244)_____=" Content-Disposition: inline; filename="Traceback" --=_____(7331616897122754028431244)_____= Content-Type: application/applefile; x-mac-creator="74747874"; x-mac-type="54455854"; name="Traceback" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="Traceback" AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAPgAAAAkAAAAJAAAARwAA ACAAAAACAAAAZwAAAUxUcmFjZWJhY2tURVhUdHR4dAEAAAAAAAAAAAAAAAAAAACA AAAAAAAAAAAAAQAAAAEaAAAAGgAAADIjFtvbAAAAfwAAAAAAACMjFtsAAAAAAH9/ AAAAAAAA29sAAAAAAAB/VH8AAAAA2x7bAAAAAAAAfypUf39/21RUAAAAAAAAfwAA Kioq2yoqKqv6AAAAAH8AAAAAAAUABQUqq/oAAAB/AADCwsIAwsIFKqv6AAAAfwAA AAAAAAAABSqr+gAAAH8AAMLCwsIAAAUqq/oAAAB/AAAAAAAFAAUFKqv6AAAAfwAq KioqKioqKiqr+gAAAAB/q39/f39/f3+r+gAAAAAAAACrq6urq6ur+gAAAAAAAAEA AOPjqwAAAAAAAAAAAAAAAADjkqsAAAAAAAAWAAEAAAAAABAADAADAAAADAAAAAAA AAAAAQAAAAEaAAAAGgAAADICjC9oPyoAAAAcADIAAHN0eWwAAAAKAID//wAAAAAC jJpA --=_____(7331616897122754028431244)_____= Content-Type: application/octet-stream; x-mac-creator="74747874"; x-mac-type="54455854"; name="Traceback" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="Traceback" VHJhY2ViYWNrIChpbm5lcm1vc3QgbGFzdCk6DSAgRmlsZSAvdXNyL2xpYi9ab3Bl LTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9aUHVibGlzaGVyL1B1Ymxpc2gu cHksIGxpbmUgMjIzLCBpbiBwdWJsaXNoX21vZHVsZQ0gIEZpbGUgL3Vzci9saWIv Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs aXNoLnB5LCBsaW5lIDE4NywgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9w ZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWm9wZS9fX2luaXRfXy5weSwg bGluZSAyMjEsIGluIHpwdWJsaXNoZXJfZXhjZXB0aW9uX2hvb2sNICAgIChPYmpl Y3Q6IFRyYXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51 eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJsaXNoLnB5LCBsaW5lIDE3 MSwgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIt eDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9tYXBwbHkucHksIGxpbmUgMTYwLCBp biBtYXBwbHkNICAgIChPYmplY3Q6IHJlZ2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIv Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs aXNoLnB5LCBsaW5lIDExMiwgaW4gY2FsbF9vYmplY3QNICAgIChPYmplY3Q6IHJl Z2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xp Yi9weXRob24vUHJvZHVjdHMvQ01GQ29yZS9GU0RUTUxNZXRob2QucHksIGxpbmUg MjE4LCBpbiBfX2NhbGxfXw0gICAgKE9iamVjdDogcmVnaXN0ZXIpDSAgRmlsZSAv dXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Eb2N1bWVu dFRlbXBsYXRlL0RUX1N0cmluZy5weSwgbGluZSA1MzgsIGluIF9fY2FsbF9fDSAg ICAoT2JqZWN0OiByZWdpc3RlcikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAt bGludXgyLXg4Ni9saWIvcHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5 LCBsaW5lIDE0NywgaW4gcmVuZGVyDSAgICAoT2JqZWN0OiBmYWlsTWVzc2FnZT0i cG9ydGFsX3JlZ2lzdHJhdGlvbi50ZXN0UHJvcGVydGllc1ZhbGlkaXR5KFJFUVVF U1QpIikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAtbGludXgyLXg4Ni9saWIv cHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5LCBsaW5lIDE0NywgaW4g cmVuZGVyDSAgICAoT2JqZWN0OiBwYXNzd29yZD0iUkVRVUVTVC5oYXNfa2V5KCdw YXNzd29yZCcpDSAgICAgICAgICAgICAgICAgICAgYW5kIFJFUVVFU1RbJ3Bhc3N3 b3JkJ10NICAgICAgICAgICAgICAgICAgICAgb3IgcG9ydGFsX3JlZ2lzdHJhdGlv bi5nZW5lcmF0ZVBhc3N3b3JkKCkiKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMu MC1saW51eDIteDg2L2xpYi9weXRob24vRG9jdW1lbnRUZW1wbGF0ZS9EVF9VdGls LnB5LCBsaW5lIDMzNCwgaW4gZXZhbA0gICAgKE9iamVjdDogcG9ydGFsX3JlZ2lz dHJhdGlvbi5hZGRNZW1iZXIoIFJFUVVFU1RbJ3VzZXJuYW1lJ10NICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgcGFz c3dvcmQNICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICwgcHJvcGVydGllcz1SRVFVRVNUKSkNICAgIChJbmZvOiBwb3J0 YWxfcmVnaXN0cmF0aW9uKQ0gIEZpbGUgPHN0cmluZz4sIGxpbmUgMCwgaW4gPw0g IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v UHJvZHVjdHMvQ01GQ29yZS9SZWdpc3RyYXRpb25Ub29sLnB5LCBsaW5lIDE3MSwg aW4gYWRkTWVtYmVyDSAgICAoT2JqZWN0OiBwb3J0YWxfcmVnaXN0cmF0aW9uKQ0g IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v UHJvZHVjdHMvQ01GRGVmYXVsdC9NZW1iZXJzaGlwVG9vbC5weSwgbGluZSAxNDks IGluIGFkZE1lbWJlcg0gICAgKE9iamVjdDogcG9ydGFsX21lbWJlcnNoaXApDSAg RmlsZSAvdXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Q cm9kdWN0cy9DTUZDb3JlL1BvcnRhbEZvbGRlci5weSwgbGluZSAxOTgsIGluIG1h bmFnZV9hZGRQb3J0YWxGb2xkZXINICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ0g IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v T0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMjcyLCBpbiBfc2V0T2JqZWN0DSAg ICAoT2JqZWN0OiBUcmF2ZXJzYWJsZSkNICBGaWxlIC91c3IvbGliL1pvcGUtMi4z LjAtbGludXgyLXg4Ni9saWIvcHl0aG9uL1Byb2R1Y3RzL0NNRkNvcmUvUG9ydGFs Rm9sZGVyLnB5LCBsaW5lIDM3MSwgaW4gX2NoZWNrSWQNICAgIChPYmplY3Q6IFRy YXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2 L2xpYi9weXRob24vT0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMTQ3LCBpbiBj aGVja1ZhbGlkSWQNICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ1CYWQgUmVxdWVz dDogKHNlZSBhYm92ZSkNDQ== --=_____(7331616897122754028431244)_____=-- --=_____(6590181122753937471152)_____=-- From jens@digicool.com Thu Apr 5 14:00:13 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Thu, 05 Apr 2001 09:00:13 -0400 Subject: [Zope-CMF] (no subject) In-Reply-To: Message-ID: paul, i am not sure what strange email client you're using, but the traceback appears as base64'd text in my client instead of as attachment... i'm using entourage on mac jens on 4/5/01 8:05, dogboy@tough.net.au at dogboy@tough.net.au wrote: > CMF > Subject: Join is broken > Reply-To: dogboy@tough.net.au > From: paul > Content-Type: multipart/mixed; boundary="=_____(6590181122753937471152)_____=" > MIME-Version: 1.0 > Date: Thu, 5 Apr 2001 22:05:27 +1000 > X-Mailer: Musashi 3.2.3-us > Message-ID: <1225614163-4454081@tough.net.au> > > --=_____(6590181122753937471152)_____= > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: 7bit > > Hi all, > I just upgraded Zope and CMF to the new versions, was running the previous > betas and everything was fine. Now when I attempt to join up with any name at > all I get the error - > > Error Type: Bad Request > Error Value: The id "any_name" is invalid--it is already in use. > > The traceback is attached. > Anyone got any clues? > > TIA, > Paul > > > |------- > |www.tough.net.au > |____________ > --=_____(6590181122753937471152)_____= > Content-Type: multipart/appledouble; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback"; > boundary="=_____(7331616897122754028431244)_____=" > Content-Disposition: inline; filename="Traceback" > > --=_____(7331616897122754028431244)_____= > Content-Type: application/applefile; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback" > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="Traceback" > > AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAPgAAAAkAAAAJAAAARwAA > ACAAAAACAAAAZwAAAUxUcmFjZWJhY2tURVhUdHR4dAEAAAAAAAAAAAAAAAAAAACA > AAAAAAAAAAAAAQAAAAEaAAAAGgAAADIjFtvbAAAAfwAAAAAAACMjFtsAAAAAAH9/ > AAAAAAAA29sAAAAAAAB/VH8AAAAA2x7bAAAAAAAAfypUf39/21RUAAAAAAAAfwAA > Kioq2yoqKqv6AAAAAH8AAAAAAAUABQUqq/oAAAB/AADCwsIAwsIFKqv6AAAAfwAA > AAAAAAAABSqr+gAAAH8AAMLCwsIAAAUqq/oAAAB/AAAAAAAFAAUFKqv6AAAAfwAq > KioqKioqKiqr+gAAAAB/q39/f39/f3+r+gAAAAAAAACrq6urq6ur+gAAAAAAAAEA > AOPjqwAAAAAAAAAAAAAAAADjkqsAAAAAAAAWAAEAAAAAABAADAADAAAADAAAAAAA > AAAAAQAAAAEaAAAAGgAAADICjC9oPyoAAAAcADIAAHN0eWwAAAAKAID//wAAAAAC > jJpA > > --=_____(7331616897122754028431244)_____= > Content-Type: application/octet-stream; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback" > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="Traceback" > > VHJhY2ViYWNrIChpbm5lcm1vc3QgbGFzdCk6DSAgRmlsZSAvdXNyL2xpYi9ab3Bl > LTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9aUHVibGlzaGVyL1B1Ymxpc2gu > cHksIGxpbmUgMjIzLCBpbiBwdWJsaXNoX21vZHVsZQ0gIEZpbGUgL3Vzci9saWIv > Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs > aXNoLnB5LCBsaW5lIDE4NywgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9w > ZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWm9wZS9fX2luaXRfXy5weSwg > bGluZSAyMjEsIGluIHpwdWJsaXNoZXJfZXhjZXB0aW9uX2hvb2sNICAgIChPYmpl > Y3Q6IFRyYXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51 > eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJsaXNoLnB5LCBsaW5lIDE3 > MSwgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIt > eDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9tYXBwbHkucHksIGxpbmUgMTYwLCBp > biBtYXBwbHkNICAgIChPYmplY3Q6IHJlZ2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIv > Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs > aXNoLnB5LCBsaW5lIDExMiwgaW4gY2FsbF9vYmplY3QNICAgIChPYmplY3Q6IHJl > Z2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xp > Yi9weXRob24vUHJvZHVjdHMvQ01GQ29yZS9GU0RUTUxNZXRob2QucHksIGxpbmUg > MjE4LCBpbiBfX2NhbGxfXw0gICAgKE9iamVjdDogcmVnaXN0ZXIpDSAgRmlsZSAv > dXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Eb2N1bWVu > dFRlbXBsYXRlL0RUX1N0cmluZy5weSwgbGluZSA1MzgsIGluIF9fY2FsbF9fDSAg > ICAoT2JqZWN0OiByZWdpc3RlcikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAt > bGludXgyLXg4Ni9saWIvcHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5 > LCBsaW5lIDE0NywgaW4gcmVuZGVyDSAgICAoT2JqZWN0OiBmYWlsTWVzc2FnZT0i > cG9ydGFsX3JlZ2lzdHJhdGlvbi50ZXN0UHJvcGVydGllc1ZhbGlkaXR5KFJFUVVF > U1QpIikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAtbGludXgyLXg4Ni9saWIv > cHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5LCBsaW5lIDE0NywgaW4g > cmVuZGVyDSAgICAoT2JqZWN0OiBwYXNzd29yZD0iUkVRVUVTVC5oYXNfa2V5KCdw > YXNzd29yZCcpDSAgICAgICAgICAgICAgICAgICAgYW5kIFJFUVVFU1RbJ3Bhc3N3 > b3JkJ10NICAgICAgICAgICAgICAgICAgICAgb3IgcG9ydGFsX3JlZ2lzdHJhdGlv > bi5nZW5lcmF0ZVBhc3N3b3JkKCkiKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMu > MC1saW51eDIteDg2L2xpYi9weXRob24vRG9jdW1lbnRUZW1wbGF0ZS9EVF9VdGls > LnB5LCBsaW5lIDMzNCwgaW4gZXZhbA0gICAgKE9iamVjdDogcG9ydGFsX3JlZ2lz > dHJhdGlvbi5hZGRNZW1iZXIoIFJFUVVFU1RbJ3VzZXJuYW1lJ10NICAgICAgICAg > ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgcGFz > c3dvcmQNICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg > ICAgICAgICAgICwgcHJvcGVydGllcz1SRVFVRVNUKSkNICAgIChJbmZvOiBwb3J0 > YWxfcmVnaXN0cmF0aW9uKQ0gIEZpbGUgPHN0cmluZz4sIGxpbmUgMCwgaW4gPw0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > UHJvZHVjdHMvQ01GQ29yZS9SZWdpc3RyYXRpb25Ub29sLnB5LCBsaW5lIDE3MSwg > aW4gYWRkTWVtYmVyDSAgICAoT2JqZWN0OiBwb3J0YWxfcmVnaXN0cmF0aW9uKQ0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > UHJvZHVjdHMvQ01GRGVmYXVsdC9NZW1iZXJzaGlwVG9vbC5weSwgbGluZSAxNDks > IGluIGFkZE1lbWJlcg0gICAgKE9iamVjdDogcG9ydGFsX21lbWJlcnNoaXApDSAg > RmlsZSAvdXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Q > cm9kdWN0cy9DTUZDb3JlL1BvcnRhbEZvbGRlci5weSwgbGluZSAxOTgsIGluIG1h > bmFnZV9hZGRQb3J0YWxGb2xkZXINICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > T0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMjcyLCBpbiBfc2V0T2JqZWN0DSAg > ICAoT2JqZWN0OiBUcmF2ZXJzYWJsZSkNICBGaWxlIC91c3IvbGliL1pvcGUtMi4z > LjAtbGludXgyLXg4Ni9saWIvcHl0aG9uL1Byb2R1Y3RzL0NNRkNvcmUvUG9ydGFs > Rm9sZGVyLnB5LCBsaW5lIDM3MSwgaW4gX2NoZWNrSWQNICAgIChPYmplY3Q6IFRy > YXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2 > L2xpYi9weXRob24vT0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMTQ3LCBpbiBj > aGVja1ZhbGlkSWQNICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ1CYWQgUmVxdWVz > dDogKHNlZSBhYm92ZSkNDQ== > > --=_____(7331616897122754028431244)_____=-- > --=_____(6590181122753937471152)_____=-- > From shane@digicool.com Thu Apr 5 14:54:44 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Apr 2001 09:54:44 -0400 Subject: [Zope-CMF] User roles References: <3ACBD9CD.457AA155@novacoxmail.com> <20010405033649.40747.qmail@web10104.mail.yahoo.com> Message-ID: <3ACC7924.6C3F0E63@digicool.com> Adrian Madrid wrote: > > Sorry to be python illiterate but how do I get a list > of those roles? I tried creating a python script like > this one: > > # Get all roles defined in user folder. > if 'Translator' in > SecurityManager().getUser().getRoles(): > return 1 > else: > return 0 > > with _ as a parameter and then I called the script as: > > xy ^^^^^^^^^^^ You need to remove the quotes or use "name=". is the same as . is the same as . Shane From shane@digicool.com Thu Apr 5 15:09:04 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Apr 2001 10:09:04 -0400 Subject: [Zope-CMF] Grouping Members ?? References: <8730000.986329293@progeny> <008701c0bd3b$687b3900$ad0aa8c0@tor.torped.se> Message-ID: <3ACC7C80.A224A65F@digicool.com> Johan Carlsson wrote: > > I believe you can get a similar effect by assigning many users a role. > > This allows you to achieve the effect that you are looking for. > > IMHO, This isn't flexible enought. > I would like to assign special roles with in a group, for instance > have someone having a Manager role within the group. > You do this in Zope by having a seperate acl_folder but the > you would tie that group to a specific branch. Also the > acl_folder would have to be a proxy for a centralized acl_folder > if you want to manage all users form the same source. > > The thing is that groups should connect user together with different > roles (and in turn diffrent permissions), not connect users together > to a fixed set of set of permissions. > > Another problem with using roles as groups is that in a large > community with allot of groups you would have roles polution > making the current permission UI virtualy unmanagable. > Sticking to a small set of roles and using local_roles and > local_groups would avoid that problem. I came to exactly the same conclusion with regards to roles and groups. Let's say you have 1000 users and 10 different folders for each of 10 company departments. Your roles are simple: "Employee", "Department manager", and "Department member". Everyone is an employee so that's easy. But you don't want to have to set the local roles for each employee manually. Instead, you want to assign each employee to a group: "HR", "Accounting", "Engineering", etc. Then you want Zope to give them local roles according to their group assignments. The group assignments don't necessarily correspond to folder names. The group assignments would be easily managed since they would all be in one place. Local roles, as they are now, are scattered. Again, this is what ACLManager did. But instead of doing it the way ACLManager did it, I think we need to look at patching the getRolesInContext() method so that local roles can be computed dynamically without requiring excessive computation. Shane From shane@digicool.com Thu Apr 5 15:21:00 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Apr 2001 10:21:00 -0400 Subject: [Zope-CMF] SourceForge project? Message-ID: <3ACC7F4C.D08FC188@digicool.com> I'd like to gauge the support for a project on SourceForge that would allow the community to contribute CMF skins directly through CVS. I was thinking of calling it "CMFDecor". It would initially contain entries from the skins contest. Contributors would have the opportunity to release their artwork quickly and easily. As a bonus, CMFDecor would include FSPageTemplate which lets you write filesystem-based skins using ZPT. Shane From dogboy@tough.net.au Thu Apr 5 15:29:02 2001 From: dogboy@tough.net.au (dogboy) Date: Fri, 06 Apr 2001 00:29:02 +1000 Subject: [Zope-CMF] Join is broken Message-ID: <3ACC812C.F769769B@tough.net.au> This is a multi-part message in MIME format. --------------4387D2007D7E21C24727A20A Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Sorry bout that last mail, not sure whats going on there. Hopefully this attachment is a little more readable.. :) cheers, Paul --------------4387D2007D7E21C24727A20A Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="74747874"; name="Traceback" Content-Transfer-Encoding: 7bit Content-Description: Unknown Document Content-Disposition: inline; filename="Traceback" Traceback (innermost last): File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: register) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: register) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: register) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: register) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: failMessage="portal_registration.testPropertiesValidity(REQUEST)") File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: password="REQUEST.has_key('password') and REQUEST['password'] or portal_registration.generatePassword()") File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: portal_registration.addMember( REQUEST['username'] , password , properties=REQUEST)) (Info: portal_registration) File , line 0, in ? File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/RegistrationTool.py, line 171, in addMember (Object: portal_registration) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFDefault/MembershipTool.py, line 149, in addMember (Object: portal_membership) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/PortalFolder.py, line 198, in manage_addPortalFolder (Object: Traversable) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/OFS/ObjectManager.py, line 272, in _setObject (Object: Traversable) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/PortalFolder.py, line 371, in _checkId (Object: Traversable) File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/OFS/ObjectManager.py, line 147, in checkValidId (Object: Traversable) Bad Request: (see above) --------------4387D2007D7E21C24727A20A-- From andrew@digicool.com Thu Apr 5 15:50:20 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Thu, 5 Apr 2001 10:50:20 -0400 Subject: [Zope-CMF] (no subject) In-Reply-To: Message-ID: The real key to this message is what was visible in his email: > Error Type: Bad Request > Error Value: The id "any_name" is invalid--it is already in use. It speaks for itself. As for being base64 encoded; I got that as well.... Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of dogboy@tough.net.au > Sent: Thursday, April 05, 2001 8:05 AM > To: zope-CMF@zope.org > Subject: [Zope-CMF] (no subject) > > > CMF > Subject: Join is broken > Reply-To: dogboy@tough.net.au > From: paul > Content-Type: multipart/mixed; > boundary="=_____(6590181122753937471152)_____=" > MIME-Version: 1.0 > Date: Thu, 5 Apr 2001 22:05:27 +1000 > X-Mailer: Musashi 3.2.3-us > Message-ID: <1225614163-4454081@tough.net.au> > > --=_____(6590181122753937471152)_____= > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: 7bit > > Hi all, > I just upgraded Zope and CMF to the new versions, was running the > previous > betas and everything was fine. Now when I attempt to join up with > any name at > all I get the error - > > > > The traceback is attached. > Anyone got any clues? > > TIA, > Paul > > > |------- > |www.tough.net.au > |____________ > --=_____(6590181122753937471152)_____= > Content-Type: multipart/appledouble; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback"; > boundary="=_____(7331616897122754028431244)_____=" > Content-Disposition: inline; filename="Traceback" > > --=_____(7331616897122754028431244)_____= > Content-Type: application/applefile; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback" > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="Traceback" > > AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAPgAAAAkAAAAJAAAARwAA > ACAAAAACAAAAZwAAAUxUcmFjZWJhY2tURVhUdHR4dAEAAAAAAAAAAAAAAAAAAACA > AAAAAAAAAAAAAQAAAAEaAAAAGgAAADIjFtvbAAAAfwAAAAAAACMjFtsAAAAAAH9/ > AAAAAAAA29sAAAAAAAB/VH8AAAAA2x7bAAAAAAAAfypUf39/21RUAAAAAAAAfwAA > Kioq2yoqKqv6AAAAAH8AAAAAAAUABQUqq/oAAAB/AADCwsIAwsIFKqv6AAAAfwAA > AAAAAAAABSqr+gAAAH8AAMLCwsIAAAUqq/oAAAB/AAAAAAAFAAUFKqv6AAAAfwAq > KioqKioqKiqr+gAAAAB/q39/f39/f3+r+gAAAAAAAACrq6urq6ur+gAAAAAAAAEA > AOPjqwAAAAAAAAAAAAAAAADjkqsAAAAAAAAWAAEAAAAAABAADAADAAAADAAAAAAA > AAAAAQAAAAEaAAAAGgAAADICjC9oPyoAAAAcADIAAHN0eWwAAAAKAID//wAAAAAC > jJpA > > --=_____(7331616897122754028431244)_____= > Content-Type: application/octet-stream; x-mac-creator="74747874"; > x-mac-type="54455854"; name="Traceback" > Content-Transfer-Encoding: base64 > Content-Disposition: inline; filename="Traceback" > > VHJhY2ViYWNrIChpbm5lcm1vc3QgbGFzdCk6DSAgRmlsZSAvdXNyL2xpYi9ab3Bl > LTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9aUHVibGlzaGVyL1B1Ymxpc2gu > cHksIGxpbmUgMjIzLCBpbiBwdWJsaXNoX21vZHVsZQ0gIEZpbGUgL3Vzci9saWIv > Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs > aXNoLnB5LCBsaW5lIDE4NywgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9w > ZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWm9wZS9fX2luaXRfXy5weSwg > bGluZSAyMjEsIGluIHpwdWJsaXNoZXJfZXhjZXB0aW9uX2hvb2sNICAgIChPYmpl > Y3Q6IFRyYXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51 > eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJsaXNoLnB5LCBsaW5lIDE3 > MSwgaW4gcHVibGlzaA0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIt > eDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9tYXBwbHkucHksIGxpbmUgMTYwLCBp > biBtYXBwbHkNICAgIChPYmplY3Q6IHJlZ2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIv > Wm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24vWlB1Ymxpc2hlci9QdWJs > aXNoLnB5LCBsaW5lIDExMiwgaW4gY2FsbF9vYmplY3QNICAgIChPYmplY3Q6IHJl > Z2lzdGVyKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xp > Yi9weXRob24vUHJvZHVjdHMvQ01GQ29yZS9GU0RUTUxNZXRob2QucHksIGxpbmUg > MjE4LCBpbiBfX2NhbGxfXw0gICAgKE9iamVjdDogcmVnaXN0ZXIpDSAgRmlsZSAv > dXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Eb2N1bWVu > dFRlbXBsYXRlL0RUX1N0cmluZy5weSwgbGluZSA1MzgsIGluIF9fY2FsbF9fDSAg > ICAoT2JqZWN0OiByZWdpc3RlcikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAt > bGludXgyLXg4Ni9saWIvcHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5 > LCBsaW5lIDE0NywgaW4gcmVuZGVyDSAgICAoT2JqZWN0OiBmYWlsTWVzc2FnZT0i > cG9ydGFsX3JlZ2lzdHJhdGlvbi50ZXN0UHJvcGVydGllc1ZhbGlkaXR5KFJFUVVF > U1QpIikNICBGaWxlIC91c3IvbGliL1pvcGUtMi4zLjAtbGludXgyLXg4Ni9saWIv > cHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfTGV0LnB5LCBsaW5lIDE0NywgaW4g > cmVuZGVyDSAgICAoT2JqZWN0OiBwYXNzd29yZD0iUkVRVUVTVC5oYXNfa2V5KCdw > YXNzd29yZCcpDSAgICAgICAgICAgICAgICAgICAgYW5kIFJFUVVFU1RbJ3Bhc3N3 > b3JkJ10NICAgICAgICAgICAgICAgICAgICAgb3IgcG9ydGFsX3JlZ2lzdHJhdGlv > bi5nZW5lcmF0ZVBhc3N3b3JkKCkiKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMu > MC1saW51eDIteDg2L2xpYi9weXRob24vRG9jdW1lbnRUZW1wbGF0ZS9EVF9VdGls > LnB5LCBsaW5lIDMzNCwgaW4gZXZhbA0gICAgKE9iamVjdDogcG9ydGFsX3JlZ2lz > dHJhdGlvbi5hZGRNZW1iZXIoIFJFUVVFU1RbJ3VzZXJuYW1lJ10NICAgICAgICAg > ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgcGFz > c3dvcmQNICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg > ICAgICAgICAgICwgcHJvcGVydGllcz1SRVFVRVNUKSkNICAgIChJbmZvOiBwb3J0 > YWxfcmVnaXN0cmF0aW9uKQ0gIEZpbGUgPHN0cmluZz4sIGxpbmUgMCwgaW4gPw0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > UHJvZHVjdHMvQ01GQ29yZS9SZWdpc3RyYXRpb25Ub29sLnB5LCBsaW5lIDE3MSwg > aW4gYWRkTWVtYmVyDSAgICAoT2JqZWN0OiBwb3J0YWxfcmVnaXN0cmF0aW9uKQ0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > UHJvZHVjdHMvQ01GRGVmYXVsdC9NZW1iZXJzaGlwVG9vbC5weSwgbGluZSAxNDks > IGluIGFkZE1lbWJlcg0gICAgKE9iamVjdDogcG9ydGFsX21lbWJlcnNoaXApDSAg > RmlsZSAvdXNyL2xpYi9ab3BlLTIuMy4wLWxpbnV4Mi14ODYvbGliL3B5dGhvbi9Q > cm9kdWN0cy9DTUZDb3JlL1BvcnRhbEZvbGRlci5weSwgbGluZSAxOTgsIGluIG1h > bmFnZV9hZGRQb3J0YWxGb2xkZXINICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ0g > IEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2L2xpYi9weXRob24v > T0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMjcyLCBpbiBfc2V0T2JqZWN0DSAg > ICAoT2JqZWN0OiBUcmF2ZXJzYWJsZSkNICBGaWxlIC91c3IvbGliL1pvcGUtMi4z > LjAtbGludXgyLXg4Ni9saWIvcHl0aG9uL1Byb2R1Y3RzL0NNRkNvcmUvUG9ydGFs > Rm9sZGVyLnB5LCBsaW5lIDM3MSwgaW4gX2NoZWNrSWQNICAgIChPYmplY3Q6IFRy > YXZlcnNhYmxlKQ0gIEZpbGUgL3Vzci9saWIvWm9wZS0yLjMuMC1saW51eDIteDg2 > L2xpYi9weXRob24vT0ZTL09iamVjdE1hbmFnZXIucHksIGxpbmUgMTQ3LCBpbiBj > aGVja1ZhbGlkSWQNICAgIChPYmplY3Q6IFRyYXZlcnNhYmxlKQ1CYWQgUmVxdWVz > dDogKHNlZSBhYm92ZSkNDQ== > > --=_____(7331616897122754028431244)_____=-- > --=_____(6590181122753937471152)_____=-- > > _______________________________________________ > 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 zope@tough.net.au Thu Apr 5 16:11:50 2001 From: zope@tough.net.au (paul kimber) Date: Fri, 6 Apr 2001 01:11:50 +1000 Subject: [Zope-CMF] (no subject) In-Reply-To: References: Message-ID: <1225602980-5126689@tough.net.au> > The real key to this message is what was visible in his email: > > Error Type: Bad Request > > Error Value: The id "any_name" is invalid--it is already in use. > It speaks for itself. What I meant (and thought i said) is if I type any name at all into the join screen I get this error. They are not names that are in any user folder, or anywhere in the Zope database for that matter. So as you can see it doesn't really speak for itself. cheers, Paul From chrisw@nipltd.com Thu Apr 5 16:16:40 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 05 Apr 2001 16:16:40 +0100 Subject: [Zope-CMF] SourceForge project? References: <3ACC7F4C.D08FC188@digicool.com> Message-ID: <3ACC8C58.EF4868BC@nipltd.com> Shane Hathaway wrote: > > As a bonus, CMFDecor would include FSPageTemplate which lets you write > filesystem-based skins using ZPT. I hope that wouldn't be the _only_ place you could get it from ;-) cheers, Chris PS: When's the skins contest deadline? I don't think I'm gonna get a chance to play on Swishdot before Sunday :-S From jens@digicool.com Thu Apr 5 16:26:39 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Thu, 05 Apr 2001 11:26:39 -0400 Subject: [Zope-CMF] Join is broken In-Reply-To: <3ACC812C.F769769B@tough.net.au> Message-ID: paul, upon joining the portal a folder is created underneath "Members" with the same name as the username you specify. the error looks like there is already a folder of that same name under "Members". jens On 4/5/01 10:29, "dogboy" wrote: > Sorry bout that last mail, not sure whats going on there. > Hopefully this attachment is a little more readable.. :) > > cheers, > Paul > > Traceback (innermost last): > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line > 223, in publish_module > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, > in mapply > (Object: register) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line > 112, in call_object > (Object: register) > File > /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, > line 218, in __call__ > (Object: register) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, > line 538, in __call__ > (Object: register) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, > line 147, in render > (Object: failMessage="portal_registration.testPropertiesValidity(REQUEST)") > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, > line 147, in render > (Object: password="REQUEST.has_key('password') > and REQUEST['password'] > or portal_registration.generatePassword()") > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, > line 334, in eval > (Object: portal_registration.addMember( REQUEST['username'] > , password > , properties=REQUEST)) > (Info: portal_registration) > File , line 0, in ? > File > /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/RegistrationTool.py > , line 171, in addMember > (Object: portal_registration) > File > /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFDefault/MembershipTool.p > y, line 149, in addMember > (Object: portal_membership) > File > /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/PortalFolder.py, > line 198, in manage_addPortalFolder > (Object: Traversable) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/OFS/ObjectManager.py, line 272, > in _setObject > (Object: Traversable) > File > /usr/lib/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/PortalFolder.py, > line 371, in _checkId > (Object: Traversable) > File /usr/lib/Zope-2.3.0-linux2-x86/lib/python/OFS/ObjectManager.py, line 147, > in checkValidId > (Object: Traversable) > Bad Request: (see above) > > From andrew@digicool.com Thu Apr 5 16:33:22 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Thu, 5 Apr 2001 11:33:22 -0400 Subject: [Zope-CMF] (no subject) In-Reply-To: <1225602980-5126689@tough.net.au> Message-ID: My misunderstanding; Check Jen's response for the fix. Andrew > -----Original Message----- > From: paul kimber [mailto:zope@tough.net.au] > Sent: Thursday, April 05, 2001 11:12 AM > To: Andrew Sawyers > Cc: zope-CMF@zope.org > Subject: RE: [Zope-CMF] (no subject) > > > > The real key to this message is what was visible in his email: > > > Error Type: Bad Request > > > Error Value: The id "any_name" is invalid--it is already in use. > > It speaks for itself. > > What I meant (and thought i said) is if I type any name at all > into the join > screen I get this error. They are not names that are in any user > folder, or > anywhere in the Zope database for that matter. > So as you can see it doesn't really speak for itself. > > cheers, > Paul > From shane@digicool.com Thu Apr 5 17:20:53 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Apr 2001 12:20:53 -0400 Subject: [Zope-CMF] SourceForge project? References: <3ACC7F4C.D08FC188@digicool.com> <3ACC8C58.EF4868BC@nipltd.com> Message-ID: <3ACC9B65.1E3178E1@digicool.com> Chris Withers wrote: > > Shane Hathaway wrote: > > > > As a bonus, CMFDecor would include FSPageTemplate which lets you write > > filesystem-based skins using ZPT. > > I hope that wouldn't be the _only_ place you could get it from ;-) For now it is. CMFCore can't depend on PageTemplates until PageTemplates is part of the core. > PS: When's the skins contest deadline? I don't think I'm gonna get a chance to > play on Swishdot before Sunday :-S April 7th, I believe (Saturday). Shane From js@aixtraware.de Thu Apr 5 20:29:55 2001 From: js@aixtraware.de (Joachim Schmitz) Date: Thu, 5 Apr 2001 21:29:55 +0200 (CEST) Subject: [Zope-CMF] error when accessing CMF Dogbowl: CMF 1.0: Release Notes Message-ID: Hi, I just tried to read the CMF release Notes in the dogbowl and got: An exception occurred in a DTML method or document. Error type: Not Found Error value: Zope Error
 

Zope Error

Zope has encountered an error while publishing this resource.

Resource not found

Sorry, the requested Zope resource does not exist.

Check the URL and try again.


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.

Innermost method: /PTK/showThreads Namespace Stack (innermost entry at top) ID Type (N/A) mapping with keys: [] (N/A) mapping with keys: ['document_id', 'document_title'] (N/A) mapping with keys: [] (N/A) mapping with keys: [] (N/A) mapping with keys: ['document_id', 'document_title'] 985964404 InstanceDict REQUEST ZPublisher.HTTPRequest.HTTPRequest Source of /PTK/showThreads with fault: showThreads.dtml Generate a simple tree view of message threads to include on a page. ->red Above in thread: BTW how can I get this traceback into my normal Zope, this is wonderfull !! Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 From chrisw@nipltd.com Thu Apr 5 22:54:11 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 5 Apr 2001 22:54:11 +0100 Subject: [Zope-CMF] ZDebug :-) References: Message-ID: <004501c0be1a$fab70760$36fa7ad5@withers> > BTW how can I get this traceback into my normal Zope, this is wonderfull !! ZDebug... See also Shane's very cool TCPWatch tool. Now if only TCPWatch could render HTML content or shove it off to a browser so the ZDebug stuff would be useful when you're running automated tests ;-) cheers, Chris From aem@byu.edu Fri Apr 6 02:14:41 2001 From: aem@byu.edu (Adrian Madrid) Date: Thu, 5 Apr 2001 18:14:41 -0700 (PDT) Subject: [Zope-CMF] User roles In-Reply-To: <3ACC7924.6C3F0E63@digicool.com> Message-ID: <20010406011441.26401.qmail@web10101.mail.yahoo.com> I tried this xy but I get a TypeError: not enough arguments; expected 1, got 0. And then I tried I tried this xy but I get y all the time even though the user has the 'Translator' role. --- Shane Hathaway wrote: > Adrian Madrid wrote: > > > > Sorry to be python illiterate but how do I get a > list > > of those roles? I tried creating a python script > like > > this one: > > > > # Get all roles defined in user folder. > > if 'Translator' in > > SecurityManager().getUser().getRoles(): > > return 1 > > else: > > return 0 > > > > with _ as a parameter and then I called the script > as: > > > > xy > ^^^^^^^^^^^ > You need to remove the quotes or use "name=". > name="userRoles"> is the same as userRoles>. "userRoles"> is the same as expr="userRoles">. > > Shane > > _______________________________________________ > 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 ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From mindlace@digicool.com Fri Apr 6 02:22:54 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Thu, 05 Apr 2001 21:22:54 -0400 Subject: [Zope-CMF] Re: cmf fishbowl In-Reply-To: Message-ID: <235910000.986520174@progeny> Although I am the webmaster, I am not in charge of the cmf site: The CMF guys are. I have forwarded this to the zope-cmf list. Hope that helps. --On Tuesday, April 03, 2001 01:24:11 -0400 Jeffrey Kukkola wrote: > Clicked on "members" on the top menu on the fishbowl site and then > clicked on "Cancel" button on Username/password box and got this: > > An exception occurred in a DTML method or document. > > Error type: Unauthorized > Error value: User Anonymous User is not allowed to access > /PTK/portal_membership/getRoster, which is contained in > /PTK/portal_membership. The user, whose roles are ('Anonymous',), would > need to have one of the following roles: ('Manager', 'Member', > 'Manager'). > > Innermost method: /PTK/roster > > Namespace Stack (innermost entry at top) > ID Type > (N/A) mapping with keys: ['document_id', 'document_title'] > PTK InstanceDict > REQUEST ZPublisher.HTTPRequest.HTTPRequest > > Source of /PTK/roster with fault: > > > > > > > >
> >

Portal Members

> > userMgr="portal_membership.checkPermission( 'Manage_users', > Members )" >> > > > > > > > > We don't have a good interface for querying/setting > roles > > > > > > > > > > > > We don't have a good interface for querying/setting roles > > > > > > > > > > > > > > We don't have a good interface for querying/setting roles > > > >

>
Member > Listed? > Roles >

> &dtml-id; > > &dtml-id; > > > Yes No > > portal_membership.getAuthenticatedMember().getRoles() , ',' )"> >

> >
> > > pssn=previous-sequence-start-number > > > Previous > > > Previous > > > > > > nssn=next-sequence-start-number > > > Next > > > Next > > > > > of &dtml-sequence-length; members. > > > >
> >

> >
> >
> > > > > > Call stack (security context) > > /PTK/roster > > REQUEST information > > form > > cookies > __ac_name 'jkukkola' > > other > AUTHENTICATION_PATH 'PTK/vurt' > TraversalRequestNameStack [] > VirtualRootPhysicalPath ('', 'PTK') > bs '25' > URL 'http://cmf.zope.org/roster' > PUBLISHED > SERVER_URL 'http://cmf.zope.org' > __ac_name 'jkukkola' > AUTHENTICATED_USER Anonymous User > URL0 http://cmf.zope.org/roster > URL1 http://cmf.zope.org > BASE0 http://cmf.zope.org > BASE1 http://cmf.zope.org > BASE2 http://cmf.zope.org/roster > > environ > HTTP_ACCEPT_ENCODING gzip, deflate > STUPID_LOG_FILE /usr/local/base/new/var/new_events.log > channel.creation_time 986275258 > SERVER_PROTOCOL 1.0 > SERVER_PORT 1480 > PATH_INFO > /VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/roster > HTTP_HOST 10.0.11.3:1480 > REQUEST_METHOD GET > PATH_TRANSLATED > /VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/roster > HTTP_COOKIE __ac_name="jkukkola" > SCRIPT_NAME > SERVER_SOFTWARE Zope/(unreleased version) ZServer/1.1b1 > HTTP_ACCEPT_LANGUAGE en-us > REMOTE_ADDR 10.0.11.3 > HTTP_REFERER http://cmf.zope.org/logged_in > SERVER_NAME app2 > GATEWAY_INTERFACE CGI/1.1 > HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) > HTTP_ACCEPT application/msword, image/gif, image/x-xbitmap, image/jpeg, > image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, */* > > > -- -mindlace- zopatista community liason From shane@digicool.com Fri Apr 6 02:46:17 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 05 Apr 2001 21:46:17 -0400 Subject: [Zope-CMF] User roles References: <3ACC7924.6C3F0E63@digicool.com> <20010406011441.26401.qmail@web10101.mail.yahoo.com> Message-ID: <3ACD1FE9.8A357469@digicool.com> Adrian Madrid wrote: > > I tried this rolesUser>xy > but I get a TypeError: not enough arguments; expected > 1, got 0. This means that either rolesUser() wants one argument to be passed in or something it calls wants one argument. > > And then I tried I tried this rolesUser(_)>xy > but I get y all the time even though the user has the > 'Translator' role. Good try, but you bumped against the "expr" confusion again. This time it's looking for something named "rolesUser(_)" and, since nothing by that name exists, the condition evaluates to false. Try figuring out what wants the argument. If rolesUser() really does need an argument, you can invoke it like this: Shane From Danny@Adair.net Fri Apr 6 04:17:23 2001 From: Danny@Adair.net (Danny William Adair) Date: Fri, 6 Apr 2001 15:17:23 +1200 Subject: [Zope-CMF] CookieCrumbler Message-ID: Hi Shane, the CookieCrumbler product has been put into the standard CMF installation, but why did you take the product itself off your page: http://www.zope.org/Members/hathawsh/CookieCrumbler ? Its a very nice product, and I have built up my stuff with v2.0. Apart from some convenience forms (forgot passwd, join, change passwd etc., like in membership product - still this is just an addon) I don't see much that can be added to CookieCrumbler at this time (maybe you do). Will further development - if any - only take place as part of the CMF development? Thank you very much in advance, Danny From khine@bmpublications.co.uk Fri Apr 6 10:52:30 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Fri, 6 Apr 2001 10:52:30 +0100 Subject: [Zope-CMF] Action Box Message-ID: When adding options to the action box, ie adding additional links, or building an action box dependant on the type of users being loged in. My question is how can this be done? thanks Norman From shane@digicool.com Fri Apr 6 15:26:56 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 06 Apr 2001 10:26:56 -0400 Subject: [Zope-CMF] CookieCrumbler References: Message-ID: <3ACDD230.5F475C30@digicool.com> Danny William Adair wrote: > the CookieCrumbler product has been put into the standard CMF installation, > but why did you take the product itself off your page: > http://www.zope.org/Members/hathawsh/CookieCrumbler ? Because the two versions there had a major security hole. CookieCrumbler effectively disabled security for the whole site. I fixed the hole in the version that's in the CMF. > Its a very nice product, and I have built up my stuff with v2.0. Apart from > some convenience forms (forgot passwd, join, change passwd etc., like in > membership product - still this is just an addon) I don't see much that can > be added to CookieCrumbler at this time (maybe you do). Will further > development - if any - only take place as part of the CMF development? For now, yes. As long as it's part of the CMF, it's self-explanatory; the user doesn't have to do anything to make it work. As a standalone product it would require documentation and even simple documentation takes effort to write. If someone wants to write the documentation then I'll gladly re-release it standalone. Shane From Dan.Rolander@marriott.com Fri Apr 6 15:53:15 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Fri, 6 Apr 2001 10:53:15 -0400 Subject: [Zope-CMF] Cannot download entire archive Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF64FE@mcnc-mdm1-ex01> When I click on the link to download the entire mailing list archive I get this error: Forbidden You don't have permission to access /pipermail/zope-cmf.mbox/zope-cmf.mbox on this server. I'm sure this is an FAQ, but since I haven't had a chance to go through the entire archive I can't be sure. Is there a way for me to download the whole thing? Thanks, Dan From mindlace@digicool.com Fri Apr 6 16:13:05 2001 From: mindlace@digicool.com (ethan mindlace fremen) Date: Fri, 06 Apr 2001 11:13:05 -0400 Subject: [Zope-CMF] Cannot download entire archive In-Reply-To: <6176E3D8E36FD111B58900805FA7E0F80CCF64FE@mcnc-mdm1-ex01> Message-ID: <40620000.986569985@mindlace.digicool.com> --On Friday, April 06, 2001 10:53:15 -0400 "Rolander, Dan" wrote: > When I click on the link to download the entire mailing list archive I get > this error: > > Forbidden > You don't have permission to access /pipermail/zope-cmf.mbox/zope-cmf.mbox > on this server. Sorry, my fault. This has been corrected. -- ethan mindlace fremen zopatista community liason From khine@bmpublications.co.uk Fri Apr 6 16:36:51 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Fri, 6 Apr 2001 16:36:51 +0100 Subject: [Zope-CMF] How-To Make a Filesystem based Content Type - HELP Message-ID: I just went trough the tutorial for building a How-To Make a Filesystem based Content Type from http://cmf.zope.org/Members/lucas/FSBasedContent/howToMakeNewContentType All worked well, product PTKSeres is not broken, until I try to add the item, this is the error I got: Zope Error Zope has encountered an error while publishing this resource. AttributeError Sorry, a Zope error occurred. Traceback (innermost last): File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/khine/usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: metadata_edit_form) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: metadata_edit_form) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: metadata_edit_form) File /usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: metadata_edit_form) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File /usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /usr/home/khine/usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: actions_box) File /usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: actions_box) File /usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File /usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/ActionsTool.py, line 184, in listFilteredActionsFor (Object: portal_actions) File /usr/home/khine/usr/local/Zope/lib/python/Products/PTKSeres/News.py, line 87, in listActions (Object: DynamicType) AttributeError: listActions Any ideas. Thanks in advance Norman From docwhat@gerf.org Fri Apr 6 19:05:06 2001 From: docwhat@gerf.org (The Doctor What) Date: Fri, 6 Apr 2001 13:05:06 -0500 Subject: [Zope-CMF] cmf.zope.org: Keen Error Messages! Message-ID: <20010406130506.A13616@gerf.org> --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've been playing with cmf.zope.org and it's got the keenest error messages (okay, keen from the developer's point of view, they SUCK from a user's point of view). How can I get these? Is there someway that cmf.zope.org could be set up to allow users to examine the objects but not alter them via the management interface? I'd really like to see how some of the stuff is done! Ciao! --=20 All parts should go together without forcing. You must remember that the p= arts you are reassembling were disassembled by you. Therefore, if you can'= t get them together again, there must be a reason. By all means, do not us= e a hammer. -- IBM maintenance manual, 1925 The Doctor What: A Holtje Production http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6zgVSkJDks3INMZURAtsFAKCy1L7l0ZOMXRSxIjsa3ND5RDb0HgCg77P1 /pxhumksUwnRinCC5LlGLWg= =HUKs -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z-- From aem@byu.edu Fri Apr 6 20:24:26 2001 From: aem@byu.edu (Adrian Madrid) Date: Fri, 6 Apr 2001 12:24:26 -0700 (PDT) Subject: [Zope-CMF] cmf.zope.org: Keen Error Messages! In-Reply-To: <20010406130506.A13616@gerf.org> Message-ID: <20010406192426.70136.qmail@web10101.mail.yahoo.com> I believe theya re using ZDebug (http://www.zope.org/Members/hathawsh/ZDebug). I'm using it myself and I must say it's pretty neat. --- The Doctor What wrote: > I've been playing with cmf.zope.org and it's got the > keenest error > messages (okay, keen from the developer's point of > view, they SUCK > from a user's point of view). > > How can I get these? Is there someway that > cmf.zope.org could be > set up to allow users to examine the objects but not > alter them via > the management interface? I'd really like to see > how some of the > stuff is done! > > Ciao! > > -- > All parts should go together without forcing. You > must remember that the parts you are reassembling > were disassembled by you. Therefore, if you can't > get them together again, there must be a reason. By > all means, do not use a hammer. > -- IBM maintenance manual, 1925 > > The Doctor What: A Holtje Production > http://docwhat.gerf.org/ > docwhat@gerf.org > KF6VNC > > ATTACHMENT part 2 application/pgp-signature ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From Dan.Rolander@marriott.com Fri Apr 6 22:26:07 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Fri, 6 Apr 2001 17:26:07 -0400 Subject: [Zope-CMF] addtoFavorites Error Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6500@mcnc-mdm1-ex01> On the cmf.zope.org site, when I try to use Add To Favorites on a page, I get this error: An exception occurred in a DTML method or document. Error type: KeyError Error value: projmgmt Innermost method: /PTK/addtoFavorites Namespace Stack (innermost entry at top) IDType (N/A) mapping with keys: ['homeFolder'] (N/A) mapping with keys: ['document_id', 'document_title'] drolander InstanceDict REQUEST ZPublisher.HTTPRequest.HTTPRequest Any ideas? I can send more of the error page if necessary. Thanks, Dan From tseaver@digicool.com Sat Apr 7 05:17:10 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 07 Apr 2001 00:17:10 -0400 Subject: [Zope-CMF] action_box.dtml obj.id vs getId() References: Message-ID: <3ACE94C6.4BE64EA8@novacoxmail.com> Jens Quade wrote: > > Hi, > > creating a complex content type, I had some trouble with this > source in CMFDefault/skins/generic/action_box.dtml: > > typ="_.getattr(obj, 'Type', '')" > objID="obj.id" > > > > Is there any reason why this is'nt spelled objID="obj.getId()" instead ? Nope, its a bug. Please report it to the tracker so we don't lose track: http://www.zope.org/Products/PTK/Tracker Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sat Apr 7 05:27:28 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 07 Apr 2001 00:27:28 -0400 Subject: [Zope-CMF] Action Box References: Message-ID: <3ACE9730.1B92E8D2@novacoxmail.com> Norman Khine wrote: > > When adding options to the action box, ie adding additional links, or > building an action box dependant on the type of users being loged in. My > question is how can this be done? You have several options: 1. Derive a new class implementing the 'portal_actions' interface (perhaps subclassing from CMFCore.ActionsTool), which returns the values you want. 2. Extend one or more of the other "ActionProvider" tools (currently, 'portal_workflow', 'portal_membership', and 'portal_discussion') to provide the actions. 3. Replace the 'portal_actions' tool with a folder of the same name, containing PythonScripts, 'listFilteredActionsFor' and 'listFilteredActions'; return the values you want from these methods. 4. Wait for CMF 1.1, which will (very likely) have a through-the-web configurable version of CMFCore.ActionsTool. CMF 1.1 will likely be available in mid to late May, given current commitments. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sat Apr 7 05:51:07 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 07 Apr 2001 00:51:07 -0400 Subject: [Zope-CMF] addtoFavorites Error References: <6176E3D8E36FD111B58900805FA7E0F80CCF6500@mcnc-mdm1-ex01> Message-ID: <3ACE9CBB.122603A4@novacoxmail.com> "Rolander, Dan" wrote: > > On the cmf.zope.org site, when I try to use Add To Favorites on a page, I > get this error: > > An exception occurred in a DTML method or document. > Error type: KeyError > Error value: projmgmt > > Innermost method: /PTK/addtoFavorites > Namespace Stack (innermost entry at top) > IDType > (N/A) mapping with keys: ['homeFolder'] > (N/A) mapping with keys: ['document_id', 'document_title'] > drolander InstanceDict > REQUEST ZPublisher.HTTPRequest.HTTPRequest > > Any ideas? I can send more of the error page if necessary. Thanks, I can reproduce it -- it is an odd interaction between the VirtualHostMonster and the favorites code. If you would, please create a Tracker issue for it (label the product "dogbowl"): http://www.zope.org/Products/PTK/Tracker Thanks! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From shane@digicool.com Sun Apr 8 00:18:14 2001 From: shane@digicool.com (Shane Hathaway) Date: Sat, 07 Apr 2001 19:18:14 -0400 Subject: [Zope-CMF] Workflow Message-ID: <3ACFA036.D69BCA38@digicool.com> This just in--in CMF CVS, the standard portal_workflow is now a folder and you can add your own workflows according to the "Workflow" interface. DefaultWorkflow has moved to CMFDefault. Shane From Tim Hicks" Gogo, I'm getting this as well, did you find out what was happening? cheers tim ---- Original Message ---- Hello, everybody! I'm developing some CMF products and therefore I went through the CMF PortalPoll Tutorial. I ran into problems: When the product is set up like discribed and I want to instantiate it I get an error that reads like this: --------schnipp-------- Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __call__ Traceback (innermost last): File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: invokeFactory) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: invokeFactory) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Porta lFolder.py, line 368, in invokeFactory (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types Tool.py, line 714, in constructContent (Object: Traversable) File /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types Tool.py, line 473, in constructInstance (Object: ElementWithAttributes) AttributeError: (see above) --------schnapp-------- I have no clue how the error can be fixed and need help. Maybe some file just needs to be at another spot in the object database, but the tutorial doesn't tell anything about that. I also wonder if there is some more up-to-date tutorial online... Okay, thank you all in advance. Regards, Gogo. _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@digicool.com Sun Apr 8 04:47:16 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 07 Apr 2001 23:47:16 -0400 Subject: [Zope-CMF] CMF product development problems References: <000b01c0bfc9$5f489d60$0501a8c0@OC> Message-ID: <3ACFDF44.75FAE48A@novacoxmail.com> Tim Hicks wrote: > > Gogo, > > I'm getting this as well, did you find out what was happening? > > cheers > > tim > > ---- Original Message ---- > > Hello, everybody! > > I'm developing some CMF products and therefore I went through the CMF > PortalPoll Tutorial. > > I ran into problems: > > When the product is set up like discribed and I want to instantiate it I get > an error that reads like this: > > --------schnipp-------- > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: __call__ > > Traceback (innermost last): > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, > line 222, in publish_module > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, > line 187, in publish > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Zope/__init__.py, line > 221, in zpublisher_exception_hook > (Object: Traversable) > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, > line 171, in publish > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/mapply.py, > line 160, in mapply > (Object: invokeFactory) > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py, > line 112, in call_object > (Object: invokeFactory) > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Porta > lFolder.py, line 368, in invokeFactory > (Object: Traversable) > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types > Tool.py, line 714, in constructContent > (Object: Traversable) > File > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types > Tool.py, line 473, in constructInstance > (Object: ElementWithAttributes) > AttributeError: (see above) > > --------schnapp-------- > > I have no clue how the error can be fixed and need help. Maybe some file > just needs to be at another spot in the object database, but the tutorial > doesn't tell anything about that. I also wonder if there is some more > up-to-date tutorial online... This error says that the FactoryTypeInformation object was able to find an object corresponding to the "Factory method" inside its product, but that the object is not callable (the error at line 473 is from the FTI trying to use Python's 'apply' builtin on the object returned by '_getFactoryMethod'). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From lucas.hofman@oslo.pgs.com Sun Apr 8 13:47:11 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Sun, 08 Apr 2001 14:47:11 +0200 Subject: [Zope-CMF] how-to Message-ID: <0104089867.AA986734131@lysntsmail.oslo.pgs.com> Norman, I should re-do the how-to so it works with CMF 1.0. Not sure when that will happen though. I will try to get it done this week. Cheers, Lucas -- Lucas Hofman PGS Seres work: +47 67514059 PO Box 354 fax: +47 67526640 N-1324 Lysaker, Norway home: +47 67581373 From chrisw@nipltd.com Sat Apr 7 23:22:10 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sat, 07 Apr 2001 23:22:10 +0100 Subject: [Zope-CMF] GoLive whinging... Message-ID: <3ACF9312.BD3674F@nipltd.com> Getting lots of this when browsing on the WebDAV sourceport, even more when I go in through the HTTP port: Server Error: The date and time string (last modified) sent by the server for resource '' is not ISO8601- or RFC0822-format. How do I fix it? cheers, Chris PS: Non-cmf specific... what permission is required to traverse the WebDAV tree on the sourceport and on the HTTP port? It's not something I want people who can only view the site to be able to do... :-S From chrisw@nipltd.com Sat Apr 7 23:32:38 2001 From: chrisw@nipltd.com (Chris Withers) Date: Sat, 07 Apr 2001 23:32:38 +0100 Subject: [Zope-CMF] Bugs? Message-ID: <3ACF9586.4BD0DF77@nipltd.com> - I don't think the find tab works in the skins folder. - Folders in portal skins have no + next to them in the tree pain, making it a pain to navigate to ehir subfolders :-S Can anyone verify any of these and/or fix them? :-) cheers, Chris From paul@digicool.com Sun Apr 8 18:27:16 2001 From: paul@digicool.com (Paul Everitt) Date: Sun, 08 Apr 2001 13:27:16 -0400 Subject: [Zope-CMF] GoLive whinging... In-Reply-To: <3ACF9312.BD3674F@nipltd.com> Message-ID: Are you working with 2.3.1 or with a CVS check out of Zope? --Paul On 4/7/01 6:22 PM, "Chris Withers" wrote: > Getting lots of this when browsing on the WebDAV sourceport, even more when I > go > in through the HTTP port: > > Server Error: The date and time string (last modified) sent by the server for > resource '' is not ISO8601- or RFC0822-format. > > How do I fix it? > > cheers, > > Chris > > PS: Non-cmf specific... what permission is required to traverse the WebDAV > tree > on the sourceport and on the HTTP port? It's not something I want people who > can > only view the site to be able to do... :-S > > > > _______________________________________________ > 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 mj@digicool.com Sun Apr 8 19:34:58 2001 From: mj@digicool.com (Martijn Pieters) Date: Sun, 8 Apr 2001 20:34:58 +0200 Subject: [Zope-CMF] Bugs? In-Reply-To: <3ACF9586.4BD0DF77@nipltd.com>; from chrisw@nipltd.com on Sat, Apr 07, 2001 at 11:32:38PM +0100 References: <3ACF9586.4BD0DF77@nipltd.com> Message-ID: <20010408203457.A20237@zopatista.com> On Sat, Apr 07, 2001 at 11:32:38PM +0100, Chris Withers wrote: > - I don't think the find tab works in the skins folder. How doesn't it work? I can search fine, just not for anything in the contents of the FSDTMLMethod objects, and because the meta types aren't registered they don't show up in the types box. If this is the problem you were talking about, maybe you should file it in the Tracker. > - Folders in portal skins have no + next to them in the tree pain, making it a > pain to navigate to ehir subfolders :-S What subfolders? If I create a subfolder in the custom folder the plus shows up. Did you try and refresh the tree? Or have you created a Filesystem Directory View based skin with subfolders? If so, could you make an easily reproducable sample and file that in the Tracker? -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Sun Apr 8 19:39:31 2001 From: mj@digicool.com (Martijn Pieters) Date: Sun, 8 Apr 2001 20:39:31 +0200 Subject: [Zope-CMF] GoLive whinging... In-Reply-To: ; from paul@digicool.com on Sun, Apr 08, 2001 at 01:27:16PM -0400 References: <3ACF9312.BD3674F@nipltd.com> Message-ID: <20010408203931.B20237@zopatista.com> On Sun, Apr 08, 2001 at 01:27:16PM -0400, Paul Everitt wrote: > Are you working with 2.3.1 or with a CVS check out of Zope? I can confirm this on a zope-2_3-branch CVS checkout. It's a problem with the filesystem based objects, standard Zope stuff doesn't have the problem. Just point GoLive at the WebDAV port of your Zope server, navigate to '/portal_skins/content' and you get a bunch of errors. This should not be too hard to locate and fix. Chris, could you file this in the Tracker? -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From Tim Hicks" <3ACFDF44.75FAE48A@novacoxmail.com> Message-ID: <002801c0c080$1d5795c0$0501a8c0@OC> ----- Original Message ----- From: "Tres Seaver" To: "Tim Hicks" Cc: ; Sent: Sunday, April 08, 2001 4:47 AM Subject: Re: [Zope-CMF] CMF product development problems > Tim Hicks wrote: > > > > Gogo, > > > > I'm getting this as well, did you find out what was happening? > > > > cheers > > > > tim > > > > /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types > > Tool.py, line 473, in constructInstance > > (Object: ElementWithAttributes) > > AttributeError: (see above) > > > > --------schnapp-------- > > > > I have no clue how the error can be fixed and need help. Maybe some file > > just needs to be at another spot in the object database, but the tutorial > > doesn't tell anything about that. I also wonder if there is some more > > up-to-date tutorial online... > > This error says that the FactoryTypeInformation object was able > to find an object corresponding to the "Factory method" inside > its product, but that the object is not callable (the error at > line 473 is from the FTI trying to use Python's 'apply' builtin > on the object returned by '_getFactoryMethod'). Thanks for the reply Tres. While I *think* I understand what you have said, I don't have any idea how to fix this. Effectively, the traceback is saying that there is something wrong with my factory right? But it was simply added when the zclass was created, so what could be wrong? Sorry if I'm being a bit dense, but if you could provide any more pointers/urls, I'd really appreciate it. thanks tim From tseaver@digicool.com Mon Apr 9 01:29:39 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 08 Apr 2001 20:29:39 -0400 Subject: [Zope-CMF] [Zope-dev] ZCatalog bug? Message-ID: <3AD10273.D7ABCFC1@novacoxmail.com> Adam Chlipala wrote: > I have just installed Zope 2.3.1 and the latest CMF. When trying to > publish some CMF resource after submitting a form to edit the site > config, I get a TypeError: expected integer key. The stack traceback is > included below. A more experienced user has said that this looks like > it could be because of a bug in ZCatalog. I'd like to stress that this > is literally the first thing I'm doing with Zope, so there's not much to > do to reproduce the setup. :-) Does anyone have any guesses about why > this is happening? Thanks. > > Traceback (innermost last): > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py, > line 223, in publish_module > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py, > line 187, in publish > File /usr/local/stow/zope-2.3.1/lib/zope/lib/python/Zope/__init__.py, > line 221, in zpublisher_exception_hook > (Object: Traversable) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py, > line 171, in publish > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/mapply.py, > line 160, in mapply > (Object: reconfig) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/ZPublisher/Publish.py, > line 112, in call_object > (Object: reconfig) > File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 218, in > __call__ > (Object: reconfig) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_String.py, > line 538, in __call__ > (Object: reconfig) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Return.py, > line 106, in render > (Object: reconfig_form(_.None, _, portal_status_message='Settings > changed')) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/DocumentTemplate/DT_Util.py, > line 334, in eval > (Object: reconfig_form(_.None, _, portal_status_message='Settings > changed')) > (Info: _) > File , line 0, in ? > File /var/lib/zope/Products/CMFCore/FSDTMLMethod.py, line 213, in > __call__ > (Object: reconfig_form) > File > /usr/local/stow/zope-2.3.1/lib/zope/lib/python/SearchIndex/UnTextIndex.py, > line 448, in __getitem__ > TypeError: (see above) Yes this is a catalog bug, which is fixed in CVS. You can, in this case, safely ignore it, and continue using the portal (your configuration changes may not have been saved, however). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mj@digicool.com Mon Apr 9 12:29:54 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 9 Apr 2001 13:29:54 +0200 Subject: [Zope-CMF] CMF FS objects and possible Zope WebDAV bugs (Was: GoLive whinging...) In-Reply-To: <3ACF9312.BD3674F@nipltd.com>; from chrisw@nipltd.com on Sat, Apr 07, 2001 at 11:22:10PM +0100 References: <3ACF9312.BD3674F@nipltd.com> Message-ID: <20010409132953.D31388@zopatista.com> On Sat, Apr 07, 2001 at 11:22:10PM +0100, Chris Withers wrote: > Getting lots of this when browsing on the WebDAV sourceport, even more when I go > in through the HTTP port: > > Server Error: The date and time string (last modified) sent by the server for > resource '' is not ISO8601- or RFC0822-format. There are several things wrong here: - Both FSImage and FSPropertiesObject inherit (indirectly) from webdav.Resource, but not from Persistent. This causes them to have an empty getlastmodified DAV property, which is against the spec. - The WebDAV spec dictates that the contents of that property should be the same as the Last-Modified header returned on a GET request for that object. The FSImage object does return this header, but the FSPropertiesObject doesn't (and doesn't need to). To fix this, two things have to change: - The getlastmodified property should not be an empty value. It should be ommitted if empty. This is a bug in the way Zope handles this property. I'll file a Collector entry. - FSImage does keep track of the last-modified date of the filesystem-based image it represents. This modified date should be used to create the getlastmodified property. The same goes for FSDTMLMethod, FSPythonScript, and FSPageTemplate. Possible solutions: - A very hackish way of accomplishing this is by redefining _p_mtime on these objects, as this is what normally is used to create the getlastmodified property, but this may have unwanted side-effects. - We could also try and extend where OFS.PropertySheets.DAVProperties gets the getlastmodified date from. It could look, for example, at a 'getLastModified' method if present. - We could subclass DAVProperties and define a 'propertysheets' attribute on the FS* objects that returns our (wrapped) subclass. I personally prefer the latter solution; it allows us to work around the 'empty getlastmodified property' bug as well. Opinions? -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From tseaver@digicool.com Mon Apr 9 14:07:28 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 9 Apr 2001 09:07:28 -0400 (EDT) Subject: [Zope-CMF] CMF product development problems In-Reply-To: <002801c0c080$1d5795c0$0501a8c0@OC> Message-ID: On Mon, 9 Apr 2001, Tim Hicks wrote: > > This error says that the FactoryTypeInformation object was able > > to find an object corresponding to the "Factory method" inside > > its product, but that the object is not callable (the error at > > line 473 is from the FTI trying to use Python's 'apply' builtin > > on the object returned by '_getFactoryMethod'). > > Thanks for the reply Tres. While I *think* I understand what > you have said, I don't have any idea how to fix this. > Effectively, the traceback is saying that there is something > wrong with my factory right? But it was simply added when the > zclass was created, so what could be wrong? Sorry if I'm being > a bit dense, but if you could provide any more pointers/urls, > I'd really appreciate it. The problem lies either in the way you have configured the type object (in 'portal_types'), or in some incompatibility between FactoryTypeInformation and ZClasses. We will investigate the possibility that it is the second, if you will check the first and post a tracker issue if you still see no problem in your setup. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Mon Apr 9 15:51:11 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 09 Apr 2001 15:51:11 +0100 Subject: [Zope-CMF] A very long permissions list ;-) Message-ID: <3AD1CC5F.91A5D329@nipltd.com> Hi, I'm gonna try and start a conversation here not go through the whole thing firstup (ZCommerce threads on zope@zope.org spring to mind) so please jump in if I've forgotten to explain something. My basic question is 'How do I or the CMF or whatever avoid having a really huge permissions list on the security tab if I have lots of content types/meta types?' Basically, as I see it, each meta_type has a list of actions associated with it. These are currently each assigned a permission: 'Add news item' 'Edit news item' ...etc... So, you end up with n * m permissions in each system where n is the number of actions and m is the number of content/meta types. At what point does Zope's permissions list stop scaling? I can think of situation where there could be, say, 50 content types and 5 actions. That's 250 permissions! Is Zope okay with that? As an observation, many of the actions can be factored out to be the same: 'Add x' 'View x' 'Edit x' 'Manage x' This there any way this could be factored out at the Zope or CMF level to make lief easier and quicker? Has it been done already? (just in case I missed something...) Well, that's enough for now... please jump in people and help me explore this :-) Chris From Tim Hicks" <3ACFDF44.75FAE48A@novacoxmail.com> <002801c0c080$1d5795c0$0501a8c0@OC> <00be01c0c110$33e420c0$c900a8c0@NETWORK> Message-ID: <007401c0c114$2ed82dc0$0501a8c0@OC> ----- Original Message ----- From: "Georg BERNHARD" To: "Tim Hicks" Sent: Monday, April 09, 2001 5:13 PM Subject: Re: [Zope-CMF] CMF product development problems > Hello, Tim! > > The solution for this problem for me was quite unexpected: > > I just had the wrong version of Zope installed, Zope 2.3.1 is needed. > Maybe you have the same problem... > Regards, Gogo. > No, I'm running 2.3.1 and getting the error. Thanks anyway. tim From shane@digicool.com Mon Apr 9 18:57:59 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 09 Apr 2001 13:57:59 -0400 Subject: [Zope-CMF] A very long permissions list ;-) References: <3AD1CC5F.91A5D329@nipltd.com> Message-ID: <3AD1F827.CAB098D2@digicool.com> Chris Withers wrote: > Basically, as I see it, each meta_type has a list of actions associated with it. > These are currently each assigned a permission: > 'Add news item' > 'Edit news item' > ...etc... > > So, you end up with n * m permissions in each system where n is the number of > actions and m is the number of content/meta types. That's right. The model of mapping methods to global permission names leads to this. > As an observation, many of the actions can be factored out to be the same: > 'Add x' > 'View x' > 'Edit x' > 'Manage x' Note that the CMF now uses simpler permissions: "Modify Portal Content", "Add Portal Content", etc. > This there any way this could be factored out at the Zope or CMF level to make > lief easier and quicker? Has it been done already? (just in case I missed > something...) I'm glad you saw this. We've struggled with this. In fact, it's worse than this: you often want to be able to change security based on object state, such as allowing a user to edit a page when it's in the "private" state but not when it's in the "published" state. But you want this to be a site-specific decision. So you get (m * n * o) permissions! Here is our plan: the configurable workflow will take over the role -> permission -> method mappings. There are several current views on the specifics, but essentially the workflow will manage security. Workflows can manage security in more flexible ways, such as allowing access to methods based on object state. Questions? Shane From dieter@handshake.de Mon Apr 9 21:37:27 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 9 Apr 2001 22:37:27 +0200 (CEST) Subject: [Zope-CMF] A very long permissions list ;-) In-Reply-To: <263786151@toto.iv> Message-ID: <15058.7559.395836.574280@lindm.dm> Chris Withers writes: > At what point does Zope's permissions list stop scaling? > > I can think of situation where there could be, say, 50 content types and 5 > actions. That's 250 permissions! Is Zope okay with that? I do not think so. The permission page is very unwieldy and need to get a better design. Someone from DC already agreed with this statement (-> list archives) but said that is has not so high a priority. Dieter From Danny@Adair.net Tue Apr 10 00:45:45 2001 From: Danny@Adair.net (Danny William Adair) Date: Tue, 10 Apr 2001 11:45:45 +1200 Subject: [Zope-CMF] A very long permissions list ;-) In-Reply-To: <3AD1F827.CAB098D2@digicool.com> Message-ID: >>> I'm glad you saw this. We've struggled with this. In fact, it's worse >>> than this: you often want to be able to change security based on object >>> state, such as allowing a user to edit a page when it's in the "private" >>> state but not when it's in the "published" state. But you want this to >>> be a site-specific decision. So you get (m * n * o) permissions! >>> Here is our plan: the configurable workflow will take over the role -> >>> permission -> method mappings. There are several current views on the >>> specifics, but essentially the workflow will manage security. Workflows >>> can manage security in more flexible ways, such as allowing access to >>> methods based on object state. >>> >>> Questions? Is this "configurable workflow" CMF-specific? Sorry if this is a CMF faq... and hit me if it's a Zope item! I'm very unhappy with the current implementation of the ZMI permissions page. I'm not sure if this can be done easily, but wouldn't it all be easier if a role-permission mapping could be something like a "rule", acquirable of course? One of my Zope installations takes a couple of seconds to load - on the local machine - and I wouldn't be much happier with a "permissions btree", for one simple reason: I only need this whole bunch of permission mappings *once*. After setting things up, there's only one thing that I (and I guess most members of the zope community) actually want to do: change one or two permissions, through methods (seems to be easier said than done - at least a satisfyingly fast solution -, see my new post on zope and zope-dev. any idea?) either based on another permission mapping, or on some user input. Although I don't know how to access and change a single permission without running through the complete permission_settings, I guess the latter is not that hard. So in the event of "publishing", a publishing method could also change the "edit" permission at the same time, programmatically. Unpublishing would do the same in reverse. I think this is a common scenario. Would it make sense to enable the user to place a method like hasRole(self, Role) on a permission and something like hasPermission(self, Permission) on a role, (for every object of course, and acquired) in order to have a do-it-yourself way of finding out a permission mapping? That way it would be easy to synchronize a permission mapping with another one, avoiding the m*n*o scenario. Invoking hasRole(self, Role) on the "Change x" permission of a folder (and therefore on all of its underlying objects) could just return hasRole(getPermission('View'), Role) or maybe even something like return (container.publishing_status=='published') And if you don't place a method there, things would just be done exactly like they're done now. With a little redesign the ZMI pages for permissions wouldn't get too crowded either, imho. What do you think about this? Or should I just pull my head out of my Danny? I would like to put a more readable suggestion on zope-dev because I think someone with more zope security skills than myself could implement something like this in a day or two. I just don't want to annoy people with something that doesn't make sense, so I really welcome your comments on this. I think it really is time to get some magic in the permission part of zope. Thx in advance, Danny P.S.: btw: try the word "programmatically" on hotbot, and guess who's second and forth on the results :-) P.P.S.: Why does he know? Why did he try? <|:-D >>> -----Ursprungliche Nachricht----- >>> Von: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]Im Auftrag >>> von Shane Hathaway >>> Gesendet: Dienstag, 10. April 2001 05:58 >>> An: zope-cmf@zope.org >>> Betreff: Re: [Zope-CMF] A very long permissions list ;-) >>> >>> >>> Chris Withers wrote: >>> > Basically, as I see it, each meta_type has a list of actions >>> associated with it. >>> > These are currently each assigned a permission: >>> > 'Add news item' >>> > 'Edit news item' >>> > ...etc... >>> > >>> > So, you end up with n * m permissions in each system where n >>> is the number of >>> > actions and m is the number of content/meta types. >>> >>> That's right. The model of mapping methods to global permission names >>> leads to this. >>> >>> > As an observation, many of the actions can be factored out to >>> be the same: >>> > 'Add x' >>> > 'View x' >>> > 'Edit x' >>> > 'Manage x' >>> >>> Note that the CMF now uses simpler permissions: "Modify Portal Content", >>> "Add Portal Content", etc. >>> >>> > This there any way this could be factored out at the Zope or >>> CMF level to make >>> > lief easier and quicker? Has it been done already? (just in >>> case I missed >>> > something...) >>> >>> I'm glad you saw this. We've struggled with this. In fact, it's worse >>> than this: you often want to be able to change security based on object >>> state, such as allowing a user to edit a page when it's in the "private" >>> state but not when it's in the "published" state. But you want this to >>> be a site-specific decision. So you get (m * n * o) permissions! >>> >>> Here is our plan: the configurable workflow will take over the role -> >>> permission -> method mappings. There are several current views on the >>> specifics, but essentially the workflow will manage security. Workflows >>> can manage security in more flexible ways, such as allowing access to >>> methods based on object state. >>> >>> Questions? >>> >>> Shane >>> >>> _______________________________________________ >>> 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 icornell@yahoo.com Mon Apr 9 23:56:43 2001 From: icornell@yahoo.com (=?iso-8859-1?q?Ivan=20Cornell?=) Date: Mon, 9 Apr 2001 15:56:43 -0700 (PDT) Subject: [Zope-CMF] Getting to grips with CMF Message-ID: <20010409225643.2805.qmail@web1701.mail.yahoo.com> After getting to know zope (& python) for the last few months, using zclasses to build the core of my site sucessfully, I'm having another go at trying to grok CMF. I'm finding it difficult to figure out what is going on in the code & where I should hook in my modifications. After several nights of glazed over eyes, I wonder if anyone can help me with what I want... Changing the workflow: Members documents are always visible on their pages (No privacy here!), but not searchable by default and if they 'publish', editors take a copy of the document, edit it & place that into the main site area. Discussions: I want members to be able to comment on my non-cmf aware pages (zclass instances). Also I want the discussions to be flat, ie you can't comment on comments - how do you turn that off? ZCatalog: My existing zclasses are catalogaware - can they share the catalog with cmf for unified searching? Thanks, Ivan __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From nagarjun@hbcse.tifr.res.in Tue Apr 10 05:40:32 2001 From: nagarjun@hbcse.tifr.res.in (Nagarjuna G.) Date: Tue, 10 Apr 2001 10:10:32 +0530 (IST) Subject: [Zope-CMF] A very long permissions list ;-) In-Reply-To: <15058.7559.395836.574280@lindm.dm> Message-ID: On Mon, 9 Apr 2001, Dieter Maurer wrote: ->Chris Withers writes: -> > At what point does Zope's permissions list stop scaling? -> > -> > I can think of situation where there could be, say, 50 content types and 5 -> > actions. That's 250 permissions! Is Zope okay with that? ->I do not think so. -> -> The permission page is very unwieldy and need to get a -> better design. This is very valid point. Some grouping of permissions, and also grouping actions is necessary. For doing this kind of administrative work, I cannot use emacs or command line commands, to achieve things faster. It is very boring to click so many :-(. So an action that removes or adds permission of a given category (manager, owner etc.) will be useful at least to begin with. Nagarjuna From tseaver@digicool.com Tue Apr 10 12:50:03 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 10 Apr 2001 07:50:03 -0400 (EDT) Subject: [Zope-CMF] Re: [PTK(236)[2] note] Re: Search form bug: IOError In-Reply-To: Message-ID: On Thu, 5 Apr 2001, Matthijs van Kempen wrote: > I put on logging and I could reproduce the error, but there was > nothing in the log. I checked the permissions and they seemed > okay. I tried logging in as administrator and got the same > error. > > Then I removed the strray angle bracket you mentioned, > restarted Zope, but that did not make a difference either. > > Having reproducd the error I started playing with the arguments > to the search_dtml method. > > The URL was originally: > > > > This led to the error. > > When I change the '1970' to '1980' or '1960' or '1973' the > error did not occur. > > Weird huh? Hmm, I still can't reproduce this bug here. Can you report: * Zope version being used (version number, source vs binary, any Hotfix produts, etc.) * Any other "non-standard" Products installed in your Zope. * CMF version in use. Also, please check that the user account which runs your Zope service has permission to read all the files under your Win2K Zope CMF installation. A quick check would be to stop the service, then run Zope from the command line (it will be running as "you", instead of the system account). Another tack would be to get the latest-and-greatest CMF from CVS, and try to reproduce the problem with it. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Tue Apr 10 13:04:53 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 10 Apr 2001 08:04:53 -0400 Subject: [Zope-CMF] Getting to grips with CMF References: <20010409225643.2805.qmail@web1701.mail.yahoo.com> Message-ID: <3AD2F6E5.6AE9C839@novacoxmail.com> Ivan Cornell wrote: > After getting to know zope (& python) for the last few months, > using zclasses to build the core of my site sucessfully, I'm > having another go at trying to grok CMF. I'm finding it difficult > to figure out what is going on in the code & where I should hook > in my modifications. After several nights of glazed over eyes, > I wonder if anyone can help me with what I want... > > Changing the workflow: > Members documents are always visible on their pages (No privacy > here!), but not searchable by default and if they 'publish', > editors take a copy of the document, edit it & place that into > the main site area. You will need to replace the 'portal_workflow' tool with an instance of a class which both implements the 'portal_workflow' interface, and imposes your required policy. The interface file is 'CMFCore/interfaces/portal_workflow.py'. The interfaces explicitly account for the fact that the object's location and permissions may change during a transition. > Discussions: > I want members to be able to comment on my non-cmf aware pages > (zclass instances). You will need to create "type objects" for your non-CMF object types (see the "PortalPoll" tutorial on the dogbowl). These type objects let the CMF machinery know what to do with the object, including which actions to display: you would create at least a "Reply" action, similar to theone which Docuements, et aliae have, and a "View" action. > Also I want the discussions to be flat, ie you can't comment > on comments - how do you turn that off? You will likely need to reimplement the 'portal_discussions' tool to change this policy. > ZCatalog: > My existing zclasses are catalogaware - can they share the > catalog with cmf for unified searching? CatalogAware presumes that the "magic name" for the catalog object is 'Catalog'; the CMF names its catalog 'portal_catalog'. You would need to make it possible for the CatalogAware objects to find the right object (perhaps a PythonScript, 'Catalog', whose body was simply, 'return context.portal_catalog'?) In addition, the "unified searching" will only be practical if your non-CMF objects implement the same indexable attributes as the CMF (mostly the DublinCore interfaces). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Tue Apr 10 15:25:39 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 10 Apr 2001 10:25:39 -0400 (EDT) Subject: [Zope-CMF] Re: Re: [PTK(236)[2] note] Re: Search form bug: IOError In-Reply-To: Message-ID: On Tue, 10 Apr 2001, Matthijs van Kempen wrote: > >> Hmm, I still can't reproduce this bug here. Can you report: > >> > >> * Zope version being used (version number, source vs binary, > >> any Hotfix produts, etc.) > Zope version 3.1 Binary release OK (assuming you mean "2.3.1"). > >> * Any other "non-standard" Products installed in your Zope. > None yet OK. > >> * CMF version in use. > CMF 1.0 > >> Also, please check that the user account which runs your > >> Zope service has permission to read all the files under your > >> Win2K Zope CMF installation. The "I/O Error" you report makes me wonder if Zope is trying to write to standard output, but can't for some reason. Can you edit the 'start.bat' file, and add "> stdout.txt" to the line which invokes "...\python.exe z2.py %1 %2 %3 %4 %5 %6 %7 %8 %9"? > >> A quick check would be to stop the service, then run Zope > >> from the command line (it will be running as "you", instead > >> of the system account). > Zope is not running as a service (I can't see it listed under > 'services'), so I always start it manually using start.bat. The > bug occurs even when I start it manually while logged in as > administrator. Hmm, that would pretty much rule out issues with the actual filesystem, I guess. (I don't run on NT). > >> Another tack would be to get the latest-and-greatest CMF > >> from CVS, and try to reproduce the problem with it. > I could not find the CVS release. > > The link provided on this page > (http://www.zope.org/Products/Zope/) did not lead me there. I > also had tried this link, but that was gone as well. > > Could you point me to the right place please? The "admin" section of the dogbowl docs contains a document: http://cmf.zope.org/doc/admin/install_from_cvs which I just cleaned up (it reflected "PTK-isms" before). Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mj@digicool.com Tue Apr 10 15:20:12 2001 From: mj@digicool.com (Martijn Pieters) Date: Tue, 10 Apr 2001 16:20:12 +0200 Subject: [Zope-CMF] Bugs? In-Reply-To: <20010408203457.A20237@zopatista.com>; from mj@digicool.com on Sun, Apr 08, 2001 at 08:34:58PM +0200 References: <3ACF9586.4BD0DF77@nipltd.com> <20010408203457.A20237@zopatista.com> Message-ID: <20010410162012.A27167@zopatista.com> On Sun, Apr 08, 2001 at 08:34:58PM +0200, Martijn Pieters wrote: > > - Folders in portal skins have no + next to them in the tree pain, making it a > > pain to navigate to ehir subfolders :-S > > What subfolders? If I create a subfolder in the custom folder the plus > shows up. Did you try and refresh the tree? Or have you created a > Filesystem Directory View based skin with subfolders? If so, could you > make an easily reproducable sample and file that in the Tracker? In the course of checking something else out I saw that DirectoryView tree structures (subfolders within skin folders for example) have correct expand/collapse icons. If they are not there (after adding a subfolder and then restarting) try refreshing the nav pane. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Tue Apr 10 16:19:44 2001 From: mj@digicool.com (Martijn Pieters) Date: Tue, 10 Apr 2001 17:19:44 +0200 Subject: [Zope-CMF] DirectoryView.DirectoryInformation.prepareContents and subdirs Message-ID: <20010410171944.A28033@zopatista.com> Hiya, Why does DirectoryInformation.prepareContents only acknowledge subdirs it finds if they have been registered before? Reason I ask is because auto-reload of a DIrectoryView works fine except when adding new sudirs; they are ignored until a Zope restart because of the above restriction. Tres, I CC-ed you because this code was there in your initial checkin of the code. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From shane@digicool.com Tue Apr 10 17:41:50 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 10 Apr 2001 12:41:50 -0400 Subject: [Zope-CMF] DirectoryView.DirectoryInformation.prepareContents and subdirs References: <20010410171944.A28033@zopatista.com> Message-ID: <3AD337CE.3CBAC240@digicool.com> Martijn Pieters wrote: > Why does DirectoryInformation.prepareContents only acknowledge subdirs it > finds if they have been registered before? For security: if an intruder gets access to the ZMI, at least with this restriction the CMF can't be used to read/write arbitrary directories (though in only limited ways). > Reason I ask is because auto-reload of a DIrectoryView works fine except > when adding new sudirs; they are ignored until a Zope restart because of > the above restriction. When reloading a DirectoryView, you could make it so subdirectories found are automatically registered. > Tres, I CC-ed you because this code was there in your initial checkin of > the code. When I wrote this code (which was first checked in to PTKBase), I wrote it to fulfill the important needs such as simple reloading and security. I was going to provide auto-reloading of entire directory structures, but didn't see enough need for it at the time. (In fact all the FS* classes really ought to derive from a common base class, maybe you want to tackle that too?) Shane From info@sjeems.nl Tue Apr 10 18:05:00 2001 From: info@sjeems.nl (Info@sjeems.nl) Date: Tue, 10 Apr 2001 19:05:00 +0200 Subject: [Zope-CMF] Search Message-ID: <000d01c0c1e0$a4f182a0$9600000a@ja> Can someone help me? If I try the CMF search option I get an error. I Only get the error if there are no results found. But sometimes if there are no results it gives me we found 0 results. The site is hosted at hurrah.com so I think there is nothing wrong with the setup of the srver. The error I get is: ---------------------------------- Sorry, a Zope error occurred. Traceback (innermost last): File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/sjeems/Zope-2.3.1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: search) File /home/sjeems/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: search) File /home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: search) File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: search) File /home/sjeems/Zope-2.3.1-src/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: standard_html_header) File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/sjeems/Zope-2.3.1-src/lib/python/OFS/DTMLMethod.py, line 182, in __call__ (Object: actions_box) File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: actions_box) File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File /home/sjeems/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File /home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/ActionsTool.py, line 162, in listFilteredActionsFor (Object: portal_actions) File /home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/WorkflowTool.py, line 222, in listActions (Object: portal_workflow) File /home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/DefaultWorkflow.py, line 209, in listGlobalActions File /home/sjeems/Zope-2.3.1-src/lib/python/Products/CMFCore/CatalogTool.py, line 200, in searchResults (Object: Traversable) File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py, line 651, in searchResults File /home/sjeems/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py, line 542, in _indexedSearch File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 513, in _apply_index File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 576, in query File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 616, in evaluate File /home/sjeems/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py, line 448, in __getitem__ TypeError: expected integer key ---------------------------------------------- Can someone please help me??? Thanks, James From lennart.regebro@cybercom.se Tue Apr 10 20:36:06 2001 From: lennart.regebro@cybercom.se (Lennart Regebro) Date: Tue, 10 Apr 2001 21:36:06 +0200 Subject: [Zope-CMF] What next? Message-ID: <002f01c0c1f5$7cd5ab60$978859d5@chello.se> OK, I installed a fresh 2.3.1 + CMF. I can register users and create documents. But what next? I understand NOTHING of this, and have no clue what I need to make this into a site. The site I' thinking of is a collaborative site with threes of documents created by the members (and rating of these documents, but thats the next step. And the third step is discusison forums). But I'm stumped so far. I have no idea where I am to look or start, and can find no relevant documentation. From tseaver@digicool.com Tue Apr 10 18:53:20 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 10 Apr 2001 13:53:20 -0400 (EDT) Subject: [Zope-CMF] Re: [PTK(249)[2] resolved] Re: portal_type not allowed showing on new content page In-Reply-To: <20010410174542.13651.qmail@web10107.mail.yahoo.com> Message-ID: On Tue, 10 Apr 2001, Adrian Madrid wrote: > Thanks for working so soon in the bug. I have checked > out the latest CVS and I still have the same problem. > I checked the source of PortalFolder.py and it has the > changes you made but still normal members can see > Article as an option and get into trouble when > selecting it. Is there something I need to do? I must confess didn't actually import your product for a test. How are you mapping the "Article" ZClass into the portal: using a FactoryTypeInformation object, or a ScriptableTypeInformation object? I tested with the STI version, because it has an explicit permission I could tweak to "disallow" the type. What permission is associated with the factory for your ZClass? And do normal members have it, perchance? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From scott.meilicke@intp.com Tue Apr 10 21:04:29 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Tue, 10 Apr 2001 13:04:29 -0700 Subject: [Zope-CMF] What next? Message-ID: I'm a bit ahead of you, but still very new, so maybe I can help out. 1. I think most of the default site HTML is generated from the portal_skins folder. Use the zope management interface (ZMI), navigate from your root to your portal object to the portal_skins folder. From the portal_skins folder, you can use the find tab to figure out where the file you want to modify lives. For example, if you want to change index_html, the home page, do a search, open the item, and then click 'customize' (I think that's the button name - top of the page). That will put an editable version into the custom portal_skin folder. Modify as needed, and there you go. Search for portal_skin on cmf.zope.org for more info on how skins work - it's pretty cool. 2. To expose content, look for the news_box (or is it news_item?), and see how that's done. You can use the search box to make sure your stuff is visible. Topics are another tool you can use to organize content. They are not enabled by default - again, go to cmf.zope.org and search for topics to find out how to enable them and use them. 3. Use cmf.zope.org and www.zope.org - do lots of searches. 4. On a default install of zope 2.3.1, the index_html page has links to the zope book, which has lots of examples, and links to other docs on www.zope.org. 5. Add the zope tutorial and work through it. You can add it from the ZMI just like any other object. 6. Finally, play around! I created a test folder off of the root to muck about with. It's a big product, and the learning curve is step - stick with it, it's starting to make some sense to me. Take a look at www.kmclan.net - it's my two nights worth of dinking around. I'd be happy to tell you how I did any of it. Scott -----Original Message----- From: Lennart Regebro [mailto:lennart.regebro@cybercom.se] Sent: Tuesday, April 10, 2001 12:36 PM To: zope-cmf@zope.org Subject: [Zope-CMF] What next? OK, I installed a fresh 2.3.1 + CMF. I can register users and create documents. But what next? I understand NOTHING of this, and have no clue what I need to make this into a site. The site I' thinking of is a collaborative site with threes of documents created by the members (and rating of these documents, but thats the next step. And the third step is discusison forums). But I'm stumped so far. I have no idea where I am to look or start, and can find no relevant documentation. _______________________________________________ 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 mj@digicool.com Tue Apr 10 21:00:59 2001 From: mj@digicool.com (Martijn Pieters) Date: Tue, 10 Apr 2001 22:00:59 +0200 Subject: [Zope-CMF] CMF FS objects and possible Zope WebDAV bugs (Was: GoLive whinging...) In-Reply-To: <20010409132953.D31388@zopatista.com>; from mj@digicool.com on Mon, Apr 09, 2001 at 01:29:54PM +0200 References: <3ACF9312.BD3674F@nipltd.com> <20010409132953.D31388@zopatista.com> Message-ID: <20010410220059.B31391@zopatista.com> On Mon, Apr 09, 2001 at 01:29:54PM +0200, Martijn Pieters wrote: > On Sat, Apr 07, 2001 at 11:22:10PM +0100, Chris Withers wrote: > > Getting lots of this when browsing on the WebDAV sourceport, even more when I go > > in through the HTTP port: > > > > Server Error: The date and time string (last modified) sent by the server for > > resource '' is not ISO8601- or RFC0822-format. (Listing what needs to be done) > - The getlastmodified property should not be an empty value. It should be > ommitted if empty. This is a bug in the way Zope handles this property. > I'll file a Collector entry. This is now fixed in Zope CVS. GoLife will not spit out errors about that anymore. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From briga@borland.com Tue Apr 10 22:26:06 2001 From: briga@borland.com (Ben Riga) Date: Tue, 10 Apr 2001 14:26:06 -0700 Subject: [Zope-CMF] Login/logout information Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C0C1CA.2DC31C90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit It seems like the CMF and/or Zope log me off whenever I shutdown my browser. Is there anyway to prevent that? In other words, don't log me out (ever) unless I explicitly log out. Thanks, Ben ------=_NextPart_000_0003_01C0C1CA.2DC31C90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
It = seems like the=20 CMF and/or Zope log me off whenever I shutdown my browser.  Is = there anyway=20 to prevent that?  In other words, don't log me out (ever) unless I=20 explicitly log out.
 
Thanks,
Ben
------=_NextPart_000_0003_01C0C1CA.2DC31C90-- From tseaver@digicool.com Tue Apr 10 23:55:43 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 10 Apr 2001 18:55:43 -0400 Subject: [Zope-CMF] Login/logout information References: Message-ID: <3AD38F6F.53BB6371@novacoxmail.com> Ben Riga wrote: > It seems like the CMF and/or Zope log me off whenever I shutdown > my browser. Is there anyway to prevent that? In other words, > don't log me out (ever) unless I explicitly log out. Assuming you are using the cookie-based authentication provided by default, yes, it is possible, but creates a security issue if any of your users ever log in from a "shared" machine (library, internet cafe, etc.) You would need to tweak / override 'CMFCore.CookieCrumbler.CookieCrumbler.setAuthCookie' such that it appends 'expires="Never"' to the call to 'resp.setCookie' (line 153). Because of the security issue, I *won't* accept a patch to add this behavior, even as an option, to the CookieCrumbler distributed with the CMF. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mj@digicool.com Wed Apr 11 10:56:23 2001 From: mj@digicool.com (Martijn Pieters) Date: Wed, 11 Apr 2001 11:56:23 +0200 Subject: [Zope-CMF] usage of getCustomizableObject Message-ID: <20010411115622.A5780@zopatista.com> In all of the FS* objects, the method manage_doCustomize calls the acquired method DirectoryView.getCustomizableObject(), but doesn't do anything with the return value: def manage_doCustomize(self, folder_path, data=None, RESPONSE=None): ... custFolder = self.getCustomizableObject() ... no usage of custFolder What is it's intent? To raise an error if no DirectoryView object is found? In that case no getCustomizableObject method will be found either, so it misses the point a bit. Can I just remove the call? (And the method, it isn't used anywhere else). -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Wed Apr 11 11:43:08 2001 From: mj@digicool.com (Martijn Pieters) Date: Wed, 11 Apr 2001 12:43:08 +0200 Subject: [Zope-CMF] usage of getCustomizableObject In-Reply-To: <20010411115622.A5780@zopatista.com>; from mj@digicool.com on Wed, Apr 11, 2001 at 11:56:23AM +0200 References: <20010411115622.A5780@zopatista.com> Message-ID: <20010411124307.A6105@zopatista.com> On Wed, Apr 11, 2001 at 11:56:23AM +0200, Martijn Pieters wrote: > In all of the FS* objects, the method manage_doCustomize calls the > acquired method DirectoryView.getCustomizableObject(), but doesn't do > anything with the return value: > > def manage_doCustomize(self, folder_path, data=None, RESPONSE=None): > ... > > custFolder = self.getCustomizableObject() > > ... no usage of custFolder > > What is it's intent? To raise an error if no DirectoryView object is > found? In that case no getCustomizableObject method will be found either, > so it misses the point a bit. Erm, typo there, I ment 'if no non-DirectoryView object is found'. > Can I just remove the call? (And the method, it isn't used anywhere else). I am pretty sure that I can remove the call, the method getCustomizableObject is still in use in DirectoryView itself. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From Dan.Rolander@marriott.com Wed Apr 11 13:28:49 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Wed, 11 Apr 2001 08:28:49 -0400 Subject: [Zope-CMF] Newbie Questions Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6518@mcnc-mdm1-ex01> 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_01C0C282.F6117490 Content-Type: text/plain; charset="iso-8859-1" Okay, I've been playing with CMF for awhile, and I've figured out how to customize the skins and how to maneuver around a CMF portal and use the basic functions. I'd like to use it to build a intranet community website for knowledge sharing. Here are some questions I have (forgive me if the answers are obvious-- I'm still new at this): o There was a lot of information on www.zope.org for PTK that is missing on cmf.zope.org. For instance, the ZWiki. After reading the Everitt/Mannheimer interview on oss4lib, it seems they plan to integrate the best aspects of Wiki into CMF. So is the ZWiki forum for CMF/PTK being dropped intentionally? If not, what is the vision for how other products such as Wiki or Squishdot should or could be integrated into a CMF website? Does it make sense to do that? o The ability for users to create custom areas of the site and maintain their own content is cool, but how do other uses discover that content? Is posting a news item the best and/or only way? How should topics be used on a site basis? How do users know what keywords have been entered as metadata to give them a clue as to what to search for? o If a user (for whatever reason) leaves the community, what becomes of their content? Can it be transferred to another user? o When a user creates content, can they assign edit rights to other users? o How can a user create content that will be accessible from a common area of the web site? Does the site manager need to put it there and create a link to it? o How does cmf.zope.org automatically create an index_html page for new users? My new CMF instance doesn't do this. That's enough questions for now, but I'm sure I'll have more as I learn more about this product. Thanks for helping. Dan ------_=_NextPart_001_01C0C282.F6117490 Content-Type: text/html; charset="iso-8859-1"
Okay, I've been playing with CMF for awhile, and I've figured out how to customize the skins and how to maneuver around a CMF portal and use the basic functions. I'd like to use it to build a intranet community website for knowledge sharing. Here are some questions I have (forgive me if the answers are obvious-- I'm still new at this):
 
o  There was a lot of information on www.zope.org for PTK that is missing on cmf.zope.org. For instance, the ZWiki. After reading the Everitt/Mannheimer interview on oss4lib, it seems they plan to integrate the best aspects of Wiki into CMF. So is the ZWiki forum for CMF/PTK being dropped intentionally? If not, what is the vision for how other products such as Wiki or Squishdot should or could be integrated into a CMF website? Does it make sense to do that?
 
o  The ability for users to create custom areas of the site and maintain their own content is cool, but how do other uses discover that content? Is posting a news item the best and/or only way? How should topics be used on a site basis? How do users know what keywords have been entered as metadata to give them a clue as to what to search for?
 
o  If a user (for whatever reason) leaves the community, what becomes of their content? Can it be transferred to another user?
 
o  When a user creates content, can they assign edit rights to other users?
 
o  How can a user create content that will be accessible from a common area of the web site? Does the site manager need to put it there and create a link to it?
 
o  How does cmf.zope.org automatically create an index_html page for new users? My new CMF instance doesn't do this.
 
That's enough questions for now, but I'm sure I'll have more as I learn more about this product. Thanks for helping.
 
Dan
 
------_=_NextPart_001_01C0C282.F6117490-- From chrisw@nipltd.com Wed Apr 11 14:17:32 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 14:17:32 +0100 Subject: [Zope-CMF] Sharing bits of Skins between sites References: Message-ID: <3AD4596C.2C3B3FB4@nipltd.com> Shane Hathaway wrote: > > Ah, I see. Nope, you can't do that. You might consider creating a > product that registers a DirectoryView, however. Sorry, now I'm showing my lack of knowledge. I thought DirectoryView's were the things that picked up stuff from the filesystem? What I'm thinking of doing to get around my problem is to haev a 'PlaceholderFolder' object that when asked for it's contents will restrictedTraverse off somewhere else and get it's contents from there. Then I can haev one fodler up in the root and add placeholders in the portal_skins of any CMF instances that I want to 'share' that skin layer with. Am I making any sense? (where's the red bull when I need it ;-) cheers, Chris From chrisw@nipltd.com Wed Apr 11 14:19:36 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 14:19:36 +0100 Subject: [Zope-CMF] Bugs? References: <3ACF9586.4BD0DF77@nipltd.com> <20010408203457.A20237@zopatista.com> <20010410162012.A27167@zopatista.com> Message-ID: <3AD459E8.F539C378@nipltd.com> Martijn Pieters wrote: > > If they are not there (after adding a subfolder and then restarting) try > refreshing the nav pane. Yup, sorry, that was my newbie mistake ;-) cheers, Chris From chrisw@nipltd.com Wed Apr 11 14:25:31 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 14:25:31 +0100 Subject: [Zope-CMF] Bugs? References: <3ACF9586.4BD0DF77@nipltd.com> <20010408203457.A20237@zopatista.com> Message-ID: <3AD45B4B.EB0ED325@nipltd.com> Martijn Pieters wrote: > > What subfolders? If I create a subfolder in the custom folder the plus > shows up. Did you try and refresh the tree? Or have you created a > Filesystem Directory View based skin with subfolders? If so, could you > make an easily reproducable sample and file that in the Tracker? Done: http://www.zope.org/Products/PTK/Tracker/251 cheers, Chris From chrisw@nipltd.com Wed Apr 11 14:49:52 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 14:49:52 +0100 Subject: [Zope-CMF] A very long permissions list ;-) References: <15058.7559.395836.574280@lindm.dm> Message-ID: <3AD46100.52116CDC@nipltd.com> Dieter Maurer wrote: > > Chris Withers writes: > > At what point does Zope's permissions list stop scaling? > > > > I can think of situation where there could be, say, 50 content types and 5 > > actions. That's 250 permissions! Is Zope okay with that? > I do not think so. > > The permission page is very unwieldy and need to get a > better design. Well, I wouldn't be using the permissions _page_ to modify these. I was asking about the Zope security machinery. How would that hold up? cheers, Chris From chrisw@nipltd.com Wed Apr 11 15:05:31 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 15:05:31 +0100 Subject: [Zope-CMF] A very long permissions list ;-) References: <3AD1CC5F.91A5D329@nipltd.com> <3AD1F827.CAB098D2@digicool.com> Message-ID: <3AD464AB.9DB397F1@nipltd.com> Shane Hathaway wrote: > > > As an observation, many of the actions can be factored out to be the same: > > 'Add x' > > 'View x' > > 'Edit x' > > 'Manage x' > > Note that the CMF now uses simpler permissions: "Modify Portal Content", > "Add Portal Content", etc. Yes, but as you point out below, this breaks down when I want someoen to be able to edit documents, but not news items. > I'm glad you saw this. We've struggled with this. In fact, it's worse > than this: you often want to be able to change security based on object > state, such as allowing a user to edit a page when it's in the "private" > state but not when it's in the "published" state. But you want this to > be a site-specific decision. So you get (m * n * o) permissions! Well, to get the full dimensions, you probably want: content type * content state * action * location * owner ...and I'm sure it could be made even worse with more flexibility ;-) > Here is our plan: the configurable workflow will take over the role -> > permission -> method mappings. There are several current views on the > specifics, but essentially the workflow will manage security. Workflows > can manage security in more flexible ways, such as allowing access to > methods based on object state. How will they interact with the security machinery and normal Zope permissions? Also, where can I find out more about this workflow tool? I go to the portal_workflow tool's ZMI in my portal and all I get is Undo, Ownership and Security tabs. It'd be great if stuff happened declaratively (if you see what I mean) rather than having to programmatically check whether you can do something by consulting the workflow tool all the time. Am I making any sense or just writing unintelligable rubbish? cheers, Chris (tired, excuse typos and misnuderstandings ;-) From Tim Hicks" Message-ID: <004a01c0c290$b386a9c0$0501a8c0@OC> ----- Original Message ----- From: "Tres Seaver" To: "Tim Hicks" Cc: ; Sent: Monday, April 09, 2001 2:07 PM Subject: Re: [Zope-CMF] CMF product development problems > The problem lies either in the way you have configured the type > object (in 'portal_types'), or in some incompatibility between > FactoryTypeInformation and ZClasses. We will investigate the > possibility that it is the second, if you will check the first > and post a tracker issue if you still see no problem in your > setup. OK, I have tried changing all of the different things I can find in 'portal_types', but to no avail. I remade my zclass product (again), but still no joy. I have filed a report on the tracker, http://www.zope.org/Products/PTK/Tracker/252 tim From shane@digicool.com Wed Apr 11 16:04:35 2001 From: shane@digicool.com (Shane Hathaway) Date: Wed, 11 Apr 2001 11:04:35 -0400 Subject: [Zope-CMF] Re: usage of getCustomizableObject References: <20010411115622.A5780@zopatista.com> Message-ID: <3AD47283.DA4E2237@digicool.com> Martijn Pieters wrote: > > In all of the FS* objects, the method manage_doCustomize calls the > acquired method DirectoryView.getCustomizableObject(), but doesn't do > anything with the return value: > > def manage_doCustomize(self, folder_path, data=None, RESPONSE=None): > ... > > custFolder = self.getCustomizableObject() > > ... no usage of custFolder > > What is it's intent? To raise an error if no DirectoryView object is > found? In that case no getCustomizableObject method will be found either, > so it misses the point a bit. > > Can I just remove the call? (And the method, it isn't used anywhere else). > Oops, that's pretty silly isn't it? That's what I get for copying and pasting. Yeah you can just remove the calls (but not the method itself since DirectoryView uses it.) This is one of the methods that need to go in a common base class. Shane From mj@digicool.com Wed Apr 11 15:14:34 2001 From: mj@digicool.com (Martijn Pieters) Date: Wed, 11 Apr 2001 16:14:34 +0200 Subject: [Zope-CMF] Re: usage of getCustomizableObject In-Reply-To: <3AD47283.DA4E2237@digicool.com>; from shane@digicool.com on Wed, Apr 11, 2001 at 11:04:35AM -0400 References: <20010411115622.A5780@zopatista.com> <3AD47283.DA4E2237@digicool.com> Message-ID: <20010411161433.A10020@zopatista.com> On Wed, Apr 11, 2001 at 11:04:35AM -0400, Shane Hathaway wrote: > > Can I just remove the call? (And the method, it isn't used anywhere else). > > > > Oops, that's pretty silly isn't it? That's what I get for copying and > pasting. Yeah you can just remove the calls (but not the method itself > since DirectoryView uses it.) This is one of the methods that need to > go in a common base class. Which is what I am doing just now. Lot's of code reduction, wheeeeee! :) -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From shane@digicool.com Wed Apr 11 16:09:46 2001 From: shane@digicool.com (Shane Hathaway) Date: Wed, 11 Apr 2001 11:09:46 -0400 Subject: [Zope-CMF] Sharing bits of Skins between sites References: <3AD4596C.2C3B3FB4@nipltd.com> Message-ID: <3AD473BA.1D363A77@digicool.com> Chris Withers wrote: > > Shane Hathaway wrote: > > > > Ah, I see. Nope, you can't do that. You might consider creating a > > product that registers a DirectoryView, however. > > Sorry, now I'm showing my lack of knowledge. I thought DirectoryView's were the > things that picked up stuff from the filesystem? That's right--my suggestion is to put the files on the filesystem instead of in the ZODB. > What I'm thinking of doing to get around my problem is to haev a > 'PlaceholderFolder' object that when asked for it's contents will > restrictedTraverse off somewhere else and get it's contents from there. Then I > can haev one fodler up in the root and add placeholders in the portal_skins of > any CMF instances that I want to 'share' that skin layer with. > > Am I making any sense? (where's the red bull when I need it ;-) Yes you are. And no you can't do that. :-) Not currently, anyway. It would break security if you could. That's not to say there isn't a way that it could be done safely. Perhaps you're looking for a portal_skins derivative that uses simply restrictedTraverse() to construct layers. Shane From klm@digicool.com Wed Apr 11 16:27:28 2001 From: klm@digicool.com (Ken Manheimer) Date: Wed, 11 Apr 2001 11:27:28 -0400 (EDT) Subject: [Zope-CMF] Newbie Questions In-Reply-To: <6176E3D8E36FD111B58900805FA7E0F80CCF6518@mcnc-mdm1-ex01> Message-ID: On Wed, 11 Apr 2001, Rolander, Dan wrote: > o There was a lot of information on www.zope.org for > PTK that is missing on cmf.zope.org. For instance, the ZWiki. After reading > the Everitt/Mannheimer interview on oss4lib, it seems they plan to integrate > the best aspects of Wiki into CMF. So is the ZWiki forum for CMF/PTK being > dropped intentionally? If not, what is the vision for how other products > such as Wiki or Squishdot should or could be integrated into a CMF website? > Does it make sense to do that? We realize the wiki-features generalization is not going to be done immediately, and are planning for the meanwhile to migrate the WikiForNow ZWiki into the fishbowl. I don't know what the actual schedule is, yet, but it is in the works. > o The ability for users to create custom areas of the site and maintain > their own content is cool, but how do other uses discover that content? Is > posting a news item the best and/or only way? How should topics be used on a > site basis? How do users know what keywords have been entered as metadata to > give them a clue as to what to search for? These are good questions, ones in which i'm particularly interested. I don't think we have complete answers yet, but i do think the combination of news, for deliberate publication, topics, for formulated site-specific searches, and regular searches for a catch-all fallback, together gives you fairly extensive tools to find stuff. (I'm interested in seeing extensible "blessed" keyword sets, so people don't have to guess about what keywords people will use, but at the moment this is pipe-dreaming.) > o If a user (for whatever reason) leaves the community, what becomes of > their content? Can it be transferred to another user? > > o When a user creates content, can they assign edit rights to other users? > > o How can a user create content that will be accessible from a common area > of the web site? Does the site manager need to put it there and create a > link to it? > > o How does cmf.zope.org automatically create an index_html page for new > users? My new CMF instance doesn't do this. I'm still coming up to speed, and not sure, myself, about the answers to these questions. > That's enough questions for now, but I'm sure I'll have more as I learn more > about this product. Thanks for helping. I realize i only gave a little bit of info about some intentions, not much solid in the way of answers - hope it helps, some... Ken Manheimer (one 'n' in manheimer) klm@digicool.com From shane@digicool.com Wed Apr 11 16:23:39 2001 From: shane@digicool.com (Shane Hathaway) Date: Wed, 11 Apr 2001 11:23:39 -0400 Subject: [Zope-CMF] A very long permissions list ;-) References: <3AD1CC5F.91A5D329@nipltd.com> <3AD1F827.CAB098D2@digicool.com> <3AD464AB.9DB397F1@nipltd.com> Message-ID: <3AD476FB.87FCDD05@digicool.com> Chris Withers wrote: > Well, to get the full dimensions, you probably want: > > content type * content state * action * location * owner > > ...and I'm sure it could be made even worse with more flexibility ;-) We could advertise this as "n-dimensional security"... ;-) > > Here is our plan: the configurable workflow will take over the role -> > > permission -> method mappings. There are several current views on the > > specifics, but essentially the workflow will manage security. Workflows > > can manage security in more flexible ways, such as allowing access to > > methods based on object state. > > How will they interact with the security machinery and normal Zope permissions? The workflow will take over security computation at whatever point it sees fit: it might remap permissions, roles, users, or even methods themselves. That's the plan. > Also, where can I find out more about this workflow tool? I go to the > portal_workflow tool's ZMI in my portal and all I get is Undo, Ownership and > Security tabs. In CVS it has been revised somewhat: portal_workflow is now a folder where you can assign types to workflows. I think it makes several things clearer. You should read the API documentation on the portal_workflow tool, especially the WorkflowDefinition interface. > It'd be great if stuff happened declaratively (if you see what I mean) rather > than having to programmatically check whether you can do something by consulting > the workflow tool all the time. What do you mean? Are you saying the workflows would manually remap permissions? That's actually what is done now and there are problems with it, such as not being able to explicitly disable a role to permission mapping without embedding role names in objects. Shane From chrisw@nipltd.com Wed Apr 11 16:46:46 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 11 Apr 2001 16:46:46 +0100 Subject: [Zope-CMF] Sharing bits of Skins between sites References: <3AD4596C.2C3B3FB4@nipltd.com> <3AD473BA.1D363A77@digicool.com> Message-ID: <3AD47C66.6C8AA6EF@nipltd.com> Shane Hathaway wrote: > > > Sorry, now I'm showing my lack of knowledge. I thought DirectoryView's were the > > things that picked up stuff from the filesystem? > > That's right--my suggestion is to put the files on the filesystem > instead of in the ZODB. Nope, I was only using Swishdot as an example. The actual situation is a scripter who wants to use a some skin layers in several seperate CMF's. > > > What I'm thinking of doing to get around my problem is to haev a > > 'PlaceholderFolder' object that when asked for it's contents will > > restrictedTraverse off somewhere else and get it's contents from there. Then I > > can haev one fodler up in the root and add placeholders in the portal_skins of > > any CMF instances that I want to 'share' that skin layer with. > > > > Am I making any sense? (where's the red bull when I need it ;-) > > Yes you are. And no you can't do that. :-) Not currently, anyway. It > would break security if you could. How? (if I'm using restricted traverse...) > That's not to say there isn't a way > that it could be done safely. Perhaps you're looking for a portal_skins > derivative that uses simply restrictedTraverse() to construct layers. Well, I was looking at something that felt more like a DirectoryView but I think you're right. Now, any suggestions as to how I'd go about implementing such a beast? ;-) cheers, Chris From shane@digicool.com Wed Apr 11 16:52:14 2001 From: shane@digicool.com (Shane Hathaway) Date: Wed, 11 Apr 2001 11:52:14 -0400 Subject: [Zope-CMF] A very long permissions list ;-) References: Message-ID: <3AD47DAE.66F38F8F@digicool.com> Danny William Adair wrote: > I'm not sure if this can be done easily, but wouldn't it all be easier if a > role-permission mapping could be something like a "rule", acquirable of > course? Yes, that's another good direction to take. Since this is very relevant to the CMF, we can keep this conversation here for a bit. To improve security, one has to think about the way different people deal with security. Developers want to distribute components / products that can be easily and securely integrated into a site. Currently, for adminstrators to integrate a new product into their site they have to know about the permissions that the product registers and have to understand how to use each of those permissions. We need to improve this. Site administrators need to provide precise access to their users. A user should have exactly the capabilities they need and nothing more. Security settings must be clear and explicit. > Would it make sense to enable the user to place a method like > > hasRole(self, Role) on a permission and something like > hasPermission(self, Permission) on a role, > (for every object of course, and acquired) > > in order to have a do-it-yourself way of finding out a permission mapping? > That way it would be easy to synchronize a permission mapping with another > one, avoiding the m*n*o scenario. I can see it working that way, but right now all permissions and all roles are simply strings. That way they fit easily in the ZODB. > Invoking hasRole(self, Role) on the "Change x" permission of a folder (and > therefore on all of its underlying objects) > > could just > > return hasRole(getPermission('View'), Role) > > or maybe even something like > > return (container.publishing_status=='published') This might work if the permissions and roles were subclassable objects. > And if you don't place a method there, things would just be done exactly > like they're done now. With a little redesign the ZMI pages for permissions > wouldn't get too crowded either, imho. > > What do you think about this? Or should I just pull my head out of my Danny? Well, do you think it would solve the fundamental problem? The problem is that product authors want to allow granular, explicit, and concise security. Right now security is granular and partly explicit but not concise. Shane From shane@digicool.com Wed Apr 11 17:07:59 2001 From: shane@digicool.com (Shane Hathaway) Date: Wed, 11 Apr 2001 12:07:59 -0400 Subject: [Zope-CMF] Sharing bits of Skins between sites References: <3AD4596C.2C3B3FB4@nipltd.com> <3AD473BA.1D363A77@digicool.com> <3AD47C66.6C8AA6EF@nipltd.com> Message-ID: <3AD4815F.BD0873A4@digicool.com> Chris Withers wrote: > > That's not to say there isn't a way > > that it could be done safely. Perhaps you're looking for a portal_skins > > derivative that uses simply restrictedTraverse() to construct layers. > > Well, I was looking at something that felt more like a DirectoryView but I think > you're right. Now, any suggestions as to how I'd go about implementing such a > beast? ;-) Subclass SkinsTool.py, changing just the implementation of getSkinByPath() (which you can find in SkinsContainer.py). Instead of using getattr(), use restrictedTraverse(). Be careful to retain the ordering logic. Register your new tool using the standard mechanisms found in CMFDefault/__init__.py. Shane From briga@borland.com Wed Apr 11 19:17:00 2001 From: briga@borland.com (Ben Riga) Date: Wed, 11 Apr 2001 11:17:00 -0700 Subject: [Zope-CMF] Login/logout information In-Reply-To: <3AD38F6F.53BB6371@novacoxmail.com> Message-ID: Tres, Thanks. I understand the security issues. In my case this initial site is an internal intranet site/experiment which will grow. The security issues don't exist since the site does not hold any sensitive info. I think that this type of decision is best left to the user. Yahoo does this a couple of different ways. MyYahoo never expires on me. Yahoo Mail asks you how long you want you cookie to survive for (varies from 15 minutes to a day). Hotmail also gives the user the preference of when to expire a session (2 hours to never). Perhaps this could be something that could be in the member perferences page. Thanks again for your help, Ben -----Original Message----- From: tres@borland.com [mailto:tres@borland.com]On Behalf Of Tres Seaver Sent: Tuesday, April 10, 2001 3:56 PM To: Ben Riga Cc: zope-cmf@zope.org Subject: Re: [Zope-CMF] Login/logout information Ben Riga wrote: > It seems like the CMF and/or Zope log me off whenever I shutdown > my browser. Is there anyway to prevent that? In other words, > don't log me out (ever) unless I explicitly log out. Assuming you are using the cookie-based authentication provided by default, yes, it is possible, but creates a security issue if any of your users ever log in from a "shared" machine (library, internet cafe, etc.) You would need to tweak / override 'CMFCore.CookieCrumbler.CookieCrumbler.setAuthCookie' such that it appends 'expires="Never"' to the call to 'resp.setCookie' (line 153). Because of the security issue, I *won't* accept a patch to add this behavior, even as an option, to the CookieCrumbler distributed with the CMF. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From briga@borland.com Wed Apr 11 19:17:01 2001 From: briga@borland.com (Ben Riga) Date: Wed, 11 Apr 2001 11:17:01 -0700 Subject: [Zope-CMF] Login/logout information In-Reply-To: <3AD38F6F.53BB6371@novacoxmail.com> Message-ID: >>>> You would need to tweak / override 'CMFCore.CookieCrumbler.CookieCrumbler.setAuthCookie' such that it appends 'expires="Never"' to the call to 'resp.setCookie' (line 153). <<<< I tried making this one change and it really messed up the login cookie. CMF started getting really confused about whether I was logged in or not. I'm backing the change out. Having looked at the CookieCrumbler code a little closer, it looks like this setting is used at least a few other places. I'll study the code and then try to make the change. Thanks, Ben From Dan.Rolander@marriott.com Wed Apr 11 19:47:01 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Wed, 11 Apr 2001 14:47:01 -0400 Subject: [Zope-CMF] Newbie Questions Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF651A@mcnc-mdm1-ex01> Ken, Thank you for taking the time to reply. I appreciate the information. I like what I see in CMF, even if I don't fully understand it. But I'll keep continuing to learn about it. Hopefully the documentation will catch up someday. Sorry about the extra 'n'. Dan -----Original Message----- From: Ken Manheimer [mailto:klm@digicool.com] Sent: Wednesday, April 11, 2001 11:27 AM To: Rolander, Dan Cc: 'zope-cmf@zope.org' Subject: Re: [Zope-CMF] Newbie Questions [...] I realize i only gave a little bit of info about some intentions, not much solid in the way of answers - hope it helps, some... Ken Manheimer (one 'n' in manheimer) klm@digicool.com From scott.meilicke@intp.com Wed Apr 11 19:51:16 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Wed, 11 Apr 2001 11:51:16 -0700 Subject: [Zope-CMF] Newbie Questions Message-ID: I can offer a couple thoughts... -----Original Message----- From: Rolander, Dan [mailto:Dan.Rolander@marriott.com] Sent: Wednesday, April 11, 2001 5:29 AM To: 'zope-cmf@zope.org' Subject: [Zope-CMF] Newbie Questions Okay, I've been playing with CMF for awhile, and I've figured out how to customize the skins and how to maneuver around a CMF portal and use the basic functions. I'd like to use it to build a intranet community website for knowledge sharing. Here are some questions I have (forgive me if the answers are obvious-- I'm still new at this): o There was a lot of information on www.zope.org for PTK that is missing on cmf.zope.org. For instance, the ZWiki. After reading the Everitt/Mannheimer interview on oss4lib, it seems they plan to integrate the best aspects of Wiki into CMF. So is the ZWiki forum for CMF/PTK being dropped intentionally? If not, what is the vision for how other products such as Wiki or Squishdot should or could be integrated into a CMF website? Does it make sense to do that? o The ability for users to create custom areas of the site and maintain their own content is cool, but how do other uses discover that content? Is posting a news item the best and/or only way? How should topics be used on a site basis? How do users know what keywords have been entered as metadata to give them a clue as to what to search for? [Scott] I use a manager account for the front page, topics/news to expose content, and direct links to those topics. I'll probably put in a dtml chunck in the metadata page to make the Subject field a drop down list of current Subjects in the db (search the mailing list archives for the code - either Shane or Tres put a few examples up a week or two ago). I would also include a link to flip a variable on the template so the user could input a new Subject if the existing ones aren't cutting it. You can also use the News_Box code as an example to expose other types of content. o If a user (for whatever reason) leaves the community, what becomes of their content? Can it be transferred to another user? o When a user creates content, can they assign edit rights to other users? o How can a user create content that will be accessible from a common area of the web site? Does the site manager need to put it there and create a link to it? o How does cmf.zope.org automatically create an index_html page for new users? My new CMF instance doesn't do this. [Scott] Mine does - zope 2.3.1, CMF 1.0 tarball. That's enough questions for now, but I'm sure I'll have more as I learn more about this product. Thanks for helping. [Scott] Thanks for asking - I've had just about every one of these questions, but haven't asked them... Dan From jeffrey@Digicool.com Wed Apr 11 20:02:22 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Wed, 11 Apr 2001 15:02:22 -0400 Subject: [Zope-CMF] Newbie Questions In-Reply-To: Message-ID: On 4/11/01 2:51 PM, "Meilicke, Scott" wrote: > I use a manager account for the front page, topics/news to expose content, > and direct links to those topics. I'll probably put in a dtml chunck in the > metadata page to make the Subject field a drop down list of current Subjects > in the db (search the mailing list archives for the code - either Shane or > Tres put a few examples up a week or two ago). I would also include a link > to flip a variable on the template so the user could input a new Subject if > the existing ones aren't cutting it. This seems to be a common question|complaint. I've added (and accepted) a new Tracker issue on this. This should be shipping in the default skins in 1.1. http://www.zope.org/Products/PTK/Tracker/253/1 Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From aem@byu.edu Wed Apr 11 20:29:31 2001 From: aem@byu.edu (Adrian Madrid) Date: Wed, 11 Apr 2001 12:29:31 -0700 (PDT) Subject: [Zope-CMF] Help with user roles Message-ID: <20010411192931.58874.qmail@web10104.mail.yahoo.com> Sorry to repost this but I haven't figured out yet how to programatically find out if a user has certain role. I've received some help from Tres but I can't figure out how to use it in a script. Here goes what he shared. > In a PythonScript which binds '_' to the DTML > namespace: > > # Get all roles defined in user folder. > _.SecurityManager().getUser().getRoles() > > # Get all roles pertaining to an object, 'foo' > _.SecurityGetUser().getRolesInContext( foo ) If anybody figured out how to tell if the auth user has certain role _please_ share the zen with me/us. ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From aem@byu.edu Wed Apr 11 20:36:29 2001 From: aem@byu.edu (Adrian Madrid) Date: Wed, 11 Apr 2001 12:36:29 -0700 (PDT) Subject: [Zope-CMF] Metadata rights field: for what? Message-ID: <20010411193629.20907.qmail@web10103.mail.yahoo.com> Looking at the full metadata I see there is a Rights field. I was wondering if there is a planned use for it in the future and then I thought that it could be used to filter content. For example, you could create a litle intranet with a user role like Staff and Rights == 'Employees only' and then make sure to filter the searches depending on the auth user's role. Anyway, just thinking outloud. ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From klm@digicool.com Wed Apr 11 20:36:24 2001 From: klm@digicool.com (Ken Manheimer) Date: Wed, 11 Apr 2001 15:36:24 -0400 (EDT) Subject: [Zope-CMF] Help with user roles In-Reply-To: <20010411192931.58874.qmail@web10104.mail.yahoo.com> Message-ID: On Wed, 11 Apr 2001, Adrian Madrid wrote: > Sorry to repost this but I haven't figured out yet how > to programatically find out if a user has certain > role. I've received some help from Tres but I can't > figure out how to use it in a script. Here goes what > he shared. > > > In a PythonScript which binds '_' to the DTML > > namespace: > > > > # Get all roles defined in user folder. > > _.SecurityManager().getUser().getRoles() > > > > # Get all roles pertaining to an object, 'foo' > > _.SecurityGetUser().getRolesInContext( foo ) > > If anybody figured out how to tell if the auth user > has certain role _please_ share the zen with me/us. I must be missing something - how does a construct like: if 'Member' in _.SecurityGetUser().getRolesInContext(foo): ... fall short for you? (The same thing could be done for getRoles() - the difference is whether you want the roles within the context of a particular object or not...) Ken Manheimer klm@digicool.com From bill@libc.org Wed Apr 11 20:57:59 2001 From: bill@libc.org (Bill Anderson) Date: 11 Apr 2001 13:57:59 -0600 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. Message-ID: Well, I've been able to track my xml-rpc issues to the CMF. ONLY in CMF do I get errors about /RPC2 not found. If I use a simple xml-rpc script to see the front page, I get a not ofund error (RPC2). If I try this on any non-CMF part of a site, it works fine. I'm off to work, so I'll have to look into this mor elater, but I thought I'd give a heads up. Bill From tseaver@digicool.com Wed Apr 11 20:16:34 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 11 Apr 2001 15:16:34 -0400 (EDT) Subject: [Zope-CMF] Login/logout information In-Reply-To: Message-ID: On Wed, 11 Apr 2001, Ben Riga wrote: > >>>> > You would need to tweak / override > 'CMFCore.CookieCrumbler.CookieCrumbler.setAuthCookie' such that > it appends 'expires="Never"' to the call to 'resp.setCookie' > (line 153). > <<<< > > I tried making this one change and it really messed up the > login cookie. CMF started getting really confused about > whether I was logged in or not. I'm backing the change out. > > Having looked at the CookieCrumbler code a little closer, it > looks like this setting is used at least a few other places. > I'll study the code and then try to make the change. I just checked in a change to CookieCrumbler, plus two new FSPythonMethods, to allow a CMF Site manager to override the default cookie construction by customizing the methods in the skins tool: http://cvs.zope.org/CMF/CMFCore/CookieCrumbler.py.diff?r1=1.2&r2=1.3 http://cvs.zope.org/CMF/CMFDefault/skins/control/expireAuthCookie.py http://cvs.zope.org/CMF/CMFDefault/skins/control/setAuthCookie.py Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From dieter@handshake.de Wed Apr 11 23:04:04 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 12 Apr 2001 00:04:04 +0200 (CEST) Subject: [Zope-CMF] A very long permissions list ;-) In-Reply-To: <3AD46100.52116CDC@nipltd.com> References: <15058.7559.395836.574280@lindm.dm> <3AD46100.52116CDC@nipltd.com> Message-ID: <15060.54484.772413.655157@lindm.dm> Chris Withers writes: > Dieter Maurer wrote: > > Chris Withers writes: > > > .... That's 250 permissions! Is Zope okay with that? > > I do not think so. > > > > The permission page is very unwieldy and need to get a > > better design. > > Well, I wouldn't be using the permissions _page_ to modify these. I was asking > about the Zope security machinery. How would that hold up? This is no problem for Zope. It can support arbitrary many permissions (beside managing the permission page). Zope is only interested in a permission for an access to an attribute, say *a*. Zope will then look at "*a*__roles__". This is a computed attribute that will evaluate to the roles that are allowed to access the attribute. It traverses up the containment chain until it finds either a permission mapping for the single permission that protects the attribute, or an object that does not inherit the mapping or the end of the containment chain. This process is independent from the number of permissions. Dieter From dieter@handshake.de Wed Apr 11 23:29:02 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 12 Apr 2001 00:29:02 +0200 (CEST) Subject: [Zope-CMF] Newbie Questions In-Reply-To: <363926105@toto.iv> Message-ID: <15060.55983.7365.204789@lindm.dm> Rolander, Dan writes: > 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_01C0C282.F6117490 > Content-Type: text/plain; > charset="iso-8859-1" One of the first things, newbies should learn, is not to post MIME messages ;-) > .... > o The ability for users to create custom areas of the site and maintain > their own content is cool, but how do other uses discover that content? Is > posting a news item the best and/or only way? How should topics be used on a > site basis? How do users know what keywords have been entered as metadata to > give them a clue as to what to search for? They search for it or browse the members folder... > o If a user (for whatever reason) leaves the community, what becomes of > their content? Can it be transferred to another user? I would expect that it can be copied, provided there are not id conflicts. > o When a user creates content, can they assign edit rights to other users? I think, this is currently not supported. But the CMF is an open (and open source) framework. You can enhance it to fit your needs. > o How can a user create content that will be accessible from a common area > of the web site? Does the site manager need to put it there and create a > link to it? He "publishes" it. In the default CMF, this lets the content enter the review workflow. If the content is accepted, it will be searchable and viewable by the public. Dieter From tav" i am experiencing some problems with regards to displaying those pretty little icons for CMF object types all the icons render as img src="http://icon_file.gif" instead of http://cmf_site_folder/icon_file.gif" this happens in both the ZMI and in the webpages i noticed whilst trawling the logs that scott meilicke is experiencing something similar on http://www.kmclan.net/SitesUp though he doesn't seem to have queried about it i am using zope 2.3.1 with cmf 1.0.0. thanks in advance for any help -- best regards, tav tav@espnow.com From vcherep@yahoo.com Thu Apr 12 08:29:16 2001 From: vcherep@yahoo.com (Volodymyr Cherepanyak) Date: Thu, 12 Apr 2001 10:29:16 +0300 Subject: [Zope-CMF] Trouble with filtering out new content type Message-ID: <3AD5594C.4E14FFB@yahoo.com> Hi I followed the Portal Poll tutorial and managed to create new content type. Instances can be created under manager role. Other roles also create the instance but I've got ERROR Error type: Unauthorized Error value: User t is not allowed to access /Portal/Members/testmember/newpoll/indexObject, which is contained in /Portal/Members/testmember/newpoll. The user, whose roles are ('Member', 'Owner'), would need to have one of the following roles: ('Manager', 'Manager'). Another problem is I can not see the 'newpoll' item in My Stuff (even if its is created under manager role). All content types are selected to be filtered out in the folder. Regards Vovchyk. From tseaver@digicool.com Thu Apr 12 12:28:36 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 12 Apr 2001 07:28:36 -0400 (EDT) Subject: [Zope-CMF] Re: [PTK(236)[2] note] Re: Search form bug: IOError In-Reply-To: Message-ID: On Thu, 12 Apr 2001, Matthijs van Kempen wrote: > Hi Tres, > > >> > Do you have any other suggestions to try? > >> > >> I *think* I have found a similar error report; can you please > >> send the Python traceback for the IOError (embedded in an HTML > >> comment, if you aren't running Zope in debug mode)? > > Running Zope in debug mode, I got this traceback: > > > > You might be right after all, there seems to be a permission > problem in there. Lots of luck finding this one. Actually, that traceback nails it: the Win32 C library can't cope with the negative integer which the date, '1970/01/01', maps to in your timezone (I'm presuming from your e-mail address that you are running Zope on a box with "GMT+1"). I'll ask Chris and Andreas to double check me on this. If so, then your workaround (use a different value for "modified since ever") is the only appropriate fix; the DateTime module could add checks for the problem, and raise a less puzzling exception, but that value is still not going to work in any timezone east of GMT. > BTW: Can you send met the tracker number for the related bug. > I'd like to look at it too. It was a mailing list posting from February this year (I think; I can't find it this morning, of course!) Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From kbolton@sputnik7.com Thu Apr 12 17:48:36 2001 From: kbolton@sputnik7.com (Kenneth Bolton) Date: Thu, 12 Apr 2001 12:48:36 -0400 Subject: [Zope-CMF] Trouble Adding New Content Types Using Zclass In-Reply-To: <3AD5594C.4E14FFB@yahoo.com> Message-ID: Hi all, This list has been a great resource for me in beginning to understand how the cmf works. I really appreciate the time the people at DC and elsewhere are willing to spend helping clueless newbies like myself. First, the good news. I got the PortalPoll to work from the tutorial, didn't even have to rely on the zexp! So I followed the advice given here a few days ago and tried to hack out something less complicated than the Poll for my own edification and education. Here is what I did: I made a product, let's call it WasteManagement, and added a Zclass called GarbageDump (base classes, I've tried it two ways, a: ZObject, _ZClass_for_CatalogTool, _ZClass_for_DiscussionTool, _ZClass_for_PortalContent, _ZClass_for_PortalFolder, _ZClass_for_WorkflowTool, _ZClass_for_DefaultDublinCoreImpl, and b: ZObject, _ZClass_for_PortalContent, _ZClass_for_DefaultDublinCoreImpl). I used the EditDone, EditForm, SearchableText, and view methods from PortalPoll, but subbed my own properties in where applicable, e.g. DumpName (string), DumpLocation (text), DumpContact (text), and DumpCapacity (int). I put a modified addPortalClassPy in WasteManagement that reads: return context.manage_addProduct['WasteManagement'].GarbageDump.createInObjectManag er(id,context.REQUEST) I adjusted the Views (Edit, EditForm; View, View) and Define Permissions (Create class instance = Add portal content) tabs. I went into my portal_types and added my Factory based content type, filled in the appropriate properties, tweaked the actions per the tutorial. When I go into my folder in the portal instance, select new, and add a GarbageDump, I get the following error, regardless of what ID I put in or where I do it. (fyi, the one in the traceback below has the id MyFirstGarbageDump) I'm going to keep playing with it, pouring over the python source in an attempt to figure out what is going on. If anyone can clue me, I'd very much appreciate it. The Traceback and error page are below. Cheers, Ken Error Type: ! Cannot change the id of this object Error Value: None 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. Traceback (innermost last): File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publis h.py, line 222, in publish_module File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publis h.py, line 187, in publish File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publis h.py, line 171, in publish File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply .py, line 160, in mapply (Object: invokeFactory) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publis h.py, line 112, in call_object (Object: invokeFactory) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/ PortalFolder.py, line 368, in invokeFactory (Object: Traversable) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/ TypesTool.py, line 714, in constructContent (Object: Traversable) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/ TypesTool.py, line 473, in constructInstance (Object: ElementWithAttributes) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts /Bindings.py, line 324, in __call__ (Object: addPortalClassPy) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts /Bindings.py, line 353, in _bindAndExec (Object: addPortalClassPy) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Products/PythonSc ripts/PythonScript.py, line 336, in _exec (Object: addPortalClassPy) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, ('MyFirstGarbagedump',), {}, None)) File Script (Python), line 2, in addPortalClassPy File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/ZClasses/ZClass.p y, line 522, in createInObjectManager (Object: GarbageDump) File /home/dstengle/build/zope/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/ utils.py, line 127, in _setId (Object: Traversable) From davew@digicool.com Thu Apr 12 23:22:35 2001 From: davew@digicool.com (Dave Woolston) Date: Thu, 12 Apr 2001 18:22:35 -0400 Subject: [Zope-CMF] Re: Trouble Adding New Content Types Using Zclass Message-ID: <008901c0c39f$13448d50$0201000a@D92WIL> Vovchyk wrote: > > I followed the Portal Poll tutorial and managed to create new content > type. Sorry, this has been out of date. > Instances can be created under manager role. > Other roles also create the instance but I've got ERROR > > Error type: Unauthorized > Error value: User t is not allowed to access > /Portal/Members/testmember/newpoll/indexObject, which is contained in > /Portal/Members/testmember/newpoll. The user, whose roles are ('Member', > 'Owner'), would need to have one of the following roles: ('Manager', > 'Manager'). For the purposes of this tutorial, you can select the proxy tab on the EditDone DTML method and select to run this method as Manager. This will get your content item in the catalog. > Another problem is I can not see the 'newpoll' item in My Stuff (even > if its is created under manager role). All content types are selected to > be filtered out in the folder. Maybe I am misunderstanding you, but if all content types are selected to be filtered out, I don't think you would see anything. Try to add one of the canned types (i.e. file or Document) and see if they show up. Check your configuration in the portal_types tool. HTH, Dave ================================= Dave Woolston davew@digicool.com Digital Creations www.digicool.com (716) 262-4715 From davew@digicool.com Thu Apr 12 23:49:01 2001 From: davew@digicool.com (Dave Woolston) Date: Thu, 12 Apr 2001 18:49:01 -0400 Subject: [Zope-CMF] Updated Portal Poll Tutorial Message-ID: <009601c0c3a2$c4a9e240$0201000a@D92WIL> We have updated the portal poll tutorial (how to create custom ZClass-based portal content): http://cmf.zope.org/Members/davew Sorry for the delay getting this up to date. Dave ================================= Dave Woolston davew@digicool.com Digital Creations www.digicool.com (716) 262-4715 From tseaver@digicool.com Fri Apr 13 02:16:17 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 12 Apr 2001 21:16:17 -0400 Subject: [Zope-CMF] Metadata rights field: for what? References: <20010411193629.20907.qmail@web10103.mail.yahoo.com> Message-ID: <3AD65361.DDA4E4C2@novacoxmail.com> Adrian Madrid wrote: > > Looking at the full metadata I see there is a Rights > field. I was wondering if there is a planned use for > it in the future and then I thought that it could be > used to filter content. For example, you could create > a litle intranet with a user role like Staff and > Rights == 'Employees only' and then make sure to > filter the searches depending on the auth user's role. > > Anyway, just thinking outloud. The metadata intentds to follow the semantics of the Dublin Core: http://www.dublincore.org/dces About the 'Rights' element, that spec says: Name: Rights Management Identifier: Rights Definition: Information about rights held in and over the resource. Comment: Typically, a Rights element will contain a rights management statement for the resource, or reference a service providing such information. Rights information often encompasses Intellectual Property Rights (IPR), Copyright, and various Property Rights. If the Rights element is absent, no assumptions can be made about the status of these and other rights with respect to the resource. For instance, I foresee having "Copyright (c) 2001 Digital Creations" show up in the Rights field of "official" documentation. I think that Zope's own security mechanisms are a better match for what you want. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Fri Apr 13 02:29:51 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 12 Apr 2001 21:29:51 -0400 Subject: [Zope-CMF] Trouble Adding New Content Types Using Zclass References: Message-ID: <3AD6568F.BBF1015C@novacoxmail.com> Kenneth Bolton wrote: > > This list has been a great resource for me in beginning to understand how > the cmf works. I really appreciate the time the people at DC and elsewhere > are willing to spend helping clueless newbies like myself. > > First, the good news. I got the PortalPoll to work from the tutorial, didn't > even have to rely on the zexp! So I followed the advice given here a few > days ago and tried to hack out something less complicated than the Poll for > my own edification and education. > > Here is what I did: > I made a product, let's call it WasteManagement, and added a Zclass called > GarbageDump (base classes, I've tried it two ways, a: ZObject, > _ZClass_for_CatalogTool, _ZClass_for_DiscussionTool, > _ZClass_for_PortalContent, _ZClass_for_PortalFolder, > _ZClass_for_WorkflowTool, _ZClass_for_DefaultDublinCoreImpl, You *don't* want to mix the "tool" classes into content. > and b: ZObject, > _ZClass_for_PortalContent, _ZClass_for_DefaultDublinCoreImpl). That looks right. > I used the > EditDone, EditForm, SearchableText, and view methods from PortalPoll, but > subbed my own properties in where applicable, e.g. DumpName (string), > DumpLocation (text), DumpContact (text), and DumpCapacity (int). I put a > modified addPortalClassPy in WasteManagement that reads: > return > context.manage_addProduct['WasteManagement'].GarbageDump.createInObjectManag > er(id,context.REQUEST) A PythonScript which is in the ZClass Product (WasteManagement) and called from a FactoryTypeInformation's 'constructInstance' (as yours is) shouldn't neet to do the "manage_addProduct" bit; the FTI does that for you. All you should need to do is call "context.GarbageDump.createInObjectManager'. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Fri Apr 13 02:35:00 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 12 Apr 2001 21:35:00 -0400 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. References: Message-ID: <3AD657C4.58A8C4AE@novacoxmail.com> Bill Anderson wrote: > > Well, I've been able to track my xml-rpc issues to the CMF. ONLY in CMF > do I get errors about /RPC2 not found. If I use a simple xml-rpc script > to see the front page, I get a not ofund error (RPC2). If I try this on > any non-CMF part of a site, it works fine. > > I'm off to work, so I'll have to look into this mor elater, but I > thought I'd give a heads up. Bill, I'm afraid I missed whatever context you may have supplied earlier on this problem. Can you recap, please? Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@libc.org Fri Apr 13 07:21:07 2001 From: bill@libc.org (Bill Anderson) Date: 13 Apr 2001 00:21:07 -0600 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. In-Reply-To: <3AD657C4.58A8C4AE@novacoxmail.com> References: <3AD657C4.58A8C4AE@novacoxmail.com> Message-ID: On 12 Apr 2001 21:35:00 -0400, Tres Seaver wrote: > Bill Anderson wrote: > > > > Well, I've been able to track my xml-rpc issues to the CMF. ONLY in CMF > > do I get errors about /RPC2 not found. If I use a simple xml-rpc script > > to see the front page, I get a not ofund error (RPC2). If I try this on > > any non-CMF part of a site, it works fine. > > > > I'm off to work, so I'll have to look into this mor elater, but I > > thought I'd give a heads up. > > Bill, > > I'm afraid I missed whatever context you may have supplied earlier > on this problem. Can you recap, please? Well, just to test out the lowest denominator, I have a zope server that has the following stats: / |-index_html | L/folder | L/index_html | L/cmf_instance L/index_html (ok, it's actually in the portal_skins tree ;) Using a simple xml-rpc from python to get the output of index_html (thus eliminating scripting issues fo rthe most part), server=xmlrpclib.connect('http://www.my.site/') server.index_html() # works server=xmlrpclib.connect('http://www.my.site/folder') server.index_html() # works server=xmlrpclib.connect('http://www.my.site/cmf_instance') server.index_html() # fails I get a NotFound error (Traceback essentially useless, of course), complaining about not being able to find "/RPC2". I haven't tried it with a big-simple, no dtml method from the cmf instance, that was what i was _hoping_ to test out, but I got caught up in teaching someone how to skin properly "Yo man, slip me some skin..." Bill Anderson Server: Zope 2.3.1 (src compiled by yours truly) Zope 2.0 (yeah, I know ... ;) ) .. actually, this is happening on my productions too, which run 1.5.2 ... CMF-1.0 From vcherep@yahoo.com Fri Apr 13 10:39:58 2001 From: vcherep@yahoo.com (Volodymyr Cherepanyak) Date: Fri, 13 Apr 2001 12:39:58 +0300 Subject: [Zope-CMF] Content types & user roles question Message-ID: <3AD6C96E.76E3E613@yahoo.com> Hi, I found out that in current release of CMF all user roles can create content of all portal_types. I want for example: user group 'Journalists' - can put only news. user group 'Members' - can put only documents. Is it possible to make with existing CMF capabilities? If possible how? Regards Vovchyk From tseaver@digicool.com Fri Apr 13 14:01:22 2001 From: tseaver@digicool.com (Tres Seaver) Date: Fri, 13 Apr 2001 09:01:22 -0400 (EDT) Subject: [Zope-CMF] XMLRPC + CMF = NoGo. In-Reply-To: <200104130621.CAA09333@ns2.digicool.com> Message-ID: On 13 Apr 2001, Bill Anderson wrote: > On 12 Apr 2001 21:35:00 -0400, Tres Seaver wrote: > > Bill Anderson wrote: > > > > > > Well, I've been able to track my xml-rpc issues to the CMF. ONLY in CMF > > > do I get errors about /RPC2 not found. If I use a simple xml-rpc script > > > to see the front page, I get a not ofund error (RPC2). If I try this on > > > any non-CMF part of a site, it works fine. > > > > > > I'm off to work, so I'll have to look into this mor elater, but I > > > thought I'd give a heads up. > > > > Bill, > > > > I'm afraid I missed whatever context you may have supplied earlier > > on this problem. Can you recap, please? > > > Well, just to test out the lowest denominator, I have a zope server that > has the following stats: > / > |-index_html > | > L/folder > | L/index_html > | > L/cmf_instance > L/index_html (ok, it's actually in the portal_skins tree ;) > > Using a simple xml-rpc from python to get the output of > index_html (thus eliminating scripting issues fo rthe most > part), > > server=xmlrpclib.connect('http://www.my.site/') > server.index_html() # works > > server=xmlrpclib.connect('http://www.my.site/folder') > server.index_html() # works > > server=xmlrpclib.connect('http://www.my.site/cmf_instance') > server.index_html() # fails OK, I can see why that might be; the XML-RPC request doesn't have the 'portal_skins' cookie, for one thing. > I get a NotFound error (Traceback essentially useless, of > course), complaining about not being able to find "/RPC2". I don't know of any symbol, 'RPC2', which would be in a stock Zope; is this name mentioned by your 'index_html'? > I haven't tried it with a big-simple, no dtml method from the > cmf instance, that was what i was _hoping_ to test out, but I > got caught up in teaching someone how to skin properly "Yo man, > slip me some skin..." > > Bill Anderson > > Server: Zope 2.3.1 (src compiled by yours truly) > Zope 2.0 (yeah, I know ... ;) ) .. actually, this is happening > on my productions too, which run 1.5.2 ... Presuming you mean "Python 2.0" > CMF-1.0 I can't reproduce your case under Python 1.5.2, using the xmlrpclib.py in $ZOPE_HOME/lib/python, because it doesn't have a 'connect' method; other tries (like instantiating a 'Server' object) haven't been successful, either. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From kbolton@sputnik7.com Fri Apr 13 15:55:41 2001 From: kbolton@sputnik7.com (Kenneth Bolton) Date: Fri, 13 Apr 2001 10:55:41 -0400 Subject: [Zope-CMF] Trouble Adding New Content Types Using Zclass In-Reply-To: <3AD6568F.BBF1015C@novacoxmail.com> Message-ID: on 4/12/01 9:29 PM, Tres Seaver at tseaver@novacoxmail.com wrote: > > A PythonScript which is in the ZClass Product (WasteManagement) and called > from a FactoryTypeInformation's 'constructInstance' (as yours is) shouldn't > neet to do the "manage_addProduct" bit; the FTI does that for you. All > you should need to do is call "context.GarbageDump.createInObjectManager'. > Can someone explain why the PortalPollType uses manage_addProduct and why I shouldn't be using it in what I'm doing? ken From simon@joyful.com Fri Apr 13 16:54:32 2001 From: simon@joyful.com (Simon Michael) Date: 13 Apr 2001 08:54:32 -0700 Subject: [Zope-CMF] Newbie Questions In-Reply-To: <6176E3D8E36FD111B58900805FA7E0F80CCF6518@mcnc-mdm1-ex01> ("Rolander, Dan"'s message of "Wed, 11 Apr 2001 08:28:49 -0400") References: <6176E3D8E36FD111B58900805FA7E0F80CCF6518@mcnc-mdm1-ex01> Message-ID: <8766g894nb.fsf@joyful.com> "Rolander, Dan" writes: > dropped intentionally? If not, what is the vision for how other products > such as Wiki or Squishdot should or could be integrated into a CMF website? > Does it make sense to do that? I think so, in some way or other. CMF pre-defines a lot of structure, wiki is more laissez-faire. Perhaps a wiki should be one of the objects a portal user can create ? I'll share what I've been doing in this area. Currently I have zwiki integrated with a 0.9-ish PTK, but using only the member registration, preferences, chrome etc. This works pretty well. I have hidden the PTK content management & workflow stuff since it's not yet something we need. I plan to upgrade at some point. I expect integrating with the latest CMF will be easy enough, and it may spark some more ideas.. -Simon From bill@libc.org Fri Apr 13 18:24:28 2001 From: bill@libc.org (Bill Anderson) Date: 13 Apr 2001 11:24:28 -0600 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. In-Reply-To: Message-ID: On 13 Apr 2001 09:01:22 -0400, Tres Seaver wrote: > > Bill Anderson > > > > Server: Zope 2.3.1 (src compiled by yours truly) > > Zope 2.0 (yeah, I know ... ;) ) .. actually, this is happening > > on my productions too, which run 1.5.2 ... > > Presuming you mean "Python 2.0" uhh, yeah, what ge said ;) > > > CMF-1.0 > > I can't reproduce your case under Python 1.5.2, using the > xmlrpclib.py in $ZOPE_HOME/lib/python, because it doesn't > have a 'connect' method; other tries (like instantiating > a 'Server' object) haven't been successful, either. I meant xmlrpclib.Server ... was trying t remember it late at night .. sorry. The url was just a made up one. For a real URL set: server3=xmlrpclib.Server('http://www.immortalitysystems.net') server3.index_html() #works server=xmlrpclib.Server('http://www.libc.org') server.index_html() #does not work No, I don't call RPC2, never heard of it until ths experience. Near as I can tell, xmlrpclib is where the request for it comes from. At first, I thought it was a problem in xmlrpclib (using the Zope-2.3.1 version for testing), but it works fine on 2.3.1-non-cmf. It also works fine in a non-cmf-siterooted site. THus, it seems to me to be something (no idea what yet!) in CMF that meses it up. BTW, both of the above are python 1.52, and Zope 2.3.1 Bill From mj@digicool.com Fri Apr 13 18:06:57 2001 From: mj@digicool.com (Martijn Pieters) Date: Fri, 13 Apr 2001 19:06:57 +0200 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. In-Reply-To: ; from tseaver@digicool.com on Fri, Apr 13, 2001 at 09:01:22AM -0400 References: <200104130621.CAA09333@ns2.digicool.com> Message-ID: <20010413190656.A19015@zopatista.com> On Fri, Apr 13, 2001 at 09:01:22AM -0400, Tres Seaver wrote: > > I get a NotFound error (Traceback essentially useless, of > > course), complaining about not being able to find "/RPC2". > > I don't know of any symbol, 'RPC2', which would be in a stock > Zope; is this name mentioned by your 'index_html'? 'RPC2' is the default name of the XML-RPC handler in Frontier. It is the default handler name if you don't specify anything other than a hostname for the Server class. From xmlrpc.py: class Server: """Represents a connection to an XML-RPC server""" def __init__(self, uri, transport=None): # establish a "logical" server connection # get the url type, uri = urllib.splittype(uri) if type not in ("http", "https"): raise IOError, "unsupported XML-RPC protocol" self.__host, self.__handler = urllib.splithost(uri) if not self.__handler: self.__handler = "/RPC2" if transport is None: transport = Transport() self.__transport = transport So, I suspect that you are not supplying a trailing slash after the hostname. A quick python session: >>> import urllib >>> urllib.splittype('http://www.libc.org/') ('http', '//www.libc.org/') >>> urllib.splithost('//www.libc.org/') ('www.libc.org', '/') >>> urllib.splithost('//www.libc.org') ('www.libc.org', '') -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From bill@libc.org Fri Apr 13 19:11:38 2001 From: bill@libc.org (Bill Anderson) Date: 13 Apr 2001 12:11:38 -0600 Subject: [Zope-CMF] XMLRPC + CMF = NoGo. In-Reply-To: <20010413190656.A19015@zopatista.com> References: <200104130621.CAA09333@ns2.digicool.com> <20010413190656.A19015@zopatista.com> Message-ID: On 13 Apr 2001 19:06:57 +0200, Martijn Pieters wrote: > On Fri, Apr 13, 2001 at 09:01:22AM -0400, Tres Seaver wrote: > > > I get a NotFound error (Traceback essentially useless, of > > > course), complaining about not being able to find "/RPC2". > > > > I don't know of any symbol, 'RPC2', which would be in a stock > > Zope; is this name mentioned by your 'index_html'? > > 'RPC2' is the default name of the XML-RPC handler in Frontier. It is the > default handler name if you don't specify anything other than a hostname > for the Server class. From xmlrpc.py: ... > So, I suspect that you are not supplying a trailing slash after the > hostname. A quick python session: Aha, that seems to have done the trick .. odd that it worked on non-cmf locations without the trailing slash. Thanks, Martijn From aem@byu.edu Fri Apr 13 19:23:28 2001 From: aem@byu.edu (Adrian Madrid) Date: Fri, 13 Apr 2001 11:23:28 -0700 (PDT) Subject: [Zope-CMF] Content types & user roles question In-Reply-To: <3AD6C96E.76E3E613@yahoo.com> Message-ID: <20010413182328.33475.qmail@web10101.mail.yahoo.com> I've been wondering that myself and so far I the only thing I have come up with is a shameless hack that follows.















ID: ">
In skins/generic you'll find the method folder_factories that is called when a member clicks on New in their desktops. I have taken part of the generated source and added a conditional to let different users select depending on their roles. General members get to create Folders, Links and Favorites while Staff members can create the rest. The bit that will interest you the most is: Thanks to Tres and Nick for their help on finding out how to tell if somebody has a certain role. WARNING: This method does NOT use the rights mechanism and therefore is insecure in that, ie., normal members could still create documents although they will have to know zope, dtml, etc. Anyway, hope it helps, ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From tseaver@digicool.com Sat Apr 14 05:30:40 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 14 Apr 2001 00:30:40 -0400 Subject: [Zope-CMF] Content types & user roles question References: <20010413182328.33475.qmail@web10101.mail.yahoo.com> Message-ID: <3AD7D270.833585AB@novacoxmail.com> Adrian Madrid wrote: > > I've been wondering that myself and so far I the only > thing I have come up with is a shameless hack that > follows. FactoryTypeInformation type objects (FTIs) use the permissions of the factory method to screen unauthorized users from creating content of their type. For instance, if you have a product, CMFFoo, which exposes a method 'addFoo', and that method is protected by the permission, 'Add Foos', then only users who have the 'Add Foos' permission will be able to create Foo instance by calling 'createInstance' on the FTI. ScriptableTypeInformation type objects (STIs) have an explicit permission associated with them; users who don't have that permission can't invoke 'createInstance' on them. > In skins/generic you'll find the method > folder_factories that is called when a member clicks > on New in their desktops. I have taken part of the > generated source and added a conditional to let > different users select depending on their roles. > General members get to create Folders, Links and > Favorites while Staff members can create the rest. The > bit that will interest you the most is: > > _.SecurityGetUser().getRolesInContext(Portal)"> > > Thanks to Tres and Nick for their help on finding out > how to tell if somebody has a certain role. > > WARNING: This method does NOT use the rights mechanism > and therefore is insecure in that, ie., normal members > could still create documents although they will have > to know zope, dtml, etc. > > Anyway, hope it helps, Hope that clears up the misunderstanding, Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From augusto@artlover.com Sat Apr 14 21:43:30 2001 From: augusto@artlover.com (Ausum) Date: Sat, 14 Apr 2001 15:43:30 -0500 Subject: [Zope-CMF] How to place CMF at the root? Message-ID: <001a01c0c523$90a60320$053725c8@produccion> I have a working site and I would like to include CMF's features like Membership and MyFolder stuff, with as least modifications as possible to my previous code. Is it possible to install a CMF site at the root, (not as a folder object, but as a real root) so that it can use regular, previous content, therefore allowing it to integrate seamlessly? Thanks in advance, Ausum From azrael@solution.de Sun Apr 15 08:28:43 2001 From: azrael@solution.de (Andreas Lindenblatt) Date: Sun, 15 Apr 2001 09:28:43 +0200 Subject: [Zope-CMF] portal poll: AttributeError Message-ID: <3AD94DAB.4D935C5D@solution.de> Hi List, hi Dave, after playing a lot with the former early PTK (and giving up somewhere in time cause I couldn't keep up with the changes :)) I wanted to give the CMF a new chance. Works great out of the box - and the skins really rock! (fresh install of Zope 2.3.1, CMF1.0-Tarball, Python 1.5.2 on Mandrake7.2) For better understanding what makes the CMF tick I tried to get the portal poll up and running. I followed Dave's fine tutorial, and there were just two steps which could not be completed like stated in the tutorial: - the properties of the propertysheet with type of int required a value (not "", I used '0') - while adding the ZClass there's no CMF:PortalContent in the Base Classes, I used CMFCore:PortalContent Testing the portal poll was not successfull. After I press [Add] at 'Add Content' -> Poll -> ID:TestPoll, I get: Error Type: AttributeError Error Value: PollClassProduct --- cut --- Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, in publish_module File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, in publish File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, in publish File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in mapply (Object: invokeFactory) File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, in call_object (Object: invokeFactory) File /var/zope/Products/CMFCore/PortalFolder.py, line 368, in invokeFactory (Object: Traversable) File /var/zope/Products/CMFCore/TypesTool.py, line 714, in constructContent (Object: Traversable) File /var/zope/Products/CMFCore/TypesTool.py, line 469, in constructInstance (Object: ElementWithAttributes) File /var/zope/Products/CMFCore/TypesTool.py, line 440, in _getFactoryMethod (Object: ElementWithAttributes) File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 99, in __getitem__ File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 102, in __bobo_traverse__ File /usr/share/zope/lib/python/App/Product.py, line 135, in _product (Object: Traversable) AttributeError: (see above) --- cut --- I'm fairly sure I have a fundamental typo somewhere, but I can't figure out what's wrong. Before I recheck things for a fourth time... maybe someone with more experience has an idea where to look for this 'AttributeEror'? Thanks in advance! -- ---- BYE Andreas ----- [The best way to predict the future is to invent it - Alan Kay] From blomert@hagen.de Sun Apr 15 17:04:34 2001 From: blomert@hagen.de (Peter Blomert) Date: Sun, 15 Apr 2001 18:04:34 +0200 Subject: [Zope-CMF] german translation of CMF Message-ID: <3AD9C62D.24110EBD@hagen.de> Hi, i try to translate CMF 1.0 to german language. So far it worked rather well, but i have still to problems: 1. content-types. There is the page which comes up when you add new content. I managed to translate this page by editing the content-types in an existing CMF-Site, but how to translate these lines in CMF itself? 2. sidebar. I didnt success to translate the sidebar, i have no idea how to do that. As you probably see, i am a total newbie to CMF (and to Zope, and to Python ...) If you could help me nevertheless :-) cu online Peter Blomert blomert@hagen.de From blomert@hagen.de Sun Apr 15 21:42:12 2001 From: blomert@hagen.de (Peter Blomert) Date: Sun, 15 Apr 2001 22:42:12 +0200 Subject: [Zope-CMF] german translation of CMF In-Reply-To: <3AD9C62D.24110EBD@hagen.de> References: <3AD9C62D.24110EBD@hagen.de> Message-ID: In between i have managed to translate most parts of the sidebar via changing DefaultWorkflow.py and Portal.py but one Problem remains: if i change the name of the allowed action for a new object (for example an new image-object) as renaming the action 'Edit' to 'Bearbeiten' i get an error-message because the action depends on the name. On the other hand: The sidebar shows the name of the allowed actions. so, what to do? >cu online >Peter Blomert >blomert@hagen.de From dieter@handshake.de Sun Apr 15 21:53:33 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 15 Apr 2001 22:53:33 +0200 (CEST) Subject: [Zope-CMF] How to place CMF at the root? In-Reply-To: <827723723@toto.iv> Message-ID: <15066.2637.420338.246852@lindm.dm> Ausum writes: > I have a working site and I would like to include CMF's features like Membership > and MyFolder stuff, with as least modifications as possible to my previous code. > Is it possible to install a CMF site at the root, (not as a folder object, but > as a real root) so that it can use regular, previous content, therefore allowing > it to integrate seamlessly? You can use a SiteAccess AccessRule in the root folder to forward any request to a subfolder. You will need to be a bit careful, as otherwise standard Zope objects may no longer be accessible through the web, e.g. "Control_Panel". Dieter From augusto@artlover.com Mon Apr 16 14:25:35 2001 From: augusto@artlover.com (Ausum) Date: Mon, 16 Apr 2001 08:25:35 -0500 Subject: [Zope-CMF] How to place CMF at the root? References: <15066.2637.420338.246852@lindm.dm> Message-ID: <001f01c0c678$b87626e0$053725c8@produccion> Thanks Dieter, your answer leads me to a short question: Is it the way cmf.zope.org is located at the root? It would be great to have a version of Zope "CMF-enabled", meaning that CMF wouldn't be just a product of Zope, but a part of its core features. This would let all previous users of Zope who run it as a content manager, to transport all their previous content with a simple import-export operation. The necesary changes would be easier from that point. Regards, Ausum ----- Mensaje original ----- De: "Dieter Maurer" Para: "Ausum" CC: Enviado: Domingo, 15 de Abril de 2001 03:53 p.m. Asunto: Re: [Zope-CMF] How to place CMF at the root? > Ausum writes: > > I have a working site and I would like to include CMF's features like Membership > > and MyFolder stuff, with as least modifications as possible to my previous code. > > Is it possible to install a CMF site at the root, (not as a folder object, but > > as a real root) so that it can use regular, previous content, therefore allowing > > it to integrate seamlessly? > You can use a SiteAccess AccessRule in the root folder to > forward any request to a subfolder. > You will need to be a bit careful, as otherwise standard Zope > objects may no longer be accessible through the web, > e.g. "Control_Panel". > > Dieter > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From jeff@thecolemans.ws Mon Apr 16 14:57:39 2001 From: jeff@thecolemans.ws (Jeff) Date: Mon, 16 Apr 2001 08:57:39 -0500 Subject: [Zope-CMF] portal poll: AttributeError References: <3AD94DAB.4D935C5D@solution.de> Message-ID: <01e801c0c67d$45888380$1001a8c0@jeff2k> I'm not sure if this is will fix the problem, but I did find while working through the tutorial that the 'Meta_Type' in the ZClass is set to 'PortalPollType' while in the portal it is 'PollClassType'. I changed it in the portal and every thing worked great. Thanks for the updated tutorial, it is really helping me get a handle on Zope and the CMF (as a newbie I need all the help I can get ;-} > Hi List, hi Dave, > > after playing a lot with the former early PTK (and giving up somewhere > in time cause I couldn't keep up with the changes :)) I wanted to give > the CMF a new chance. > > Works great out of the box - and the skins really rock! > (fresh install of Zope 2.3.1, CMF1.0-Tarball, Python 1.5.2 on > Mandrake7.2) > > For better understanding what makes the CMF tick I tried to get the > portal poll up and running. > I followed Dave's fine tutorial, and there were just two steps which > could not be completed like stated in the tutorial: > - the properties of the propertysheet with type of int required a value > (not "", I used '0') > - while adding the ZClass there's no CMF:PortalContent in the Base > Classes, I used CMFCore:PortalContent > > Testing the portal poll was not successfull. After I press [Add] at 'Add > Content' -> Poll -> ID:TestPoll, I get: > > Error Type: AttributeError > Error Value: PollClassProduct > > --- cut --- > Traceback (innermost last): > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, > in publish_module > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, > in publish > File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, > in publish > File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, > in mapply > (Object: invokeFactory) > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, > in call_object > (Object: invokeFactory) > File /var/zope/Products/CMFCore/PortalFolder.py, line 368, in > invokeFactory > (Object: Traversable) > File /var/zope/Products/CMFCore/TypesTool.py, line 714, in > constructContent > (Object: Traversable) > File /var/zope/Products/CMFCore/TypesTool.py, line 469, in > constructInstance > (Object: ElementWithAttributes) > File /var/zope/Products/CMFCore/TypesTool.py, line 440, in > _getFactoryMethod > (Object: ElementWithAttributes) > File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 99, in > __getitem__ > File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 102, in > __bobo_traverse__ > File /usr/share/zope/lib/python/App/Product.py, line 135, in _product > (Object: Traversable) > AttributeError: (see above) > --- cut --- > > I'm fairly sure I have a fundamental typo somewhere, but I can't figure > out what's wrong. Before I recheck things for a fourth time... maybe > someone with more experience has an idea where to look for this > 'AttributeEror'? > > Thanks in advance! From davew@digicool.com Mon Apr 16 15:46:18 2001 From: davew@digicool.com (Dave Woolston) Date: Mon, 16 Apr 2001 10:46:18 -0400 Subject: [Zope-CMF] Re: portal poll: AttributeError Message-ID: <016101c0c683$fffa67f0$1101000a@D92WIL> Hello Andreas, Andreas Lindenblatt wrote: > - the properties of the propertysheet with type of int required a value > (not "", I used '0') > - while adding the ZClass there's no CMF:PortalContent in the Base > Classes, I used CMFCore:PortalContent > Thanks - I updated the Tutorial with both those corrections > Testing the portal poll was not successfull. After I press [Add] at 'Add > Content' -> Poll -> ID:TestPoll, I get: > > Error Type: AttributeError > Error Value: PollClassProduct > > --- cut --- > Traceback (innermost last): > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223, > in publish_module > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, > in publish > File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, > in publish > File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, > in mapply > (Object: invokeFactory) > File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, > in call_object > (Object: invokeFactory) > File /var/zope/Products/CMFCore/PortalFolder.py, line 368, in > invokeFactory > (Object: Traversable) > File /var/zope/Products/CMFCore/TypesTool.py, line 714, in > constructContent > (Object: Traversable) > File /var/zope/Products/CMFCore/TypesTool.py, line 469, in > constructInstance > (Object: ElementWithAttributes) > File /var/zope/Products/CMFCore/TypesTool.py, line 440, in > _getFactoryMethod > (Object: ElementWithAttributes) > File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 99, in > __getitem__ > File /usr/share/zope/lib/python/App/FactoryDispatcher.py, line 102, in > __bobo_traverse__ > File /usr/share/zope/lib/python/App/Product.py, line 135, in _product > (Object: Traversable) > AttributeError: (see above) > --- cut --- > > I'm fairly sure I have a fundamental typo somewhere, but I can't figure > out what's wrong. Before I recheck things for a fourth time... maybe > someone with more experience has an idea where to look for this > 'AttributeEror'? I can't tell exactly where the error is, but Attribute Error means that the machinery claims that 'PollClassProduct' is an unknown attribute. ...Sure enough, there is a typo in the Tutorial - when you reference your product through the types tool, it needs to know the product name. I have updated the Tutorial, you should just have to change that reference on the properties tab of the 'poll' type in the portal_types tool. Thanks for the feedback, Dave ================================= Dave Woolston davew@digicool.com Digital Creations www.digicool.com (716) 262-4715 From seb@jamkit.com Mon Apr 16 16:17:44 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 16 Apr 2001 16:17:44 +0100 Subject: [Zope-CMF] PortalContent permissions Message-ID: <20010416161742.A1919@lenin.jamkit.com> When adding new actions to a PortalContent object, I'm finding that its first action is returned and displayed, regardless of whether or not the user has the permission specified with the action. It seems to me that the _index_html provided for PortalContent is not checking the permissions specified in the object's TypeInfo: ti = self.getTypeInfo() if ti is not None: path = ti.getActionById('view', None) if path is not None: view = self.restrictedTraverse(path) return view Should getActionById be doing the security checks? I can't see that the TypesTool could actually change the permissions mapping on the Skin in question. Or have I missed something obvious? And as a bonus question, what does the following, from PortalContent, acheive? index_html = ComputedAttribute(_index_html, 1) (I've looked through mailing lists for clues, but although there's some mention of it in regard to acquisition, I'm still in the dark). seb -- From shane@digicool.com Mon Apr 16 17:20:46 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 16 Apr 2001 12:20:46 -0400 Subject: [Zope-CMF] PortalContent permissions References: <20010416161742.A1919@lenin.jamkit.com> Message-ID: <3ADB1BDE.38EA325E@digicool.com> seb bacon wrote: > > When adding new actions to a PortalContent object, I'm finding that > its first action is returned and displayed, regardless of whether or > not the user has the permission specified with the action. > > It seems to me that the _index_html provided for PortalContent is > not checking the permissions specified in the object's TypeInfo: You're right, it's not checking the permission and it should. (This isn't any kind of security problem, though, since it just means that users might be shown an action they can't actually access.) What do you think it should do? I was thinking it should first look for a "view" action, but if the user doesn't have access to it, it should look through the options in order and choose the first action the user is allowed to access. > ti = self.getTypeInfo() > if ti is not None: > path = ti.getActionById('view', None) > if path is not None: > view = self.restrictedTraverse(path) > return view > > Should getActionById be doing the security checks? I can't see that > the TypesTool could actually change the permissions mapping on the > Skin in question. Or have I missed something obvious? restrictedTraverse() prevents the user from accessing something they shouldn't. But _index_html should also prevent the interface from showing the user a page they can't fully access. > And as a bonus question, what does the following, from PortalContent, > acheive? > > index_html = ComputedAttribute(_index_html, 1) > > (I've looked through mailing lists for clues, but although > there's some mention of it in regard to acquisition, I'm still in the > dark). It exposes _index_html as a computed attribute named index_html, with the bonus that the "self" passed to _index_html is an acquisition wrapper (that's what the "1" does.) This is necessary to make skins work. Shane From jens@digicool.com Mon Apr 16 18:07:55 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Mon, 16 Apr 2001 13:07:55 -0400 Subject: [Zope-CMF] How to place CMF at the root? In-Reply-To: <001f01c0c678$b87626e0$053725c8@produccion> Message-ID: cmf.zope.org is actually not at the root. it uses the Virtual Host Monster and Apache rewrite rules to achieve the illusion that it is at the root if i remember correctly. jens On 4/16/01 9:25, "Ausum" wrote: > Thanks Dieter, your answer leads me to a short question: Is it the way > cmf.zope.org is located at the root? > It would be great to have a version of Zope "CMF-enabled", meaning that CMF > wouldn't be just a product of Zope, but a part of its core features. This > would > let all previous users of Zope who run it as a content manager, to transport > all > their previous content with a simple import-export operation. The necesary > changes would be easier from that point. > > > Regards, > > Ausum > From kent@goathill.org Mon Apr 16 19:52:58 2001 From: kent@goathill.org (Kent Polk) Date: 16 Apr 2001 18:52:58 GMT Subject: [Zope-CMF] Composite Content Message-ID: <987447178.629890@fezzik.endicor.com> Has there been any further discussion on the topic of Composite Content? http://cmf.zope.org/rqmts/proposals/composite_content I'm ready to discuss. :^) Where would Composite objects reside? (composed of items created by different people) Any more thoughts on a CMF Ticket Tracker and what types of objects would be needed to support it? From azrael@solution.de Tue Apr 17 00:31:26 2001 From: azrael@solution.de (Andreas Lindenblatt) Date: Tue, 17 Apr 2001 01:31:26 +0200 Subject: [Zope-CMF] Re: portal poll: AttributeError References: <016101c0c683$fffa67f0$1101000a@D92WIL> Message-ID: <3ADB80CE.720180AA@solution.de> Hi Dave, > Thanks - I updated the Tutorial with both those corrections ReThanks :) for the great tutorial! > have updated the Tutorial, you should just have to change that reference > on the properties tab of the 'poll' type in the portal_types tool. Jupp - that did the job. Like Jeff posted already - it helps a lot at understanding how the CMF is working :). -- ---- BYE Andreas From seb@jamkit.com Tue Apr 17 10:26:22 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 17 Apr 2001 10:26:22 +0100 Subject: [Zope-CMF] Composite Content In-Reply-To: <987447178.629890@fezzik.endicor.com>; from kent@tiamat.goathill.org on Mon, Apr 16, 2001 at 06:52:58PM +0000 References: <987447178.629890@fezzik.endicor.com> Message-ID: <20010417102621.C3026@lenin.jamkit.com> * Kent Polk [010416 22:30]: > Has there been any further discussion on the topic of Composite > Content? > http://cmf.zope.org/rqmts/proposals/composite_content > > I'm ready to discuss. :^) > > Where would Composite objects reside? (composed of items created > by different people) I've been hacking together something along these lines, although it *is* a hack. For my application, I need not only a CompositeContent Type, but also special CompositeComponent Types too. This is because Components participate in a Portal only through the CompositeContent which they compose. A CompositeContent must: - return a SearchableText which is made up of its components - have slots which are configurable TTW CompositeComponents: - must participate in the workflow of their container, rather than their own - must participle in catalogs only through their containers - have no need of extensive (i.e. DublinCore) metadata, since this, too, is a property of the container. Would these requirements apply more generally? I think they would. I've implemented a CompositeContent as a Folderish PortalContent object, and I've implemented a Document-like CompositeComponent, and it all works quite well in a prototype kind of way. However, I've not abstracted the functionality into a helper class which can be implemented ad hoc TTW. seb -- From gitte@mmmanager.org Tue Apr 17 10:39:57 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 17 Apr 2001 11:39:57 +0200 Subject: [Zope-CMF] Patch for error in reconfiguation of CMF Site Message-ID: <987500431.1322.1.camel@squidbitch> Hello, I've just searched the mailing list archive for help on an error I recieve every time I try to reconfigure my CMF Site. Well I am not the only one with this problem and some guys reffered to a patch - but how do I get this ? I am a newbiw to this sort of things so please bear with me. Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Tue Apr 17 11:24:34 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 17 Apr 2001 12:24:34 +0200 Subject: [Zope-CMF] Patch for error in reconfiguation of CMF Site In-Reply-To: <987500431.1322.1.camel@squidbitch> References: <987500431.1322.1.camel@squidbitch> Message-ID: <987503108.1322.2.camel@squidbitch> On 17 Apr 2001 11:39:57 +0200, Gitte Wange wrote: > Hello, > I've just searched the mailing list archive for help on an error I > recieve every time I try to reconfigure my CMF Site. > > Well I am not the only one with this problem and some guys reffered to a > patch - but how do I get this ? > I am a newbiw to this sort of things so please bear with me. Okay I found the patch in the CVS area ... I downloaded the file and overwrited the existing one I had ... But know I only get a lot of debug information whenever I try to reconfigure my portal - anyone who knows how to solve this ? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From lucas.hofman@oslo.pgs.com Tue Apr 17 13:34:03 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Tue, 17 Apr 2001 14:34:03 +0200 Subject: [Zope-CMF] migrating PTK -> CMF Message-ID: <0104179875.AA987510859@lysntsmail.oslo.pgs.com> I am finished with the construction of an updated intranet site based on CMF 1.0. The only thing remaining is the migration of the data from a Zope 2.1.6 / PTK 0.7.1 site. And I am stuck. Both Andrew's How-To and Tres migrate.py script presume access to both a PTK portal and a CMF site in the same data.fs database. So far I have not succeeded in achieving this. What I have done is the following: Start with a Zope 2.1.6/PTK 0.7.1 setup (including import of Demoportal, Wizards and ZCallable). Create a portal, join a user and create some content. Install on another machine a Zope 2.3.0 (with Patch) / CMF 1.0. Works fine. Now copy data.fs from the PTK0.7 instance over the data.fs from the CMF 1.0 instance. In the Product directory I need to make links to LoginManager, PTKBase and PTKDemo to be able to start without errors. Opening the database works ok, and I can create a CMF default instance. However, trying (with the ZMI) to open the PTK instance produces an authorization box (I was logged in as admin). Pressing cancel results in the following error: Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to view this object. Traceback (innermost last): File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_workspace) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_workspace) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/Management.py, line 148, in manage_workspace (Object: DemoPortalBase) Unauthorized: (see above) I think this has something to do with either the change in security policy between Zope 2.1.6 and 2.3.0 or with the LoginManager. When trying to look at the security tab in the root folder I get: Error Type: TypeError Error Value: string member test needs char left operand 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. Traceback (innermost last): File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 258, in manage_access (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/special_dtml.py, line 236, in _exec (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _.namespace(valid_roles=valid_roles())) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 644, in renderwob (Object: permission_settings) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 182, in permission_settings (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 177, in TypeError: (see above) The security tab works fine in places where the old PTK instance is not 'seen'. How is this supposed to work? And how was the old dogbowl converted to CMF 1.0? Any help is greatly appreciated. Being finished with a new application but not able to start using it because the data is locked up in an old version is difficult to explain :-( Regards, Lucas -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From shane@digicool.com Tue Apr 17 14:31:37 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 17 Apr 2001 09:31:37 -0400 (EDT) Subject: [Zope-CMF] PortalContent permissions In-Reply-To: <20010417094419.B3026@lenin.jamkit.com> Message-ID: On Tue, 17 Apr 2001, seb bacon wrote: > Either it's not working the way it should, or I'm misunderstanding > something. If I create a 'foo' method and add it as the first action > on a Type, with a permission mapped to something Manager-only, and > publish it, I still see the 'foo' as an anonymous user. > > I can't see any code in the TypesTool which provides for > mapping the permission in the 'actions' structure to actual > permissions. How is this meant to work? The permissions you set up in TypesTool are only meant to be "hints": if the user doesn't have the specified permission, they won't be shown the links to get to the view. The views themselves are all in skins, so they can't be (and shouldn't be) protected directly. Presumably somewhere else the user is actually restricted from accessing or using the information provided on the page. For example, the editNewsItem.dtml page might be perfectly safe for anyone to view, but if anonymous users clicked the "change" button, they would be denied access. With the permission set in the types tool, they won't be shown the link to editNewsItem. It's a UI feature, not a security feature. > > > What do you think it should do? I was thinking it should first look for > > a "view" action, but if the user doesn't have access to it, it should > > look through the options in order and choose the first action the user > > is allowed to access. > > I can't think of any benefits to having a default view called 'view' - > it might be better to rely purely on the rank of the action, rather > than hardcoding in an exception to the rule, I think. It's not hardcoded since the ID of an action is not linked to the name of the action as displayed to the user. An action might have an ID "view" but a name "Edit". What *is* hardcoded is the "view" method of all portal content and the fact that it is exposed in URL's. But we could find no way around that. > > > > And as a bonus question, what does the following, from PortalContent, > > > acheive? > > > > > > index_html = ComputedAttribute(_index_html, 1) > > > > It exposes _index_html as a computed attribute named index_html, with > > the bonus that the "self" passed to _index_html is an acquisition > > wrapper (that's what the "1" does.) This is necessary to make skins > > work. > > Thanks for the explanation, but this remains voodoo, as I have not > acheived the requisite level of ExtensionClass or Acquisition nirvana > ;) At the risk of being off-topic, but perhaps to the benefit of > others, what is a computed attribute? Or another way of putting it, > why would exposing index_html as a normal method not work? Computed attributes let you call a method automatically when a certain attribute is accessed. It was done this way to avoid duplicating some of the code in ZPublisher. When ZPublisher finds a method, it looks at the method's signature and tries to fill in all arguments using the REQUEST. If PortalContent.index_html were a method, we'd have to put code in PortalContent for looking at the skinned method's signature and filling in arguments, again from the REQUEST. Instead, as it is now when ZPublisher asks for the index_html attribute it actually gets a skin object and looks at its signature. It's much cleaner this way. Shane From lucas.hofman@oslo.pgs.com Tue Apr 17 13:03:34 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Tue, 17 Apr 2001 14:03:34 +0200 Subject: [Zope-CMF] migrating PTK -> CMF Message-ID: <0104179875.AA987509032@lysntsmail.oslo.pgs.com> I am finished with the construction of an updated intranet site based on CMF 1.0. The only thing remaining is the migration of the data from a Zope 2.1.6 / PTK 0.7.1 site. And I am stuck. Both Andrew's How-To and Tres migrate.py script presume access to both a PTK portal and a CMF site in the same data.fs database. So far I have not succeeded in achieving this. What I have done is the following: Start with a Zope 2.1.6/PTK 0.7.1 setup (including import of Demoportal, Wizards and ZCallable). Create a portal, join a user and create some content. Install on another machine a Zope 2.3.0 (with Patch) / CMF 1.0. Works fine. Now copy data.fs from the PTK0.7 instance over the data.fs from the CMF 1.0 instance. In the Product directory I need to make links to LoginManager, PTKBase and PTKDemo to be able to start without errors. Opening the database works ok, and I can create a CMF default instance. However, trying (with the ZMI) to open the PTK instance produces an authorization box (I was logged in as admin). Pressing cancel results in the following error: Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to view this object. Traceback (innermost last): File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_workspace) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_workspace) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/Management.py, line 148, in manage_workspace (Object: DemoPortalBase) Unauthorized: (see above) I think this has something to do with either the change in security policy between Zope 2.1.6 and 2.3.0 or with the LoginManager. When trying to look at the security tab in the root folder I get: Error Type: TypeError Error Value: string member test needs char left operand 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. Traceback (innermost last): File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 258, in manage_access (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/special_dtml.py, line 236, in _exec (Object: _normal_manage_access) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _.namespace(valid_roles=valid_roles())) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 644, in renderwob (Object: permission_settings) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 182, in permission_settings (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line 177, in TypeError: (see above) The security tab works fine in places where the old PTK instance is not 'seen'. How is this supposed to work? And how was the old dogbowl converted to CMF 1.0? Any help is greatly appreciated. Being finished with a new application but not able to start using it because the data is locked up in an old version is difficult to explain :-( Regards, Lucas -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From gitte@mmmanager.org Tue Apr 17 15:53:18 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 17 Apr 2001 16:53:18 +0200 Subject: [Zope-CMF] Real newbie question Message-ID: <987519239.1043.0.camel@squidbitch> Hello, I have just earlier today installed CMF and is trying hard to find out how to set up my site in CMF. Now I have this website that I will "port" to CMF but .... Isn't there any how-to's/demo sites on CMF ? The documentation I found on cmf.zope.org isn't much. Just a simple thing like adding a link to the menu seems very difficult. Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From seb@jamkit.com Tue Apr 17 16:27:37 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 17 Apr 2001 16:27:37 +0100 Subject: [Zope-CMF] PortalContent permissions In-Reply-To: ; from shane@digicool.com on Tue, Apr 17, 2001 at 09:31:37AM -0400 References: <20010417094419.B3026@lenin.jamkit.com> Message-ID: <20010417162735.B3235@lenin.jamkit.com> * Shane Hathaway [010417 15:40]: > On Tue, 17 Apr 2001, seb bacon wrote: > > > Either it's not working the way it should, or I'm misunderstanding > > something. If I create a 'foo' method and add it as the first action > > on a Type, with a permission mapped to something Manager-only, and > > publish it, I still see the 'foo' as an anonymous user. > > > > I can't see any code in the TypesTool which provides for > > mapping the permission in the 'actions' structure to actual > > permissions. How is this meant to work? > > The permissions you set up in TypesTool are only meant to be "hints": if > the user doesn't have the specified permission, they won't be shown the > links to get to the view. The views themselves are all in skins, so they > can't be (and shouldn't be) protected directly. Presumably somewhere else > the user is actually restricted from accessing or using the information > provided on the page. OK, that makes sense: the security is applied at the functional rather than display level. However, it still seems inconsistent that the ActionsTool filters out actions for which the user does not have permission, yet the TypesTool ignores this information. That's what you're proposing to change, right? > > > > > What do you think it should do? I was thinking it should first look for > > > a "view" action, but if the user doesn't have access to it, it should > > > look through the options in order and choose the first action the user > > > is allowed to access. > > > > I can't think of any benefits to having a default view called 'view' - > > it might be better to rely purely on the rank of the action, rather > > than hardcoding in an exception to the rule, I think. > > What *is* hardcoded is the "view" method of all portal > content and the fact that it is exposed in URL's. But we could find no > way around that. > I'm not sure I follow - I can't see where 'view' is hardcoded other than in attributes such as: view = index_html # Necessary for catalog searches. ...where index_html is computed as needed anyway. Why can't 'view' just be aliased to whatever the first action filtered by permission is, as it would be in this case? > > > > > > And as a bonus question, what does the following, from PortalContent, > > > > acheive? > > > > > > > > index_html = ComputedAttribute(_index_html, 1) > > > Thanks - elucidation much appreciated :) seb From blomert@hagen.de Tue Apr 17 16:00:10 2001 From: blomert@hagen.de (Peter Blomert) Date: Tue, 17 Apr 2001 17:00:10 +0200 Subject: [Zope-CMF] Patch for error in reconfiguation of CMF Site In-Reply-To: <987503108.1322.2.camel@squidbitch> References: <987500431.1322.1.camel@squidbitch> <987503108.1322.2.camel@squidbitch> Message-ID: Hi, i get the same Error every time. Where did you found the patch exactly? By the way, changing the configuration via ZMI works always fine. When doing it in CMF i always get the error "Integer.key expected" or something like that. Help needed! cu online Peter Blomert Am 12:24 Uhr +0200 17.04.2001, schrieb Gitte Wange : >On 17 Apr 2001 11:39:57 +0200, Gitte Wange wrote: >> Hello, >> I've just searched the mailing list archive for help on an error I >> recieve every time I try to reconfigure my CMF Site. >> >> Well I am not the only one with this problem and some guys reffered to a >> patch - but how do I get this ? >> I am a newbiw to this sort of things so please bear with me. > >Okay I found the patch in the CVS area ... >I downloaded the file and overwrited the existing one I had ... > >But know I only get a lot of debug information whenever I try to >reconfigure my portal - anyone who knows how to solve this ? > >Regards, >-- >************************ >Gitte Wange Jensen From gitte@mmmanager.org Tue Apr 17 16:07:28 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 17 Apr 2001 17:07:28 +0200 Subject: [Zope-CMF] Patch for error in reconfiguation of CMF Site In-Reply-To: References: <987500431.1322.1.camel@squidbitch> <987503108.1322.2.camel@squidbitch> Message-ID: <987520096.1044.2.camel@squidbitch> On 17 Apr 2001 17:00:10 +0200, Peter Blomert wrote: Hi, If you go to the zope.org website and click on the Resources tab, then you will find a link to the CVS Access (in the menu on the rigth) In here you should go to the web-based CVS interface. The path to the patch is: CMF/CMFDefault/skins/control/reconfig.dhtml But you don't get much out of upgrading this file .. there is just added some debug information - but you still can't configure your CMF site from here. Hope it helps ... Regards, Gitte Wange > Hi, > i get the same Error every time. Where did you found the patch exactly? > By the way, changing the configuration via ZMI works always fine. When doing it in CMF i always get the error "Integer.key expected" or something like that. > > Help needed! > > cu online > Peter Blomert > > > Am 12:24 Uhr +0200 17.04.2001, schrieb Gitte Wange : > >On 17 Apr 2001 11:39:57 +0200, Gitte Wange wrote: > >> Hello, > >> I've just searched the mailing list archive for help on an error I > >> recieve every time I try to reconfigure my CMF Site. > >> > >> Well I am not the only one with this problem and some guys reffered to a > >> patch - but how do I get this ? > >> I am a newbiw to this sort of things so please bear with me. > > > >Okay I found the patch in the CVS area ... > >I downloaded the file and overwrited the existing one I had ... > > > >But know I only get a lot of debug information whenever I try to > >reconfigure my portal - anyone who knows how to solve this ? > > > >Regards, > >-- > >************************ > >Gitte Wange Jensen > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From seb@jamkit.com Tue Apr 17 16:43:24 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 17 Apr 2001 16:43:24 +0100 Subject: [Zope-CMF] Real newbie question In-Reply-To: <987519239.1043.0.camel@squidbitch>; from gitte@mmmanager.org on Tue, Apr 17, 2001 at 04:53:18PM +0200 References: <987519239.1043.0.camel@squidbitch> Message-ID: <20010417164321.F3235@lenin.jamkit.com> The documentation is a little sparse still. You'll have to expect to dive in at the python level, learn more about Zope internals, etc. Remember that the CMF portal supplied with the CMF is just a demonstration and you'll likely have to customize it significantly to fit your requirements. To do this, you'll probably have to write some Products, subclass Tools from the CMFDefault, etc. I suggest getting your head round how the default workflow works first - create an account, create some content, then submit it for review. Then login again as a Manager and approve the content. The presentation logic for the CMFDefault can be found in the skins directory. Look there for examples of how to display various types of content according to your needs. You'll see how the catalog is used extensively to return objects based on their visibility, which is in turn controlled by a workflow. Once you've seen how the presentation logic can be controlled, have a go at creating a new content type by following the PortalPoll product discussed in this list recently. Good luck... seb * Gitte Wange [010417 16:57]: > Hello, > > I have just earlier today installed CMF and is trying hard to find out > how to set up my site in CMF. > > Now I have this website that I will "port" to CMF but .... > Isn't there any how-to's/demo sites on CMF ? > The documentation I found on cmf.zope.org isn't much. > > Just a simple thing like adding a link to the menu seems very difficult. > > Regards, -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From blomert@hagen.de Tue Apr 17 16:14:24 2001 From: blomert@hagen.de (Peter Blomert) Date: Tue, 17 Apr 2001 17:14:24 +0200 Subject: [Zope-CMF] Real newbie question In-Reply-To: <987519239.1043.0.camel@squidbitch> References: <987519239.1043.0.camel@squidbitch> Message-ID: Hi, you can do the changes via skinning the "portal_skins": go to the ZMI, go to your CMF-Site, you will see the content of this folder. Go to portal_skins, you will see some folders, one of them named "generic". Go to "generic". You find many dtml-methods. The most parts of the sidebar are managed via "action_box", the top-bar is managed via "standard_top_bar". Okay: open (par ex.) "standard_top_bar", click the button "customize" and you will get a copy of that method in the folder custom in "porta_skins". This copy you now can edit like usual in Zope. Okay. Done that your new Menu should work. If you go back to the folder "portal_skins" you can click properties and you will see in which sequence CMF is searching the folders for a needed method (from left to right). if you want, you can create a totally new folder and put your methods in. Write the name of your folder to the left and that's it. To learn more about skins, take a look at: http://cmf.zope.org/doc/devel/writing_skins/view cu online Peter Blomert Am 16:53 Uhr +0200 17.04.2001, schrieb Gitte Wange : >Hello, > >I have just earlier today installed CMF and is trying hard to find out >how to set up my site in CMF. > >Now I have this website that I will "port" to CMF but .... >Isn't there any how-to's/demo sites on CMF ? >The documentation I found on cmf.zope.org isn't much. > >Just a simple thing like adding a link to the menu seems very difficult. > >Regards, >-- >************************ >Gitte Wange Jensen From tseaver@digicool.com Tue Apr 17 16:40:05 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 17 Apr 2001 11:40:05 -0400 (EDT) Subject: [Zope-CMF] Re: migrating PTK -> CMF In-Reply-To: <0104179875.AA987510859@lysntsmail.oslo.pgs.com> Message-ID: On Tue, 17 Apr 2001, Lucas Hofman wrote: > I am finished with the construction of an updated intranet site > based on CMF 1.0. The only thing remaining is the migration of > the data from a Zope 2.1.6 / PTK 0.7.1 site. And I am stuck. Ouch! > Both Andrew's How-To and Tres migrate.py script presume access > to both a PTK portal and a CMF site in the same data.fs > database. So far I have not succeeded in achieving this. What I > have done is the following: > > Start with a Zope 2.1.6/PTK 0.7.1 setup (including import of > Demoportal, Wizards and ZCallable). Create a portal, join a > user and create some content. > > Install on another machine a Zope 2.3.0 (with Patch) / CMF 1.0. > Works fine. Now copy data.fs from the PTK0.7 instance over the > data.fs from the CMF 1.0 instance. In the Product directory I > need to make links to LoginManager, PTKBase and PTKDemo to be > able to start without errors. > > Opening the database works ok, and I can create a CMF default > instance. However, trying (with the ZMI) to open the PTK > instance produces an authorization box (I was logged in as > admin). Pressing cancel results in the following error: > > > Zope Error > > Zope has encountered an error while publishing this resource. > > Unauthorized > > You are not authorized to view this object. > > Traceback (innermost last): > /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/Management.py, line 148, > in manage_workspace > (Object: DemoPortalBase) > Unauthorized: (see above) > > I think this has something to do with either the change in security > policy between Zope 2.1.6 and 2.3.0 or with the LoginManager. That error appears to indicate that the DemoPortalBase object (the "portal root") is returning the Wrong Thing when asked for its 'filtered_management_options'. > When trying to look at the security tab in the root folder I > get: > > Error Type: TypeError > Error Value: string member test needs char left operand > /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line > 182, in permission_settings > (Object: ApplicationDefaultPermissions) > File > /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line > 177, in > TypeError: (see above) > > The security tab works fine in places where the old PTK instance is not > 'seen'. > > How is this supposed to work? I'm looking at reproducing your problem right now; more later. > And how was the old dogbowl converted to CMF 1.0? The dogbowl was created under Zope 2.2.x, with a later version (0.9.1?) of the PTK. > Any help is greatly appreciated. Being finished with a new > application but not able to start using it because the data is > locked up in an old version is difficult to explain :-( Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From gitte@mmmanager.org Tue Apr 17 17:13:08 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 17 Apr 2001 18:13:08 +0200 Subject: [Zope-CMF] Real newbie question In-Reply-To: <20010417164321.F3235@lenin.jamkit.com> References: <987519239.1043.0.camel@squidbitch> <20010417164321.F3235@lenin.jamkit.com> Message-ID: <987524027.1044.3.camel@squidbitch> On 17 Apr 2001 16:43:24 +0100, seb bacon wrote: > The documentation is a little sparse still. You'll have to expect to > dive in at the python level, learn more about Zope > internals, etc. Remember that the CMF portal supplied with the CMF is > just a demonstration and you'll likely have to customize it > significantly to fit your requirements. To do this, you'll probably > have to write some Products, subclass Tools from the CMFDefault, etc. > > I suggest getting your head round how the default workflow works first > - create an account, create some content, then submit it for review. > Then login again as a Manager and approve the content. The presentation > logic for the CMFDefault can be found in the skins directory. Look > there for examples of how to display various types of content > according to your needs. You'll see how the catalog is used > extensively to return objects based on their visibility, which is in > turn controlled by a workflow. > > Once you've seen how the presentation logic can be controlled, have a > go at creating a new content type by following the PortalPoll product > discussed in this list recently. > > Good luck... > > seb So I have "surfed" around my CMF site ... not seing the bright light yet :-) I understand the Content Management part of it - you have some users that add contents and some admins that publish its ... But how do you add something to the menu for instance ? Now I also followed to PortalPoll product and I actually made it :-) I works - sort of. I can add a new PortalPoll product - but it doesn't show up in the folder. CMF looks fine on zope.org and on cmf.zope.org ... but here - it looks like s... :-) Gitte > > * Gitte Wange [010417 16:57]: > > Hello, > > > > I have just earlier today installed CMF and is trying hard to find out > > how to set up my site in CMF. > > > > Now I have this website that I will "port" to CMF but .... > > Isn't there any how-to's/demo sites on CMF ? > > The documentation I found on cmf.zope.org isn't much. > > > > Just a simple thing like adding a link to the menu seems very difficult. > > > > Regards, > > -- > > [] j a m k i t > > seb bacon > T: 020 7749 7218 > F: 020 7739 8683 > M: 07968 301 336 > W: www.jamkit.com From khine@bmpublications.co.uk Tue Apr 17 17:22:16 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Tue, 17 Apr 2001 17:22:16 +0100 Subject: [Zope-CMF] Skins dependent on the type of user Message-ID: Is it possible to access the same Portal, but be able to determine the type of skin that is being rendered dependant on the URL that the user has come from? For example, I would like to create four types of skins each of which will have different user properties, ie user one can only add News Items, where as user2 can only add document content and so on. Is this possible or is there a better way to achive it Thanks Norman ========================================= "Eternity is Time Time, eternity To see the two as opposite Is Man's Perversity" The Book of Angelus Silesius From seb@jamkit.com Tue Apr 17 17:54:12 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 17 Apr 2001 17:54:12 +0100 Subject: [Zope-CMF] Real newbie question In-Reply-To: <987524027.1044.3.camel@squidbitch>; from gitte@mmmanager.org on Tue, Apr 17, 2001 at 06:13:08PM +0200 References: <987519239.1043.0.camel@squidbitch> <20010417164321.F3235@lenin.jamkit.com> <987524027.1044.3.camel@squidbitch> Message-ID: <20010417175411.A6899@lenin.jamkit.com> * Gitte Wange [010417 18:14]: > > So I have "surfed" around my CMF site ... not seing the bright light yet > :-) > I understand the Content Management part of it - you have some users > that add contents and some admins that publish its ... > But how do you add something to the menu for instance ? Skins! Go to the skins/generic folder and look at how it's done in standard_top_bar, for example. Check out the skins tutorial. Skins are normal DTML Methods which are published dependent on users cookies, etc. > Now I also followed to PortalPoll product and I actually made it :-) > I works - sort of. I can add a new PortalPoll product - but it doesn't > show up in the folder. are you sure you don't have a filter set on your folder (at the bottom of the page)? > CMF looks fine on zope.org and on cmf.zope.org ... but here - it looks > like s... :-) you can also play with the stylesheet, which has been abstracted into stylesheet_properties. seb. From patrick@eahd.or.ug Tue Apr 17 17:58:16 2001 From: patrick@eahd.or.ug (Patrick) Date: Tue, 17 Apr 2001 19:58:16 +0300 (EAT) Subject: [Zope-CMF] Patch for error in reconfiguation of CMF Site In-Reply-To: <987503108.1322.2.camel@squidbitch> Message-ID: May some zopist chip in and help me because I think I'm getting something totally wrong here... :( I **THINK** that you are not supposed to overwrite the original file ... as in on a UN*X system, there is a programe called patch that essentially runs a 'diff' between the original and the patch and ASFAIK the patch just has lines that need to be changed ie something like patch [options] [originalfile[patchfile]] so I **THINK** that overwritting your original file might get rid of a line or more of code that is essential.... if you have a copy of the original file then I would suggest just changing the lines that differ from the patch and not just overwriting the file.. As I said, I am most probably wrong here... just that I applied the CMF patch using that method and I haven't had many errors ... only that I had to add a line (thanks to Dieter) import sys somewhere in the final file in the traceback and I also had to change all references to 'i' being called by syd or something like that in another trace back to 'id' (I can't remember whether that was UCASE or lcase...) Anyhow, it would help if we had the full traceback.... On 17 Apr 2001, Gitte Wange wrote: > On 17 Apr 2001 11:39:57 +0200, Gitte Wange wrote: > > Hello, > > I've just searched the mailing list archive for help on an error I > > recieve every time I try to reconfigure my CMF Site. > > > > Well I am not the only one with this problem and some guys reffered to a > > patch - but how do I get this ? > > I am a newbiw to this sort of things so please bear with me. > > Okay I found the patch in the CVS area ... > I downloaded the file and overwrited the existing one I had ... > > But know I only get a lot of debug information whenever I try to > reconfigure my portal - anyone who knows how to solve this ? > > Regards, > From kent@goathill.org Tue Apr 17 17:59:27 2001 From: kent@goathill.org (Kent Polk) Date: 17 Apr 2001 16:59:27 GMT Subject: [Zope-CMF] Composite Content In-Reply-To: <20010417102621.C3026@lenin.jamkit.com> Message-ID: <987526767.335291@fezzik.endicor.com> On 17 Apr 2001 04:20:02 -0500, seb bacon wrote: > * Kent Polk [010416 22:30]: >> Has there been any further discussion on the topic of Composite >> Content? > > For my application, I need not only a CompositeContent Type, but also > special CompositeComponent Types too. This is because Components > participate in a Portal only through the CompositeContent which they > compose. > > A CompositeContent must: > > - return a SearchableText which is made up of its components > - have slots which are configurable TTW > > CompositeComponents: > > - must participate in the workflow of their container, rather > than their own I think this applies, though in my app, different components need different workflows, based on the type of component. If the container knows enough to manage the workflow for the components, they are likely more easily managed. > - must participle in catalogs only through their containers > - have no need of extensive (i.e. DublinCore) metadata, since this, > too, is a property of the container. For much of my app, cataloging will primarily be for the metadata, and DublinCore doesn't quite cover the bases - will need additional metadata which needs to be Acquirable through the composite framework, which appears to agree with it being a property of the container. (My components will also need additional attributes and methods in order to publish themselves...) > Would these requirements apply more generally? I think they > would. I believe so. > I've implemented a CompositeContent as a Folderish PortalContent > object, and I've implemented a Document-like CompositeComponent, and > it all works quite well in a prototype kind of way. However, I've not > abstracted the functionality into a helper class which can be > implemented ad hoc TTW. Mind if I try to implement some of my component types with it and provide some feedback? Thanks From andrew@digicool.com Tue Apr 17 18:31:34 2001 From: andrew@digicool.com (Andrew Sawyers) Date: Tue, 17 Apr 2001 13:31:34 -0400 Subject: [Zope-CMF] Real newbie question In-Reply-To: <987524027.1044.3.camel@squidbitch> Message-ID: Gitte, In answer to the menu question directly, in the dtml method standard_top_bar.dtml there is something like the following:  
home  members  news  search  
To add something to this bar, you'd of course simply add it in to the along with the other links. I'd take a look at the following document: http://cmf.zope.org/doc/devel/writing_skins/ It gives an overview of skinning within the CMF. You're going to have to familiarize yourself with where things are, and the easiest way is to go look at the dtml methods in the skins directories. Once you have a grasp on where the different presentation logic is in the dtml methods, much of the look customization will become easier. What folder does the PortalPoll not show up in? Hope this helps some, Andrew > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Gitte Wange > Sent: Tuesday, April 17, 2001 12:13 PM > To: seb bacon > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Real newbie question > > > So I have "surfed" around my CMF site ... not seing the bright light yet > :-) > I understand the Content Management part of it - you have some users > that add contents and some admins that publish its ... > But how do you add something to the menu for instance ? > > Now I also followed to PortalPoll product and I actually made it :-) > I works - sort of. I can add a new PortalPoll product - but it doesn't > show up in the folder. > > CMF looks fine on zope.org and on cmf.zope.org ... but here - it looks > like s... :-) > > Gitte > From webmaster@saturn.deanza.fhda.edu Tue Apr 17 22:42:25 2001 From: webmaster@saturn.deanza.fhda.edu (Jason Wehmhoener) Date: Tue, 17 Apr 2001 14:42:25 -0700 Subject: [Zope-CMF] Folder Filter Message-ID: I've pasted the code from folder_contents for displaying the contents into standard_html_header, and I changed it to display the title instead of the ID. Now I've got automatic global site navigation, cool! But it'd be even cooler if I could figure out a way display only folders in the standard_html_header, and display the rest of the contents (in addition to their descriptions and some other metadata) in the "Desktop" area of index_html. Any pointers? Thanks, Zope CMF rocks! J From ivaldes@hal-pc.org Wed Apr 18 05:30:07 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Tue, 17 Apr 2001 23:30:07 -0500 Subject: [Zope-CMF] Various newbie questions. Message-ID: <3ADD184E.BE72FF78@hal-pc.org> Hello all, I'm taking the CMF plunge and so far it looks awesome. It seems ideal for me to build a file-system type of portal app with some not terribly unique functions. Think a GUI front-ended FTP site which supports threaded discussion for each entry into the site. Users need to be able to create folders and sub-folders, enter a structured submission via a form within folders and others need to be able to discuss the entered form data in a threaded manner. They also need to be able to rate the submitted form data possibly by a poll-type widget. Again, like an FTP site but with a form and discussion interface. This should be publicly accessible by login and guest with submissions by any user including guest. Here are some random building questions: 1) I've seen the news box in action on the dogbowl site, but I don't see that news items are discussable, actually I haven't been able to find a discussable content example via search. Is discussable items a work in progress, or am I just missing it? 2) How does one make news type items discussable? 3) How would one restrict the choices available to a logged-in user to one of three inputs: a form submission, a sub-folder or a discussion attached to a form submission? 3) ...and restrict access to a single directory tree that is common to all users? Thanks, -- IV From gitte@mmmanager.org Wed Apr 18 09:13:52 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 10:13:52 +0200 Subject: [Zope-CMF] Real newbie question In-Reply-To: <20010417175411.A6899@lenin.jamkit.com> References: <987519239.1043.0.camel@squidbitch> <20010417164321.F3235@lenin.jamkit.com> <987524027.1044.3.camel@squidbitch> <20010417175411.A6899@lenin.jamkit.com> Message-ID: <987581664.1039.1.camel@squidbitch> On 17 Apr 2001 17:54:12 +0100, seb bacon wrote: > * Gitte Wange [010417 18:14]: > > > > So I have "surfed" around my CMF site ... not seing the bright light yet > > :-) > > I understand the Content Management part of it - you have some users > > that add contents and some admins that publish its ... > > But how do you add something to the menu for instance ? > > Skins! Go to the skins/generic folder and look at how it's done in > standard_top_bar, for example. Check out the skins tutorial. Skins > are normal DTML Methods which are published dependent on users > cookies, etc. I follow you - and have spent my night trying to list one specifik folder's documents. I have succeed in listing the current folder's contents - what's so special about listing one specifik folder ? > > Now I also followed to PortalPoll product and I actually made it :-) > > I works - sort of. I can add a new PortalPoll product - but it doesn't > > show up in the folder. > > are you sure you don't have a filter set on your folder (at the bottom > of the page)? No there is no filter. But the poll doesn't have an icon. I have looked through the folder_contents code but it should list everything in a folder - icon or not. Anyone else with this problem ? > > CMF looks fine on zope.org and on cmf.zope.org ... but here - it looks > > like s... :-) > > you can also play with the stylesheet, which has been abstracted into > stylesheet_properties. > > seb. > Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From icornell@yahoo.com Wed Apr 18 09:16:16 2001 From: icornell@yahoo.com (=?iso-8859-1?q?Ivan=20Cornell?=) Date: Wed, 18 Apr 2001 09:16:16 +0100 (BST) Subject: [Zope-CMF] Various newbie questions. In-Reply-To: <3ADD184E.BE72FF78@hal-pc.org> Message-ID: <20010418081616.11281.qmail@web1702.mail.yahoo.com> I've only been playing with the CMF for a week, but I'll have a go at answering your Q's: > Here are some random building questions: 1) I've seen the news box in > action on the dogbowl site, but I don't see that news items are > discussable, actually I haven't been able to find a discussable content > example via search. Is discussable items a work in progress, or am I > just missing it? 2) How does one make news type items discussable? Look in the portal_types at the root of your site. There should be an entry for each content type & at the bottom of the page for each one a checkbox 'Discussable'. Turn this on et voila! > How would one restrict the choices available to a logged-in user to one > of three inputs: a form submission, a sub-folder or a discussion > attached to a form submission? Also in portal_types, call up the Folder entry, chose to filter types & select the content you want to limit to. > 3) ...and restrict access to a single > directory tree that is common to all users? Or is that 4? You can create portal folders 'outside' of the Member tree by going in to zope management & going Add -> CMF Core Content -> Portal Folder. You can then enter the new folder & set the permissions on it for your members on the Security tab, eg 'Add Portal Content', etc. I can't recall exactly what to set - read the source! HTH, Ivan ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From gitte@mmmanager.org Wed Apr 18 09:43:58 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 10:43:58 +0200 Subject: [Zope-CMF] Various newbie questions. In-Reply-To: <20010418081616.11281.qmail@web1702.mail.yahoo.com> References: <20010418081616.11281.qmail@web1702.mail.yahoo.com> Message-ID: <987583470.1040.2.camel@squidbitch> On 18 Apr 2001 09:16:16 +0100, Ivan Cornell wrote: > I've only been playing with the CMF for a week, but I'll have a go at > answering your Q's: > > > Here are some random building questions: 1) I've seen the news box in > > action on the dogbowl site, but I don't see that news items are > > discussable, actually I haven't been able to find a discussable content > > example via search. Is discussable items a work in progress, or am I > > just missing it? 2) How does one make news type items discussable? > Look in the portal_types at the root of your site. There should be an > entry for each content type & at the bottom of the page for each one a > checkbox 'Discussable'. Turn this on et voila! > > > How would one restrict the choices available to a logged-in user to one > > of three inputs: a form submission, a sub-folder or a discussion > > attached to a form submission? > Also in portal_types, call up the Folder entry, chose to filter types & > select the content you want to limit to. > > > 3) ...and restrict access to a single > > directory tree that is common to all users? > Or is that 4? You can create portal folders 'outside' of the Member tree > by going in to zope management & going Add -> CMF Core Content -> Portal > Folder. You can then enter the new folder & set the permissions on it for > your members on the Security tab, eg 'Add Portal Content', etc. I can't > recall exactly what to set - read the source! I just tried this but it doesn't work for me. I have this one folder (a portal folder). I want to display the content of this one folder to everybody - logged in or not. But I can't list the content in the menu on the right. I have been able to list all content of my main portal folder there, but that isn't what I want. Now how do I restrict this to my about folder ? I have set the security so everybody have the "View" permission on this folder ... but still nothing. Regards, Gitte From gitte@mmmanager.org Wed Apr 18 12:25:59 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 13:25:59 +0200 Subject: [Zope-CMF] Displaying portal content Message-ID: <987593190.1982.4.camel@squidbitch> Hello, I am having some big problems displaying the contents of a portal folder. We have a folder that contains all of our site pages. Now I want to display one of these pages in the index_html file of the generic skin. Okay I put in and saves the page. But then I get a key error. Well why isn't this folder "availiable" to the skin ? Must I put the intro file in the generic skin folder ? I have also tried to iterate through the about folder because I need to display a link to all of the documents in this folder in our menu, but also here I get a key error. I think I have tried everything .. but there must be a solution. Anyone ? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From blomert@hagen.de Wed Apr 18 13:02:53 2001 From: blomert@hagen.de (Peter Blomert) Date: Wed, 18 Apr 2001 14:02:53 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: <987593190.1982.4.camel@squidbitch> References: <987593190.1982.4.camel@squidbitch> Message-ID: Am 13:25 Uhr +0200 18.04.2001, schrieb Gitte Wange : >Hello, > >I am having some big problems displaying the contents of a portal >folder. >We have a folder that contains all of our site pages. Now I want to >display one of these pages in the index_html file of the generic skin. >Okay I put in and saves the page. But >then I get a key error. Well why isn't this folder "availiable" to the >skin ? Must I put the intro file in the generic skin folder ? > >I have also tried to iterate through the about folder because I need to >display a link to all of the documents in this folder in our menu, but >also here I get a key error. > >I think I have tried everything .. but there must be a solution. Anyone >? > >Regards, >-- >************************ >Gitte Wange Jensen Hi, dont know if i can help ... i made a link in the action_box to link my zwiki-Site to CMF i made it this way: i copied the action_box of "generic" into "custom" then i inserted two lines of code after the line i inserted: now i can see on every page of CMF my link to my site, it works fine, and the site lies not in the CMF but in root of Zope (as you can see in the a href...) hope that this will help you cu online Peter Blomert From gitte@mmmanager.org Wed Apr 18 13:17:44 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 14:17:44 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: References: <987593190.1982.4.camel@squidbitch> Message-ID: <987596298.1981.7.camel@squidbitch> On 18 Apr 2001 14:02:53 +0200, Peter Blomert wrote: > Am 13:25 Uhr +0200 18.04.2001, schrieb Gitte Wange : > >Hello, > > > >I am having some big problems displaying the contents of a portal > >folder. > >We have a folder that contains all of our site pages. Now I want to > >display one of these pages in the index_html file of the generic skin. > >Okay I put in and saves the page. But > >then I get a key error. Well why isn't this folder "availiable" to the > >skin ? Must I put the intro file in the generic skin folder ? > > > >I have also tried to iterate through the about folder because I need to > >display a link to all of the documents in this folder in our menu, but > >also here I get a key error. > > > >I think I have tried everything .. but there must be a solution. Anyone > >? > > > >Regards, > >-- > >************************ > >Gitte Wange Jensen > > Hi, > dont know if i can help ... > > i made a link in the action_box to link my zwiki-Site to CMF > > i made it this way: > > i copied the action_box of "generic" into "custom" > > then i inserted two lines of code after the line > >
Zwiki-Site
> > i inserted: > > > > > now i can see on every page of CMF my link to my site, it works fine, and the site lies not in the CMF but in root of Zope (as you can see in the a href...) > > hope that this will help you > > cu online > > Peter Blomert Well I can do that to, but I cannot link to an object inside my portal. I also need to iterate through the objects in a folder. -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Wed Apr 18 13:37:54 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 14:37:54 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: <987596298.1981.7.camel@squidbitch> References: <987593190.1982.4.camel@squidbitch> <987596298.1981.7.camel@squidbitch> Message-ID: <987597506.1982.8.camel@squidbitch> On 18 Apr 2001 14:17:44 +0200, Gitte Wange wrote: > On 18 Apr 2001 14:02:53 +0200, Peter Blomert wrote: > > Am 13:25 Uhr +0200 18.04.2001, schrieb Gitte Wange : > > >Hello, > > > > > >I am having some big problems displaying the contents of a portal > > >folder. > > >We have a folder that contains all of our site pages. Now I want to > > >display one of these pages in the index_html file of the generic skin. > > >Okay I put in and saves the page. But > > >then I get a key error. Well why isn't this folder "availiable" to the > > >skin ? Must I put the intro file in the generic skin folder ? > > > > > >I have also tried to iterate through the about folder because I need to > > >display a link to all of the documents in this folder in our menu, but > > >also here I get a key error. > > > > > >I think I have tried everything .. but there must be a solution. Anyone > > >? > > > > > >Regards, > > >-- > > >************************ > > >Gitte Wange Jensen > > > > Hi, > > dont know if i can help ... > > > > i made a link in the action_box to link my zwiki-Site to CMF > > > > i made it this way: > > > > i copied the action_box of "generic" into "custom" > > > > then i inserted two lines of code after the line > > > >
Zwiki-Site
> > > > i inserted: > > > > > > > > > > now i can see on every page of CMF my link to my site, it works fine, and the site lies not in the CMF but in root of Zope (as you can see in the a href...) > > > > hope that this will help you > > > > cu online > > > > Peter Blomert > > Well I can do that to, but I cannot link to an object inside my portal. > > I also need to iterate through the objects in a folder. > Funny .. I just tried something else: I am able to say (about is the name of the folder I need to iterate through) but I cannot say without getting a KeyError. If I say it will never go to the next statement but jump over it. Can anyone help me figuring out what to do ? Gitte From gitte@mmmanager.org Wed Apr 18 13:40:10 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 14:40:10 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: <987597506.1982.8.camel@squidbitch> References: <987593190.1982.4.camel@squidbitch> <987596298.1981.7.camel@squidbitch> <987597506.1982.8.camel@squidbitch> Message-ID: <987597642.1980.9.camel@squidbitch> On 18 Apr 2001 14:37:54 +0200, Gitte Wange wrote: > On 18 Apr 2001 14:17:44 +0200, Gitte Wange wrote: > > On 18 Apr 2001 14:02:53 +0200, Peter Blomert wrote: > > > Am 13:25 Uhr +0200 18.04.2001, schrieb Gitte Wange : > > > >Hello, > > > > > > > >I am having some big problems displaying the contents of a portal > > > >folder. > > > >We have a folder that contains all of our site pages. Now I want to > > > >display one of these pages in the index_html file of the generic skin. > > > >Okay I put in and saves the page. But > > > >then I get a key error. Well why isn't this folder "availiable" to the > > > >skin ? Must I put the intro file in the generic skin folder ? > > > > > > > >I have also tried to iterate through the about folder because I need to > > > >display a link to all of the documents in this folder in our menu, but > > > >also here I get a key error. > > > > > > > >I think I have tried everything .. but there must be a solution. Anyone > > > >? > > > > > > > >Regards, > > > >-- > > > >************************ > > > >Gitte Wange Jensen > > > > > > Hi, > > > dont know if i can help ... > > > > > > i made a link in the action_box to link my zwiki-Site to CMF > > > > > > i made it this way: > > > > > > i copied the action_box of "generic" into "custom" > > > > > > then i inserted two lines of code after the line > > > > > >
Zwiki-Site
> > > > > > i inserted: > > > > > > > > > > > > > > > now i can see on every page of CMF my link to my site, it works fine, and the site lies not in the CMF but in root of Zope (as you can see in the a href...) > > > > > > hope that this will help you > > > > > > cu online > > > > > > Peter Blomert > > > > Well I can do that to, but I cannot link to an object inside my portal. > > > > I also need to iterate through the objects in a folder. > > > > Funny .. I just tried something else: > I am able to say (about is the name of the folder I > need to iterate through) but I cannot say without > getting a KeyError. If I say it will never go to the > next statement but jump over it. > > Can anyone help me figuring out what to do ? > > Gitte > Sorry - it's not a KeyError I get; it's a TypeError: unsliceable object I can figure out that it may be because you can't iterate through a folder - but then I don't see what's so great about this Zope :-) From erik@thingamy.net Wed Apr 18 13:49:12 2001 From: erik@thingamy.net (Erik Enge) Date: Wed, 18 Apr 2001 14:49:12 +0200 (CEST) Subject: [Zope-CMF] Displaying portal content In-Reply-To: <987597642.1980.9.camel@squidbitch> Message-ID: On 18 Apr 2001, Gitte Wange wrote: > I can figure out that it may be because you can't iterate through a > folder - but then I don't see what's so great about this Zope :-) No objects. That should do the trick? From blomert@hagen.de Wed Apr 18 13:56:33 2001 From: blomert@hagen.de (Peter Blomert) Date: Wed, 18 Apr 2001 14:56:33 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: References: Message-ID: If you want links, try this (in action_box) cu online Peter From gitte@mmmanager.org Wed Apr 18 14:17:20 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 15:17:20 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: References: <987593190.1982.4.camel@squidbitch> Message-ID: <987599871.1981.10.camel@squidbitch> On 18 Apr 2001 15:03:51 +0200, Peter Blomert wrote: > > > >Okay I put in and saves the page. But > >then I get a key error. Well why isn't this folder "availiable" to the > >skin ? Must I put the intro file in the generic skin folder ? > > this cant work because the folder /mymediaman/about/intro isnt in the Container, CMF is looking for variables names. You need to attach the namespace of your folder (intro) with the "with"-tag. > > cu online > > Peter You just lost me :-) Okay the About folder isn't in the container ... how do I get it there ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Wed Apr 18 14:21:29 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 18 Apr 2001 15:21:29 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: References: <987593190.1982.4.camel@squidbitch> Message-ID: <987600123.1981.11.camel@squidbitch> On 18 Apr 2001 15:03:51 +0200, Peter Blomert wrote: > > > >Okay I put in and saves the page. But > >then I get a key error. Well why isn't this folder "availiable" to the > >skin ? Must I put the intro file in the generic skin folder ? > > this cant work because the folder /mymediaman/about/intro isnt in the Container, CMF is looking for variables names. You need to attach the namespace of your folder (intro) with the "with"-tag. > > cu online > > Peter Hmmm ... I just did this: It doesn't display anything in the browser window, but when you look at the source there is this tag where the content of the document should be: What is this - and how does this make me display the document ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From jeff@thecolemans.ws Wed Apr 18 14:23:32 2001 From: jeff@thecolemans.ws (Jeff) Date: Wed, 18 Apr 2001 08:23:32 -0500 Subject: [Zope-CMF] Various newbie questions. References: <20010418081616.11281.qmail@web1702.mail.yahoo.com> Message-ID: <03d701c0c80a$d5a7dc70$1001a8c0@jeff2k> I am also very new to this, but having great fun! In your response to question 3/4, what is the difference between adding a 'Portal Folder' or just a normal 'Folder'? Thanks! Jeff > I've only been playing with the CMF for a week, but I'll have a go at > answering your Q's: > > > Here are some random building questions: 1) I've seen the news box in > > action on the dogbowl site, but I don't see that news items are > > discussable, actually I haven't been able to find a discussable content > > example via search. Is discussable items a work in progress, or am I > > just missing it? 2) How does one make news type items discussable? > Look in the portal_types at the root of your site. There should be an > entry for each content type & at the bottom of the page for each one a > checkbox 'Discussable'. Turn this on et voila! > > > How would one restrict the choices available to a logged-in user to one > > of three inputs: a form submission, a sub-folder or a discussion > > attached to a form submission? > Also in portal_types, call up the Folder entry, chose to filter types & > select the content you want to limit to. > > > 3) ...and restrict access to a single > > directory tree that is common to all users? > Or is that 4? You can create portal folders 'outside' of the Member tree > by going in to zope management & going Add -> CMF Core Content -> Portal > Folder. You can then enter the new folder & set the permissions on it for > your members on the Security tab, eg 'Add Portal Content', etc. I can't > recall exactly what to set - read the source! > HTH, > > Ivan > From blomert@hagen.de Wed Apr 18 14:28:20 2001 From: blomert@hagen.de (Peter Blomert) Date: Wed, 18 Apr 2001 15:28:20 +0200 Subject: [Zope-CMF] Displaying portal content In-Reply-To: <987599871.1981.10.camel@squidbitch> References: <987593190.1982.4.camel@squidbitch> <987599871.1981.10.camel@squidbitch> Message-ID: You can attach the namespace of your folder with the with-tag try this (in action_box) without the with -tag it wont work, it would list all objects in current folder. with the with-tag it will list the objects in "about". if you want to be sure, that only the items in "about" are listed, write cu online Peter From Stephen.Boddy@btcellnet.net Wed Apr 18 14:45:17 2001 From: Stephen.Boddy@btcellnet.net (Boddy Stephen) Date: Wed, 18 Apr 2001 14:45:17 +0100 Subject: [Zope-CMF] How do I access email property? Message-ID: <5E5EEA049DAED31195A10008C7A4385B1FFF2C@skye.cellnet.co.uk> Hi, I'm trying to create a link in the standard_html_footer that when clicked on will open an email to the owner of the currently viewed object i.e. documentA is owned by member bob, who has an email property robert@builder.com A browser comes along who wants to email bob to tell him that his JCB specs are out of date. A link at the footer of the page should point to "mailto:robert@builder.com" Using I can get the last mod time, and the owner id (bob). How do I pull the owners email? Do I have to resort to editing the python code? On a related issue, it's easy enough to get the last modification date, is it as easy to get the last modifiers id and email property, or do I have to start messing with the undoable_transactions (if memory serves)? Thanks in advance Steve ********************************************************************** This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. ********************************************************************** From jeff@thecolemans.ws Wed Apr 18 15:00:55 2001 From: jeff@thecolemans.ws (Jeff) Date: Wed, 18 Apr 2001 09:00:55 -0500 Subject: [Zope-CMF] Error page on cmf.zope.org Message-ID: <03fe01c0c810$0f54c6e0$1001a8c0@jeff2k> This is a multi-part message in MIME format. ------=_NextPart_000_03FB_01C0C7E6.13D2EE10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I just got an error page when selecting a comment link at the bottom of = http://cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial My real question is what product or code is used for this VERY cool = error page? It displays all kind of stuff that would help me, like: Innermost method = - Namespace Stack, source of fault with code, call stack - security = context, ... Thanks, Jeff ------=_NextPart_000_03FB_01C0C7E6.13D2EE10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I just got an error page when selecting = a comment=20 link at the bottom of http://cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial
 
My real question is what product or = code is used=20 for this VERY cool error page?
It displays all kind of stuff that = would help me,=20 like: Innermost method - Namespace = Stack, source=20 of fault with code, call stack - security context, ...
 
Thanks,
Jeff
------=_NextPart_000_03FB_01C0C7E6.13D2EE10-- From Tim Hicks" Message-ID: <010001c0c811$31c3f920$0501a8c0@OC> Dave (zope-cmf list added in too, so don't feel obliged to answer my questions :-) ), thanks very much for the updated 'walkthrough', it did indeed seem to solve my problem. Combined with Tres telling me not to use the standard 'myZClass_factory', but instead use 'myZClass_add' (or as you have shown, a custom method) for the 'portal_types' 'Factory method in product', everything seems to be working well for adding instances of my ZClass products... thanks very much to both of you. My problem now is that my instances get added, but I can't see them using the 'folder_contents' method on the folder they are in. I know they are there because I can see them using the ZMI and access them by URL. My ZClass sub-classes the following: Base Classes ZObject, _ZClass_for_PortalContent, _ZClass_for_DefaultDublinCoreImpl, CatalogAwareBase if that makes any difference to the answer. Incidentally, was I right to sub-class 'CatalogAwareBase' for portal content, or should it have been a specific 'CMFCatalogAware' (or some such)? And one final (related) question, when selecting what to sub-class, am I right in thinking that if the zclass is to define *content*, it should not really need to sub-class and of the 'whatever Tool' classes? Thanks for your help and a very helpful 'HowTo' tim ----- Original Message ----- From: "Dave Woolston" To: Sent: Thursday, April 12, 2001 8:01 PM Subject: Portal Poll Product > Hello Tim, > > I'm sorry, I should of jumped in earlier on this subject. > I am working on updating this Tutorial and have a pretty > good step by step e-mail that someone had sent me on > the Tutorial that I think could help. I will include it below. > If you are too busy to go through this - just let me know - > no problem. > > Just a quick thought that perhaps the meta_type that you > defined for your class did not match the meta_type that > you define in the portal_types tool. > > Regards, > Dave > ================================= > Dave Woolston davew@digicool.com > Digital Creations www.digicool.com > (716) 262-4715 > From seb@jamkit.com Wed Apr 18 16:04:47 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 18 Apr 2001 16:04:47 +0100 Subject: [Zope-CMF] How do I access email property? In-Reply-To: <5E5EEA049DAED31195A10008C7A4385B1FFF2C@skye.cellnet.co.uk>; from Stephen.Boddy@btcellnet.net on Wed, Apr 18, 2001 at 02:45:17PM +0100 References: <5E5EEA049DAED31195A10008C7A4385B1FFF2C@skye.cellnet.co.uk> Message-ID: <20010418160446.A1903@lenin.jamkit.com> Hi, All member attributes are exposed as simple properties through a wrapped Member object, which can be grabbed from the membership_tool. You can get the Creator of a document through its DublinCore interface, and you can get the Member object with getMemberById (a method provided by CMFCore/MembershipTool.py), so an answer is: There may be a nicer way, though. seb * Boddy Stephen [010418 15:46]: > Hi, > > I'm trying to create a link in the standard_html_footer that when clicked on > will open an email to the owner of the currently viewed object i.e. > > documentA is owned by member bob, who has an email property > robert@builder.com > A browser comes along who wants to email bob to tell him that his JCB specs > are out of date. > A link at the footer of the page should point to "mailto:robert@builder.com" > > Using I can get the last > mod time, and the owner id (bob). How do I pull the owners email? Do I have > to resort to editing the python code? > > On a related issue, it's easy enough to get the last modification date, is > it as easy to get the last modifiers id and email property, or do I have to > start messing with the undoable_transactions (if memory serves)? > > Thanks in advance > Steve > > > > ********************************************************************** > This email and any attachments may be confidential and the subject of > legal professional privilege. Any disclosure, use, storage or copying > of this email without the consent of the sender is strictly prohibited. > Please notify the sender immediately if you are not the intended > recipient and then delete the email from your inbox and do not > disclose the contents to another person, use, copy or store the > information in any medium. > ********************************************************************** > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From lucas.hofman@oslo.pgs.com Wed Apr 18 15:36:49 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Wed, 18 Apr 2001 16:36:49 +0200 Subject: [Zope-CMF] Re: migrating PTK -> CMF Message-ID: <0104189876.AA987604621@lysntsmail.oslo.pgs.com> Tres Seaver wrote: > > I'm looking at reproducing your problem right now; more > later. > Thanks a lot. Just FYI: I tried moving a Zope 2.1.6 / PTK 0.7.1 portal to Zope 2.2.0 / PTK 0.8.x. That gave problems which seemed related to those encounted when moving to Zope 2.3.0 However, moving a Zope 2.2.0 / PTK 0.8.x to Zope 2.3.0 / CMF 1.0 /PTK0.8 site works (at least, I can open the old portal in its new environment without errors). This narrows the problems to the changes in the Zope security model introduced by version 2.2.0, does it not? > > And how was the old dogbowl converted to CMF 1.0? > > The dogbowl was created under Zope 2.2.x, with a later version > (0.9.1?) of the PTK. > Which let me to the experiment... Hope to hear more from you soon. -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From zope@tough.net.au Wed Apr 18 15:36:50 2001 From: zope@tough.net.au (paul kimber) Date: Thu, 19 Apr 2001 00:36:50 +1000 Subject: [Zope-CMF] Error page on cmf.zope.org In-Reply-To: <03fe01c0c810$0f54c6e0$1001a8c0@jeff2k> References: <03fe01c0c810$0f54c6e0$1001a8c0@jeff2k> Message-ID: <1224481841-36209326@tough.net.au> Jeff said at =D2[Zope-CMF] Error page on cmf.zope.org=D3. [19/Apr/01Thu 00:00] > I just got an error page when selecting a comment link at the bottom of = http:/ > /cmf.zope.org/Members/davew/PortalStuff/PortalPollTutorial > > My real question is what product or code is used for this VERY cool error > page? Its called 'zdebug'. Do a search on zope.org and you will find it. It is = pretty cool hey. Paul |------- |www.tough.net.au |____________ From Stephen.Boddy@btcellnet.net Wed Apr 18 16:16:53 2001 From: Stephen.Boddy@btcellnet.net (Boddy Stephen) Date: Wed, 18 Apr 2001 16:16:53 +0100 Subject: [Zope-CMF] How do I access email property? Message-ID: <5E5EEA049DAED31195A10008C7A4385B1FFF2D@skye.cellnet.co.uk> Thanks Seb It took a bit of adjustment, but it got me there. The member.email needed to be in quotes to work properly. I also added a clause so that content generated by non members doesn't bug out. Thanks again, particularly for the speed of response. Steve -----Original Message----- From: seb bacon [mailto:seb@jamkit.com] All member attributes are exposed as simple properties through a wrapped Member object, which can be grabbed from the membership_tool. You can get the Creator of a document through its DublinCore interface, and you can get the Member object with getMemberById (a method provided by CMFCore/MembershipTool.py), so an answer is: There may be a nicer way, though. seb * Boddy Stephen [010418 15:46]: > Hi, > > I'm trying to create a link in the standard_html_footer that when clicked on > will open an email to the owner of the currently viewed object i.e. > > documentA is owned by member bob, who has an email property > robert@builder.com > A browser comes along who wants to email bob to tell him that his JCB specs > are out of date. > A link at the footer of the page should point to "mailto:robert@builder.com" > > Using I can get the last > mod time, and the owner id (bob). How do I pull the owners email? Do I have > to resort to editing the python code? > > On a related issue, it's easy enough to get the last modification date, is > it as easy to get the last modifiers id and email property, or do I have to > start messing with the undoable_transactions (if memory serves)? > > Thanks in advance > Steve ********************************************************************** This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. ********************************************************************** From bill@libc.org Wed Apr 18 16:29:48 2001 From: bill@libc.org (Bill Anderson) Date: 18 Apr 2001 09:29:48 -0600 Subject: [Zope-CMF] small problem with displaying the icon images In-Reply-To: <00f101c0c2f6$2a270ec0$840f7ad5@arkady> Message-ID: On 12 Apr 2001 03:13:27 +0100, tav wrote: > i am experiencing some problems with regards to displaying those pretty > little icons for CMF object types > > all the icons render as img src="http://icon_file.gif" instead of > http://cmf_site_folder/icon_file.gif" > > this happens in both the ZMI and in the webpages > > i noticed whilst trawling the logs that scott meilicke is experiencing > something similar on http://www.kmclan.net/SitesUp though he doesn't seem to > have queried about it > > i am using zope 2.3.1 with cmf 1.0.0. thanks in advance for any help Is SiteRoot involved? If so, look at the archives for February or march, there was a patch posted to resolve that issue. Bill From davew@digicool.com Wed Apr 18 16:49:35 2001 From: davew@digicool.com (Dave Woolston) Date: Wed, 18 Apr 2001 11:49:35 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) References: <004101c0c383$02951270$0201000a@D92WIL> <010001c0c811$31c3f920$0501a8c0@OC> Message-ID: <005301c0c81f$37888890$0201000a@D92WIL> [Tim Hicks wrote]: > Dave (zope-cmf list added in too, so don't feel obliged to answer my > questions :-) ), > > thanks very much for the updated 'walkthrough', it did indeed seem to solve > my problem. Good - Thanks to gogo for sending me his 'walkthrough' notes >Combined with Tres telling me not to use the standard > 'myZClass_factory', but instead use 'myZClass_add' (or as you have shown, a > custom method) for the 'portal_types' 'Factory method in product', > everything seems to be working well for adding instances of my ZClass > products... thanks very much to both of you. > > My problem now is that my instances get added, but I can't see them using > the 'folder_contents' method on the folder they are in. I know they are > there because I can see them using the ZMI and access them by URL. My > ZClass sub-classes the following: This sounds like the filter is filtering them out. I would try two things: 1) Verify you can add a different type and have it show up (like a Document) 2) You may have the incorrect meta type - actually, the copy I sent you probably has this typo - Verify that the meta type name that you use in the types_tool definition has the same name as that in your class definition. (This should be PortalPollType and not PollClassType if you are following the steps verbatim. > > Base Classes ZObject, _ZClass_for_PortalContent, > _ZClass_for_DefaultDublinCoreImpl, CatalogAwareBase > > if that makes any difference to the answer. > > Incidentally, was I right to sub-class 'CatalogAwareBase' for portal > content, or should it have been a specific 'CMFCatalogAware' (or some such)? I don't believe you have to add CMFCatalogAware to make you content appear in the catalog any longer, (I think that used to be the case). Simply by deriving from PortalContent should work. Items that are created with the tutorial will appear in the catalog and are searchable for question or answers. > > And one final (related) question, when selecting what to sub-class, am I > right in thinking that if the zclass is to define *content*, it should not > really need to sub-class and of the 'whatever Tool' classes? You are absolutely correct. This tutorial has evolved over time, and it makes no longer makes sense to derive *content* from *Tool* classes. Shane pointed this out to me and I updated the tutorial a little while back. Tool based classes exist so that you can change the 'behavior' of the portal by overriding or enhancing the tool. Sorry if this caused you some problems. Dave From icornell@yahoo.com Wed Apr 18 17:25:25 2001 From: icornell@yahoo.com (=?iso-8859-1?q?Ivan=20Cornell?=) Date: Wed, 18 Apr 2001 17:25:25 +0100 (BST) Subject: [Zope-CMF] Various newbie questions. In-Reply-To: <03d701c0c80a$d5a7dc70$1001a8c0@jeff2k> Message-ID: <20010418162525.26241.qmail@web1705.mail.yahoo.com> --- Jeff wrote: > I am also very new to this, but having great fun! > In your response to question 3/4, what is the difference between adding > a > 'Portal Folder' or just a normal 'Folder'? > Thanks! In a nutshell, portal folders are 'cmf aware', so you can do things such as add comments to them and control/manage the content types they contain. Ivan ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From jeff@janix.com Wed Apr 18 17:59:47 2001 From: jeff@janix.com (Jeff Sasmor) Date: Wed, 18 Apr 2001 12:59:47 -0400 Subject: [Zope-CMF] Catalog and usability Message-ID: <00bc01c0c829$16ee6370$1a931340@NETKOOK> Disclaimer: I am using a 2 week old cvs release of CMF, so perhaps this behavio(u)r has changed: if so 'never mind' Has anyone noticed that if you search a CMF portal, say, by using the search box at the top of the page, that the results displayed include unpublished items? It's somewhat crude that when someone clicks on such items will get a confusing 'unauthorized' message (unless that person is the owner or a reviewer or a manager but not a mere portal member). It would be nice to modify this so that it looked at the review state of an item and only show published items. But it isn't that easy! (^&@#^$#) You might think you could add something like: Status: &dtml-review_state;
to see the status of an item, and then you could write additional code to filter out those that are unpublished (although of course it gets more complex than that sounds to still have the iteration work correctly WRT paging. Anyway, this won't work. With the default implementation of CMFCore/DefaultWorkflow.py, one cannot check the review state of an object if you are anonymous or not the owner. line 277 allow_review = _checkPermission('Review portal content', ob) 278 allow_request = _checkPermission('Request review', ob) So if you don't have the Review Portal Content permission (assigned to the reviewer role in the portal root) or the Request Review permission (assigned to the Owner role in the the Zope root folder and acquired) then when you try to get the review status of a portalcontent item then you get a None back. I might perhaps be slightly off in the details, but I am not sure why it's important that the review state of an item is at all private. I know one possible answer might be to 'write your own workflow', but this one inherent behavior of the default workflow leads me to ask - why is it like this? I'd like to suggest that this issue be revisited by the CMF developers and perhaps modified. It would be really great if out-of-the-box CMFs search feature didn't display items that cannot be viewed, if for no reasons other than UI consistency and reduced confusatory entropification. Jeff Sasmor Jeff Sasmor jeff@sasmor.com Check out http://www.naggle.com/ From Tim Hicks" <010001c0c811$31c3f920$0501a8c0@OC> <005301c0c81f$37888890$0201000a@D92WIL> Message-ID: <01a701c0c82a$16eebc20$0501a8c0@OC> ----- Original Message ----- From: "Dave Woolston" To: "Tim Hicks" Cc: Sent: Wednesday, April 18, 2001 4:49 PM Subject: Re: Portal Poll Product (also Re: [PTK(252)[2]) > > My problem now is that my instances get added, but I can't see them using > > the 'folder_contents' method on the folder they are in. I know they are > > there because I can see them using the ZMI and access them by URL. My > > ZClass sub-classes the following: > > This sounds like the filter is filtering them out. I would try two things: > 1) Verify you can add a different type and have it show up (like a Document) > 2) You may have the incorrect meta type You got it spot on :-). I had uppercase in one place (ZClass) and lowercase in another (portal_types). Thanks very much. > > Incidentally, was I right to sub-class 'CatalogAwareBase' for portal > > content, or should it have been a specific 'CMFCatalogAware' (or some > such)? > > I don't believe you have to add CMFCatalogAware to make you content > appear in the catalog any longer, (I think that used to be the case). > Simply by deriving from PortalContent should work. Items that are > created with the tutorial will appear in the catalog and are searchable > for question or answers. OH, great. > > > > And one final (related) question, when selecting what to sub-class, am I > > right in thinking that if the zclass is to define *content*, it should not > > really need to sub-class and of the 'whatever Tool' classes? > > You are absolutely correct. This tutorial has evolved over time, and > it makes no longer makes sense to derive *content* from *Tool* classes. > Shane pointed this out to me and I updated the tutorial a little while back. > Tool based classes exist so that you can change the 'behavior' of the > portal by overriding or enhancing the tool. Sorry if this caused you some > problems. It didn't cause me any problems... ever the impatient one, I didn't copy your walkthrough, but rather used it as a reference for creating a product of my own (hence the silly mistakes!). One final question (for now :-) ). Are the CMF classes documented anywhere (other than looking at the source)? There are loads of them there, but I don't really know what they all buy me... hence my questions about CatalogAware and *Tools. I did have a look around cmf.zope.org, but to no avail. Cheers tim From davew@digicool.com Wed Apr 18 18:25:41 2001 From: davew@digicool.com (Dave Woolston) Date: Wed, 18 Apr 2001 13:25:41 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) References: <004101c0c383$02951270$0201000a@D92WIL> <010001c0c811$31c3f920$0501a8c0@OC> <005301c0c81f$37888890$0201000a@D92WIL> <01a701c0c82a$16eebc20$0501a8c0@OC> Message-ID: <00ab01c0c82c$a12078f0$0201000a@D92WIL> [Tim Hicks wrote]: > One final question (for now :-) ). Are the CMF classes documented anywhere > (other than looking at the source)? There are loads of them there, but I > don't really know what they all buy me... hence my questions about > CatalogAware and *Tools. I did have a look around cmf.zope.org, but to no > avail. > Sorry, I don't have a good answer for that. Unfortunately, I have found the best way to get around is to read the code or if I am interested in how a certain part of the CMF works, to dissect it. We are trying to improve this. Dave From ivaldes@hal-pc.org Wed Apr 18 18:41:10 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 12:41:10 -0500 Subject: [Zope-CMF] Various newbie questions. References: <20010418081616.11281.qmail@web1702.mail.yahoo.com> Message-ID: <3ADDD1B6.300D8085@hal-pc.org> This thing is GREAT! The discussable Link type is going to work well for my purposes. How would one add fields to the link type such as Documentation URL, and other fields? -- IV Ivan Cornell wrote: > I've only been playing with the CMF for a week, but I'll have a go at > answering your Q's: > > > Here are some random building questions: 1) I've seen the news box in > > action on the dogbowl site, but I don't see that news items are > > discussable, actually I haven't been able to find a discussable content > > example via search. Is discussable items a work in progress, or am I > > just missing it? 2) How does one make news type items discussable? > Look in the portal_types at the root of your site. There should be an > entry for each content type & at the bottom of the page for each one a > checkbox 'Discussable'. Turn this on et voila! > > > How would one restrict the choices available to a logged-in user to one > > of three inputs: a form submission, a sub-folder or a discussion > > attached to a form submission? > Also in portal_types, call up the Folder entry, chose to filter types & > select the content you want to limit to. > > > 3) ...and restrict access to a single > > directory tree that is common to all users? > Or is that 4? You can create portal folders 'outside' of the Member tree > by going in to zope management & going Add -> CMF Core Content -> Portal > Folder. You can then enter the new folder & set the permissions on it for > your members on the Security tab, eg 'Add Portal Content', etc. I can't > recall exactly what to set - read the source! > HTH, > > Ivan > > ____________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk > or your free @yahoo.ie address at http://mail.yahoo.ie > > _______________________________________________ > 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 ivaldes@hal-pc.org Wed Apr 18 19:16:21 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 13:16:21 -0500 Subject: [Zope-CMF] Various newbie questions. References: <20010418081616.11281.qmail@web1702.mail.yahoo.com> <03d701c0c80a$d5a7dc70$1001a8c0@jeff2k> Message-ID: <3ADDD9F4.F1CA2DAF@hal-pc.org> In my completely un-informed opinion: nothing I guess? -- IV Jeff wrote: > I am also very new to this, but having great fun! > In your response to question 3/4, what is the difference between adding a > 'Portal Folder' or just a normal 'Folder'? > Thanks! > Jeff > > > I've only been playing with the CMF for a week, but I'll have a go at > > answering your Q's: > > > > > Here are some random building questions: 1) I've seen the news box in > > > action on the dogbowl site, but I don't see that news items are > > > discussable, actually I haven't been able to find a discussable content > > > example via search. Is discussable items a work in progress, or am I > > > just missing it? 2) How does one make news type items discussable? > > Look in the portal_types at the root of your site. There should be an > > entry for each content type & at the bottom of the page for each one a > > checkbox 'Discussable'. Turn this on et voila! > > > > > How would one restrict the choices available to a logged-in user to one > > > of three inputs: a form submission, a sub-folder or a discussion > > > attached to a form submission? > > Also in portal_types, call up the Folder entry, chose to filter types & > > select the content you want to limit to. > > > > > 3) ...and restrict access to a single > > > directory tree that is common to all users? > > Or is that 4? You can create portal folders 'outside' of the Member tree > > by going in to zope management & going Add -> CMF Core Content -> Portal > > Folder. You can then enter the new folder & set the permissions on it for > > your members on the Security tab, eg 'Add Portal Content', etc. I can't > > recall exactly what to set - read the source! > > HTH, > > > > Ivan > > > > _______________________________________________ > 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 ivaldes@hal-pc.org Wed Apr 18 19:21:03 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 13:21:03 -0500 Subject: [Zope-CMF] Control Panel needed to add types? References: <5E5EEA049DAED31195A10008C7A4385B1FFF2C@skye.cellnet.co.uk> Message-ID: <3ADDDB0F.78EA7164@hal-pc.org> I run my Zope site on my ISP for convenience. Do you have to have Control Panel access to add or modify portal_types? Thanks, -- IV From lstafford@morphics.com Wed Apr 18 20:17:55 2001 From: lstafford@morphics.com (Loren Stafford) Date: Wed, 18 Apr 2001 12:17:55 -0700 Subject: [Zope-CMF] object does not support item deletion Message-ID: I wanted to try out the CMF for the first time today. So, on NT 4, I made a fresh installation of Zope 2.3.2b1, verified that it was working, installed the three CMF 1.0 products in the Products directory, restarted Zope, verified that the products installed correctly, created a CMF Site in the root directory (called MorphicsCMF), then tried to navigate directly to the CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the browser URL box. The CMF Site is, of course, completely empty, but I expected to see at least the default interfaces for adding members and content. However, I got nothing but an error. Following is the error and traceback that resulted. The error occurs in catalog.py where it is trying to delete sort specifications from kw. Apparently it's trying to display the list of current news items, which should be empty, as I haven't added any yet. Is this a known problem, or did I fail to configure something correctly? -- Thanks -- Loren ==================== Error Type: TypeError Error Value: object does not support item deletion Traceback (innermost last): File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 223, in publish_module File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\Intranet\ZOPE23~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, line 218, in __call__ (Object: index_html) File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: index_html) File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: portal_properties) File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in __call__ (Object: news_box) File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: news_box) File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_In.py, line 487, in renderwb (Object: portal_catalog.searchResults( meta_type='News Item' , sort_on='Date' , sort_order='reverse' , review_state='published' )) File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: portal_catalog.searchResults( meta_type='News Item' , sort_on='Date' , sort_order='reverse' , review_state='published' )) (Info: portal_catalog) File <string>, line 0, in ? File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\CatalogTool.py, line 200, in searchResults (Object: Traversable) File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\ZCatalog.py, line 535, in searchResults (Object: Traversable) File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\Catalog.py, line 643, in searchResults TypeError: (see above) From marc@bowery.com Wed Apr 18 20:31:22 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 18 Apr 2001 15:31:22 -0400 Subject: [Zope-CMF] object does not support item deletion In-Reply-To: Message-ID: I got that too... I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it out. It was working under 2.3.1, and then it wasn't... :( > From: "Loren Stafford" > Date: Wed, 18 Apr 2001 12:17:55 -0700 > To: > Subject: [Zope-CMF] object does not support item deletion > > I wanted to try out the CMF for the first time today. So, on NT 4, I made a > fresh installation of Zope 2.3.2b1, verified that it was working, installed > the three CMF 1.0 products in the Products directory, restarted Zope, > verified that the products installed correctly, created a CMF Site in the > root directory (called MorphicsCMF), then tried to navigate directly to the > CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the > browser URL box. The CMF Site is, of course, completely empty, but I > expected to see at least the default interfaces for adding members and > content. However, I got nothing but an error. Following is the error and > traceback that resulted. > > The error occurs in catalog.py where it is trying to delete sort > specifications from kw. Apparently it's trying to display the list of > current news items, which should be empty, as I haven't added any yet. > > Is this a known problem, or did I fail to configure something correctly? > > -- Thanks > -- Loren > > ==================== > > Error Type: TypeError > Error Value: object does not support item deletion > > Traceback (innermost last): > File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 223, in > publish_module > File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 187, in > publish > File D:\Intranet\ZOPE23~1\lib\python\Zope\__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 171, in > publish > File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\mapply.py, line 160, in > mapply > (Object: index_html) > File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 112, in > call_object > (Object: index_html) > File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, > line 218, in __call__ > (Object: index_html) > File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line > 538, in __call__ > (Object: index_html) > File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_With.py, line > 146, in render > (Object: portal_properties) > File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, > line 213, in __call__ > (Object: news_box) > File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line > 538, in __call__ > (Object: news_box) > File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_In.py, line 487, > in renderwb > (Object: portal_catalog.searchResults( meta_type='News Item' > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )) > File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_Util.py, line > 334, in eval > (Object: portal_catalog.searchResults( meta_type='News Item' > , sort_on='Date' > , sort_order='reverse' > , review_state='published' > )) > (Info: portal_catalog) > File <string>, line 0, in ? > File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\CatalogTool.py, line > 200, in searchResults > (Object: Traversable) > File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\ZCatalog.py, line > 535, in searchResults > (Object: Traversable) > File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\Catalog.py, line > 643, in searchResults > TypeError: (see above) > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From marc@bowery.com Wed Apr 18 21:04:05 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 18 Apr 2001 16:04:05 -0400 Subject: [Zope-CMF] object does not support item deletion In-Reply-To: Message-ID: That was it. I 'updated' back to 2.3.1 and now it works. > >> From: "Loren Stafford" >> Date: Wed, 18 Apr 2001 12:17:55 -0700 >> To: >> Subject: [Zope-CMF] object does not support item deletion >> >> I wanted to try out the CMF for the first time today. So, on NT 4, I made a >> fresh installation of Zope 2.3.2b1, verified that it was working, installed >> the three CMF 1.0 products in the Products directory, restarted Zope, >> verified that the products installed correctly, created a CMF Site in the >> root directory (called MorphicsCMF), then tried to navigate directly to the >> CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the >> browser URL box. The CMF Site is, of course, completely empty, but I >> expected to see at least the default interfaces for adding members and >> content. However, I got nothing but an error. Following is the error and >> traceback that resulted. >> >> The error occurs in catalog.py where it is trying to delete sort >> specifications from kw. Apparently it's trying to display the list of >> current news items, which should be empty, as I haven't added any yet. >> >> Is this a known problem, or did I fail to configure something correctly? >> >> -- Thanks >> -- Loren >> >> ==================== >> >> Error Type: TypeError >> Error Value: object does not support item deletion >> >> Traceback (innermost last): >> File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 223, in >> publish_module >> File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 187, in >> publish >> File D:\Intranet\ZOPE23~1\lib\python\Zope\__init__.py, line 221, in >> zpublisher_exception_hook >> (Object: Traversable) >> File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 171, in >> publish >> File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\mapply.py, line 160, in >> mapply >> (Object: index_html) >> File D:\Intranet\ZOPE23~1\lib\python\ZPublisher\Publish.py, line 112, in >> call_object >> (Object: index_html) >> File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, >> line 218, in __call__ >> (Object: index_html) >> File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line >> 538, in __call__ >> (Object: index_html) >> File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_With.py, line >> 146, in render >> (Object: portal_properties) >> File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\FSDTMLMethod.py, >> line 213, in __call__ >> (Object: news_box) >> File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_String.py, line >> 538, in __call__ >> (Object: news_box) >> File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_In.py, line 487, >> in renderwb >> (Object: portal_catalog.searchResults( meta_type='News Item' >> , sort_on='Date' >> , sort_order='reverse' >> , review_state='published' >> )) >> File D:\Intranet\ZOPE23~1\lib\python\DocumentTemplate\DT_Util.py, line >> 334, in eval >> (Object: portal_catalog.searchResults( meta_type='News Item' >> , sort_on='Date' >> , sort_order='reverse' >> , review_state='published' >> )) >> (Info: portal_catalog) >> File <string>, line 0, in ? >> File D:\Intranet\ZOPE23~1\lib\python\Products\CMFCore\CatalogTool.py, line >> 200, in searchResults >> (Object: Traversable) >> File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\ZCatalog.py, line >> 535, in searchResults >> (Object: Traversable) >> File D:\Intranet\ZOPE23~1\lib\python\Products\ZCatalog\Catalog.py, line >> 643, in searchResults >> TypeError: (see above) >> >> >> >> _______________________________________________ >> Zope-CMF maillist - Zope-CMF@zope.org >> http://lists.zope.org/mailman/listinfo/zope-cmf >> >> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature >> requests > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From lstafford@morphics.com Wed Apr 18 21:51:28 2001 From: lstafford@morphics.com (Loren Stafford) Date: Wed, 18 Apr 2001 13:51:28 -0700 Subject: [Zope-CMF] object does not support item deletion In-Reply-To: Message-ID: I made a clean install of 2.3.1 and was successful at installing CMF there, too. -- Loren > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of marc lindahl > Sent: Wednesday, April 18, 2001 13:04 > To: Zope-CMF@zope.org > Subject: Re: [Zope-CMF] object does not support item deletion > > > That was it. I 'updated' back to 2.3.1 and now it works. > > > > >> From: "Loren Stafford" > >> Date: Wed, 18 Apr 2001 12:17:55 -0700 > >> To: > >> Subject: [Zope-CMF] object does not support item deletion > >> > >> I wanted to try out the CMF for the first time today. So, on > NT 4, I made a > >> fresh installation of Zope 2.3.2b1, verified that it was > working, installed > >> the three CMF 1.0 products in the Products directory, restarted Zope, > >> verified that the products installed correctly, created a CMF > Site in the > >> root directory (called MorphicsCMF), then tried to navigate > directly to the > >> CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the > >> browser URL box. The CMF Site is, of course, completely empty, but I > >> expected to see at least the default interfaces for adding members and > >> content. However, I got nothing but an error. Following is the > error and > >> traceback that resulted. > >> > >> The error occurs in catalog.py where it is trying to delete sort > >> specifications from kw. Apparently it's trying to display the list of > >> current news items, which should be empty, as I haven't added any yet. > >> > >> Is this a known problem, or did I fail to configure something > correctly? > >> > >> -- Thanks > >> -- Loren > >> [snipped the traceback] From chrisw@nipltd.com Wed Apr 18 22:03:00 2001 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 18 Apr 2001 22:03:00 +0100 Subject: [Zope-CMF] object does not support item deletion References: Message-ID: <009901c0c84a$f7046790$f84501d5@withers> > I got that too... > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it out. > It was working under 2.3.1, and then it wasn't... :( Can you stick it in the Zope collector? It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S cheers, Chris From marc@bowery.com Wed Apr 18 22:07:05 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 18 Apr 2001 17:07:05 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: <01a701c0c82a$16eebc20$0501a8c0@OC> Message-ID: I had this problem too... following the tutorial exactly. What fixed it for me was in portal_types/Poll, change Meta type to PortalPollType, which matches the meta type in PortalPollClass/propertysheets/basic looks like a typo in the tutorial? >> 2) You may have the incorrect meta type > > You got it spot on :-). I had uppercase in one place (ZClass) and lowercase > in another (portal_types). Thanks very much. From ivaldes@hal-pc.org Wed Apr 18 22:28:41 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 16:28:41 -0500 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) References: Message-ID: <3ADE0708.211FEB56@hal-pc.org> Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what the finished product looks like? Anyone have a production CMF site other than dogbowl going that I could take a look at? Please send the URL if so. -- IV marc lindahl wrote: > I had this problem too... following the tutorial exactly. What fixed it for > me was in portal_types/Poll, change Meta type to PortalPollType, which > matches the meta type in PortalPollClass/propertysheets/basic > > looks like a typo in the tutorial? > > >> 2) You may have the incorrect meta type > > > > You got it spot on :-). I had uppercase in one place (ZClass) and lowercase > > in another (portal_types). Thanks very much. > > _______________________________________________ > 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 ivaldes@hal-pc.org Wed Apr 18 22:36:12 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 16:36:12 -0500 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) References: <3ADE0708.211FEB56@hal-pc.org> Message-ID: <3ADE08CC.16B57169@hal-pc.org> My message was kind of rude, let me add: 'Please, because this is really a great piece of work and your efforts are very appreciated.' -- IV Ignacio Valdes wrote: > Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what > the finished product looks like? Anyone have a production CMF site other than dogbowl > going that I could take a look at? Please send the URL if so. -- IV > > From klm@digicool.com Wed Apr 18 22:46:33 2001 From: klm@digicool.com (Ken Manheimer) Date: Wed, 18 Apr 2001 17:46:33 -0400 (EDT) Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: <3ADE0708.211FEB56@hal-pc.org> Message-ID: On Wed, 18 Apr 2001, Ignacio Valdes wrote: > Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what > the finished product looks like? Anyone have a production CMF site other than dogbowl > going that I could take a look at? Please send the URL if so. -- IV This is a good idea, but i'm afraid to have to say that probably won't happen at least for a couple of days! Most of the team is currently on the road for a consulting obligation, and those of us remaining are swamped, don't have near the time to scope out and make the change. (BTW, i appreciate your rejoinder that you didn't mean to be rude. I didn't interpret it as rude in the first place, but it does feel good to hear recognition of the effort we're putting into the product, in general, and understanding that this kind of support isn't to be taken for granted...) (And i am sorry we couldn't just oblige, this time!) Ken Manheimer klm@digicool.com From marc@bowery.com Wed Apr 18 23:24:49 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 18 Apr 2001 18:24:49 -0400 Subject: [Zope-CMF] Another Portal Poll Problem (and fix) In-Reply-To: <01a701c0c82a$16eebc20$0501a8c0@OC> Message-ID: OK, I got the portal poll to show up. Next, I log in as a different member of the portal, and go to it. When I voted, I got this error: Error type: Unauthorized Error value: User test is not allowed to access /junk/bowery/Members/marc/testpoll/propertysheets, which is contained in /junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',), would need to have one of the following roles: ('Owner', 'Manager', 'Reviewer'). Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes And, fixed it by, in /PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the proxy roles so that Manager was selected. That fixed it. Now, maybe someone that knows what they're doing can tell me why :) From lstafford@morphics.com Thu Apr 19 00:30:15 2001 From: lstafford@morphics.com (Loren Stafford) Date: Wed, 18 Apr 2001 16:30:15 -0700 Subject: [Zope-CMF] object does not support item deletion In-Reply-To: <009901c0c84a$f7046790$f84501d5@withers> Message-ID: I put it in the Collector: "Catalog error on new CMF install on Zope 2.3.2b1" has been submitted. For future reference, the issue number is: 2172 -- Loren > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Chris Withers > Sent: Wednesday, April 18, 2001 14:03 > To: marc lindahl; Zope-CMF@zope.org > Subject: Re: [Zope-CMF] object does not support item deletion > > > > I got that too... > > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it > out. > > It was working under 2.3.1, and then it wasn't... :( > > Can you stick it in the Zope collector? > It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S > > cheers, > > Chris > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From chrism@digicool.com Thu Apr 19 04:48:44 2001 From: chrism@digicool.com (Chris McDonough) Date: Wed, 18 Apr 2001 23:48:44 -0400 Subject: [Zope-CMF] object does not support item deletion References: Message-ID: <3ADE601C.99BC0B6@digicool.com> Here's a patch to fix this: *** Catalog.py 2001/04/17 17:01:04 1.60.2.10 --- Catalog.py 2001/04/19 03:43:23 *************** *** 635,646 **** # Compute "sort_index", which is a sort index, or none: if kw.has_key('sort-on'): sort_index=kw['sort-on'] - del kw['sort-on'] elif hasattr(self, 'sort-on'): sort_index=getattr(self, 'sort-on') elif kw.has_key('sort_on'): sort_index=kw['sort_on'] - del kw['sort_on'] else: sort_index=None sort_order='' if sort_index is not None: --- 635,644 ---- This patch will be present in the final release version of 2.3.2 Loren Stafford wrote: > > I put it in the Collector: > > "Catalog error on new CMF install on Zope 2.3.2b1" has been submitted. > > For future reference, the issue number is: 2172 > > -- Loren > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Chris Withers > > Sent: Wednesday, April 18, 2001 14:03 > > To: marc lindahl; Zope-CMF@zope.org > > Subject: Re: [Zope-CMF] object does not support item deletion > > > > > > > I got that too... > > > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it > > out. > > > It was working under 2.3.1, and then it wasn't... :( > > > > Can you stick it in the Zope collector? > > It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S > > > > cheers, > > > > Chris > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > > > _______________________________________________ > 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 ivaldes@hal-pc.org Thu Apr 19 05:15:38 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Wed, 18 Apr 2001 23:15:38 -0500 Subject: [Zope-CMF] Eureka, polling now! Message-ID: <3ADE666A.8DD9354D@hal-pc.org> This is GREAT! Installed Zope, installed CMF, got PortalPoll example working. Would have been tough without the recent fixes on this list. Suggestion: take out the initial part of the tutorial that is redundant and before the Step-by-step one: saves a lot of time. I think I'm on my way now with this. -- IV From marc@bowery.com Thu Apr 19 06:33:35 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 19 Apr 2001 01:33:35 -0400 Subject: [Zope-CMF] Eureka, polling now! In-Reply-To: <3ADE666A.8DD9354D@hal-pc.org> Message-ID: Personally, I disagree. The first part gives more general understanding, good for generalizing the tutorial for making other stuff. But it could be a little more 'synchronized'.... > From: Ignacio Valdes > > Suggestion: take > out the initial part of the tutorial that is redundant and before the > Step-by-step one: saves a lot of time. From howard@exoweb.net Thu Apr 19 07:42:48 2001 From: howard@exoweb.net (Howard Zhang) Date: Thu, 19 Apr 2001 14:42:48 +0800 Subject: [Zope-CMF] pickle error Message-ID: Exoweb - Web technology solutions=09 Hi there I have a problem when i use CMF. After i add portal imgae or file in portal folder, then i view any portal document in the portal folder I get this error message. cPickle.PicklingError Cannot pickle objects Traceback (innermost last): File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 235, in commit File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Transaction.py, line 300, in commit File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Connection.py, line 375, in commit (Info: (('Products.CMFCore.PortalFolder', 'PortalFolder'), '\000\000\000\000\000\000)s', '')) cPickle.PicklingError: (see above) I looked portal image and file source. Maybe error is caused by icon or edit=20 my zope version is zope 2.3.1 and cmf 1.0 Best regards, Howard Chang > t =09 +86 (10) 65918490 x 804=09 Partner / Senior Consultant f +86 (10) 65918492=09 Exoweb - Web technology solutions m =09 +86 13801039503=09 From chrisw@nipltd.com Thu Apr 19 10:17:39 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Apr 2001 10:17:39 +0100 Subject: [Zope-CMF] Control Panel needed to add types? References: <5E5EEA049DAED31195A10008C7A4385B1FFF2C@skye.cellnet.co.uk> <3ADDDB0F.78EA7164@hal-pc.org> Message-ID: <3ADEAD33.3BA0E2A8@nipltd.com> Ignacio Valdes wrote: > > I run my Zope site on my ISP for convenience. Do you have to have Control Panel > access to add or modify portal_types? Thanks, -- IV I don't think so... portal_types just lives in your portal instance... cheers, Chris From gitte@mmmanager.org Thu Apr 19 10:23:19 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 19 Apr 2001 11:23:19 +0200 Subject: [Zope-CMF] Poll Product - cannot be used by anonymous user ? Message-ID: <987672234.10033.2.camel@squidbitch> Hello, I have got my polls up and running. Now I have added a poll_box to my site (just as the news_box) to list my polls. This is going okay. Now I can only vote in these polls when I am logged in as manager - not as a member or as anonymous user. I have changed the proxy role in the EditDone method to manager (just as the tutorial said) but it still isn't working. Anybody with a good solution ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Thu Apr 19 11:37:17 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 19 Apr 2001 12:37:17 +0200 Subject: [Zope-CMF] Getting a portal folder as Root Message-ID: <987676669.11678.0.camel@squidbitch> Hello, I have searched the mailinglist archieves to find and answer to subject but the answers there haven't really been useful to me. I would really really like to have my portal online at my domain but haven't found a solotion for this. I need to "change" the root folder inside Zope from a "normal" folder to a portal folder. I know this can't be done. I have tried with SiteRoot, VirtualSiteRoot and VirtualSiteMonster but none of these products does what I need. I only use ZServer so no rewrite rules for me. Any ideas ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From gitte@mmmanager.org Thu Apr 19 12:17:45 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 19 Apr 2001 13:17:45 +0200 Subject: [Zope-CMF] Getting a portal folder as Root In-Reply-To: <20010419124618.I3025@lenin.jamkit.com> References: <987676669.11678.0.camel@squidbitch> <20010419124618.I3025@lenin.jamkit.com> Message-ID: <987679096.11676.1.camel@squidbitch> On 19 Apr 2001 12:46:19 +0100, seb bacon wrote: > SiteAccess really is what you need, although i must admit i've never > really got to the bottom of it. but i've got it doing exactly what > you need already. read the info page: > > http://www.zope.org/Members/4am/SiteAccess2/info > > VirtualSiteMonster does the same thing in a different way, but there's > less docs for it. > > seb Maybe I don't get it - but to me it looks like this product is used with Apache ? I would try to avoid this if it is possible Gitte > > * Gitte Wange [010419 12:39]: > > Hello, > > > > I have searched the mailinglist archieves to find and answer to subject > > but the answers there haven't really been useful to me. > > > > I would really really like to have my portal online at my domain but > > haven't found a solotion for this. I need to "change" the root folder > > inside Zope from a "normal" folder to a portal folder. I know this can't > > be done. I have tried with SiteRoot, VirtualSiteRoot and > > VirtualSiteMonster but none of these products does what I need. > > > > I only use ZServer so no rewrite rules for me. > > > > Any ideas ? > > -- > > [] j a m k i t > > seb bacon > T: 020 7749 7218 > F: 020 7739 8683 > M: 07968 301 336 > W: www.jamkit.com From davew@digicool.com Thu Apr 19 14:23:09 2001 From: davew@digicool.com (Dave Woolston) Date: Thu, 19 Apr 2001 09:23:09 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) Message-ID: <002301c0c8d3$e1536ed0$0201000a@D92WIL> [marc lindahl wrote]: > OK, I got the portal poll to show up. Next, I log in as a different member > of the portal, and go to it. When I voted, I got this error: > > Error type: Unauthorized > Error value: User test is not allowed to access > /junk/bowery/Members/marc/testpoll/propertysheets, which is contained in > /junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',), > would need to have one of the following roles: > ('Owner', 'Manager', 'Reviewer'). > > Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes > > > And, fixed it by, in > /PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the > proxy roles so that Manager was selected. That fixed it. > > Now, maybe someone that knows what they're doing can tell me why :) Marc, Thanks for pointing this out. The reason why you see this is because the vote tallys are stored as properties on the poll instance. So when you vote as user 'test', you are actually updating properties on an object that belongs to someone else (even though that object is published). The main goal of the tutorial is to guide a user into making *their* content *portal content*, and not to necessarily introduce a new poll type of content. This shows that we probably didn't have a perfect example. Normally, users will not be updating properties on other user's content. What may be more likely is that they would be discussing or commenting on someone else's content - in either case, not directly modifying the content. However, I will update the tutorial to indicate this. Thanks again for bringing this up. Dave Note: Gitte, I have copied you because I think this will solve your problem as well. ================================= Dave Woolston davew@digicool.com Digital Creations www.digicool.com (716) 262-4715 From mj@digicool.com Thu Apr 19 15:08:57 2001 From: mj@digicool.com (Martijn Pieters) Date: Thu, 19 Apr 2001 16:08:57 +0200 Subject: [Zope-CMF] Getting a portal folder as Root In-Reply-To: <987679096.11676.1.camel@squidbitch>; from gitte@mmmanager.org on Thu, Apr 19, 2001 at 01:17:45PM +0200 References: <987676669.11678.0.camel@squidbitch> <20010419124618.I3025@lenin.jamkit.com> <987679096.11676.1.camel@squidbitch> Message-ID: <20010419160857.B7892@zopatista.com> --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 19, 2001 at 01:17:45PM +0200, Gitte Wange wrote: > On 19 Apr 2001 12:46:19 +0100, seb bacon wrote: > > SiteAccess really is what you need, although i must admit i've never > > really got to the bottom of it. but i've got it doing exactly what > > you need already. read the info page: > > > > http://www.zope.org/Members/4am/SiteAccess2/info > > > > VirtualSiteMonster does the same thing in a different way, but there's > > less docs for it. > > > > seb > > Maybe I don't get it - but to me it looks like this product is used with > Apache ? > > I would try to avoid this if it is possible No, you can also use an Access Rule to manipulate the traversal stack (which VHM uses to reset the paths). I attached the Python Script that I use as an access rule for my server; it makes sure that URLs coming through stunnel (HTTPS SSL encryption) are correct, redirects /manage access to the HTTPS port, and rewrites URLs for my virtal domains. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=AccessRule ## Script (Python) "AccessRule" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Rewrite virtual host URLs to use the VHM; manage stunnel HTTPS protocol ## req = context.REQUEST resps = req.RESPONSE stack = req['TraversalRequestNameStack'] # Manage HTTPS protocol (via stunnel) if req['REMOTE_ADDR'] == '127.0.0.10': # Special stunnel connection ip prot = 'https' else: prot = 'http' # /manage URLs *must* be accessed through https if prot == 'http' and len(stack) > 0: if ( stack[-1][:6] == 'manage' or stack[-1][:13] == 'ZPythonScript' or stack[-1][:9] == 'ZBindings' ): # Note that req.URL isn't formed yet; we are just starting the traverse. url = 'https:%s%s' % (req['BASE0'][5:], req['PATH_TRANSLATED']) if req['QUERY_STRING']: url = '%s?%s' % (url, req['QUERY_STRING']) raise 'Redirect', url # Manage Virtual Hosts if req.has_key('HTTP_HOST'): host = req['HTTP_HOST'] else: host = 'www.zopatista.com' # Default host name port = req['SERVER_PORT'] if port != '80': host = '%s:%s' % (host, port) # The default host comes from the root Folder vhost_folder = [] # The mjpieters.* domain comes from the vhosts/mjpieters Folder if host[-13:] in ('mjpieters.com', 'mjpieters.org', 'mjpieters.net'): vhost_folder = ['vhosts', 'mjpieters'] if vhost_folder: # Reverse path vhost_folder.reverse() # Extend the stack with VH info stack.extend(['VirtualHostRoot']) stack.extend(vhost_folder) # Extend the stack to include host information and marker stack.extend([host, prot, 'VirtualHostBase']) --BOKacYhQ+x31HxR3-- From gregory.lambert@bigfoot.com Thu Apr 19 15:20:02 2001 From: gregory.lambert@bigfoot.com (Gregory Lambert) Date: Thu, 19 Apr 2001 15:20:02 +0100 Subject: [Zope-CMF] ZMySQLDA __init__.py initialisation problem. In-Reply-To: Message-ID: Hi! I am really stuck on this one. I am trying connect my wonderful Zope/CMF server (running under Linux Redhat 6.1) to my MySQL database (tested and working) and I don't seem to be able to start the Zope server without the following error: 2001-05-20T13:06:40 ERROR(200) Zope Couldn't import Products.ZMySQLDA Traceback (innermost last): File /home/zope/Zope-2.3.1_dev/Zope-2.3.1-linux2-x86/lib/python/OFS/Application.p y, line 536, in import_products (Object: string) File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/__init__.py, line 92, in ? File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/DA.py, line 92, in ? File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/db.py, line 89, in ? ImportError: _mysql: init failed I have successfully re-compiled the tar for the _mysql extension as referenced by the URL: http://www.zope.org/Members/mordred/ZMySQLDA/INSTALL. Also, I have successfully manually imported the _mysql module directly with the python command line interface - no apparent problems there. I have tried all of these procecures on my Win32 machine and was able to import the product and successfully connect to my MySQL database. I just need to get our "production" Linux machine working now.... Can anyone help? Gregory Lambert Camwood Consulting UK -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of zope-cmf-request@zope.org Sent: 19 April 2001 14:19 To: zope-cmf@zope.org Subject: Zope-CMF digest, Vol 1 #467 - 17 msgs Send Zope-CMF mailing list submissions to zope-cmf@zope.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.zope.org/mailman/listinfo/zope-cmf or, via email, send a message with subject or body 'help' to zope-cmf-request@zope.org You can reach the person managing the list at zope-cmf-admin@zope.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Zope-CMF digest..." Today's Topics: 1. RE: object does not support item deletion (Loren Stafford) 2. Re: object does not support item deletion (Chris Withers) 3. Re: Re: Portal Poll Product (also Re: [PTK(252)[2]) (marc lindahl) 4. Re: Re: Portal Poll Product (also Re: [PTK(252)[2]) (Ignacio Valdes) 5. Re: Re: Portal Poll Product (also Re: [PTK(252)[2]) (Ignacio Valdes) 6. Re: Re: Portal Poll Product (also Re: [PTK(252)[2]) (Ken Manheimer) 7. Another Portal Poll Problem (and fix) (marc lindahl) 8. RE: object does not support item deletion (Loren Stafford) 9. Re: object does not support item deletion (Chris McDonough) 10. Eureka, polling now! (Ignacio Valdes) 11. Re: Eureka, polling now! (marc lindahl) 12. pickle error (Howard Zhang) 13. Re: Control Panel needed to add types? (Chris Withers) 14. Poll Product - cannot be used by anonymous user ? (Gitte Wange) 15. Getting a portal folder as Root (Gitte Wange) 16. Re: Getting a portal folder as Root (Gitte Wange) 17. Re: Portal Poll Product (also Re: [PTK(252)[2]) (Dave Woolston) --__--__-- Message: 1 From: "Loren Stafford" To: Subject: RE: [Zope-CMF] object does not support item deletion Date: Wed, 18 Apr 2001 13:51:28 -0700 I made a clean install of 2.3.1 and was successful at installing CMF there, too. -- Loren > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of marc lindahl > Sent: Wednesday, April 18, 2001 13:04 > To: Zope-CMF@zope.org > Subject: Re: [Zope-CMF] object does not support item deletion > > > That was it. I 'updated' back to 2.3.1 and now it works. > > > > >> From: "Loren Stafford" > >> Date: Wed, 18 Apr 2001 12:17:55 -0700 > >> To: > >> Subject: [Zope-CMF] object does not support item deletion > >> > >> I wanted to try out the CMF for the first time today. So, on > NT 4, I made a > >> fresh installation of Zope 2.3.2b1, verified that it was > working, installed > >> the three CMF 1.0 products in the Products directory, restarted Zope, > >> verified that the products installed correctly, created a CMF > Site in the > >> root directory (called MorphicsCMF), then tried to navigate > directly to the > >> CMF Site by entering the url http://morphicsweb:8080/MorphicsCMF in the > >> browser URL box. The CMF Site is, of course, completely empty, but I > >> expected to see at least the default interfaces for adding members and > >> content. However, I got nothing but an error. Following is the > error and > >> traceback that resulted. > >> > >> The error occurs in catalog.py where it is trying to delete sort > >> specifications from kw. Apparently it's trying to display the list of > >> current news items, which should be empty, as I haven't added any yet. > >> > >> Is this a known problem, or did I fail to configure something > correctly? > >> > >> -- Thanks > >> -- Loren > >> [snipped the traceback] --__--__-- Message: 2 From: "Chris Withers" To: "marc lindahl" , Subject: Re: [Zope-CMF] object does not support item deletion Date: Wed, 18 Apr 2001 22:03:00 +0100 > I got that too... > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it out. > It was working under 2.3.1, and then it wasn't... :( Can you stick it in the Zope collector? It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S cheers, Chris --__--__-- Message: 3 Date: Wed, 18 Apr 2001 17:07:05 -0400 Subject: Re: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) From: marc lindahl CC: I had this problem too... following the tutorial exactly. What fixed it for me was in portal_types/Poll, change Meta type to PortalPollType, which matches the meta type in PortalPollClass/propertysheets/basic looks like a typo in the tutorial? >> 2) You may have the incorrect meta type > > You got it spot on :-). I had uppercase in one place (ZClass) and lowercase > in another (portal_types). Thanks very much. --__--__-- Message: 4 Date: Wed, 18 Apr 2001 16:28:41 -0500 From: Ignacio Valdes To: marc lindahl CC: zope-cmf@zope.org Subject: Re: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what the finished product looks like? Anyone have a production CMF site other than dogbowl going that I could take a look at? Please send the URL if so. -- IV marc lindahl wrote: > I had this problem too... following the tutorial exactly. What fixed it for > me was in portal_types/Poll, change Meta type to PortalPollType, which > matches the meta type in PortalPollClass/propertysheets/basic > > looks like a typo in the tutorial? > > >> 2) You may have the incorrect meta type > > > > You got it spot on :-). I had uppercase in one place (ZClass) and lowercase > > in another (portal_types). Thanks very much. > > _______________________________________________ > 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 --__--__-- Message: 5 Date: Wed, 18 Apr 2001 16:36:12 -0500 From: Ignacio Valdes To: zope-cmf@zope.org Subject: Re: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) My message was kind of rude, let me add: 'Please, because this is really a great piece of work and your efforts are very appreciated.' -- IV Ignacio Valdes wrote: > Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what > the finished product looks like? Anyone have a production CMF site other than dogbowl > going that I could take a look at? Please send the URL if so. -- IV > > --__--__-- Message: 6 Date: Wed, 18 Apr 2001 17:46:33 -0400 (EDT) From: Ken Manheimer To: Ignacio Valdes cc: marc lindahl , zope-cmf@zope.org Subject: Re: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) On Wed, 18 Apr 2001, Ignacio Valdes wrote: > Could the dogbowl owner please put PortalPoll onto the dogbowl site so I can see what > the finished product looks like? Anyone have a production CMF site other than dogbowl > going that I could take a look at? Please send the URL if so. -- IV This is a good idea, but i'm afraid to have to say that probably won't happen at least for a couple of days! Most of the team is currently on the road for a consulting obligation, and those of us remaining are swamped, don't have near the time to scope out and make the change. (BTW, i appreciate your rejoinder that you didn't mean to be rude. I didn't interpret it as rude in the first place, but it does feel good to hear recognition of the effort we're putting into the product, in general, and understanding that this kind of support isn't to be taken for granted...) (And i am sorry we couldn't just oblige, this time!) Ken Manheimer klm@digicool.com --__--__-- Message: 7 Date: Wed, 18 Apr 2001 18:24:49 -0400 From: marc lindahl To: Subject: [Zope-CMF] Another Portal Poll Problem (and fix) OK, I got the portal poll to show up. Next, I log in as a different member of the portal, and go to it. When I voted, I got this error: Error type: Unauthorized Error value: User test is not allowed to access /junk/bowery/Members/marc/testpoll/propertysheets, which is contained in /junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',), would need to have one of the following roles: ('Owner', 'Manager', 'Reviewer'). Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes And, fixed it by, in /PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the proxy roles so that Manager was selected. That fixed it. Now, maybe someone that knows what they're doing can tell me why :) --__--__-- Message: 8 From: "Loren Stafford" To: "Chris Withers" , "marc lindahl" , Subject: RE: [Zope-CMF] object does not support item deletion Date: Wed, 18 Apr 2001 16:30:15 -0700 I put it in the Collector: "Catalog error on new CMF install on Zope 2.3.2b1" has been submitted. For future reference, the issue number is: 2172 -- Loren > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Chris Withers > Sent: Wednesday, April 18, 2001 14:03 > To: marc lindahl; Zope-CMF@zope.org > Subject: Re: [Zope-CMF] object does not support item deletion > > > > I got that too... > > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it > out. > > It was working under 2.3.1, and then it wasn't... :( > > Can you stick it in the Zope collector? > It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S > > cheers, > > Chris > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > --__--__-- Message: 9 Date: Wed, 18 Apr 2001 23:48:44 -0400 From: Chris McDonough To: Loren Stafford Cc: Chris Withers , marc lindahl , Zope-CMF@zope.org Subject: Re: [Zope-CMF] object does not support item deletion Here's a patch to fix this: *** Catalog.py 2001/04/17 17:01:04 1.60.2.10 --- Catalog.py 2001/04/19 03:43:23 *************** *** 635,646 **** # Compute "sort_index", which is a sort index, or none: if kw.has_key('sort-on'): sort_index=kw['sort-on'] - del kw['sort-on'] elif hasattr(self, 'sort-on'): sort_index=getattr(self, 'sort-on') elif kw.has_key('sort_on'): sort_index=kw['sort_on'] - del kw['sort_on'] else: sort_index=None sort_order='' if sort_index is not None: --- 635,644 ---- This patch will be present in the final release version of 2.3.2 Loren Stafford wrote: > > I put it in the Collector: > > "Catalog error on new CMF install on Zope 2.3.2b1" has been submitted. > > For future reference, the issue number is: 2172 > > -- Loren > > > -----Original Message----- > > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > > Of Chris Withers > > Sent: Wednesday, April 18, 2001 14:03 > > To: marc lindahl; Zope-CMF@zope.org > > Subject: Re: [Zope-CMF] object does not support item deletion > > > > > > > I got that too... > > > I think it was updating from 2.3.1 to 2.3.2b1, I'm trying to figure it > > out. > > > It was working under 2.3.1, and then it wasn't... :( > > > > Can you stick it in the Zope collector? > > It sounds like the fun Chris M is having with ZCatalog isn't over yet :-S > > > > cheers, > > > > Chris > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > > feature requests > > > > _______________________________________________ > 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 --__--__-- Message: 10 Date: Wed, 18 Apr 2001 23:15:38 -0500 From: Ignacio Valdes To: zope-cmf@zope.org Subject: [Zope-CMF] Eureka, polling now! This is GREAT! Installed Zope, installed CMF, got PortalPoll example working. Would have been tough without the recent fixes on this list. Suggestion: take out the initial part of the tutorial that is redundant and before the Step-by-step one: saves a lot of time. I think I'm on my way now with this. -- IV --__--__-- Message: 11 Date: Thu, 19 Apr 2001 01:33:35 -0400 Subject: Re: [Zope-CMF] Eureka, polling now! From: marc lindahl To: Personally, I disagree. The first part gives more general understanding, good for generalizing the tutorial for making other stuff. But it could be a little more 'synchronized'.... > From: Ignacio Valdes > > Suggestion: take > out the initial part of the tutorial that is redundant and before the > Step-by-step one: saves a lot of time. --__--__-- Message: 12 Date: Thu, 19 Apr 2001 14:42:48 +0800 From: "Howard Zhang" To: Cc: "Bjorn Stabell" , "Enyue Jia" , "Will Zhang" Subject: [Zope-CMF] pickle error Exoweb - Web technology solutions=09 Hi there I have a problem when i use CMF. After i add portal imgae or file in portal folder, then i view any portal document in the portal folder I get this error message. cPickle.PicklingError Cannot pickle objects Traceback (innermost last): File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /home/howard/zope-dc-2.3.1/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/howard/zope-dc-2.3.1/lib/python/Zope/__init__.py, line 235, in commit File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Transaction.py, line 300, in commit File /home/howard/zope-dc-2.3.1/lib/python/ZODB/Connection.py, line 375, in commit (Info: (('Products.CMFCore.PortalFolder', 'PortalFolder'), '\000\000\000\000\000\000)s', '')) cPickle.PicklingError: (see above) I looked portal image and file source. Maybe error is caused by icon or edit=20 my zope version is zope 2.3.1 and cmf 1.0 Best regards, Howard Chang > t =09 +86 (10) 65918490 x 804=09 Partner / Senior Consultant f +86 (10) 65918492=09 Exoweb - Web technology solutions m =09 +86 13801039503=09 --__--__-- Message: 13 Date: Thu, 19 Apr 2001 10:17:39 +0100 From: Chris Withers Organization: New Information Paradigms To: Ignacio Valdes CC: zope-cmf@zope.org Subject: Re: [Zope-CMF] Control Panel needed to add types? Ignacio Valdes wrote: > > I run my Zope site on my ISP for convenience. Do you have to have Control Panel > access to add or modify portal_types? Thanks, -- IV I don't think so... portal_types just lives in your portal instance... cheers, Chris --__--__-- Message: 14 From: Gitte Wange To: zope-cmf@zope.org Date: 19 Apr 2001 11:23:19 +0200 Subject: [Zope-CMF] Poll Product - cannot be used by anonymous user ? Hello, I have got my polls up and running. Now I have added a poll_box to my site (just as the news_box) to list my polls. This is going okay. Now I can only vote in these polls when I am logged in as manager - not as a member or as anonymous user. I have changed the proxy role in the EditDone method to manager (just as the tutorial said) but it still isn't working. Anybody with a good solution ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ --__--__-- Message: 15 From: Gitte Wange To: zope-cmf@zope.org Date: 19 Apr 2001 12:37:17 +0200 Subject: [Zope-CMF] Getting a portal folder as Root Hello, I have searched the mailinglist archieves to find and answer to subject but the answers there haven't really been useful to me. I would really really like to have my portal online at my domain but haven't found a solotion for this. I need to "change" the root folder inside Zope from a "normal" folder to a portal folder. I know this can't be done. I have tried with SiteRoot, VirtualSiteRoot and VirtualSiteMonster but none of these products does what I need. I only use ZServer so no rewrite rules for me. Any ideas ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ --__--__-- Message: 16 Subject: Re: [Zope-CMF] Getting a portal folder as Root From: Gitte Wange To: seb bacon Cc: zope-cmf@zope.org Date: 19 Apr 2001 13:17:45 +0200 On 19 Apr 2001 12:46:19 +0100, seb bacon wrote: > SiteAccess really is what you need, although i must admit i've never > really got to the bottom of it. but i've got it doing exactly what > you need already. read the info page: > > http://www.zope.org/Members/4am/SiteAccess2/info > > VirtualSiteMonster does the same thing in a different way, but there's > less docs for it. > > seb Maybe I don't get it - but to me it looks like this product is used with Apache ? I would try to avoid this if it is possible Gitte > > * Gitte Wange [010419 12:39]: > > Hello, > > > > I have searched the mailinglist archieves to find and answer to subject > > but the answers there haven't really been useful to me. > > > > I would really really like to have my portal online at my domain but > > haven't found a solotion for this. I need to "change" the root folder > > inside Zope from a "normal" folder to a portal folder. I know this can't > > be done. I have tried with SiteRoot, VirtualSiteRoot and > > VirtualSiteMonster but none of these products does what I need. > > > > I only use ZServer so no rewrite rules for me. > > > > Any ideas ? > > -- > > [] j a m k i t > > seb bacon > T: 020 7749 7218 > F: 020 7739 8683 > M: 07968 301 336 > W: www.jamkit.com --__--__-- Message: 17 From: "Dave Woolston" To: , Cc: Date: Thu, 19 Apr 2001 09:23:09 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) [marc lindahl wrote]: > OK, I got the portal poll to show up. Next, I log in as a different member > of the portal, and go to it. When I voted, I got this error: > > Error type: Unauthorized > Error value: User test is not allowed to access > /junk/bowery/Members/marc/testpoll/propertysheets, which is contained in > /junk/bowery/Members/marc/testpoll. The user, whose roles are ('Member',), > would need to have one of the following roles: > ('Owner', 'Manager', 'Reviewer'). > > Innermost method: /junk/bowery/Members/marc/testpoll/processEmbeddedVotes > > > And, fixed it by, in > /PortalPollClass/propertysheets/methods/processEmbeddedVotes, changed the > proxy roles so that Manager was selected. That fixed it. > > Now, maybe someone that knows what they're doing can tell me why :) Marc, Thanks for pointing this out. The reason why you see this is because the vote tallys are stored as properties on the poll instance. So when you vote as user 'test', you are actually updating properties on an object that belongs to someone else (even though that object is published). The main goal of the tutorial is to guide a user into making *their* content *portal content*, and not to necessarily introduce a new poll type of content. This shows that we probably didn't have a perfect example. Normally, users will not be updating properties on other user's content. What may be more likely is that they would be discussing or commenting on someone else's content - in either case, not directly modifying the content. However, I will update the tutorial to indicate this. Thanks again for bringing this up. Dave Note: Gitte, I have copied you because I think this will solve your problem as well. ================================= Dave Woolston davew@digicool.com Digital Creations www.digicool.com (716) 262-4715 --__--__-- _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests End of Zope-CMF Digest From gitte@mmmanager.org Thu Apr 19 15:20:54 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 19 Apr 2001 16:20:54 +0200 Subject: [Zope-CMF] Creating Meta-Type 'How-To' from Meta-Type 'Document' Message-ID: <987690178.11676.3.camel@squidbitch> Hello, I have tried to do subject - but now with great success. The problem is that i try to list all documents of metatype How-To but nothing shows up. I added a new type in the portal types based on the default document type, changed the metatype to How-To and that's that. I added som documents of type How-To but and made a script to list them. This is the a part of the script: That should - be my opinion - do it. Anything I have missed ? -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ From dan@control.com Thu Apr 19 15:23:49 2001 From: dan@control.com (Dan L. Pierson) Date: Thu, 19 Apr 2001 10:23:49 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: <01a701c0c82a$16eebc20$0501a8c0@OC> Message-ID: <1374535408.987690229@daystar.control.com> --On Wednesday, April 18, 2001 06:07:45 PM +0100 Tim Hicks wrote: > One final question (for now :-) ). Are the CMF classes documented > anywhere (other than looking at the source)? There are loads of them > there, but I don't really know what they all buy me... hence my questions > about CatalogAware and *Tools. I did have a look around cmf.zope.org, > but to no avail. Have you noticed that the CMF API docs appear in the Zope help system? Click on the Help link or button in the top right of the right management pane and open "CMF Core Help". dan From dan@control.com Thu Apr 19 15:26:11 2001 From: dan@control.com (Dan L. Pierson) Date: Thu, 19 Apr 2001 10:26:11 -0400 Subject: [Zope-CMF] Various newbie questions. In-Reply-To: <3ADDD9F4.F1CA2DAF@hal-pc.org> Message-ID: <1380115408.987690371@daystar.control.com> Not quite. Portal Folders support portal based content filtering, etc. Since they may change in the future, I'd take the rule of thumb that you should use a portal folder any place that you want portal content creation, publishing, etc. to propagate correctly. --On Wednesday, April 18, 2001 01:16:21 PM -0500 Ignacio Valdes wrote: > In my completely un-informed opinion: nothing I guess? -- IV > > Jeff wrote: > >> I am also very new to this, but having great fun! >> In your response to question 3/4, what is the difference between adding a >> 'Portal Folder' or just a normal 'Folder'? From chrisw@nipltd.com Thu Apr 19 15:39:17 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Apr 2001 15:39:17 +0100 Subject: [Zope-CMF] object does not support item deletion References: <3ADE601C.99BC0B6@digicool.com> Message-ID: <3ADEF895.DD532DA5@nipltd.com> Chris McDonough wrote: > > # Compute "sort_index", which is a sort index, or none: > if kw.has_key('sort-on'): > sort_index=kw['sort-on'] > - del kw['sort-on'] Surely you added that del in for a reason though? cheers, Chris From chrism@digicool.com Thu Apr 19 16:14:19 2001 From: chrism@digicool.com (Chris McDonough) Date: Thu, 19 Apr 2001 11:14:19 -0400 Subject: [Zope-CMF] object does not support item deletion References: <3ADE601C.99BC0B6@digicool.com> <3ADEF895.DD532DA5@nipltd.com> Message-ID: <002001c0c8e3$6a9d02a0$a8063bd0@kurtz> I did. It was wrong. ----- Original Message ----- From: "Chris Withers" To: "Chris McDonough" Cc: "Loren Stafford" ; "marc lindahl" ; Sent: Thursday, April 19, 2001 10:39 AM Subject: Re: [Zope-CMF] object does not support item deletion > Chris McDonough wrote: > > > > # Compute "sort_index", which is a sort index, or none: > > if kw.has_key('sort-on'): > > sort_index=kw['sort-on'] > > - del kw['sort-on'] > > Surely you added that del in for a reason though? > > cheers, > > Chris > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > From chrisw@nipltd.com Thu Apr 19 16:23:54 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 19 Apr 2001 16:23:54 +0100 Subject: [Zope-CMF] object does not support item deletion References: <3ADE601C.99BC0B6@digicool.com> <3ADEF895.DD532DA5@nipltd.com> <002001c0c8e3$6a9d02a0$a8063bd0@kurtz> Message-ID: <3ADF030A.63DF8696@nipltd.com> 'nuff said :-) Chris McDonough wrote: > > I did. It was wrong. > > ----- Original Message ----- > From: "Chris Withers" > To: "Chris McDonough" > Cc: "Loren Stafford" ; "marc lindahl" > ; > Sent: Thursday, April 19, 2001 10:39 AM > Subject: Re: [Zope-CMF] object does not support item deletion > > > Chris McDonough wrote: > > > > > > # Compute "sort_index", which is a sort index, or none: > > > if kw.has_key('sort-on'): > > > sort_index=kw['sort-on'] > > > - del kw['sort-on'] > > > > Surely you added that del in for a reason though? > > > > cheers, > > > > Chris > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > > From jeff@thecolemans.ws Thu Apr 19 18:04:13 2001 From: jeff@thecolemans.ws (Jeff) Date: Thu, 19 Apr 2001 12:04:13 -0500 Subject: [Zope-CMF] News box on cmf.zope.org Message-ID: <058501c0c8f2$d46fee40$1001a8c0@jeff2k> This is a multi-part message in MIME format. ------=_NextPart_000_0577_01C0C8C8.D9748380 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The news box on cmf.zope.org is not showing the most recent news items = (newest in box is 2001-04-02 newest on recent_news is 2001-04-12) I have checked my local news_box method and it looks like it should = work. Any ideas? Jeff ------=_NextPart_000_0577_01C0C8C8.D9748380 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The news box on cmf.zope.org is not = showing the=20 most recent news items (newest in box is 2001-04-02 newest on = recent_news is=20 2001-04-12)
 
I have checked my local news_box method = and it=20 looks like it should work.
Any ideas?
 
Jeff
------=_NextPart_000_0577_01C0C8C8.D9748380-- From seb@jamkit.com Thu Apr 19 19:30:00 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Apr 2001 19:30:00 +0100 Subject: [Zope-CMF] PortalContent permissions In-Reply-To: <20010417162735.B3235@lenin.jamkit.com>; from seb@jamkit.com on Tue, Apr 17, 2001 at 04:27:37PM +0100 References: <20010417094419.B3026@lenin.jamkit.com> <20010417162735.B3235@lenin.jamkit.com> Message-ID: <20010419192957.A6438@lenin.jamkit.com> * seb bacon [010417 16:59]: > > > > > > > What do you think it should do? I was thinking it should first look for > > > > a "view" action, but if the user doesn't have access to it, it should > > > > look through the options in order and choose the first action the user > > > > is allowed to access. > > > > > > I can't think of any benefits to having a default view called 'view' - > > > it might be better to rely purely on the rank of the action, rather > > > than hardcoding in an exception to the rule, I think. > > > > What *is* hardcoded is the "view" method of all portal > > content and the fact that it is exposed in URL's. But we could find no > > way around that. > > > > I'm not sure I follow - I can't see where 'view' is hardcoded other > than in attributes such as: > > view = index_html # Necessary for catalog searches. > > ...where index_html is computed as needed anyway. Why can't 'view' just > be aliased to whatever the first action filtered by permission is, as > it would be in this case? Hmm, well I tried implementing this, but keep coming up against problems too great for me to wrap my brains round. The problem is that whenever I try to check the user's permissions inside _index_html, the user checked against is always 'Anonymous User'. I think this is something to do with not acquiring the correct security context, but I'm not sure. I'm in way over my head here, but I'd really like to get this implemented...any help appreciated :-) my code is posted below. cheers, seb -------------------------- def _index_html(self): ''' Invokes the action identified by the id "view" or the first action. ''' #import pdb;pdb.set_trace() ti = self.getTypeInfo() pm = getToolByName(self, 'portal_membership', None) print "object %s, id %s" % (str(self), ti.getId()) if ti is not None: actions = ti.getActions() if actions: for action in actions: permissions = action['permissions'] verified = 0 if not permissions: # This action requires no extra permissions. verified = 1 else: for permission in permissions: # The user must be able to match at least one of # the listed permissions. if pm.checkPermission(permission, self): verified = 1 break if verified: path = action['action'] view = self.restrictedTraverse(path) return view raise 'Not Found', ('No default view defined for type "%s"' % ti.getId()) else: raise 'Not Found', ('Cannot find default view for "%s"' % string.join( self.getPhysicalPath() ) ) From shane@digicool.com Thu Apr 19 20:17:00 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 19 Apr 2001 15:17:00 -0400 (EDT) Subject: [Zope-CMF] PortalContent permissions In-Reply-To: <20010419192957.A6438@lenin.jamkit.com> Message-ID: On Thu, 19 Apr 2001, seb bacon wrote: > Hmm, well I tried implementing this, but keep coming up against > problems too great for me to wrap my brains round. The problem is > that whenever I try to check the user's permissions inside > _index_html, the user checked against is always 'Anonymous User'. I > think this is something to do with not acquiring the correct security > context, but I'm not sure. I'm in way over my head here, but I'd > really like to get this implemented...any help appreciated :-) I see now why this won't quite work. ZPublisher works in this order: 1. Finds the requested object. 2. Finds the innermost user folder that applies to the object. 3. Authenticates the user, then checks whether the user is allowed to access the object. 4. traverse() returns the object. 5. publish_module then uses mapply() to process the object. The _index_html computation occurs at step 1. We would need to be able to insert logic between steps 3 and 5. Perhaps we should try something else: mapply() looks for specific attributes to discover the function signature and there are places throughout Zope that fake function signatures for mapply. If index_html manifested itself as an object with a computed function signature, it could add logic to step 5. index_html's apparent function signature would be the function signature of the skinned object (which in turn is nearly always faked as well... sigh.) I've included a rough cut below based on your code. Shane -------- 8-< --------- from ExtensionClass import Base # Makes ComputedAttributes work from AccessControl import getSecurityManager (...) class PortalContent: (...) def _index_html(self): ''' Invokes the action identified by the id "view" or the first action. ''' return SkinnedDefaultView(self) security.declareProtected(CMFCorePermissions.View, 'index_html') index_html = ComputedAttribute(_index_html, 1) (...) class SkinnedDefaultView (Base): ''' Invokes the right skinned view after authentication is performed, providing mapply() with the info it is seeking. ''' def __init__(self, ob): # Avoid mixing up acquisition. self.__dict__['_ob'] = ob def _findSkinnedOb(self): ob = self.__dict__['_ob'] ti = ob.getTypeInfo() if ti is not None: path = ti.getActionById('view', None) if path is not None: view = ob.restrictedTraverse(path) return view actions = ti.getActions() if actions: sm = None for action in actions: verified = 0 permissions = action.get('permissions', None) if not permissions: # This action requires no extra permissions. verified = 1 else: if sm is None: sm = getSecurityManager() for permission in permissions: # The user must be able to match at least # one of the listed permissions. if sm.checkPermission(permission, ob): verified = 1 break if verified: path = action['action'] view = self.restrictedTraverse(path) return view raise 'Not Found', ('No default view defined for type "%s"' % ti.getId()) else: raise 'Not Found', ('Cannot find default view for "%s"' % string.join( ob.getPhysicalPath() ) ) def _getSkinnedOb(self): # Caches the object. s = self.__dict__.get('_skinob', None) if s is not None: return s s = self._findSkinnedOb() self.__dict__['_skinob'] = s return s def _func_code(self): return self._getSkinnedOb().func_code func_code = ComputedAttribute(_func_code, 1) def __call__(self, *args, **kw): return apply(self._getSkinnedOb(), args, kw) From seb@jamkit.com Thu Apr 19 21:46:59 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Apr 2001 21:46:59 +0100 Subject: [Zope-CMF] PortalContent permissions In-Reply-To: ; from shane@digicool.com on Thu, Apr 19, 2001 at 03:17:00PM -0400 References: <20010419192957.A6438@lenin.jamkit.com> Message-ID: <20010419214658.B6438@lenin.jamkit.com> Wow, thanks for the prompt reply. I've not got time right now to look deeper into it, but a quick go shows that there's still some acquisition problems - the rendered dtml isn't acquiring its standard_html_header, for example. I'll take a closer look tomorrow or at the weekend, although my mastery of black magic isn't quite up to scratch, I fear ;-) What do you feel about losing the 'view' default and replacing it with the first action in the actions list? Am I right that it's OK to do that? Finally, thanks again. I really appreciate the work you folks put back in to the community. seb > I see now why this won't quite work. ZPublisher works in this order: > > 1. Finds the requested object. > 2. Finds the innermost user folder that applies to the object. > 3. Authenticates the user, then checks whether the user is allowed to > access the object. > 4. traverse() returns the object. > 5. publish_module then uses mapply() to process the object. > > The _index_html computation occurs at step 1. We would need to be able to > insert logic between steps 3 and 5. > > Perhaps we should try something else: mapply() looks for specific > attributes to discover the function signature and there are places > throughout Zope that fake function signatures for mapply. If index_html > manifested itself as an object with a computed function signature, it > could add logic to step 5. index_html's apparent function signature would > be the function signature of the skinned object (which in turn is nearly > always faked as well... sigh.) > > I've included a rough cut below based on your code. > > Shane > > > -------- 8-< --------- > > from ExtensionClass import Base # Makes ComputedAttributes work > from AccessControl import getSecurityManager > > (...) > > class PortalContent: > > (...) > > def _index_html(self): > ''' > Invokes the action identified by the id "view" or the first > action. > ''' > return SkinnedDefaultView(self) > > security.declareProtected(CMFCorePermissions.View, 'index_html') > index_html = ComputedAttribute(_index_html, 1) > > (...) > > > class SkinnedDefaultView (Base): > ''' > Invokes the right skinned view after authentication is performed, > providing mapply() with the info it is seeking. > ''' > > def __init__(self, ob): > # Avoid mixing up acquisition. > self.__dict__['_ob'] = ob > > def _findSkinnedOb(self): > ob = self.__dict__['_ob'] > ti = ob.getTypeInfo() > if ti is not None: > path = ti.getActionById('view', None) > if path is not None: > view = ob.restrictedTraverse(path) > return view > actions = ti.getActions() > if actions: > sm = None > for action in actions: > verified = 0 > permissions = action.get('permissions', None) > if not permissions: > # This action requires no extra permissions. > verified = 1 > else: > if sm is None: sm = getSecurityManager() > for permission in permissions: > # The user must be able to match at least > # one of the listed permissions. > if sm.checkPermission(permission, ob): > verified = 1 > break > if verified: > path = action['action'] > view = self.restrictedTraverse(path) > return view > raise 'Not Found', ('No default view defined for type "%s"' > % ti.getId()) > else: > raise 'Not Found', ('Cannot find default view for "%s"' > % string.join( ob.getPhysicalPath() ) ) > > def _getSkinnedOb(self): > # Caches the object. > s = self.__dict__.get('_skinob', None) > if s is not None: > return s > s = self._findSkinnedOb() > self.__dict__['_skinob'] = s > return s > > def _func_code(self): > return self._getSkinnedOb().func_code > func_code = ComputedAttribute(_func_code, 1) > > def __call__(self, *args, **kw): > return apply(self._getSkinnedOb(), args, kw) > > > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From shane@digicool.com Thu Apr 19 21:25:49 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 19 Apr 2001 16:25:49 -0400 (EDT) Subject: [Zope-CMF] PortalContent permissions In-Reply-To: <20010419214658.B6438@lenin.jamkit.com> Message-ID: On Thu, 19 Apr 2001, seb bacon wrote: > Wow, thanks for the prompt reply. I've not got time right now to look > deeper into it, but a quick go shows that there's still some > acquisition problems - the rendered dtml isn't acquiring its > standard_html_header, for example. I'll take a closer look tomorrow > or at the weekend, although my mastery of black magic isn't quite up > to scratch, I fear ;-) Hmm, yes, acquisition might be a problem. I'd have to look deeper into it as well. > What do you feel about losing the 'view' default and replacing it with > the first action in the actions list? Am I right that it's OK to do > that? I'm sure people are going to want to be able to move the view action down to a different slot and retain current behavior. Again, this is not a problem for internationalization since the ID of an action is not what is displayed to the user. > Finally, thanks again. I really appreciate the work you folks put > back in to the community. Same to you! Shane From seb@jamkit.com Thu Apr 19 22:03:12 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 19 Apr 2001 22:03:12 +0100 Subject: [Zope-CMF] Composite Content In-Reply-To: <200104171659.LAA17121@tiamat.goathill.org>; from kent@tiamat.goathill.org on Tue, Apr 17, 2001 at 11:59:37AM -0500 References: <987447178.629890@fezzik.endicor.com> <20010417102621.C3026@lenin.jamkit.com> <200104171659.LAA17121@tiamat.goathill.org> Message-ID: <20010419220310.C6438@lenin.jamkit.com> On this topic, I'm finding a big stumbling block is something which is probably quite simple: CMF Types only provide for rendering themselves through methods, but if they are to be part of a CompositeContainer, they must also know how to render themselves within a DTML Method. Furthermore, CompositeComponents must render themselves in a manner dependent upon the action performed on the CompositeContainer. If the container is being viewed with an Edit action, for example, its components must know how to display themselves accordingly. I guess the best way is to add an extra action mapping for Types in the CompositeContainer properties, which maps an optional number of its actions to those of each Component, e.g. Container Component1 Component2 view view view_foo edit edit_foo edit_foo If I'm onto a Good Thing, I'm OK with implementing the mappings, I think, but I have no idea how to map actions to the way a component renders itself as part of a template: do I have to override __call__, or something? Are there any pointers for this? What does anyone else think? I'm really tired and have to go home, so that may not have made any sense ;) seb * Kent Polk [010417 18:58]: > >> Has there been any further discussion on the topic of Composite > >> Content? > > > > For my application, I need not only a CompositeContent Type, but also > > special CompositeComponent Types too. This is because Components > > participate in a Portal only through the CompositeContent which they > > compose. > > > > A CompositeContent must: > > > > - return a SearchableText which is made up of its components > > - have slots which are configurable TTW > > > > CompositeComponents: > > > > - must participate in the workflow of their container, rather > > than their own > > I think this applies, though in my app, different components need > different workflows, based on the type of component. If the container > knows enough to manage the workflow for the components, they are > likely more easily managed. > > > - must participle in catalogs only through their containers > > - have no need of extensive (i.e. DublinCore) metadata, since this, > > too, is a property of the container. > > For much of my app, cataloging will primarily be for the metadata, > and DublinCore doesn't quite cover the bases - will need additional > metadata which needs to be Acquirable through the composite framework, > which appears to agree with it being a property of the container. > > (My components will also need additional attributes and methods in > order to publish themselves...) > > > Would these requirements apply more generally? I think they > > would. > > I believe so. > > > I've implemented a CompositeContent as a Folderish PortalContent > > object, and I've implemented a Document-like CompositeComponent, and > > it all works quite well in a prototype kind of way. However, I've not > > abstracted the functionality into a helper class which can be > > implemented ad hoc TTW. > > Mind if I try to implement some of my component types with it and > provide some feedback? > > Thanks From kent@goathill.org Thu Apr 19 22:23:13 2001 From: kent@goathill.org (Kent Polk) Date: Thu, 19 Apr 2001 16:23:13 -0500 (CDT) Subject: [Zope-CMF] Composite Content In-Reply-To: <20010419220310.C6438@lenin.jamkit.com> "from seb bacon at Apr 19, 2001 10:03:12 pm" Message-ID: <200104192123.QAA01172@tiamat.goathill.org> seb bacon wrote: > On this topic, I'm finding a big stumbling block is something which is > probably quite simple: CMF Types only provide for rendering themselves > through methods, but if they are to be part of a CompositeContainer, > they must also know how to render themselves within a DTML Method. > > Furthermore, CompositeComponents must render themselves in a manner > dependent upon the action performed on the CompositeContainer. If the > container is being viewed with an Edit action, for example, its > components must know how to display themselves accordingly. > > I guess the best way is to add an extra action mapping for Types in > the CompositeContainer properties, which maps an optional number of > its actions to those of each Component, e.g. > > Container Component1 Component2 > view view view_foo > edit edit_foo edit_foo > > If I'm onto a Good Thing, I'm OK with implementing the mappings, I > think, but I have no idea how to map actions to the way a component > renders itself as part of a template: do I have to override __call__, > or something? Are there any pointers for this? > > What does anyone else think? I'm really tired and have to go home, so > that may not have made any sense ;) I've been struggling with this, in context of the CMF, also. As I've mentioned before, most of my objects are meta-data containers whose actual 'text' is a tabular query. In my case, a SQL method. Now there are problems with CMF documents or Components being folderish and containing SQL methods, etc and it really isn't necessary in the first place. With normal Zope objects, objects can acquire SQL methods, but there's a problem with CMF in that respect, so I wrote a series of proxy objects which behave like a SQL_connection. When the CMF (non-folderish) object is created, the appropriate proxy object is located. is used to call the sql method in the context of the object's proxy. This gets around some of the acquisition problems but I still need to have specific code to render that object. I was trying to get around the dtml-with using __of__ in the proxy client so the renderer could be a little more controlled, but I can't figure out how to constrain __of__ to just use the proxy when the object itself doesn't have the appropriate attribute - like acquistion does. __of__ calls the proxy on everything. Appears I'm in over my head here. Result is that I would still need to maintain Component-specific dtml for rendering my objects when they become Components. My Components could use proxy methods to control how to render themselves instead of the component properties on a site-wide basis, but the component properties is a more general mechanism. I don't think __call_ would get you anywhere because you could only have one method available - by calling the object itself, which I don't think fits in with the skins concpt. __getattr__ might be useful if you can figure out how to render the object by attempting to call the object.method() itself, instead of a rendering method contained in some other object. Sounds like __of__ is again what you would have to use, but as I mentioned, I'm too dumb to figure out how to constrain it. I suspect the fsdirectory/skins stuff is close to being able to do this, but I'm lost. ---------- BTW, I've written a fairly generic table proxy/client product which allows one to create a proxy, automatically or manually create sql methods for it, then create a proxy client which lets you select from a list of proxy items, select from a list of sql methods, then read a csv file and load tabular data into the sql method after validating the argument list against the column names in the csv file. Probably not useful to anyone else :^) but is the basis for how I'll load some of these tabular Components. From erickson@kaivo.com Thu Apr 19 23:24:39 2001 From: erickson@kaivo.com (Paul Erickson) Date: Thu, 19 Apr 2001 16:24:39 -0600 Subject: [Zope-CMF] ZMySQLDA __init__.py initialisation problem. References: Message-ID: <3ADF65A7.C40321E6@kaivo.com> If you can load the module with python, it seems like it might either be that the file is not found, or that the user that you are using to start zope doesn't have permissions on the file. Where is your _mysql.so file? Mine is in /usr/lib/python1.5/site-packages The permissions on the file are: -rwxr-xr-x 1 root root -Paul Gregory Lambert wrote: > > Hi! > > I am really stuck on this one. I am trying connect my wonderful Zope/CMF > server (running under Linux Redhat 6.1) to my MySQL database (tested and > working) and I don't seem to be able to start the Zope server without the > following error: > > 2001-05-20T13:06:40 ERROR(200) Zope Couldn't import Products.ZMySQLDA > Traceback (innermost last): > File > /home/zope/Zope-2.3.1_dev/Zope-2.3.1-linux2-x86/lib/python/OFS/Application.p > y, line 536, in import_products > (Object: string) > File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/__init__.py, line 92, > in ? > File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/DA.py, line 92, in ? > File /home/zope/Zope-d1/lib/python/Products/ZMySQLDA/db.py, line 89, in ? > ImportError: _mysql: init failed > > I have successfully re-compiled the tar for the _mysql extension as > referenced by the URL: http://www.zope.org/Members/mordred/ZMySQLDA/INSTALL. > Also, I have successfully manually imported the _mysql module directly with > the python command line interface - no apparent problems there. I have tried > all of these procecures on my Win32 machine and was able to import the > product and successfully connect to my MySQL database. I just need to get > our "production" Linux machine working now.... > > Can anyone help? > > Gregory Lambert > Camwood Consulting UK > > Lots of stuff chopped < -- Paul Erickson | erickson@kaivo.com Kaivo, Inc. | www.kaivo.com From ivaldes@hal-pc.org Fri Apr 20 00:07:34 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Thu, 19 Apr 2001 18:07:34 -0500 Subject: [Zope-CMF] Eureka, polling now! References: Message-ID: <3ADF6FB6.2C1BAFD5@hal-pc.org> Yes you are right, I should have said 'consolidated'. -- IV marc lindahl wrote: > Personally, I disagree. The first part gives more general understanding, > good for generalizing the tutorial for making other stuff. But it could be > a little more 'synchronized'.... > > > From: Ignacio Valdes > > > > Suggestion: take > > out the initial part of the tutorial that is redundant and before the > > Step-by-step one: saves a lot of time. > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From blomert@hagen.de Fri Apr 20 09:58:04 2001 From: blomert@hagen.de (Peter Blomert) Date: Fri, 20 Apr 2001 10:58:04 +0200 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: <1374535408.987690229@daystar.control.com> References: <1374535408.987690229@daystar.control.com> Message-ID: Am 10:23 Uhr -0400 19.04.2001, schrieb Dan L. Pierson : >--On Wednesday, April 18, 2001 06:07:45 PM +0100 Tim Hicks wrote: > >> One final question (for now :-) ). Are the CMF classes documented >> anywhere (other than looking at the source)? There are loads of them >>there, but I don't really know what they all buy me... hence my questions >>about CatalogAware and *Tools. I did have a look around cmf.zope.org, >>but to no avail. > >Have you noticed that the CMF API docs appear in the Zope help system? Click >on the Help link or button in the top right of the right management pane and >open "CMF Core Help". > > dan > > >_______________________________________________ >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 I did so, found "API References", but none of the shown-up items was a link :-( so, were to find help? cu online Peter Blomert From nagarjun@hbcse.tifr.res.in Fri Apr 20 10:26:06 2001 From: nagarjun@hbcse.tifr.res.in (Nagarjuna G.) Date: Fri, 20 Apr 2001 14:56:06 +0530 (IST) Subject: [Zope-CMF] new properties not functioning Message-ID: When I add new properties (from manage menu) within the folders anywhere in the cmf site, I am not able to call the new values either by or &customname;, they work perfectly fine out side the cmf site. How do I manage to define my own custom elements and call them? Nagarjuna From sigvetj@pvv.org Fri Apr 20 13:01:18 2001 From: sigvetj@pvv.org (Sigve Tjora) Date: Fri, 20 Apr 2001 14:01:18 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python Message-ID: Hi! I want to save some data about users in their MemberData-object, and I use python for the task. Is it ok just to set a propertie on an MemberData-object or is there a better way? Eg. can I just write user=portal_membership.getAuthenticatedUser() user.myData="Just an object or a text..." mvh Sigve Tjora From lucas.hofman@oslo.pgs.com Wed Apr 18 16:26:37 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Wed, 18 Apr 2001 17:26:37 +0200 Subject: [Zope-CMF] errors in upgrade.py script? Message-ID: <0104189876.AA987607609@lysntsmail.oslo.pgs.com> Trying to convert a PTK 0.8.2 dummy portal to CMF 1.0 I tried the upgrade.py script distributed with CMF1.0. When running it the script trows an exception. Traceback: Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. Traceback (innermost last): File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 235, in commit File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZODB/Transaction.py, line 252, in commit File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZODB/Connection.py, line 358, in commit (Info: (('Products.CMFDefault.File', 'File'), '\000\000\000\000\000\000HR', '')) cPickle.PicklingError: (see above) In addition the following is printed on the console window (zope is running in debug mode): Failed to set up conversion PTKDemo CMFDefault Favorite Favorite Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 128, in setupDirectConversion old_module = sys.modules['Products.' + old_prod + '.' + modname] KeyError: Products.PTKDemo.Favorite Failed to set up conversion PTKDemo CMFDefault DiscussionItem DiscussionItemContainer Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 130, in setupDirectConversion old_class = getattr(old_module, classname) AttributeError: DiscussionItemContainer Failed to set up conversion PTKBase CMFCore DirectoryView DirectoryView Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 128, in setupDirectConversion old_module = sys.modules['Products.' + old_prod + '.' + modname] KeyError: Products.PTKBase.DirectoryView Failed to set up conversion PTKDemo CMFDefault Favorite Favorite Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 128, in setupDirectConversion old_module = sys.modules['Products.' + old_prod + '.' + modname] KeyError: Products.PTKDemo.Favorite Failed to set up conversion PTKDemo CMFDefault DiscussionItem DiscussionItemContainer Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 130, in setupDirectConversion old_class = getattr(old_module, classname) AttributeError: DiscussionItemContainer Failed to set up conversion PTKBase CMFCore DirectoryView DirectoryView Traceback (innermost last): File "/data/zopeMig/Extensions/migrate_ptk.py", line 128, in setupDirectConversion old_module = sys.modules['Products.' + old_prod + '.' + modname] KeyError: Products.PTKBase.DirectoryView -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From lucas.hofman@oslo.pgs.com Fri Apr 20 14:52:40 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Fri, 20 Apr 2001 15:52:40 +0200 Subject: [Zope-CMF] problem running migrate_ptk.py in CMF1.0 Message-ID: <0104209877.AA987774765@lysntsmail.oslo.pgs.com> Anybody on the list who has experience with the migrate_ptk script distributed with CMF 1.0? When I run it (after customizing for site specific content) it trundles a while, starts swapping (I think), but quite probable reaches the last item in the portal and than crashes with the following error: Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. Traceback: File /usr/share/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/share/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/share/Zope-2.3.1-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/share/Zope-2.3.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/share/Zope-2.3.1-linux2-x86/lib/python/Zope/__init__.py, line 235, in commit File /usr/share/Zope-2.3.1-linux2-x86/lib/python/ZODB/Transaction.py, line 300, in commit File /usr/share/Zope-2.3.1-linux2-x86/lib/python/ZODB/Connection.py, line 375, in commit (Info: (('Products.CMFSeres.Presentation', 'Presentation'), '\000\000\000\000\000\000\276\346', '')) cPickle.PicklingError: (see above) The size of the portal to be converted is roughly 30 Mb when exported to .zexp format. Total Data.fs size is 62 MB, and the filesystem has about 250 Mb available. When looking (with top) when is migrates I do not see that it uses up all swap space, but I am not sure here. Looking at the script I do no see any subtransactions. Does that mean that the whole conversion runs as one big transaction? Anybody caring to enlighten me? -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From dan@control.com Fri Apr 20 15:03:39 2001 From: dan@control.com (Dan L. Pierson) Date: Fri, 20 Apr 2001 10:03:39 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: Message-ID: <1760685408.987775419@daystar.control.com> --On Friday, April 20, 2001 10:58:04 AM +0200 Peter Blomert wrote: > Am 10:23 Uhr -0400 19.04.2001, schrieb Dan L. Pierson : >> Have you noticed that the CMF API docs appear in the Zope help system? >> Click on the Help link or button in the top right of the right >> management pane and open "CMF Core Help". >> > I did so, found "API References", but none of the shown-up items was a > link :-( so, were to find help? API References should have a tree expander box ('+' in a square) next to it. Click on that and it should expand to show a number of links and a page of help text. Works for me on both Mozilla and Konqueor. Unfortunately I won't be responding to much after today (but you can look me up at the Hanover fair if you want :-)). dan From shane@digicool.com Fri Apr 20 15:13:37 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 20 Apr 2001 10:13:37 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: Message-ID: <3AE04411.CAD932E9@digicool.com> Sigve Tjora wrote: > > Hi! > > I want to save some data about users in their MemberData-object, and I use > python for the task. Is it ok just to set a propertie on an > MemberData-object or is there a better way? > > Eg. can I just write > user=portal_membership.getAuthenticatedUser() > user.myData="Just an object or a text..." In the member data tool, add a property called "myData". Then change the code above to: portal_registration.setProperties(myData="some special preference") Shane From shane@digicool.com Fri Apr 20 15:20:01 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 20 Apr 2001 10:20:01 -0400 Subject: [Zope-CMF] problem running migrate_ptk.py in CMF1.0 References: <0104209877.AA987774765@lysntsmail.oslo.pgs.com> Message-ID: <3AE04591.5225FE97@digicool.com> Lucas Hofman wrote: > Anybody on the list who has experience with the migrate_ptk script > distributed with CMF 1.0? It does some rather complex things and it doesn't quite get everything right yet. > When I run it (after customizing for site specific content) it trundles > a while, starts swapping (I think), but quite probable reaches the last > item in the portal and than crashes with the following error: > > Error Type: cPickle.PicklingError > Error Value: Cannot pickle objects. It's finishing the whole process but the ZODB can't commit because the script copied an attribute that wasn't supposed to be copied. My guess is that it's copying an "id" method. > The size of the portal to be converted is roughly 30 Mb when exported to > .zexp format. Total Data.fs size is 62 MB, and the filesystem has about > 250 Mb available. When looking (with top) when is migrates I do not see > that it uses up all swap space, but I am not sure here. > > Looking at the script I do no see any subtransactions. Does that mean > that the whole conversion runs as one big transaction? Yes. The script is only temporary (since its usefulness is so limited) so it is not perfect. I hope I can work on it today. Shane From pdodde@poyntz.com Fri Apr 20 15:50:49 2001 From: pdodde@poyntz.com (Phil Dodderidge) Date: Fri, 20 Apr 2001 14:50:49 +0000 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: <3AE04411.CAD932E9@digicool.com> Message-ID: <3AE04CC9.7E6AEC05@kc.rr.com> Shane Hathaway wrote: > Sigve Tjora wrote: > > > > Hi! > > > > I want to save some data about users in their MemberData-object, and I use > > python for the task. Is it ok just to set a propertie on an > > MemberData-object or is there a better way? > > > > Eg. can I just write > > user=portal_membership.getAuthenticatedUser() > > user.myData="Just an object or a text..." > > In the member data tool, add a property called "myData". Then change > the code above to: > > portal_registration.setProperties(myData="some special preference") Is this last line right? I thought that the setProperties function was in the MemberData class. > > > Shane > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From shane@digicool.com Fri Apr 20 16:14:19 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 20 Apr 2001 11:14:19 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: <3AE04411.CAD932E9@digicool.com> <3AE04CC9.7E6AEC05@kc.rr.com> Message-ID: <3AE0524B.DCC20529@digicool.com> Phil Dodderidge wrote: > > Shane Hathaway wrote: > > > Sigve Tjora wrote: > > > > > > Hi! > > > > > > I want to save some data about users in their MemberData-object, and I use > > > python for the task. Is it ok just to set a propertie on an > > > MemberData-object or is there a better way? > > > > > > Eg. can I just write > > > user=portal_membership.getAuthenticatedUser() > > > user.myData="Just an object or a text..." > > > > In the member data tool, add a property called "myData". Then change > > the code above to: > > > > portal_registration.setProperties(myData="some special preference") > > Is this last line right? I thought that the setProperties function was in the > MemberData class. The method in the portal_memberdata tool is private. It is supposed to be invoked only by portal_registration.setProperties() because portal_registration can enforce member property policies. The reasoning behind this is that portal_memberdata, which only the portal_membership tool is supposed to know about, can be ripped out and replaced by something else that provides member properties (such as LoginManager or whatever acts as acl_users.) Shane From blomert@hagen.de Fri Apr 20 16:45:54 2001 From: blomert@hagen.de (Peter Blomert) Date: Fri, 20 Apr 2001 17:45:54 +0200 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: <1760685408.987775419@daystar.control.com> References: <1760685408.987775419@daystar.control.com> Message-ID: Am 10:03 Uhr -0400 20.04.2001, schrieb Dan L. Pierson : >--On Friday, April 20, 2001 10:58:04 AM +0200 Peter Blomert wrote: > >>Am 10:23 Uhr -0400 19.04.2001, schrieb Dan L. Pierson : >>>Have you noticed that the CMF API docs appear in the Zope help system? >>>Click on the Help link or button in the top right of the right >>>management pane and open "CMF Core Help". >>> >>I did so, found "API References", but none of the shown-up items was a >>link :-( so, were to find help? > >API References should have a tree expander box ('+' in a square) next to it. Click on that >and it should expand to show a number of links and a page of help text. Works for me on both Mozilla and Konqueor. > >Unfortunately I won't be responding to much after today (but you can look me up at the >Hanover fair if you want :-)). > > dan > > > > > >_______________________________________________ >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 Sorry for bothering you again, but i opened that tree, but none of those items was a link, so it brought me nowhere :-( if you have any idea, why this will not work on my computer, give me a hint please thanks in advance From pdodde@poyntz.com Fri Apr 20 16:59:27 2001 From: pdodde@poyntz.com (Phil Dodderidge) Date: Fri, 20 Apr 2001 15:59:27 +0000 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: <3AE04411.CAD932E9@digicool.com> <3AE04CC9.7E6AEC05@kc.rr.com> <3AE0524B.DCC20529@digicool.com> Message-ID: <3AE05CDF.A96CEA10@kc.rr.com> I got it now. I had misread what you wrote and thought you had written portal_membership.setProperties(myData="some special preference"). I also had it stuck in my mind that portal_registration was only used for creating members. I have a site where some members will be able to set properties (and passwords) for other members. Is there a reason that the core Registration Tool only has a function to set properties on the authenticated user? I know that I can get around this but is it something that should be added to the interface? Thanks, Phil Shane Hathaway wrote: > Phil Dodderidge wrote: > > > > Shane Hathaway wrote: > > > > > Sigve Tjora wrote: > > > > > > > > Hi! > > > > > > > > I want to save some data about users in their MemberData-object, and I use > > > > python for the task. Is it ok just to set a propertie on an > > > > MemberData-object or is there a better way? > > > > > > > > Eg. can I just write > > > > user=portal_membership.getAuthenticatedUser() > > > > user.myData="Just an object or a text..." > > > > > > In the member data tool, add a property called "myData". Then change > > > the code above to: > > > > > > portal_registration.setProperties(myData="some special preference") > > > > Is this last line right? I thought that the setProperties function was in the > > MemberData class. > > The method in the portal_memberdata tool is private. It is supposed to > be invoked only by portal_registration.setProperties() because > portal_registration can enforce member property policies. > > The reasoning behind this is that portal_memberdata, which only the > portal_membership tool is supposed to know about, can be ripped out and > replaced by something else that provides member properties (such as > LoginManager or whatever acts as acl_users.) > > Shane From corbet-cmf@lwn.net Fri Apr 20 17:38:51 2001 From: corbet-cmf@lwn.net (Jonathan Corbet) Date: Fri, 20 Apr 2001 10:38:51 -0600 Subject: [Zope-CMF] FSPropertiesObject glitch Message-ID: <20010420163851.9278.qmail@eklektix.com> Howdy, I'm just getting going with CMF, so go easy with me... For the moment, I'm working on coercing CMF into making a site that looks suspiciously like the LWN daily page, which means tweaking a lot of things. As soon as I tried to customize generic/stylesheet_properties, though, I got a Python barf. Not the result I had in mind. Turns out that FSPropertiesObject.manage_doCustomize wants to call FSObject.manage_doCustomize with a "data" parameter that the latter doesn't want. I got things working by just deleting the parameter: Index: FSPropertiesObject.py =================================================================== RCS file: /cvs-repository/CMF/CMFCore/FSPropertiesObject.py,v retrieving revision 1.3 diff -r1.3 FSPropertiesObject.py 130c130,131 < FSObject.manage_doCustomize(self, folder_path, data, RESPONSE) --- > # FSObject.manage_doCustomize(self, folder_path, data, RESPONSE) > FSObject.manage_doCustomize(self, folder_path, RESPONSE) But that's probably not a proper fix, since I have, at this point, little clue about what's really going on in there... jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net From ivaldes@hal-pc.org Fri Apr 20 18:22:30 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Fri, 20 Apr 2001 12:22:30 -0500 Subject: [Zope-CMF] Link type questions. Message-ID: <3AE07055.18D4ED4D@hal-pc.org> Hello again all, I'm using the Link type to build some things. I have located addLink in Link.py and see the fields associated with them. Can I add some fields as a manager without hacking Link.py? Because my ISP is running Zope with other sites on it, changing default *.py source files is not really an option as it could break other sites. Should I just create a owner/manager-level Link type similar to the default Link type through the Zope interface with my mods like the PortalPollClass example could be created without changing CMF default source? Is there another, better way? Next question is mixing and matching types: Link type with some added fields in combination with a pre-defined poll would work great for my purposes. Is there a 'right' (by design) way to combine types to create a new type rather than me fumble them around? Thanks, -- IV From shane@digicool.com Fri Apr 20 18:39:36 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 20 Apr 2001 13:39:36 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: <3AE04411.CAD932E9@digicool.com> <3AE04CC9.7E6AEC05@kc.rr.com> <3AE0524B.DCC20529@digicool.com> <3AE05CDF.A96CEA10@kc.rr.com> Message-ID: <3AE07458.50DA006F@digicool.com> Phil Dodderidge wrote: > > I got it now. I had misread what you wrote and thought you had written > portal_membership.setProperties(myData="some special preference"). I also had it > stuck in my mind that portal_registration was only used for creating members. > > I have a site where some members will be able to set properties (and passwords) for > other members. Is there a reason that the core Registration Tool only has a > function to set properties on the authenticated user? I know that I can get around > this but is it something that should be added to the interface? We had no use case for allowing members to modify the non-security-related properties of other members, so no such capability was provided in the interface. Perhaps you can describe your needs further so the interface can be expanded. portal_registration really is misnamed but we haven't been able to come up with the right name... perhaps "portal_policies"? Its main task is new user registration, but since policies that apply to new users are likely to be useful as general policies, portal_registration took on a larger role. Shane From dan@control.com Fri Apr 20 20:06:43 2001 From: dan@control.com (Dan L. Pierson) Date: Fri, 20 Apr 2001 15:06:43 -0400 Subject: [Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2]) In-Reply-To: Message-ID: <1797385408.987793603@daystar.control.com> Sorry, no clue. It might help if you mentioned what browser you're using. --On Friday, April 20, 2001 05:45:54 PM +0200 Peter Blomert wrote: > Am 10:03 Uhr -0400 20.04.2001, schrieb Dan L. Pierson : >> --On Friday, April 20, 2001 10:58:04 AM +0200 Peter Blomert >> wrote: >> >>> Am 10:23 Uhr -0400 19.04.2001, schrieb Dan L. Pierson : >>>> Have you noticed that the CMF API docs appear in the Zope help system? >>>> Click on the Help link or button in the top right of the right >>>> management pane and open "CMF Core Help". >>>> >>> I did so, found "API References", but none of the shown-up items was a >>> link :-( so, were to find help? >> >> API References should have a tree expander box ('+' in a square) next to >> it. Click on that and it should expand to show a number of links and a >> page of help text. Works for me on both Mozilla and Konqueor. >> >> Unfortunately I won't be responding to much after today (but you can >> look me up at the Hanover fair if you want :-)). >> >> dan >> >> >> >> >> >> _______________________________________________ >> 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 > > Sorry for bothering you again, but i opened that tree, but none of those > items was a link, so it brought me nowhere :-( if you have any idea, why > this will not work on my computer, give me a hint please > > thanks in advance > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > From marc@bowery.com Fri Apr 20 20:14:40 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 20 Apr 2001 15:14:40 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <3AE0524B.DCC20529@digicool.com> Message-ID: Question: let's say you add some preference, like birth_date. How/where do you change the sign-up screen and the preferences screen to access that? And do some action like, don't allow signup for age<13.... > From: Shane Hathaway >>> >>> In the member data tool, add a property called "myData". Then change >>> the code above to: >>> >>> portal_registration.setProperties(myData="some special preference") >> >> Is this last line right? I thought that the setProperties function was in >> the >> MemberData class. > > The method in the portal_memberdata tool is private. It is supposed to > be invoked only by portal_registration.setProperties() because > portal_registration can enforce member property policies. From shane@digicool.com Fri Apr 20 20:55:33 2001 From: shane@digicool.com (Shane Hathaway) Date: Fri, 20 Apr 2001 15:55:33 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object frompython References: <3AE0524B.DCC20529@digicool.com> Message-ID: <3AE09435.CAB52C20@digicool.com> marc lindahl wrote: > > Question: let's say you add some preference, like birth_date. How/where do > you change the sign-up screen and the preferences screen to access that? > And do some action like, don't allow signup for age<13.... Currently you'd have to subclass or replace portal_registration, which you could do with ZClasses or a Python product. Invoking a customizable script might be better. Shane > > > From: Shane Hathaway > >>> > >>> In the member data tool, add a property called "myData". Then change > >>> the code above to: > >>> > >>> portal_registration.setProperties(myData="some special preference") > >> > >> Is this last line right? I thought that the setProperties function was in > >> the > >> MemberData class. > > > > The method in the portal_memberdata tool is private. It is supposed to > > be invoked only by portal_registration.setProperties() because > > portal_registration can enforce member property policies. > > _______________________________________________ > 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 Charles.Hall@sas.com Fri Apr 20 21:11:01 2001 From: Charles.Hall@sas.com (Charles Hall) Date: Fri, 20 Apr 2001 16:11:01 -0400 Subject: [Zope-CMF] Newbie questions Message-ID: Can someone point me in the right direction? I've got Zope and the CMF product up and running, and I've spent some time with the Zope docs. But I'm still fuzzy on how this constitutes a Content Mgmt. System and not a mere tool box. So let me ask a specific and a general question to everyone: - In General: Are there any CMF "user" docs? - Specifically: While I don't care what language the CMS is in, the resulting pages need to be plain HTML. I need to serve them through an Apache-PHP server, and I'll type in PHP code where I need dynamic stuff. Can Zope CMF do this? Does it make sense for me since I won't be using Zope commands in the HTML files? While the Zope stuff is really slick, I'm beginning to suspect it's a poor fit for my situation. I'd really appreciate comments from the experts... Thanks a lot. Charles Hall Cary, NC From corbet-cmf@lwn.net Fri Apr 20 21:29:08 2001 From: corbet-cmf@lwn.net (Jonathan Corbet) Date: Fri, 20 Apr 2001 14:29:08 -0600 Subject: [Zope-CMF] Uploading news items with FTP Message-ID: <20010420202908.13528.qmail@eklektix.com> The saga continues... I would like to be able to upload news items with FTP, and, preferably, have them show up in a pending state. From what I've been able to find, I should be able to toss in a couple of lines at the beginning of my file: Title: Here is the title Type: News Item The title sticks, but I always get a document, not a news item. I've tried a number of variants on the theme, and have dug through the source some, but remain clueless. Can somebody please embarrass me and let me know what I'm missing? Thanks, jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net From dieter@handshake.de Fri Apr 20 20:40:37 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 20 Apr 2001 21:40:37 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <117616851@toto.iv> Message-ID: <15072.37045.312228.837970@lindm.dm> Sigve Tjora writes: > I want to save some data about users in their MemberData-object, and I use > python for the task. Is it ok just to set a propertie on an > MemberData-object or is there a better way? > > Eg. can I just write > user=portal_membership.getAuthenticatedUser() > user.myData="Just an object or a text..." Be careful when you assign objects to attribute of persistent objects: The ZODB does not like to store (Acquisition) wrapped objects. There are a few more restrictions. Failure to observe them with result in nasty pickling exceptions. Dieter From marc@bowery.com Fri Apr 20 22:49:31 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 20 Apr 2001 17:49:31 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object frompython In-Reply-To: <3AE09435.CAB52C20@digicool.com> Message-ID: > From: Shane Hathaway > > marc lindahl wrote: >> >> Question: let's say you add some preference, like birth_date. How/where do >> you change the sign-up screen and the preferences screen to access that? >> And do some action like, don't allow signup for age<13.... > > Currently you'd have to subclass or replace portal_registration, which > you could do with ZClasses or a Python product. Invoking a customizable > script might be better. Forgive my newbieness but... replacing portal_registration.py would impact all CMF sites, right? Probably not a good idea... and subclassing it and sticking the subclass into wherever portal_registration.py is used would be basically the same thing, right? If there were some way to modify the portal_registration tool once the CMF site was created, like the way portal_memberdata properties can be added, would that be a way to do it? Is this kind of thing the purpose of the CMFDefault directory? Can you clarify "Invoking a customizable script might be better"? also, OT: are there other places to learn about python scripts than: http://www.zope.org/Wikis/DevSite/Projects/PythonMethods/FrontPage ? Maybe a how-to? thanks, marc From ivaldes@hal-pc.org Sat Apr 21 03:04:48 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Fri, 20 Apr 2001 21:04:48 -0500 Subject: [Zope-CMF] Re: Newbie question. Message-ID: <3AE0EAC0.B892D525@hal-pc.org> >>> - In General: Are there any CMF "user" docs? Yes, http://cmf.zope.org/doc -- IV From sigve@tjora.no Sat Apr 21 09:11:14 2001 From: sigve@tjora.no (Sigve Tjora) Date: Sat, 21 Apr 2001 10:11:14 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <15072.37045.312228.837970@lindm.dm> Message-ID: > Sigve Tjora writes: > > I want to save some data about users in their MemberData-object, and I use > > python for the task. Is it ok just to set a propertie on an > > MemberData-object or is there a better way? > > > > Eg. can I just write > > user=portal_membership.getAuthenticatedUser() > > user.myData="Just an object or a text..." Dieter wrote: > Be careful when you assign objects to attribute of > persistent objects: > > The ZODB does not like to store (Acquisition) wrapped objects. > There are a few more restrictions. > > Failure to observe them with result in nasty pickling exceptions. I want to store a reference to folders in a members-object. When I tried some thing worked and some not. Eg. absolute_url() didn't work at all. How is that? How can I store a reference to to a folder or another portalobject in a member-object so that everything of the original object work as intended. It is not good enought just to store the url, because I have to call methods on the portalobjects. mvh Sigve Tjora From tseaver@digicool.com Sat Apr 21 15:34:22 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 21 Apr 2001 10:34:22 -0400 Subject: [Zope-CMF] Various newbie questions. References: <20010418081616.11281.qmail@web1702.mail.yahoo.com> <03d701c0c80a$d5a7dc70$1001a8c0@jeff2k> Message-ID: <3AE19A6E.68B261E3@novacoxmail.com> Jeff wrote: > > I am also very new to this, but having great fun! > In your response to question 3/4, what is the difference between adding a > 'Portal Folder' or just a normal 'Folder'? PortalFolder objects "know" about the content types defined in the 'portal_types' tool, and have "portalish" interfaces for showing their "content" (they filter out non-content), adding new content, and editing folder metadata. I would almost never use a "standard" Folder in the "main" area of a CMF Site, as they provide no advantages over PortalFolders. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sat Apr 21 15:57:51 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 21 Apr 2001 10:57:51 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-objectfrompython References: Message-ID: <3AE19FEF.70AF76BF@novacoxmail.com> marc lindahl wrote: > > > From: Shane Hathaway > > > > marc lindahl wrote: > >> > >> Question: let's say you add some preference, like birth_date. How/where do > >> you change the sign-up screen and the preferences screen to access that? > >> And do some action like, don't allow signup for age<13.... > > > > Currently you'd have to subclass or replace portal_registration, which > > you could do with ZClasses or a Python product. Invoking a customizable > > script might be better. > > Forgive my newbieness but... replacing portal_registration.py would impact > all CMF sites, right? Probably not a good idea... and subclassing it and > sticking the subclass into wherever portal_registration.py is used would be > basically the same thing, right? Shane is recommending replacing the instance, named 'portal_registration' in the root of your CMFSite, with an instance of another class; you wouldn't (ordinarily, at least) want to muck with Products.CMFDefault.RegistrationTool (the module which exports the class of the current instance). > If there were some way to modify the portal_registration tool > once the CMF site was created, like the way portal_memberdata > properties can be added, would that be a way to do it? The current implementation of the registration tool doesn't permit any "through-the-web" tweaking of its policies. We typically expect to replace several of the tools with custom versions; the registration tool is one of these. > Is this kind of thing the purpose of the CMFDefault directory? The tools and content in the CMFDefault product provide working versions of the components needed to build a CMF-based site; many sites can happily use them, *where the policies they implement are reasonable*. We moved the different "services" of the site into replaceable "tool objects" precisely to allow a site to replace one or more of them, while leaving in place those "default" versions which are acceptable. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From khine@btinternet.com Sat Apr 21 17:14:24 2001 From: khine@btinternet.com (Norman Khine) Date: Sat, 21 Apr 2001 17:14:24 +0100 Subject: [Zope-CMF] portal skins - Images Folder - Attribute Error Message-ID: Hello, I wanted to create a skin with new logo and images, but when I select to change/modify the logo.jpg or any of the images in the Images folder I get the following error Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: read Traceback (innermost last): File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/khine/usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: logo.jpg) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_doCustomize) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_doCustomize) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/FSObject.py, line 137, in manage_doCustomize (Object: logo.jpg) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/FSImage.py, line 122, in _createZODBClone (Object: logo.jpg) AttributeError: (see above Thanks in advance, for any advice you may have. Norman /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:khine@o-a-l.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ From bill@libc.org Sat Apr 21 19:25:12 2001 From: bill@libc.org (Bill Anderson) Date: 21 Apr 2001 12:25:12 -0600 Subject: [Zope-CMF] Newbie questions In-Reply-To: Message-ID: On 20 Apr 2001 16:11:01 -0400, Charles Hall wrote: > Can someone point me in the right direction? I've got Zope and the CMF product up and running, and I've spent some time with the Zope docs. But I'm still fuzzy on how this constitutes a Content Mgmt. System and not a mere tool box. > > So let me ask a specific and a general question to everyone: > > - In General: Are there any CMF "user" docs? > > - Specifically: While I don't care what language the CMS is in, the resulting pages need to be plain HTML. I need to serve them through an Apache-PHP server, and I'll type in PHP code where I need dynamic stuff. Ahh, see you _do_ indeed care what language it is in, since you want to use PHP. Zope is not, nor will be PHP. zope can replace PHP. The page the browser gets _is_ HTML, unless you add javascript or some other client-side scripting to it. But you must do that yourself, if you want it. Zope, and espeically CMF-ified Zopes are more than just a webserver, and this is an important distinction. If all you want is PHP, use Apache and PHP. If you want something more complete (PHP is _not_ a Content Canagement System!), such as a content management framework, use zope with CMF. > Can Zope CMF do this? Does it make sense for me since I won't be using Zope commands in the HTML files? As above, all Zope stuff is done serverside, just as your PHP scripts are done server side. if you aren't going to use Zope, don't use Zope. i would suggest the ZopeBook, so as to gain a better understanding of it before making your decision, as it appears you aren't clear on what Zope is. Bill From khine@btinternet.com Sat Apr 21 19:59:41 2001 From: khine@btinternet.com (Norman Khine) Date: Sat, 21 Apr 2001 19:59:41 +0100 Subject: [Zope-CMF] too many arguments; expected 3, got 4 Message-ID: Hello, I am trying to update the stylesheet_properties from the generic folder, but when I click on Customize I get the following error: Error Type: TypeError Error Value: too many arguments; expected 3, got 4 Traceback (innermost last): File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/khine/usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: stylesheet_properties) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_doCustomize) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_doCustomize) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/FSPropertiesObjec t.py, line 130, in manage_doCustomize (Object: stylesheet_properties) TypeError: (see above) Any ideas? Thanks /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:khine@o-a-l.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ From seb@jamkit.com Sat Apr 21 20:34:50 2001 From: seb@jamkit.com (seb bacon) Date: Sat, 21 Apr 2001 20:34:50 +0100 Subject: [Zope-CMF] portal skins - Images Folder - Attribute Error In-Reply-To: ; from khine@btinternet.com on Sat, Apr 21, 2001 at 05:14:24PM +0100 References: Message-ID: <20010421203449.A9076@lenin.jamkit.com> Hi, It's a bug. I've not got a pristine version to diff, but in CMFCore/FSImage, the lines: def _createZODBClone(self): return Image(self.getId(), '', self._read()) should read: def _createZODBClone(self): return Image(self.getId(), '', self._readFile()) seb From seb@jamkit.com Sat Apr 21 20:50:43 2001 From: seb@jamkit.com (seb bacon) Date: Sat, 21 Apr 2001 20:50:43 +0100 Subject: [Zope-CMF] Newbie questions In-Reply-To: ; from bill@libc.org on Sat, Apr 21, 2001 at 12:25:12PM -0600 References: Message-ID: <20010421205042.B9076@lenin.jamkit.com> * Bill Anderson [010421 20:28]: > On 20 Apr 2001 16:11:01 -0400, Charles Hall wrote: > > Can someone point me in the right direction? I've got Zope and the CMF product up and running, and I've spent some time with the Zope docs. But I'm still fuzzy on how this constitutes a Content Mgmt. System and not a mere tool box. I'd just add, the CMF probably *is* 'just' a toolbox. It's called the CMF, not the CMS. You can make a CMS using the CMF, of which the Default CMF implementation is a usable example. Even heavy-duty CMSs, like BroadVision, are frameworks, albeit with a more GUI-driven interface. This is simply because a CMS is going to be different every time you implement it, due to diffent content management requirements. The CMF is still pretty new, but it already provides a decent framework on to which you can build your own applications. It's being developed quickly, and most components that aren't implemented can be easily built on top of the framework if you can't wait. It's not plug and play for most applications, and you'll have to spend a while learning Zope to use it. hth, seb From seb@jamkit.com Sat Apr 21 21:02:34 2001 From: seb@jamkit.com (seb bacon) Date: Sat, 21 Apr 2001 21:02:34 +0100 Subject: [Zope-CMF] getattr misbehaving Message-ID: <20010421210233.C9076@lenin.jamkit.com> I've got an extremely wierd problem here, tho it may not be CMF-specific. I'm overriding __call__ to return a method dynamically in some PortalContent, like this: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): _method = self.callMethod print _method # prints 'edit_view' return getattr(self,_method)(self, REQUEST) that doesn't work, even though _method is returning the correct string. instead it returns the 'view' method. However, when I do this: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): _method = 'edit_view' print _method # prints 'edit_view' return getattr(self,_method)(self, REQUEST) it works :S What's going on? (I'm sure there must be a better way to do this, anyway...:) seb From seb@jamkit.com Sat Apr 21 21:12:29 2001 From: seb@jamkit.com (seb bacon) Date: Sat, 21 Apr 2001 21:12:29 +0100 Subject: [Zope-CMF] Properties customize error Message-ID: <20010421211229.D9076@lenin.jamkit.com> D'oh, managed to delete the mail I was meant to be replying to. It's another bug, here's the diff in sebdiff(tm) format File FSPropertiesObject.py: < def manage_doCustomize(self, folder_path, data=None, RESPONSE=None): """Makes a ZODB Based clone with the same data. Calls _createZODBClone for the actual work. """ # Overridden here to provide a different redirect target. < FSObject.manage_doCustomize(self, folder_path, data, RESPONSE) --- > def manage_doCustomize(self, folder_path, RESPONSE=None): """Makes a ZODB Based clone with the same data. Calls _createZODBClone for the actual work. """ # Overridden here to provide a different redirect target. > FSObject.manage_doCustomize(self, folder_path, RESPONSE) seb From dieter@handshake.de Sat Apr 21 21:48:20 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 21 Apr 2001 22:48:20 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: References: <15072.37045.312228.837970@lindm.dm> Message-ID: <15073.61973.540957.161823@lindm.dm> Sigve Tjora writes: > I want to store a reference to folders in a members-object. When I tried > some thing worked and some not. Eg. absolute_url() didn't work at all. How > is that? How can I store a reference to to a folder or another > portalobject in a member-object so that everything of the original object > work as intended. It is not good enought just to store the url, because I > have to call methods on the portalobjects. Storing URL's should be fine. Why does it not work for you? I would store URL's and use "restrictedTraverse" to resolve them to into objects. "portal_url" has a method to return URL's relative to the portal and the portal object itself. Dieter From dieter@handshake.de Sat Apr 21 22:11:27 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 21 Apr 2001 23:11:27 +0200 (CEST) Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: <330891158@toto.iv> Message-ID: <15073.63359.158534.718532@lindm.dm> Jonathan Corbet writes: > I would like to be able to upload news items with FTP, and, preferably, > have them show up in a pending state. From what I've been able to find, I > should be able to toss in a couple of lines at the beginning of my file: > > Title: Here is the title > Type: News Item > > The title sticks, but I always get a document, not a news item. I've tried > a number of variants on the theme, and have dug through the source some, > but remain clueless. Can somebody please embarrass me and let me know what > I'm missing? Recently, there was an interesting thread in "zope@zope.org" or "zope-dev@zope.org" about "PUT_factories". Search the (searchable) archives. "PUT_factories" may solve your problem. Dieter From dieter@handshake.de Sat Apr 21 22:07:11 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 21 Apr 2001 23:07:11 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <334364065@toto.iv> Message-ID: <15073.63103.332866.731142@lindm.dm> Shane Hathaway writes: > portal_registration really is misnamed but we haven't been able to come > up with the right name... perhaps "portal_policies"? Its main task is > new user registration, but since policies that apply to new users are > likely to be useful as general policies, portal_registration took on a > larger role. I am not a native english speaker. But: for me "membership" is the correct place for all aspects that have to do with members: adding members deleting members (yes, sometimes, they should be deleted) viewing/changing member properties providing access to member objects Policies related to members should go there, too. "registration" should restrict itself to the task expressed by its name: "registration". It could be a client of "membership" with respect to policy issues. Dieter From khine@btinternet.com Sat Apr 21 23:20:53 2001 From: khine@btinternet.com (Norman Khine) Date: Sat, 21 Apr 2001 23:20:53 +0100 Subject: [Zope-CMF] Custom Skins -- Images Message-ID: Hello, I have created the Printable skin as per the tutorial http://cmf.zope.org/PTK/Members/jshell/News/PrintablePage/view Everything is working as it should, but when I try to alter the logo for this particular skin, although in the folder Printable when I view the standard_html_header or the index_html I am able to see the new logo. The problem is that when I view the root index_html file and then click on the URL link for the Printable page I get the index_html as it should be, but I am not getting the logo image. The only way to make the logo appear is to provide the full path to the image ie /Portal/portal_skins/Printable/logo_print.png Where as using the custom folder the only thing I needed was to ensure I renamed the logo.png or logo.jpg to a new name logo_custom.png and logo_custom.jpg without having to alter the path for the image, as by default zope uses the top most file of the particular name. Well I hope this has been of help, keep zoping. Norman /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:khine@o-a-l.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ From shane@digicool.com Sun Apr 22 03:28:04 2001 From: shane@digicool.com (Shane Hathaway) Date: Sat, 21 Apr 2001 22:28:04 -0400 (EDT) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <15073.63103.332866.731142@lindm.dm> Message-ID: On Sat, 21 Apr 2001, Dieter Maurer wrote: > Shane Hathaway writes: > > portal_registration really is misnamed but we haven't been able to come > > up with the right name... perhaps "portal_policies"? Its main task is > > new user registration, but since policies that apply to new users are > > likely to be useful as general policies, portal_registration took on a > > larger role. > I am not a native english speaker. But: > > for me "membership" is the correct place for all > aspects that have to do with members: > > adding members > deleting members (yes, sometimes, they should be deleted) > viewing/changing member properties > providing access to member objects > > Policies related to members should go there, too. Sometimes even English doesn't have enough words. :-) portal_membership is responsible only for the member database. In a multi-tier architecture, it's the object that isolates the application from the user database. portal_registration is an application-level service. Generally the details of membership storage and the details of member policies vary independently, so it makes sense to have separate objects for them. > "registration" should restrict itself to the task expressed > by its name: "registration". ... or we need to rename the object. It originally was restricted to registration issues, but it turns out that policy that governs registration usually applies beyond registration. Shane From ivaldes@hal-pc.org Sun Apr 22 03:44:23 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Sat, 21 Apr 2001 21:44:23 -0500 Subject: [Zope-CMF] SearchableText, custom subfolders, 2 data streams. Message-ID: <3AE24587.56116F83@hal-pc.org> Hello all, I'm actually getting somewhere with my portal app, here's some stumper(to me) questions: 1) Does the SearchableText python script have to reside in the PortalPollProductClass? Can it be relocated to a local spot such as in portal_skins/custom? 2) Is there a way to group methods in a subfolder of 'custom'? I was able to move my modified PortalPollProduct methods to portal_skins/custom, but can't gather them in a portal subfolder because Zope seems unable to find them in a subfolder to portal_skins/custom. 3) I am modifying the Portal Poll product such that I'm adding properties other than the stock ones such as documentationURL. I would also like to use the standard metadata fields since they already hold title, description, etc. So I need to have all of these data fields on one input form, but then split them up to go to their appropriate places: title, desc-->metadata and documentationURL-->PortalPoll propertysheet. I'm trying to marry the two methods that do these independently, but as far as I can tell with how
is setup, it doesn't appear as though you can submit to two different places at once. I've tried just calling EditDone, but this doesn't seem to do it without the action= statement set to ./ Thanks, -- IV From ivaldes@hal-pc.org Sun Apr 22 06:33:50 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Sun, 22 Apr 2001 00:33:50 -0500 Subject: [Zope-CMF] Set filter isn't. Message-ID: <3AE26D3E.4DCB6482@hal-pc.org> Hi, I've tried setting my filter for portal types on several different id's and it doesn't seem to work anymore, showing me all of the types available despite filtering. I did have this working previously, now it doesn't seem to work. Seems odd. -- IV From marc@bowery.com Sun Apr 22 07:56:53 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 22 Apr 2001 02:56:53 -0400 Subject: [Zope-CMF] Custom Skins --getObjectFSPath KeyError In-Reply-To: Message-ID: I was digging into: http://cmf.zope.org/PTK/Members/jshell/News/PrintablePage/view but in step 2, I get this error... using zope 2.3.1 and CMF 1.0 with current updates from CVS. Anyone have an idea how to fix that?? big ugly error output: ----------------------- An exception occurred in a DTML method or document. Error type: KeyError Error value: getObjectFSPath Innermost method: None Name not found or not allowed: getObjectFSPath Namespace Stack (innermost entry at top) ID Type Contains name? standard_html_header InstanceDict No REQUEST ZPublisher.HTTPRequest.HTTPRequest No REQUEST information form cookies tree-s 'eJyLjlZ3hANPW3UdhWiEiHuVL5qIT1gxuki4o616LBQAABaNFMM' folderfilter 'e3MHAAAAU3ViamVjdFsAAAAAcwQAAABUeXBlWwgAAABzCAAAAERvY3VtZW50cwgAAABGYXZvcml 0ZXMEAAAARmlsZXMGAAAARm9sZGVycwUAAABJbWFnZXMEAAAATGlua3MJAAAATmV3cyBJdGVtcxo AAABTaW1wbGUgKG9uZSBxdWVzdGlvbikgUG9sbDA=' portal_skin 'Basic' __ac_name 'marc' show_filter_form '1' other AUTHENTICATION_PATH '' a_ 0 URL1 'http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header' PUBLISHED portal_skin 'Basic' __ac_name 'marc' show_filter_form '1' folderfilter 'e3MHAAAAU3ViamVjdFsAAAAAcwQAAABUeXBlWwgAAABzCAAAAERvY3VtZW50cwgAAABGYXZvcml 0ZXMEAAAARmlsZXMGAAAARm9sZGVycwUAAABJbWFnZXMEAAAATGlua3MJAAAATmV3cyBJdGVtcxo AAABTaW1wbGUgKG9uZSBxdWVzdGlvbikgUG9sbDA=' SERVER_URL 'http://210.67.3.12' BASEPATH1 '' tree-s 'eJyLjlZ3hANPW3UdhWiEiHuVL5qIT1gxuki4o616LBQAABaNFMM' URL 'http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header/ma nage_main' AUTHENTICATED_USER admin TraversalRequestNameStack [] n_ 1 URL0 http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header/man age_main URL1 http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header URL2 http://210.67.3.12/junk/bowery/portal_skins/generic URL3 http://210.67.3.12/junk/bowery/portal_skins URL4 http://210.67.3.12/junk/bowery URL5 http://210.67.3.12/junk URL6 http://210.67.3.12 BASE0 http://210.67.3.12 BASE1 http://210.67.3.12 BASE2 http://210.67.3.12/junk BASE3 http://210.67.3.12/junk/bowery BASE4 http://210.67.3.12/junk/bowery/portal_skins BASE5 http://210.67.3.12/junk/bowery/portal_skins/generic BASE6 http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header BASE7 http://210.67.3.12/junk/bowery/portal_skins/generic/standard_html_header/man age_main environ HTTP_ACCEPT_ENCODING gzip channel.creation_time 987921815 HTTP_REFERER http://210.67.3.12/junk/bowery/portal_skins/generic/manage_main SERVER_PROTOCOL 1.0 SERVER_PORT 8080 PATH_INFO /junk/bowery/portal_skins/generic/standard_html_header/manage_main HTTP_HOST 210.67.3.12 REQUEST_METHOD GET PATH_TRANSLATED /junk/bowery/portal_skins/generic/standard_html_header/manage_main SCRIPT_NAME SERVER_SOFTWARE Zope/Zope 2.3.1 (binary release, python 1.5.2, linux2-x86) ZServer/1.1b1 HTTP_ACCEPT_LANGUAGE en,ja,zh-CN,zh,zh-TW,ko HTTP_ACCEPT_CHARSET iso-8859-1,*,utf-8 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* REMOTE_ADDR 127.0.0.1 HTTP_COOKIE portal_skin="Basic"; show_filter_form="1"; folderfilter="e3MHAAAAU3ViamVjdFsAAAAAcwQAAABUeXBlWwgAAABzCAAAAERvY3VtZW50cw gAAABGYXZvcml0ZXMEAAAARmlsZXMGAAAARm9sZGVycwUAAABJbWFnZXMEAAAATGlua3MJAAAATm V3cyBJdGVtcxoAAABTaW1wbGUgKG9uZSBxdWVzdGlvbikgUG9sbDA="; __ac_name="marc"; tree-s="eJyLjlZ3hANPW3UdhWiEiHuVL5qIT1gxuki4o616LBQAABaNFMM" SERVER_NAME studio.bowery.com GATEWAY_INTERFACE CGI/1.1 HTTP_USER_AGENT Mozilla/4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) CONNECTION_TYPE Keep-Alive Traceback (innermost last): File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: standard_html_header) File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_main) File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_main) File /usr/local/zope/Zope-2.3.1/lib/python/App/special_dtml.py, line 127, in __call__ (Object: manage_main) File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: manage_main) File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py, line 307, in debug_render_blocks File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py, line 228, in debugException (Object: getObjectFSPath) File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py, line 305, in debug_render_blocks File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Var.py, line 276, in render (Object: getObjectFSPath) KeyError: (see above) From jon@pcgs.freeserve.co.uk Sun Apr 22 19:10:47 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Sun, 22 Apr 2001 19:10:47 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: Message-ID: <003301c0cb57$d47059e0$05c84dc0@jon> Hi all! First of all huge thanks to Digital Creations and the Zope/CMF community for creating such an excellent set of tools and such a friendly and helpful community! I've been using Zope for about 2 months and CMF for about a month. I've been in "stealth mode", as I've been leaving a company to set up a new one, but now I can finally "decloak" and try to contribute something back to the community! :-) I'm still at the DTML level of the learning curve, but hopefully some of my thoughts will help other newbies, and perhaps those with more Zen may point out how I can improve! 1. Firstly, a resource for anyone interested in Content Management issues generally - http://www.camworld.com/cms/ - the CMS-list at Camworld, has some very interesting discussions about CMS issues. For example, in the April archives - http://cms.filsa.net/archives/cms-list/2001/Apr/ - check out the WfXML, SingleSource Conference, and Link Management threads, amongst others. 2. CMF overview - it seems to me that, as well as being a great set of tools in its own right, one of the main benefits of the CMF is that it overcomes one of the "problems" of Zope! Before everyone flames me, let me say Zope is a brilliant system with some excellent products, but if, like me, you are not (yet!) a programmer, it is very difficult to integrate two or more of those products into your implementation (and get them to "talk to each other"). However, if all CMF-Products integrate with the Workflow, Membership, Cataloguing, etc. APIs and structures, it will become much more of a "plug-and-play", modular system, and thus have a wider appeal in the market. For example, you could make every member's MyStuff page a Swishdot, and easily incorporate PortalPolls, Links and external RSS newsfeeds into the side-boxes - hey-presto, instant Weblogs system, completely searchable, and can be managed through Workflow! I wonder whether this should be emphasised more in the docs, How-Tos, etc as a major "selling-point"? 3. "Wot I Have Dun!" - a few things I found useful. I'll keep em brief, if people want more detail, please ask. a) Simplified the layout - took out all the divs and used plain tables (i found I was sometimes getting weird overlaps) b) Actions box - our sites will have many anonymous visitors, and only a handful of editors/contibutors, so I made the Actions Box a flat bar at the top of the page, which is only visible when you are logged in (editors bookmark the login screen so they can find it easily). This gives you more room on your screen, and is less confusing to casual visitors. c) Edit screens - created a separate editpage_header with its own stylesheet (lightgrey backgrounds, black text, so it looks more like an app) - our editors found this made a clearer differentiation between editing stuff and viewing the results. d) WYSIWYG editor - used a Javascript WYSIWYG html editor for all textarea bits on the edit forms (our editors know little HTML and didnt want to learn Structured Text). I used this one - http://dhtml.yaourts.com/ - which is IE4+ only, but I think there are others compatible with Netscape. This includes dropdown boxes for styles and colours - in the future I'm hoping to link these to the stylesheets, so contributors can only pick styles and colours that match the overall look of the site. e) Site Structure - errr... this is kinda complex! :-) I've hacked together a "CompositeContent" sorta structure, but using only DTML. Each "page" is a Portal Folder, with added properties. (N.B it would great if you could add properties to Portal Documents, Images, NewsItems, etc, through the ZMI, as you can currently with Portal Folders. You can store your butchered objects in a folder in Skins, then just use the manage-addClone/manage_editProperties method to create new ones - quick-and-dirty way to create products for non-programmers! Alternatively, perhaps in the future you could do this through portal_types? ...create a new type, based on an existing one -which you can already do- and then add a few extra properties and give it a suitable meta-type name?) The page properties tell it which stylesheet to use (so you can have diff colour schemes in diff parts of the site), which Layout to use (a layout is a "skeleton" page with empty cells where you can slot in content - you can have several different layouts per site), and which actual content-objects go in which cell (currently a "lines" property for each cell, so you can have several docs, images, and determine their order). Editors have a simple EditPage form with dropdown boxes to select Layout, stylesheet, content. I have found 4 problems with this structure (which I think are also relevant to the earlier CompositeContent discussion thread on this list)... - Do you just link to the original content-object, wherever it lives in the site (e.g. using getitem to pull it from the Member's folder into your page), or do you make a copy of it? If you just link to it, what happens if the original author changes it? Those changes will immediately show on your "page" without you getting a chance to review them! On the other hand, if you make a copy, you can hack it to suit your context, but any changes the original author makes won't be available, and you're duplicating all your content! - You don't have fine-grained control over your layout. You can only apply general rules in your Layout object (such as "All images should be left-aligned", "All document titles should be blue and bold"), you can't customise the appearance of each content-object. - It can get slow if you have a big page with lots of content-objects! (This is obviously not helped by the fact it's all written in DTML at the moment!) - How do you search? (This was mentioned in the CompositeContent discussion) You want a search to find only the content-objects which have been "published" to a page, and when you click on the result, you want it to show the whole page, not the content-object on its own! I have the beginnings of a theory to solve this, but would welcome input from others... i) Create a "Content-Metadata" object - an object that links a content-object (such as an Image or Document) to its slot on a page, and says how and when it is displayed. I was thinking of adding properties to a DTML Document to prototype this. So for example, when an editor is composing their page, they select a Portal Document to be included - this creates a "content-metadata" object (and adds its name to the lines property for that section of the page). The editor is then given a form where they can select whether the object is just a link to the original, or a copy of it (in which case the copy is stored in the content-metadata object perhaps?), what display properties to use (header colour, alignment, that sort of thing), and things like expiry-date (for this page only, not the whole site). When reviewing a page, any items which have been updated by the original author could easily be highlighted (by comparing modified dates), so the editor could go view them and see if they want to update their copy. ii) Create a "build" method for pages - every pagefolder has an index_html method which is like a "compiled" version of the page. Whenever one of the page's components is updated, the "build" method is autorun, scanning through all the components, just like a "view" method, but writing the resulting html to the index-html. Some bits that change often - like news_box - might be left as DTML inside index_html, to be calculated "on the fly". This should speed up display to the end-user, and means that your catalog (for end-user searches at least) only needs to index all the index_html pages. Anyway, enough of my ramblings! I have lots more ideas if people found these useful, but don't want to bore you all if you've already thought of them! :-) Apologies for the length of this message - two months of pent-up ideas spilling out! Cheers, Jon From dieter@handshake.de Sun Apr 22 20:40:41 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 22 Apr 2001 21:40:41 +0200 (CEST) Subject: [Zope-CMF] Custom Skins -- Images In-Reply-To: <724158753@toto.iv> Message-ID: <15075.13241.658127.919853@lindm.dm> Norman Khine writes: > ... customizing logo ... > The problem is that when I view the root index_html file and then click on > the URL link for the Printable page I get the index_html as it should be, > but I am not getting the logo image. > > The only way to make the logo appear is to provide the full path to the > image ie /Portal/portal_skins/Printable/logo_print.png What do you get? The broken image icon of the browser? Anyway, I would try to determine under what URL the browser wants to access the image. If you get the broken image icon, you can try to view the image alone (under Netscape: "View Image" in the context sensitive menu). This view will show the URL. Then I would try to determin why this URL is either wrong or correct but does not return the image. Dieter From dieter@handshake.de Sun Apr 22 20:44:02 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 22 Apr 2001 21:44:02 +0200 (CEST) Subject: [Zope-CMF] SearchableText, custom subfolders, 2 data streams. In-Reply-To: <390536433@toto.iv> Message-ID: <15075.13442.99864.689266@lindm.dm> Ignacio Valdes writes: > 1) Does the SearchableText python script have to reside in the > PortalPollProductClass? Can it be relocated to a local spot such as in > portal_skins/custom? This would make is global (in some way). Each content class can have a "SearchableText" method and they are usually different. > 3) I am modifying the Portal Poll product such that I'm adding > properties other than the stock ones such as documentationURL. I would > also like to use the standard metadata fields since they already hold > title, description, etc. So I need to have all of these data fields on > one input form, but then split them up to go to their appropriate > places: title, desc-->metadata and documentationURL-->PortalPoll > propertysheet. I'm trying to marry the two methods that do these > independently, but as far as I can tell with how is setup, it > doesn't appear as though you can submit to two different places at once. You can submit a form only to a single URL, but the object at this place can well use the request in different ways, a la: Dieter From dieter@handshake.de Sun Apr 22 19:57:41 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 22 Apr 2001 20:57:41 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: References: <15073.63103.332866.731142@lindm.dm> Message-ID: <15075.10661.287437.694336@lindm.dm> Shane Hathaway writes: > Sometimes even English doesn't have enough words. :-) portal_membership > is responsible only for the member database. In a multi-tier > architecture, it's the object that isolates the application from the > user database. > > portal_registration is an application-level service. Generally the > details of membership storage and the details of member policies vary > independently, so it makes sense to have separate objects for them. > > > "registration" should restrict itself to the task expressed > > by its name: "registration". > > .... or we need to rename the object. It originally was restricted to > registration issues, but it turns out that policy that governs > registration usually applies beyond registration. Of course, one can look at it that way. However, "membership" is such a good term - for the management of members (add, delete, change, access), but does not fit so well with the technical aspect of separating the application from the user database. "membership" has a strong application connotation. The technical object could get a nasty name, maybe "user_adapter", "member_adapter", "user_wrapper".... The discussion is only about terms but good terms help intuition and understanding very much .... Dieter From joe@iuveno-net.de Sun Apr 22 21:52:08 2001 From: joe@iuveno-net.de (Joachim Werner) Date: Sun, 22 Apr 2001 22:52:08 +0200 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) References: <003301c0cb57$d47059e0$05c84dc0@jon> Message-ID: <002101c0cb6e$1e6bdb80$0200a8c0@iuvenonet.de> > Structured Text). I used this one - http://dhtml.yaourts.com/ - which is Is the link o.k.? Doesn't work for me right now ... Joachim. From jon@pcgs.freeserve.co.uk Sun Apr 22 22:23:50 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Sun, 22 Apr 2001 22:23:50 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <002101c0cb6e$1e6bdb80$0200a8c0@iuvenonet.de> Message-ID: <003401c0cb72$893d9a80$05c84dc0@jon> The link is correct, but it's not working for me either! I could post the code to the list if people would find it useful? Cheers, Jon > Structured Text). I used this one - http://dhtml.yaourts.com/ - which is Is the link o.k.? Doesn't work for me right now ... Joachim. From blomert@hagen.de Sun Apr 22 23:25:20 2001 From: blomert@hagen.de (Peter Blomert) Date: Mon, 23 Apr 2001 00:25:20 +0200 Subject: [Zope-CMF] A german skin for CMF In-Reply-To: <20010421205042.B9076@lenin.jamkit.com> References: <20010421205042.B9076@lenin.jamkit.com> Message-ID: Hi, i made a (still rather handwoven) german translation-skin for the CMF-Product, but there remain two questions: 1. The add-content-page is built from the id and description of the portal-types. Who knows a way to change the appearance auf the add-content-page via skin-tool? 2. The default index_html document is built (as far as i can see it) from a pythonscript in CMFCore. Who knows a way to change this via skins? You can find my translation-skin at cmf.zope.org the moment it is reviewed i hope soon. I am very interested in your comments I think there will be some flaws and mistakes, so please help to smoothen this skin. Thanks in advance http://cmf.zope.org/Members/blomert/ cu online Peter Blomert From tseaver@digicool.com Mon Apr 23 00:47:06 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 22 Apr 2001 19:47:06 -0400 Subject: [Zope-CMF] SearchableText, custom subfolders, 2 data streams. References: <3AE24587.56116F83@hal-pc.org> Message-ID: <3AE36D7A.6C00E943@novacoxmail.com> Ignacio Valdes wrote: > > Hello all, I'm actually getting somewhere with my portal app, here's some stumper(to me) questions: > > 1) Does the SearchableText python script have to reside in the > PortalPollProductClass? Can it be relocated to a local spot such as in > portal_skins/custom? It can be, although there is good reason to put it on the class: class methods are more "tightly bound" to the object than skin methods. If you put in in 'portal_skins/custom', then it will be acquirable by *all* objects in the portal (those which don't have a "real" method of that name, anyway); I doubt that this is what you intend. ZClasses as simple portal content have a lot going for them: they can be pretty much responsible for only "pure business logic", with all UI in skin methods. I like this paradigm a lot. > 2) Is there a way to group methods in a subfolder of 'custom'? I was > able to move my modified PortalPollProduct methods to > portal_skins/custom, but can't gather them in a portal subfolder because > Zope seems unable to find them in a subfolder to portal_skins/custom. We would need to think about this before proceding; perhaps it would make sense to be able to group skin methods by "type object" ID, and have the skins tool automagically search for such a subfolder in each "regular" skins folder? > 3) I am modifying the Portal Poll product such that I'm adding > properties other than the stock ones such as documentationURL. I would > also like to use the standard metadata fields since they already hold > title, description, etc. So I need to have all of these data fields on > one input form, but then split them up to go to their appropriate > places: title, desc-->metadata and documentationURL-->PortalPoll > propertysheet. I don't quite get this -- why don't you want to edit the "poll-specific" data on its own view, and the standard metadata on the stock 'metadata_edit_form'? > I'm trying to marry the two methods that do these > independently, but as far as I can tell with how is setup, it > doesn't appear as though you can submit to two different places at once. > I've tried just calling EditDone, but this doesn't seem to do it without > the action= statement set to ./ You can create a single method as the POST target, and then have it update both the metadata and the poll properties:: context.editMetadata( REQUEST[ 'title' ], .... ) pps = context.propertysheets.PortalPollProperties pps.manage_changeProperites( REQUEST ) Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mj@digicool.com Mon Apr 23 09:13:32 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 23 Apr 2001 10:13:32 +0200 Subject: [Zope-CMF] FSPropertiesObject glitch In-Reply-To: <20010420163851.9278.qmail@eklektix.com>; from corbet-cmf@lwn.net on Fri, Apr 20, 2001 at 10:38:51AM -0600 References: <20010420163851.9278.qmail@eklektix.com> Message-ID: <20010423101332.B17060@zopatista.com> On Fri, Apr 20, 2001 at 10:38:51AM -0600, Jonathan Corbet wrote: > I'm just getting going with CMF, so go easy with me... For the moment, I'm > working on coercing CMF into making a site that looks suspiciously like > the LWN daily page, which means tweaking a lot of things. As soon as I > tried to customize generic/stylesheet_properties, though, I got a Python > barf. Not the result I had in mind. > > Turns out that FSPropertiesObject.manage_doCustomize wants to call > FSObject.manage_doCustomize with a "data" parameter that the latter doesn't > want. I got things working by just deleting the parameter: Hi Jon, This was my fault; I refactored the way the FS* family of objects work and I had removed the unused 'data' parameter from the factored-out base class, but I forgot to remove it from the overridden version in FSPropertiesObject. This is now fixed in CVS. Hope this helps! -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Mon Apr 23 09:14:32 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 23 Apr 2001 10:14:32 +0200 Subject: [Zope-CMF] too many arguments; expected 3, got 4 In-Reply-To: ; from khine@btinternet.com on Sat, Apr 21, 2001 at 07:59:41PM +0100 References: Message-ID: <20010423101432.C17060@zopatista.com> On Sat, Apr 21, 2001 at 07:59:41PM +0100, Norman Khine wrote: > Hello, > I am trying to update the stylesheet_properties from the generic folder, but > when I click on Customize I get the following error: > > Error Type: TypeError > Error Value: too many arguments; expected 3, got 4 Sorry, my fault, and fixed in CVS. Hope this helps! -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Mon Apr 23 09:18:36 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 23 Apr 2001 10:18:36 +0200 Subject: [Zope-CMF] portal skins - Images Folder - Attribute Error In-Reply-To: <20010421203449.A9076@lenin.jamkit.com>; from seb@jamkit.com on Sat, Apr 21, 2001 at 08:34:50PM +0100 References: <20010421203449.A9076@lenin.jamkit.com> Message-ID: <20010423101836.D17060@zopatista.com> On Sat, Apr 21, 2001 at 08:34:50PM +0100, seb bacon wrote: > It's a bug. I've not got a pristine version to diff, but in > CMFCore/FSImage, the lines: > > def _createZODBClone(self): > return Image(self.getId(), '', self._read()) > > should read: > > def _createZODBClone(self): > return Image(self.getId(), '', self._readFile()) Indeed, and I am to blame. Your fix is correct, sed, and checked into CVS. Mea culpa! -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Mon Apr 23 09:20:24 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 23 Apr 2001 10:20:24 +0200 Subject: [Zope-CMF] Properties customize error In-Reply-To: <20010421211229.D9076@lenin.jamkit.com>; from seb@jamkit.com on Sat, Apr 21, 2001 at 09:12:29PM +0100 References: <20010421211229.D9076@lenin.jamkit.com> Message-ID: <20010423102024.E17060@zopatista.com> On Sat, Apr 21, 2001 at 09:12:29PM +0100, seb bacon wrote: > D'oh, managed to delete the mail I was meant to be replying to. > It's another bug, here's the diff in sebdiff(tm) format > > File FSPropertiesObject.py: > > < def manage_doCustomize(self, folder_path, data=None, RESPONSE=None): > """Makes a ZODB Based clone with the same data. > > Calls _createZODBClone for the actual work. > """ > # Overridden here to provide a different redirect target. > > < FSObject.manage_doCustomize(self, folder_path, data, RESPONSE) > > --- > > > def manage_doCustomize(self, folder_path, RESPONSE=None): > """Makes a ZODB Based clone with the same data. > > Calls _createZODBClone for the actual work. > """ > # Overridden here to provide a different redirect target. > > > FSObject.manage_doCustomize(self, folder_path, RESPONSE) Thanks Seb, I already fixed this in CVS (see earlier emails). I removed the 'data' attribute completely. My-country-for-a-test-suit-ly your, -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@digicool.com Mon Apr 23 09:27:59 2001 From: mj@digicool.com (Martijn Pieters) Date: Mon, 23 Apr 2001 10:27:59 +0200 Subject: [Zope-CMF] Custom Skins --getObjectFSPath KeyError In-Reply-To: ; from marc@bowery.com on Sun, Apr 22, 2001 at 02:56:53AM -0400 References: Message-ID: <20010423102758.F17060@zopatista.com> On Sun, Apr 22, 2001 at 02:56:53AM -0400, marc lindahl wrote: > I was digging into: > http://cmf.zope.org/PTK/Members/jshell/News/PrintablePage/view > > but in step 2, I get this error... > using zope 2.3.1 and CMF 1.0 with current updates from CVS. > > > Anyone have an idea how to fix that?? > > > big ugly error output: > ----------------------- > > An exception occurred in a DTML method or document. > > Error type: KeyError > Error value: getObjectFSPath Hmm.. this sounds like you have a CVS checkout of CMF that either isn't the most recent or complete, or you didn't restart your Zope server after a CVS update. The FS* family of objects (of which FSDTMLMethod is but one) has been refactored in CVS, and the management screen you tried to call now tries to access the new method name for determining the path for the file-based DTML file it represents. The old version of the object doesn't define that method, however. Could you try a CVS update and a restart of your server, and let us know if that helped? -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From heiko.stoermer@andreas-schmid.de Mon Apr 23 13:28:03 2001 From: heiko.stoermer@andreas-schmid.de (Heiko Stoermer) Date: Mon, 23 Apr 2001 12:28:03 GMT+2 Subject: [Zope-CMF] CMF-Search: Zope Error when searching for nonexistent keyword Message-ID: <200104231133.f3NBXOu16142@linuxserver.deloginagb.de> Hi all, I think this has been asked before, but never answered. It is a rather seve= re problem for me. Platform: Zope 2.3.1b1 on a SuSE Linux 7.0 CMF cleanly installed with a new CMF-Site instance running. When I search for a keyword that exists - no problem, the search works. If the keyword is not in the catalog, I don't get the "0 matches" message a= s on cmf.zope.org but a Zope error: "expected integer key". I included the tracebacks I get when logged into CMF and logged out. The lo= ok a bit different but say mostly the same. <------------ traceback when not logged in: -------------> Error Type: TypeError
Error Value: expected integer key
[...] <--------------------- traceback when logged in: ----------->

TypeError

Sorry, a Zope error occurred.

Thanks for helping, Heiko --=0D Heiko Stoermer=0D Software Developer=0D Login & Solutions AG=0D =0D =0D =0D =0D =0D =0D =0D From seb@jamkit.com Mon Apr 23 13:11:22 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 23 Apr 2001 13:11:22 +0100 Subject: [Zope-CMF] CMF-Search: Zope Error when searching for nonexistent keyword In-Reply-To: <200104231133.f3NBXOu16142@linuxserver.deloginagb.de>; from heiko.stoermer@andreas-schmid.de on Mon, Apr 23, 2001 at 12:28:03PM +0000 References: <200104231133.f3NBXOu16142@linuxserver.deloginagb.de> Message-ID: <20010423131121.A1746@lenin.jamkit.com> * Heiko Stoermer [010423 13:25]: > Hi all, > > I think this has been asked before, but never answered. It is a rather severe problem for me. > > Platform: Zope 2.3.1b1 on a SuSE Linux 7.0 > CMF cleanly installed with a new CMF-Site instance running. > > When I search for a keyword that exists - no problem, the search works. > If the keyword is not in the catalog, I don't get the "0 matches" message as on cmf.zope.org but a Zope error: "expected integer key". > I included the tracebacks I get when logged into CMF and logged out. The look a bit different but say mostly the same. It is a catalog bug, which is fixed in CVS (and probably 2.3.2b). seb From gitte@mmmanager.org Mon Apr 23 12:59:26 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Mon, 23 Apr 2001 06:59:26 -0500 (EST) Subject: [Zope-CMF] Re: [Zope] Using odd numbers Message-ID: <988027166.3ae4191e1463b@guinevere.hhknet.dk> Okay I got it to work - sort of :-) Now I'm using it inside a CMF Portal. And I would like to use the built-in stylesheet so that every second line has another background color. But I am having some difficulties doing this. Do you need to set a class into the table tag to get it to work ? Because it doesn't work if I only set a class in the tr-tag. Regards, Gitte Citat Geir Bækholt : > > > ought to work... > > :-) > > -- > Geir Bækholt > Web-Developer/Zopatista > geirh@funcom.com > http://www.funcom.com > > on or about, Monday, April 23, 2001, we have reason to believe that > gitte@mmmanager.org wrote something along the lines of : > gmo> Hello, > > gmo> One time I saw some code using something like: > gmo> > gmo>

> gmo> > gmo> > gmo> > gmo> used to color the lines differently in a table. > > gmo> I have tried the above code but it doesn't seem to be working - > anyone who > gmo> remembers the correct code ? > > gmo> Regards, > gmo> Gitte > > gmo> _______________________________________________ > gmo> Zope maillist - Zope@zope.org > gmo> http://lists.zope.org/mailman/listinfo/zope > gmo> ** No cross posts or HTML encoding! ** > gmo> (Related lists - > gmo> http://lists.zope.org/mailman/listinfo/zope-announce > gmo> http://lists.zope.org/mailman/listinfo/zope-dev ) > > _______________________________________________ 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 ) ----- Slut på videresendt meddelelse ----- From tav" i was wondering how i would go about changing the default folder in which user folders are created in the CMF... i would like to use http://cmf-site.com/clients instead of http://cmf-site.com/Members if someone could point me to the references that i need to alter, i would appreciate it. i started grepping for 'Members' but was overwhelmed by the references to Members* ;p -- best regards, tav tav@espnow.com From chrisw@nipltd.com Mon Apr 23 14:29:26 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 23 Apr 2001 14:29:26 +0100 Subject: [Zope-CMF] changing default Members folder References: <017901c0cbf9$1a8bd200$e33e7ad5@arkady> Message-ID: <3AE42E36.B25DF0A7@nipltd.com> tav wrote: > > if someone could point me to the references that i need to alter, i would > appreciate it. i started grepping for 'Members' but was overwhelmed by the > references to Members* ;p I wonder if the string 'Members' should be a property somewhere? ;-) cheers, Chris From ivaldes@hal-pc.org Mon Apr 23 14:48:09 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 08:48:09 -0500 Subject: [Zope-CMF] SearchableText, custom subfolders, 2 data streams. References: <3AE24587.56116F83@hal-pc.org> <3AE36D7A.6C00E943@novacoxmail.com> Message-ID: <3AE43299.B0258D17@hal-pc.org> Tres Seaver wrote: > Ignacio Valdes wrote: > > > > Hello all, I'm actually getting somewhere with my portal app, here's some stumper(to me) questions: > > > > 1) Does the SearchableText python script have to reside in the > > PortalPollProductClass? Can it be relocated to a local spot such as in > > portal_skins/custom? > > It can be, although there is good reason to put it on the class: > class methods are more "tightly bound" to the object than skin > methods. If you put in in 'portal_skins/custom', then it will > be acquirable by *all* objects in the portal (those which don't > have a "real" method of that name, anyway); I doubt that this > is what you intend. > > This is admittedly something of a kludge I'm making brought about by my relationship with my ISP so that I don't have to ask him for intervention when I need to change something that is not in my space such as product installation. Thus some of these 'odd' ways of doing things. > > > 2) Is there a way to group methods in a subfolder of 'custom'? I was > > able to move my modified PortalPollProduct methods to > > portal_skins/custom, but can't gather them in a portal subfolder because > > Zope seems unable to find them in a subfolder to portal_skins/custom. > > We would need to think about this before proceding; perhaps it > would make sense to be able to group skin methods by "type > object" ID, and have the skins tool automagically search for > such a subfolder in each "regular" skins folder? > As above, unless there is a different way of doing this, it would be beneficial since I won't be able to modify my custom product methods directly in the class when I move it to my ISP. > > > 3) I am modifying the Portal Poll product such that I'm adding > > properties other than the stock ones such as documentationURL. I would > > also like to use the standard metadata fields since they already hold > > title, description, etc. So I need to have all of these data fields on > > one input form, but then split them up to go to their appropriate > > places: title, desc-->metadata and documentationURL-->PortalPoll > > propertysheet. > > I don't quite get this -- why don't you want to edit the > "poll-specific" data on its own view, and the standard metadata > on the stock 'metadata_edit_form'? > Hmm, you have a point, perhaps I can put it into a two part form. The idea is to have all of my additional fields on one form so that I don't duplicate fields such as title, description and contributors. BTW, is the 'Subject' field operated on by special routines? i.e. is there catalog functions that are specific to 'Subject' or are does Zcat work on all metadata equally? > > You can create a single method as the POST target, and then have > it update both the metadata and the poll properties:: > > context.editMetadata( REQUEST[ 'title' ], .... ) > pps = context.propertysheets.PortalPollProperties > pps.manage_changeProperites( REQUEST ) > Good, the above is a lot cleaner. Thanks, -- IV From sigve@tjora.no Mon Apr 23 14:44:53 2001 From: sigve@tjora.no (Sigve Tjora) Date: Mon, 23 Apr 2001 15:44:53 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: <3AE04411.CAD932E9@digicool.com> Message-ID: > Sigve Tjora wrote: > > > > Hi! > > > > I want to save some data about users in their MemberData-object, and I use > > python for the task. Is it ok just to set a propertie on an > > MemberData-object or is there a better way? > > > > Eg. can I just write > > user=portal_membership.getAuthenticatedUser() > > user.myData="Just an object or a text..." Shane: > In the member data tool, add a property called "myData". Then change > the code above to: > > portal_registration.setProperties(myData="some special preference") I want to store a plain python dictionary, and not just for the authenticated user. If I just store the dictionary in the user object, eg. user=portal_membership.getAutehnticatedUser() user.myData={"id1":"data1", "id2":"data2"} If I do it this way, the userobject "looses" this property when I restart Zope. Why is that? How can I store basic python-objects within the userobject? mvh Sigve Tjora From sigve@tjora.no Mon Apr 23 14:55:10 2001 From: sigve@tjora.no (Sigve Tjora) Date: Mon, 23 Apr 2001 15:55:10 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: Message-ID: > Shane: > > In the member data tool, add a property called "myData". Then change > > the code above to: > > > > portal_registration.setProperties(myData="some special preference") > > I want to store a plain python dictionary, and not just for the > authenticated user. > > If I just store the dictionary in the user object, eg. > > user=portal_membership.getAutehnticatedUser() > user.myData={"id1":"data1", "id2":"data2"} > > If I do it this way, the userobject "looses" this property when I restart > Zope. Why is that? How can I store basic python-objects within the > userobject? > > mvh Sigve Tjora Somehow this worked now. I can't figure out what I have changed that should make it work, but it works anyway. mvh Sigve Tjora From Charles.Hall@sas.com Mon Apr 23 14:58:06 2001 From: Charles.Hall@sas.com (Charles Hall) Date: Mon, 23 Apr 2001 09:58:06 -0400 Subject: [Zope-CMF] Newbie question. - Templates Message-ID: Thanks IV, the docs here are much more complete than when I visited these pages a few weeks ago. I still don't quite get it though. I guess what I'm looking for is some form of "template" tool. Does Zope have another name for this? I don't want my editors typing in any HTML, even if it's just "include footer.html" or something. I need a way for them to create pages and "fill in the blanks". Does Zope have any ready-made tools to do this? Thanks, Charles Hall Cary, NC USA > -----Original Message----- > From: Ignacio Valdes [mailto:ivaldes@hal-pc.org] > > Yes, http://cmf.zope.org/doc > > -- IV From seb@jamkit.com Mon Apr 23 15:58:44 2001 From: seb@jamkit.com (seb bacon) Date: Mon, 23 Apr 2001 15:58:44 +0100 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python In-Reply-To: ; from sigve@tjora.no on Mon, Apr 23, 2001 at 03:44:53PM +0200 References: <3AE04411.CAD932E9@digicool.com> Message-ID: <20010423155843.D1746@lenin.jamkit.com> * Sigve Tjora [010423 15:46]: > I want to store a plain python dictionary, and not just for the > authenticated user. > > If I just store the dictionary in the user object, eg. > > user=portal_membership.getAutehnticatedUser() > user.myData={"id1":"data1", "id2":"data2"} This code will still work 'just for the authenticated user' - I'm not sure I get what you are trying to do. Why not make your variable one of the MemberData properties, as Shane suggested? Anyway, I thought I'd point out that you must be very careful when assigning values to mutable sequences such as dictionaries. If you change such properties in place, your changes won't be registered with the ZOBD persistence machinery unless you explicitly deal with each change...for more info, refer to: http://www.zope.org/Documentation/ZDG/Persistence.dtml > > If I do it this way, the userobject "looses" this property when I restart > Zope. Why is that? How can I store basic python-objects within the > userobject? depends on your symptoms, but it could be related to the persistence issue above. seb From shane@digicool.com Mon Apr 23 15:41:16 2001 From: shane@digicool.com (Shane Hathaway) Date: Mon, 23 Apr 2001 10:41:16 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-object from python References: Message-ID: <3AE43F0C.CB5A288A@digicool.com> Sigve Tjora wrote: > I want to store a plain python dictionary, and not just for the > authenticated user. > > If I just store the dictionary in the user object, eg. > > user=portal_membership.getAutehnticatedUser() > user.myData={"id1":"data1", "id2":"data2"} > > If I do it this way, the userobject "looses" this property when I restart > Zope. Why is that? How can I store basic python-objects within the > userobject? The user object is not necessarily persistent, and not necessarily created on the fly either. (Redundancy for emphasis.) You can't tack on properties on a user object and expect them to be saved since the users might come from a non-persistent source like an LDAP database. Similarly, you can't tack on properties and expect that they *won't* be saved, so you shouldn't try to remap user roles this way (which the portal_membership does right now if you use the role mapping form--that part needs to be redone.) However, *member* objects are always persistent. Member objects correspond to user objects, but since user objects are not necessarily persistent, a "member" class can't use "user" as a base class. So what you really want is: m=portal_membership.getAuthenticatedMember() m.myData={"id1":"data1", "id2":"data2"} Now, I can't guarantee this will work either. :-) But in theory it could work reliably. Shane From khine@bmpublications.co.uk Mon Apr 23 16:09:26 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Mon, 23 Apr 2001 16:09:26 +0100 Subject: [Zope-CMF] mysqlUserFolder and CMF Message-ID: Hello, Has anyone implemented mysqlUserFolder with CMF? I am asking because I would like to use CMF with an existing MySQL database schema for authentication, but am finding it difficult to link the two methods / or merge the two. >From what I understand -- in my case NOT A LOT ;^( -- one can use mysqlUserFolder to authenticate and store the values/ data of the user in a MySQL database. This being the case am I right to assume that I can use my existing UserRegistration which writes to the database, form to add new users that will get registered in the CMF. How do I alter the current acl_users folder so that it uses the acl_users (MySQL User Folder), or is there a better way to do this. Thank you Norman ========================================= "Eternity is Time Time, eternity To see the two as opposite Is Man's Perversity" The Book of Angelus Silesius From ivaldes@hal-pc.org Mon Apr 23 17:40:43 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 11:40:43 -0500 Subject: [Zope-CMF] New Feature: Cut, Copy, Paste Property Sheet items. Message-ID: <3AE45B0B.BA5E1E9D@hal-pc.org> Hi, Is this the place to ask for new features? Just an observation: It would be nice to have Cut, Copy, Paste available for Property Sheet items. Currently you can Save and Delete only. If it wouldn't be too much trouble... -- IV From pdodde@poyntz.com Mon Apr 23 17:45:27 2001 From: pdodde@poyntz.com (Phil Dodderidge) Date: Mon, 23 Apr 2001 16:45:27 +0000 Subject: [Zope-CMF] mysqlUserFolder and CMF References: Message-ID: <3AE45C27.16821746@kc.rr.com> Norman Khine wrote: > Hello, > > Has anyone implemented mysqlUserFolder with CMF? I am asking because I would > like to use CMF with an existing MySQL database schema for authentication, > but am finding it difficult to link the two methods / or merge the two. > > >From what I understand -- in my case NOT A LOT ;^( -- one can use > mysqlUserFolder to authenticate and store the values/ data of the user in a > MySQL database. This being the case am I right to assume that I can use my > existing UserRegistration which writes to the database, form to add new > users that will get registered in the CMF. The easiest way to do this would probably be to combine the parts of your UserRegistration form which write to the database with the register.dtml method in the CMF Skins Tool into a customized register.dtml method. You will also need to customize the join_form.dtml to gather whatever extra data you are putting in your database. > > > How do I alter the current acl_users folder so that it uses the acl_users > (MySQL User Folder), or is there a better way to do this. You can delete the default acl_users and add a MySQL User Folder to your CMF Site. > > > Thank you > > Norman > > ========================================= > "Eternity is Time > Time, eternity > To see the two as opposite > Is Man's Perversity" > > The Book of Angelus Silesius > > _______________________________________________ > 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 complaw@hal-pc.org Mon Apr 23 17:43:36 2001 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Mon, 23 Apr 2001 16:43:36 GMT Subject: [Zope-CMF] New Feature: Cut, Copy, Paste Property Sheet items. Message-ID: <200104231642.LAA10144@mail.hal-pc.org> I would like to second that request for Ignacio's feature. Having the ability to copy and paste properties would greatly speed implementation of those products that have several (often similar) property settings, such as Squishdot. All in favor... Ron > Hi, > > Is this the place to ask for new features? Just an observation: It would > be nice to have Cut, Copy, Paste available for Property Sheet items. > Currently you can Save and Delete only. If it wouldn't be too much > trouble... > > -- IV > > > _______________________________________________ > 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 jvdveen@dds.nl Mon Apr 23 17:47:29 2001 From: jvdveen@dds.nl (jvdveen@dds.nl) Date: Mon, 23 Apr 2001 18:47:29 +0200 Subject: [Zope-CMF] Catalog....?? Message-ID: <015d01c0cc15$174744a0$9600000a@ja> Hi all, I have a question I hope someone could help me with.. I have made a Znieuws (Zclass) for adding newsarticles. If I add a instance through the zope interface everything is ok. The instance is putten into the Catalog with all of it's properties. I've allso made a few pages where you can see all the articles, add articles edit articles and delete news articles. Now my problem is If I add an article through the "user" interface (without seeing the zope interface). The article is put ito the catalog but it misses all of it's properties , except for bobo_modification_time and title. If I now manualy update the Catalog (selecting the catalog, on the catalog tab selecting the article and press update) It gets all of it's properties cataloged and so everything works. Hope someone can help on this. I couldn't find anything in the archives. Thanx, James From jeffrey@Digicool.com Mon Apr 23 18:29:44 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Mon, 23 Apr 2001 13:29:44 -0400 Subject: [Zope-CMF] New Feature: Cut, Copy, Paste Property Sheet items. In-Reply-To: <3AE45B0B.BA5E1E9D@hal-pc.org> Message-ID: On 4/23/01 12:40 PM, "Ignacio Valdes" wrote: > Hi, > > Is this the place to ask for new features? Just an observation: It would > be nice to have Cut, Copy, Paste available for Property Sheet items. > Currently you can Save and Delete only. If it wouldn't be too much > trouble... > > -- IV That sounds more like an issue for Zope in general, not the CMF. Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From marc@bowery.com Mon Apr 23 18:43:57 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 23 Apr 2001 13:43:57 -0400 Subject: [Zope-CMF] Custom Skins --getObjectFSPath KeyError In-Reply-To: <20010423102758.F17060@zopatista.com> Message-ID: > From: Martijn Pieters > > Hmm.. this sounds like you have a CVS checkout of CMF that either isn't > the most recent or complete, or you didn't restart your Zope server after > a CVS update. Yup, that was it. Previously I was slogging thru the web interface to CVS -- evidently, impossible to make sure you have every up to date file :) Bit the bullet, got the macCVS client, and now my life is complete :) (by the way, when it lists modules, CMF doesn't show up, though you can check it out) Thanks!!! From corbet-cmf@lwn.net Mon Apr 23 21:08:06 2001 From: corbet-cmf@lwn.net (Jonathan Corbet) Date: Mon, 23 Apr 2001 14:08:06 -0600 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: Your message of "Sat, 21 Apr 2001 23:11:27 +0200." <15073.63359.158534.718532@lindm.dm> Message-ID: <20010423200806.29095.qmail@eklektix.com> I'm still working on how to upload news items with FTP. As far as I can tell from my digging so far, it can't be done. I'd be overjoyed if somebody told me otherwise... If you look at http://cmf.zope.org/doc/user/BasicContent.txt/view, it says, among other things: the CMF checks the incoming data to see if it has a piece of metadata called Type. The value of this metadata property would instruct the CMF to create, for instance, a NewsItem. But, as far as I can tell, that simply is not true. A couple of content types (Document, NewsItem) use parseHeadersBody to grab metadata and set things like the title, but that is done *after* the object has been created. There is nothing, currently, which looks at headers before the object is created. So, even though NewsItem defines a PUT_factory method, nothing ever calls it. I could perhaps bash out a hacky solution in PortalFolder.PUT_factory that would make things work. I get a sense, though, from the code that the whole portal_types mechanism is intended to be used in this sort of role, and I haven't done anywhere near enough time staring at the code to figure out how I might make that happen... Thoughts? jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net From jack@digicool.com Mon Apr 23 21:17:30 2001 From: jack@digicool.com (John Fitzgerald) Date: Mon, 23 Apr 2001 16:17:30 -0400 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: <20010423200806.29095.qmail@eklektix.com> Message-ID: Hello Jon, You might want to check out the end of the __init__.py in CMFDefault. There is where the 'types' for the PUT_factory are registered. You could do something similar in your __init__.py if you like. This would cause 'your' object to be created on the 'PUT' from FTP. I hope this helps. -Jack > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of Jonathan Corbet > Sent: Monday, April 23, 2001 4:08 PM > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] Uploading news items with FTP > > > I'm still working on how to upload news items with FTP. As far as I can > tell from my digging so far, it can't be done. I'd be overjoyed if > somebody told me otherwise... > > If you look at > http://cmf.zope.org/doc/user/BasicContent.txt/view, it says, > among other things: > > the CMF checks the incoming data to see if it has a piece > of metadata > called Type. The value of this metadata property would instruct the > CMF to create, for instance, a NewsItem. > > But, as far as I can tell, that simply is not true. A couple of content > types (Document, NewsItem) use parseHeadersBody to grab metadata and set > things like the title, but that is done *after* the object has been > created. There is nothing, currently, which looks at headers before the > object is created. > > So, even though NewsItem defines a PUT_factory method, nothing ever calls > it. > > I could perhaps bash out a hacky solution in PortalFolder.PUT_factory that > would make things work. I get a sense, though, from the code that the > whole portal_types mechanism is intended to be used in this sort of role, > and I haven't done anywhere near enough time staring at the code to figure > out how I might make that happen... > > Thoughts? > > jon > > Jonathan Corbet > Executive editor, LWN.net > corbet@lwn.net > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From dieter@handshake.de Mon Apr 23 20:39:41 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 23 Apr 2001 21:39:41 +0200 (CEST) Subject: [Zope-CMF] changing default Members folder In-Reply-To: <351106436@toto.iv> Message-ID: <15076.34045.714859.876450@lindm.dm> tav writes: > i was wondering how i would go about changing the default folder in which > user folders are created in the CMF... i would like to use > http://cmf-site.com/clients instead of http://cmf-site.com/Members > > if someone could point me to the references that i need to alter, i would > appreciate it. i started grepping for 'Members' but was overwhelmed by the > references to Members* ;p "CFMCore.MembershipTool.MembershipTool.createMemberarea" "CFMDefault.MembershipTool.MembershipTool.getHomeFolder" Dieter From dieter@handshake.de Mon Apr 23 20:52:37 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 23 Apr 2001 21:52:37 +0200 (CEST) Subject: [Zope-CMF] mysqlUserFolder and CMF In-Reply-To: <1017900843@toto.iv> Message-ID: <15076.34821.403878.649034@lindm.dm> Norman Khine writes: > Has anyone implemented mysqlUserFolder with CMF? I am asking because I would > like to use CMF with an existing MySQL database schema for authentication, > but am finding it difficult to link the two methods / or merge the two. Do you already have a working "mysqlUserFolder"? If so, just plug it in. It may work although the CMF uses internal methods of the "User" and "UserFolder" objects rather than the official API (which is bad, but I understand why they do it nevertheless ;-)). Dieter From dieter@handshake.de Mon Apr 23 20:49:09 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 23 Apr 2001 21:49:09 +0200 (CEST) Subject: [Zope-CMF] Newbie question. - Templates In-Reply-To: <577881217@toto.iv> Message-ID: <15076.34613.328563.42257@lindm.dm> Charles Hall writes: > I guess what I'm looking for is some form of "template" tool. Does Zope have another name for this? I don't want my editors typing in any HTML, even if it's just "include footer.html" or something. I need a way for them to create pages and "fill in the blanks". > > Does Zope have any ready-made tools to do this? Zope's templating tool is DTML (Document Template Markup Language): You define what blanks there may be, properties of your content objects. You define a form to enter/modify the blanks. You define a DTML object to present a nice looking view of the content with the filled in blanks. There may be third party tools that help you in doing the above steps. Search zope.org for "form design". "MetaPublisher" may be such a product, though I did not look more closely at it. Dieter From dieter@handshake.de Mon Apr 23 19:30:27 2001 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 23 Apr 2001 20:30:27 +0200 (CEST) Subject: [Zope-CMF] Custom Skins -- Images In-Reply-To: References: <15075.13241.658127.919853@lindm.dm> Message-ID: <15076.29891.562091.991001@lindm.dm> Norman Khine writes: > I get the broken image icon. I am using IE5 and under the properties for the > image the URL referenced is the Protal root folder and not the > /Portal/portal_skins/Printable/ folder. And "Printable" is listed in the used skins chain? Then, the URL would be correct. Skins are a tool to make available the content items of a sequence of folders (or other similar objects) as if they were members of the SkinsTool container. Thus, if "Printable" is one of these folders (and contains the image), then "/Portal/CustomLogo" will access "/Portal/portal_skins/Printable/CustomLogo" (unless there are name conflict in which case, you might get a different object). When you enter the URL directly, do you get a "Not Found" response? This might indicate that "Printable" is not in the skins chain. Dieter From tav" Message-ID: <01e401c0cc37$23a99dc0$e33e7ad5@arkady> >>>>> DM == "Dieter Maurer" wrote: Me> i was wondering how i would go about changing the Me> default folder in which user folders are created in the CMF DM> "CFMCore.MembershipTool.MembershipTool.createMemberarea" DM> "CFMDefault.MembershipTool.MembershipTool.getHomeFolder" thanks dieter! i edited the appropriate entries, and restarted the server... it works perfectly for a new CMF site... however, in an existing one, it retains 'Members' over my 'clients'. anyone know why and how to overcome this? -- best regards, tav tav@espnow.com From corbet@lwn.net Mon Apr 23 21:47:18 2001 From: corbet@lwn.net (Jonathan Corbet) Date: Mon, 23 Apr 2001 14:47:18 -0600 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: Your message of "Mon, 23 Apr 2001 16:17:30 EDT." Message-ID: <20010423204718.30033.qmail@eklektix.com> > You might want to check out the end of the __init__.py in CMFDefault. > There is where the 'types' for the PUT_factory are registered. You could do > something similar in your __init__.py if you like. This would cause 'your' > object to be created on the 'PUT' from FTP. I hope this helps. I tried that, actually. Didn't work. First, it looks at the content-type header, such as it is, and not the "Type:" field as described on the CMF site. The content-type "header" gets set way down deep in the Zope code - essentially, it becomes text/html. The core Zope code knows nothing about news items, after all. If I were to go into the MIME type dictionary and make a ".news" file become text/newsitem or some such, I could probably succeed in uploading news items by way of the stuff in CMFDefault/__init__.py, but that, too, is a hack. That doesn't look like the way it was meant to be done in CMF. But then, maybe I'm wrong, it certainly wouldn't be the first time. Thanks, jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net From jon@pcgs.freeserve.co.uk Mon Apr 23 22:03:39 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Mon, 23 Apr 2001 22:03:39 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <002101c0cb6e$1e6bdb80$0200a8c0@iuvenonet.de> Message-ID: <000201c0cc38$e3410d20$05c84dc0@jon> A couple of people have requested this, so I've posted a zip (sorry, I've only got access to a Win machine) of the original download to - http://cmf.zope.org/Members/joned/wysiwyg/file_view - I've submitted it for publication, so hopefully you'll be able to download it soon! Cheers, Jon > Structured Text). I used this one - http://dhtml.yaourts.com/ - which is Is the link o.k.? Doesn't work for me right now ... Joachim. From adeknegt@worldonline.nl Mon Apr 23 22:15:16 2001 From: adeknegt@worldonline.nl (Arjan de Knegt) Date: Mon, 23 Apr 2001 23:15:16 +0200 Subject: [Zope-CMF] Custom Skins -- Images Message-ID: <3AE49B64.672069E1@worldonline.nl> Dieter, Norman and others, I can confirm the problem of Norman. "Livin' on the edge" I've just tested this with Zope 2.3.2b2 and the very latest CMF cvs checkout (including the FSImage and FSPropertiesObject patches). Example: A clean CMF site with a newly joint member shows the broken-image icon for a Document in MyStuff. URL of the Document Icon: /document-icon.gif (and the obvious "resource not found" Zope error). URL looks O.K. to me. Same issue for other portal-type icons. Icons like UpFolder_icon.gif are showing without any problem. I'm afraid I don't have a usefull clue about this one. Found another small twitch also: "Add to Favorites" results in a Zope Site error (see below). Afterwards, the link has been added to the favorites list anyhow! ===== Site Error An error was encountered while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: http:////Members/benice/Favorites/view ===== Keep up the good work! regards, Arjan. ------------ >Norman Khine writes: >> ... customizing logo ... > > The problem is that when I view the root index_html file and then click on > > the URL link for the Printable page I get the index_html as it should be, > > but I am not getting the logo image. > > > > The only way to make the logo appear is to provide the full path to the > > image ie /Portal/portal_skins/Printable/logo_print.png >What do you get? The broken image icon of the browser? > >Anyway, I would try to determine under what URL the browser >wants to access the image. If you get the broken image icon, >you can try to view the image alone (under Netscape: "View Image" >in the context sensitive menu). This view will show the URL. >Then I would try to determin why this URL is either wrong >or correct but does not return the image. > > >Dieter From ivaldes@hal-pc.org Tue Apr 24 02:36:45 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 20:36:45 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title Message-ID: <3AE4D8AD.16F27777@hal-pc.org> Hello all, How does one make Zope/CMF generate unique object portal_type id's automatically instead of the user defined one? I want to use the metadata Title field instead for Folder and portal_type instance names because portal_type id's do not support special characters:'? etc. This would enable one to use the file system structure in an application with ease. Getting real close to having my app done. -- IV From aem@byu.edu Tue Apr 24 02:37:03 2001 From: aem@byu.edu (Adrian Madrid) Date: Mon, 23 Apr 2001 18:37:03 -0700 (PDT) Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <003301c0cb57$d47059e0$05c84dc0@jon> Message-ID: <20010424013703.73835.qmail@web10108.mail.yahoo.com> --- Jon Edwards wrote: > Hi all! First of all huge thanks to Digital > Creations and the Zope/CMF > community for creating such an excellent set of > tools and such a friendly > and helpful community! Ditto. The CMF is giving me headaches simply because I'm trying to acomplish things I don't have the zen yet but I'm having the greatest time learning and solving problems. Besides, the compliments on the work already accomplished are worth any headache. > ... > a) Simplified the layout - took out all the divs and > used plain tables (i > found I was sometimes getting weird overlaps) Ditto. On the plus side you can easily make every page look exactly how you want it. On the minus side you loose the ability of using other people's skins. In my case, worth the trouble. > b) Actions box - our sites will have many anonymous > visitors, and only a > handful of editors/contibutors, so I made the > Actions Box a flat bar at the > top of the page, which is only visible when you are > logged in (editors > bookmark the login screen so they can find it > easily). This gives you more > room on your screen, and is less confusing to casual > visitors. I am splittng the action box into two. The user+global actions pretty much in the same place and folder+workflow+object actions below the actual object. And if you are the owner (or reviewer) I show you the object id and status. > ... > d) WYSIWYG editor - used a Javascript WYSIWYG html > editor for all textarea > bits on the edit forms (our editors know little HTML > and didnt want to learn > Structured Text). I used this one - > http://dhtml.yaourts.com/ - which is > IE4+ only, but I think there are others compatible > with Netscape. This > includes dropdown boxes for styles and colours - in > the future I'm hoping to > link these to the stylesheets, so contributors can > only pick styles and > colours that match the overall look of the site. That sounds interesting. I tried the URL but nothing came up. Is it my connection or the URL was wrong? On the other hand, HTML gives you greater layout posibilities but doesn't it make it more complex for the searching (ie. including HTML tags in SearchableText)? > e) Site Structure - errr... this is kinda complex! > :-) I've hacked together > a "CompositeContent" sorta structure, but using only > DTML. Each "page" is a > Portal Folder, with added properties. > > (N.B it would great if you could add properties to > Portal Documents, Images, > NewsItems, etc, through the ZMI, as you can > currently with Portal Folders. > You can store your butchered objects in a folder in > Skins, then just use the > manage-addClone/manage_editProperties method to > create new ones - > quick-and-dirty way to create products for > non-programmers! Alternatively, > perhaps in the future you could do this through > portal_types? ...create a > new type, based on an existing one -which you can > already do- and then add a > few extra properties and give it a suitable > meta-type name?) I think this could REALLY jumpstart the creation of CFM sites. I believe that many times this is the only reason to come up with your own products: adding a few special properties and create a new content type based on an old type. > The page properties tell it which stylesheet to use > (so you can have diff > colour schemes in diff parts of the site), which > Layout to use (a layout is > a "skeleton" page with empty cells where you can > slot in content - you can > have several different layouts per site), and which > actual content-objects > go in which cell (currently a "lines" property for > each cell, so you can > have several docs, images, and determine their > order). Editors have a simple > EditPage form with dropdown boxes to select Layout, > stylesheet, content. > > I have found 4 problems with this structure (which I > think are also relevant > to the earlier CompositeContent discussion thread on > this list)... > > - Do you just link to the original content-object, > wherever it lives in the > site (e.g. using getitem to pull it from the > Member's folder into your > page), or do you make a copy of it? If you just link > to it, what happens if > the original author changes it? Those changes will > immediately show on your > "page" without you getting a chance to review them! With the current workflow you can't make any changes until you retract your document. Then to republish it you have to go through the whole process again. My approach is to have a 'location' field with the 'portal/a/b/c' form and pull the articles through a search in their respective folders. > On the other hand, if > you make a copy, you can hack it to suit your > context, but any changes the > original author makes won't be available, and you're > duplicating all your > content! Yup. I think the previous approach is better. > - You don't have fine-grained control over your > layout. You can only apply > general rules in your Layout object (such as "All > images should be > left-aligned", "All document titles should be blue > and bold"), you can't > customise the appearance of each content-object. Yes, but the opposite can become too dificult for the authors. You'd have to create a structure like folder-document-page-paragraph with the overhead of heavy logic and interface for each. I don't see how to accomplish such task in one page without lots of dhtml/javascript/whatyouhavenot. > ... > - How do you search? (This was mentioned in the > CompositeContent discussion) > You want a search to find only the content-objects > which have been > "published" to a page, and when you click on the > result, you want it to show > the whole page, not the content-object on its own! > > I have the beginnings of a theory to solve this, but > would welcome input > from others... I'm stil working on a composite object but my approach so far is having a dublin container with normal objects inside. The trick is to have SearchableText go through the contained objects and retrieve the apropiate text to search. > ... > Anyway, enough of my ramblings! I have lots more > ideas if people found these > useful, but don't want to bore you all if you've > already thought of them! > :-) > > Apologies for the length of this message - two > months of pent-up ideas > spilling out! > > Cheers, Jon Thanks for your ideas and comments. I apreciate the time and attitude of sharing your ideas. It helped me to think about things I hadn't even thought about and clarify my position on other issues. Thanks again, ===== --------------------------- Adrian Esteban Madrid Benson Institute, Webmaster Brigham Young University --------------------------- adrian_esteban@madrid.com =========================== __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From ivaldes@hal-pc.org Tue Apr 24 03:30:17 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 21:30:17 -0500 Subject: [Zope-CMF] Is it just me? Folder metadata edit doesn't seem to work. References: <3AE4D8AD.16F27777@hal-pc.org> Message-ID: <3AE4E539.30F33A0F@hal-pc.org> Hello again, Is it just me? None of my CMF sites, including a new one without any mods gives this error when I try to edit Folder metadata for a particular folder: -- IV Zope Error Zope has encountered an error while publishing this resource. TypeError Sorry, a Zope error occurred. Traceback (innermost last): File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-3-1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2-3-1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: folder_edit) File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: folder_edit) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: folder_edit) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: folder_edit) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: portal_status_message="'Folder changed.'") File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Return.py, line 104, in render (Object: folder_contents) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: folder_contents) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: folder_contents) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: actions_box) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: actions_box) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: isAnon="portal_membership.isAnonymousUser()" AuthClass="isAnon and 'GuestActions' or 'MemberActions'" uname="isAnon and 'Guest' or portal_membership.getAuthenticatedMember().getUserName()" obj="this()" actions="portal_actions.listFilteredActionsFor(obj)" user_actions="actions['user']" folder_actions="actions['folder']" object_actions="actions['object'] + actions['workflow']" global_actions="actions['global']") File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: portal_actions.listFilteredActionsFor(obj)) (Info: portal_actions) File , line 0, in ? File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/ActionsTool.py, line 162, in listFilteredActionsFor (Object: portal_actions) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/WorkflowTool.py, line 222, in listActions (Object: portal_workflow) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/DefaultWorkflow.py, line 209, in listGlobalActions File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/CatalogTool.py, line 200, in searchResults (Object: Traversable) File /usr/local/zope/2-3-1/lib/python/Products/ZCatalog/ZCatalog.py, line 535, in searchResults (Object: Traversable) File /usr/local/zope/2-3-1/lib/python/Products/ZCatalog/Catalog.py, line 651, in searchResults File /usr/local/zope/2-3-1/lib/python/Products/ZCatalog/Catalog.py, line 542, in _indexedSearch File /usr/local/zope/2-3-1/lib/python/SearchIndex/UnTextIndex.py, line 513, in _apply_index File /usr/local/zope/2-3-1/lib/python/SearchIndex/UnTextIndex.py, line 576, in query File /usr/local/zope/2-3-1/lib/python/SearchIndex/UnTextIndex.py, line 616, in evaluate File /usr/local/zope/2-3-1/lib/python/SearchIndex/UnTextIndex.py, line 448, in __getitem__ TypeError: expected integer key From ivaldes@hal-pc.org Tue Apr 24 03:33:23 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 21:33:23 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title References: <3AE4D8AD.16F27777@hal-pc.org> Message-ID: <3AE4E5F3.AB9E877B@hal-pc.org> Ignacio Valdes wrote: > Hello all, > > How does one make Zope/CMF generate unique object portal_type id's > automatically instead of the user defined one? I want to use the > metadata Title field instead for Folder and portal_type instance names > because portal_type id's do not support special characters:'? etc. This > would enable one to use the file system structure in an application with > ease. Getting real close to having my app done. > > -- IV > I've tried creating a python script called generateID with the following one line: return "%s" (DateTime().timeTime()) I think this is on the right track, but it returns the same number every time. Smelling the finish line... -- IV From wilson@visi.com Tue Apr 24 03:30:33 2001 From: wilson@visi.com (Timothy Wilson) Date: Mon, 23 Apr 2001 21:30:33 -0500 (CDT) Subject: [Zope-CMF] Automatic ID generation -- > Title In-Reply-To: <3AE4E5F3.AB9E877B@hal-pc.org> Message-ID: On Mon, 23 Apr 2001, Ignacio Valdes wrote: > I've tried creating a python script called generateID with the following one line: > > return "%s" (DateTime().timeTime()) > > I think this is on the right track, but it returns the same number every time. > Smelling the finish line... Have you tried ZopeTime()? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.org W. St. Paul, MN | | http://slashdot.org wilson@visi.com | | http://linux.com From ivaldes@hal-pc.org Tue Apr 24 04:07:02 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 22:07:02 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title References: Message-ID: <3AE4EDD6.A7916F9F@hal-pc.org> Timothy Wilson wrote: > On Mon, 23 Apr 2001, Ignacio Valdes wrote: > > > I've tried creating a python script called generateID with the following one line: > > > > return "%s" (DateTime().timeTime()) > > > > I think this is on the right track, but it returns the same number every time. > > Smelling the finish line... > > Have you tried ZopeTime()? > > -Tim Thanks, came across this: from a tip on the zope site: http://www.zope.org/Members/Bill/Documentation/AutoGenID But when I stick it into the right place in folder_factories: " size="50"> It comes back with 'None' in the id field on screen. Hmm, don't know the right syntactic sugar for this. -- IV From ivaldes@hal-pc.org Tue Apr 24 04:37:26 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 22:37:26 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! References: <3AE4EDD6.A7916F9F@hal-pc.org> Message-ID: <3AE4F4F6.484A49F3@hal-pc.org> Ignacio Valdes wrote: > Timothy Wilson wrote: > > > On Mon, 23 Apr 2001, Ignacio Valdes wrote: > > > > > I've tried creating a python script called generateID with the following one line: > > > > > > return "%s" (DateTime().timeTime()) > > > > > > I think this is on the right track, but it returns the same number every time. > > > Smelling the finish line... > > > > Have you tried ZopeTime()? > > > > -Tim > > Thanks, came across this: > > > > from a tip on the zope site: > http://www.zope.org/Members/Bill/Documentation/AutoGenID > > But when I stick it into the right place in folder_factories: > > ZopeTime().strftime('%Y%m%d%H%M%S'))">" size="50"> > > It comes back with 'None' in the id field on screen. Hmm, don't know the right > syntactic sugar for this. -- IV > I've got it! I finally had to break down and figure out Python syntax. Got pretty far without knowing anything. Generates the id in human-readable number string of date-time format. You stick the following into folder_factories and enjoy! Here you go: Yes! -- IV From ivaldes@hal-pc.org Tue Apr 24 04:51:48 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Mon, 23 Apr 2001 22:51:48 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! References: <3AE4EDD6.A7916F9F@hal-pc.org> <3AE4F4F6.484A49F3@hal-pc.org> Message-ID: <3AE4F854.EB72FE9E@hal-pc.org> Ignacio Valdes wrote: > Ignacio Valdes wrote: > > > Timothy Wilson wrote: > > > > > On Mon, 23 Apr 2001, Ignacio Valdes wrote: > > > > > > > I've tried creating a python script called generateID with the following one line: > > > > > > > > return "%s" (DateTime().timeTime()) > > > > > > > > I think this is on the right track, but it returns the same number every time. > > > > Smelling the finish line... > > > > > > Have you tried ZopeTime()? > > > > > > -Tim > > > > Thanks, came across this: > > > > > > > > from a tip on the zope site: > > http://www.zope.org/Members/Bill/Documentation/AutoGenID > > > > But when I stick it into the right place in folder_factories: > > > > > ZopeTime().strftime('%Y%m%d%H%M%S'))">" size="50"> > > > > It comes back with 'None' in the id field on screen. Hmm, don't know the right > > syntactic sugar for this. -- IV > > > > I've got it! I finally had to break down and figure out Python syntax. Got pretty far > without knowing anything. Generates the id in human-readable number string of date-time > format. You stick the following into folder_factories and enjoy! Here you go: > > > > > > > > > > Yes! > > -- IV Also, change text to "hidden" and it will take it off screen: Now if I could get Folder metadata editing to quit bombing (it bombs on every single CMF site I have) after editing title and escription, I'm there!!! -- IV From marc@bowery.com Tue Apr 24 07:19:01 2001 From: marc@bowery.com (marc lindahl) Date: Tue, 24 Apr 2001 02:19:01 -0400 Subject: [Zope-CMF] Saving custom data in a MemberData-objectfrompython In-Reply-To: <3AE19FEF.70AF76BF@novacoxmail.com> Message-ID: OK, I made some progress, and have a question for some brains out there. To change the signup form, I made a new skin and copied 'join_form' into it. Then I hacked in code from properties.dtml and got it so I can tag properties from portal_memberdata as 'required' or 'optional' and show up on the signup form. So far so good (I'm taking notes, so eventually I'll do a how-to or something) Then, since I want to qualify members as being over age 13, I had to change the method testPropertiesValidity. So I made a new product, and put a Zclass in it called portal_registration, with base class CMFDefault: Registration Tool. Then I deleted the regular portal_registration from my test site, and put the new one in instead. Then, inside my new product, inside the portal_registration class, I put a PythonScript called testPropertiesValidity. Cut'n'pasted the code from the regular one, and started hacking :) Now for the question. I want to pass this pythonscript a list via REQUEST and it seems to be coming thru as a string. The data is originally a 'token' list property, which is then passed thru the join_form by: "> (the property name is 'required', and typically it might have in it ['birth_date', 'location'] In the python script, when I do a props.get('required'), I get this: "['birth_date', 'location']" - in other words, string-ified. I want to get the list, to iterate over to test the 'required' properties. Am I missing something? Or... how do you un-stringify a list?? > From: Tres Seaver > Shane is recommending replacing the instance, named > 'portal_registration' in the root of your CMFSite, with an > instance of another class; you wouldn't (ordinarily, at least) > want to muck with Products.CMFDefault.RegistrationTool (the module > which exports the class of the current instance). > >> If there were some way to modify the portal_registration tool >> once the CMF site was created, like the way portal_memberdata >> properties can be added, would that be a way to do it? > > The current implementation of the registration tool doesn't permit > any "through-the-web" tweaking of its policies. We typically expect > to replace several of the tools with custom versions; the registration > tool is one of these. > >> Is this kind of thing the purpose of the CMFDefault directory? > > The tools and content in the CMFDefault product provide working > versions of the components needed to build a CMF-based site; many > sites can happily use them, *where the policies they implement are > reasonable*. We moved the different "services" of the site into > replaceable "tool objects" precisely to allow a site to replace one > or more of them, while leaving in place those "default" versions > which are acceptable. From seb@jamkit.com Tue Apr 24 11:13:51 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 24 Apr 2001 11:13:51 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <20010424013703.73835.qmail@web10108.mail.yahoo.com>; from aemadrid@yahoo.com on Mon, Apr 23, 2001 at 06:37:03PM -0700 References: <003301c0cb57$d47059e0$05c84dc0@jon> <20010424013703.73835.qmail@web10108.mail.yahoo.com> Message-ID: <20010424111348.A2852@lenin.jamkit.com> > > ... > > a) Simplified the layout - took out all the divs and > > used plain tables (i > > found I was sometimes getting weird overlaps) > > Ditto. On the plus side you can easily make every page > look exactly how you want it. On the minus side you > loose the ability of using other people's skins. In my > case, worth the trouble. > I can't think of a reason why new layouts should necessarily make your skins incompatible with other people's. OTOH, I imagine that as different skins become available, they will be suitable for different needs, rather than all replicating exactly the same functionality with different stylesheets, etc. It would be great if anyone with new skins could post them in the dogbowl so others can try them. Both the ones mentioned so far sound really interesting, I'd love to have a play with them. Talking of which, what happened to that skins competition? Has the deadline been extended, I wonder ;-) < snip > > > I have found 4 problems with this structure (which I > > think are also relevant > > to the earlier CompositeContent discussion thread on > > this list)... > > > > - Do you just link to the original content-object, > > wherever it lives in the > > site (e.g. using getitem to pull it from the > > Member's folder into your > > page), or do you make a copy of it? In my architecture, a CompositeContent object consists of a CompositeContainer which contains one or CompositeComponents. I think a CompositeContent object should be treated as an atomic unit. The components of which it comprises are really properties of that object rather than first-class Portal components. They should be created inside the CompositeContainer when the container is generated. Following this idea further, the container proxys all CMF functions on behalf of the components. When a component is edited, the workflow state of the container is changed. When a container's state is altered, its workflow is responsible for updating permissionMappings, etc, on its components. For the catalog, the container returns its components' text, and the components themselves do not participate at all. > > - You don't have fine-grained control over your > > layout. You can only apply > > general rules in your Layout object (such as "All > > images should be > > left-aligned", "All document titles should be blue > > and bold"), you can't > > customise the appearance of each content-object. > > Yes, but the opposite can become too dificult for the > authors. You'd have to create a structure like > folder-document-page-paragraph with the overhead of > heavy logic and interface for each. I don't see how to > accomplish such task in one page without lots of > dhtml/javascript/whatyouhavenot. It completely depends on your application, but I think it's important to draw a distinction between content authors and template developers. An author should not, IMO, have control over the layout of a page. That's what the developers and designers are paid to do, and is how a consistent look and feel can be applied across a whole site. Instead, an author should be able to chose from a series of template layouts, and fill in the content. For the template developer, my solution to customising the appearance of each component is to provide a mapping between the Container methods and the methods of its Components. For example, whenever the 'edit' method of a container is called, an Image Component might have its 'edit' method called too, whereas a Document Component might have its 'view' method called. I've implemented Container and Component base classes, but I've not bundled them up into something usable by anyone else, yet. However, the method mapping works, and they participate in workflows and searches correctly. I expect to have them in some kind of a readable state by the end of the week, so if anyone wants a pop at them, let me know. seb From icornell@yahoo.com Tue Apr 24 10:53:39 2001 From: icornell@yahoo.com (=?iso-8859-1?q?Ivan=20Cornell?=) Date: Tue, 24 Apr 2001 10:53:39 +0100 (BST) Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! In-Reply-To: <3AE4F854.EB72FE9E@hal-pc.org> Message-ID: <20010424095339.12458.qmail@web1705.mail.yahoo.com> > > > > > > > > > > > > > > > > If you don't use ts anywhere else, you could simplify that whole lot to just: " or even: " Ivan ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From seb@jamkit.com Tue Apr 24 11:32:46 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 24 Apr 2001 11:32:46 +0100 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! In-Reply-To: <3AE4F854.EB72FE9E@hal-pc.org>; from ivaldes@hal-pc.org on Mon, Apr 23, 2001 at 10:51:48PM -0500 References: <3AE4EDD6.A7916F9F@hal-pc.org> <3AE4F4F6.484A49F3@hal-pc.org> <3AE4F854.EB72FE9E@hal-pc.org> Message-ID: <20010424113245.C2852@lenin.jamkit.com> * Ignacio Valdes [010424 05:47]: > Now if I could get Folder metadata editing to quit bombing (it bombs on every single CMF > site I have) after editing title and escription, I'm there!!! hmm, it looks a tiny bit like the Zope catalog bug to me - have you got the newest version of Zope? on autogenerating ids: if I've got you correctly, you want to do this because basing an id on a title won't work due to prohibited characters. If so, another solution is to strip out illegal chars from the Title before generating the id. This way, you have readable ids, which is nice, but on the down side, the system will see P'tang and P$tang! as identical. Anyway, that's how I do it: import re def cookId(self,title): rgx = re.compile(r'(^_|[^a-zA-Z0-9-_~\,\.])') return re.sub(rgx,"",title) seb From chrisw@nipltd.com Tue Apr 24 12:21:58 2001 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 24 Apr 2001 12:21:58 +0100 Subject: [Zope-CMF] Is it just me? Folder metadata edit doesn't seem to work. References: <3AE4D8AD.16F27777@hal-pc.org> <3AE4E539.30F33A0F@hal-pc.org> Message-ID: <3AE561D6.7FEA923@nipltd.com> Ignacio Valdes wrote: > > Hello again, > > Is it just me? None of my CMF sites, including a new one without any mods gives this > error when I try to edit Folder metadata for a particular folder: > > -- IV Upgrade to Zope 2.3.2b2 cheers, Chris From seb@jamkit.com Tue Apr 24 14:24:49 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 24 Apr 2001 14:24:49 +0100 Subject: [Zope-CMF] content construction permissions Message-ID: <20010424142449.A3170@lenin.jamkit.com> I'm just trying to understand where the content factory permissions come from. In constructInstance of TypesTool, a call is made to isConstructionAllowed, which references a property 'permission' - but I can't see where, when or how that property is set. Any hints? cheers, seb From jeffrey@Digicool.com Tue Apr 24 14:02:25 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 24 Apr 2001 09:02:25 -0400 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <20010424013703.73835.qmail@web10108.mail.yahoo.com> Message-ID: On 4/23/01 9:37 PM, "Adrian Madrid" wrote: >> (N.B it would great if you could add properties to >> Portal Documents, Images, >> NewsItems, etc, through the ZMI, as you can >> currently with Portal Folders. >> You can store your butchered objects in a folder in >> Skins, then just use the >> manage-addClone/manage_editProperties method to >> create new ones - >> quick-and-dirty way to create products for >> non-programmers! Alternatively, >> perhaps in the future you could do this through >> portal_types? ...create a >> new type, based on an existing one -which you can >> already do- and then add a >> few extra properties and give it a suitable >> meta-type name?) > > I think this could REALLY jumpstart the creation of > CFM sites. I believe that many times this is the only > reason to come up with your own products: adding a few > special properties and create a new content type based > on an old type. You could also make ZClass subclasses of the basic CMF Objects and define your own property sheets and behavior (Python Scripts). The TypesTool (portal_types) is already coming dangerously close to recreating ZClasses, and I don't think it should get any closer without some *deep* understanding of the problem trying to be solved. Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From jon@pcgs.freeserve.co.uk Tue Apr 24 14:46:36 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 24 Apr 2001 14:46:36 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <20010424013703.73835.qmail@web10108.mail.yahoo.com> Message-ID: <001a01c0ccc5$34c197a0$05c84dc0@jon> Thanks for the feedback Adrian! I'm working in isolation here (both physically, and in terms of being the only "techie" in the company!), so it's great to be able to bounce ideas around in this forum! N.B. as Outlook's reply facilities are so limited in text mode, I've prefixed my comments below with Jon>> -----Original Message----- From: Adrian Madrid [mailto:aemadrid@yahoo.com] Sent: 24 April 2001 02:37 Ditto. The CMF is giving me headaches simply because I'm trying to acomplish things I don't have the zen yet but I'm having the greatest time learning and solving problems. Jon>> Ditto that ditto! :-) On a related note, can anyone recommend which Python IDE is most suitable for a beginner (working on Windows)? I'm veering towards ActiveState, because they seem so involved with Zope as well as Python, with wxPython for any GUI bits. Comments appreciated! <> Nice idea. I like the general CMF concept of only showing the users commands/info that are relevant in that specific context, and this takes it a step further. <> At the moment I'm only using it for Portal Documents, and havent noticed any problems. I'm guessing SearchableText strips out the HTML Tags? I'm not sure about the security issues - the Javascript includes a function that strips out any "bad" HTML tags, but for extra security, you might want to patch in Chris Wither's Stripogram function from Squishdot (see recent thread on the general Zope mailinglist)? Incidentally, there are other similar scripts available (I chose that one cos it looked the prettiest! :-) - http://www.zope.org/Members/cookie/HTMLWidgets http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/browser/default.asp http://www.geocities.com/~lef/net.html http://www.insidedhtml.com/forums/editor/editor.htm Perhaps if anyone gets any of them working with Zope (or has similar ideas) they could send me some info and I'll compile a list on my CMF Members page? I've started doing the same with Windows (compiling a list of how-tos, useful products, mailinglist messages, etc, related to interfacing with Windows servers and apps) so if anyone has any useful info (especially Outlook/Exchange and Word), send it over and I'll add it to the list! <> Hear, hear! :-) I'm not sure if it's good Zen to do it this way, but it would be great for beginners and for rapid prototyping! <> That's why I'm kinda "sidestepping" the built in workflow at the moment, until I get my head round the requirements better! If an editor had included a Member's document on their page, then the Member retracted it to update it, you'd either get an error or a missing section on the page! And what if the Editor didnt want the new, updated version for some reason? <> How do you control the sort-order if there's more than one doc per page? Or is that not relevant in your app? Similarly, if one doc could be used on several different pages, I guess you could change your "location" field to a Lines property? <> I wish I had re-read this doc before posting my original message - I had scanned but not fully understood! :-) ... http://cmf.zope.org/PTK/Members/klm/OrganizationObjects I think what I'm suggesting in my clumsy way, is that the "slots" objects, proposed in the Composite Content doc, be combined with the "Organization Objects" described in this doc, plus, some sort of basic feature for describing the "style" in which the content-object is displayed in the context. N.B. before someone shouts "Stylesheets!", this goes beyond stylesheet attributes, though it could be just as simple - for example, if you were including an Image, you might have the options - "Show description to the left" "Show description to the right" "Show description below centred image" "Image only, alt text = description" "Image only, alt text = title" So, if you had a page of product photos, you could alternate between the first 2 display types to make it look more interesting. I'm sure there are better examples, but that's the "use case" that first led me down this road! Adrian, I take your point about complexity (we have some very unsophisticated users!), but I would make 2 points - 1. You can hide the complexity by having a "beginners" UI and an "experts" UI... that way, when your users become more sophisticated and demanding, you dont have to rewrite the underlying application, just present them with a more detailed UI! 2. I would see "authors/contributors" as people who submit articles, pics, etc, through their Member folders. Editor(s) would select those content-objects and slot them into the page(s) they are responsible for. Editors would probably be more HTML-savvy and want that fine-grained control of layout (though you can always hide it from those who dont!)<> Could you post any code/exaples to show how you do this? <> Thanks for your feedback! It's all helping to clarify my ideas! OTOH I'm getting a bit self-conscious of the "sound of my own voice"! So, if this discussion is not useful to other readers perhaps you could let me know, and we'll find a way to take it off-list?? I'm new to the open-source way of working and dont want to "outstay my welcome"! :-) Cheers, Jon From mj@digicool.com Tue Apr 24 14:49:30 2001 From: mj@digicool.com (Martijn Pieters) Date: Tue, 24 Apr 2001 15:49:30 +0200 Subject: [Zope-CMF] Custom Skins --getObjectFSPath KeyError In-Reply-To: ; from marc@bowery.com on Mon, Apr 23, 2001 at 01:43:57PM -0400 References: <20010423102758.F17060@zopatista.com> Message-ID: <20010424154930.A14177@zopatista.com> On Mon, Apr 23, 2001 at 01:43:57PM -0400, marc lindahl wrote: > (by the way, when it lists modules, CMF doesn't show up, though you can > check it out) That's because Modules in CVS are ment for combining several distinct CVS directories into a package. CMF is it's own directry and doesn't need to be combined. Before Zope 2 the Zope sources could only be completely retrieved using a module, and these days only the ZEO and Standalone-ZODB are in use (IIRC). -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From shane@digicool.com Tue Apr 24 15:49:04 2001 From: shane@digicool.com (Shane Hathaway) Date: Tue, 24 Apr 2001 10:49:04 -0400 (EDT) Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: <20010423200806.29095.qmail@eklektix.com> Message-ID: On Mon, 23 Apr 2001, Jonathan Corbet wrote: > If you look at http://cmf.zope.org/doc/user/BasicContent.txt/view, it says, > among other things: > > the CMF checks the incoming data to see if it has a piece of metadata > called Type. The value of this metadata property would instruct the > CMF to create, for instance, a NewsItem. > > But, as far as I can tell, that simply is not true. A couple of content > types (Document, NewsItem) use parseHeadersBody to grab metadata and set > things like the title, but that is done *after* the object has been > created. There is nothing, currently, which looks at headers before the > object is created. I'm afraid our "marketing engine" has leaped ahead of us on this one. There is initial support for parsing headers on upload, but it hasn't been completely wired up. > So, even though NewsItem defines a PUT_factory method, nothing ever calls > it. > > I could perhaps bash out a hacky solution in PortalFolder.PUT_factory that > would make things work. I get a sense, though, from the code that the > whole portal_types mechanism is intended to be used in this sort of role, > and I haven't done anywhere near enough time staring at the code to figure > out how I might make that happen... PortalFolder.PUT_factory will, in the (hopefully near) future, invoke the portal_types tool to decide what kind of upload it is. Really the only thing holding it up is a decision on the UI for configuring the upload behavior. Perhaps we should just make it a configurable script similar to this: if content_type=='text/plain': if string.lower(headers.get('Type', '')) == 'news': return 'News Item' elif content_type='text/html': return 'Document' return default_type(content_type) The script, a skinnable object and probably called 'getTypeForUpload', would be supplied the 'headers', 'content_type', and 'default_type' parameters and would be expected to return the ID of a type. The default_type function would look at the mime_type parameter (which doesn't exist yet) of each type and the first match it finds would win. What do you think? This solution would be easy and flexible. Shane From jeffrey@Digicool.com Tue Apr 24 16:13:19 2001 From: jeffrey@Digicool.com (Jeffrey P Shell) Date: Tue, 24 Apr 2001 11:13:19 -0400 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: Message-ID: On 4/24/01 10:49 AM, "Shane Hathaway" wrote: > PortalFolder.PUT_factory will, in the (hopefully near) future, invoke the > portal_types tool to decide what kind of upload it is. Really the only > thing holding it up is a decision on the UI for configuring the upload > behavior. Perhaps we should just make it a configurable script similar to > this: > > if content_type=='text/plain': > if string.lower(headers.get('Type', '')) == 'news': > return 'News Item' > elif content_type='text/html': > return 'Document' > return default_type(content_type) > > The script, a skinnable object and probably called 'getTypeForUpload', > would be supplied the 'headers', 'content_type', and 'default_type' > parameters and would be expected to return the ID of a type. The > default_type function would look at the mime_type parameter (which doesn't > exist yet) of each type and the first match it finds would win. > > What do you think? This solution would be easy and flexible. I hope this would be very short lived. One of Zope's major problems is that there are all sorts of cool little scripts with certain names and special properties you can set that suddenly (and sometimes accidentally) enable wondrous magical behavior. It's bad design, in my opinion, to rely too much on them. Like the "Scriptable Type Information" (I don't even know how to use those), something like this should only be used to augment behavior and handle cases that can't be caught by the default framework and configurations. I don't think it should be used in lieu of a real feature, because it tends to cause development of that feature to slide further back (or never occur). In other words, I think that we should focus on doing this ONLY if we can get the Types Tool to handle upload types as well. Jeffrey P Shell, jeffrey@Digicool.com http://www.digicool.com/ | http://www.zope.org From seb@jamkit.com Tue Apr 24 17:11:30 2001 From: seb@jamkit.com (seb bacon) Date: Tue, 24 Apr 2001 17:11:30 +0100 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: ; from jeffrey@Digicool.com on Tue, Apr 24, 2001 at 11:13:19AM -0400 References: Message-ID: <20010424171127.C3170@lenin.jamkit.com> * Jeffrey P Shell [010424 17:25]: > On 4/24/01 10:49 AM, "Shane Hathaway" wrote: > > > PortalFolder.PUT_factory will, in the (hopefully near) future, invoke the > > portal_types tool to decide what kind of upload it is. Really the only > > thing holding it up is a decision on the UI for configuring the upload > > behavior. Perhaps we should just make it a configurable script similar to > > this: > > What do you think? This solution would be easy and flexible. > In other words, I think that we should focus on doing this ONLY if we can > get the Types Tool to handle upload types as well. I'll second this - the visibility of little scripts like this is very poor and actively obscures understanding, I find. It would be much better if every effort was made to aggregate related functionality, and leave quick fixes like this 'as an exercise for the reader'. seb From jon@pcgs.freeserve.co.uk Tue Apr 24 17:39:54 2001 From: jon@pcgs.freeserve.co.uk (Jon Edwards) Date: Tue, 24 Apr 2001 17:39:54 +0100 Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <20010424111348.A2852@lenin.jamkit.com> Message-ID: <001c01c0ccdd$7d5f2500$05c84dc0@jon> Thanks for the feedback! -----Original Message----- From: seb bacon [mailto:seb@jamkit.com] Sent: 24 April 2001 11:14 I can't think of a reason why new layouts should necessarily make your skins incompatible with other people's. Jon>> I don't think I explained it very well! There's an extra element in there - "Layouts" - which isnt in the standard CMF way of doing things. Well, actually, there's a few, I didnt go into full detail! :-) Apologies if this explanation sounds oversimplified/patronising, I'm writing my documentation live online here! ;-) When you go to a "page" (i.e. when you click on the URL of a folder) it finds the index_html in skins/custom. standard_html_header looks at the "stylesheet_choice" property of the folder to know which stylesheet to call (rather than the hard-coded call in the original code). N.B. I'm thinking of somehow inserting SearchableText into the standard HTML header metadata fields, to help with search-engine optimisation, has anyone tried this? index_html checks to see if you're logged-in, and shows you the Actions Bar (formerly known as the Actions Box) at the top of the page if you are. It then has a dtml-var which looks at the "layout_choice" property of the folder to insert the appropriate layout. A layout is an empty HTML table layout, with a dtml-var in each cell to call the cell's contents. At the moment, the property for each cell's content (e.g. standard_top_bar in the header-cell) is stored in the Layout's properties, but I might need to abstract that out so that layouts can be reused with diff contents and on diff sites! yikes! A cell's content could be a simple DTML method (such as standard_top_bar, news_box, or site_menu), or it could be a "Section" - my term for a CompositeContentContainer! Hence my interest in the development of CompositeContainers. <> Can't do that at the moment I'm afraid, as there's "commercially-sensitive" info in there, but hopefully the above explains it better? :-) <> As you said elsewhere, this depends on your application. A little background - we're developing a CMS tailored to a specific market-sector, consisting of medium-sized organisations, spread geographically (i.e a Head Office and many small Branch Offices). Each Head Office will be a portal instance, with the Branch Office sites "branching" off! :-) Each Branch Office will probably want its own layout and colour-scheme (and possibly its own domain name), but a lot of content will be common to many sites - hence the need to re-use content-objects, but change their display characteristics! Don't ask about cataloguing/searching, I havent worked that out yet! It would be great if you could constrain a search to a certain "branch" of the site-tree, any ideas anyone? :-) I'm currently foreseeing the following user-roles - 1. Site Manager - the person who assigns permissions, sets up layouts, stylesheets, etc (probably working with a designer), administers the whole thing. 2. Editors - responsible for one or more pages/sub-sites. They control the layout and colour-scheme (within overall site-guidelines), write some of the content, and select other content created by Contributors. It would be their job to manage the CompositeContent objects for their page. 3. Contributors - people who create documents, pictures, news articles, and upload them to their Member folder or to a "Group" folder (an area where several Members can collaborate on the contents of a page, under the moderation of that page's Editor). 4. Members - employees of the organisation and invited customers who become members in order to be able to join discussions (anyone can view discussions, only members can contribute) and receive mailings/newsletters. So, under that structure, content-objects would be created independently, in diff formats (an online submission, a Word doc, an Excel spreadsheet) and might be re-used in several places in different forms. <> I dont think the workflow bit of this idea would work for me, but the cataloguing bit might. What happens when a component is being edited? Does the container become inaccessible through the website, or do you use some sort of caching to keep the old version available until the new one is posted? <> How do you deal with the issue of a Component being re-used in diff containers? Or is this not relevant in your situation? <> I'd love to have a play with them, if you dont mind sharing your ideas? Cheers, Jon From corbet-cmf@lwn.net Tue Apr 24 20:27:42 2001 From: corbet-cmf@lwn.net (Jonathan Corbet) Date: Tue, 24 Apr 2001 13:27:42 -0600 Subject: [Zope-CMF] Uploading news items with FTP In-Reply-To: Your message of "Tue, 24 Apr 2001 10:49:04 EDT." Message-ID: <20010424192742.19352.qmail@eklektix.com> > The script, a skinnable object and probably called 'getTypeForUpload', > would be supplied the 'headers', 'content_type', and 'default_type' > parameters and would be expected to return the ID of a type. The > default_type function would look at the mime_type parameter (which doesn't > exist yet) of each type and the first match it finds would win. > > What do you think? This solution would be easy and flexible. It looks to me like a workable short-term solution. I agree with the other comments I have seen that it may not be the best design for the "real" solution, which is sure to be implemented sometime Real Soon Now. Meanwhile, maybe I'll bash out something along these lines to get me going for now... Many thanks, jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net From aem@byu.edu Tue Apr 24 20:28:28 2001 From: aem@byu.edu (Adrian Madrid) Date: Tue, 24 Apr 2001 12:28:28 -0700 (PDT) Subject: [Zope-CMF] CMF Thoughts & Ideas (long!) In-Reply-To: <001c01c0ccdd$7d5f2500$05c84dc0@jon> Message-ID: <20010424192828.40375.qmail@web10105.mail.yahoo.com> > I'm working in isolation here (both physically, and > in terms of being the > only "techie" in the company!), so it's great to be > able to bounce ideas > around in this forum! It's great for me too. Im the only one here that knows html at all and talking about ideas gives me the _illusion_ of a team ;-) > HTML gives you greater layout > posibilities but doesn't it make it more complex for > the searching (ie. including HTML tags in > SearchableText)? > > Jon>> At the moment I'm only using it for Portal > Documents, and havent > noticed any problems. I'm guessing SearchableText > strips out the HTML Tags? I checked it out and it doesn't. Try searching for href for example. > I've started doing the same with Windows (compiling > a list of how-tos, > useful products, mailinglist messages, etc, related > to interfacing with > Windows servers and apps) so if anyone has any > useful info (especially > Outlook/Exchange and Word), send it over and I'll > add it to the list! < Jon>> Hear, hear! :-) I'm not sure if it's good Zen > to do it this way, but > it would be great for beginners and for rapid > prototyping! < Jon>> That's why I'm kinda "sidestepping" the built > in workflow at the > moment, until I get my head round the requirements > better! If an editor had > included a Member's document on their page, then the > Member retracted it to > update it, you'd either get an error or a missing > section on the page! And > what if the Editor didnt want the new, updated > version for some reason? > < My approach is to have a 'location' field with the > 'portal/a/b/c' form and pull the articles through a > search in their respective folders. > > Jon>> How do you control the sort-order if there's > more than one doc per > page? Or is that not relevant in your app? It is sometimes relevant so I have a sort-order field too. > Similarly, if one doc could be > used on several different pages, I guess you could > change your "location" > field to a Lines property? < 1. You can hide the complexity by having a > "beginners" UI and an "experts" > UI... that way, when your users become more > sophisticated and demanding, you > dont have to rewrite the underlying application, > just present them with a > more detailed UI! Good point. Then you'll need to make some default decisions for them. > 2. I would see "authors/contributors" as people who > submit articles, pics, > etc, through their Member folders. Editor(s) would > select those > content-objects and slot them into the page(s) they > are responsible for. > Editors would probably be more HTML-savvy and want > that fine-grained control > of layout (though you can always hide it from those > who dont!)< I'm stil working on a composite object but my > approach > so far is having a dublin container with normal > objects inside. The trick is to have SearchableText > go > through the contained objects and retrieve the > apropiate text to search. > > Jon>> Could you post any code/exaples to show how > you do this? < Ooops, responded to Dieter instead of the list. Paul Erickson wrote: > > Charles Hall writes: > > I guess what I'm looking for is some form of "template" tool. Does Zope have another name for this? I don't want my editors typing in any HTML, even if it's just "include footer.html" or something. I need a way for them to create pages and "fill in the blanks". > > > > Does Zope have any ready-made tools to do this? > > I think that someone pointed out that CMF is a Framework, not a CMS. > > The difference is that a CMS would have pre-defined content types, which > could have a user friendly user interface coded for the "editors" to > use. There are already some of these built into the CMF, i.e. > "Document", "File", "News Item" (Log into cmf.zope.org, click "My > Stuff", then "New..." - is this the type of non-technical interface that > you are looking for?) > > If you have other well defined content types, then someone could code up > an interface for non-programmers to use. Thats where the CMF will > become a CMS. > > One caveat: For any sort of "Rich" content (bold, italics, etc) that > isn't defined at the data element level (i.e. All headline elements will > be bold), the editors will need to either use HTML tags or *Structured > Text* > > -Paul -- Paul Erickson | erickson@kaivo.com Kaivo, Inc. | www.kaivo.com From dieter@handshake.de Tue Apr 24 20:55:41 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 24 Apr 2001 21:55:41 +0200 (CEST) Subject: [Zope-CMF] Catalog....?? In-Reply-To: <642095481@toto.iv> Message-ID: <15077.55869.421018.798591@lindm.dm> cmf@sjeems.nl writes: > I have made a Znieuws (Zclass) for adding newsarticles. > If I add a instance through the zope interface everything is ok. The > instance is putten into the Catalog with all of it's properties. > ... > Now my problem is If I add an article through the "user" interface (without > seeing the zope interface). The article is put ito the catalog but it misses > all of it's properties , except for bobo_modification_time and title. Apparently, the properties are changed after the "manage_afterAdd" method has been called. The problem will go away, if you call "index_object" (or similar --> Products.ZCatalog.CatalogAware) after you have changed the properties. Dieter From dieter@handshake.de Tue Apr 24 21:25:46 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 24 Apr 2001 22:25:46 +0200 (CEST) Subject: [Zope-CMF] Saving custom data in a MemberData-objectfrompython In-Reply-To: <992499644@toto.iv> Message-ID: <15077.57674.254790.855901@lindm.dm> marc lindahl writes: > Now for the question. I want to pass this pythonscript a list via REQUEST > and it seems to be coming thru as a string. The data is originally a > 'token' list property, which is then passed thru the join_form by: > "> Two problems: 1. a typo: "required:tokens" rather than "required:token" 2. the "" will probably return a list. If this is true, then the "var" will return "[ .... ]", i.e. the content enclosed in "[...]" and the elements separated with "," and quoted. Workaround: "_.string.join(getProperty('required'))" Dieter From dieter@handshake.de Tue Apr 24 21:02:25 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 24 Apr 2001 22:02:25 +0200 (CEST) Subject: [Zope-CMF] changing default Members folder In-Reply-To: <505326816@toto.iv> Message-ID: <15077.56273.330881.408993@lindm.dm> tav writes: > >>>>> DM == "Dieter Maurer" wrote: > > Me> i was wondering how i would go about changing the > Me> default folder in which user folders are created in the CMF > > DM> "CFMCore.MembershipTool.MembershipTool.createMemberarea" > DM> "CFMDefault.MembershipTool.MembershipTool.getHomeFolder" > > thanks dieter! > > i edited the appropriate entries, and restarted the server... > > it works perfectly for a new CMF site... however, in an existing one, it > retains 'Members' over my 'clients'. anyone know why and how to overcome > this? Do you say? If I create a new user (in an old site) then the new user's folder is created in "Members". That would be really astonishing. If you say Old members are retained in "Members", that would be normal. Copy the "Members" content to "clients". Dieter From dieter@handshake.de Tue Apr 24 21:06:00 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 24 Apr 2001 22:06:00 +0200 (CEST) Subject: [Zope-CMF] Custom Skins -- Images In-Reply-To: <817268959@toto.iv> Message-ID: <15077.56488.24666.567984@lindm.dm> Arjan de Knegt writes: > I can confirm the problem of Norman. "Livin' on the edge" I've just tested this with Zope 2.3.2b2 and the very latest CMF cvs checkout (including the FSImage and > FSPropertiesObject patches). > > Example: A clean CMF site with a newly joint member shows the broken-image icon for a Document in MyStuff. > URL of the Document Icon: /document-icon.gif > (and the obvious "resource not found" Zope error). URL looks O.K. to me. > > Same issue for other portal-type icons. Icons like UpFolder_icon.gif are showing without any problem. > > I'm afraid I don't have a usefull clue about this one. I had seen this once: I had updated my CMF and see, all icons showed as broken. I was convinced, that such an obvious problem surely would be noticed and soon fixed. With the next CMF update on the next day, the problem disappeared. Maybe, you will be as lucky as I have been.... Dieter From dieter@handshake.de Tue Apr 24 19:49:31 2001 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 24 Apr 2001 20:49:31 +0200 (CEST) Subject: [Zope-CMF] Newbie question. - Templates In-Reply-To: References: Message-ID: <15077.51899.125841.299967@lindm.dm> Hi Charles, Charles Hall writes: > Thanks Dieter, what you describe is exactly what I was looking for. Unfortunately I couldn't find any examples of what you're describing on the web site. I read many pages of detailed DTML specs. but never made it to any editting tool. It's possible it's there and I missed it. In your original post you asked for templates where the blanks are filled in by authors. In the HTML world something with blanks in it is called a form. You do not need Zope to build forms: any HTML editor will do. When the form is submitted, it will go to a Zope object (probably either DTML or Python Script). Zope nicely presents the form variables. If your form has a control (aka form variable) with name 'xxx', then in DTML, you can access it via or inside an expression with "... xxx ..." As we assume that your form is used to describe content, the object should either build a new object or update an existing one. You would have a Content Class with the correct slots (to be filled with the content items). Creating a new object looks like (in DTML, similar in Script): ].(parameters)"> .... Updating just uses the "manage_changeProperties" (or something similar) in the correct context. Last step is presenting your content. Again you have a template with wholes in it. In the most trivial form, your wholes are simply names of slots of your object. This again can be designed with a standard HTML editor. Then comes a nasty step (it will disappear with the ZPT (Zope Presentation Templates), say in about 6 to 12 months). You need to transform you passive HTML into DTML. In the trivial cast mentioned above, this means replacing the splot names with "". It can be automated, if your names are appropriately decorated. When you activate this DTML object in the context of one of your content objects, it will presents this by filling the wholes with the slot content of the document. > I don't know if you have any input to the Zope web site designer, but to me it's all topsy-turvy. I am not sure. When the designer wants just to choose from predefined templates, then the CMF does not have many, currently. When he is ready to make his own designs and can cooperate with someone with some programming skills (able to "include" (dtml-var), "choose" (dtml-if), "iterate" (dtml-in)" knowing about 20 most relevant functions, ...), then the CMF can provide great playing grounds for real projects. > I noticed that on the CoFax site the template stuff is right up front. I guess the Zope audience is mainly programmers, while the CoFax audience is people trying to get out tomorrow's paper! Zope's CMF is incredibly young. There are not yet the masses of templates (probably they will never be, because the primary Zope users would always want to do something themselves). Maybe, you come back in some months. Then ZPT should be ready. It, too, would probably not provide a wealth of templates but would allow you to use professional XHTML design tools to create your own templates and let them interact relatively easy with Zope. Dieter From ivaldes@hal-pc.org Wed Apr 25 00:17:17 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Tue, 24 Apr 2001 18:17:17 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! References: <20010424095339.12458.qmail@web1705.mail.yahoo.com> Message-ID: <3AE6097D.8EFE888D@hal-pc.org> Ivan Cornell wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > If you don't use ts anywhere else, you could simplify that whole lot to > just: > " > > or even: > > " > > Ivan > Good one, I'll have to look at it some more later. My wife is having a baby. -- IV From tseaver@digicool.com Wed Apr 25 01:45:30 2001 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 24 Apr 2001 20:45:30 -0400 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! References: <20010424095339.12458.qmail@web1705.mail.yahoo.com> <3AE6097D.8EFE888D@hal-pc.org> Message-ID: <3AE61E2A.A9CB0BC1@novacoxmail.com> Ignacio Valdes wrote: > Good one, I'll have to look at it some more later. My wife is > having a baby. Congratulations and best wishes! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From Maarten Slaets Wed Apr 25 14:33:50 2001 From: Maarten Slaets (Maarten Slaets) Date: Wed, 25 Apr 2001 13:33:50 GMT Subject: [Zope-CMF] using NGFNavigator with CMF Message-ID: <200104251333.PAA04760@apollo.neolabs.be> Hi, I'm having problems using NFGNavigator http://www.zope.org/Members/gyst/NFGnav insite a CMF site. In the custom skins directory I've put the following DTML document, to display the Tree Menu. ---------- ----------- In the CMF site I've got an 'about' portal folder, and a Document inside tat (index_html). when going to that index_html, the tree changes accordingly, BUT when I click on 'view' or 'edit' I get the following error, which doesn't make any sense to me when I look at NFG's code: ------------ Zope Error Zope has encountered an error while publishing this resource. TypeError Sorry, a Zope error occurred. Traceback (innermost last): File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DynamicType) File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: document_view) File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: document_view) File /home/zope/Zope-2.3.1/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: document_view) File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: document_view) File /home/zope/Zope-2.3.1/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /home/zope/Zope-2.3.1/lib/python/OFS/DTMLDocument.py, line 182, in __call__ (Object: example_TreeMenu) File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: example_TreeMenu) File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: NAVCore.TreeMenu( PARENTS, REQUEST, id(), initlevel=1, Meta_Types=['Folder','DTML Document','DTML Method','Image','CMF Site','Document','Portal Folder'] )) (Info: REQUEST) File , line 0, in ? File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 134, in TreeMenu (Object: NAVCore) File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in ChartLevel (Object: NAVCore) File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in ChartLevel (Object: NAVCore) File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in ChartLevel (Object: NAVCore) File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in ChartLevel (Object: NAVCore) File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 214, in ChartLevel (Object: NAVCore) TypeError: too many arguments; expected 1, got 2 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. ------------ Does anybody know why it complains about the number of arguments? I did some testing and it only returns an error when I include 'Document' in the meta types for NAVCore.TreeMenu() Thanks Maarten NEOlabs - http://www.neolabs.be - mailto:info@neolabs.be From marc@bowery.com Wed Apr 25 07:16:13 2001 From: marc@bowery.com (marc lindahl) Date: Wed, 25 Apr 2001 02:16:13 -0400 Subject: [Zope-CMF] problem with cmf.zope.org? Message-ID: I tried to add something to my favorites on http://cmf.zope.org and got this: An exception occurred in a DTML method or document. Error type: KeyError Error value: design Innermost method: /PTK/addtoFavorites Namespace Stack (innermost entry at top) ID Type (N/A) mapping with keys: ['homeFolder'] (N/A) mapping with keys: ['document_id', 'document_title'] bowerymarc InstanceDict REQUEST ZPublisher.HTTPRequest.HTTPRequest Source of /PTK/addtoFavorites with fault: Call stack (security context) /PTK/addtoFavorites REQUEST information form favorite 'http://cmf.zope.org/design/system_architecture' cookies folderfilter 'e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAADA=' __ac_name 'bowerymarc' __ac 'Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a' portal_skin 'Basic' other AUTHENTICATION_PATH 'PTK/vurt//' VirtualRootPhysicalPath ('', 'PTK') portal_skin 'Basic' PUBLISHED __ac_name 'bowerymarc' __ac 'Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a' folderfilter 'e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAADA=' SERVER_URL 'http://cmf.zope.org' favorite 'http://cmf.zope.org/design/system_architecture' URL 'http://cmf.zope.org/Members/bowerymarc/addtoFavorites' AUTHENTICATED_USER bowerymarc TraversalRequestNameStack [] URL0 http://cmf.zope.org/Members/bowerymarc/addtoFavorites URL1 http://cmf.zope.org/Members/bowerymarc URL2 http://cmf.zope.org/Members URL3 http://cmf.zope.org BASE0 http://cmf.zope.org BASE1 http://cmf.zope.org BASE2 http://cmf.zope.org/Members BASE3 http://cmf.zope.org/Members/bowerymarc BASE4 http://cmf.zope.org/Members/bowerymarc/addtoFavorites environ SCRIPT_NAME HTTP_ACCEPT_ENCODING gzip STUPID_LOG_FILE /usr/local/base/new/var/new_events.log channel.creation_time 988179258 HTTP_REFERER http://cmf.zope.org/PTK//design/system_architecture QUERY_STRING favorite=http%3a//cmf.zope.org/design/system_architecture SERVER_PROTOCOL 1.0 SERVER_PORT 1480 PATH_TRANSLATED /VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/Members/bowerymarc /addtoFavorites REMOTE_ADDR 10.0.11.2 REQUEST_METHOD GET SERVER_SOFTWARE Zope/(unreleased version) ZServer/1.1b1 HTTP_COOKIE portal_skin="Basic"; __ac_name="bowerymarc"; folderfilter="e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAAD A="; __ac="Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a" PATH_INFO /VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/Members/bowerymarc /addtoFavorites HTTP_ACCEPT_LANGUAGE en,ja,zh-CN,zh,zh-TW,ko HTTP_HOST 10.0.11.2:1480 GATEWAY_INTERFACE CGI/1.1 SERVER_NAME app1 HTTP_USER_AGENT Mozilla/4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) HTTP_ACCEPT_CHARSET iso-8859-1,*,utf-8 HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* From yokemay@apdip.net Wed Apr 25 09:15:42 2001 From: yokemay@apdip.net (Yoke May Seow) Date: Wed, 25 Apr 2001 16:15:42 +0800 Subject: [Zope-CMF] Expanding menu Message-ID: <001d01c0cd5f$ecdbf840$175ebbca@apdip.net> Hi all, I want to create a menu that is expandable whenever I click on a link (e.g. folder). I've tried using but is there a better way to do it? Currently, I've a folder that contains a few sub-folders. When i click on the folder, the menu will be expandable and thus the sub-folders will appear. The process should be dynamic, i.e. if I add new sub-folders in the future, it'll automatically appear on the menu. As I'm a newbie to Zope, there's a lot of things that I'm not familiar with. Will you please help me? thank you. Regards, Yoke May Webmaster @ www.apdip.net Email: yokemay@apdip.net Tel: +603-2559122 ext. 2206 Mobile: +6016-2837395 ICQ: 321345 From tav" Message-ID: <025801c0cd07$4cba8050$e33e7ad5@arkady> >>>>> DM == "Dieter Maurer" wrote: DM> Do you say? DM> If I create a new user (in an old site) then the new# DM> user's folder is created in "Members". then be astonished ;p -- best regards, tav tav@espnow.com From Bill@ipathhq.com Wed Apr 25 22:36:52 2001 From: Bill@ipathhq.com (Bill Seitz) Date: Wed, 25 Apr 2001 17:36:52 -0400 Subject: [Zope-CMF] can't read Comments on the CMF dogbowl site? Message-ID: <8210C9D2F4E1074181EFD72335211A970C4299@dc0.nyc.ipathhq.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C0CDCF.D7A9DBC7 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01C0CDCF.D7A9DBC7" ------_=_NextPart_002_01C0CDCF.D7A9DBC7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Even after logging in, I can read http://cmf.zope.org/rqmts/proposals/wiki_for_cmf/view but I can't read http://cmf.zope.org/rqmts/proposals/wiki_for_cmf/talkback/988058012 (first comment in list) Here's the top of the page, I've attached the entire source file as well... Error type: Not Found Error value: Zope Error
Zwiki-Site



Folder Name or Resource Title:

Folder Name or Resource Title: > >

Folder Name or Resource Title: > > > >

Folder Name or Resource Title: > > > > > >
 

Zope Error

Zope has encountered an error while publishing this resource.

Resource not found

Sorry, the requested Zope resource does not exist.

Check the URL and try again.


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.

=20 .... Source of /PTK/showThreads with fault: ..... =20 ------_=_NextPart_002_01C0CDCF.D7A9DBC7 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable can't read Comments on the CMF dogbowl site?

Even after logging in, I can read
http://cmf= .zope.org/rqmts/proposals/wiki_for_cmf/view

but I can't read
http://cmf.zope.org/rqmts/proposals/wiki_for_cmf/talkback/988058012
(first comment in list)

Here's the top of the page, I've attached the entire = source file as well...

Error type: Not Found
Error value: <HTML> = <HEAD><TITLE>Zope Error</TITLE></HEAD> = <BODY> <TABLE BORDER=3D"0" = WIDTH=3D"100%"> <TR VALIGN=3D"TOP"> <TD = WIDTH=3D"10%" ALIGN=3D"CENTER"> &nbsp; = </TD> <TD WIDTH=3D"90%"> <H2>Zope = Error</H2> <P>Zope has encountered an error while publishing = this resource. </P> <P><STRONG>Resource not = found</STRONG></P> Sorry, the requested Zope resource does = not exist.<p>Check the URL and try again.<p> <!-- rqmts = GET --> <HR NOSHADE> <P>Troubleshooting = Suggestions</P> <UL> <LI>The URL may be = incorrect.</LI> <LI>The parameters passed to this resource = may be incorrect.</LI> <LI>A resource that this resource = relies on may be encountering an error.</LI> </UL> = <P>For more detailed information about the error, please refer to = the HTML source for this page. </P> <P>If the error persists = please contact the site maintainer. Thank you for your patience. = </P> </TD></TR> </TABLE> </BODY> = </HTML>

....
Source of /PTK/showThreads with fault:
.....
<dtml-if "_.hasattr(this().talkback, = 'parentsInThread') and talkback.parentsInThread(1)">
 

------_=_NextPart_002_01C0CDCF.D7A9DBC7-- ------_=_NextPart_001_01C0CDCF.D7A9DBC7 Content-Type: text/html; name="cmf-bug.html" Content-Transfer-Encoding: base64 Content-Description: cmf-bug.html Content-Disposition: attachment; filename="cmf-bug.html" PGh0bWw+DQogPGhlYWQ+DQo8YmFzZSBocmVmPSJodHRwOi8vY21mLnpvcGUub3JnL3JxbXRzL3By b3Bvc2Fscy93aWtpX2Zvcl9jbWYvdGFsa2JhY2svOTg4MDU4MDEyLyIgLz4NCiAgDQogIDx0aXRs ZT5DTUYgRG9nYm93bDogVXNpbmcgV2lraXMgaW4gQ01GIFNpdGVzPC90aXRsZT4NCiAgICAgICAg ICAgICAgICAgICAgPGxpbmsgcmVsPSJzdHlsZXNoZWV0Ig0KICAgICAgICAgICBocmVmPSJodHRw Oi8vY21mLnpvcGUub3JnL2RlZmF1bHRfc3R5bGVzaGVldCINCiAgICAgICAgICAgdHlwZT0idGV4 dC9jc3MiIC8+DQogICAgICAgICAgICAgDQogPC9oZWFkPg0KPGJvZHk+DQoNCjwhLS0gVG9wIGJh ciAtLT4NCjx0YWJsZSB3aWR0aD0iMTAwJSIgYm9yZGVyPSIwIiBjZWxscGFkZGluZz0iMCIgY2Vs bHNwYWNpbmc9IjAiPg0KIDx0cj4NCiAgPHRkIGNvbHNwYW49IjMiIHdpdGR0aD0iMTAwJSI+DQoN CiAgIDwhLS0gaGFjayBhcm91bmQgbmV0c2NhcGUgNC54IHRvIGVuc3VyZSB0b3AgdGFibGUgaXMg c29saWQgYmxhY2sgLS0+DQoNCiAgIDx0YWJsZSBjbGFzcz0iTWFzdGhlYWQiIGNlbGxzcGFjaW5n PSIwIiBjZWxscGFkZGluZz0iMCIgYm9yZGVyPSIwIiB3aWR0aD0iMTAwJSI+DQoNCiAgICA8dHIg Y2xhc3M9Ik1hc3RoZWFkIj4NCg0KICAgICA8dGQgY2xhc3M9IlBvcnRhbExvZ28iIGFsaWduPSJs ZWZ0IiB2YWxpZ249InRvcCIgd2lkdGg9IjElIj4NCiAgICAgIDxhIGhyZWY9Imh0dHA6Ly9jbWYu em9wZS5vcmciPjxpbWcgc3JjPSJJbWFnZXMvbG9nby5wbmciIGFsdD0iWm9wZSBMb2dvIiBib3Jk ZXI9IjAiDQogICAgICA+PC9hPg0KICAgICA8L3RkPg0KDQogICAgIDx0ZCBjbGFzcz0iUG9ydGFs VGl0bGUiIHdpZHRoPSI2OSUiIGFsaWduPSJsZWZ0IiB2YWxpZ249ImNlbnRlciI+DQogICAgICA8 aDE+Q01GIERvZ2Jvd2w6IFVzaW5nIFdpa2lzIGluIENNRiBTaXRlczwvaDE+DQogICAgIDwvdGQ+ DQoNCiAgICAgPHRkIGFsaWduPSJyaWdodCIgd2lkdGg9IjMwJSIgd3JhcD0ibm8iPg0KICAgICAg PGZvcm0gYWN0aW9uPSJodHRwOi8vY21mLnpvcGUub3JnL3NlYXJjaCI+DQogICAgICAgPGlucHV0 IG5hbWU9IlNlYXJjaGFibGVUZXh0IiBzaXplPSIxNiI+DQogICAgICAgPGlucHV0IGJvcmRlcj0i MCIgdHlwZT0iaW1hZ2UiIG5hbWU9ImdvIiBzcmM9IkltYWdlcy9nby5naWYiPiAmbmJzcDsNCiAg ICAgIDwvZm9ybT4NCiAgICAgPC90ZD4NCiAgICA8L3RyPg0KDQogICAgPHRyIGNsYXNzPSJOYXZC YXIiPg0KICAgICA8dGQgYWxpZ249InJpZ2h0IiB2YWxpZ249ImJvdHRvbSIgY29sc3Bhbj0iMyI+ DQogICAgICA8YSBocmVmPSJodHRwOi8vY21mLnpvcGUub3JnL3JxbXRzL3Byb3Bvc2Fscy93aWtp X2Zvcl9jbWYvdGFsa2JhY2svOTg4MDU4MDEyL2luZGV4X2h0bWw/cG9ydGFsX3NraW49UHJpbnRh YmxlIiB0YXJnZXQ9Il9uZXciPnByaW50YWJsZSBwYWdlIChiZXRhKTwvYT4mbmJzcDsgfCAmbmJz cDsNCiAgICAgIDxhIGhyZWY9Imh0dHA6Ly9jbWYuem9wZS5vcmciPmhvbWU8L2E+Jm5ic3A7IHwg Jm5ic3A7DQogICAgICA8YSBocmVmPSJodHRwOi8vY21mLnpvcGUub3JnL3Jvc3RlciI+bWVtYmVy czwvYT4mbmJzcDsgfCAmbmJzcDsNCiAgICAgIDxhIGhyZWY9Imh0dHA6Ly9jbWYuem9wZS5vcmcv cmVjZW50X25ld3MiPm5ld3M8L2E+Jm5ic3A7IHwgJm5ic3A7DQogICAgICA8YSBocmVmPSJodHRw Oi8vY21mLnpvcGUub3JnL2RvYyI+ZG9jczwvYT4mbmJzcDsgfCAmbmJzcDsNCiAgICAgIDxhIGhy ZWY9Imh0dHA6Ly9jbWYuem9wZS5vcmcvc2VhcmNoX2Zvcm0iPnNlYXJjaDwvYT4NCiAgICAgPC90 ZD4NCiAgICA8L3RyPg0KDQogICA8L3RhYmxlPg0KDQogIDwvdGQ+DQogPC90cj4NCjwvdGFibGU+ DQoNCg0KPHRhYmxlIHdpZHRoPSIxMDAlIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIwIiBjZWxs c3BhY2luZz0iMCI+DQogIDx0cj4NCiAgIDwhLS0gVmVydGljYWwgd2hpdGVzcGFjZSAtLT4NCiAg IDx0ZCBjb2xzcGFuPSI0Ij48YnIgLz48L3RkPg0KICA8L3RyPg0KDQogIDx0ciB2YWxpZ249InRv cCI+DQogICA8dGQgY2xhc3M9IlNpZGVCYXIiIHdpZHRoPSIxNSUiIGFsaWduPSJsZWZ0IiB2YWxp Z249InRvcCI+DQogICAgICAgIA0KPHRhYmxlIGNsYXNzPSJBY3Rpb25Cb3giIHdpZHRoPSIxMDAl Ij4NCg0KIDx0ciBjbGFzcz0iTWVtYmVyQWN0aW9ucyI+DQogIDx0ZCBjbGFzcz0iQWN0aW9uVGl0 bGUiPg0KICAgPGltZyBzcmM9Imh0dHA6Ly9jbWYuem9wZS5vcmcvcF8vVXNlcl9pY29uIiBhbGln bj0ibGVmdCIgYWx0PSJVc2VyIj4NCiAgIHNlaXR6DQogIDwvdGQ+DQogPC90cj4NCiA8dHIgY2xh c3M9Ik1lbWJlckFjdGlvbnMiPg0KICA8dGQ+DQogICAgICAgPGEgaHJlZj0iaHR0cDovL2NtZi56 b3BlLm9yZy9wZXJzb25hbGl6ZV9mb3JtIj5QcmVmZXJlbmNlczwvYT48YnI+DQogICAgICAgPGEg aHJlZj0iaHR0cDovL2NtZi56b3BlLm9yZy9sb2dvdXQiPkxvZyBvdXQ8L2E+PGJyPg0KICAgICAg IDxhIGhyZWY9Imh0dHA6Ly9jbWYuem9wZS5vcmcvTWVtYmVycy9zZWl0ei9hZGR0b0Zhdm9yaXRl cz9mYXZvcml0ZT1odHRwJTNhLy9jbWYuem9wZS5vcmcvcnFtdHMvcHJvcG9zYWxzL3dpa2lfZm9y X2NtZi90YWxrYmFjay85ODgwNTgwMTIiPkFkZCB0byBGYXZvcml0ZXM8L2E+PGJyPg0KICAgICAg IDxhIGhyZWY9Imh0dHA6Ly9jbWYuem9wZS5vcmcvTWVtYmVycy9zZWl0ei9mb2xkZXJfY29udGVu dHMiPk15IFN0dWZmPC9hPjxicj4NCiAgICAgPC90ZD4NCiA8L3RyPg0KDQoNCiA8dHIgY2xhc3M9 Ik1lbWJlckFjdGlvbnMiPg0KICA8dGQgY2xhc3M9IkFjdGlvblRpdGxlIj4NCiAgICAgICAgPGlt ZyBzcmM9Imh0dHA6Ly9jbWYuem9wZS5vcmcvbWlzY18vUFRLL0Rpc2N1c3Npb24lMjBJdGVtIiBh bGlnbj0ibGVmdCINCiAgICAgICAgICBhbHQ9IkRpc2N1c3Npb24gSXRlbSI+DQogICAgIDk4ODA1 ODAxMg0KICAgICAgPC90ZD4NCiA8L3RyPg0KIDx0ciBjbGFzcz0iTWVtYmVyQWN0aW9ucyI+DQog IDx0ZD4NCiAgICAgU3RhdHVzOiBwdWJsaXNoZWQ8YnI+DQoNCiAgICAgPGEgaHJlZj0iaHR0cDov L2NtZi56b3BlLm9yZy9ycW10cy9wcm9wb3NhbHMvd2lraV9mb3JfY21mL3RhbGtiYWNrLzk4ODA1 ODAxMi9kaXNjdXNzaW9uX3JlcGx5X2Zvcm0iPlJlcGx5PC9hPjxicj4NCiAgDQogIDwvdGQ+DQog PC90cj4NCg0KIDx0ciBjbGFzcz0iTWVtYmVyQWN0aW9ucyI+DQogIDx0ZD4NCiAgICAgICA8YSBo cmVmPSJ1bmRvX2Zvcm0iPlVuZG88L2E+PGJyPg0KICAgICA8L3RkPg0KIDwvdHI+DQoNCjwvdGFi bGU+DQoNCg0KDQogICA8L3RkPg0KDQogICA8IS0tIEhvcml6b250YWwgd2hpdGVzcGFjZSAtLT4N CiAgIDx0ZCB3aWR0aD0iMSUiPiZuYnNwOzwvdGQ+DQoNCiAgIDx0ZCBjbGFzcz0iRGVza3RvcCIg Y29sc3Bhbj0iMiIgd2lkdGg9Ijg0JSIgdmFsaWduPSJ0b3AiPg0KDQogICANCiAgIA0KICAgDQoN CiA8aHRtbD48aGVhZD48dGl0bGU+RFRNTCBleGNlcHRpb24gaW5zcGVjdG9yPC90aXRsZT48L2hl YWQ+DQo8Ym9keSBiZ2NvbG9yPSIjZmZmZmZmIj4NCg0KPHA+DQogIEFuIGV4Y2VwdGlvbiBvY2N1 cnJlZCBpbiBhIERUTUwgbWV0aG9kIG9yIGRvY3VtZW50Lg0KPC9wPg0KICA8cD4NCiAgICBFcnJv ciB0eXBlOiA8c3Ryb25nPk5vdCBGb3VuZDwvc3Ryb25nPjxicj4NCiAgICBFcnJvciB2YWx1ZTog PHN0cm9uZz4mbHQ7SFRNTCZndDsNCiZsdDtIRUFEJmd0OyZsdDtUSVRMRSZndDtab3BlIEVycm9y Jmx0Oy9USVRMRSZndDsmbHQ7L0hFQUQmZ3Q7DQombHQ7Qk9EWSZndDsNCg0KJmx0O1RBQkxFIEJP UkRFUj0mcXVvdDswJnF1b3Q7IFdJRFRIPSZxdW90OzEwMCUmcXVvdDsmZ3Q7DQombHQ7VFIgVkFM SUdOPSZxdW90O1RPUCZxdW90OyZndDsNCg0KJmx0O1REIFdJRFRIPSZxdW90OzEwJSZxdW90OyBB TElHTj0mcXVvdDtDRU5URVImcXVvdDsmZ3Q7DQomYW1wO25ic3A7DQombHQ7L1REJmd0Ow0KDQom bHQ7VEQgV0lEVEg9JnF1b3Q7OTAlJnF1b3Q7Jmd0Ow0KICAmbHQ7SDImZ3Q7Wm9wZSBFcnJvciZs dDsvSDImZ3Q7DQogICZsdDtQJmd0O1pvcGUgaGFzIGVuY291bnRlcmVkIGFuIGVycm9yIHdoaWxl IHB1Ymxpc2hpbmcgdGhpcyByZXNvdXJjZS4NCiAgJmx0Oy9QJmd0Ow0KICAmbHQ7UCZndDsmbHQ7 U1RST05HJmd0O1Jlc291cmNlIG5vdCBmb3VuZCZsdDsvU1RST05HJmd0OyZsdDsvUCZndDsNCiAg DQogIFNvcnJ5LCB0aGUgcmVxdWVzdGVkIFpvcGUgcmVzb3VyY2UgZG9lcyBub3QgZXhpc3QuJmx0 O3AmZ3Q7Q2hlY2sgdGhlIFVSTCBhbmQgdHJ5IGFnYWluLiZsdDtwJmd0Ow0KJmx0OyEtLQ0KcnFt dHMNCkdFVA0KLS0mZ3Q7DQogICZsdDtIUiBOT1NIQURFJmd0Ow0KDQogICZsdDtQJmd0O1Ryb3Vi bGVzaG9vdGluZyBTdWdnZXN0aW9ucyZsdDsvUCZndDsNCg0KICAmbHQ7VUwmZ3Q7DQogICZsdDtM SSZndDtUaGUgVVJMIG1heSBiZSBpbmNvcnJlY3QuJmx0Oy9MSSZndDsNCiAgJmx0O0xJJmd0O1Ro ZSBwYXJhbWV0ZXJzIHBhc3NlZCB0byB0aGlzIHJlc291cmNlIG1heSBiZSBpbmNvcnJlY3QuJmx0 Oy9MSSZndDsNCiAgJmx0O0xJJmd0O0EgcmVzb3VyY2UgdGhhdCB0aGlzIHJlc291cmNlIHJlbGll cyBvbiBtYXkgYmUgZW5jb3VudGVyaW5nIGFuIGVycm9yLiZsdDsvTEkmZ3Q7DQogICZsdDsvVUwm Z3Q7DQoNCiAgJmx0O1AmZ3Q7Rm9yIG1vcmUgZGV0YWlsZWQgaW5mb3JtYXRpb24gYWJvdXQgdGhl IGVycm9yLCBwbGVhc2UNCiAgcmVmZXIgdG8gdGhlIEhUTUwgc291cmNlIGZvciB0aGlzIHBhZ2Uu DQogICZsdDsvUCZndDsNCg0KICAmbHQ7UCZndDtJZiB0aGUgZXJyb3IgcGVyc2lzdHMgcGxlYXNl IGNvbnRhY3QgdGhlIHNpdGUgbWFpbnRhaW5lci4NCiAgVGhhbmsgeW91IGZvciB5b3VyIHBhdGll bmNlLg0KICAmbHQ7L1AmZ3Q7DQombHQ7L1REJmd0OyZsdDsvVFImZ3Q7DQombHQ7L1RBQkxFJmd0 Ow0KDQombHQ7L0JPRFkmZ3Q7DQombHQ7L0hUTUwmZ3Q7PC9zdHJvbmc+DQogIDwvcD4NCjxwPg0K ICBJbm5lcm1vc3QgbWV0aG9kOg0KICA8c3Ryb25nPi9QVEsvc2hvd1RocmVhZHM8L3N0cm9uZz4N CiAgPC9wPg0KPHRhYmxlIGJnY29sb3I9IiNjY2NjY2MiIGJvcmRlcj0iMSI+DQogIDx0cj4NCiAg ICA8dGggY29sc3Bhbj0iMiI+DQogICAgICBOYW1lc3BhY2UgU3RhY2sgKGlubmVybW9zdCBlbnRy eSBhdCB0b3ApDQogICAgPC90aD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0aD5JRDwvdGg+DQog ICAgPHRoPlR5cGU8L3RoPg0KICAgICAgPC90cj4NCiAgICAgIDx0cj4NCiAgICAgIDx0ZD4oTi9B KSZuYnNwOzwvdGQ+DQogICAgICA8dGQ+bWFwcGluZyB3aXRoIGtleXM6IFtdJm5ic3A7PC90ZD4N CiAgICAgICAgICA8L3RyPg0KICAgICAgPHRyPg0KICAgICAgPHRkPihOL0EpJm5ic3A7PC90ZD4N CiAgICAgIDx0ZD5tYXBwaW5nIHdpdGgga2V5czogWydkb2N1bWVudF9pZCcsICdkb2N1bWVudF90 aXRsZSddJm5ic3A7PC90ZD4NCiAgICAgICAgICA8L3RyPg0KICAgICAgPHRyPg0KICAgICAgPHRk PihOL0EpJm5ic3A7PC90ZD4NCiAgICAgIDx0ZD5tYXBwaW5nIHdpdGgga2V5czogW10mbmJzcDs8 L3RkPg0KICAgICAgICAgIDwvdHI+DQogICAgICA8dHI+DQogICAgICA8dGQ+KE4vQSkmbmJzcDs8 L3RkPg0KICAgICAgPHRkPm1hcHBpbmcgd2l0aCBrZXlzOiBbXSZuYnNwOzwvdGQ+DQogICAgICAg ICAgPC90cj4NCiAgICAgIDx0cj4NCiAgICAgIDx0ZD4oTi9BKSZuYnNwOzwvdGQ+DQogICAgICA8 dGQ+bWFwcGluZyB3aXRoIGtleXM6IFsnZG9jdW1lbnRfaWQnLCAnZG9jdW1lbnRfdGl0bGUnXSZu YnNwOzwvdGQ+DQogICAgICAgICAgPC90cj4NCiAgICAgIDx0cj4NCiAgICAgIDx0ZD45ODgwNTgw MTImbmJzcDs8L3RkPg0KICAgICAgPHRkPkluc3RhbmNlRGljdCZuYnNwOzwvdGQ+DQogICAgICAg ICAgPC90cj4NCiAgICAgIDx0cj4NCiAgICAgIDx0ZD5SRVFVRVNUJm5ic3A7PC90ZD4NCiAgICAg IDx0ZD5aUHVibGlzaGVyLkhUVFBSZXF1ZXN0LkhUVFBSZXF1ZXN0Jm5ic3A7PC90ZD4NCiAgICAg ICAgICA8L3RyPg0KICA8L3RhYmxlPg0KDQo8cD48c3Ryb25nPlNvdXJjZSBvZg0KICAgICAgPGEg aHJlZj0iaHR0cDovL2NtZi56b3BlLm9yZy9zaG93VGhyZWFkcy9tYW5hZ2VfbWFpbiI+PHN0cm9u Zw0KICAgICA+L1BUSy9zaG93VGhyZWFkczwvc3Ryb25nPjwvYT4NCiAgd2l0aCA8YSBocmVmPSIj ZmF1bHQiPmZhdWx0PC9hPjo8L3N0cm9uZz48L3A+DQo8dGFibGUgYmdjb2xvcj0iI2NjY2NjYyI+ PHRyPjx0ZD4NCjxwcmU+Jmx0O2R0bWwtY29tbWVudCZndDsNCiBzaG93VGhyZWFkcy5kdG1sIA0K IEdlbmVyYXRlIGEgc2ltcGxlIHRyZWUgdmlldyBvZiBtZXNzYWdlIHRocmVhZHMgdG8gaW5jbHVk ZSBvbiBhIHBhZ2UuDQombHQ7L2R0bWwtY29tbWVudCZndDsNCg0KPGI+PGEgbmFtZT0iZmF1bHQi Pjxmb250DQogIGNvbG9yPSJyZWQiPiZsdDtkdG1sLWlmICZxdW90O18uaGFzYXR0cih0aGlzKCku dGFsa2JhY2ssICdwYXJlbnRzSW5UaHJlYWQnKSBhbmQgdGFsa2JhY2sucGFyZW50c0luVGhyZWFk KDEpJnF1b3Q7Jmd0OzwvZm9udD48L2I+DQogQWJvdmUgaW4gdGhyZWFkOg0KICZsdDtkdG1sLWlm ICZxdW90O18ubGVuKHRoaXMoKS50YWxrYmFjay5wYXJlbnRzSW5UaHJlYWQoKSkgJmd0OyA1JnF1 b3Q7Jmd0Oy4uLiA6Jmx0Oy9kdG1sLWlmJmd0Ow0KICZsdDtkdG1sLWluICZxdW90O3RhbGtiYWNr LnBhcmVudHNJblRocmVhZCg1KSZxdW90OyZndDsNCiAgJmx0O2EgaHJlZj0mcXVvdDsmYW1wO2R0 bWwtYWJzb2x1dGVfdXJsOyZxdW90OyZndDsmYW1wO2R0bWwtdGl0bGU7Jmx0Oy9hJmd0Ow0KICAm bHQ7ZHRtbC11bmxlc3Mgc2VxdWVuY2UtZW5kJmd0OzombHQ7L2R0bWwtdW5sZXNzJmd0Ow0KICZs dDsvZHRtbC1pbiZndDsNCiZsdDsvZHRtbC1pZiZndDsNCg0KJmx0O2R0bWwtaWYgZXhwcj0mcXVv dDtQQVJFTlRTWzBdLm1ldGFfdHlwZSA9PSAnRGlzY3Vzc2lvbiBJdGVtJyZxdW90OyZndDsNCiAg Jmx0O2R0bWwtdHJlZSBuYW1lPSZxdW90O2lkJnF1b3Q7IGJyYW5jaGVzPSZxdW90O2dldFJlcGxp ZXMmcXVvdDsmZ3Q7DQogICAmbHQ7YSBocmVmPSZxdW90OyZhbXA7ZHRtbC1hYnNvbHV0ZV91cmw7 JnF1b3Q7Jmd0OyZsdDtpbWcgYm9yZGVyPTAgc3JjPSZxdW90OyZsdDtkdG1sLXZhciBTQ1JJUFRf TkFNRSZndDsmbHQ7ZHRtbC12YXIgaWNvbiZndDsmcXVvdDsmZ3Q7Jmx0Oy9hJmd0Ow0KICAgJmx0 O2EgaHJlZj0mcXVvdDsmYW1wO2R0bWwtYWJzb2x1dGVfdXJsOyZxdW90OyZndDsmYW1wO2R0bWwt dGl0bGU7Jmx0Oy9hJmd0OywNCiAgIGJ5ICZsdDtkdG1sLXZhciBDcmVhdG9yJmd0Ow0KICAgb24g Jmx0O2R0bWwtdmFyIERhdGUmZ3Q7DQogICZsdDsvZHRtbC10cmVlJmd0Ow0KJmx0O2R0bWwtZWxz ZSZndDsNCiAgJmx0O2R0bWwtdHJlZSBuYW1lPSZxdW90O3RhbGtiYWNrJnF1b3Q7IGJyYW5jaGVz PSZxdW90O2dldFJlcGxpZXMmcXVvdDsmZ3Q7DQogICAmbHQ7YSBocmVmPSZxdW90OyZhbXA7ZHRt bC1hYnNvbHV0ZV91cmw7JnF1b3Q7Jmd0OyZsdDtpbWcgYm9yZGVyPTAgc3JjPSZxdW90OyZsdDtk dG1sLXZhciBTQ1JJUFRfTkFNRSZndDsmbHQ7ZHRtbC12YXIgaWNvbiZndDsmcXVvdDsmZ3Q7Jmx0 Oy9hJmd0Ow0KICAgJmx0O2EgaHJlZj0mcXVvdDsmYW1wO2R0bWwtYWJzb2x1dGVfdXJsOyZxdW90 OyZndDsmYW1wO2R0bWwtdGl0bGU7Jmx0Oy9hJmd0OywNCiAgIGJ5ICZsdDtkdG1sLXZhciBDcmVh dG9yJmd0Ow0KICAgb24gJmx0O2R0bWwtdmFyIERhdGUmZ3Q7DQogICZsdDsvZHRtbC10cmVlJmd0 Ow0KJmx0Oy9kdG1sLWlmJmd0Ow0KDQo8L3ByZT4NCjwvdGQ+PC90cj48L3RhYmxlPg0KDQo8cD48 c3Ryb25nPkNhbGwgc3RhY2sgKHNlY3VyaXR5IGNvbnRleHQpPC9zdHJvbmc+PC9wPg0KPHRhYmxl IGJnY29sb3I9IiNjY2NjY2MiIGJvcmRlcj0iMSI+DQogIDx0cj48dGQ+L1BUSy9zaG93VGhyZWFk czwvdGQ+PC90cj4NCiAgPHRyPjx0ZD4vUFRLL3ZpZXdUaHJlYWRzQXRCb3R0b208L3RkPjwvdHI+ DQo8L3RhYmxlPg0KDQo8cD48c3Ryb25nPlJFUVVFU1QgaW5mb3JtYXRpb248L3N0cm9uZz48L3A+ DQo8dGFibGUgYmdjb2xvcj0iI2NjY2NjYyIgYm9yZGVyPSIxIj48dHI+PHRkPg0KPGgzPmZvcm08 L2gzPjx0YWJsZT48L3RhYmxlPjxoMz5jb29raWVzPC9oMz48dGFibGU+PHRyIHZhbGlnbj0idG9w IiBhbGlnbj0ibGVmdCI+PHRoPnRyZWUtczwvdGg+PHRkPidlSnlMamxaM2hBRG5rcFJ5Vy9YWVdB QXd0Z1ZWJzwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+X19hY19u YW1lPC90aD48dGQ+J3NlaXR6JzwvdGQ+PC90cj48L3RhYmxlPjxoMz5vdGhlcjwvaDM+PHRhYmxl Pjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5BVVRIRU5USUNBVElPTl9QQVRIPC90 aD48dGQ+J1BUSy92dXJ0Ly8nPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQi Pjx0aD5QVUJMSVNIRUQ8L3RoPjx0ZD4mbHQ7UHl0aG9uIE1ldGhvZCBvYmplY3QgYXQgODgwNmE1 OCZndDs8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPl9fYWNfbmFt ZTwvdGg+PHRkPidzZWl0eic8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+ PHRoPmJhdGNoX3NpemU8L3RoPjx0ZD4yMDwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWdu PSJsZWZ0Ij48dGg+U0VSVkVSX1VSTDwvdGg+PHRkPidodHRwOi8vY21mLnpvcGUub3JnJzwvdGQ+ PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+VmlydHVhbFJvb3RQaHlzaWNh bFBhdGg8L3RoPjx0ZD4oJycsICdQVEsnKTwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWdu PSJsZWZ0Ij48dGg+dHJlZS1zPC90aD48dGQ+J2VKeUxqbFozaEFEbmtwUnlXL1hZV0FBd3RnVlYn PC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5VUkw8L3RoPjx0ZD4n aHR0cDovL2NtZi56b3BlLm9yZy9ycW10cy9wcm9wb3NhbHMvd2lraV9mb3JfY21mL3RhbGtiYWNr Lzk4ODA1ODAxMi9pbmRleF9odG1sJzwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJs ZWZ0Ij48dGg+QVVUSEVOVElDQVRFRF9VU0VSPC90aD48dGQ+c2VpdHo8L3RkPjwvdHI+PHRyIHZh bGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPlRyYXZlcnNhbFJlcXVlc3ROYW1lU3RhY2s8L3Ro Pjx0ZD5bXTwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+VVJMMDwv dGg+PHRkPmh0dHA6Ly9jbWYuem9wZS5vcmcvcnFtdHMvcHJvcG9zYWxzL3dpa2lfZm9yX2NtZi90 YWxrYmFjay85ODgwNTgwMTIvaW5kZXhfaHRtbDwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFs aWduPSJsZWZ0Ij48dGg+VVJMMTwvdGg+PHRkPmh0dHA6Ly9jbWYuem9wZS5vcmcvcnFtdHMvcHJv cG9zYWxzL3dpa2lfZm9yX2NtZi90YWxrYmFjay85ODgwNTgwMTI8L3RkPjwvdHI+PHRyIHZhbGln bj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPlVSTDI8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3Jn L3JxbXRzL3Byb3Bvc2Fscy93aWtpX2Zvcl9jbWYvdGFsa2JhY2s8L3RkPjwvdHI+PHRyIHZhbGln bj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPlVSTDM8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3Jn L3JxbXRzL3Byb3Bvc2Fscy93aWtpX2Zvcl9jbWY8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBh bGlnbj0ibGVmdCI+PHRoPlVSTDQ8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3JnL3JxbXRzL3By b3Bvc2FsczwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+VVJMNTwv dGg+PHRkPmh0dHA6Ly9jbWYuem9wZS5vcmcvcnFtdHM8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9w IiBhbGlnbj0ibGVmdCI+PHRoPlVSTDY8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3JnPC90ZD48 L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5CQVNFMDwvdGg+PHRkPmh0dHA6 Ly9jbWYuem9wZS5vcmc8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRo PkJBU0UxPC90aD48dGQ+aHR0cDovL2NtZi56b3BlLm9yZzwvdGQ+PC90cj48dHIgdmFsaWduPSJ0 b3AiIGFsaWduPSJsZWZ0Ij48dGg+QkFTRTI8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3JnL3Jx bXRzPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5CQVNFMzwvdGg+ PHRkPmh0dHA6Ly9jbWYuem9wZS5vcmcvcnFtdHMvcHJvcG9zYWxzPC90ZD48L3RyPjx0ciB2YWxp Z249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5CQVNFNDwvdGg+PHRkPmh0dHA6Ly9jbWYuem9wZS5v cmcvcnFtdHMvcHJvcG9zYWxzL3dpa2lfZm9yX2NtZjwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3Ai IGFsaWduPSJsZWZ0Ij48dGg+QkFTRTU8L3RoPjx0ZD5odHRwOi8vY21mLnpvcGUub3JnL3JxbXRz L3Byb3Bvc2Fscy93aWtpX2Zvcl9jbWYvdGFsa2JhY2s8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9w IiBhbGlnbj0ibGVmdCI+PHRoPkJBU0U2PC90aD48dGQ+aHR0cDovL2NtZi56b3BlLm9yZy9ycW10 cy9wcm9wb3NhbHMvd2lraV9mb3JfY21mL3RhbGtiYWNrLzk4ODA1ODAxMjwvdGQ+PC90cj48dHIg dmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+QkFTRTc8L3RoPjx0ZD5odHRwOi8vY21mLnpv cGUub3JnL3JxbXRzL3Byb3Bvc2Fscy93aWtpX2Zvcl9jbWYvdGFsa2JhY2svOTg4MDU4MDEyL2lu ZGV4X2h0bWw8L3RkPjwvdHI+PC90YWJsZT48aDM+ZW52aXJvbjwvaDM+PHRhYmxlPjx0ciB2YWxp Z249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5IVFRQX0FDQ0VQVF9FTkNPRElORzwvdGg+PHRkPmd6 aXAsIGRlZmxhdGU8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPlNU VVBJRF9MT0dfRklMRTwvdGg+PHRkPi91c3IvbG9jYWwvYmFzZS9uZXcvdmFyL25ld19ldmVudHMu bG9nPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5jaGFubmVsLmNy ZWF0aW9uX3RpbWU8L3RoPjx0ZD45ODgyMzQzODk8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBh bGlnbj0ibGVmdCI+PHRoPlNFUlZFUl9QUk9UT0NPTDwvdGg+PHRkPjEuMDwvdGQ+PC90cj48dHIg dmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+U0VSVkVSX1BPUlQ8L3RoPjx0ZD4xNDgwPC90 ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5QQVRIX0lORk88L3RoPjx0 ZD4vVmlydHVhbEhvc3RCYXNlL2h0dHAvY21mLnpvcGUub3JnOjgwL1BUSy9WaXJ0dWFsSG9zdFJv b3QvcnFtdHMvcHJvcG9zYWxzL3dpa2lfZm9yX2NtZi90YWxrYmFjay85ODgwNTgwMTI8L3RkPjwv dHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPkhUVFBfSE9TVDwvdGg+PHRkPjEw LjAuMTEuMzoxNDgwPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5S RVFVRVNUX01FVEhPRDwvdGg+PHRkPkdFVDwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWdu PSJsZWZ0Ij48dGg+UEFUSF9UUkFOU0xBVEVEPC90aD48dGQ+L1ZpcnR1YWxIb3N0QmFzZS9odHRw L2NtZi56b3BlLm9yZzo4MC9QVEsvVmlydHVhbEhvc3RSb290L3JxbXRzL3Byb3Bvc2Fscy93aWtp X2Zvcl9jbWYvdGFsa2JhY2svOTg4MDU4MDEyPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxp Z249ImxlZnQiPjx0aD5IVFRQX0NPT0tJRTwvdGg+PHRkPnRyZWUtcz0mcXVvdDtlSnlMamxaM2hB RG5rcFJ5Vy9YWVdBQXd0Z1ZWJnF1b3Q7OyBfX2FjX25hbWU9JnF1b3Q7c2VpdHomcXVvdDs7IF9f YWM9JnF1b3Q7YzJWcGRIbzZOalV3TkRZMU1EUSUzZCUwYSZxdW90OzwvdGQ+PC90cj48dHIgdmFs aWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+U0NSSVBUX05BTUU8L3RoPjx0ZD48L3RkPjwvdHI+ PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVmdCI+PHRoPlNFUlZFUl9TT0ZUV0FSRTwvdGg+PHRk PlpvcGUvKHVucmVsZWFzZWQgdmVyc2lvbikgWlNlcnZlci8xLjFiMTwvdGQ+PC90cj48dHIgdmFs aWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+SFRUUF9BQ0NFUFRfTEFOR1VBR0U8L3RoPjx0ZD5l bi11czwvdGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+UkVNT1RFX0FE RFI8L3RoPjx0ZD4xMC4wLjExLjM8L3RkPjwvdHI+PHRyIHZhbGlnbj0idG9wIiBhbGlnbj0ibGVm dCI+PHRoPkhUVFBfUkVGRVJFUjwvdGg+PHRkPmh0dHA6Ly9jbWYuem9wZS5vcmcvcnFtdHMvcHJv cG9zYWxzL3dpa2lfZm9yX2NtZi92aWV3PC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249 ImxlZnQiPjx0aD5TRVJWRVJfTkFNRTwvdGg+PHRkPmFwcDI8L3RkPjwvdHI+PHRyIHZhbGlnbj0i dG9wIiBhbGlnbj0ibGVmdCI+PHRoPkdBVEVXQVlfSU5URVJGQUNFPC90aD48dGQ+Q0dJLzEuMTwv dGQ+PC90cj48dHIgdmFsaWduPSJ0b3AiIGFsaWduPSJsZWZ0Ij48dGg+SFRUUF9VU0VSX0FHRU5U PC90aD48dGQ+TW96aWxsYS80LjAgKGNvbXBhdGlibGU7IE1TSUUgNS4wMTsgV2luZG93cyBOVCA1 LjApPC90ZD48L3RyPjx0ciB2YWxpZ249InRvcCIgYWxpZ249ImxlZnQiPjx0aD5IVFRQX0FDQ0VQ VDwvdGg+PHRkPiovKjwvdGQ+PC90cj48L3RhYmxlPg0KPC90ZD48L3RyPjwvdGFibGU+DQoNCjwv Ym9keT4NCjwvaHRtbD4NCg0KICANCiAgPC90ZD4NCiA8L3RyPg0KPC90YWJsZT4NCg0KPC9ib2R5 Pg0KPC9odG1sPg0KDQo8IS0tDQpUcmFjZWJhY2sgKGlubmVybW9zdCBsYXN0KToNCiAgRmlsZSBa UHVibGlzaGVyL1B1Ymxpc2gucHksIGxpbmUgMjIzLCBpbiBwdWJsaXNoX21vZHVsZQ0KICBGaWxl IFpQdWJsaXNoZXIvUHVibGlzaC5weSwgbGluZSAxODcsIGluIHB1Ymxpc2gNCiAgRmlsZSAvdXNy L2xvY2FsL2Jhc2Uvem9wZS0yXzMtYnJhbmNoL2xpYi9weXRob24vWm9wZS9fX2luaXRfXy5weSwg bGluZSAyMjEsIGluIHpwdWJsaXNoZXJfZXhjZXB0aW9uX2hvb2sNCiAgICAoT2JqZWN0OiA5ODgw NTgwMTIpDQogIEZpbGUgWlB1Ymxpc2hlci9QdWJsaXNoLnB5LCBsaW5lIDE3MSwgaW4gcHVibGlz aA0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS96b3BlLTJfMy1icmFuY2gvbGliL3B5dGhvbi9aUHVi bGlzaGVyL21hcHBseS5weSwgbGluZSAxNjAsIGluIG1hcHBseQ0KICAgIChPYmplY3Q6IGluZGV4 X2h0bWwpDQogIEZpbGUgWlB1Ymxpc2hlci9QdWJsaXNoLnB5LCBsaW5lIDExMiwgaW4gY2FsbF9v YmplY3QNCiAgICAoT2JqZWN0OiBpbmRleF9odG1sKQ0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS96 b3BlLTJfMy1icmFuY2gvbGliL3B5dGhvbi9BcHAvc3BlY2lhbF9kdG1sLnB5LCBsaW5lIDEyNywg aW4gX19jYWxsX18NCiAgICAoT2JqZWN0OiBpbmRleF9odG1sKQ0KICBGaWxlIC91c3IvbG9jYWwv YmFzZS96b3BlLTJfMy1icmFuY2gvbGliL3B5dGhvbi9Eb2N1bWVudFRlbXBsYXRlL0RUX1N0cmlu Zy5weSwgbGluZSA1MzgsIGluIF9fY2FsbF9fDQogICAgKE9iamVjdDogaW5kZXhfaHRtbCkNCiAg RmlsZSAvdXNyL2xvY2FsL2Jhc2UvbmV3L1Byb2R1Y3RzL1pEZWJ1Zy9EVE1MRGVidWcucHksIGxp bmUgMjU5LCBpbiBkZWJ1Z19yZW5kZXJfYmxvY2tzDQogIEZpbGUgL3Vzci9sb2NhbC9iYXNlL25l dy9Qcm9kdWN0cy9aRGVidWcvRFRNTERlYnVnLnB5LCBsaW5lIDI1NiwgaW4gZGVidWdfcmVuZGVy X2Jsb2Nrcw0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS9uZXcvUHJvZHVjdHMvUFRLQmFzZS9GU0RU TUxNZXRob2QucHksIGxpbmUgMjEzLCBpbiBfX2NhbGxfXw0KICAgIChPYmplY3Q6IHZpZXdUaHJl YWRzQXRCb3R0b20pDQogIEZpbGUgL3Vzci9sb2NhbC9iYXNlL3pvcGUtMl8zLWJyYW5jaC9saWIv cHl0aG9uL0RvY3VtZW50VGVtcGxhdGUvRFRfU3RyaW5nLnB5LCBsaW5lIDUzOCwgaW4gX19jYWxs X18NCiAgICAoT2JqZWN0OiB2aWV3VGhyZWFkc0F0Qm90dG9tKQ0KICBGaWxlIC91c3IvbG9jYWwv YmFzZS9uZXcvUHJvZHVjdHMvWkRlYnVnL0RUTUxEZWJ1Zy5weSwgbGluZSAyOTIsIGluIGRlYnVn X3JlbmRlcl9ibG9ja3MNCiAgRmlsZSAvdXNyL2xvY2FsL2Jhc2UvbmV3L1Byb2R1Y3RzL1pEZWJ1 Zy9EVE1MRGVidWcucHksIGxpbmUgMjkyLCBpbiBkZWJ1Z19yZW5kZXJfYmxvY2tzDQogIEZpbGUg L3Vzci9sb2NhbC9iYXNlL25ldy9Qcm9kdWN0cy9aRGVidWcvRFRNTERlYnVnLnB5LCBsaW5lIDI1 OSwgaW4gZGVidWdfcmVuZGVyX2Jsb2Nrcw0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS9uZXcvUHJv ZHVjdHMvWkRlYnVnL0RUTUxEZWJ1Zy5weSwgbGluZSAyNTYsIGluIGRlYnVnX3JlbmRlcl9ibG9j a3MNCiAgRmlsZSAvdXNyL2xvY2FsL2Jhc2UvbmV3L1Byb2R1Y3RzL1BUS0Jhc2UvRlNEVE1MTWV0 aG9kLnB5LCBsaW5lIDIxMywgaW4gX19jYWxsX18NCiAgICAoT2JqZWN0OiBzaG93VGhyZWFkcykN CiAgRmlsZSAvdXNyL2xvY2FsL2Jhc2Uvem9wZS0yXzMtYnJhbmNoL2xpYi9weXRob24vRG9jdW1l bnRUZW1wbGF0ZS9EVF9TdHJpbmcucHksIGxpbmUgNTM4LCBpbiBfX2NhbGxfXw0KICAgIChPYmpl Y3Q6IHNob3dUaHJlYWRzKQ0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS9uZXcvUHJvZHVjdHMvWkRl YnVnL0RUTUxEZWJ1Zy5weSwgbGluZSAyODksIGluIGRlYnVnX3JlbmRlcl9ibG9ja3MNCiAgRmls ZSAvdXNyL2xvY2FsL2Jhc2UvbmV3L1Byb2R1Y3RzL1pEZWJ1Zy9EVE1MRGVidWcucHksIGxpbmUg MjM5LCBpbiBkZWJ1Z0V4Y2VwdGlvbg0KICBGaWxlIC91c3IvbG9jYWwvYmFzZS9uZXcvUHJvZHVj dHMvWkRlYnVnL0RUTUxEZWJ1Zy5weSwgbGluZSAyODcsIGluIGRlYnVnX3JlbmRlcl9ibG9ja3MN CiAgRmlsZSAvdXNyL2xvY2FsL2Jhc2Uvem9wZS0yXzMtYnJhbmNoL2xpYi9weXRob24vRG9jdW1l bnRUZW1wbGF0ZS9EVF9VdGlsLnB5LCBsaW5lIDMzNCwgaW4gZXZhbA0KICAgIChPYmplY3Q6IF8u aGFzYXR0cih0aGlzKCkudGFsa2JhY2ssICdwYXJlbnRzSW5UaHJlYWQnKSBhbmQgdGFsa2JhY2su cGFyZW50c0luVGhyZWFkKDEpKQ0KICAgIChJbmZvOiB0aGlzKQ0KICBGaWxlICZsdDtzdHJpbmcm Z3Q7LCBsaW5lIDAsIGluID8NCiAgRmlsZSAvdXNyL2xvY2FsL2Jhc2UvbmV3L1Byb2R1Y3RzL1BU S0RlbW8vRGlzY3Vzc2lvbnMucHksIGxpbmUgMjM2LCBpbiBwYXJlbnRzSW5UaHJlYWQNCiAgICAo T2JqZWN0OiA5ODgwNTgwMTIpDQogIEZpbGUgL3Vzci9sb2NhbC9iYXNlL25ldy9Qcm9kdWN0cy9Q VEtEZW1vL0Rpc2N1c3Npb25zLnB5LCBsaW5lIDIwMSwgaW4gaW5SZXBseVRvDQogICAgKE9iamVj dDogOTg4MDU4MDEyKQ0KICBGaWxlIFpQdWJsaXNoZXIvSFRUUFJlcXVlc3QucHksIGxpbmUgNzMy LCBpbiByZXNvbHZlX3VybA0KTm90IEZvdW5kOiAoc2VlIGFib3ZlKQ0KDQotLT4NCg== ------_=_NextPart_001_01C0CDCF.D7A9DBC7-- From tseaver@digicool.com Thu Apr 26 02:29:11 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 25 Apr 2001 21:29:11 -0400 Subject: [Zope-CMF] can't read Comments on the CMF dogbowl site? References: <8210C9D2F4E1074181EFD72335211A970C4299@dc0.nyc.ipathhq.com> Message-ID: <3AE779E7.AD5EF6DC@novacoxmail.com> > Bill Seitz wrote: > > Even after logging in, I can read > http://cmf.zope.org/rqmts/proposals/wiki_for_cmf/view > > but I can't read > http://cmf.zope.org/rqmts/proposals/wiki_for_cmf/talkback/988058012 > (first comment in list) Many apologies for the time it has taken to address this issue. We've been stalled (read, "totally strapped for time") in completing the migration of the dogbowl to CMF 1.0, which will resolve this problem. Help is on the way, however; I've been promised reinforcements. Now, if only they get here before the boot leather runs out. :) Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Thu Apr 26 02:36:43 2001 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 25 Apr 2001 21:36:43 -0400 Subject: [Zope-CMF] problem with cmf.zope.org? References: Message-ID: <3AE77BAB.D6B07386@novacoxmail.com> marc lindahl wrote: > > I tried to add something to my favorites on http://cmf.zope.org and got > this: > > An exception occurred in a DTML method or document. > > Error type: KeyError > Error value: design We have a recent tracker issue on this: "Adding folder to favorites returns with error", http://www.zope.org/Products/PTK/Tracker/255/1 I hope to clear up several dogbowl issues in the next day or so. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From wschan@bee-net.com Thu Apr 26 05:39:18 2001 From: wschan@bee-net.com (Chan Wai Shan) Date: Thu, 26 Apr 2001 12:39:18 +0800 Subject: [Zope-CMF] How to create workflow in CMF? Message-ID: <3AE7A676.3F2719E0@bee-net.com> Dear All, I have just installed the CMF 1.0, and have added a CMF site in the / folder. 1. Would someone tell me what should I do next? 2. How to define workflow using CMF 1.0? Regards, Chan Wai Shan wschan@bee-net.com ws09chan@netvigator.com From seb@jamkit.com Thu Apr 26 10:19:29 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 26 Apr 2001 10:19:29 +0100 Subject: [Zope-CMF] How to create workflow in CMF? In-Reply-To: <3AE7A676.3F2719E0@bee-net.com>; from wschan@bee-net.com on Thu, Apr 26, 2001 at 12:39:18PM +0800 References: <3AE7A676.3F2719E0@bee-net.com> Message-ID: <20010426101927.B6691@lenin.jamkit.com> * Chan Wai Shan [010426 06:40]: > Dear All, > > I have just installed the CMF 1.0, and have added a CMF site in the / > folder. > 1. Would someone tell me what should I do next? Ummm....personally, I started out by reading the documentation: 1) http://cmf.zope.org/doc 2) ...where you'll find out how make an example PortalPoll object: http://cmf.zope.org/doc/devel/content_devel_guide 3) ...and how to use skins: http://cmf.zope.org/doc/devel/writing_skins Try that for starters. seb From seb@jamkit.com Wed Apr 25 17:57:09 2001 From: seb@jamkit.com (seb bacon) Date: Wed, 25 Apr 2001 17:57:09 +0100 Subject: [Zope-CMF] Core Actions? Message-ID: <20010425175709.A5577@lenin.jamkit.com> Just a quick thought: shouldn't the actions marked with: # This will eventually be configurable through the portal_actions UI. (such as 'Add to Favourites', etc) be in CMFDefault, not CMFCore? seb From lucas.hofman@oslo.pgs.com Thu Apr 26 10:36:13 2001 From: lucas.hofman@oslo.pgs.com (Lucas Hofman) Date: Thu, 26 Apr 2001 11:36:13 +0200 Subject: [Zope-CMF] conversion of Portal File to CMFExtFile Message-ID: <0104269882.AA988277684@lysntsmail.oslo.pgs.com> Does anybody on the list use the CMFExtFile product. Is it OK? I would need a script which walks a CMF site and converts all the 'portal file' entities to CMFExtFile entities. Has somebody already created such a script? Regards, Lucas -- Lucas Hofman PGS Research work: +47 67514059 PO Box 354 fax: +47 67526640 N-1326 Lysaker, Norway home: +47 67581373 From jq@jquade.de Thu Apr 26 11:35:15 2001 From: jq@jquade.de (Jens Quade) Date: 26 Apr 2001 12:35:15 +0200 Subject: [Zope-CMF] problem with cmf.zope.org? In-Reply-To: Tres Seaver's message of "Wed, 25 Apr 2001 21:36:43 -0400" References: <3AE77BAB.D6B07386@novacoxmail.com> Message-ID: Tres Seaver writes: > marc lindahl wrote: > > > > I tried to add something to my favorites on http://cmf.zope.org and got > > this: > > > > An exception occurred in a DTML method or document. > > > > Error type: KeyError > > Error value: design > > We have a recent tracker issue on this: > > "Adding folder to favorites returns with error", > http://www.zope.org/Products/PTK/Tracker/255/1 > > I hope to clear up several dogbowl issues in the next day or so. The dogbowl issue is a different one, it happens always, and *before* the favorite has been added. jens -- Shipping software is an unnatural act From tseaver@digicool.com Thu Apr 26 12:48:00 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 26 Apr 2001 07:48:00 -0400 Subject: [Zope-CMF] Core Actions? References: <20010425175709.A5577@lenin.jamkit.com> Message-ID: <3AE80AF0.CB69F635@novacoxmail.com> seb bacon wrote: > > Just a quick thought: shouldn't the actions marked with: > > # This will eventually be configurable through the portal_actions > UI. > > (such as 'Add to Favourites', etc) be in CMFDefault, not CMFCore? Yes -- we need to allow products to register "suggested" actions with the actions tool, to prevent the inverted dependency you note. The site manager would then be able to enable/disable such actions through a ZMI interface for the actions tool. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From Dan.Rolander@marriott.com Thu Apr 26 13:10:08 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Thu, 26 Apr 2001 08:10:08 -0400 Subject: [Zope-CMF] problem with cmf.zope.org? Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6535@mcnc-mdm1-ex01> There is a tracker issue open on this (I opened it) but it's actually http://www.zope.org/Products/PTK/Tracker/243. Dan -----Original Message----- From: Jens Quade [mailto:jq@jquade.de] Sent: Thursday, April 26, 2001 6:35 AM To: tseaver@digicool.com Cc: marc lindahl; zope-cmf@zope.org Subject: Re: [Zope-CMF] problem with cmf.zope.org? Tres Seaver writes: > marc lindahl wrote: > > > > I tried to add something to my favorites on http://cmf.zope.org and got > > this: > > > > An exception occurred in a DTML method or document. > > > > Error type: KeyError > > Error value: design > > We have a recent tracker issue on this: > > "Adding folder to favorites returns with error", > http://www.zope.org/Products/PTK/Tracker/255/1 > > I hope to clear up several dogbowl issues in the next day or so. The dogbowl issue is a different one, it happens always, and *before* the favorite has been added. jens -- Shipping software is an unnatural act _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From tseaver@digicool.com Thu Apr 26 12:56:20 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 26 Apr 2001 07:56:20 -0400 Subject: [Zope-CMF] problem with cmf.zope.org? References: <6176E3D8E36FD111B58900805FA7E0F80CCF6535@mcnc-mdm1-ex01> Message-ID: <3AE80CE4.AD6949F8@novacoxmail.com> "Rolander, Dan" wrote: > > There is a tracker issue open on this (I opened it) but it's actually > http://www.zope.org/Products/PTK/Tracker/243. Thanks for the correction! I am working hard to get a resource back for "feeding the dawgs." :) Tres. > > -----Original Message----- > From: Jens Quade [mailto:jq@jquade.de] > Sent: Thursday, April 26, 2001 6:35 AM > To: tseaver@digicool.com > Cc: marc lindahl; zope-cmf@zope.org > Subject: Re: [Zope-CMF] problem with cmf.zope.org? > > Tres Seaver writes: > > > marc lindahl wrote: > > > > > > I tried to add something to my favorites on http://cmf.zope.org and got > > > this: > > > > > > An exception occurred in a DTML method or document. > > > > > > Error type: KeyError > > > Error value: design > > > > We have a recent tracker issue on this: > > > > "Adding folder to favorites returns with error", > > http://www.zope.org/Products/PTK/Tracker/255/1 > > > > I hope to clear up several dogbowl issues in the next day or so. > > The dogbowl issue is a different one, it happens always, and *before* > the favorite has been added. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From sigve@tjora.no Thu Apr 26 14:23:55 2001 From: sigve@tjora.no (Sigve Tjora) Date: Thu, 26 Apr 2001 15:23:55 +0200 (CEST) Subject: [Zope-CMF] using NGFNavigator with CMF In-Reply-To: <200104251333.PAA04760@apollo.neolabs.be> Message-ID: Hi, I'm using NFGNnav 0.6 with the CMF1.0 and not experiencing your problems. mvh Sigve Tjora Du skrev: > Hi, > I'm having problems using NFGNavigator > > http://www.zope.org/Members/gyst/NFGnav > > insite a CMF site. In the custom skins directory I've put the following DTML > document, to display the Tree Menu. > > ---------- > PARENTS, > REQUEST, > id(), > initlevel=1, > Meta_Types=['Folder','DTML Document','DTML Method','Image','CMF > Site','Document','Portal Folder'] > )"> > ----------- > > In the CMF site I've got an 'about' portal folder, and a Document inside tat > (index_html). > when going to that index_html, the tree changes accordingly, BUT when I click > on 'view' or 'edit' I get the following error, which doesn't make any sense > to me when I look at NFG's code: > > ------------ > > Zope Error > > Zope has encountered an error while publishing this resource. > > TypeError > > Sorry, a Zope error occurred. > > Traceback (innermost last): > File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in > publish_module > File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /home/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: DynamicType) > File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 171, in > publish > File /home/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160, in > mapply > (Object: document_view) > File /home/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: document_view) > File /home/zope/Zope-2.3.1/Products/CMFCore/FSDTMLMethod.py, line 218, in > __call__ > (Object: document_view) > File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line > 538, in __call__ > (Object: document_view) > File /home/zope/Zope-2.3.1/Products/CMFCore/FSDTMLMethod.py, line 213, in > __call__ > (Object: standard_html_header) > File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line > 538, in __call__ > (Object: standard_html_header) > File /home/zope/Zope-2.3.1/lib/python/OFS/DTMLDocument.py, line 182, in > __call__ > (Object: example_TreeMenu) > File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py, line > 538, in __call__ > (Object: example_TreeMenu) > File /home/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Util.py, line > 334, in eval > (Object: NAVCore.TreeMenu( > PARENTS, > REQUEST, > id(), > initlevel=1, > Meta_Types=['Folder','DTML Document','DTML Method','Image','CMF > Site','Document','Portal Folder'] > )) > (Info: REQUEST) > File , line 0, in ? > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 134, in > TreeMenu > (Object: NAVCore) > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in > ChartLevel > (Object: NAVCore) > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in > ChartLevel > (Object: NAVCore) > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in > ChartLevel > (Object: NAVCore) > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 261, in > ChartLevel > (Object: NAVCore) > File /home/zope/Zope-2.3.1/Products/NFGnav/NFGnav.py, line 214, in > ChartLevel > (Object: NAVCore) > TypeError: too many arguments; expected 1, got 2 > > > > > 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. > > ------------ > > Does anybody know why it complains about the number of arguments? I did some > testing and it only returns an error when I include 'Document' in the meta > types for NAVCore.TreeMenu() > > Thanks > Maarten > NEOlabs - http://www.neolabs.be - mailto:info@neolabs.be > > _______________________________________________ > 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 james@codenamefuture.nl Thu Apr 26 15:06:50 2001 From: james@codenamefuture.nl (James van der Veen) Date: Thu, 26 Apr 2001 16:06:50 +0200 Subject: [Zope-CMF] Custom potral_type Message-ID: <002f01c0ce5a$23901ec0$2d87fea9@james> Hi all, I have a question about the portal_types... (as the subject tells you) If I create a new portal_type and creat a item (of this custom type) it doesn´t show up if I search for it. Do I have to do something to get this item indexed in the portal_catalog ? I would like to search for it using search?Searchabletext=&meta_type%3Alist=News+Item but when I try this with nieuws_search?Searchabletext=&meta_type%3Alist=Sport It doesnt find my custom item (a sport newsitem) Can someone help me? Thanks!!! James van der Veen From seb@jamkit.com Thu Apr 26 17:17:00 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 26 Apr 2001 17:17:00 +0100 Subject: [Zope-CMF] login programmatically Message-ID: <20010426171700.F6854@lenin.jamkit.com> I need to log the user in as part of the the registration process, rather than have them click a link at the end. I can't for the life of me work out how to do this. Do I have to raise an Unauthorised error in order to trigger the login mechanism? Can anyone help? cheers, seb -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com From icornell@yahoo.com Thu Apr 26 17:14:14 2001 From: icornell@yahoo.com (=?iso-8859-1?q?Ivan=20Cornell?=) Date: Thu, 26 Apr 2001 17:14:14 +0100 (BST) Subject: [Zope-CMF] login programmatically In-Reply-To: <20010426171700.F6854@lenin.jamkit.com> Message-ID: <20010426161414.24136.qmail@web1701.mail.yahoo.com> --- seb bacon wrote: > I need to log the user in as part of the the registration process, > rather than have them click a link at the end. I can't for the life > of me work out how to do this. Do I have to raise an Unauthorised > error in order to trigger the login mechanism? Can anyone help? > Not sure, but you could try doing a RESPONSE.redirect('the url you normally click on') at the end of the register method. This should work as the userid/password are passed as get parameters. Ivan ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From erickson@kaivo.com Thu Apr 26 17:21:39 2001 From: erickson@kaivo.com (Paul Erickson) Date: Thu, 26 Apr 2001 10:21:39 -0600 Subject: [Zope-CMF] login programmatically References: <20010426171700.F6854@lenin.jamkit.com> Message-ID: <3AE84B13.66DF100A@kaivo.com> I haven't done this recently, so no guarantees, but at one point I had done this with the following python code.: from base64 import encodestring . . . token='%s:%s' % (username, password) token=encodestring(token) token=quote(token) RESPONSE.setCookie('__ac', token, path='/') REQUEST['__ac']=token RESPONSE.redirect('Put the registration confirmation url here...') Good Luck -paul seb bacon wrote: > > I need to log the user in as part of the the registration process, > rather than have them click a link at the end. I can't for the life > of me work out how to do this. Do I have to raise an Unauthorised > error in order to trigger the login mechanism? Can anyone help? > > cheers, > > seb > > -- > > [] j a m k i t > > seb bacon > T: 020 7749 7218 > F: 020 7739 8683 > M: 07968 301 336 > W: www.jamkit.com > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests -- Paul Erickson | erickson@kaivo.com Kaivo, Inc. | www.kaivo.com From seb@jamkit.com Thu Apr 26 17:55:10 2001 From: seb@jamkit.com (seb bacon) Date: Thu, 26 Apr 2001 17:55:10 +0100 Subject: [Zope-CMF] login programmatically In-Reply-To: <20010426161414.24136.qmail@web1701.mail.yahoo.com>; from icornell@yahoo.com on Thu, Apr 26, 2001 at 05:14:14PM +0100 References: <20010426171700.F6854@lenin.jamkit.com> <20010426161414.24136.qmail@web1701.mail.yahoo.com> Message-ID: <20010426175509.A7170@lenin.jamkit.com> * Ivan Cornell [010426 18:15]: > > --- seb bacon wrote: > > I need to log the user in as part of the the registration process, > > rather than have them click a link at the end. I can't for the life > > of me work out how to do this. Do I have to raise an Unauthorised > > error in order to trigger the login mechanism? Can anyone help? > > > > Not sure, but you could try doing a RESPONSE.redirect('the url you > normally click on') at the end of the register method. This should work as > the userid/password are passed as get parameters. thanks for the idea, but it's not really what I need. I want to add some content using invokeFactory just after someone's registered, but since they're the Anonymous User it won't work. So I need to get them logged in right in the middle of a function, rather than at the end of the process. Or perhaps I shouldn't use invokeFactory, but it's so neat. cheers seb From marc@bowery.com Thu Apr 26 18:02:21 2001 From: marc@bowery.com (marc lindahl) Date: Thu, 26 Apr 2001 13:02:21 -0400 Subject: [Zope-CMF] login programmatically In-Reply-To: <20010426175509.A7170@lenin.jamkit.com> Message-ID: You know how, after you register, there's a page with a link to immediately log on? Perhaps you can take a look at that stuff, and use that link in your script to log the person on and proceed to do whatever... > From: seb bacon > Date: Thu, 26 Apr 2001 17:55:10 +0100 > To: Ivan Cornell > Cc: zope-cmf@zope.org > Subject: Re: [Zope-CMF] login programmatically > > * Ivan Cornell [010426 18:15]: >> >> --- seb bacon wrote: >>> I need to log the user in as part of the the registration process, >>> rather than have them click a link at the end. I can't for the life >>> of me work out how to do this. Do I have to raise an Unauthorised >>> error in order to trigger the login mechanism? Can anyone help? >>> >> >> Not sure, but you could try doing a RESPONSE.redirect('the url you >> normally click on') at the end of the register method. This should work as >> the userid/password are passed as get parameters. > > thanks for the idea, but it's not really what I need. I want to add > some content using invokeFactory just after someone's registered, but > since they're the Anonymous User it won't work. So I need to get them > logged in right in the middle of a function, rather than at the end of > the process. Or perhaps I shouldn't use invokeFactory, but it's so > neat. > > cheers > > seb > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From jens@digicool.com Thu Apr 26 18:32:57 2001 From: jens@digicool.com (Jens Vagelpohl) Date: Thu, 26 Apr 2001 13:32:57 -0400 Subject: [Zope-CMF] [ RFC ] Registration / Membership tool change Message-ID: hi everyone, we are planning to make a small change to the registration- and membership tools which is designed to shield the registration tool more from the underlying user storage implementation. this will make it a little easier to implement new membership frameworks with backends other than a standard zope user folder. right now the registration tool's "addMember" method makes two separate calls when a new user is created. It calls "addMember" on the membership tool and then retrieves the newly created member object in order to call "setMemberProperties" on it. the proposal is to remove the call to setMemberProperties from the registration tool and to make this call inside addMember on the membership tool instead. this necessitates passing all member properties into the membership tool addMember, which would be the only change to the interface. if anyone has done modifications to the membership system and has valid reasons why this change should not be made, please speak up! otherwise we will check the change into the CMF CVS trunk soon. jens From Dan.Rolander@marriott.com Thu Apr 26 20:20:08 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Thu, 26 Apr 2001 15:20:08 -0400 Subject: [Zope-CMF] Problem with Topics Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6538@mcnc-mdm1-ex01> 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_01C0CE85.E8203150 Content-Type: text/plain; charset="iso-8859-1" Hi, I've followed the instructions at http://cmf.zope.org/doc/admin/AddingTopicsToTheBeta/view for adding Topics to CMF 1.0, and I see Topic listed in the Add Content screen, but when I try to add a Topic I get an Unauthorized error, even though I'm trying this as a Manager and the security permissions look okay. From the URL it looks like it's choking on the invokeFactory method. Besides following the posted instructions, I also manually added the portal_types Topic properties and actions. I used addTopic for the factory method. Is this correct? I also tried topic_add and this gives me a KeyError for standard_html_header. Also, where do I find the other factory methods like addNewsItem? I can't find them. Do I have to go to the file system and look at the source? Can anyone help? Thanks, Dan ------_=_NextPart_001_01C0CE85.E8203150 Content-Type: text/html; charset="iso-8859-1"
Hi,
 
I've followed the instructions at http://cmf.zope.org/doc/admin/AddingTopicsToTheBeta/view for adding Topics to CMF 1.0, and I see Topic listed in the Add Content screen, but when I try to add a Topic I get an Unauthorized error, even though I'm trying this as a Manager and the security permissions look okay. From the URL it looks like it's choking on the invokeFactory method.
 
Besides following the posted instructions, I also manually added the portal_types Topic properties and actions. I used addTopic for the factory method. Is this correct? I also tried topic_add and this gives me a KeyError for standard_html_header.
 
Also, where do I find the other factory methods like addNewsItem? I can't find them. Do I have to go to the file system and look at the source?
 
Can anyone help?
 
Thanks,
Dan
 
------_=_NextPart_001_01C0CE85.E8203150-- From dieter@handshake.de Thu Apr 26 19:39:08 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 26 Apr 2001 20:39:08 +0200 (CEST) Subject: [Zope-CMF] Expanding menu In-Reply-To: <692225985@toto.iv> Message-ID: <15080.27468.637117.596843@lindm.dm> Yoke May Seow writes: > I want to create a menu that is expandable whenever I click on a link (e.g. > folder). I've tried using but is there a better way to do it? > > Currently, I've a folder that contains a few sub-folders. When i click on > the folder, the menu will be expandable and thus the sub-folders will > appear. The process should be dynamic, i.e. if I add new sub-folders in the > future, it'll automatically appear on the menu. It already does, when you refresh (i.e. reload) the menu. If you have a standard CMF setup (i.e. without frames), then any action with reload the (main) page and show a new (and updated) tree. With frames, you would need Javascript to refresh the menu frame. Dieter From Dan.Rolander@marriott.com Thu Apr 26 21:08:36 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Thu, 26 Apr 2001 16:08:36 -0400 Subject: [Zope-CMF] Problem with Topics Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6539@mcnc-mdm1-ex01> 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_01C0CE8C.AD6DC750 Content-Type: text/plain; charset="iso-8859-1" Never mind. I figured it out. I moved too quickly and didn't set the default type info. Oops. Dan -----Original Message----- From: Rolander, Dan [mailto:Dan.Rolander@marriott.com] Sent: Thursday, April 26, 2001 3:20 PM To: zope-cmf@zope.org Subject: [Zope-CMF] Problem with Topics Hi, I've followed the instructions at http://cmf.zope.org/doc/admin/AddingTopicsToTheBeta/view for adding Topics to CMF 1.0, and I see Topic listed in the Add Content screen, but when I try to add a Topic I get an Unauthorized error, even though I'm trying this as a Manager and the security permissions look okay. From the URL it looks like it's choking on the invokeFactory method. Besides following the posted instructions, I also manually added the portal_types Topic properties and actions. I used addTopic for the factory method. Is this correct? I also tried topic_add and this gives me a KeyError for standard_html_header. Also, where do I find the other factory methods like addNewsItem? I can't find them. Do I have to go to the file system and look at the source? Can anyone help? Thanks, Dan ------_=_NextPart_001_01C0CE8C.AD6DC750 Content-Type: text/html; charset="iso-8859-1"
Never mind. I figured it out. I moved too quickly and didn't set the default type info. Oops.
 
Dan
-----Original Message-----
From: Rolander, Dan [mailto:Dan.Rolander@marriott.com]
Sent: Thursday, April 26, 2001 3:20 PM
To: zope-cmf@zope.org
Subject: [Zope-CMF] Problem with Topics

Hi,
 
I've followed the instructions at http://cmf.zope.org/doc/admin/AddingTopicsToTheBeta/view for adding Topics to CMF 1.0, and I see Topic listed in the Add Content screen, but when I try to add a Topic I get an Unauthorized error, even though I'm trying this as a Manager and the security permissions look okay. From the URL it looks like it's choking on the invokeFactory method.
 
Besides following the posted instructions, I also manually added the portal_types Topic properties and actions. I used addTopic for the factory method. Is this correct? I also tried topic_add and this gives me a KeyError for standard_html_header.
 
Also, where do I find the other factory methods like addNewsItem? I can't find them. Do I have to go to the file system and look at the source?
 
Can anyone help?
 
Thanks,
Dan
 
------_=_NextPart_001_01C0CE8C.AD6DC750-- From Maarten Slaets Thu Apr 26 22:42:40 2001 From: Maarten Slaets (Maarten Slaets) Date: Thu, 26 Apr 2001 21:42:40 CET Subject: [Zope-CMF] Expanding menu Message-ID: <200104262042.f3QKge111334@neo1.neolabs.be> another posibility is the NFGnavigator: http://www.zope.org/Members/gyst/NFGnav but I have found that version 0.7 causes problems because of its use of objectItems, which doesnt work ok in cmf (why?) I can send you 0.6 which does work. If i find the time i will try to post a fix for 0.7 The nice thing about this tree menu instead of dtml-tree is that it doesnt use state vars in the url or ..., and it alsways folows you when you for example click on a link in the body that goes to another folder. then the menu adjust automatically to that folder On Thu, 26 Apr 2001 20:39:08 +0200 (CEST) Dieter Maurer wrote: > Yoke May Seow writes: > > I want to create a menu that is expandable whenever I click on a > link (e.g. > > folder). I've tried using but is there a better way to > do it? > > > > Currently, I've a folder that contains a few sub-folders. When i > click on > > the folder, the menu will be expandable and thus the sub-folders will > > appear. The process should be dynamic, i.e. if I add new > sub-folders in the > > future, it'll automatically appear on the menu. > It already does, when you refresh (i.e. reload) the menu. > > If you have a standard CMF setup (i.e. without frames), then > any action with reload the (main) page and show a new (and updated) > tree. With frames, you would need Javascript to refresh > the menu frame. > > > Dieter > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests NEOlabs - http://www.neolabs.be - mailto:info@neolabs.be From jeff@janix.com Thu Apr 26 22:37:48 2001 From: jeff@janix.com (Jeff Sasmor) Date: Thu, 26 Apr 2001 17:37:48 -0400 Subject: [Zope-CMF] New toy to try out Message-ID: <031101c0ce99$37c9bce0$1a931340@NETKOOK> I'd appreciate it if CMF users would try to break a new content-type (or maybe it's better called a CMF-Accessory) that I have running on the following URL: (a test-site) http://www.yellowbrain.com/ You can click the "Enter CMF portal" link, join, and create a weblog yourself. This is a preview, and although there is a help link, there isn't any help yet. I'm sure that most of you can figure out how to add a "Blark Weblog" in the usual way by clicking the Add button in your portal home folder. Please report bugs to me, I'd like to try to release a beta in a week or so. I'm sure there are some! I know that I need to poke around a bit to make some things work better in Netscape. Actually, different NS versions do different things wrong. Groan. I initially was trying to enter the "Create-A-Skin" contest and win a Tshirt, but a skin didn't seem to be enough for what I ended up doing. BTW, the "Blark" is totally skinnable, as far as I can tell. It subverts a little bit of the workflow and security that comes standard on the CMF, but doesn't affect anything outside of itself. One of my goals with this 'project' was to make something that could be dropped into a CMF site without having folks have to figure out some of the more confusing aspects of the CMF (which is a deep and wide thing). If it isn't obvious when you look at it, Blark is a weblog that can be created in any portal member's folder. Enjoy, Jeff Sasmor jeff@sasmor.com Check out http://www.naggle.com/ From briga@borland.com Thu Apr 26 23:39:08 2001 From: briga@borland.com (Ben Riga) Date: Thu, 26 Apr 2001 15:39:08 -0700 Subject: [Zope-CMF] New toy to try out In-Reply-To: <031101c0ce99$37c9bce0$1a931340@NETKOOK> Message-ID: Very slick! I especially like the way you can edit the metadata and the article itself at the same time. I find that I constantly go back and forth from one to the other in CMF. It worked pretty much flawlessly or at least it did what I expected every step of the way. I use IE6 so I couldn't test out any of the NS problems. I couldn't figure out what the department field was for. Also couldn't rate an article. Ben -----Original Message----- From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf Of Jeff Sasmor Sent: Thursday, April 26, 2001 2:38 PM To: zope-cmf@zope.org Subject: [Zope-CMF] New toy to try out I'd appreciate it if CMF users would try to break a new content-type (or maybe it's better called a CMF-Accessory) that I have running on the following URL: (a test-site) http://www.yellowbrain.com/ You can click the "Enter CMF portal" link, join, and create a weblog yourself. This is a preview, and although there is a help link, there isn't any help yet. I'm sure that most of you can figure out how to add a "Blark Weblog" in the usual way by clicking the Add button in your portal home folder. Please report bugs to me, I'd like to try to release a beta in a week or so. I'm sure there are some! I know that I need to poke around a bit to make some things work better in Netscape. Actually, different NS versions do different things wrong. Groan. I initially was trying to enter the "Create-A-Skin" contest and win a Tshirt, but a skin didn't seem to be enough for what I ended up doing. BTW, the "Blark" is totally skinnable, as far as I can tell. It subverts a little bit of the workflow and security that comes standard on the CMF, but doesn't affect anything outside of itself. One of my goals with this 'project' was to make something that could be dropped into a CMF site without having folks have to figure out some of the more confusing aspects of the CMF (which is a deep and wide thing). If it isn't obvious when you look at it, Blark is a weblog that can be created in any portal member's folder. Enjoy, Jeff Sasmor jeff@sasmor.com Check out http://www.naggle.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 shane@digicool.com Fri Apr 27 00:35:06 2001 From: shane@digicool.com (Shane Hathaway) Date: Thu, 26 Apr 2001 19:35:06 -0400 (EDT) Subject: [Zope-CMF] [ RFC ] Registration / Membership tool change In-Reply-To: <3AE8AE5F.EF16229E@digicool.com> Message-ID: On Thu, 26 Apr 2001, Shane Hathaway wrote: > Jens Vagelpohl wrote: > > the proposal is to remove the call to setMemberProperties from the > > registration tool and to make this call inside addMember on the membership > > tool instead. this necessitates passing all member properties into the > > membership tool addMember, which would be the only change to the interface. > > What is the motivation? > > Right now the membership tool is not aware of the existence of > portal_registration, similar to the way a database is not aware of the > applications that use it. This change would break that encapsulation. Oops, I guess it's been a long day. setProperties() would break encapsulation, but setMemberProperties() wouldn't. Just be careful to set up acquisition correctly--in the default implementation you should probably copy the current behavior. Shane From tseaver@digicool.com Fri Apr 27 02:16:06 2001 From: tseaver@digicool.com (Tres Seaver) Date: Thu, 26 Apr 2001 21:16:06 -0400 Subject: [Zope-CMF] New toy to try out References: <031101c0ce99$37c9bce0$1a931340@NETKOOK> Message-ID: <3AE8C856.A2AFF6E0@novacoxmail.com> Jeff Sasmor wrote: > > I'd appreciate it if CMF users would try to break a new content-type > (or maybe it's better called a CMF-Accessory) that I have running > on the following URL: (a test-site) > > http://www.yellowbrain.com/ > > You can click the > > "Enter CMF portal" link, join, and create a weblog yourself. > > This is a preview, and although there is a help link, there isn't any help > yet. I'm sure that most of you can figure out how to add a "Blark Weblog" > in the usual way by clicking the Add button in your portal home folder. > > Please report bugs to me, I'd like to try to release a beta in a week or so. > I'm sure there are some! I know that I need to poke around a bit to make > some things work better in Netscape. Actually, different NS versions do > different things wrong. Groan. > > I initially was trying to enter the "Create-A-Skin" contest and win a > Tshirt, but a skin didn't seem to be enough for what I ended up doing. > > BTW, the "Blark" is totally skinnable, as far as I can tell. It subverts > a little bit of the workflow and security that comes standard on the > CMF, but doesn't affect anything outside of itself. One of my goals with > this 'project' was to make something that could be dropped into a > CMF site without having folks have to figure out some of the more > confusing aspects of the CMF (which is a deep and wide thing). > > If it isn't obvious when you look at it, Blark is a weblog that can be > created in > any portal member's folder. Way cool, Jeff! I fiddled with it using Moz from work, and found that the "Blark Properties" view doesn't display at all in NS 4.75 from home. It looks like the next-to-outermost table is closed oddly::

Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From jvdveen@dds.nl Fri Apr 27 11:06:24 2001 From: jvdveen@dds.nl (jvdveen@dds.nl) Date: Fri, 27 Apr 2001 12:06:24 +0200 Subject: [Zope-CMF] Images Message-ID: <001901c0cf01$ba054b80$9600000a@ja> Hya all, Here is a question... Probbably a dumb one but never mind... If I add a news article I would like to add a image to it ... and I would like it to show up together with te title and Lead in Now my question is how to do this?? Thanx James From gitte@mmmanager.org Fri Apr 27 12:02:32 2001 From: gitte@mmmanager.org (Gitte Wange) Date: 27 Apr 2001 13:02:32 +0200 Subject: [Zope-CMF] Members unable to set their own properties Message-ID: <200104271058.MAA03422@phoenix.mmmanager.org> Hello, I have been fooling around in the permissions on my cmf site so my users aren't longer able to change the skin they are using. And when they login they page doesn't change. What property on the secutiry tab is it there must be checked for this to work ... ? Gitte From chrisw@nipltd.com Fri Apr 27 12:49:41 2001 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 27 Apr 2001 12:49:41 +0100 Subject: [Zope-CMF] New toy to try out References: <031101c0ce99$37c9bce0$1a931340@NETKOOK> Message-ID: <3AE95CD5.39336846@nipltd.com> Jeff Sasmor wrote: > > I'd appreciate it if CMF users would try to break a new content-type > (or maybe it's better called a CMF-Accessory) that I have running > on the following URL: (a test-site) > > http://www.yellowbrain.com/ This looks very cool... can't read articels right now though:

Resource not found

Sorry, the requested resource does not exist.

Check the URL and try again.

Good luck with the Beta :-) Chris From Dan.Rolander@marriott.com Fri Apr 27 14:13:36 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Fri, 27 Apr 2001 09:13:36 -0400 Subject: [Zope-CMF] New toy to try out Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF653C@mcnc-mdm1-ex01> Hi Jeff, I like this a lot and I can't wait for you to release it so that I can plug it in to my own site. I did notice one problem tho... When I click on a reply link to view the reply I get this error: Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Excellent job so far. Thanks! Dan -----Original Message----- From: Jeff Sasmor [mailto:jeff@janix.com] Sent: Thursday, April 26, 2001 5:38 PM To: zope-cmf@zope.org Subject: [Zope-CMF] New toy to try out I'd appreciate it if CMF users would try to break a new content-type (or maybe it's better called a CMF-Accessory) that I have running on the following URL: (a test-site) http://www.yellowbrain.com/ You can click the "Enter CMF portal" link, join, and create a weblog yourself. This is a preview, and although there is a help link, there isn't any help yet. I'm sure that most of you can figure out how to add a "Blark Weblog" in the usual way by clicking the Add button in your portal home folder. Please report bugs to me, I'd like to try to release a beta in a week or so. I'm sure there are some! I know that I need to poke around a bit to make some things work better in Netscape. Actually, different NS versions do different things wrong. Groan. I initially was trying to enter the "Create-A-Skin" contest and win a Tshirt, but a skin didn't seem to be enough for what I ended up doing. BTW, the "Blark" is totally skinnable, as far as I can tell. It subverts a little bit of the workflow and security that comes standard on the CMF, but doesn't affect anything outside of itself. One of my goals with this 'project' was to make something that could be dropped into a CMF site without having folks have to figure out some of the more confusing aspects of the CMF (which is a deep and wide thing). If it isn't obvious when you look at it, Blark is a weblog that can be created in any portal member's folder. Enjoy, Jeff Sasmor jeff@sasmor.com Check out http://www.naggle.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 Dan.Rolander@marriott.com Fri Apr 27 14:24:28 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Fri, 27 Apr 2001 09:24:28 -0400 Subject: [Zope-CMF] Able to find and read retracted discussion items Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF653D@mcnc-mdm1-ex01> 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_01C0CF1D.62EE9CE0 Content-Type: text/plain; charset="iso-8859-1" I noticed that in the 1.0 release, I am able to find and read news item replies that I had retracted, even as an anonymous user, by clicking the GO icon without entering any search text. Has this been reported before? Dan ------_=_NextPart_001_01C0CF1D.62EE9CE0 Content-Type: text/html; charset="iso-8859-1"

I noticed that in the 1.0 release, I am able to find and read news item replies that I had retracted, even as an anonymous user, by clicking the GO icon without entering any search text. Has this been reported before?
 
Dan
 
------_=_NextPart_001_01C0CF1D.62EE9CE0-- From scott.meilicke@intp.com Fri Apr 27 16:26:36 2001 From: scott.meilicke@intp.com (Meilicke, Scott) Date: Fri, 27 Apr 2001 08:26:36 -0700 Subject: [Zope-CMF] Images Message-ID: I'm very sure there are better ways than this, but here's how I do it: 1. Add the image I want 2. Add the news item I want In the lead in, add the appropriate HTML to display the image (I actually did this in the body - see links below). Note, the news box item on a default CMF doesn't render HTML, but it will get rendered when opening the news item itself. See http://www.kmclan.net/Members/smeilicke/parents/travels/20010421. If you go to just http://www.kmclan.net, it's the second news item in the news box. This probably isn't a good option if you have non HTML folks adding news, in which case you'll have to develop a form/method to add both items at once, and put the tag in automatically. Scott -----Original Message----- From: info@sjeems.nl [mailto:info@sjeems.nl] Sent: Friday, April 27, 2001 3:06 AM To: zope-cmf@zope.org Subject: [Zope-CMF] Images Hya all, Here is a question... Probbably a dumb one but never mind... If I add a news article I would like to add a image to it ... and I would like it to show up together with te title and Lead in Now my question is how to do this?? Thanx James _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From ivaldes@hal-pc.org Fri Apr 27 17:07:28 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Fri, 27 Apr 2001 11:07:28 -0500 Subject: [Zope-CMF] Automatic ID generation -- > Title Got it! References: <20010424095339.12458.qmail@web1705.mail.yahoo.com> <3AE6097D.8EFE888D@hal-pc.org> <3AE61E2A.A9CB0BC1@novacoxmail.com> Message-ID: <3AE99940.D8B7A78@hal-pc.org> Tres Seaver wrote: > Ignacio Valdes wrote: > > > Good one, I'll have to look at it some more later. My wife is > > having a baby. > > Congratulations and best wishes! > > Tres. Corazon Valdes gave birth to Luis Ignacio Valdes a 7lb 11oz. free medical software engineer on Wednesday the 25th at 5:00 am. Mother and child did fine, father required morphine. Pictures soon. -- IV From dominique.brocard@finances.gouv.fr Fri Apr 27 17:16:20 2001 From: dominique.brocard@finances.gouv.fr (dominique Brocard) Date: Fri, 27 Apr 2001 18:16:20 +0200 Subject: [Zope-CMF] install CMF product under zope/windows Message-ID: <3AE99B54.B766CD8E@finances.gouv.fr> Bonjour, I installed Zope on windows 2000, it is ok. I downloaded the zipped CMF1.0 , dezipped it, but I don't understand how to install it, I found an explanation only for unix, thanks for your help Dominique From Dan.Rolander@marriott.com Fri Apr 27 18:08:59 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Fri, 27 Apr 2001 13:08:59 -0400 Subject: [Zope-CMF] install CMF product under zope/windows Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF6541@mcnc-mdm1-ex01> Just copy or move the folders CMFCore, CMFDefault, and CMFTopic to your Products directory which should be under \lib\python\Products. Then restart Zope. After it comes back up you should be able to add a CMF Site. Good luck, Dan -----Original Message----- From: dominique Brocard [mailto:dominique.brocard@finances.gouv.fr] Sent: Friday, April 27, 2001 12:16 PM To: zope-cmf@zope.org Subject: [Zope-CMF] install CMF product under zope/windows Bonjour, I installed Zope on windows 2000, it is ok. I downloaded the zipped CMF1.0 , dezipped it, but I don't understand how to install it, I found an explanation only for unix, thanks for your help Dominique _______________________________________________ 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 mj@digicool.com Fri Apr 27 19:00:09 2001 From: mj@digicool.com (Martijn Pieters) Date: Fri, 27 Apr 2001 20:00:09 +0200 Subject: [Zope-CMF] Re: stylesheet_properties bug still? In-Reply-To: <3AE9ADC6.8D31C077@psychosis.com>; from dcinege@psychosis.com on Fri, Apr 27, 2001 at 01:35:02PM -0400 References: <3AE89E57.96D13D2F@psychosis.com> <3AE89F38.A3C426B7@psychosis.com> <20010427072358.A24025@zopatista.com> <3AE9ADC6.8D31C077@psychosis.com> Message-ID: <20010427200008.B32299@zopatista.com> [On the subject of a property sheet turning into Folder when you want to customize it] > > > Still doesn't look like it should be done this way though... > > > > It should be that way. The Folder is the easiest way to create an object > > that can manage properties in Zope. And as an added bonus, you can replace > > any property on the object with a method that calculates the property > > dynamically. > > OK, but what I mean is it's not he same as what is in the default (generic, > etc) folders. When you copy an apple to a folder, you expect to see an apple > in the folder. I'm looking at an orange, and it was confusing to me. > > The solution might be to make it appear as such a folder in the default > folders so they both have similar appearence and behavior. > > As I said I'm inexperienced with zope/cmf, so maybe I'm just offbase. I admit it looks confusing; I am not sure if the documentation is clear about this. For that I refer you back to the Zope-CMF list, which I CC-ed. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From rerla@channing.harvard.edu Fri Apr 27 22:00:20 2001 From: rerla@channing.harvard.edu (Ross Lazarus) Date: Fri, 27 Apr 2001 17:00:20 -0400 Subject: [Zope-CMF] current cvs - images (eg folder_icon.gif) broken? Patch. Message-ID: <3AE9DDE4.A09398F4@channing.harvard.edu> Is it just me or is there something broken about a new portal install using latest CVS? I just did a checkout, restart and erk...the folder icon images are busted. This line in portal_skins/generic/actions_box &dtml-typ; is very odd/broken. &dtml-typ; works much better. Same thing is broken in /portal_skins/generic/folder_contents it's in the tracker... -- Ross Lazarus, Visiting Associate Professor in Medicine, Channing Laboratory, 181 Longwood Ave., Boston MA 02115, USA. Fax: +617 525 0958, Office: +617 525 2730 From marc@bowery.com Fri Apr 27 23:19:35 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 27 Apr 2001 18:19:35 -0400 Subject: [Zope-CMF] how to include links for members with published index_html In-Reply-To: Message-ID: I'm stuck... Trying to figure out how to get roster.dtml to put live links for any user that has a ....Members/user/index_html page that is published. A logged on user (Member) can access any of these if they know the direct link, but for some reason getHomeUrl only validates the directory permission itself. I would think this makes enough sense for it to be deep somewhere, like in Membership.py: --------------- def getHomeFolder(self, id=None, verifyPermission=0): """Returns a member's home folder object.""" if id is None: member = self.getAuthenticatedMember() if not hasattr(member, 'getMemberId'): return None id = member.getMemberId() if hasattr(self, 'Members'): try: folder = self.Members[id] if verifyPermission and ((not _checkPermission('View', folder) \ or (not _checkPermission('View', folder.index_html))): # Don't return the folder if the user can't get to it. return None return folder except KeyError: pass return None --------------- But, barring that, I tried to do something similar in roster.dtml: -----------------
&dtml-id; &dtml-id; ------------------- That piece asks for a username/password, then if you cancel the dialog, it gives an 'Unauthorized' error. Seems it's evaluating homeFolder.index_html before calling SecurityCheckPermission -- doesn't that defeat the purpose somewhat? Perhaps I'm missing the way to really do this? I'd guess the python code of the first snippet would give the same error, didn't try it yet... From marc@bowery.com Fri Apr 27 23:38:40 2001 From: marc@bowery.com (marc lindahl) Date: Fri, 27 Apr 2001 18:38:40 -0400 Subject: [Zope-CMF] how to include links for members with published index_html In-Reply-To: Message-ID: ...ugly, but this works: roster.dtml
&dtml-id; &dtml-id; &dtml-id; ....comments? From ivaldes@hal-pc.org Sat Apr 28 00:21:46 2001 From: ivaldes@hal-pc.org (Ignacio Valdes) Date: Fri, 27 Apr 2001 18:21:46 -0500 Subject: [Zope-CMF] Background color change problem? Message-ID: <3AE9FF0A.8188FBAD@hal-pc.org> Hello all, I was trying to change the background color through the nouvelle stylesheet by trying to customize it into custom, but I get a big error when I simply hit customize and save, much less change any of the colors: Any solution? How would one change background colors if not by this method? -- IV Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-3-1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2-3-1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/zope/2-3-1/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/zope/2-3-1/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: index_html) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: standard_html_header) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: standard_html_header) File /usr/local/zope/2-3-1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 213, in __call__ (Object: css_inline_or_link) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: css_inline_or_link) File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: ag="REQUEST.get('HTTP_USER_AGENT', '')" do_inline_css="1" sheet="stylesheet_properties.select_stylesheet_id") File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval (Object: _[sheet]) (Info: sheet) File , line 0, in ? File /usr/local/zope/2-3-1/lib/python/DocumentTemplate/DT_Util.py, line 161, in careful_getitem KeyError: nouvelle_stylesheet From khine@btinternet.com Sat Apr 28 10:46:04 2001 From: khine@btinternet.com (Norman Khine) Date: Sat, 28 Apr 2001 10:46:04 +0100 Subject: [Zope-CMF] no mem for new parser Message-ID: Hello I just gort this error and the server crashed. My set up Zope version: Zope 2.3.2b2 (source release, python 1.5.2, linux2) Python version: 2.0 (#2, Jan 8 2001, 16:54:34) [GCC 2.95.2 19991024 (release)] System Platform: freebsd4 no mem for new parser Traceback (most recent call last): File "/usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/DirectoryView .py", line 198, in getContents Any suggestions will be most appreciated Norman /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:khine@o-a-l.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ From tseaver@digicool.com Sat Apr 28 15:56:04 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 28 Apr 2001 10:56:04 -0400 Subject: [Zope-CMF] no mem for new parser References: Message-ID: <3AEADA04.10D67C84@novacoxmail.com> Norman Khine wrote: > > Hello I just gort this error and the server crashed. > > My set up > Zope version: Zope 2.3.2b2 (source release, python 1.5.2, linux2) > Python version: 2.0 (#2, Jan 8 2001, 16:54:34) [GCC 2.95.2 19991024 > (release)] > System Platform: freebsd4 > > no mem for new parser > Traceback (most recent call last): > File > "/usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/DirectoryView > .py", line 198, in getContents > > Any suggestions will be most appreciated Hmm, the relevant bits of getContents are (both for CMF 1.0 and the head of the CVS repository):: # CMFCore/DirectoryView.py, line #97 try: self.data = data = self.prepareContents(registry, register_subdirs=changed) except: # DEBUG import traceback traceback.print_exc() I can't see how that code could *possibly* yield the traceback you post -- did you trim it at all? At any rate, that code is broken; having caught the exception in order to print it, it doesn't re-raise it. For the nonce, please try adding raise just below the last line of the snippet. I find that error message deep in the bowels of the Python 2.0 C source:: # $PYTHON_2/Parser/parsetok.c, line #81 static node * parsetok(struct tok_state *tok, grammar *g, int start , perrdetail *err_ret) { parser_state *ps; node *n; int started = 0; if ((ps = PyParser_New(g, start)) == NULL) { fprintf(stderr, "no mem for new parser\n"); err_ret->error = E_NOMEM; return NULL; } So, it looks like your system is running out of memory, but the DirectoryView suppresses the error, and hence you get a core dump. Please submit a tracker issue for this problem: http://www.zope.org/Products/PTK/Tracker Do note your version of Python on the issue -- that was most helpful for tracking down the source of the exception. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sat Apr 28 20:41:00 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 28 Apr 2001 15:41:00 -0400 (EDT) Subject: [Zope-CMF] no mem for new parser In-Reply-To: Message-ID: On Sat, 28 Apr 2001, Norman Khine wrote: > Thanks fo your reply, you say my system is running out of > memory, do you mean Hard Disk Space, RAM or what? I am with > iServer, and they have allocated me 400Mb of HDD and I have > only used about 150Mb -- I'll check though. The memory problem would be RAM -- I'm guessing that they have limited your Zope process to fixed ceiling on memory. > > I can also confirm that I have not done any changes to the > code. > > I also had this error on my screen > > 2001-04-28T15:40:43 ERROR(200) ZServer uncaptured python exception, closin > g channel (exceptions.MemoryError: > and on the zope I get this > > Error Type: MemoryError > Error Value: Out of memory while compressing data Both of these errors seem to indicate that Python is running out of memory while trying to load a FSPythonScript from a skins directory. > And then the server restarts. > > Can you confirm as to what you want me to do on the > DirectoryView.py file -- where the following lines are, which I > found on the file, > > if self.data is None or changed: > try: > self.data, self.objects = self.prepareContents(registry, > register_subdirs=changed) > except: > # DEBUG > import traceback > traceback.print_exc() > > self.data = {} > self.objects = () > return self.data, self.objects > > you want me to change it to: > > try: > self.data = data = self.prepareContents(registry, > register_subdirs=changed) > except: > # DEBUG > import traceback > traceback.print_exc() > > raise That is correct. In "normal" circumstances, setting the data to a newly-allocated empty dictionary on an exception is OK, but not in an out-of-memory situation. Come to think of it, this may not help either. Can you find out from your IPP if they have a limit on the process size, and if so, how small it is? If you hit this problem on startup, then you are likely to hit lots of other MemoryErrors during "normal" operation. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sun Apr 29 00:04:39 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sat, 28 Apr 2001 19:04:39 -0400 (EDT) Subject: [Zope-CMF] 'portal_metadata' tool in CVS Message-ID: For those not subscribed to the 'cmf-checkins' list, I have just checked in an initial implementation of my 'portal_metadata' proposal, found originally on the dogbowl: http://cmf.zope.org/rqmts/proposals/metadata_tool This tool allows the site manager to configure policies for each "writeable" Dublin Core element, with knobs for both "default" and type-specific settings. Remaining TODO's: * Wire up the construction methods to call 'setInitialMetadata' after creating new content objects. * Wire up metadata editing methods to call 'validateMetadata'. * Add knobs for configuring the metadata elements managed by the tool (currently hardwired to Title, Description, Subject, Format, Language, and Rights). * Add a view which allows configuration of all elements for a given type (currently, shows only "all types for a given element.") In the meanwhile, I'd ask the bold to play with this, and let me know how you feel about the ZMI UI, in particular. We have several tasks in hand which need to add / tweak ZMI interfaces for tools / content, so I'd like to know my approach is decent. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Sun Apr 29 19:09:03 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 29 Apr 2001 14:09:03 -0400 (EDT) Subject: [Zope-CMF] 'portal_metadata' tool in CVS In-Reply-To: Message-ID: On Sun, 29 Apr 2001, marc lindahl wrote: > Can you provide a link? There's none in the proposal.... Sorry, the tool is part of the standard CMFDefault product. Here are links to the relevant CVS files: http://cvs.zope.org/CMF/CMFCore/interfaces/portal_metadata.py http://cvs.zope.org/CMF/CMFDefault/MetadataTool.py http://cvs.zope.org/CMF/CMFDefault/dtml/metadataProperties.dtml http://cvs.zope.org/CMF/CMFDefault/dtml/metadataElementPolicies.dtml http://cvs.zope.org/CMF/CMFDefault/tests/test_MetadataTool.py or you could get them by doing 'cvs -q up -AdP' in your CMF CVS sandbox. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From marc@bowery.com Sun Apr 29 21:38:47 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 29 Apr 2001 16:38:47 -0400 Subject: [Zope-CMF] trouble with Factory Based Type Information tool In-Reply-To: Message-ID: I'm not understanding something, here, I think: My understanding of the FBTI is that you use it to 'wrap' Zope products for use in a portal. Pursuant to that, I though I'd make a 'CascadingFolder' portal_type, based on the CascadingFolder product. Should be simple enought, right? But I can't get it to show up in a portal members 'Add...' types list. Here's what I did, can someone see an error? 1. make new portal_type, based on portal_folder (actually, tried it with '(none)' also, same results. Call it CascadingFolder. 2. in portal_type/CascadingFolder/properties, change: Meta type to 'Cascading Folder' (to match meta_type in Cascade.py), Icon to 'cascade.gif' (just as in product), Product name to 'CascadingFolder', Factory method in product to 'addCascadingFolder' (gleaned by inspecting addCascadingFolderForm.dtml). 3. in CascadingFolder product 'Define Permissions' change: 'Create class instances' to 'Add portal folders', change 'Add CascadingFolders' to 'Add portal folders'. What's missing? From tseaver@digicool.com Sun Apr 29 22:12:42 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 29 Apr 2001 17:12:42 -0400 Subject: [Zope-CMF] trouble with Factory Based Type Information tool References: Message-ID: <3AEC83CA.A76A74E4@novacoxmail.com> marc lindahl wrote: > > I'm not understanding something, here, I think: > My understanding of the FBTI is that you use it to 'wrap' > Zope products for use in a portal. Pursuant to that, I > though I'd make a 'CascadingFolder' portal_type, based on > the CascadingFolder product. Should be simple enought, right? > But I can't get it to show up in a portal members 'Add...' > types list. I'm confused -- is this the ZMI's "Add..." dropdown? Or the list of content types in 'folder_factories'? Normally, members won't be able to see the ZMI, nor should they need to. > Here's what I did, can someone see an error? > > 1. make new portal_type, based on portal_folder (actually, > tried it with '(none)' also, same results. Call it > CascadingFolder. > > 2. in portal_type/CascadingFolder/properties, change: > Meta type to 'Cascading Folder' (to match meta_type > in Cascade.py), > Icon to 'cascade.gif' (just as in product), > Product name to 'CascadingFolder', > Factory method in product to 'addCascadingFolder' > (gleaned by inspecting addCascadingFolderForm.dtml). > > 3. in CascadingFolder product 'Define Permissions' change: > 'Create class instances' to 'Add portal folders', > change 'Add CascadingFolders' to 'Add portal folders'. > > What's missing? I looked for a CascadingFolder product on Zope.org, and didn't see it -- can you give a URL? Also, is this a filesystem-based product, or a TTW one? Your last step seems to imply a that CascadingFolder is a ZClass, but the second step seems to say that it is a filesystem product. To diagnose, try getting to the ZMI of your CMFSite, as manager, and edit the URL to show: .../CMFSite/manage_addProduct/Cascadingfolder/addCascadingFolder?id=foo If that works, try again as a non-privileged member, using the path to the member's "home" folder as the base. If that works, then the CMF is at fault; please let us know. If not, then you need to configure your CMFSite to allow the "Owner" role the "Add CascadingFolders" permission. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From khine@btinternet.com Sun Apr 29 23:29:57 2001 From: khine@btinternet.com (Norman Khine) Date: Sun, 29 Apr 2001 23:29:57 +0100 Subject: [Zope-CMF] Printable Page Message-ID: Hello, I am having troubles getting the printable skin to work correctly. All the main pages render correctly, but when I go onto an individual say news item and click on the printable linl I get the following error: Traceback (innermost last): File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/khine/usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line 173, in publish File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/HTTPResponse.py, line 302, in setBody File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/PortalContent.py, line 197, in asHTML (Object: DynamicType) File /usr/home/khine/usr/local/Zope/lib/python/Products/CMFCore/PortalContent.py, line 173, in _index_html (Object: DynamicType) File /usr/home/khine/usr/local/Zope/lib/python/OFS/Traversable.py, line 223, in restrictedTraverse (Object: DynamicType) File /usr/home/khine/usr/local/Zope/lib/python/OFS/Traversable.py, line 208, in unrestrictedTraverse (Object: DynamicType) AttributeError: (see above) Any idias, will be much appreciated Thanks Norman /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:khine@o-a-l.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ From marc@bowery.com Sun Apr 29 23:33:18 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 29 Apr 2001 18:33:18 -0400 Subject: [Zope-CMF] trouble with Factory Based Type Information tool In-Reply-To: <3AEC83CA.A76A74E4@novacoxmail.com> Message-ID: > marc lindahl wrote: >> >> I'm not understanding something, here, I think: >> My understanding of the FBTI is that you use it to 'wrap' >> Zope products for use in a portal. Pursuant to that, I >> though I'd make a 'CascadingFolder' portal_type, based on >> the CascadingFolder product. Should be simple enought, right? >> But I can't get it to show up in a portal members 'Add...' >> types list. > > I'm confused -- is this the ZMI's "Add..." dropdown? Or the > list of content types in 'folder_factories'? Normally, members > won't be able to see the ZMI, nor should they need to. Sorry, my bad... I meant 'New...' when a CMF portal member is viewing folder contents, for example. > > I looked for a CascadingFolder product on Zope.org, and didn't > see it -- can you give a URL? Also, is this a filesystem-based It's here: http://www.spoke.net/randy - it hasn't been submitted on the Zope site yet, Randy tells me. > product, or a TTW one? Your last step seems to imply a that > CascadingFolder is a ZClass, but the second step seems to say > that it is a filesystem product. It's a filesystem product. > > To diagnose, try getting to the ZMI of your CMFSite, as manager, > and edit the URL to show: > > .../CMFSite/manage_addProduct/Cascadingfolder/addCascadingFolder?id=foo > > If that works, try again as a non-privileged member, using the It didn't work... I get: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line 162, in publish File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/BaseRequest.py, line 340, in traverse File /usr/local/zope/Zope-2.3.1/lib/python/App/FactoryDispatcher.py, line 102, in __bobo_traverse__ File /usr/local/zope/Zope-2.3.1/lib/python/App/Product.py, line 135, in _product (Object: Traversable) AttributeError: CascadingFolder > path to the member's "home" folder as the base. If that works, > then the CMF is at fault; please let us know. If not, then you > need to configure your CMFSite to allow the "Owner" role the "Add > CascadingFolders" permission. > In the 'security' tab at the CMFSite root, I checked the box intersecting 'Add Cascading Folders' and 'Owner' -- no change. All the while, I'm logged in as the zope admin... From tseaver@digicool.com Mon Apr 30 02:03:41 2001 From: tseaver@digicool.com (Tres Seaver) Date: Sun, 29 Apr 2001 21:03:41 -0400 Subject: [Zope-CMF] trouble with Factory Based Type Information tool References: Message-ID: <3AECB9ED.A981C9A0@novacoxmail.com> marc lindahl wrote: > > [I wrote] > > > > I looked for a CascadingFolder product on Zope.org, and didn't > > see it -- can you give a URL? Also, is this a filesystem-based > > It's here: http://www.spoke.net/randy - it hasn't been submitted > on the Zope site yet, Randy tells me. OK, I've downloaded and installed it. > > > marc lindahl wrote (initial message): > > > 2. in portal_type/CascadingFolder/properties, change: > > > Meta type to 'Cascading Folder' (to match meta_type > > > in Cascade.py), > > > Icon to 'cascade.gif' (just as in product), > > > Product name to 'CascadingFolder', This should be 'CascadingFolders', as I found when I tried your recipe. I can now create one through the 'folder_factories' view, but can't do much with it directly, as the '__getattr__' games it plays conflict with the way skins work. Some-pigs-are-more-equal-than-others'ly, Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From marc@bowery.com Mon Apr 30 03:18:59 2001 From: marc@bowery.com (marc lindahl) Date: Sun, 29 Apr 2001 22:18:59 -0400 Subject: [Zope-CMF] trouble with Factory Based Type Information tool In-Reply-To: <3AECB9ED.A981C9A0@novacoxmail.com> Message-ID: > This should be 'CascadingFolders', as I found when I tried your > recipe. I can now create one through the 'folder_factories' view, "A typo??"... he asked, staring blankly at a pile of his own hair :) > but can't do much with it directly, as the '__getattr__' games it > plays conflict with the way skins work. Yeah, that's wierd, it's recursively messed up! Anyway, as far as the 'recipe' goes, is it valid? I'm thinking either I did something redundant or overbroad, with the permission business. Thanks, MArc From jens@dataflake.org Mon Apr 30 03:44:44 2001 From: jens@dataflake.org (Jens Vagelpohl) Date: Sun, 29 Apr 2001 22:44:44 -0400 Subject: [Zope-CMF] [ANN] CMFLDAP product released Message-ID: hi everybody, CMFLDAP is a standalone python product which replaces the membership tools in the CMF with LDAP-backend-compatible implementations. In order to work with an LDAP server it uses the services exposed by the LDAPLoginAdapter (http://www.dataflake.org/software/ldaploginadapter) and the LDAPUserManager (http://www.dataflake.org/software/ldapusermanager) products. **Important note** The minimum software requirements for this product combo are as follows: o Zope 2.3.0 or higher o a CMF CVS checkout or release after 4/27/01 o LDAPLoginAdapter 1.4beta3 or higher o LDAPUserManager 1.1beta2 or higher You can view some of the documentation and download the software at http://www.dataflake.org/software/cmfldap/. A Tracker at that same address allows you to easily file bug reports or feature requests for this product. jens From webmaster@saturn.deanza.fhda.edu Mon Apr 30 05:30:34 2001 From: webmaster@saturn.deanza.fhda.edu (Jason Wehmhoener) Date: Sun, 29 Apr 2001 21:30:34 -0700 Subject: [Zope-CMF] portal_workflow.getInfoFor Message-ID: I would have thought that this code would display the title and the status of each item in a folder, but for some reason the status never gets printed. Any idea what I'm doing wrong?
Status:
Thanks, Jason From gitte@mmmanager.org Mon Apr 30 09:45:29 2001 From: gitte@mmmanager.org (Gitte Wange) Date: Mon, 30 Apr 2001 10:45:29 +0200 Subject: [Zope-CMF] KeyError in ExtFile (CMFOptions) Message-ID: <01043010452901.02938@squidbitch.mmmanager.org> Hello, I want to use the CMFOptions so I can upload files to the filesystem. But when I try to add an external file I get the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: id Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable id. 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-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: CatalogAware) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: CMFExtFile_edit_form) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: CMFExtFile_edit_form) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218, in __call__ (Object: CMFExtFile_edit_form) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: CMFExtFile_edit_form) File /usr/local/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_Var.py, line 276, in render (Object: id) KeyError: (see above) Anyone who have had this error and know how to fix it ? From khine@bmpublications.co.uk Mon Apr 30 11:20:01 2001 From: khine@bmpublications.co.uk (Norman Khine) Date: Mon, 30 Apr 2001 11:20:01 +0100 Subject: [Zope-CMF] Printable Skin -- HELP Message-ID: Hello, I am having difficulty in setting up the printable skin option. I have copmpleted the How-to from http://cmf.zope.org/Members/jshell/News/PrintablePage/view and ALL seemed to be working fine, until I created a new member and then let this user add a news item with id=news1. I then oppened a new browser window and loged in on to the portal, there I can see the new item which I just published and if I go to this item it displays correctly. BUT when I go to the printable link I get an error as follows Cannot locate object at: http://localhost:8080/LGN/Portal/Members/lorraine/news1/index_html So from this I can see that it is looking for an object within a news1 folder, but it should be looking for http://localhost:8080/LGN/Portal/Members/lorraine/news1/view?=portal_skin=Pr intable I think ;^o My questio is what do I need to add so that I can display each individual Item in the printable screen, I have set in the standard_top_bar the link as discussed in the tutorial: "It's default value is portal_skin. This is what is looked up in the REQUEST to find the skin (and if it's not found, a cookie, member data, and then the default skin settings are used to determine which skin to use). The link (try skinning into the custom skin) can be as simple as something like:" print What is the syntax that needs to be replaced so that I can view each member's document in the printable skin. Thanks Norman ========================================= "Eternity is Time Time, eternity To see the two as opposite Is Man's Perversity" The Book of Angelus Silesius From tseaver@digicool.com Mon Apr 30 12:32:42 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 30 Apr 2001 07:32:42 -0400 (EDT) Subject: [Zope-CMF] Re: collaboration/cmf & breaking down the walls In-Reply-To: <001801c0d13e$fb1e7a30$1701640a@pythonic> Message-ID: On Mon, 30 Apr 2001, alan runyan wrote: > how do they go abotu doing this in the CMF? it seems that the > CMF works very well when it comes to adding autonomous 'content > objects' that need to be put through some sort of process, > workflow - what have you and then be published through some > type of 'view' (which programatically renders them). This > still makes for akward collobration when you have a branch of > documentation > > /products/servers/monitoring/monitor2000 > /products/servers/monitoring/krad-sniffer2001 > /products/servers/monitoring/hax0r-tracker3000 > > instead of simply having html in these places you are going to > have a content object 'product' with sub-product being > 'servers' and the subject/type being 'monitoring' and then the > id or title of the product, 'hax0r-tracker3000' so 3 people > want to colloborate on this: designers/programmer/manager. it > cant easily be done unless you ahve the traditional ZOPE > interface where we can have /Products/Servers/Monitoring folder > and have different content in the folder. people can see them, > the designer can upload images to the /images/products/server > directory and the programmer can program, and the PHB can click > on each one and browse each one. > > how does this break down in the CMF model? it appears that > most things end up being /Members/tseaver/monitor2000 and > /Members/runyaga/krad-sniffer2001 ? it seems akward to me. You can address this two ways under the CMF: - Give members with particular roles the right to create content in '/products/servers/monitoring' (giving them 'Owner' local role there would be simplest). They will then be able to see the 'folder_contents' action when viewing the folder, etc. This is simple, given a zenful site manager - Set up your workflow so that objects get moved out of their member folders and into the "right" location as part of the approval process. The 'portal_workflow' interface actually contemplates this, along with the notion that the permission settings / ownership for the object may change during a workflow transition. This requires programming, but may be very appealing for some kinds of implementations. > I havent done an implementation of CMF so I dont know if this > is a problem but I think its a conceptual hurdle laymen would > have to possibly overcome -- lets break down the walls. > > ---which leads me to breaking down the walls --- > > I am on a crusade in Houston, TX. to convert the Designer > Mindset into ZOPE. I am attending weekly events held by the > two art director associations and hand out CMF/ZOPE slicks - > digicoo.com/Products. I did it last Friday and I believe it > was a success. I have a designer working very closely with me > on the CMF and he sees it as a being a path of least > resistenance to empower him to give his clients the ability to > update their websites. SQL/RDBMS/Programming is out of the > question for designers - especially the indepedant designer. > CMF is a really good point of reference (although having a > .props file that contains variables that the stylesheet.dtml > file renders -- i believe is a bit over-engineered). I think > the lay man and designer needs to be targeted with CMF. The properties file is intended to allow customization by people who *don't know CSS*, and don't want to. The distinction you are drawing between designers and programmers needs another: "content" people are neither, and are the primary audience of the CMF. See: http://cmf.zope.org/Members/tseaver/lions_den > CMF has a very powerful notion of 'skins'. Skins are the > interface(s) of the content mgmt system. Skins are the only > things designers need to customize in the CMF to give a client > a really impressive website. It comes stock with quite a bit > of 'content types' (although it would be nice maybe to have a > 'Active' on the types so they could go in there and 'disable' > content types for clients who have no need to add images, I am > not a big fan of deleting things out of default installs) Changing the name of the factory method to something non-existent will have this effect. Patches accepted for a slicker approach, of course. :) > and I > believe the independant web house has quite a bit to benefit > from the CMF, as it stands. There just needs to be a crusade > of awareness and non-geek documentation to get people > interested. > > I am working w/ a designer to put together a skin, 'cluetrain' > skin, and hopefully it will be done by the time I goto Jazzfest > Thursday. There is a gap, a wall that needs to be broken down > for there to be widespread acceptance to designers. A start > would be making the CMF site prettier ;) -- also finding a few > design firms to champion the CMF cause doesnt hurt. I met a > guy from a international design firm and am going to try to > convince them to help polish things up -- most designers are > jazzed about the Open-source philosophy, but dont want to hear > about 'types-tools' and other 'techie' mumbo jumbo (or rather > want the option to filter it out). From my sitdowns over the > past 2 weeks, people are *extremely* interested in ZOPE. > > - has a low entry point ( aka 'low fuck with it factor' ) - > just d/l and double click on install. (please make ZServer OOTB > on port 80) - to be expected from a good product ZServer won't run on port 80 OOTB by default; perhaps someone will submit a patch to the installer to make that a promptable option. :) > - ZMI - is fairly intuitive. but as Emerald Lagasse says, we > need to 'take it to another level' (? i havent seen the show > in awhile) - bearable > > - being able to put a ZOPE on CD (which doesnt get enough > press) - exciting > > - CMF - let the designer skin/let the programmer script (not a > consistent metaphor, in the XP sense) - very exciting > > - PageTemplates or rather how I explained them (which I dont > know if its correct;) - very very exciting > > if anyone in houston is working w/ the CMF and wants to help me > put on a ZOPE/CMF seminar please get in touch with me. > > trying to bridge the designer gap, Thanks for your efforts, and for excellent feedback! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Mon Apr 30 12:37:34 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 30 Apr 2001 07:37:34 -0400 (EDT) Subject: [Zope-CMF] trouble with Factory Based Type Information tool In-Reply-To: Message-ID: On Sun, 29 Apr 2001, marc lindahl wrote: > > This should be 'CascadingFolders', as I found when I tried > > your recipe. I can now create one through the > > 'folder_factories' view, > > "A typo??"... he asked, staring blankly at a pile of his own > hair :) > > > but can't do much with it directly, as the '__getattr__' > > games it plays conflict with the way skins work. > > Yeah, that's wierd, it's recursively messed up! > > Anyway, as far as the 'recipe' goes, is it valid? Yep: FactoryBasedTypeInformation objects need, at a minimum: - ID - Metatype - Product name - Factory method name Except for the typo, this is what you tried first. > I'm thinking > either I did something redundant or overbroad, with the > permission business. The product supplies a permission, 'Add CascadingFolder' (or whatever), as part of the 'registerClass' call; you need to be sure that the roles which should add such products have that permission, is all. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Mon Apr 30 13:14:07 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 30 Apr 2001 13:14:07 +0100 Subject: [Zope-CMF] Re: collaboration/cmf & breaking down the walls References: Message-ID: <3AED570F.198995E1@nipltd.com> Tres Seaver wrote: > > http://cmf.zope.org/Members/tseaver/lions_den Erk... Resource Not Found :-S cheers, Chris From tseaver@digicool.com Mon Apr 30 12:56:43 2001 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 30 Apr 2001 07:56:43 -0400 (EDT) Subject: [Zope-CMF] Re: collaboration/cmf & breaking down the walls In-Reply-To: <3AED570F.198995E1@nipltd.com> Message-ID: On Mon, 30 Apr 2001, Chris Withers wrote: > Tres Seaver wrote: > > > > http://cmf.zope.org/Members/tseaver/lions_den > > Erk... Resource Not Found :-S But of course! I have confused myself with my evil twin. The correct URL is: http://cmf.zope.org/Members/tres/lions_den Don't-cross-the-streams'ly, Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Mon Apr 30 13:30:11 2001 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 30 Apr 2001 13:30:11 +0100 Subject: [Zope-CMF] Re: collaboration/cmf & breaking down the walls References: Message-ID: <3AED5AD3.F3098855@nipltd.com> Tres Seaver wrote: > > Don't-cross-the-streams'ly, Yes Tim ;-) Chris From Allen.Vailliencourt@channelmaxinc.com Mon Apr 30 14:44:52 2001 From: Allen.Vailliencourt@channelmaxinc.com (Allen.Vailliencourt@channelmaxinc.com) Date: Mon, 30 Apr 2001 09:44:52 -0400 Subject: [Zope-CMF] Who's using CFM Live? Message-ID: I just started playing with the CFM 1.0 module and am impressed with it so far. It's a great alternative to Interwoven or Documentum (and it's cost is unbeatable :) ). My question to you folk is who is using Zope and the CFM stuff on a live site (besides the actualy Zope sites). Any businesses using this? I'm looking into using this for our Intranet right now as it's a beaast and is currently being redesigned. If all goes well I might port it to our external corporate websites (www.scansource.com and www.channelmaxinc.com). I've been trying to do some 'net searching to find any corporate examples but haven't seen a whole lot with the exception of the sites listed on Zope.org. thanks again. ~Allen From Dan.Rolander@marriott.com Mon Apr 30 15:29:03 2001 From: Dan.Rolander@marriott.com (Rolander, Dan) Date: Mon, 30 Apr 2001 10:29:03 -0400 Subject: [Zope-CMF] how to include links for members with published in dex_html Message-ID: <6176E3D8E36FD111B58900805FA7E0F80CCF654C@mcnc-mdm1-ex01> I just customized roster and only changed the verifyPermission value from 1 to 0. A user still has to be logged in to see the roster, but once logged in all of the listed links are live. -----Original Message----- From: marc lindahl [mailto:marc@bowery.com] Sent: Friday, April 27, 2001 6:39 PM To: zope-cmf@zope.org Subject: Re: [Zope-CMF] how to include links for members with published index_html ...ugly, but this works: roster.dtml
&dtml-id; &dtml-id; &dtml-id; ....comments? _______________________________________________ Zope-CMF maillist - Zope-CMF@zope.org http://lists.zope.org/mailman/listinfo/zope-cmf See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From jeff@janix.com Mon Apr 30 17:21:06 2001 From: jeff@janix.com (Jeff Sasmor) Date: Mon, 30 Apr 2001 12:21:06 -0400 Subject: [Zope-CMF] From the 'So close but so far' Department Message-ID: <00e901c0d191$a5bec560$1a931340@NETKOOK> While trying to debug my "Blark" product I periodically run into the following error when trying to create a new posting. Once it occurs, it continues to occur (that is, trying to create a new posting produces the same message) until Zope is restarted or the Blark product is restarted (using the nifty Refresh product). Adding a Document from the Add Content page works fine even while the state is 'stuck' in InvalidObjectRefrence . I looked in the source but it's beyond my Zope Zen by a wide margin. Anyone have any idea what this means? I am using Zope 2.3.2 b2. I don't see anything that was changed in the 2.3.2 final that would impact this (whatever the &%*^% it is). ---------------------------------------------------------------------------- ------------- Error Type: InvalidObjectReference Error Value: Attempt to store an object from a foreign database connection Traceback (innermost last): File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/YB-Z232b2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/YB-Z232b2/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/YB-Z232b2/lib/python/ZODB/Transaction.py, line 300, in commit File /usr/local/YB-Z232b2/lib/python/ZODB/Connection.py, line 375, in commit (Info: (('Products.CMFDefault.Document', 'Document'), '\000\000\000\000\000\000\'e', '')) InvalidObjectReference: (see above) ---------------------------------------------------------------------------- ------------------ Jeff Sasmor jeff@sasmor.com Check out http://www.naggle.com/ From marc@bowery.com Mon Apr 30 18:13:21 2001 From: marc@bowery.com (marc lindahl) Date: Mon, 30 Apr 2001 13:13:21 -0400 Subject: [Zope-CMF] how to include links for members with published in dex_html In-Reply-To: <6176E3D8E36FD111B58900805FA7E0F80CCF654C@mcnc-mdm1-ex01> Message-ID: The thing with that method is, you get live links that will give you permission errors when clicked - I tried that. If the user's index_html is still private, you get a permission error. I wanted the links to be only live if they are followable. > From: "Rolander, Dan" > Date: Mon, 30 Apr 2001 10:29:03 -0400 > To: 'marc lindahl' , zope-cmf@zope.org > Subject: RE: [Zope-CMF] how to include links for members with published in > dex_html > > I just customized roster and only changed the verifyPermission value from 1 > to 0. A user still has to be logged in to see the roster, but once logged in > all of the listed links are live. > > > > > -----Original Message----- > From: marc lindahl [mailto:marc@bowery.com] > Sent: Friday, April 27, 2001 6:39 PM > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] how to include links for members with published > index_html > > > ...ugly, but this works: > > roster.dtml > > > > > >
> > _.SecurityValidateValue(homeFolder)"> > &dtml-id; > > &dtml-id; > > > &dtml-id; > > > > > > > ....comments? > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > requests From webmaster@saturn.deanza.fhda.edu Mon Apr 30 18:58:07 2001 From: webmaster@saturn.deanza.fhda.edu (Jason Wehmhoener) Date: Mon, 30 Apr 2001 10:58:07 -0700 Subject: [Zope-CMF] RE: [Zope-CMF][Help!] how to include links for members with published index_html In-Reply-To: Message-ID: I noticed when I customized standard_html_header to include the code that folder_contents uses to display the folder contents, that anonymous users could then view all documents whether they were published or not. I believe I'm going to need to use portal_workflow.getInfoFor somehow to check to see if each document is published before I display a link to it, but I'm having a hard time puzzling this out: > getInfoFor(ob, name, default, wf_id=None, *args, **kw): > > Invoked by user interface code. Allows the user to request information provided > by the workflow. The workflow object must perform its own security checks. What do the attributes mean? How are they to be used? I would have thought that the following code would display the title and the status of each item in a folder, but for some reason the status never gets printed.
Status:
Any idea what I'm doing wrong? Also, there's the deeper issue that I am never getting any kind of permission error when trying to view documents as an anonymous user. Why is that?! Thanks, Jason > -----Original Message----- > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf > Of marc lindahl > Sent: Monday, April 30, 2001 10:13 AM > To: zope-cmf@zope.org > Subject: Re: [Zope-CMF] how to include links for members with published > index_html > > > The thing with that method is, you get live links that will give you > permission errors when clicked - I tried that. If the user's > index_html is > still private, you get a permission error. I wanted the links to be only > live if they are followable. > > > From: "Rolander, Dan" > > Date: Mon, 30 Apr 2001 10:29:03 -0400 > > To: 'marc lindahl' , zope-cmf@zope.org > > Subject: RE: [Zope-CMF] how to include links for members with > published in > > dex_html > > > > I just customized roster and only changed the verifyPermission > value from 1 > > to 0. A user still has to be logged in to see the roster, but > once logged in > > all of the listed links are live. > > > > > > > > > > -----Original Message----- > > From: marc lindahl [mailto:marc@bowery.com] > > Sent: Friday, April 27, 2001 6:39 PM > > To: zope-cmf@zope.org > > Subject: Re: [Zope-CMF] how to include links for members with published > > index_html > > > > > > ...ugly, but this works: > > > > roster.dtml > > > > > > > > > > > >
> > > > > _.SecurityValidateValue(homeFolder)"> > > &dtml-id; > > > > &dtml-id; > > > > > > &dtml-id; > > > > > > > > > > > > > > ....comments? > > > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > > requests > > > > _______________________________________________ > > Zope-CMF maillist - Zope-CMF@zope.org > > http://lists.zope.org/mailman/listinfo/zope-cmf > > > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature > > requests > > > _______________________________________________ > Zope-CMF maillist - Zope-CMF@zope.org > http://lists.zope.org/mailman/listinfo/zope-cmf > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests From chrism@digicool.com Mon Apr 30 23:42:05 2001 From: chrism@digicool.com (Chris McDonough) Date: Mon, 30 Apr 2001 18:42:05 -0400 Subject: [Zope-CMF] From the 'So close but so far' Department References: <00e901c0d191$a5bec560$1a931340@NETKOOK> Message-ID: <3AEDEA3D.F98FC92F@digicool.com> Hi Jeff, Are you using a mounted database by any chance? Jeff Sasmor wrote: > > While trying to debug my "Blark" product I periodically run into the > following error when trying to create a new posting. Once it occurs, > it continues to occur (that is, trying to create a new posting produces the > same message) until Zope is restarted or the Blark product is restarted > (using the nifty Refresh product). Adding a Document from the > Add Content page works fine even while the state is 'stuck' in > InvalidObjectRefrence . > > I looked in the source but it's beyond my Zope Zen by a wide margin. > Anyone have any idea what this means? I am using Zope 2.3.2 b2. > I don't see anything that was changed in the 2.3.2 final that would > impact this (whatever the &%*^% it is). > > ---------------------------------------------------------------------------- > ------------- > Error Type: InvalidObjectReference > Error Value: Attempt to store an object from a foreign database connection > > Traceback (innermost last): > File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 223, in > publish_module > File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/YB-Z232b2/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/local/YB-Z232b2/lib/python/ZPublisher/Publish.py, line 175, in > publish > File /usr/local/YB-Z232b2/lib/python/Zope/__init__.py, line 235, in commit > File /usr/local/YB-Z232b2/lib/python/ZODB/Transaction.py, line 300, in > commit > File /usr/local/YB-Z232b2/lib/python/ZODB/Connection.py, line 375, in > commit > (Info: (('Products.CMFDefault.Document', 'Document'), > '\000\000\000\000\000\000\'e', '')) > InvalidObjectReference: (see above) > > ---------------------------------------------------------------------------- > ------------------ > > Jeff Sasmor > jeff@sasmor.com > Check out http://www.naggle.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