From phil.harris@zope.co.uk Fri Sep 1 00:25:36 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 1 Sep 2000 00:25:36 +0100 Subject: [Zope-PTK] Win32 Binary for zPatterns 0.4.2a1 available Message-ID: <00bd01c013a2$c549ed40$f899bcd4@harrisf4scs8le> This is a multi-part message in MIME format. ------=_NextPart_000_00BA_01C013AB.2602FFC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To whoever is interested: The win32 binary for DynPersist.pyd is now available from: http://yyy.zope.org/Members/philh hth Phil phil.harris@zope.co.uk ------=_NextPart_000_00BA_01C013AB.2602FFC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
To whoever is interested:
 
The win32 binary for DynPersist.pyd is = now=20 available from:
 
http://yyy.zope.org/Members/ph= ilh
 
hth
 
Phil
phil.harris@zope.co.uk<= /DIV>
 
------=_NextPart_000_00BA_01C013AB.2602FFC0-- From webmaven@lvcm.com Fri Sep 1 02:33:47 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Thu, 31 Aug 2000 18:33:47 -0700 Subject: [Zope-PTK] Integrating Portal ToolKit and NTUserfolder References: <8EE756E49A17D21194860008C7F49AFE0452909F@TWRMSG01> Message-ID: <39AF077B.ADD99CCB@lvcm.com> neeloy_saha wrote: > > Hi all, > > I am having problems installing NTUserFolder in the portal that I have > created. I want to validate against my NT domain name. > I have done the following steps :- > > well while installing NTUserFolder i have done the following steps :- > > [steps snipped] > > I found that u have given some steps for integrating login manager and samba > is given in tres's page but it did not help me much!! as I am a zope and > python newbie. Ok, the first question I have is what platform you are deploying your Zope server on? NTUserfolder and jcNTUserFolder are meant to be used on an NT platform, but the SMBUserFolder and the SMB/LoginManager Howto are meant to be used on a Unix platform to authenticate off of an NT PDC. Michael Bernstein. From luis.mateos@MatraNortel.com Fri Sep 1 09:37:59 2000 From: luis.mateos@MatraNortel.com (Mateos, Luis) Date: Fri, 1 Sep 2000 10:37:59 +0200 Subject: [Zope-PTK] Multiple Member Folders Message-ID: <200009010852.KAA03363@jupiter.matranortel.com> Hello all! Can the member create multiple folders inside his/her member folder to organize his/her stuff? Thanks, Luis From chrisw@nipltd.com Fri Sep 1 10:55:59 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 10:55:59 +0100 Subject: [Zope-PTK] No idea :( References: <20000829225954.9307.qmail@mail.cecosi.com.sv> <39AD3717.950D8AED@nipltd.com> <20000830170240.14672.qmail@mail.cecosi.com.sv> <39AE4506.30248CB8@nipltd.com> <20000831222611.28096.qmail@mail.cecosi.com.sv> Message-ID: <39AF7D2F.3742D005@nipltd.com> Francisco Monge wrote: > Zope Error > Zope has encountered an error while publishing this > resource. > > Error Type: AttributeError > Error Value: __call__ > > What could it be? Sorry, now I am totally lost ;-) Chris From tina@cegbiz.com Fri Sep 1 17:39:23 2000 From: tina@cegbiz.com (Tina Sawyer) Date: Fri, 1 Sep 2000 09:39:23 -0700 Subject: [Zope-PTK] RE: Undeliverable Mail In-Reply-To: <10009010909.AA02224@mail.cegbiz.com> Message-ID: Greetings, I am having a very hard time trying to get help on this issue. I am prepared to accept the flames but I don't know where to go ask this question. So if anyone can point me in the right direction it would be greatly appreciated. Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 I could not get zope to run as a pcgi. So.. I set up a Linux server using Redhat version 6.2, running apache and I still cannot get zope to run as a pcgi. Any thoughts on this? Sorry to bother you. Thanks for listening, Tina Brown From kayeva@hotmail.com Fri Sep 1 19:17:54 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 01 Sep 2000 18:17:54 GMT Subject: [Zope-PTK] RE: Undeliverable Mail Message-ID: Hi, Apparently, you did not know about ZDP, the Zope Documentation Portal. It allows you to get in a portal according to your level of expertise / domains of interest (this is called a Portal but it is a specific concept actually), and from there you can see information that has been cataloged from ZDP, or access usefull predefined searches. Check http://zdp.zope.org and http://zdp.zope.org/portals/administrators/installation Rgds Kamon >From: "Tina Sawyer" >To: >Subject: [Zope-PTK] RE: Undeliverable Mail >Date: Fri, 1 Sep 2000 09:39:23 -0700 > > > >Greetings, >I am having a very hard time trying to get help on this issue. >I am prepared to accept the flames but I don't know where to go ask this >question. So if anyone can point me in the right direction it would be >greatly appreciated. > >Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 >I could not get zope to run as a pcgi. So.. I set up a Linux server using >Redhat version 6.2, running apache and I still cannot get zope to run as a >pcgi. Any thoughts on this? > > >Sorry to bother you. > >Thanks for listening, >Tina Brown > > > > >_______________________________________________ >Zope-PTK maillist - Zope-PTK@zope.org >http://lists.zope.org/mailman/listinfo/zope-ptk > >See http://www.zope.org/Products/PTK/Tracker for bug reports and feature >requests > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From gryser@cgx.ch Sat Sep 2 16:41:46 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Sat, 2 Sep 2000 17:41:46 +0200 Subject: [Zope-PTK] Can't Create Portal Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_014D_01C01505.10CC5420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have exactly the same problem as found in an email from Brent A. Nielson Aug 20. But my problem is I can't find the file in which I should make the changes. It is mentioned the PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and have still a long way in front of me to master this biest. Thanks for help Gottfried Ryser ------=_NextPart_000_014D_01C01505.10CC5420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have = exactly the=20 same problem as found in an email from Brent A. Nielson Aug 20. But my = problem=20 is I can't find the file in which I should make the changes. It is = mentioned the=20 PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and = have=20 still a long way in front of me to master this = biest.
 
Thanks = for=20 help
Gottfried=20 Ryser
 

 

 
------=_NextPart_000_014D_01C01505.10CC5420-- From aboulang@ldeo.columbia.edu Sun Sep 3 01:44:31 2000 From: aboulang@ldeo.columbia.edu (albert boulanger) Date: Sat, 2 Sep 2000 20:44:31 -0400 (EDT) Subject: [Zope-PTK] Zope PKT and sessions Message-ID: <200009030044.UAA00505@ox.ldgo.columbia.edu> Does anyone have sessions working for session control after a user logs in with the PTK product? I am playing with SQLSessions and decided the best way to do this is to move the Members folder into a Sessions folder but I am not there yet as I am having some permissions/security issues right now that I have not figured out. I am using the latest Zope release and a PTK CVS co from last week. Has anyone done something like this? Regards, Albert Boulanger aboulanger@vpatch.com From andyd@nipltd.com Mon Sep 4 08:41:25 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Mon, 4 Sep 2000 08:41:25 +0100 Subject: [Zope-PTK] FW: [Zope-PTK] Can't Create Portal Message-ID: Gottfired The file you are looking for is in zope/lib/python/Products/PTKDemo/Portal.py and is the method called createPortalTools in the class DemoPortalBase. If you have the latest CVS checkout you do not need to make this change. Although I am not sure about version 0.8.2 You will also have to delete your zope/lib/python/Products/Wizard directory and your zope/lib/python/Products/DemoPortal directory. Restart Zope. Manually remove the DemoPortal and Wizard product from the Control_Panel/Products within Zope, if this hasn't automatically happened. Then copy the DemoPortal.zexp and the Wizard.zexp file from the zope/lib/python/Products/PTKDemo directory in to your zope/Import directory, and import them in to the Control_Panel/Products folder in Zope. Hope that helps. -Andy Dawkins -----Original Message----- From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf Of Gottfried Ryser Sent: 02 September 2000 16:42 To: Zope-PTK@zope.org Subject: [Zope-PTK] Can't Create Portal I have exactly the same problem as found in an email from Brent A. Nielson Aug 20. But my problem is I can't find the file in which I should make the changes. It is mentioned the PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and have still a long way in front of me to master this biest. Thanks for help Gottfried Ryser From andyd@nipltd.com Mon Sep 4 15:16:22 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Mon, 4 Sep 2000 15:16:22 +0100 Subject: [Zope-PTK] View Thread Error Message-ID: Has anyone seen this error before? I got it when attempting to 'View Thread' of a document in a members folder. I was logged on as the member at the time. The Document was 'index_html' created by the member there was one reply in the 'Correspondence' folder also created by the member. (Spec: server=WinNt4(sp5), client=Win98+WinNt4(sp5), Zope 2.2, Latest CVS PTK) Traceback (innermost last): File Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: discussion_thread_view) File Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: discussion_thread_view) File Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: discussion_thread_view) File Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: discussion_thread_view) File Zope\lib\python\TreeDisplay\TreeTag.py, line 155, in render (Object: a tree tag) File Zope\lib\python\TreeDisplay\TreeTag.py, line 261, in tpRender (Object: index_html) File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE (Object: index_html) Unauthorized: [0] Cheers -Andy From chrisw@nipltd.com Mon Sep 4 18:46:53 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 18:46:53 +0100 Subject: [Zope-PTK] Squishdot/Swishdot RFCs Message-ID: <39B3E00D.371D59A@nipltd.com> Hi, I've just posted a set of articles relating to the future of Squishdot and Swishdot on http://www.squishdot.org which I'd really like to get lots of feedback on. Could anyone interested please pop along and comment? cheers, Chris From gryser@cgx.ch Mon Sep 4 20:25:42 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Mon, 4 Sep 2000 21:25:42 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] Can't Create Portal In-Reply-To: Message-ID: Andy I had bad luck with my PTK. After taking the latest portal.py from CSV and taking the other steps I got now this errormsg. Traceback (innermost last): File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DemoPortalBase) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: finish) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: finish) File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: finish) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: finish) File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: standard_html_header) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: standard_html_header) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: member="getPortal().getAuthenticatedMember()") File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) (Info: this) File , line 0, in ? File /usr/local/Zope2/lib/python/Products/PTKBase/Toolbox.py, line 141, in __call__ File /usr/local/Zope2/lib/python/App/special_dtml.py, line 121, in __call__ (Object: dtml/toolbox) (Info: /usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 445, in __call__ (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 383, in cook (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 376, in read (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 538, in read_raw (Object: dtml/toolbox) IOError: [Errno 13] Permission denied: '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' Thank you for help Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: Andy Dawkins [mailto:andyd@nipltd.com] > Gesendet: Montag, 4. September 2000 09:36 > An: gryser@cgx.ch > Betreff: RE: [Zope-PTK] Can't Create Portal > > > Gottfired > > The file you are looking for is in > zope/lib/python/Products/PTKDemo/Portal.py and is the method called > createPortalTools in the class DemoPortalBase. > > If you have the latest CVS checkout you do not need to make this change. > Although I am not sure about version 0.8.2 > > You will also have to delete your zope/lib/python/Products/Wizard > directory > and your zope/lib/python/Products/DemoPortal directory. > > Restart Zope. Manually remove the DemoPortal and Wizard product from the > Control_Panel/Products within Zope, if this hasn't automatically happened. > > Then copy the DemoPortal.zexp and the Wizard.zexp file from the > zope/lib/python/Products/PTKDemo directory in to your zope/Import > directory, > and import them in to the Control_Panel/Products folder in Zope. > > Hope that helps. > -Andy Dawkins > From gryser@cgx.ch Mon Sep 4 21:29:45 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Mon, 4 Sep 2000 22:29:45 +0200 Subject: [Zope-PTK] AW: portal error In-Reply-To: Message-ID: David This helped - and PTK works Thank you! Gottfried > -----Ursprüngliche Nachricht----- > Von: David Spencer [mailto:dspencer@ensavant.com] > Gesendet: Montag, 4. September 2000 21:55 > An: gryser@cgx.ch > Betreff: portal error > > > HOwdy, > > I think you're having the same error I initially had. Try changing > ownership of toolbox.dtml to the same user that zope runs as. I > orignially > had ownership of the PTK folders under my login name, but it worked fine > when I switched it to nobody. > > Good luck. > > David > > From fmonge@cecosi.com.sv Tue Sep 5 00:41:14 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Mon, 04 Sep 2000 17:41:14 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? Message-ID: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Hi, I still having the same problem, but this time with Suse 6.4 and Apache (I couldn't fix it under Windows 2000). when I'm trying to access a members page, a window appears asking for a username and a password. If a click cancel, the images (logo and the go bouton in the search box) shows as broken, if I enter a username and a password, everthing is ok. Also, if the images shows up as broken and I click on View in the toolbox, everthing show up ok. please help me ... Francisco Monge ---------------------------------------------------------- Quoting Francisco Monge : > Quoting Chris Withers : > > > Francisco Monge wrote: > > > When I right-click "View Image", a new window > appears > > > asking for a username and a password. > > > > Now that sounds like a security issue. > > > > Weird. > > > > Does the dialog box not pop up on the page otherwise? > > Does it just go straight to a 'broken image'? > > > What I find is, if I try to change Security permisions > to a Image (and only to a Image), I got the message: > > Zope Error > Zope has encountered an error while publishing this > resource. > > Error Type: AttributeError > Error Value: __call__ > > What could it be? > > thank you very much > > Francisco > > From neeloy_saha@infy.com Tue Sep 5 04:39:31 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Tue, 5 Sep 2000 09:09:31 +0530 Subject: [Zope-PTK] Portal ToolKit with Login Manager support Message-ID: <8EE756E49A17D21194860008C7F49AFE045290AE@TWRMSG01> Hi all, I am getting the following error when i try to install the portal toolkit with the ' experimental login manager support'. I am using the zpatterns version : ZPatterns-0-4-1snap1 and demo portal : 0.8.2 and other products. If I create the portal with no initail member then i am able to have a portal with login manager user folder. But then after I have installed the portal I am unable to add a member. ?? Can i have a working snapshot of the portal toolkit with the login managersupport for a windows version or probably a direction as to how to go abt fixing the above problem of version mismatch?? -neeloy ============================================================================ ================================= Error Type: NameError Error Value: client File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) ============================================================================ ================================================= Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: apply_wizard(REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Program Files\WebSite\lib\python\Products\PTKDemo\Portal.py, line 261, in apply_wizard (Object: DemoPortalBase) File C:\Program Files\WebSite\lib\python\Products\Membership\PersistentUserSource.py, line 63, in setMemberProperties (Object: wqeqw) File C:\PROGRA~1\WebSite\lib\python\OFS\PropertySheets.py, line 607, in __getitem__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\PropertySheets.py, line 11, in __propsets__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) From andyd@nipltd.com Tue Sep 5 08:20:26 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 08:20:26 +0100 Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Message-ID: Franciso What you are experiencing is a known bug with PTK 0.8.2 The latest CVS version fixes this problem. You can either get the up-to-date version from CVS or wait for the next snap shot release. -Andy > -----Original Message----- > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf > Of Francisco Monge > Sent: 05 September 2000 00:41 > To: Lista de correo PTK > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > Hi, > > I still having the same problem, but this time with Suse 6.4 and > Apache (I > couldn't fix it under Windows 2000). > > when I'm trying to access a members page, a window appears asking for a > username and a password. If a click cancel, the images (logo and > the go bouton > in the search box) shows as broken, if I enter a username and a password, > everthing is ok. Also, if the images shows up as broken and I > click on View in > the toolbox, everthing show up ok. > > please help me ... > > Francisco Monge > ---------------------------------------------------------- > > > Quoting Francisco Monge : > > > Quoting Chris Withers : > > > > > Francisco Monge wrote: > > > > When I right-click "View Image", a new window > > appears > > > > asking for a username and a password. > > > > > > Now that sounds like a security issue. > > > > > > Weird. > > > > > > Does the dialog box not pop up on the page otherwise? > > > Does it just go straight to a 'broken image'? > > > > > What I find is, if I try to change Security permisions > > to a Image (and only to a Image), I got the message: > > > > Zope Error > > Zope has encountered an error while publishing this > > resource. > > > > Error Type: AttributeError > > Error Value: __call__ > > > > What could it be? > > > > thank you very much > > > > Francisco > > > > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From jwt@OnJapan.net Tue Sep 5 08:28:59 2000 From: jwt@OnJapan.net (Jim Tittsler) Date: Tue, 5 Sep 2000 16:28:59 +0900 Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: References: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Message-ID: <20000905162859.A14953@server.onjapan.net> On Tue, Sep 05, 2000 at 08:20:26AM +0100, Andy Dawkins wrote: > You can either get the up-to-date version from CVS or wait for the next snap > shot release. And if you want to try the CVS version but have trouble with getting CVS past a firewall, unofficial snapshots in tarball form are still available from: http://starship.python.net/crew/jwt/zope/ZopePTK/ From neeloy_saha@infy.com Tue Sep 5 13:10:44 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Tue, 5 Sep 2000 17:40:44 +0530 Subject: [Zope-PTK] Using Portal Toolkit and login manager Message-ID: <8EE756E49A17D21194860008C7F49AFE045290B5@TWRMSG01> Hi all, I am unable to create a portal with the login manager ... It does not give me the right to create the members. So I am not able to create my first member. In case i do not give my first user name , i am able to create the portal...but all those features of 'join in' does not work and each time i get the following error. I am using Zpattern : version ZPatterns-0-4-1snap1 [ I have been using dynpersist.pyd from some other rev ] login manager : LoginManager-0-8-7a1 Demo Portal : 0.8.2 Membership : Membership 0.7.0 Membership : 0.6 Platform : winNT/win95 tested on both zope : 2.2.0 I am getting error in the following portion of the code : error type : Name error error value : client ============================================================================ =========== def _v_currentSheets(self,_v_dm_=_v_dm_): """PropertySheets tuple (analagous to __propsets__)""" l = [] for sp in self.__dict__[_v_dm_]._uniqueProviders(('sheets',)): l.extend(list(sp._PropertySheetsFor(client))) self._v_currentSheets = tuple(l) return self._v_currentSheets ============================================================================ =========== My only inference is this global ' client' is not being set somewhere. Did some code mining, found out that this variable client occurs in another python file called : lib/python/products/Zpattern//propertysheets.py CAN ANYBODY PLEASE HELP ME.... I am a zope newcomer and stuck by this bug.....??? Can somebody point out the direction in which i should look. all views are welcome.....anything !!! u can mail directly to my id also..... -neeloy From pje@telecommunity.com Tue Sep 5 15:48:52 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Tue, 05 Sep 2000 09:48:52 -0500 Subject: [Zope-PTK] Portal ToolKit with Login Manager support In-Reply-To: <8EE756E49A17D21194860008C7F49AFE045290AE@TWRMSG01> Message-ID: <3.0.5.32.20000905094852.01cd38a0@telecommunity.com> At 09:09 AM 9/5/00 +0530, neeloy_saha wrote: >Hi all, > >I am getting the following error when i try to install the portal toolkit >with the ' experimental login manager support'. >I am using the zpatterns version : ZPatterns-0-4-1snap1 and demo portal : >0.8.2 and other products. If I create the portal with no initail member then >i am able to have a portal with login manager user folder. But then after I >have >installed the portal I am unable to add a member. ?? > >Can i have a working snapshot of the portal toolkit with the login >managersupport >for a windows version or probably a direction as to how to go abt fixing >the above problem of version mismatch?? > The error you're getting is a ZPatterns problem with 0.4.1snap1. You may want to try 0.4.2a1. From andyd@nipltd.com Tue Sep 5 16:26:15 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 16:26:15 +0100 Subject: [Zope-PTK] Discussion Problems with PTK Message-ID: I am currently trying to evaluate the PTK discussable objects so that I can draw up a plan of action for developing Swishdot. Unfortunately I can't evaluate discussable because I am having problems with the discussion_thread_view and the tree tag. I posted this yesterday to zope-ptk@zope.org but have had no response. >Has anyone seen this error before? > >I got it when attempting to 'View Thread' of a document in a members folder. >I was logged on as the member at the time. >The Document was 'index_html' created by the member >there was one reply in the 'Correspondence' folder also created by the >member. > >(Spec: server=WinNt4(sp5), client=Win98+WinNt4(sp5), Zope 2.2, Latest CVS >PTK) > >Traceback (innermost last): > File Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module > File Zope\lib\python\ZPublisher\Publish.py, line 187, in publish > File Zope\lib\python\ZPublisher\Publish.py, line 171, in publish > File Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply > (Object: discussion_thread_view) > File Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object > (Object: discussion_thread_view) > File Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__ > (Object: discussion_thread_view) > File Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ > (Object: discussion_thread_view) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 155, in render > (Object: a tree tag) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 261, in tpRender > (Object: index_html) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE > (Object: index_html) >Unauthorized: [0] Is it just me or can nobody view the discussion thread for a item. Are there any patches or specific versions of software I should be using. I have upgraded my server to Zope 2.2.1 since the previous post but have not ironed out this error. I have my suspicions that it may have something to do with the treetag or the getReplies method of disscussions.py Would the latest CVS version of Zope help? Cheers -Andy Dawkins (New Information Paradigms Ltd) From chrisw@nipltd.com Tue Sep 5 16:23:31 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:23:31 +0100 Subject: [Zope-PTK] What is the PTK? References: <613145F79272D211914B0020AFF640198C3226@gandalf.digicool.com> Message-ID: <39B50FF3.BC43B8AF@nipltd.com> Paul Everitt wrote: > The PTK also needs a new name. I've spent a lot of time over the last > two weeks thinking about it. If someone comes up with a name, lemme > know. What happened to that funky dictionary you had in Paris? ;-) > 1) A _product_. Zope is a platform that isn't necessarily > out-of-the-box useful. The thing that we're interested in needs to be > on the order of Squishdot -- immediately grok-able and useful. Now this sounds like what is currently PTK Demo... > 2) Consulting-ware. I'll go ahead and contradict one immediately as > evidence of the tension. We want PTKNG to be flexible for consulting > projects. ...and this sounds like PTK Base. How's this for a possible future: The tools in PTK Base work their way into the Zope core over a period of time and either ship as standard or come in a couple of very-standard add on modules: - Zope Content Management Tools - Zope Community Management Tools Then, on top of this, there would be 'standard products' which, again, may or may not ship with Zope: - PTK (with its funky new name ;-) - Squishdot The idea for these would be to not include any tools that might be useful for another product. If that's the case, they should be factored out into on of the two ZCMTs sets. That said, these products might contain tools for a while, while they're 'growing', as seems to be happening with the PTK right now... (it strikes me the dependency checking mentioned in the Installation System proposal on dev.zope.org would be very helpful in this looks at the future...) > 3) Targeted at the CMS market. The next phase of Digital Creations is > to focus on the content management systems market, where products like > Vignette, Broadvision, Interwoven, and Spectra reside. These are all > generally balances between (1) and (2), combined with very high end > professional services. Surely if (1) was underpinned by a very good and flexble (2), it'd be a win-win situation? What does everyone else think? Chris PS: In Step 2 of 3 in the Add Portal Wizard there's a 'Design' dropdown. Is that an appropriate place for Swishdot to appear, or would that not really be flexible enough? From chrisw@nipltd.com Tue Sep 5 16:31:04 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:31:04 +0100 Subject: [Zope-PTK] Retro-GUI Widgets References: <977A39E65CFCD3119ABF00D0B741D8497336BF@innt-73> Message-ID: <39B511B8.74AC850F@nipltd.com> "Spicklemire, Jerry" wrote: > However, keep in mind that frames and layers can cause headaches with > bookmarks. In an "application" setting, that's less of a problem. The user > always has to come through the "front door" anyhow. ...as someone who often bookmarks things that you probably shouldn't, this makes me a little wary :S Chris PS: Not quite sure I've groked what this thread's about yet though ;-) From chrisw@nipltd.com Tue Sep 5 16:38:20 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:38:20 +0100 Subject: [Zope-PTK] PTK II has landed References: <39945FA4.75CEFB@digicool.com> Message-ID: <39B5136C.AB7BC08C@nipltd.com> Shane Hathaway wrote: > - The portal_discussion tool is very weak. It just mimics what the old > architecture did. I bet Chris Withers has some insight here! At last, myself and Andy Dawkins are getting into this... We're having lots of trouble 'getting' the PTK, and one or two bugs are confusing the hell out of us (I still can't actually create DemoPortals on my local copy of Zope...) but I'm sure we'll get there. Of course, any help si good help ;-) cheers, Chris PS: > - The generic interface is too blue. Designers wanted! But blue's my favourite colour! ;-) From chrisw@nipltd.com Tue Sep 5 16:43:17 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:43:17 +0100 Subject: [Zope-PTK] Small Wizard Complaint Message-ID: <39B51495.37F6FE80@nipltd.com> ...if you try and create a Portal with an id that already exists, you only find out after you've been through the whole set of forms and if you hit your browser's back button (as opposed to the one on the form) you start loosing lots of the information you typed. :-S cheers, Chris From kayeva@hotmail.com Tue Sep 5 16:54:48 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Tue, 05 Sep 2000 15:54:48 GMT Subject: [Zope-PTK] What is the PTK? Message-ID: Hi, I mostly agree with Chris, and think that there would be more than 2 products available on top of ZCMT and usable out-of-the-box. I am thinking about ZDP-Tools which will soon be available as a brand new solution. Also the ZCMT part could integrate some stuff from the ZDP-Tools architecture like: - the Model/View/Controler paradigm, - the "everything derive from one base class" idea, - and some ideas we are currently experimenting about "per meta_type templating" Just one thing, when Chris writes the following... >How's this for a possible future: >The tools in PTK Base work their way into the Zope core over a period of >time and either ship as standard or come in a couple of very-standard >add on modules: >- Zope Content Management Tools >- Zope Community Management Tools I think we should pay attention to not introduce new naming/concept related confusion in people's mind. What is exactly 'Community Management' versus 'Content Management' ? I think of Membership, but are you also thinking of Mail / Groupware related features ? -- Kamon Ecubateur _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From chrisw@nipltd.com Tue Sep 5 17:07:23 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:07:23 +0100 Subject: [Zope-PTK] Status shouldn't depend on Location References: <399824F8.17E31827@interfree.it> <399855C0.2526DF79@inorbit.com> <399856F3.EA17C444@digicool.com> <3999927A.B8629CA5@inorbit.com> <399A86CA.19AD692F@inorbit.com> <399A8776.EDB0BA37@inorbit.com> <399A9F91.7C2FB875@digicool.com> Message-ID: <39B51A3B.C422C58C@nipltd.com> Shane Hathaway wrote: > This is debatable, but I believe it would be more sensible to > physically move the object to a "published" area and leave its role to > permission mappings alone. I dunno if anyone has said this yet, and I know I'm late in replying but I disagree. Particularly for Swishdot, the content should stay where it is and it's status should change rather than it's status a result of it's location... If you look at how Squishdot sites present articles (which I'd kindof like to keep :S), they don't change their location depending on whether they're reviewed or not. I know munging the role to permission mappings sucks and I wish there was a better way. The location think is elegant but a bit limiting IMH(umble)O. cheers, Chris From andyd@nipltd.com Tue Sep 5 17:17:13 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 17:17:13 +0100 Subject: [Zope-PTK] PTK install Gottcha Message-ID: Several People (including myself and ChrisW) have come across problems installing the latest CVS checkout of the PTK. There have been a number of different errors which seem to be fixed if you install the PTK in this following order. * Start Zope * Go to the Control_Panel/Products * Remove DemoPortal (If it exists) * Remove Wizard (If it exists) * Remove PTKBase (If it exists) * Remove PTKDemo (If it exists) * Remove ZCallable (If it exists) * Checkout the latest CVS version of PTKDemo, PTKBase and ZCallable * Copy PTKDemo, PTKBase and ZCallable to your zope/lib/python/Products/ directory * Copy DemoPortal.zexp and Wizard.zexp from zope/lib/python/Products/PTKDemo to /zope/import * Back in the Zope Control_Panel/Prodcuts import DemoPortal.zexp and Wizard.zexp * Restart Zope As well as telling everyone a method that seems to work for me, I am interested to know why it has to be done this way. This issue has tormented several people including Chris and myself. Can we have it fixed please? Cheers -Andy P.S. This method does not fix my Unauthorised issue with discussion_thread_view but I have been able to reproduce the error on several machines using this method to install the PTK. From chrisw@nipltd.com Tue Sep 5 17:37:28 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:37:28 +0100 Subject: [Zope-PTK] DOM Level 2 References: <613145F79272D211914B0020AFF64019713825@gandalf.digicool.com> Message-ID: <39B52148.CBC36AC8@nipltd.com> Paul Everitt wrote: > I just read the DOM spec during this two week vacation. It was eye > opening. They have deeply specified an architecture which is general to > many kinds of object systems. ...having heard about its length (hundreds of pages said Simon ;-) would it be okay if you guided this and pointed us to what needs to be done WRT DOM Level 2 compliance? It sounds like a good idea but I know that I'm never going to get around to reading the specs and will probably just muddle through as best I can unless someone turns around and goes "no! do it like this!" :-) I wonder if it's same for the rest of the 'TeamPTK' guys? cheers, Chris From fmonge@cecosi.com.sv Tue Sep 5 17:52:42 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Tue, 05 Sep 2000 10:52:42 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: References: Message-ID: <968172761.39b524da01a90@mail.cecosi.com.sv> Sorry bothering you with this problem, but I'm experiencing this bug with the lastest CVS. I also tried the lastest tarball avalaible at http://starship.python.net/crew/jwt/zope/ZopePTK and the same thing happens. What I just discovered is that only happens with Zope 2.2.1 and not with version 2.2.0. Thank you ... Francisco Monge Quoting Andy Dawkins : > Franciso > > What you are experiencing is a known bug with PTK 0.8.2 > > The latest CVS version fixes this problem. > > You can either get the up-to-date version from CVS or wait for the next > snap > shot release. > > -Andy > > > -----Original Message----- > > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On > Behalf > > Of Francisco Monge > > Sent: 05 September 2000 00:41 > > To: Lista de correo PTK > > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > > > > Hi, > > > > I still having the same problem, but this time with Suse 6.4 and > > Apache (I > > couldn't fix it under Windows 2000). > > > > when I'm trying to access a members page, a window appears asking for > a > > username and a password. If a click cancel, the images (logo and > > the go bouton > > in the search box) shows as broken, if I enter a username and a > password, > > everthing is ok. Also, if the images shows up as broken and I > > click on View in > > the toolbox, everthing show up ok. > > > > please help me ... > > > > Francisco Monge > > ---------------------------------------------------------- From chrisw@nipltd.com Tue Sep 5 17:53:25 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:53:25 +0100 Subject: [Zope-PTK] Hooks & Overridable References: <399C61C1.B283BCC2@inorbit.com> <399C95FA.BC5EC057@digicool.com> <399D216A.3E488C1E@inorbit.com> <399D256D.C262D1A3@digicool.com> Message-ID: <39B52505.E332D702@nipltd.com> Shane Hathaway wrote: > In my not very deep PTK experience, there was never a way to add hooks > without subclassing. Please correct me if I'm wrong. > > I just realized there are two more options: > > 4) Make these tools into ObjectManagers. Then you could hook anything > you want just by adding methods to the tools. I thought the overidable interface was supposed to help in this area too? ie: you make 'hookable' methods overridable so you can just and a DTML or Python Method into the portal object to override the specific method. Maybe having the tools as object managers would help here: You could still have the hookable bits overidable, but there overiding methods would be grouped together and ther ewouldn't be any namespace collisions. Am I missing anything or is that what's happening already? > 5) Make use of the observer pattern that was recently added. > Unfortunately, I don't know where it is. Can _anyone_ shed any light on where this has gone? ;-) cheers, Chris From chrisw@nipltd.com Tue Sep 5 17:54:49 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:54:49 +0100 Subject: [Zope-PTK] Hooks & Overidable again References: <399C61C1.B283BCC2@inorbit.com> <399C95FA.BC5EC057@digicool.com> <399D216A.3E488C1E@inorbit.com> <399D256D.C262D1A3@digicool.com> <399D294F.31E4B3BA@inorbit.com> <399D5F43.D557FE7F@inorbit.com> Message-ID: <39B52559.FF39AA0C@nipltd.com> Fabio Forno wrote: > > yeah, this was my idea: if you leave in the tool class an empty method > > which is an hook, when you add a method with the same name to its > > instance, you should override it, isn' it? This could be a good way to > > quickly add functionality to a portal object without having to worry a > > lot of the low level changes. > > I doesn't work, but there is a bypass. I thought the overidable interface was for exactly this situation? cheers, Chris PS: Just checking: overidable has been implemented, hasn't it?! ;-) From chrisw@nipltd.com Tue Sep 5 17:57:20 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:57:20 +0100 Subject: [Zope-PTK] PortalMembership ;-) References: <399F23C7.3DC7BD65@interfree.it> <39A1DF55.5088549A@libc.org> Message-ID: <39B525F0.1C25AA00@nipltd.com> Bill Anderson wrote: > While it was originally part of the PTK, it was taken out by tazzz, and now maintained by yours truly. There is > currently no support for using it in the PTK, as it is still in development. Further details can be found from the Wiki > for it at: > > http://www.zope.org/Members/Bill/MembershipProductWiki/FrontPage Dopey question time: If it ain't in the PTK anymore, what's doing the job that it used to?! Really dopey question@ just checking, what does it actually do? *grinz* Chris From chrisw@nipltd.com Tue Sep 5 17:59:27 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:59:27 +0100 Subject: [Zope-PTK] catalog.getobject the culprit? References: <4D2A6B06A4D031478F83DAF3A24B608DFC2F@ntbox.lan.exoweb.net> <39A12ADA.CEC580B2@digicool.com> Message-ID: <39B5266F.3D60876A@nipltd.com> Shane Hathaway wrote: > Howard Zhang wrote: > > hi, i'm howard . I found a problem in PTK. > > when I click link 'view thread ' of a document,It's report i have no > > authority to access ,but i have Manager role. > > It seems like wrong in Discussable.getReplies() .It's call > > catalog.getobject to get object,but object come from catalog.getobject > > is different from original. > > It's more like catalog's bug.I changed code so it's work in our site.I > > hope you can fix it in next release. > > Would you provide the modified source code? I didn't understand your > message very well. Shane, Did you ever get any code back for this? Andy and myself are bashing heads painfully against exactly this right now and could really use some help :-S cheers, Chris PS: We'd love to hear from anyone who actually has 'view thread' working for them, just so we knwo we're not going insane :-S From chrisw@nipltd.com Tue Sep 5 18:03:37 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 18:03:37 +0100 Subject: [Zope-PTK] portal_events & DOM Level 2 References: <613145F79272D211914B0020AFF64019713834@gandalf.digicool.com> Message-ID: <39B52769.AA033CCE@nipltd.com> Paul Everitt wrote: > > portal_events, as proposed, would let you subscribe to > > *all* portal events. Maybe instead of that approach > > we need to add event subscription capability to > > specific tools, such as: > > > > portal_workflow.addStatusChangeListener() > > > > and: > > > > portal_workflow.removeStatusChangeListener() > > This would also match the XML DOM Level 2 model: > > """ > The _EventListener_ interface is the primary method for handling events. > Users implement the EventListener interface and register their listener > on an _EventTarget_ using the _AddEventListener_ method. > """ Hmm, how does Tres' stuff (which I didn't fully understand but which sounded a little mroe easy to use in he long run) compare with this? cheers, Chris From fmonge@cecosi.com.sv Tue Sep 5 18:33:09 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Tue, 05 Sep 2000 11:33:09 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: <968172761.39b524da01a90@mail.cecosi.com.sv> References: <968172761.39b524da01a90@mail.cecosi.com.sv> Message-ID: <968175189.39b52e55857ef@mail.cecosi.com.sv> Sorry, the security problem is fixed with zope 2.2.0 (changing security propeties to a image), but the broken images still there ... I'm the only one having this problem?? I dont know what else I can do ... thank you Francisco Quoting Francisco Monge : > Sorry bothering you with this problem, but I'm experiencing this bug > with the > lastest CVS. > > I also tried the lastest tarball avalaible at > http://starship.python.net/crew/jwt/zope/ZopePTK and the same thing > happens. > > What I just discovered is that only happens with Zope 2.2.1 and not with > > version 2.2.0. > > > Thank you ... > > Francisco Monge > > > > Quoting Andy Dawkins : > > > Franciso > > > > What you are experiencing is a known bug with PTK 0.8.2 > > > > The latest CVS version fixes this problem. > > > > You can either get the up-to-date version from CVS or wait for the > next > > snap > > shot release. > > > > -Andy > > > > > -----Original Message----- > > > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On > > Behalf > > > Of Francisco Monge > > > Sent: 05 September 2000 00:41 > > > To: Lista de correo PTK > > > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > > > > > > > Hi, > > > > > > I still having the same problem, but this time with Suse 6.4 and > > > Apache (I > > > couldn't fix it under Windows 2000). > > > > > > when I'm trying to access a members page, a window appears asking > for > > a > > > username and a password. If a click cancel, the images (logo and > > > the go bouton > > > in the search box) shows as broken, if I enter a username and a > > password, > > > everthing is ok. Also, if the images shows up as broken and I > > > click on View in > > > the toolbox, everthing show up ok. > > > > > > please help me ... > > > > > > Francisco Monge > > > ---------------------------------------------------------- From fresh@bay-c.co.uk Tue Sep 5 19:24:48 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:24:48 +0100 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> Message-ID: <39B53A70.2C86AA4D@bay-c.co.uk> Hi, again, sorry for being so late into this discussion... It looks like there have been lots of great ideas exchanged :-) I don't really have a preference for any of them, but the thing which I'm really keen to make sure is heard is this: Whatever happens, can we please make sure the interfaces behind this whole password area are flexible enough that _any_ of the discussed method _can_ be implemented, preferably just by using the overidable interface or something similar to customize the appropriate portal tool. All the discussed method have either plusses and minusses, and it'd be a shame to restrict which options you can use, beyond the absolutely necessary... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:26:58 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:26:58 +0100 Subject: [Zope-PTK] Security and Content Location References: <613145F79272D211914B0020AFF6401971382F@gandalf.digicool.com> <39AA5D07.1A823470@digicool.com> Message-ID: <39B53AF2.E3EFBA70@bay-c.co.uk> Shane Hathaway wrote: > Another possible way to solve this would be with permission mappings. > It's too bad they're so difficult to use. Why is that? Where is their use documented or exampled? Can they be changed so they're easier to used? hopefully, Chris From fresh@bay-c.co.uk Tue Sep 5 19:29:32 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:29:32 +0100 Subject: [Zope-PTK] Re: Show by Permission References: <39AE6601.F27C47BB@digicool.com> <39AE6960.D4C753D3@nipltd.com> <39AE6A75.94FA55CA@digicool.com> Message-ID: <39B53B8C.3AF2905C@bay-c.co.uk> Shane Hathaway wrote: > Yes, it already does that. That was the point of the catalog comment. > :-) Having caught up on some other threads, I see that now :-) > That way, Squishdot will automatically filter the front page based on > fine-grained permissions. Cool, huh? Well, Swishdot could anyway ;-) Definitely cool... Now if the 'View Thread' thing would only work :-( cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:31:27 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:31:27 +0100 Subject: [Zope-PTK] Can't Create Portal: Filesystem security? References: Message-ID: <39B53BFF.87659D6B@bay-c.co.uk> Gottfried Ryser wrote: > IOError: [Errno 13] Permission denied: > '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' This suggests the Unix user you used to install the PTK Products was the wrong one... The Zope process didn't have permission to read the toolbox.dtml file, so I guess you need to sort out ownership of those files... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:32:30 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:32:30 +0100 Subject: [Zope-PTK] portal error: whoops... ;-) References: Message-ID: <39B53C3E.D4B2AC62@bay-c.co.uk> Gottfried Ryser wrote: > > I think you're having the same error I initially had. Try changing > > ownership of toolbox.dtml to the same user that zope runs as. I > > orignially > > had ownership of the PTK folders under my login name, but it worked fine > > when I switched it to nobody. Someone beat me to it with a better answer anyway... *grin* Chris From fresh@bay-c.co.uk Tue Sep 5 19:33:52 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:33:52 +0100 Subject: [Zope-PTK] Can't create portal: patch in CVS? References: <399F23CB.46D2A450@interfree.it> <39A12C13.4A3D4846@digicool.com> Message-ID: <39B53C90.DFAAD060@bay-c.co.uk> Shane Hathaway wrote: > Thanks for the patch. Has this worked its way into the CVS repository yet? Chris From fresh@bay-c.co.uk Tue Sep 5 19:43:07 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:43:07 +0100 Subject: [Zope-PTK] New tool proposal: portal_events References: <3.0.6.32.20000821201337.00f817f0@mail.gwi.net> Message-ID: <39B53EBB.FBD85030@bay-c.co.uk> Andrew Wilcox wrote: > * It is easy to classify and filter on event types, simply by having > subclasses of Event such as: ObjectAddedEvent, a subclass of > ObjectManagerEvent, a subclass of Event. Like that :-) > (Er, was that very > clear? Perhaps an example?) yes please :-S > * You will find in your client code that there are operations that you do > over and over again in reference to the event. With an Event class, you > can easily refactor your code to make the common operations methods of the > class, simplifying your client code. That sounds cool too... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:46:41 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:46:41 +0100 Subject: [Zope-PTK] portal_events proposal implemented? References: Message-ID: <39B53F91.71A57262@bay-c.co.uk> Tres Seaver wrote: Just read the proposal and the related discussion. Looks great and looks like it could be amazingly useful for Swishdot :-) Has anything been done on implementing it yet? cheers, Chris From gryser@cgx.ch Tue Sep 5 20:08:01 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Tue, 5 Sep 2000 21:08:01 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] Can't Create Portal: Filesystem security? In-Reply-To: <39B53BFF.87659D6B@bay-c.co.uk> Message-ID: Chris Thank you. Yes this was the problem in general. I had a mix of different permissions. After changing all to nobody PTK works now. Regards Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]Im Auftrag > von Chris Withers > Gesendet: Dienstag, 5. September 2000 20:31 > An: gryser@cgx.ch > Cc: Zope-PTK@zope.org > Betreff: Re: [Zope-PTK] Can't Create Portal: Filesystem security? > > > Gottfried Ryser wrote: > > IOError: [Errno 13] Permission denied: > > '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' > > This suggests the Unix user you used to install the PTK Products was the > wrong one... > > The Zope process didn't have permission to read the toolbox.dtml file, > so I guess you need to sort out ownership of those files... > > cheers, > > Chris > > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From circle@gwi.net Tue Sep 5 20:44:20 2000 From: circle@gwi.net (Andrew Wilcox) Date: Tue, 05 Sep 2000 15:44:20 -0400 Subject: [Zope-PTK] New tool proposal: portal_events In-Reply-To: <39B53EBB.FBD85030@bay-c.co.uk> References: <3.0.6.32.20000821201337.00f817f0@mail.gwi.net> Message-ID: <3.0.6.32.20000905154420.01175100@mail.gwi.net> >> (Er, was that very >> clear? Perhaps an example?) > >yes please :-S Let's brainstorm a bunch of events we might have in a portal. Then when we investigate a proposed framework such as DOM Level 2, Java 1.1, etc., we can look at from the perspective of our examples. We might say, oh, that framework is overkill; or, wow, just the ticket; or, very nice but it's missing something *we* need. What kind of events might we have? What are the properties, attributes, meta-data associated with each event? Please make suggestions on my meager beginnings: Content is added date content was added type of content dublin core meta-data what else? Content is ready for review date of event what else? Content is deleted date of deletion what else? A user joins the portal date of joining information about the user: name, email, etc. what else? A user is promoted to a new role, such as "reviewer" date of promotion information about the user what else? A policy of the portal changes what kind of policies do we have? A workflow status changes date of status change ? A new comment is added to the discussions of an object date of addition dublin meta-data what else? Also, what kinds of meta-data will we typically want to filter on, independent of the primary type of the event? From tseaver@digicool.com Tue Sep 5 20:33:58 2000 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 5 Sep 2000 15:33:58 -0400 (EDT) Subject: [Zope-PTK] New tool proposal: portal_events In-Reply-To: <3.0.6.32.20000905154420.01175100@mail.gwi.net> Message-ID: On Tue, 5 Sep 2000, Andrew Wilcox wrote: > >> (Er, was that very > >> clear? Perhaps an example?) > > > >yes please :-S > > Let's brainstorm a bunch of events we might have in a portal. Then when we > investigate a proposed framework such as DOM Level 2, Java 1.1, etc., we > can look at from the perspective of our examples. We might say, oh, that > framework is overkill; or, wow, just the ticket; or, very nice but it's > missing something *we* need. > > What kind of events might we have? > > What are the properties, attributes, meta-data associated with each event? > > Please make suggestions on my meager beginnings: > > > Content is added > date content was added > type of content > dublin core meta-data > what else? In my scenario, the object being added would be the 'payload' of the event, while the container's physical path and the object's meta_type would be two of the likely "filtering" values (remember that the DublinCore metadata is "massaged" to make it useful for "discovery" by other systems; it is not always in the most useful form for internal consumption). > Content is ready for review > date of event > what else? This one is a particular case of your "workflow state change" below. > > Content is deleted > date of deletion > what else? Again, the container path, and in this case the id of the deleted object, plus it erstwhile meta_type. We could probably make the removed object payload again, as that would guarantee that it remained "alive" during the event processing, even if (as is most likely) its container held the only "normal" reference to it. > > A user joins the portal > date of joining > information about the user: name, email, etc. > what else? Just pass the user object as payload; I can't think of any filtering metadata that would be generally useful here (specific portal implementations could always pass additional data, if need be). Perhaps the roles assigned would be helpful, in case we need to take different action when a "privileged" user joins (I doubt any real portal would work like this, however; most would to the "promotion" separately, as you call out next). > > A user is promoted to a new role, such as "reviewer" > date of promotion > information about the user > what else? Hmm, the userid and the old/new roles lists. > A policy of the portal changes > what kind of policies do we have? I can't think of a use case for this one, actually. > A workflow status changes > date of status change Containment path to the object, former state(s), new state(s), triggering event name. > > A new comment is added to the discussions of an object > date of addition > dublin meta-data > what else? Containment path of the "Discussable" thing, ID of the new comment. > Also, what kinds of meta-data will we typically want to filter on, > independent of the primary type of the event? I wouldn't generally include the timestamp on the event on the "base" framework events, but would instead push that off to be generated by a "logging subscriber", if any. A similar adapter could likewise package up the payload and metadata into the kind of event-type hierarchy you proposed earlier. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From gryser@cgx.ch Tue Sep 5 21:06:50 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Tue, 5 Sep 2000 22:06:50 +0200 Subject: [Zope-PTK] How to add topics Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0264_01C01785.973CD750 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I feel a bit stupid, after installting the PTK (I'm a newbie) I checked around and tried to ad a document and news. I can add this items, can review them and set a status, but can't see them finally on my portal. What did I wrong? And is there a bit more documentation on PTK? I hope to contribute later with some stuff, I had worked with ColdFusion and have build several smaller cms solutions. Regards Gottfried Ryser ------=_NextPart_000_0264_01C01785.973CD750 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I feel = a bit stupid,=20 after installting the PTK (I'm a newbie) I checked around and tried to = ad a=20 document and news. I can add this items, can review them and set a = status, but=20 can't see them finally on my portal. What did I wrong? And is there a = bit more=20 documentation on PTK? I hope to contribute later with some stuff, I had = worked=20 with ColdFusion and have build several smaller cms=20 solutions.
 
Regards

Gottfried Ryser

 

 
------=_NextPart_000_0264_01C01785.973CD750-- From tseaver@palladion.com Wed Sep 6 04:19:53 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 05 Sep 2000 23:19:53 -0400 Subject: [Zope-PTK] Long overdue PTK Status, 2000/09/04 Message-ID: <39B5B7D9.9387B4FD@palladion.com> I just posted an update to the "State of the PTK": http://www.zope.org/Products/PTK/ZWiki/PeriodEnding4September2000 -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Sep 6 04:25:31 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 05 Sep 2000 23:25:31 -0400 Subject: [Zope-PTK] Status shouldn't depend on Location References: <399824F8.17E31827@interfree.it> <399855C0.2526DF79@inorbit.com> <399856F3.EA17C444@digicool.com> <3999927A.B8629CA5@inorbit.com> <399A86CA.19AD692F@inorbit.com> <399A8776.EDB0BA37@inorbit.com> <399A9F91.7C2FB875@digicool.com> <39B51A3B.C422C58C@nipltd.com> Message-ID: <39B5B92B.226E656E@palladion.com> Chris Withers wrote: > > Shane Hathaway wrote: > > This is debatable, but I believe it would be more sensible to > > physically move the object to a "published" area and leave its role to > > permission mappings alone. > > I dunno if anyone has said this yet, and I know I'm late in replying but > I disagree. > Particularly for Swishdot, the content should stay where it is and it's > status should change rather than it's status a result of it's > location... > > If you look at how Squishdot sites present articles (which I'd kindof > like to keep :S), they don't change their location depending on whether > they're reviewed or not. > > I know munging the role to permission mappings sucks and I wish there > was a better way. The location think is elegant but a bit limiting > IMH(umble)O. The 'portal_workflow' tool will be the locus for this policy: the "sample" implementation which ships under PTKDemo/DemoPortal will likely retain the current, "staionary" semantic; other implementations may not, especially for content which needs to change "ownership" when it becomes publicly viewable. Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Sep 6 05:07:29 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 06 Sep 2000 00:07:29 -0400 Subject: [Zope-PTK] How to add topics References: Message-ID: <39B5C301.F9974F12@palladion.com> Gottfried Ryser wrote: > I feel a bit stupid, after installting the PTK (I'm a newbie) I checked > around and tried to ad a document and news. I can add this items, can review > them and set a status, but can't see them finally on my portal. First, you aren't being stupid; getting this far is a major achievement, given the current state of the package and docs. As a quick check, try typing a word you *know* is present in one of the documents or news items in the "search" box at the top of the portal; does your item appear in the search result? If so, then congratulations! Your content is "there" in the portal, you just need to "expose" it by editing the portal chrome, to make it more obvious. If the search doesn't return the expected result, then check the current "review status" of the document/news item (the "Status" under the icon and id). Does it say, "Published"? If it does, then check the content again for your search term. If it says "pending" or "private", then you need to use the "Set status" action (perhaps as a different member, one with the "Reviewer" role) to make it "published". > What did I > wrong? And is there a bit more documentation on PTK? I hope to contribute > later with some stuff, I had worked with ColdFusion and have build several > smaller cms solutions. Most of the current documentation is available from the PTK home page: http://www.zope.org/PTK In particular, the "PTK Users' Guide", http://www.zope.org/Products/PTK/PTK.html, while slightly older, is the best "conceptual" overview; the "wiki", http://www.zope.org/Products/PTK/ZWiki is where the "work-in-progress" is documented. Thanks for persevering! We look forward to your contributions! Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@libc.org Wed Sep 6 05:00:54 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 05 Sep 2000 22:00:54 -0600 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> Message-ID: <39B5C176.66931C76@libc.org> Chris Withers wrote: > > Hi, > > again, sorry for being so late into this discussion... > > It looks like there have been lots of great ideas exchanged :-) > > I don't really have a preference for any of them, but the thing which > I'm really keen to make sure is heard is this: > > Whatever happens, can we please make sure the interfaces behind this > whole password area are flexible enough that _any_ of the discussed > method _can_ be implemented, preferably just by using the overidable > interface or something similar to customize the appropriate portal tool. > > All the discussed method have either plusses and minusses, and it'd be a > shame to restrict which options you can use, beyond the absolutely > necessary... Well, as I have mentioned, I am working on a policy object fo ruser authentication schemes. And I am doing a lot of the code in ttw Python methods, so it shold be rather easy to modify to suit your needs. :) As the methods stabilize and standardize, the default ones may be merged into the Python sid eof it (Membership porpoer), and the alternative behaviours could be overrridden my ttw Python Methods. Needless to say, I am still working on the Security Policy Object. I _want_ to have 0.8 out in the next two weeks, and 0.9 out within 2 weeks from there, and a 1.0 release about a week or two after that. I want to have the 1.0 features in no later than 0.8.5. That means for those who have patches, I need them in the next two weeks if you want a chance atthem being integrated. Some have patches for simple user deletion, some have PTK integration work done. I am not too hip on reinventing it, so I am concentrating on other features and code, allowing their patches to round it out. The 0.9 should mainly be documentation and bugfixing/stabilization. I am envisioning the interface side to actually call the policy object, which will implement the appropriate methods. The default will be to store passwords in encrypted format, with forgetful users getting a new password. It is also likely this new password will have to be changed on login. I am also planning on limiting the new password requests to one per day. This sounds like a reasonable default. This Policy Plugin setup will allow custom policy arrangements, even on a per-portal basis within the same zope server. Whaddya think of that? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From bill@libc.org Wed Sep 6 05:07:12 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 05 Sep 2000 22:07:12 -0600 Subject: [Zope-PTK] What is the PTK? References: Message-ID: <39B5C2F0.8FB5D4A7@libc.org> kamon ayeva wrote: > > Hi, > > I mostly agree with Chris, and think that there would be more than 2 > products available on top of ZCMT and usable out-of-the-box. I am thinking > about ZDP-Tools which will soon be available as a brand new solution. Also > the ZCMT part could integrate some stuff from the ZDP-Tools architecture > like: > - the Model/View/Controler paradigm, > - the "everything derive from one base class" idea, Actually, IIRC, the original PTK stuff did this, adn we are currently moving away from it. > - and some ideas we are currently experimenting about "per meta_type > templating" Elaborate please. > Just one thing, when Chris writes the following... > >How's this for a possible future: > >The tools in PTK Base work their way into the Zope core over a period of > >time and either ship as standard or come in a couple of very-standard > >add on modules: > >- Zope Content Management Tools > >- Zope Community Management Tools > > I think we should pay attention to not introduce new naming/concept related > confusion in people's mind. What is exactly 'Community Management' versus > 'Content Management' ? I think of Membership, but are you also thinking of > Mail / Groupware related features ? I agree that the acronyms should be distinct. This relates to some earlier expositions I've had on 'Portals, Vortals, and Communities'. I am attempting to deal with at least some of it in Membership by seperating out the mechanics of users and their content. though-I-do-want-to-see-renderable-as-zope-core-ly y'rs Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From andyd@nipltd.com Wed Sep 6 09:11:09 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 09:11:09 +0100 Subject: [Zope-PTK] PTK install Gottcha In-Reply-To: <39B5BF98.FDC62443@palladion.com> Message-ID: Tres Seaver wrote: > Sigh. Some of this problem is inherent in the fact that the PTK (really, > the sample implementation) is an amphibious beast: it resides partly on > the filesystem, and partly as "through-the-web" content in the ZODB. I > *intended* that the DemoPortal and Wizard product directories (created > from the "Distribution" tab of the TTW products) would be "fetchable" > and "installable" from CVS in the same way as the "filesystem" products > (PTKBase, PTKDeom, ZCallable); at the moment, the distribution tab > products don't seem to work properly, at least not on all systems (I > tested before checking in on my RH 6.2 Linux box, where all was well; > on my NT box, a fresh checkout bombs out with a GPF!?) OK, I happy just to get a black and white explanation why, which you have provided, and to know that you are aware of this issue. Do you want me to put an entry in the tracker? > Having to import the DemoPortal and Wizard export files won't go away > until we get a handle on a better mechanism for distributing the > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > the directory-based products for them from CVS, and revert the > installation instructions to indicate that import is required. That would be a very good idea and would save people scanning the archives of this mailing list for the answer. (Speaking from experience) > > P.S. This method does not fix my Unauthorised issue with > > discussion_thread_view but I have been able to reproduce the error on > > several machines using this method to install the PTK. > > Please enter a Tracker issue on this -- I can repro it, but > I likely won't remember to in the morning. > This I have done. Cheers -Andy From chrisw@nipltd.com Wed Sep 6 11:02:33 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 11:02:33 +0100 Subject: [Zope-PTK] PortalMembership ;-) References: <399F23C7.3DC7BD65@interfree.it> <39A1DF55.5088549A@libc.org> <39B525F0.1C25AA00@nipltd.com> <39B5B756.8E1BB80C@palladion.com> Message-ID: <39B61639.19B6C90F@nipltd.com> Thanks for the info :-) Chris Tres Seaver wrote: > > Chris Withers wrote: > > > > Bill Anderson wrote: > > > While it was originally part of the PTK, it was taken out by tazzz, and now maintained by yours truly. There is > > > currently no support for using it in the PTK, as it is still in development. Further details can be found from the Wiki > > > for it at: > > > > > > http://www.zope.org/Members/Bill/MembershipProductWiki/FrontPage > > > > Dopey question time: If it ain't in the PTK anymore, what's doing the > > job that it used to?!> > > Really dopey question@ just checking, what does it actually do? > > > > *grinz* > > The PTK used to depend on ZPatterns/LoginManager, which turned out to be > difficult, as those products weren't stabilizing quickly enough to require > everyone to use them; Kevin and Bill are maintaining the LM/ZPatterns > related stuff "on the side", for eventual reintegration with the PTK. > The "shipping" PTK has two tools, 'portal_membership' and > 'portal_registration', whose interfaces cover mostly the same territory; > the sample implementations of them provided useful, "ZODB-based" > versions, with "fancier" stuff left to either the MembershipProduct > or to other, "custom" implementations. > > Tres. > -- > ========================================================= > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Wed Sep 6 13:58:55 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 13:58:55 +0100 Subject: [Zope-PTK] PTK Tracker Message-ID: <39B63F8F.D8A7D00B@nipltd.com> Is it maybe time to 'de-cruftify' the PTK Tracker? There's a lot of really old stuff in there and I'm not sure how much of it is relevent... cheers, Chris PS: If people trust me, I'll happily go through and Zap stuff, but I might be a bit over-eager ;-) From andyd@nipltd.com Wed Sep 6 14:20:06 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 14:20:06 +0100 Subject: [Zope-PTK] FW: [Zope-PTK] PTK install Gottcha Message-ID: Just realised this was sent to me and not the list. -Andy -----Original Message----- From: Tres Seaver [mailto:tseaver@palladion.com] Sent: 06 September 2000 04:53 To: Andy Dawkins Subject: Re: [Zope-PTK] PTK install Gottcha Andy Dawkins wrote: > > Several People (including myself and ChrisW) have come across problems > installing the latest CVS checkout of the PTK. > > There have been a number of different errors which seem to be fixed if you > install the PTK in this following order. > > * Start Zope > * Go to the Control_Panel/Products > * Remove DemoPortal (If it exists) > * Remove Wizard (If it exists) > * Remove PTKBase (If it exists) > * Remove PTKDemo (If it exists) > * Remove ZCallable (If it exists) > * Checkout the latest CVS version of PTKDemo, PTKBase and ZCallable > * Copy PTKDemo, PTKBase and ZCallable to your zope/lib/python/Products/ > directory > * Copy DemoPortal.zexp and Wizard.zexp from zope/lib/python/Products/PTKDemo > to /zope/import > * Back in the Zope Control_Panel/Prodcuts import DemoPortal.zexp and > Wizard.zexp > * Restart Zope > > As well as telling everyone a method that seems to work for me, I am > interested to know why it has to be done this way. > > This issue has tormented several people including Chris and myself. Can we > have it fixed please? Sigh. Some of this problem is inherent in the fact that the PTK (really, the sample implementation) is an amphibious beast: it resides partly on the filesystem, and partly as "through-the-web" content in the ZODB. I *intended* that the DemoPortal and Wizard product directories (created from the "Distribution" tab of the TTW products) would be "fetchable" and "installable" from CVS in the same way as the "filesystem" products (PTKBase, PTKDeom, ZCallable); at the moment, the distribution tab products don't seem to work properly, at least not on all systems (I tested before checking in on my RH 6.2 Linux box, where all was well; on my NT box, a fresh checkout bombs out with a GPF!?) Having to import the DemoPortal and Wizard export files won't go away until we get a handle on a better mechanism for distributing the "through-the-web" stuff; in the meanwhile, I guess I'd better remove the directory-based products for them from CVS, and revert the installation instructions to indicate that import is required. > > Cheers > -Andy > > P.S. This method does not fix my Unauthorised issue with > discussion_thread_view but I have been able to reproduce the error on > several machines using this method to install the PTK. Please enter a Tracker issue on this -- I can repro it, but I likely won't remember to in the morning. http://www.zope.org/Products/PTK/Tracker Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Wed Sep 6 14:22:41 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 14:22:41 +0100 Subject: [Zope-PTK] Distribution Tab TTW Products References: Message-ID: <39B64521.84ACD0A0@nipltd.com> Tres Seaver wrote: > the distribution tab > products don't seem to work properly, at least not on all systems (I > tested before checking in on my RH 6.2 Linux box, where all was well; > on my NT box, a fresh checkout bombs out with a GPF!?) I noticed this too but I thought it was fixed in Zope 2.2.0? cheers, Chris From chrisw@nipltd.com Wed Sep 6 14:25:14 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 14:25:14 +0100 Subject: [Zope-PTK] PTK install Gottcha & Discussion Thread View Problem References: Message-ID: <39B645BA.F06461D3@nipltd.com> Tres Seaver wrote: > Having to import the DemoPortal and Wizard export files won't go away > until we get a handle on a better mechanism for distributing the > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > the directory-based products for them from CVS, and revert the installation > instructions to indicate that import is required. Andy found the order of import mattered WRT to installing PTK and restarting Zope... Is this important and/or documented anywhere? > Please enter a Tracker issue on this -- I can repro it, but > I likely won't remember to in the morning. > > http://www.zope.org/Products/PTK/Tracker Was that about the installation thing or the thread_view thing? cheers, Chris From andyd@nipltd.com Wed Sep 6 14:32:17 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 14:32:17 +0100 Subject: [Zope-PTK] PTK install Gottcha & Discussion Thread View Problem Message-ID: ChrisW Wrote: > > Tres Seaver wrote: > > Having to import the DemoPortal and Wizard export files won't go away > > until we get a handle on a better mechanism for distributing the > > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > > the directory-based products for them from CVS, and revert the > installation > > instructions to indicate that import is required. > > Andy found the order of import mattered WRT to installing PTK and > restarting Zope... > Is this important and/or documented anywhere? Tres Mentioned updating the Installation instructions to reflect this change. > > > Please enter a Tracker issue on this -- I can repro it, but > > I likely won't remember to in the morning. > > > > http://www.zope.org/Products/PTK/Tracker > > Was that about the installation thing or the thread_view thing? > Yes, that was about the thread_view thing. -Andy-Andy From andyd@nipltd.com Wed Sep 6 15:26:53 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 15:26:53 +0100 Subject: [Zope-PTK] Discussion Problems with PTK In-Reply-To: Message-ID: ChrisW and Myself sat down and had a good look at this one. Using Shanes ZDebug program we managed to find that in the discussion_thread_view method it was line 14 that was throwing up the unauthorised error: 01: 02: 03:

&dtml-title;

04: 05: 06: Above in thread: 07: 5">... : 08: 09: &dtml-title; 10: : 11: 12: 13: 14: 15: 16: &dtml-title;, 17: by 18: on 19: 20: 21: Tracing this to the getReplies method in the PTKDemo.Discussions 01: def getReplies(self): 02: """ 03: Return a sequence of the DiscussionResponse objects which are 04: associated with this Discussable 05: """ 06: catalog = self.portal_catalog 07: results = self.getReplyResults() 08: rids = map(lambda x: x.data_record_id_, results) 09: objects = map(catalog.getobject, rids) 10: return objects After going a little over the top with debug print statements we discovered that there is nothing wrong with this method, Bit of a red herring :-( So we reluctantly opened the can of worms that we loving refer to as treetag.py Seeing this line on the traceback: File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE we headed straight for line 337 to discover that the authorisation error has actually been raised by the treetag. 331: if unauth: 332: if have_arg('skip_unauthorized') and args['skip_unauthorized']: 333: items=list(items) 334: unauth.reverse() 335: for i in unauth: del items[i] 336: else: 337: raise ValidationError, unauth Changing the discussion_thread_view's line 14 to read: 14: Stopped the unauthorised error message but of course meant that we couldn't see anything. So we gave the discussion_thread_view method the proxy role of 'Manager' and that solved the issue permanantly. So we tried the other roles: Anonymous: Authentication Error Member: Authentication Error Owner: Success Reviewer: Success Manager: Success So it seems that the DTML_method doesn't have access to the DiscussionItems, why is this? My discussion_thread_view is indirectly owned by my Portal Manager (aka Me) Does setting the proxy role to 'Manager' raise any security issues? Now the problem has stopped I can get back to working on swishdot but it would be great to know the correct solution to this problem and most importantantly can we make it go away? Cheers -Andy From Jerry.Spicklemire@IFLYATA.COM Wed Sep 6 15:26:31 2000 From: Jerry.Spicklemire@IFLYATA.COM (Spicklemire, Jerry) Date: Wed, 6 Sep 2000 09:26:31 -0500 Subject: [Zope-PTK] Ownership, Alternates and Delegation Message-ID: <977A39E65CFCD3119ABF00D0B741D8497337BB@innt-73> Hi PTK Fans, There's a topic that may be addressed in the current state of the PTK, but I haven't noticed any discussion in any of the list postings, or on the Wikki. The workflow topic begs the question, "How does an Owner delegate, or assign an Alternate?" The classic example is the need to handle updates when the usal suspects are all out sick or on vacation. Any thoughts on the impact this little wrinkle might have on Membership, Roles, etc.? Thanks for the feedback, Jerry S. From hn75@gmx.de Wed Sep 6 12:12:34 2000 From: hn75@gmx.de (Hendrik Naumann) Date: Wed, 6 Sep 2000 13:12:34 +0200 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete Message-ID: <00090613123400.01412@femme> Hi I installed Zope-PTK from the file http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. I created some Members and realized that those (on a restarted Browser) are able to access the portal-configuration and even change settings there. If you need more infomations, please contact me. Hendrik Naumann From shane@digicool.com Wed Sep 6 16:10:51 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 06 Sep 2000 11:10:51 -0400 Subject: [Zope-PTK] Discussion Problems with PTK References: Message-ID: <39B65E7B.F6AECADB@digicool.com> Andy Dawkins wrote: > So it seems that the DTML_method doesn't have access to the DiscussionItems, > why is this? My discussion_thread_view is indirectly owned by my Portal > Manager (aka Me) I see the problem now. Try this patch: =================================================================== RCS file: /cvs-repository/ZopePTK/PTKDemo/Discussions.py,v retrieving revision 1.2 diff -u -r1.2 Discussions.py --- Discussions.py 2000/08/11 19:56:50 1.2 +++ Discussions.py 2000/09/06 15:10:32 @@ -38,6 +38,9 @@ if not hasattr(home, 'Correspondence'): home.manage_addPortalFolder('Correspondence') location = home.Correspondence + location.manage_permission('View', ['Anonymous'], 1) + location.manage_permission('Access contents information', + ['Anonymous'], 1) # Find an unused id in location id = int(DateTime().timeTime()) You see, each member folder has permissions set so that by default, no one can look at its contents. The "Correspondence" folders should have the opposite policy. BTW adding skip_unauthorized is probably the right thing to do. Shane From shane@zope.org Wed Sep 6 16:52:32 2000 From: shane@zope.org (Shane) Date: Wed, 6 Sep 2000 08:52:32 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - Discussions.py:1.3 Message-ID: <200009061552.IAA07285@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv7250 Modified Files: Discussions.py Log Message: Made discussion items visible by all users by default. From gryser@cgx.ch Wed Sep 6 18:59:49 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Wed, 6 Sep 2000 19:59:49 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] How to add topics In-Reply-To: <39B5C301.F9974F12@palladion.com> Message-ID: Tres Thank you, I see the text inside the portal under "My stuff" on the Desktop, but seems not publish, even I set status "published" But other problems are around (PTK 0.8.2) like en error whan hitting reconfigure the portal and "Click here to replace... I see in the index page the code for the news items ", line 0, in ? NameError: (see above) Thanks for help Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: Tres Seaver [mailto:tseaver@palladion.com] > Gesendet: Mittwoch, 6. September 2000 06:07 > An: gryser@cgx.ch > Cc: org Zope-PTK@zope. > Betreff: Re: [Zope-PTK] How to add topics > > > Gottfried Ryser wrote: > > > I feel a bit stupid, after installting the PTK (I'm a newbie) I checked > > around and tried to ad a document and news. I can add this > items, can review > > them and set a status, but can't see them finally on my portal. > > First, you aren't being stupid; getting this far is a major achievement, > given the current state of the package and docs. As a quick check, try > typing a word you *know* is present in one of the documents or news items > in the "search" box at the top of the portal; does your item appear in > the search result? If so, then congratulations! Your content is "there" > in the portal, you just need to "expose" it by editing the portal chrome, > to make it more obvious. > > If the search doesn't return the expected result, then check the current > "review status" of the document/news item (the "Status" under the icon and > id). Does it say, "Published"? If it does, then check the content again > for your search term. If it says "pending" or "private", then you need to > use the "Set status" action (perhaps as a different member, one with the > "Reviewer" role) to make it "published". > > > What did I > > wrong? And is there a bit more documentation on PTK? I hope to > contribute > > later with some stuff, I had worked with ColdFusion and have > build several > > smaller cms solutions. > > Most of the current documentation is available from the PTK home page: > > http://www.zope.org/PTK > > In particular, the "PTK Users' Guide", > http://www.zope.org/Products/PTK/PTK.html, while slightly older, is > the best "conceptual" overview; the "wiki", > http://www.zope.org/Products/PTK/ZWiki is where the "work-in-progress" > is documented. > > Thanks for persevering! We look forward to your contributions! > > Tres. > -- > ========================================================= > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > From fresh@bay-c.co.uk Wed Sep 6 19:17:44 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:17:44 +0100 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> Message-ID: <39B68A48.77A92FE0@bay-c.co.uk> Shane Hathaway wrote: > > So it seems that the DTML_method doesn't have access to the DiscussionItems, > > why is this? My discussion_thread_view is indirectly owned by my Portal > > Manager (aka Me) > > I see the problem now. Try this patch: And, of course, now so do I. The question is, why was this _so_ hard to track down?! :-( > BTW adding skip_unauthorized is probably the right thing to do. Agreed... afterall, you may want to have private discussions. Would these permissions affect the cataloging too? I daw the fix for Discussions.py get checked in, but has the skip_unauthorized fix been checked in yet? cheers, Chris From fresh@bay-c.co.uk Wed Sep 6 19:21:54 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:21:54 +0100 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> Message-ID: <39B68B42.A33F3F6E@bay-c.co.uk> Bill Anderson wrote: > Whaddya think of that? *grinz* I'm enjoying playing the stoopid person today (yes, yes, I know ' I do it so well' ;-) Well, in that role, what would really help me was a description of the interfaces the policy object exposes and how they differ from the ones provided by the PTK equivalent object. Then everyone can compare and see which they think is right... Apologies If I've missed anything obvious :-S Chris From fresh@bay-c.co.uk Wed Sep 6 19:23:45 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:23:45 +0100 Subject: [Zope-PTK] Avoiding confusion with names is good :-) References: Message-ID: <39B68BB1.72E822FB@bay-c.co.uk> kamon ayeva wrote: > I think we should pay attention to not introduce new naming/concept related > confusion in people's mind. A very important point :-) Out of interest, has a new name for 'the PTK' been decided on yet? If so, will it apply to the PTKDemo bit or the PTKBase bit? (please no-one say 'both' :-S) cheers, Chris From fresh@bay-c.co.uk Wed Sep 6 19:27:08 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:27:08 +0100 Subject: [Zope-PTK] What is the PTK? References: <39B5C2F0.8FB5D4A7@libc.org> Message-ID: <39B68C7C.CF5B50AC@bay-c.co.uk> Bill Anderson wrote: > > - the "everything derive from one base class" idea, > > Actually, IIRC, the original PTK stuff did this, adn we are currently moving away from it. Yeah, the 'tools' way of doing things seems to be a much better way to go. That said, why do 'tools' need to be instantiated inside a Portal object? Also, is it just me, or is ther currently still a need to subclass PortalContent? If so, why so, and is it a good idea? I'm just fumbling in he dark here still, so please tell me if I'm way out... > > - and some ideas we are currently experimenting about "per meta_type > > templating" > > Elaborate please. Yes, please do :-) > though-I-do-want-to-see-renderable-as-zope-core-ly y'rs Bill Here, here! :-) (some of ZPatterns could do with being there too IMVHO) cheers, Chris From shane@digicool.com Wed Sep 6 19:33:03 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 06 Sep 2000 14:33:03 -0400 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> Message-ID: <39B68DDF.A6363412@digicool.com> Chris Withers wrote: > I saw the fix for Discussions.py get checked in, but has the > skip_unauthorized fix been checked in yet? Nope, I wanted to get a reaction first. Shane From stefan.goerres@gsysteme.de Wed Sep 6 22:40:23 2000 From: stefan.goerres@gsysteme.de (Stefan Goerres) Date: Wed, 6 Sep 2000 23:40:23 +0200 Subject: [Zope-PTK] Login Manager broken? Message-ID: <004f01c0184b$11f64560$0100a8c0@nbmz1> Hi you gurus out there, Login Manager shows up broken... :((( So since I'm a purely newbie is there any advice on this? Traceback (innermost last): File "/usr/src/packages/BUILD/Zope-2.1.6-src/lib/python/OFS/Application.py" , line 387, in import_products File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", line 7, in ? from Products.ZPatterns.PlugIns import PlugInGroup File "/usr/share/zope/lib/python/Products/ZPatterns/__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "/usr/share/zope/lib/python/Products/ZPatterns/Rack.py", line 1, in ? from DataManagers import DataManager File "/usr/share/zope/lib/python/Products/ZPatterns/DataManagers.py", line 7, in ? from AttributeProviders import AttributeProvider File "/usr/share/zope/lib/python/Products/ZPatterns/AttributeProviders.py", line 1, in ? from Proxy import ProxyManager File "/usr/share/zope/lib/python/Products/ZPatterns/Proxy.py", line 2, in ? from AccessControl import getSecurityManager ImportError: cannot import name getSecurityManager Thanks Steve From tseaver@digicool.com Thu Sep 7 00:14:46 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 06 Sep 2000 19:14:46 -0400 Subject: [Zope-PTK] AW: [Zope-PTK] How to add topics References: Message-ID: <39B6CFE6.289AE20E@digicool.com> Gottfried Ryser wrote: > Thank you, I see the text inside the portal under "My stuff" on the Desktop, > but seems not publish, even I set status "published" This sounds like a permission problem -- "normal" users can't publish their own content, but only submit it for review. Members with the "Reviewer" role can then publish or reject it; the "Contributor" role is for "trusted" users, who can publish without review. > But other problems are > around (PTK 0.8.2) like en error whan hitting reconfigure the portal and > "Click here to replace... > > I see in the index page the code for the news items " Do I need other modules like ZCallable? > the following error msg: > > Error Type: NameError > Error Value: Control_Panel Hmm, that looks like a bug in the PTK; normal through-the-web code doesn't traverse through the Control Panel like that. > > ---------------------------------------------------------------------------- > ---- > > Troubleshooting Suggestions > > This resource may be trying to reference a nonexistent object or variable > Control_Panel. > 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/Zope2/lib/python/ZPublisher/Publish.py, line 222, in > publish_module > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: DemoPortalBase) > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in > publish > File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply > (Object: select_interface) > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: select_interface) > File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 172, in __call__ > (Object: select_interface) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, > in __call__ > (Object: select_interface) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_In.py, line 633, in > renderwob > (Object: Control_Panel.Products.DemoPortal.Interfaces.objectIds()) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in > eval > (Object: Control_Panel.Products.DemoPortal.Interfaces.objectIds()) > (Info: Control_Panel) > File , line 0, in ? > NameError: (see above) > > Thanks for help > > Gottfried Ryser -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Thu Sep 7 00:23:22 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 06 Sep 2000 19:23:22 -0400 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete References: <00090613123400.01412@femme> Message-ID: <39B6D1EA.8740F5E0@digicool.com> Hendrik Naumann wrote: > > Hi > > I installed Zope-PTK from the file > http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz > on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. > > I created some Members and realized that those (on a restarted > Browser) are able to access the portal-configuration and even change > settings there. > > If you need more infomations, please contact me. We have a tracker issue on this: http://www.zope.org/Products/PTK/Tracker/82 Is that the same behavior you notice? I haven't reproduced it. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@libc.org Thu Sep 7 07:46:52 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 07 Sep 2000 00:46:52 -0600 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> Message-ID: <39B739DC.96F8B4E@libc.org> Chris Withers wrote: > > Bill Anderson wrote: > > Whaddya think of that? > > *grinz* I'm enjoying playing the stoopid person today (yes, yes, I know > ' I do it so well' ;-) Typecasting. Blame it on the casting agent. ;^)= > > Well, in that role, what would really help me was a description of the > interfaces the policy object exposes and how they differ from the ones > provided by the PTK equivalent object. As soon as I have them all worked out ;) > > Then everyone can compare and see which they think is right... IMO, things dealing with authentication should _not_ be defined by the PTK. That is the realm of user management, which the PTK is not (AIUI) aimed at doing. It has the current default setup now mainly out of (AIUI) a need to have _something_ to do it. Basically, there are only a few variations on your basic portal. Authentication policies a few more. Add them together and .. dman that's alot of permutations. By leaving authentication policies to the user management tool, you keep the basic PTK simple, as it should be. The PTK itsself should basically, IMO, call things like 'authenticate_User', 'logout_User', perhaps even 'get_User'. Anything that deals with user authentication should no tbe implemented in the PTK. do this and you get conflict and confusion (witness the 'Desktop backgroun' control conflict when using Enlightenment and GNOME. Someone has to give). What should be done, is that the PTK calls a predefined User Management API. The default implementation of PTK Demo (remember, it is just that, a demo) should come with some sort of "Zope User Management API" that abides by the ZUMAPI. That's part of why I never liked the name of PTK; it didn't match the common uses of it as implemented. Let's face reality, PTKDemo is not a "Portal Site" as implemented, but rather a "Community Site". See my Wiki for further details. Soon I hope to have more details on those put on zope.org. Now, as to what that API should look like, that's an entirely different animal. I have some ideas though. Perhaps a Proposal could be written, as soon as I get the time. just some off the cuff ideas: authenticate_User Used for user log in. Returns Success or Failure logout_User Used to log the user out. Likely returns a redirect url. get_User Used when you need the user object (useful or not?), and returns the object itsself. (What about SQL-Authed Users?) get_UserPage Used ot get the user's URL if any. In Community sites that implement a Member Folder (such as PTKDemo), it would return the URL to the User's Folder. In sites that don't it can return the URL to their 'Profile Page' or whatever stands in place (maybe a redirect or something). Returns a URL. mail_UserPassword Here is the tricky one, but only for what it returns. The UMP would do the work, and should return a URL, or an actual page fo rth euser to see. Then, a User Management Product would implement the behind the scenes methods to return the required result. Ideas? Suggestions, other than checking into the local State Hospital (Looney Bin). Bill. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From andyd@nipltd.com Thu Sep 7 08:47:20 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 08:47:20 +0100 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete In-Reply-To: <39B6D1EA.8740F5E0@digicool.com> Message-ID: I also noticed this bug in ZopePTK-0.8.2. Basically the 'Reconfigure Portal' menu option appears for standard members sometime in the toolbox. I also believe that at Euro Zope in Paris Paul admitted it was a bug. Although the bug seems to be fixed in the latest CVS checkout, as I haven't seen it since I upgraded. -Andy > -----Original Message----- > From: tseaver@zope.org [mailto:tseaver@zope.org]On Behalf Of Tres Seaver > Sent: 07 September 2000 00:23 > To: hn75@gmx.de > Cc: zope-ptk@zope.org > Subject: Re: [Zope-PTK] Security Bug in version 0.8.2-complete > > > Hendrik Naumann wrote: > > > > Hi > > > > I installed Zope-PTK from the file > > http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz > > on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. > > > > I created some Members and realized that those (on a restarted > > Browser) are able to access the portal-configuration and even change > > settings there. > > > > If you need more infomations, please contact me. > > We have a tracker issue on this: > > http://www.zope.org/Products/PTK/Tracker/82 > > Is that the same behavior you notice? I haven't reproduced it. > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From chrisw@nipltd.com Thu Sep 7 09:19:50 2000 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 07 Sep 2000 09:19:50 +0100 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> <39B68DDF.A6363412@digicool.com> Message-ID: <39B74FA6.B914CF0C@nipltd.com> Shane Hathaway wrote: > > Chris Withers wrote: > > I saw the fix for Discussions.py get checked in, but has the > > skip_unauthorized fix been checked in yet? > > Nope, I wanted to get a reaction first. Well, it sounds like a good idea to me ;-) Chris From neeloy_saha@infy.com Thu Sep 7 13:29:26 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Thu, 7 Sep 2000 17:59:26 +0530 Subject: [Zope-PTK] Portal Toolkit and NTUserFolder Message-ID: <8EE756E49A17D21194860008C7F49AFE045290C8@TWRMSG01> Hi all, Can anybody tell me how to integrate the NTUserFolder and the portal toolkit -neeloy From kayeva@hotmail.com Thu Sep 7 13:36:53 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Thu, 07 Sep 2000 12:36:53 GMT Subject: [Zope-PTK] Dynamic meta-type based templating ? (was : What is the PTK?) Message-ID: Hi, Bill and Chris asking me to elaborate on templating ideas we are currently testing with Maik Roeder and Tariq Krim: >From: Chris Withers >To: Bill Anderson > > > - and some ideas we are currently experimenting about "per meta_type > > > templating" > > > > Elaborate please. > >Yes, please do :-) OK, you asked for it, so here it is, but it is more of a Proof of concept attempt. ##### Goal : Allow easy creation and management of the Presentation Logic for sites that have sub-sites (that may also have sub-sites). Application domains Community Sites Vortals Application Service Providers Actors Zope Developer / Administrator Web Designer Content Manager Use cases Scenario 1: One template (or skin) per object type - Zope Developer develops a product for the site's Application Logic. - Zope Developer provides default Presentation Logic within the product. - Content Manager instanciates site objects with the product. - During object instanciation, Content Manager chooses to affect a specific skin to the object or not to. No specific skin means that the object acquires its presentation from its container. - After content object instanciation, Web Designer can access the instance skin method where applied and customize it Scenario 2: Multiple templates (or skins) per object type - Zope Developer develops a product for the site's Application Logic. - Zope Developer provides several Presentation Logic methods for each object of the product. - Web Developer provides several skins (i.e. good looking HTML and graphics) for each Presentation Logic. - Content Manager instanciates site objects with the product. - During object instanciation, Content Manager chooses a/ a skin for the object among the available skins, or b/ not to affect a specific skin to the object. No specific skin means that the object acquires its presentation from its container. - After content object instanciation, Web Designer can still access the instance skin method where applied and customize it. Solution attempt (so far) 1/ Create a method called [ZClass_Name]_Template in the ZClass along with its constructor methods. A patch to the ZClasses product could allow optional creation of this method at the ZClass creation. In the case of multiple skins, create a template method for each. As a convention, you could just use ..._Template1, ..._Template2, ... 2/ Add a code snippet in the ZClass 'add' method in order to copy the template method to the instance if 'Local Skin option' has been selected. Each copy gets the id 'standard_mptrois_template' (for example). In the case of multiple skins, the add method should present the available skins to the Content Manager for selection. 3/ In the base ZClass DocumentFolderClass, we have an index_html method which calls standard_mptrois_template. So this method is the one that is used for rendering all over the ZDP-Tools based site. 4/ The Web Designer can put the generic skin in the [ZClass_Name_Template method of the related class and, then when needed, can customize the standard_mptrois_template of the object instance. Go for your feddback. Regards, Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From nathalie@pilotsystems.net Thu Sep 7 14:42:23 2000 From: nathalie@pilotsystems.net (Nathalie) Date: Thu, 7 Sep 2000 15:42:23 +0200 Subject: [Zope-PTK] my e-mail Message-ID: <001701c018d1$749f43c0$cbdf84c3@fr.cybercable> This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C018E2.376F7220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ------=_NextPart_000_0014_01C018E2.376F7220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
------=_NextPart_000_0014_01C018E2.376F7220-- From pje@telecommunity.com Thu Sep 7 15:07:29 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 07 Sep 2000 09:07:29 -0500 Subject: [Zope-PTK] Login Manager broken? In-Reply-To: <004f01c0184b$11f64560$0100a8c0@nbmz1> Message-ID: <200009071408.HAA31018@zope.codeit.com> At 11:40 PM 9/6/00 +0200, Stefan Goerres wrote: >Hi you gurus out there, > >Login Manager shows up broken... :((( So since I'm a purely newbie is >there any advice on this? > > from AccessControl import getSecurityManager >ImportError: cannot import name getSecurityManager > This looks like you're using a Zope 2.1.x version, or else your Zope installation is broken somehow. From andyd@nipltd.com Thu Sep 7 15:43:30 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 15:43:30 +0100 Subject: [Zope-PTK] Old password reset bug is back Message-ID: Back in the days of Zope 2.1.6 there was an issue that if you went in to a user object to change the users role you had to change the password before you could save the changes. The patch for this, which has made its way in to 2.2.1, is if the password field contains the value 'password' and if the confirm field contains the value 'confirm' then the password would not be changed. This works...... ...except in the PTK In the PTK if the password field contains 'password' and the confirm field contain 'confirm' then the password is change to None, which is not desirable at all. Basically there is no warning of this until that user tries logging on and finds his/her password doesn't work any more. Any chance of a fix? Cheers. -Andy From shane@digicool.com Thu Sep 7 15:54:47 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 10:54:47 -0400 Subject: [Zope-PTK] Old password reset bug is back References: Message-ID: <39B7AC37.47A2093D@digicool.com> Andy Dawkins wrote: > > Back in the days of Zope 2.1.6 there was an issue that if you went in to a > user object to change the users role you had to change the password before > you could save the changes. > > The patch for this, which has made its way in to 2.2.1, is if the password > field contains the value 'password' and if the confirm field contains the > value 'confirm' then the password would not be changed. > > This works...... > ...except in the PTK > > In the PTK if the password field contains 'password' and the confirm field > contain 'confirm' then the password is change to None, which is not > desirable at all. > > Basically there is no warning of this until that user tries logging on and > finds his/her password doesn't work any more. What acl_users implementation are you using? Shane From andyd@nipltd.com Thu Sep 7 16:00:54 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 16:00:54 +0100 Subject: [Zope-PTK] Old password reset bug is back In-Reply-To: <39B7AC37.47A2093D@digicool.com> Message-ID: > What acl_users implementation are you using? > Currently Just the standard Zope provided acl_users. (Don't know its official name - users.py i guess) -Andy From shane@zope.org Thu Sep 7 16:06:34 2000 From: shane@zope.org (Shane) Date: Thu, 7 Sep 2000 08:06:34 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - ZODBMember.py:1.3 Message-ID: <200009071506.IAA32583@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv32566 Modified Files: ZODBMember.py Log Message: Correction for blank password bug. From shane@digicool.com Thu Sep 7 16:07:04 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 11:07:04 -0400 Subject: [Zope-PTK] Old password reset bug is back References: Message-ID: <39B7AF18.C3BF0374@digicool.com> Andy Dawkins wrote: > > > What acl_users implementation are you using? > > > > Currently Just the standard Zope provided acl_users. > (Don't know its official name - users.py i guess) Corrected in CVS. Thank you! Shane From andyd@nipltd.com Thu Sep 7 16:11:17 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 16:11:17 +0100 Subject: [Zope-PTK] Old password reset bug is back In-Reply-To: <39B7AF18.C3BF0374@digicool.com> Message-ID: No thankyou. You're a star -Andy > -----Original Message----- > From: shane@zope.org [mailto:shane@zope.org]On Behalf Of Shane Hathaway > Sent: 07 September 2000 16:07 > To: Andy Dawkins > Cc: zope-ptk@zope.org > Subject: Re: [Zope-PTK] Old password reset bug is back > > > Andy Dawkins wrote: > > > > > What acl_users implementation are you using? > > > > > > > Currently Just the standard Zope provided acl_users. > > (Don't know its official name - users.py i guess) > > Corrected in CVS. Thank you! > > Shane > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From dan@sol.control.com Thu Sep 7 15:18:36 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 10:18:36 -0400 (EDT) Subject: [Zope-PTK] password policy change interface In-Reply-To: <39B739DC.96F8B4E@libc.org> References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> <39B739DC.96F8B4E@libc.org> Message-ID: <14775.41916.552068.58970@sol.control.com> Bill Anderson writes: > IMO, things dealing with authentication should _not_ be defined by the > PTK. That is the realm of user management, which the PTK is not (AIUI) > aimed at doing. It has the current default setup now mainly out of > (AIUI) a need to have _something_ to do it. I agree. > get_User > Used when you need the user object (useful or not?), and returns the > object itsself. (What about SQL-Authed Users?) get_User may not be needed. What is needed is something like get_PTK_user_property_page(ick!). Yeah, I'm drawing from ZPatterns here, but this is a place where the concept of different property sets for different users of a common service makes a lot of sense. From shane@digicool.com Thu Sep 7 16:16:07 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 11:16:07 -0400 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> <39B739DC.96F8B4E@libc.org> Message-ID: <39B7B137.193115AA@digicool.com> Bill Anderson wrote: > The PTK itsself should basically, IMO, call things like 'authenticate_User', 'logout_User', perhaps even 'get_User'. > Anything that deals with user authentication should no tbe implemented in the PTK. do this and you get conflict and > confusion (witness the 'Desktop backgroun' control conflict when using Enlightenment and GNOME. Someone has to give). > (snip) > Then, a User Management Product would implement the behind the scenes methods to return the required result. > > Ideas? Suggestions, other than checking into the local State Hospital (Looney Bin). My suggestion is that we simply modify the portal_membership and portal_registration API's to make all kinds of authentication possible. They are closer to what you're suggesting than you realize. Note that they do not constitute the complete policy; the final details are implemented in DTML (and will soon move to TTW Python Methods). Thus we don't have to implement all possible policies--we only have to make them possible. Please look at interfaces/portal_membership and interfaces/portal_registration. Shane From dan@sol.control.com Thu Sep 7 15:04:46 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 10:04:46 -0400 (EDT) Subject: [Zope-PTK] Discussion Problems with PTK In-Reply-To: <39B68DDF.A6363412@digicool.com> References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> <39B68DDF.A6363412@digicool.com> Message-ID: <14775.41086.235128.716912@sol.control.com> Shane Hathaway writes: > Chris Withers wrote: > > I saw the fix for Discussions.py get checked in, but has the > > skip_unauthorized fix been checked in yet? > > Nope, I wanted to get a reaction first. It's needed. You're right that some sites will want private discussions as well as public ones -- some may even want to mix public and private threads (even though the idea makes me shudder :-)). It's better to not show things the user can't see than to generate an error. The alternative would be to ensure that everything that looks as discussion threads checks for permissions first and displays a site specific error message. That might work if you don't allow mixed public/private discussions, but it would involve extra work and chance for error. It would also raise the quite justifiable user question: "Why the #%*&! are you showing me this if I can't look at it?". From chrisw@nipltd.com Fri Sep 8 10:52:48 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 08 Sep 2000 10:52:48 +0100 Subject: [Zope-PTK] Re: PTK - member can reconfigure portal References: <017330860.20000907230359@swipnet.se> Message-ID: <39B8B6F0.629EEAB0@nipltd.com> Anders Eriksson wrote: > I have joined the Portal and when I log in as this member and select > 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will > let this user/member change things that only the owner/super should be > able to do!(?) This could be one of two things, IIUC: 1. You might still be 'logged in' through HTTP Basic Authentication from when you created the portal. Try closing all your browsers, opening up a new one, joining the portal with that one and see if the problem is still there... 2. ...if it is, it's a bug, stick it in the PTK Tracker: http://www.zope.org/Products/PTK/Tracker cheers, Chris PS: This sort of thing is probably better suited to the zope-ptk@zope.org mailing list. From andyd@nipltd.com Fri Sep 8 11:11:35 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Fri, 8 Sep 2000 11:11:35 +0100 Subject: [Zope-PTK] Re: PTK - member can reconfigure portal In-Reply-To: <39B8B6F0.629EEAB0@nipltd.com> Message-ID: As stated before on the zope-ptk@zope.org list. This is a know bug with the PTK 0.8.2 This has been fixed in the latest PTK CVS. There are two solutions to this bug. 1) Download the latest PTK CVS 2) Wait for the next snap shot to be released. -Andy (I have also been told there is a place you can go to download unofficial PTK CVS snapshots, sorry I can't remember the URL - It is on this list somewhere) > -----Original Message----- > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf > Of Chris Withers > Sent: 08 September 2000 10:53 > To: Anders Eriksson > Cc: zope@zope.org; zope-ptk@zope.org > Subject: [Zope-PTK] Re: PTK - member can reconfigure portal > > > Anders Eriksson wrote: > > I have joined the Portal and when I log in as this member and select > > 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will > > let this user/member change things that only the owner/super should be > > able to do!(?) > > This could be one of two things, IIUC: > > 1. You might still be 'logged in' through HTTP Basic Authentication from > when you created the portal. Try closing all your browsers, opening up a > new one, joining the portal with that one and see if the problem is > still there... > > 2. ...if it is, it's a bug, stick it in the PTK Tracker: > > http://www.zope.org/Products/PTK/Tracker > > cheers, > > Chris > > PS: This sort of thing is probably better suited to the > zope-ptk@zope.org mailing list. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From Didier Georgieff Sat Sep 9 10:01:36 2000 From: Didier Georgieff (Didier Georgieff) Date: Sat, 9 Sep 2000 10:01:36 +0100 Subject: [Zope-PTK] KeyError email on mail_password_form Message-ID: <39BA0A80.18858.5A97484@localhost> Hello, I just installed the latest PTK, and got this problem; when trying to send a forgotten password via mail_password_form. While trying to dig the problem, i found a (i guess an obvious typo) in an other part (mange_user_form instead of manage_user_form). What is the best way to submit this problem (and may be future other testings, as we are planning to use the future PTK at a huge level) ?. And again thanks ALL for such a great future tool. Error Type: KeyError Error Value: email Traceback (innermost last): File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zope\Zope221\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zope\Zope221\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: mail_password) File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: mail_password) File C:\Zope\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: mail_password) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: mail_password) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_Return.py, line 106, in render (Object: portal_registration.mailPassword(REQUEST['userid'], REQUEST)) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: portal_registration.mailPassword(REQUEST['userid'], REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Zope\Zope221\lib\python\Products\PTKDemo\DemoRegistrationT ool.py, line 140, in mailPassword (Object: portal_registration) File C:\Zope\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: mail_password_template) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: mail_password_template) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: portal_properties) File C:\Zope\Zope221\lib\python\Products\MailHost\SendMailTag.py, line 187, in render (Object: MailHost) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: ) KeyError: (see above) -- Divine Rites - Strasbourg, France ======================================================================= 10" Storming the Citadel available via mail order only ! Check it on http://www.divinerites.com/dr_drr.htm Radio Birdman, New Christs, Deniz Tek, Citadel Records & more ... http://www.divinerites.com From paul@digicool.com Sat Sep 9 14:31:48 2000 From: paul@digicool.com (Paul Everitt) Date: Sat, 09 Sep 2000 09:31:48 -0400 Subject: [Zope-PTK] Avoiding confusion with names is good :-) References: <39B68BB1.72E822FB@bay-c.co.uk> Message-ID: <39BA3BC4.B5ED1096@digicool.com> Chris Withers wrote: > Out of interest, has a new name for 'the PTK' been decided on yet? If > so, will it apply to the PTKDemo bit or the PTKBase bit? > > (please no-one say 'both' :-S) How about "each"? :^) Let me describe what we'd like to accomplish at DC for the PTK. We intend to take something that feels mostly like a "usable out of the box" product for the Zope platform, and take it into the content management market. At the same time, we need the components exposed with big shiny knobs for customization in our consulting business. To make it perfectly clear, our product is Open Source, and our goal is to make sure that other people/companies adopt it, add value to it, make money from it, etc. Thus I'd like to see the "son-of-PTK" to become a unifier for content management in Zope. With that in mind, I'm thinking about a name for the product, and then perhaps tack on "toolkit" or "framework" (or whatever) for the technology. Alternatively, we come up with no name for the second part; rather, we just name the important pieces (Membership, etc.). I've come up with a bunch of names, falling into a series of strategies, but I haven't gotten legal review on some of my assumptions. :^( --Paul From Didier Georgieff Sat Sep 9 19:45:40 2000 From: Didier Georgieff (Didier Georgieff) Date: Sat, 9 Sep 2000 19:45:40 +0100 Subject: [Zope-PTK] Re: KeyError email on mail_password_form Message-ID: <39BA9364.1351.7C04523@localhost> Well, I got the reason : my new test machine is behind a firewall and Zope MailHost is not working anymore. So i guess i have to sort it out on the zope list. Sorry for the false report. On 9 Sep 2000, at 10:01, Didier Georgieff (zope-ptk@zope.org) wrote: > I just installed the latest PTK, and got this problem; > when trying to send a forgotten password via mail_password_form. > Error Type: KeyError > Error Value: email From rik.hoekstra@inghist.nl Sun Sep 10 21:26:05 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Sun, 10 Sep 2000 22:26:05 +0200 Subject: [Zope-PTK] Dynamic meta-type based templating ? (was : What is the PTK?) References: Message-ID: <007a01c01b65$598c7d00$fe5da182@michieltje> This reminds me a lot of what I am trying to do with my ZECF product . Currently mostly in the making, tho there is a preprerelease at my personal pages http://www.zope.org/Members/Hoekstra/ZECF and some documentation in dubious formatting at http://www.zope.org/Members/Hoekstra/ZECF/info and http://www.zope.org/Members/Hoekstra/ZECF/UsingZECF All this reflects much of the discussion about roles at http://www.zope.org/Wikis/zope-edu/RolesUseCases As I read Kamon's mail, it's approach is a bit different while the problem is the same: sites with subsites, with even more subsites. Not only layout definition is dynamic, but so is the definition of properties in sites. Nested is basically confined to three levels: - Manager (in this case the manager of Educational sites) - Layout manager (for want of a better word) - Course manager Course managers may, in good Zope fashion hand down responsabilities further down the chain (for example to students) Rik P.S. there is a much improved version at my home development machine, but I can't seem to find time to finish it. I've stopped announcing new versions (sigh), though they're in the pipeline. The new version has something of a standard layout that uses the standard_html_header and adds some stuff to it. Furthermore, there is a set of layout items to override if you want to change it (basically a header, a footer and a stylesheet). Note also that a previous version was implemented in a live situation at a Dutch University (where I don't work anymore) and has been in use for a year now. From mtaylor@information-innovation.com Mon Sep 11 11:06:03 2000 From: mtaylor@information-innovation.com (Monty Taylor) Date: Mon, 11 Sep 2000 12:06:03 +0200 Subject: [Zope-PTK] Categorization, ZTopics and Portal Functionality Message-ID: <39BCAE8B.28394CC4@information-innovation.com> Hey all. I've been fairly vacant in my attention to this list recently (vactions and all) so forgive me if we've already covered this. I searched through the list and found some stuff, which I'm basing some of this on. One of the things that I need, and that it seems that lots of people want, is categorization. The ZTopics product goes a long way towards this, but we're still missing one thing - a Portal Manager should be able to manage categories without having to go into the management interface. Here's what I'm going to try to put together over the next few days (I have multiple projects, some with deadlines, that all want something like this) but I'm going to need a bit of help. Category product. User chooses to add a Category. User chooses where in the Category hierarchy he wants this Category to live. Adding the Category creates a ZTopic that lives in the selected container. (simple so far, right?) Modify current Portal Products. User should be able to 'Categorize' any given portal product. (If he can publish it, he should be able to categorize it as well.) Maybe modify Set status. (?) Multiple categories should be supported. The Category selection boxes can be generated from a simple Catalog search for meta_type="ZTopic" The thing I'm not certain of is the storing of the Category selection for each product. If we use Subject, (here's where I was reading earlier posts) we store a list of key words, right? So if we have : Categories- Cat1- Cat2- Cat3- We could have a select box filled with: 'Cat1','Cat1:Cat2','Cat3' -- this would allow for independance of sub-categories OR 'Cat1','Cat2','Cat3' -- in which each category or sub-categoy would have to be unique, but would allow for interesting cross-referencing possibilities. This doesn't imply category structure during categorization, though. OR have the select box list 'Cat1','Cat1:Cat2','Cat3' but store 'Cat1','Cat2','Cat3' I think I like the last one, but it could be confusing for maintainence. I also wonder about access control on categories, but that still may have to fall-back to using the management interface. Any thoughts, comments, ideas? I'm going to start working, but if anyone sees and landmines or is already working on something similar, please let me know. Monty From kayeva@hotmail.com Mon Sep 11 21:25:05 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Mon, 11 Sep 2000 20:25:05 GMT Subject: [Zope-PTK] PortalMembership problem - Help Please !!!!!!!!! Message-ID: Hi, I just tried to install PortalMembership on a development site, and I can no more access ZClass instances that were created with a previous version of Membership I had. The error message that keeps coming is: AttributeError, _setRack I hope someone can help if not nearly 2 weeks work are lost. Many thanks. Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From kamonayeva@yahoo.com Tue Sep 12 01:42:56 2000 From: kamonayeva@yahoo.com (Kamon Ayeva) Date: Mon, 11 Sep 2000 17:42:56 -0700 (PDT) Subject: [Zope-PTK] PortalMembership 0.7.5 problem Message-ID: <20000912004256.29473.qmail@web9502.mail.yahoo.com> Hi, Earlier I wrote: >I just tried to install PortalMembership on a >development site, and I can no >more access ZClass instances that were created with >a previous version of Membership I had. >The error message that keeps coming is: >AttributeError, _setRack > >I hope someone can help if not nearly 2 weeks work >are lost. > >Many thanks. >Kamon Here are more details: Zope 2.2.1 ZPatterns 0.4.1snap1 Login Manager 0.8.7a1 Python Methods 0.1.7 Membership and PortalMembership.zexp 0.7.5 I can regain access to the ZODB and create a User Folder with a Manager account, but then when I try to create a new Portal Membership system with the manager account, I get: Zope Error Zope has encountered an error while publishing this resource. Error Type: SystemError Error Value: Failed to import class _ZClass_for_MemberMixin from module Products.Membership My ZClass instances are still broken and I don't know how to recover them. Any help is much appreciated. -- Kamon __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From js@aixtraware.de Tue Sep 12 14:11:41 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 15:11:41 +0200 (CEST) Subject: [Zope-PTK] how to render a members document ? Message-ID: hi, how can I render a members published pure document-content without any properties like "created by" for an anonymous user visiting the site ? 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 bill@noreboots.com Tue Sep 12 17:22:18 2000 From: bill@noreboots.com (Bill Anderson) Date: Tue, 12 Sep 2000 10:22:18 -0600 Subject: [Zope-PTK] PortalMembership problem - Help Please !!!!!!!!! References: Message-ID: <39BE583A.B85BEB25@noreboots.com> kamon ayeva wrote: > > Hi, > > I just tried to install PortalMembership on a development site, and I can no > more access ZClass instances that were created with > a previous version of Membership I had. > The error message that keeps coming is: AttributeError, _setRack > > I hope someone can help if not nearly 2 weeks work are lost. Not necessarily. You should be able to undo the whole thing. I have before. As to the error .... Dunno, haven't seen it. How exactly did you perform the upgrade, what was running prior to the upgrade, etc.. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From js@aixtraware.de Tue Sep 12 18:51:30 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 19:51:30 +0200 (CEST) Subject: [Zope-PTK] how to coordinate development Message-ID: Hi, If I write some improvements,additions for the DemoPortal, how can we coordinate, that not two people do the same, and if the improvement is ready to use, how to share it with the community ? 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 js@aixtraware.de Tue Sep 12 19:13:57 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 20:13:57 +0200 (CEST) Subject: [Zope-PTK] how to render a members document ? In-Reply-To: Message-ID: to answer my own question: I modified: ../Products/PTKDemo/dtml/documentView.dtml like so: <--- insert <--- insert On Tue, 12 Sep 2000, Joachim Schmitz wrote: > hi, > > how can I render a members published pure document-content without any > properties like "created by" for an anonymous user visiting the site ? > > 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 > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > > 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 Anders Eriksson Tue Sep 12 21:13:48 2000 From: Anders Eriksson (Anders Eriksson) Date: Tue, 12 Sep 2000 22:13:48 +0200 Subject: [Zope-PTK] Portal Membership System - Attribute error Message-ID: <10211729265.20000912221348@swipnet.se> Hello, I create a Portal and create a supervisor with the wizard. Then I close IE and login as this supervisor. When I now try to add the Portal Membership System I get this error: Error Type: AttributeError Error Value: __call__ and this traceback: Traceback (innermost last): File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 222, in publish_module File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\Program\SweScout\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\Program\SweScout\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File D:\Program\SweScout\lib\python\App\Factory.py, line 178, in index_html (Object: RoleManager) AttributeError: (see above) Anyone who knows what's wrong and how I fix it? -- Best regards, Anders mailto:ame@swipnet.se The Romans didn't find algebra very challenging, because X was always 10. From bill@noreboots.com Tue Sep 12 23:55:39 2000 From: bill@noreboots.com (Bill Anderson) Date: Tue, 12 Sep 2000 16:55:39 -0600 Subject: [Zope-PTK] Portal Membership System - Attribute error References: <10211729265.20000912221348@swipnet.se> Message-ID: <39BEB46B.1B5E706B@noreboots.com> Anders Eriksson wrote: > > Hello, > > I create a Portal and create a supervisor with the wizard. > > Then I close IE and login as this supervisor. When I now try to add > the Portal Membership System I get this error: ... > Anyone who knows what's wrong and how I fix it? Not until you provide more details. Near as I can tell, you are using the PTK. Therin lies your problem, Membership is not supported in combination with the PTK. BTW, the docs on Membership detail this. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From neeloy_saha@infy.com Wed Sep 13 13:29:19 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 13 Sep 2000 17:59:19 +0530 Subject: [Zope-PTK] Integrating zope portal toolkit and ntuserfolder Message-ID: <8EE756E49A17D21194860008C7F49AFE045290E3@TWRMSG01> Hi guys, Can someone tell me how do i go abt integrating the zope portal toolkit with the login manager?? Basically i want the following features. 1. if i do a join member. Then i will get the form with username and password field. The guy will fill in the ntuser domain name and password. In case that is validated by the domain controller. a new member will be created and then in the "members folder of ptk" the folder of the user will be created 2. log in : The person will only be able to log in if the following condition all are true:- * he has joined in. i.e means a proper folder under the directory "members" exists. * the authentication is done against the username and the domain name from the domain controller. I am a zope newbie :-- and much conversant with the zope architecture. Therefore i am having problems abt the way to go abt it. But till now what i have done: * managed to stitch together a portal with the login manager support. * configured the NTUserFolder and then am able to create an instance in a particular portal folder and then assign local roles to the user from the NT domain name. where i am stuck?? * how do i integrate.....?? any pointers. I saw the "how to" by tseaver abt doing that for the login manager and the smbUserFolder.....?? any pointers would help -neeloy From tseaver@zope.org Wed Sep 13 15:30:44 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:30:44 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - folderAdd.dtml:1.3 Message-ID: <200009131430.HAA30663@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30654 Added Files: folderAdd.dtml Log Message: Readd From tseaver@zope.org Wed Sep 13 15:34:09 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:34:09 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - PortalFolder.py:1.20 Message-ID: <200009131434.HAA30992@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30967 Modified Files: PortalFolder.py Log Message: * Add ZPL. * Add constructor form. From tseaver@zope.org Wed Sep 13 15:35:54 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:35:54 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - PortalContent.py:1.50 PortalObject.py:1.76 register.py:1.7 utils.py:1.6 Message-ID: <200009131435.HAA31197@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv31183 Modified Files: PortalContent.py PortalObject.py register.py utils.py Log Message: * Add ZPL. From tseaver@zope.org Wed Sep 13 15:35:55 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:35:55 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - Discussions.py:1.4 DublinCore.py:1.3 IndexableContent.py:1.5 Membership.py:1.4 PortalContentRegisteration.py:1.2 PortalUI.py:1.3 ReviewableContent.py:1.5 Message-ID: <200009131435.HAA31201@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase/interfaces In directory zope.codeit.com:/tmp/cvs-serv31183/interfaces Modified Files: Discussions.py DublinCore.py IndexableContent.py Membership.py PortalContentRegisteration.py PortalUI.py ReviewableContent.py Log Message: * Add ZPL. From tseaver@zope.org Wed Sep 13 15:38:15 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:38:15 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - DiscussionItem.py:1.3 Discussions.py:1.4 Document.py:1.4 File.py:1.3 Image.py:1.3 Link.py:1.3 NewsItem.py:1.3 Portal.py:1.25 SQLMember.py:1.3 ZODBMember.py:1.4 Message-ID: <200009131438.HAA31510@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv31501 Modified Files: DiscussionItem.py Discussions.py Document.py File.py Image.py Link.py NewsItem.py Portal.py SQLMember.py ZODBMember.py Log Message: * Add ZPL. From oliver@sufface.net Wed Sep 13 17:53:45 2000 From: oliver@sufface.net (Oliver Daly) Date: Thu, 14 Sep 2000 02:53:45 +1000 Subject: [Zope-PTK] Inability to add dtml documents Message-ID: <39BFB118.79E8DD12@sufface.net> Hi, The following was sent in April this year. I notice the same problem exists in the 2.2.0 version of Zope. Are there any plans to fix this? Thanks Oliver Here's the previous mail: OK, still seeing this bug in 0.7.1. Create a 'Portal Folder', in that 'Portal Folder' create a 'DTML Document', and you will get the following traceback when trying to view it: Traceback (innermost last): File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in publish File /local/home/Web/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in publish File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: foo) File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: foo) File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: foo) File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: foo) File /local/home/Web/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: standard_html_header) File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: standard_html_header) File /local/home/Web/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) (Info: this) File , line 0, in ? File /local/home/Web/lib/python/Products/PTKBase/Toolbox.py, line 24, in __call__ AttributeError: (see above) Change it to a 'DTML Method', and the error goes away. Any idea how/when this wil be fixed, or is it in CVS? -- Bill Anderson Linux/Unix Administrator, Security Analyst ESBU (ARC) bill_anderson@boi.hp.com My opinions are just that; _my_ opinions. From shane@digicool.com Wed Sep 13 18:05:15 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 13 Sep 2000 13:05:15 -0400 Subject: [Zope-PTK] Inability to add dtml documents References: <39BFB118.79E8DD12@sufface.net> Message-ID: <39BFB3CB.32444BAC@digicool.com> oliver@sufface.net wrote: > > Hi, > > The following was sent in April this year. I notice the same problem > exists in the 2.2.0 version of Zope. Are there any plans to fix this? It should be fixed in the latest CVS PTK, which has a number of fixes. Shane > Here's the previous mail: > > OK, still seeing this bug in 0.7.1. > Create a 'Portal Folder', in that 'Portal Folder' create a 'DTML > Document', and you will get the following traceback when trying to view > it: > > Traceback (innermost last): > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in > publish_module > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in > publish > File /local/home/Web/lib/python/Zope/__init__.py, line 202, in > zpublisher_exception_hook > (Object: ElementWithAttributes) > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in > publish > File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in > mapply > (Object: foo) > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in > call_object > (Object: foo) > File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in > __call__ > (Object: foo) > File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line > 502, in __call__ > (Object: foo) > File /local/home/Web/lib/python/OFS/DTMLMethod.py, line 146, in > __call__ > (Object: standard_html_header) > File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line > 502, in __call__ > (Object: standard_html_header) > File /local/home/Web/lib/python/DocumentTemplate/DT_Util.py, line 335, > > in eval > (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) > (Info: this) > File , line 0, in ? > File /local/home/Web/lib/python/Products/PTKBase/Toolbox.py, line 24, > in __call__ > AttributeError: (see above) > > Change it to a 'DTML Method', and the error goes away. > > Any idea how/when this wil be fixed, or is it in CVS? > > -- > Bill Anderson Linux/Unix Administrator, Security > Analyst > ESBU (ARC) bill_anderson@boi.hp.com > My opinions are just that; _my_ opinions. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From pje@telecommunity.com Thu Sep 14 15:37:18 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 09:37:18 -0500 Subject: [Zope-PTK] ZPatterns (sub-)transaction problems In-Reply-To: <39C0C77A.F5265A1B@cat-box.net> Message-ID: <200009141437.HAA08970@zope.codeit.com> At 01:41 PM 9/14/00 +0100, Steve Alexander wrote: > >I think there's something not quite right about the way ZPatterns is >handling subtransactions, even with this patch, and the other one >related to Transactions.py that I posted a while back. > >Is there any detailed documentation about how Zope transactions and >subtransactions are supposed to work? > Unfortunately, the problem is not with Zope but with ZPatterns. I was about to announce this today anyway, but I figured I might as well do it by replying to your post. The ZPatterns transaction machinery is seriously broken with respect to subtransactions. It is mostly functional with respect to "plain" transactions. It has been broken since its inception due to a design stupidity on my part. Under pressure to get a working 0.4.0 system, I started coding without a fully thought-out design for the transaction handling system, and changed it midway two or three times before I got something that (basically) works. I did not discover the flaws until yesterday, when Ty tried to use subtransactions in a to-be-production application. An hour or so of debugger-stepping and Zope-source-reading later, we were able to fix the code to allow a single subtransaction commit to succeed, but *only* if no work were done following the subtransaction commit. I will try to have a ZPatterns snapshot release made this week that will include those fixes (plus the fix for a problem with DynPersist that we also discovered yesterday). It should be noted, however, that the resulting release will still not be good for much with respect to subtransactions. I am in the process now of redesigning the entire transaction machinery to correct the problems. On the bright side, I have already seen how the redesign will simplify the code of several classes, while possibly improving both performance and memory usage. From steve@cat-box.net Thu Sep 14 15:56:06 2000 From: steve@cat-box.net (Steve Alexander) Date: Thu, 14 Sep 2000 15:56:06 +0100 Subject: [Zope-PTK] Re: ZPatterns (sub-)transaction problems References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <39C0E706.7C4F1DF2@cat-box.net> "Phillip J. Eby" wrote: > > I will try to have a ZPatterns snapshot release made this week that will > include those fixes (plus the fix for a problem with DynPersist that we > also discovered yesterday). Great. I'm looking forward to that. Can we lose DynPersist altogether for this release? Or are there still folks out there using ZPatterns with 2.1.6? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From pje@telecommunity.com Thu Sep 14 16:40:22 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 10:40:22 -0500 Subject: [Zope-PTK] Re: ZPatterns (sub-)transaction problems In-Reply-To: <39C0E706.7C4F1DF2@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <200009141540.IAA10455@zope.codeit.com> At 03:56 PM 9/14/00 +0100, Steve Alexander wrote: > >Can we lose DynPersist altogether for this release? Unfortunately, no. Zope's cPersistent class appears it may have a bug that is roughly similar to the one we're fixing in DynPersist. (i.e., not calling __of__ or other binding operations on an object returned from __getattr__) I've written Jim to ask whether my interpretation of that code is correct, but have not received a reply. It may take a new Zope release before DynPersist is able to go away. :( >Or are there still folks out there using ZPatterns with 2.1.6? Support for 2.1.x was officially dropped with ZPatterns 0.4.2a1, but in practice most of the support code is still there today. It's just that I've stopped testing on 2.1.x and no longer write code with 2.1.x compatibility in mind. The re-architecting of the transaction machinery will *require* 2.2.x's transaction ordering semantics. From pje@telecommunity.com Thu Sep 14 16:54:13 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 10:54:13 -0500 Subject: [Zope-PTK] ZPatterns 0.4.2a2 bug fix release In-Reply-To: <39C0E706.7C4F1DF2@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <200009141554.IAA10649@zope.codeit.com> It's up now. In addition to the transaction fixes and DynPersist fix, this release also fixes the missing import of aq_base in PlugIns.py, and the SkinScript compiler fouling up certain expressions due to its removal of spaces between tokens. Last, but not least, you can now place Specialists inside other Specialists without getting an error. At 03:56 PM 9/14/00 +0100, Steve Alexander wrote: >"Phillip J. Eby" wrote: >> >> I will try to have a ZPatterns snapshot release made this week that will >> include those fixes (plus the fix for a problem with DynPersist that we >> also discovered yesterday). > >Great. I'm looking forward to that. From steve@cat-box.net Thu Sep 14 17:39:38 2000 From: steve@cat-box.net (Steve Alexander) Date: Thu, 14 Sep 2000 17:39:38 +0100 Subject: [Zope-PTK] Re: [Zope-dev] ZPatterns 0.4.2a2 bug fix release References: <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <39C0FF4A.5080100@cat-box.net> Phillip J. Eby wrote: > It's up now. In addition to the transaction fixes and DynPersist fix, this > release also fixes the missing import of aq_base in PlugIns.py, and the > SkinScript compiler fouling up certain expressions due to its removal of > spaces between tokens. Last, but not least, you can now place Specialists > inside other Specialists without getting an error. According to diff, there is no difference between DynPersist.c in the latest release, and DynPersist.c in 0-4-2a1. The dates on the files are both Apr 26 too. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From pje@telecommunity.com Thu Sep 14 18:56:04 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 12:56:04 -0500 Subject: [Zope-PTK] Re: [Zope-dev] ZPatterns 0.4.2a2 bug fix release In-Reply-To: <39C0FF4A.5080100@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <200009141756.KAA12267@zope.codeit.com> At 05:39 PM 9/14/00 +0100, Steve Alexander wrote: >Phillip J. Eby wrote: > >> It's up now. In addition to the transaction fixes and DynPersist fix, this >> release also fixes the missing import of aq_base in PlugIns.py, and the >> SkinScript compiler fouling up certain expressions due to its removal of >> spaces between tokens. Last, but not least, you can now place Specialists >> inside other Specialists without getting an error. > >According to diff, there is no difference between DynPersist.c in the >latest release, and DynPersist.c in 0-4-2a1. > >The dates on the files are both Apr 26 too. > Oops! It's fixed now. Everyone please note that the correct file size for ZPatterns-0-4-2a2.tgz is 47,811 bytes, not 47,756. Sorry about the mix-up; Ty and I missed a few files in the tagging process prior to generating a release. :( From mbernstein@profitscape.com Thu Sep 14 19:07:11 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Thu, 14 Sep 2000 13:07:11 -0500 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integrating zope portal toolkit and ntuserfolder) zope portal toolkit and ntuserfolder) Message-ID: <39C113CF.EF2804CF@profitscape.com> > Can someone tell me how do i go about integrating the zope portal > toolkit with the login manager?? I have been working on something similar: Getting LoginManager and Membership to work with SMB authentication off of an NT PDC (Zope is running on a Solaris box). Basically I've been hacking on Bill Anderson's PortalMembership to integrate the SMB functionality. I have the following policies and functionality working: - users must be authenticated by the PDC to join. - users may only join if they are not already a member. - email addresses are derived from the username, and stored in the profile. - users can login and be authenticated from the PDC. - users may change their profile (including the email address) - passwords ARE NOT stored in the profile (it's set to blank) Functionality removed: - all password reminders, validators, and generators Missing functionality: - member removal - members need to be listed in the local roles list, so I can move the LM to the root Note: Because membership is not reintegrated with the PTK as of yet, joining does not create a member folder. I would appreciate any assistance anyone can offer to improve the user management of LoginManager and Membership so that a manager can remove a member from the User Source, and the members stored in PersistentUserSource are listed in the 'local roles' screens. Michael Bernstein. From js@aixtraware.de Fri Sep 15 08:32:02 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Fri, 15 Sep 2000 09:32:02 +0200 (CEST) Subject: [Zope-PTK] the PTK and i18n Message-ID: Hi, is there anybody working on a multilingual PTK version ? I just looked in the code of PTKBase, and found that many phrases like the actions are hardwired into the code (python and dtml). So we have to do some thinking how to integrate i18n into the PTK. Should we open a wiki for it ? 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 shane@zope.org Fri Sep 15 17:05:37 2000 From: shane@zope.org (Shane) Date: Fri, 15 Sep 2000 09:05:37 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - MembershipTool.py:1.4 Message-ID: <200009151605.JAA30308@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30298 Modified Files: MembershipTool.py Log Message: Added support for a portal_preferences tool. From bill@noreboots.com Fri Sep 15 17:47:29 2000 From: bill@noreboots.com (Bill Anderson) Date: Fri, 15 Sep 2000 10:47:29 -0600 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> Message-ID: <39C252A1.87796010@noreboots.com> Michael Bernstein wrote: ... > Note: Because membership is not reintegrated with the PTK as of yet, > joining does not create a member folder. Note: PortalMembershipSystem will not do this anyway. That would be up to either the Upcoming CommunityMembershipSystem plugin for Memebrship. This is where I part ways with how some of the PTK is going. PTK should _not_ deal with user management at all. Now doing things based on a trigger is fine, but having a member folder for content is a function that the user management item should handle, as it is part of user management, Why, you ask? Simple. What if you want a Member to be able to change their name, and not have to rename all their content, etc.? This is something CommunityMembershipSystem, will address: Usernames that are not tied one-to-one with user ids. "But in DemoPortal..." The part that has become a problem, is that people are expecting DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember to seperate the Demo from the Product. Membership is being built so that it can be used independently from the PTK. Even once PTK support has been added, it must be able to stand on it's own away from the PTK. As such, user management functions will be implemented with that it mind. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From chrism@digicool.com Fri Sep 15 20:22:25 2000 From: chrism@digicool.com (Chris McDonough) Date: Fri, 15 Sep 2000 15:22:25 -0400 Subject: [Zope-PTK] PTK and sessioning requirements Message-ID: <02c201c01f4a$479f0a20$1f48a4d8@kurtz> All, If you're at all concerned about how Zope will handle sessioning in its core, please visit http://dev.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/FrontPage . This project wants to meet the requirements of the PTK as it relates to sessioning (keeping state between requests by relating namespaces to anonymous users). I think we've done a good job separating the layers out so that the PTK can make use of an instance of a Zope "Browser ID Manager" to come up with its own session keys, but I wouldn't mind more feedback. Thanks, C From mbernstein@profitscape.com Fri Sep 15 19:20:44 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 15 Sep 2000 13:20:44 -0500 Subject: [Zope-PTK] Membership and loacl roles Message-ID: <39C2687C.FE7C1BC1@profitscape.com> Hello all, I feel that a barrier to Loginmanager and Membership becoming more generally usable for site builders is it's current lack of support for local roles. Specifically, members do not show up in the local roles screen (manage_listLocalRoles) user list. Through the magic of grep and find, I think I've identified the relevant sections of code in Zope that need to be duplicated in Membership (or maybe in LoginManager). First I tracked down what seems to be the relevant section in /lib/AccessControl/Role.py, in the section labeled 'Local roles support': def get_valid_userids(self): item=self dict={} while 1: if hasattr(aq_base(item), 'acl_users') and \ hasattr(item.acl_users, 'user_names'): for name in item.acl_users.user_names(): dict[name]=1 if not hasattr(item, 'aq_parent'): break item=item.aq_parent keys=dict.keys() keys.sort() return keys Then I tracked down the user_names attribute to /lib/AccessControl/User.py, in the section labeled 'Private UserFolder object interface': def user_names(self): return self.getUserNames() Well, that wasn't very helpful. serching a bit more and I find: def getUserNames(self): """Return a list of usernames""" names=self.data.keys() names.sort() return names Experimenting a bit, I find that a normal user folder object responds to a /acl_users/user_names URL with an error, but does respond to a /acl_users/getUserNames URL with a list of user names. And now I'm stuck. I *think* that LoginManager needs a getUserNames method that goes through the available User Sources and grabs a list of names from each, concatenating them into one big list to return. However, IANAC (I Am Not A Coder), and I don't know how to do this. If anyone can offer a cut-and-paste set of instructions to add this into Loginmanager or Membership, it would be greatly appreciated. Thanks, Michael Bernstein. From mbernstein@profitscape.com Fri Sep 15 22:03:36 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 15 Sep 2000 16:03:36 -0500 Subject: [Zope-PTK] Re: Membership and local roles Message-ID: <39C28EA8.DDF752B0@profitscape.com> I just noticed that the paths to the files I mentioned is wrong. They should be: /lib/python/AccessControl/Role.py and /lib/python/AccessControl/User.py Sorry for any confusion this may have caused. Michael Bernstein. From ralf.herold@charite.de Sat Sep 16 21:46:32 2000 From: ralf.herold@charite.de (ralf.herold@charite.de) Date: Sat, 16 Sep 2000 22:46:32 +0200 Subject: [Zope-PTK] PTK CVS install 2.2.1: Permission map error Message-ID: <810F20AC3F77D311B4690090275514A7011F31@DC-POH-W> Dear PTK developers and users, trying to import DemoPortal.zexp or Wizard.zexp is not successfull, because the errors: "Attempt to map a permission to a permission: Add Portal" and "... Add Wizard", respectively, " This should never happen Waaaa." occurr. This happens under Zope 2.2.1 (from 2.2.0 distribution with the 2.2.0-to-2.2.1 update), under Linux, with a few products installed (such as LocalFS, PythonMethods, NFGav, PMPSurvey, SiteAccess, TinyTable*, XML*, ZMySQLDA, Zpdfdocument), and following the PTK install advice (remove all directories PTKDemo, PTKBase, Wizard, ZCallable, DemoPortal; restart Zope, untar PTK snapshot 2000/09/15, cp PTKDemo/*zexp into ./import, remove DemoPortal and Wizard again; restart). Do you have an idea where to start to get this installed properly? Thanks for any hints, Yours, Ralf mailto:ralf.herold@gmx.net, Berlin From jsacks@evantage.net Sun Sep 17 22:25:01 2000 From: jsacks@evantage.net (Jsacks) Date: Sun, 17 Sep 2000 17:25:01 -0400 Subject: [Zope-PTK] looking for developers on a project ! Message-ID: hi , our company is looking to customize the current zope software into a particular e-commerce solution. if you would like to participate in this project please let us know. you can respond to this email or call 412-401-9510 thanks! From darcyc@engin.umich.edu Mon Sep 18 05:50:20 2000 From: darcyc@engin.umich.edu (Darcy Clark) Date: Mon, 18 Sep 2000 00:50:20 -0400 Subject: [Zope-PTK] PTK/LoginManager/Membership - configuring User Sources Message-ID: <001001c0212b$f2f00360$093a6c40@piii> I am currently (one of many probably) inching along towards getting PTK/LoginManager/Membership working and wondered if somebody could point me in the right direction to get the pieces working together. I have installed the PTK, made a portal. I then replaced the acl_users in the portal directory with a loginmanager. Then I added a Portal Membership System, which seemed to replace a bunch of methods and added a bunch of new ones. Looking at my portal [http://entity.ummu.umich.edu:8080/portal] I now get the nice login dialog when I login but it doesn't work. I figure I most likely need to install a usersource. From this howto [http://www.zope.org/Members/jok/SQL_based_LoginManager] I stole some methods that seem to be the sort of thing I would need to link the login process to a database (in my case a MySQL user table). I put them, as listed below, into my persistant user source. But I am not sure how to link these new methods in my usersource back to my login form. Here is the list of contents from my usersource : MySQL_database_connection (Z MySQL Database Connection) SQL_change_password SQL_check_user SQL_get_password SQL_get_roles userAuthenticate userExists userRoles I have no idea whether these are the correct method names that the loginmanager is looking for to authenticate. Does anyone have any pointers on this ? Also I now have 2 login forms - one in the root of the portal folder and the other in the acl_users folder. Which is the one that I need to edit ? I say edit because I see this line in both of them :
Hello all,

I am relatively new in using Zope and the PTK.

Situation:

  1. I have created a portal ".../arc/europe".
  2. I have one member "..../europe/Members/robk"
I suppose I should be able to reach the member using URL "
http://....../europe/members/robk"

However, this does not work. I get the following error: "Resource not found" (Below the Trace back is given).

When I use the URL "http://....../europe/Members/robk/index_html/index_html"

Maybe relevant is that

  1. I have copied the portal to another place.
  2. I have changed the layout of the portal/
Thanks,
Rob

Traceback (innermost last):
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\PROGRA~1\Zope-2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 173, in publish
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\HTTPResponse.py, line 308, in setBody
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\HTTPResponse.py, line 529, in notFoundError
NotFound: (see above)
  --------------265C1841ABE767AEFD4DFDF6-- --------------AFC8F376445018F405414E13 Content-Type: text/x-vcard; charset=us-ascii; name="Rob.van.der.Krogt.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Rob van der Krogt Content-Disposition: attachment; filename="Rob.van.der.Krogt.vcf" begin:vcard n:van der Krogt;Rob tel;fax:+31(0)78-6413194 tel;work:+31(0)78-6441441 x-mozilla-html:TRUE org:Aggreko Europe adr:;;Ketelweg 77;Papendrecht;;3356 LD;Nederland version:2.1 email;internet:Rob.van.der.Krogt@aggreko.nl title:IT Development Manager x-mozilla-cpt:;-7776 fn:Rob van der Krogt end:vcard --------------AFC8F376445018F405414E13-- From bill@noreboots.com Mon Sep 18 17:37:42 2000 From: bill@noreboots.com (Bill Anderson) Date: Mon, 18 Sep 2000 10:37:42 -0600 Subject: [Zope-PTK] Resource name incorrectly reproduced References: <39C629D3.127E7425@aggreko.nl> Message-ID: <39C644D6.AAD94B5E@noreboots.com> Rob van der Krogt wrote: > > Hello all, > > I am relatively new in using Zope and the PTK. > > Situation: > > 1. I have created a portal ".../arc/europe". > 2. I have one member "..../europe/Members/robk" > > I suppose I should be able to reach the member using URL > "http://....../europe/members/robk" ^^^ Remember, URLs are case sensitive. That should be a capital 'M' at the start of Members -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From tseaver@digicool.com Mon Sep 18 22:13:29 2000 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 18 Sep 2000 17:13:29 -0400 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <39C68579.75B83023@digicool.com> Bill Anderson wrote: > > Michael Bernstein wrote: > ... > > Note: Because membership is not reintegrated with the PTK as of yet, > > joining does not create a member folder. > > Note: > PortalMembershipSystem will not do this anyway. That would be up to > either the Upcoming CommunityMembershipSystem plugin for Memebrship. > > This is where I part ways with how some of the PTK is going. PTK should > _not_ deal with user management at all. Now doing things based on a > trigger is fine, but having a member folder for content is a function > that the user management item should handle, as it is part of user > management, Why, you ask? Simple. What if you want a Member to be able > to change their name, and not have to rename all their content, etc.? > This is something CommunityMembershipSystem, will address: Usernames > that are not tied one-to-one with user ids. The intent of the recent re-architecting was to make it possible to supply different policies for things like member-folder creation/lookup, simply by replacing the tool which implements that policy with another, behind the same interface. We are actively planning for several such changes for an ongoing consulting project: * Multiple portals on a site sharing a single authentication source; * Deferred creation of member folders; * Addition of roles via "incremental registration" (as you need the permissions for a new role, you supply the data which the portal wants in exchange for the role). All of these changes will be focused in the 'portal_membership' object (perhaps also the 'portal_registration' one); the key is to find the right separation points and interfaces, e.g., so that replacing the membership system for the portal has zero impact on the code for the content objects. > "But in DemoPortal..." > The part that has become a problem, is that people are expecting > DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember > to seperate the Demo from the Product. We see the "Demo" as performing several key functions (note that these are goals, not claims): * document the intent of the framework, by providing working implementations of its interfaces; * provide an "out-of-the-box" useful implementation; people should be able to do useful stuff with the PTK without having to implement dozens of interfaces; they can then replace piecemeal the bits which don't quite work as they like; * force the development to stay at least somewhat grounded (i.e., if we can't come up with a reasonable default implementation for and interface, then what good is it?) > Membership is being built so that it can be used independently from the > PTK. Even once PTK support has been added, it must be able to stand on > it's own away from the PTK. As such, user management functions will be > implemented with that it mind. Sounds great! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From webmaven@lvcm.com Tue Sep 19 02:48:55 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Mon, 18 Sep 2000 18:48:55 -0700 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> Message-ID: <39C6C607.F9562338@lvcm.com> I figured out how to get this to work (finally). In the acl_users LM, add the following two Python methods: - getUserNames ------------------------------------- Parameter List: self Body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names ---------------------------------------------------- - user_names --------------------------------------- Parameter List: self Body: return self.getUserNames() ---------------------------------------------------- And whatever users or members you've got that are stored persistently within the User Source will appear in the local roles screen (manage_listLocalRole). Preliminary tests show that local roles defined for LoginManager/Membership users work just as expected. Thanks to Bill Anderson for pointing out the difference between returning a list of objects and a list of names, which was the critical bug in the getUserNames method. Michael Bernstein. From pje@telecommunity.com Tue Sep 19 17:30:29 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Tue, 19 Sep 2000 11:30:29 -0500 Subject: [Zope-PTK] ZPatterns 0.4.2a3 bug fix release In-Reply-To: <200009141756.KAA12267@zope.codeit.com> References: <39C0FF4A.5080100@cat-box.net> <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <3.0.5.32.20000919113029.016eb100@telecommunity.com> ZPatterns 0.4.2 alpha 3 is now available. It fixes all bugs that I know of at the present time (both reported on the lists and found during our own usage/testing), and adds one feature: a decent sized screen for editing SkinScript! This release does not yet have the overhaul of transaction handling that I'm planning for a future release (probably 0.4.3). So the use of subtransactions in the same transaction where DataSkins are being manipulated is still potentially problematic if more than one subtransaction commit occurs, or a (sub)transaction is aborted. From mbernstein@profitscape.com Tue Sep 19 18:45:37 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 19 Sep 2000 12:45:37 -0500 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> <39C6C607.F9562338@lvcm.com> Message-ID: <39C7A641.43D9BC2B@profitscape.com> Michael Bernstein wrote: > > I figured out how to get this to work (finally). > > In the acl_users LM, add the following two Python methods: Well, I discovered another problem: For some reason, when I create a PortalMembership member, add the two Python methods as I described earlier, and use the local roles screen to give them a role, they are subsequently authenticated regardless of whether their password is correct. Here's an example illustrating the bug: - Create a new folder /hello - Add a PortalMembership System - Add the user_names and getUsernames Python Methods - Use the joinForm to add a new member 'testuser' - Create a subfolder /hello/hello2 - Go to the hello2 local roles screen, and add a manager local role for testuser - Exit your browser, and restart it. - Go to /hello/hello2/manage - You are presented with the PortalMembership loginForm - login as testuser, but leave the password field blank - You will be authenticated anyway, and see the management interface Note that logging in using a non-existent username does not work, the only problem seems to be that it ignores the password. Any ideas? Michael Bernstein. From scott@launchpoint.net Tue Sep 19 22:27:46 2000 From: scott@launchpoint.net (Scott Burton) Date: Tue, 19 Sep 2000 14:27:46 -0700 Subject: [Zope-PTK] Date Question Message-ID: OK, I have searched everywhere for the answer to this. It is quite simple but I can't seem to figure it out. All I want to do is iterate over cataloged objects() and only show items who's bobobase_modification_date matches today's date. I just can't figure out how to set the fmt="%d" in an if tag. TIA Scott B. From matsuda-toshio@fujielectric.co.jp Wed Sep 20 09:53:25 2000 From: matsuda-toshio@fujielectric.co.jp (Toshio Matsuda) Date: Wed, 20 Sep 2000 17:53:25 +0900 (LMT) Subject: [Zope-PTK] Date Question In-Reply-To: References: Message-ID: <20000920175325N.matsuda-toshio@fujielectric.co.jp> Hi, >>>>> Date: Tue, 19 Sep 2000 14:27:46 -0700 >>>>> Subject: [Zope-PTK] Date Question >>>>> MsgId: >>>>> scott@launchpoint.net(Scott Burton) said: > > OK, I have searched everywhere for the answer to this. It is quite simple > but I can't seem to figure it out. All I want to do is iterate over > cataloged objects() and only > show items who's bobobase_modification_date matches today's date. > I just can't figure out how to set the fmt="%d" in an if tag. The following page is good for you. http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching I usually compare the date against today as follows: -- Toshio Matsuda From mtaylor@goldridge.net Wed Sep 20 14:42:05 2000 From: mtaylor@goldridge.net (Monty Taylor) Date: Wed, 20 Sep 2000 15:42:05 +0200 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <39C8BEAD.1D273A77@goldridge.net> Hey guys, To implement this, (Membership providing user folders), why don't we make a User object inherit from Folder as well and make a Member his own member folder? That makes for a simple , and would make for a simple system of separating Portal functionality from Membership. I think it should help the problem of having one user source and multiple portals. Conceivably, one would want one's content to follow them around? Or am I off my rocker? The one problem I could see with this is the implementation of a RDBMS backed data-source. Comments? Monty Bill Anderson wrote: > Michael Bernstein wrote: > ... > > Note: Because membership is not reintegrated with the PTK as of yet, > > joining does not create a member folder. > > Note: > PortalMembershipSystem will not do this anyway. That would be up to > either the Upcoming CommunityMembershipSystem plugin for Memebrship. > > This is where I part ways with how some of the PTK is going. PTK should > _not_ deal with user management at all. Now doing things based on a > trigger is fine, but having a member folder for content is a function > that the user management item should handle, as it is part of user > management, Why, you ask? Simple. What if you want a Member to be able > to change their name, and not have to rename all their content, etc.? > This is something CommunityMembershipSystem, will address: Usernames > that are not tied one-to-one with user ids. > > "But in DemoPortal..." > The part that has become a problem, is that people are expecting > DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember > to seperate the Demo from the Product. > > Membership is being built so that it can be used independently from the > PTK. Even once PTK support has been added, it must be able to stand on > it's own away from the PTK. As such, user management functions will be > implemented with that it mind. > > -- > Do not meddle in the affairs of sysadmins, for they are easy to annoy, > and have the root password. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From pje@telecommunity.com Wed Sep 20 14:52:21 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Wed, 20 Sep 2000 08:52:21 -0500 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) In-Reply-To: <39C8BEAD.1D273A77@goldridge.net> References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <200009201352.GAA12299@zope.codeit.com> At 03:42 PM 9/20/00 +0200, Monty Taylor wrote: > >The one problem I could see with this is the implementation of a RDBMS backed >data-source. Actually, with the latest version of ZPatterns, you could handle even that. All you would need is to use a "Persistent External Attribute Provider" set to handle all attributes not handled by the RDBMS. The folder data would then be stored in the ZODB. However, on the subject of whether you *should* do this, I'm inclined to think that a "member folder" is a relationship object between a portal and the user object, and thus is per-portal per-user, not simply per-user. However, it is also reasonable IMHO, to have a Member (User derivative object) implement a "getMemberFolder" method, which you can override as you see fit in your situation. From chrisw@nipltd.com Wed Sep 20 16:13:29 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 20 Sep 2000 16:13:29 +0100 Subject: [Zope-PTK] Members as Folders References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> <39C8BEAD.1D273A77@goldridge.net> Message-ID: <39C8D419.1E1AAE09@nipltd.com> Monty Taylor wrote: > To implement this, (Membership providing user folders), why don't we make a User > object inherit from Folder as well and make a Member his own member folder? > Or am I off my rocker? You're off your rocker ;-) Okay, seriously, making user object inherit from folders 1. locks people into having a member folder for each user. That may not be the case... 2. forces all the member folders to exist in acl_users, maybe not a good thing This lack of flexibility, IMHO, is a Pretty Bad Thing (tm) cheers, Chris From bill@noreboots.com Wed Sep 20 17:36:11 2000 From: bill@noreboots.com (Bill Anderson) Date: Wed, 20 Sep 2000 10:36:11 -0600 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> <39C8BEAD.1D273A77@goldridge.net> Message-ID: <39C8E77B.B4356072@noreboots.com> Monty Taylor wrote: > > Hey guys, > > To implement this, (Membership providing user folders), why don't we make a User > object inherit from Folder as well and make a Member his own member folder? That > makes for a simple , and would make for a > simple system of separating Portal functionality from Membership. I think it should > help the problem of having one user source and multiple portals. Conceivably, one > would want one's content to follow them around? Or am I off my rocker? > The one problem I could see with this is the implementation of a RDBMS backed > data-source. > Comments? > Monty Monty, there are several problems with this idea. Here are three of them. One: User to Username mapping. If the username is the member's folder, handling username changes gets very difficult. You have to change the userfolder's id. Once you do this, all links that pointed to the old data are now broken. Two: Not all portals want members to have folders. See my wiki on this for details. Three: This would make the folder url into: http://your.portal.com/acl_users/Membername this is neither desirable, nor acceptable. Membership does not have any portal functionality, so there is no need to seperate it. Membership provides Member capability, and management. The Membership wiki has more details. -- E PLURIBUS LINUX From mbernstein@profitscape.com Wed Sep 20 18:55:57 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Wed, 20 Sep 2000 12:55:57 -0500 Subject: [Zope-PTK] Informal Poll Message-ID: <39C8FA2D.46D73C04@profitscape.com> Hello all, I've been struggling with some Loginmanager/Membership issues, and was wondering if my concerns were unique. I feel that it's important for LoginManager to interoperate with the rest of Zope's security machinery. Specifically, Members/Users in LoginManager User Sources need to be listed (or be capable of being listed) in the local roles interface. The reason I feel this is important, is to make it possible to easily delegate control of an area of the site to a member stored in a LoginManager. Currently, I've gotten to the point where members are listed in the local roles interface, and I can create local roles for members. I have run into what appears to be a security bug, described here: http://lists.zope.org/pipermail/zope-ptk/2000-September/001722.html Anyway, I figured I'd ask and see if this concerns anyone else. So please respond to the list or privately (but not both, please), and I'll summarize to the list. How important is it for you to be able to assign local roles to users stored in User Sources using the local roles interface? 5 - Critical/Immediate need 4 - Very Important 3 - Important 2 - Not Very Important 1 - Not Important At All 0 - You're Nuts! Thanks, Michael Bernstein. P.S. If I don't get enough responses, I'll probably repost this to zope-dev. From phil.harris@zope.co.uk Tue Sep 19 20:56:12 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 19 Sep 2000 20:56:12 +0100 Subject: [Zope-PTK] Informal Poll References: <39C8FA2D.46D73C04@profitscape.com> Message-ID: <005201c02273$bd1e0ae0$248fbcd4@harrisf4scs8le> 5 ----- Original Message ----- From: "Michael Bernstein" To: Sent: Wednesday, September 20, 2000 6:55 PM Subject: [Zope-PTK] Informal Poll > Hello all, > > I've been struggling with some Loginmanager/Membership issues, and was > wondering if my concerns were unique. > > I feel that it's important for LoginManager to interoperate with the > rest of Zope's security machinery. Specifically, Members/Users in > LoginManager User Sources need to be listed (or be capable of being > listed) in the local roles interface. > > The reason I feel this is important, is to make it possible to easily > delegate control of an area of the site to a member stored in a > LoginManager. > > Currently, I've gotten to the point where members are listed in the > local roles interface, and I can create local roles for members. > > I have run into what appears to be a security bug, described here: > http://lists.zope.org/pipermail/zope-ptk/2000-September/001722.html > > Anyway, I figured I'd ask and see if this concerns anyone else. So > please respond to the list or privately (but not both, please), and I'll > summarize to the list. > > How important is it for you to be able to assign local roles to users > stored in User Sources using the local roles interface? > > 5 - Critical/Immediate need > 4 - Very Important > 3 - Important > 2 - Not Very Important > 1 - Not Important At All > 0 - You're Nuts! > > Thanks, > > Michael Bernstein. > > P.S. If I don't get enough responses, I'll probably repost this to > zope-dev. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From anderson@boi.hp.com Wed Sep 20 22:17:05 2000 From: anderson@boi.hp.com (Bill Anderson) Date: Wed, 20 Sep 2000 15:17:05 -0600 Subject: [Zope-PTK] Security Release: Membership 0.7.6 Message-ID: <39C92951.58376BE4@boi.hp.com> This is a security fix release. Membership 0.7.5 had an annoyingly nasty security bug. This bug has been fixed, and is the only change in this release. It is *strongly* recommended you NOT use anything prior to this release. To Upgrade from 0.7.5: o Untar the release file in your ZOPE_HOME. o Restart Zope The changes are in PersistentUserSource.py, and are minor, so the upgrade should go smoothly. This is in relation to 0.7.5. -- Bill Anderson (ARC) Unix/Linux System Administrator LTDS Team Tuesday, September 19, 2000 Random Quote: This tag is invisible to anyone with a higher IQ than me. From erickson@kaivo.com Thu Sep 21 02:45:50 2000 From: erickson@kaivo.com (Paul Erickson) Date: Wed, 20 Sep 2000 19:45:50 -0600 Subject: [Zope-PTK] Wizard ZClass and field Validation Message-ID: <39C9684E.A34BD9DF@kaivo.com> I've been playing with the Wizard Product that comes with the PTK. It's pretty handy, except that it looks like the final WizardPage in a Wizard does not get validated like the rest of the pages do. Is this by design (ie: the last page should always be "You're done, press the Finish button to create the object"), or was it an oversight? I think that if there was a 'wizard_finish', like 'wizard_next' and 'wizard_back', then it would be able to validate the final page before calling the wizard_action method. -Paul From tseaver@digicool.com Thu Sep 21 04:55:26 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 20 Sep 2000 23:55:26 -0400 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> Message-ID: <39C986AE.9B7EFEBE@digicool.com> Bill Anderson wrote: > > This is a security fix release. > > Membership 0.7.5 had an annoyingly nasty security bug. This bug has > been fixed, and is the only change in this release. It is *strongly* > recommended you NOT use anything prior to this release. > > To Upgrade from 0.7.5: > o Untar the release file in your ZOPE_HOME. > o Restart Zope > > The changes are in PersistentUserSource.py, and are minor, so the > upgrade should go smoothly. This is in relation to 0.7.5. Is this upgrade by any chance related to the problem Michael Bernstein reported with local roles? He wrote: > For some reason, when I create a PortalMembership member, add the two > Python methods as I described earlier, and use the local roles screen to > give them a role, they are subsequently authenticated regardless of > whether their password is correct. I don't know the Membership product well enough to figure out whether these two are related. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@noreboots.com Thu Sep 21 06:07:02 2000 From: bill@noreboots.com (Bill Anderson) Date: Wed, 20 Sep 2000 23:07:02 -0600 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> <39C986AE.9B7EFEBE@digicool.com> Message-ID: <39C99776.B74CAED4@noreboots.com> Tres Seaver wrote: > > Bill Anderson wrote: > > > > This is a security fix release. > > > > Membership 0.7.5 had an annoyingly nasty security bug. This bug has > > been fixed, and is the only change in this release. It is *strongly* > > recommended you NOT use anything prior to this release. > > > > To Upgrade from 0.7.5: > > o Untar the release file in your ZOPE_HOME. > > o Restart Zope > > > > The changes are in PersistentUserSource.py, and are minor, so the > > upgrade should go smoothly. This is in relation to 0.7.5. > > Is this upgrade by any chance related to the problem Michael Bernstein > reported with local roles? Sort of. > He wrote: > > > For some reason, when I create a PortalMembership member, add the two > > Python methods as I described earlier, and use the local roles screen to > > give them a role, they are subsequently authenticated regardless of > > whether their password is correct. > > I don't know the Membership product well enough to figure out whether > these two are related. It is in part the authenticateUser mehtod in LoginManager. I know, because I duplicated it in Membership (copy->past) to test. Moreover, it manifests itself only on some OSes. For example, the code in LoginManager (UserSource.py ?) works fine on Linux. Passwords are stored encrypted, and are properly compared. On HPUX, it does not work, and apparently neither does it work on Solaris (which is what MB is running on). It seems to be related to the crypt functions functioning part-time, though beyond that I haven't found much more to go on. I do have workarounds for HPUX and Solaris, but they involve modifying the code to PersistenUserSource.py in Membership, to account for the lack of the encryption. Specifically, to ignore all attempts to encrypt anything. I'd rather be able to figure out _why_ it doesn't work as it should. -- E PLURIBUS LINUX From chrism@digicool.com Thu Sep 21 08:09:05 2000 From: chrism@digicool.com (Chris McDonough) Date: Thu, 21 Sep 2000 03:09:05 -0400 Subject: [Zope-PTK] RFC re: ApplicationObject proposal Message-ID: <39C9B411.636B1179@digicool.com> The proposal at http://dev.zope.org/Wikis/DevSite/Proposals/ApplicationObject may have much synergy with the intent of the PTK. It defines some requirements for implementing a generic "application" object, which if generally deployed should be mixed in to the PTK. Please comment if possible! Thanks, -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From nichols@tradingconnections.com Thu Sep 21 15:48:11 2000 From: nichols@tradingconnections.com (Dennis Nichols) Date: Thu, 21 Sep 2000 09:48:11 -0500 Subject: [Zope-PTK] Security Release: Membership 0.7.6 In-Reply-To: <39C92951.58376BE4@boi.hp.com> Message-ID: <4.3.2.7.2.20000921094153.00bbedb0@tradingconnections.com> At 9/20/00 03:17 PM, Bill Anderson wrote: >Membership 0.7.5 had an annoyingly nasty security bug. This bug has >been fixed, and is the only change in this release. It is *strongly* >recommended you NOT use anything prior to this release. Does this indicate a lessening of the warning that appears on the Membership product page? "This is Beta!! Important info: This is at an early stage at this point. You should not consider using it for anything production!" -- Dennis Nichols nichols@tradingconnections.com From mbernstein@profitscape.com Thu Sep 21 15:17:36 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Thu, 21 Sep 2000 09:17:36 -0500 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> <39C986AE.9B7EFEBE@digicool.com> <39C99776.B74CAED4@noreboots.com> <39C9A54F.F1E49650@lvcm.com> Message-ID: <39CA1880.8B76C979@profitscape.com> Michael Bernstein wrote: > > Bill Anderson wrote: > > > > I do have workarounds for HPUX and Solaris, but they involve modifying > > the code to PersistenUserSource.py in Membership, to account for the > > lack of the encryption. Specifically, to ignore all attempts to encrypt > > anything. > > Bill, > > while the fix for Solaris works for the generic > LM/Membership, it circumvents the userAuthenticate method of > the User Source, and compares the submitted password with > the stored password directly. That method is the one that > I'm overriding using a Python method to call the SMB > authentication code instead. > > I didn't notice at first because I was testing with a user > that had been added to the User Source early on, before I > stopped the register method fronm stuffing the password into > the user object. > > > I'd rather be able to figure out _why_ it doesn't work as it should. > > Me too. I think I've found why the original 0.7.6 membership was failing with my SMB authentication modifications: if hasattr(self, 'userAuthenticate'): ^^^^^^^ The userAuthenticate method that I'm adding is a Python method dropped into the User Source, and I suspect that the Python method is not being picked up as an attribute of the object because it's not defined in the PersistentUserSource.py file itself. old_au = setuid(self.REQUEST, _LoggingInUser) try: ok = self.userAuthenticate( self, request, user=user, password=password) finally: setuid(self.REQUEST, old_au) else: encpw = user.propertysheets.SystemProperties.password ok = self.comparePassword(password, encpw) So, I suspect that the only reason that this else clause is being called (and failing because of the platform dependency) is because of the userAuthenticate method's 'invisibility'. Does this seem resonable, or do I misunderstand the operation of 'hasattr'? Michael Bernstein. From zopist@matrixware.at Fri Sep 22 14:00:21 2000 From: zopist@matrixware.at (zopist@matrixware.at) Date: Fri, 22 Sep 2000 15:00:21 +0200 Subject: [Zope-PTK] Cannot import DemoPortal.zrxp Message-ID: <200009221300.PAA28833@localhost.localdomain> This is a multi-part message in MIME format. ----------969627621 Content-Type: text/plain Content-Transfer-Encoding: 7bit Dear zopists, i just upgraded my Server to 2.2.2 and the PTK to 0.8.2 everything went fine till the point when i wanted to import the Demoportal.zexp the first message was that the oid is in use ... so i deleted it from the Products Folder in the Control Pannel i then restarted Zope and got the following error while trying again to import Error Type: Could not load oid Í, pickled data in traceback info may contain clues Error Value: None i then switched back to the prior versions, both Zope & PTK but the problem persisted ... can it be possible that some information about the OID used might have persisted in the ODB? when i try to create a product named DemoPortal in the ControlPannel/Products it just works fine ...hmmm has anyone a clue? i would really appreciate some urgent help as a production machine is concerned. i thank you all in advance Francisco Webber _____________________________________________________________________________ Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 526, in manage_importObject (Object: Traversable) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 278, in _setObject (Object: Traversable) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd (Object: Traversable) File /usr/local/zope/lib/python/ZClasses/ZClass.py, line 421, in manage_afterAdd (Object: Portal) File /usr/local/zope/lib/python/ZClasses/ZClass.py, line 374, in _register (Object: Portal) File /usr/local/zope/lib/python/ZODB/Connection.py, line 447, in setstate File /usr/local/zope/lib/python/ZODB/Connection.py, line 213, in _persistent_load (Info: Í) File /usr/local/zope/lib/python/ZODB/Connection.py, line 154, in __getitem__ (Info: ('\000\000\000\000\000\000\034\315', '(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\034\320q\022(NU\010\000\000\000\000\000\000\034\314q\023Qtq\024tq\025QU\012index_htmlq\026cZClasses.Method\012MW\012q\027NRq\030}q\031U$_ZClassMethodPermissionMapperMethod_q\032(U\010\000\000\000\000\000\000\034\321q\033(U\016OFS.DTMLMethodq\034cOFS.DTMLMethod\012DTMLMethod\012q\035tq\036tq\037QsbU\016manage_optionsq (}q!(U\005labelq"U\012Propertiesq#U\006actionq$U\025manage_propertiesFormq%u}q&am! p;(U\005labelq\'U\010Securityq(U\006actionq)U\015manage_accessq*u}q+(h\'U\004Viewq,h)U\012index_htmlq-utq.U\012ziconImageq/(U\010\000\000\000\000\000\000\034\322q0(U\011OFS.Imageq1cOFS.Image\012Image\012q2tq3tq4QU\022__ac_permissions__q5)U\011_p_serialq6U\010\0030\226a\274;\204\314q7U\012__module__q8U\031*73biqpAI2QDa2iKPitv57g==q9utq:t.N.')) Could not load oid Í, pickled data in traceback info may contain clues: (see above) --> ----------969627621-- From webmaven@lvcm.com Sat Sep 23 07:50:42 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Fri, 22 Sep 2000 23:50:42 -0700 Subject: [Zope-PTK] Poll results, and local roles fix Message-ID: <39CC52C2.21A6753D@lvcm.com> Hi all, Well the results from my 'local roles' poll were interesting. Only five people responded, but three gave it a '5 - Critical/Immediate Need' and two gave it a '4 - Very Important' rating. Apparently, no one who didn't care about the issue even bothered to respond. Meanwhile, The situation has been largely resolved. First, the User Source needs to support a getUserNames method. This can be done two ways: You can add a Python method to the LoginManager named getUserNames that takes a 'self' parameter, and has the following body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Or you can add the following code directly to the PersistentUserSource.py file, preferably right befor or after the getUsers method: def getUserNames(self): user_ids=self.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Next we need to provide a user_names method in the LoginManager. Currently I only have a Python method to drop in to the LM. it takes a 'self' parameter, and has the following body if it's calling another Python method: return self.getUserNames() Or if you're calling the method in PersistentUserSource.py, it has this body: return self.UserSource.getUserNames() Note that this user_names method has some disadvantages, and it needs to be generalized to deal with multiple User Sources that aren't all named UserSource, and that may not all implement the getUserNames interface, and that may have duplicate user names in them. Suggestions on how to do this would be welcome. Note that the current PortalMembership (0.7.6) has a platform dependent bug that breaks password authentication on Solaris and HPUX (possibly other Unices as well), but works perfectly fine under Linux. According to Bill Anderson, it has to do with the crypt module. I hope that this little set of instructions helps others who are trying to integrate LM with the existing security interface and local roles. Comments, testing, and improvements would be welcomed. HTH, Michael Bernstein. From webmaven@lvcm.com Sat Sep 23 16:33:09 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Sat, 23 Sep 2000 08:33:09 -0700 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> <39C6C607.F9562338@lvcm.com> <39C7A641.43D9BC2B@profitscape.com> Message-ID: <39CCCD35.7C4BF2D8@lvcm.com> Michael Bernstein wrote: > > Michael Bernstein wrote: > > > > I figured out how to get this to work (finally). > > > > In the acl_users LM, add the following two Python methods: > > Well, I discovered another problem: > > For some reason, when I create a PortalMembership member, add the two > Python methods as I described earlier, and use the local roles screen to > give them a role, they are subsequently authenticated regardless of > whether their password is correct. > > Here's an example illustrating the bug: > > [snip example] This password problem is fixed with Bill Andersons new release of Membership 0.7.6, so the local roles fix now works generally. There is still a platform dependent password problem with Membership though. It affects Solaris and HPUX (possibly other unices) but not Linux, and has to do with the crypt module not being loaded correctly on those platforms, causing passwords to be encrypted omly part of the time. Here is the fix for local roles: First, the User Source needs to support a getUserNames method. This can be done two ways: You can add a Python method to the LoginManager named getUserNames that takes a 'self' parameter, and has the following body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Or you can add the following code directly to the PersistentUserSource.py file, preferably right befor or after the getUsers method: def getUserNames(self): user_ids=self.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names (I hope this will get included in future versions of Membership) Next we need to provide a user_names method in the LoginManager. Currently I only have a Python method to drop in to the LM. it takes a 'self' parameter, and has the following body if it's calling another Python method: return self.getUserNames() Or if you're calling the method in PersistentUserSource.py, it has this body: return self.UserSource.getUserNames() Note that this user_names method has some disadvantages, and it needs to be generalized to deal with multiple User Sources that aren't all named UserSource, and that may not all implement the getUserNames interface, and that may have duplicate user names in them. Suggestions on how to do this would be welcome. I hope that this little set of instructions helps others who are trying to integrate LM with the existing security interface and local roles. Comments, testing, and improvements would be welcomed. HTH, Michael Bernstein. From chrisw@nipltd.com Tue Sep 26 09:08:55 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 26 Sep 2000 09:08:55 +0100 Subject: [Zope-PTK] Replaceable Properties (was Re: [Zope-dev] Testing Zope applications) References: <002401c0234a$45567560$ae03a8c0@fork> <20000920174953.B22496@ludwig.cnri.reston.va.us> <39C9349C.470F506D@digicool.com> <20000921082340.A23444@ludwig.cnri.reston.va.us> <4o0kssguc0uo9f0i8ev2uba5mjs7ppc1lt@4ax.com> <20000921142409.A19267@newcnri.cnri.reston.va.us> <029401c02401$5aa899e0$1f48a4d8@kurtz> <20000922195411.B8267@newcnri.cnri.reston.va.us> <39CF4D24.6B4769EE@digicool.com> <39CF8031.B87DBDDB@digicool.com> Message-ID: <39D05997.E8445F8C@nipltd.com> Jim Fulton wrote: > 2. There will be a new interface in Zope 2.3 that will allow > you to prevent a name from being used lower in a containement > hierarchy. This change is documented at: > http://dev.zope.org/Wikis/DevSite/Proposals/ReplaceableProperty. > The work has already been done and checked into CVS. I've asked Shane, > the author, to update the interfaces wiki to capture this change. Does the PTK use this interface? Will it? If so, what for? What CVS branch is it checked in under? cheers, Chris From mbernstein@profitscape.com Tue Sep 26 16:08:12 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 26 Sep 2000 10:08:12 -0500 Subject: [Zope-PTK] loginManager and Local Roles Message-ID: <39D0BBDC.635A1CB6@profitscape.com> Hi all, Has anyone tried my local roles fix? http://lists.zope.org/pipermail/zope-ptk/2000-September/001739.html I'd like to hear from anyone who's tried it, successfully or not. Michael Bernstein. From tseaver@digicool.com Tue Sep 26 18:06:10 2000 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 26 Sep 2000 13:06:10 -0400 (EDT) Subject: [Zope-PTK] PTK Status, PE 2000/09/25 Message-ID: State of the PTK, 2000/09/21 In the weeks since our last report, the PTK community has been rather quiet: * The issue of integrating the PTK membership system with external authentication sources (especially NT/SMB authentication) is near and dear to many folks' hearts. - Bill Anderson announced a "security fix release", http://www.zope.org/Members/Bill/Products/Membership to the Membership product; Membership is an "ease-of-use" layer on top of the LoginManager/ZPatterns products, and has not yet been re-integrated with the PTK. - Michael Bernstein has worked out the details of using LoginManger and Membership to create a portal authenticated against SMB including "getting local roles to work", http://lists.zope.org/pipermail/zope-ptk/2000-September/001740.html - Phillip Eby released "version 0.4.2a3 of ZPatterns", http://lists.zope.org/pipermail/zope-ptk/2000-September/001721.html * Shane Hathaway added "support for a portal_preferences tool", http://lists.zope.org/pipermail/zope-ptk/2000-September/001709.html which will allow the portal to store data about a member separately from the user object provided by the authentication machinery. * Chris McDonough has created a "proposal", http://dev.zope.org/Wikis/DevSite/Proposals/ApplicationObject for "Application Objects" in Zope; he is asking the PTK community for feedback. * Tres Seaver "added back the constructor form", http://lists.zope.org/pipermail/zope-ptk/2000-September/001695.html for PortalFolders. * Shane Hathaway fixed a two bugs reported by Andy Dawkins: - one in which "Discussion replies were created private", http://lists.zope.org/pipermail/zope-ptk/2000-September/001610.html - another in which unchanged passwords were "mysteriously set to None", http://lists.zope.org/pipermail/zope-ptk/2000-September/001671.html * Several "open questions" were raised on the list: - Joachim Schmitz asked "is there anybody working on a multilingual PTK?", http://lists.zope.org/pipermail/zope-ptk/2000-September/001708.html - Jerry Spicklemire prompted, "How does an Owner delegate, or assign an Alternate?", http://lists.zope.org/pipermail/zope-ptk/2000-September/001651.html for workflow purposes. Our goal for the coming week is to release version 0.9 of the PTK. PTK Tracker Vitals, 2000/09/04 (since 2000/09/04) Here is is the current state of the tracker:: Type / Status New Closed Current Bug Reports 2 1 27 Feature/Doc Requests 0 0 14 -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mbernstein@profitscape.com Tue Sep 26 20:20:22 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 26 Sep 2000 14:20:22 -0500 Subject: [Zope-PTK] Member Roster for Membership Message-ID: <39D0F6F6.DCC78345@profitscape.com> I swiped some code out of the ManageMembers method in Membership, and I'm trying to implement a functional member roster as the index_html of a 'members' folder. the code fragment in question is this: (&dtml-getUserName;) (&dtml-getUserName;) I want the to test for the existence of a folder (contained within /members) that has an identical id as the member. That way this will display a link only if they have a folder. Any help to do this would be appreciated. Thanks, Michael Bernstein. From bill@libc.org Tue Sep 26 22:39:24 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 26 Sep 2000 15:39:24 -0600 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> Message-ID: <39D1178C.D535382E@libc.org> Michael Bernstein wrote: > > I swiped some code out of the ManageMembers method in Membership, and > I'm trying to implement a functional member roster as the index_html of > a 'members' folder. > > the code fragment in question is this: > > > > > > > (&dtml-getUserName;) > > (&dtml-getUserName;) > > > > > > I want the to test for the existence of a folder (contained > within /members) that has an identical id as the member. That way this > will display a link only if they have a folder. hmmm .... how about (UNTESTED!!!): Like I said, untested, but something along those lines should work ... I think (ugh, I hate colds....). -- E PLURIBUS LINUX From neeloy_saha@infy.com Wed Sep 27 09:52:02 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 27 Sep 2000 14:22:02 +0530 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results from the catalog Message-ID: <8EE756E49A17D21194860008C7F49AFE04529140@TWRMSG01> Hi all, The href generated for my search results is not resulting in right Links as a result I am getting the 404 error. ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)" and implemented a complete virtual host:(second example) # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPass /misc_ http://192.168.81.132:8081/misc_ ProxyPass /p_ http://192.168.81.132:8081/p_ ** Installed a siteaccess root and in the base of the portal folder(WebRadar3.0) ,gave the base as base : http://192.168.81.132/webradar path : / ** everything seems to be working fine....BUT the results from the search has gone astray. http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I need this http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I am getting this [ WebRadar3.0 is the name of my portal ] ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I am getting the following result. xxx I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf Please help. Thx in advance. -neeloy From tseaver@digicool.com Wed Sep 27 13:43:46 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 27 Sep 2000 08:43:46 -0400 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results from the catalog Message-ID: <39D1EB82.42F3F1B6@digicool.com> neeloy_saha wrote: > > Hi all, > > The href generated for my search results is not resulting in right Links as > a result I am getting the 404 error. > > ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)" > and implemented a complete virtual host:(second example) > > > # ServerAdmin webmaster@host.some_domain.com > # DocumentRoot /www/docs/host.some_domain.com > # ServerName host.some_domain.com > # ErrorLog logs/host.some_domain.com-error_log > # CustomLog logs/host.some_domain.com-access_log common > ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPass /misc_ http://192.168.81.132:8081/misc_ > ProxyPass /p_ http://192.168.81.132:8081/p_ > > > ** Installed a siteaccess root and in the base of the portal > folder(WebRadar3.0) ,gave the base as > base : http://192.168.81.132/webradar > path : / > > ** everything seems to be working fine....BUT the results from the search > has gone astray. > http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I > need this > http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I > am getting this > [ WebRadar3.0 is the name of my portal ] > > ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I > am getting the following > result. > > > xxx > > > I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf > > Please help. You are using a *very* old version of the PTK (the 'SiteIndex' is a giveaway); try upgrading to the CVS version, or wait to the end of the week for us to release a new tarball. You will then be able to spell your link as:: If that doesn't help, something uglier is going to be needed. I believe we already have Collector issues on funny interactions between SiteRoot-style virtual hosting and the catalog; try a collector search to see what turns up: http://classic.zope.org:8080/Collector Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Sep 27 14:37:42 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 27 Sep 2000 09:37:42 -0400 (EDT) Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results fro m the catalog In-Reply-To: <8EE756E49A17D21194860008C7F49AFE04529144@TWRMSG01> Message-ID: On Wed, 27 Sep 2000, neeloy_saha wrote: > Hi tres, > > I used a very ugly approach to fix that.....well it works...... > > / > > I had many problems while installing PTK. I started one month back on zope. > frankly speaking the instructions for the installation that was there for > the PTK never seemed to work for me... I tried many versions and got this > configuration to work for me.At least I do not get an attribute error. I am > working on Win NT sp6 > > I am having another problem.... all the things that have been imported as > .zexp files... there icons are not visible.... and they point to > http://192.168.81.132/Control_Panel/Products/DemoPortal/Portal/ziconImage > > How do I go abt that??? First, please post such questions to the PTK list, rather than directly to me -- you'll get the benefit of everyone's knowledge that way. I can't reproduce the symptom you describe on my box: * Fresh Zope 2.2.2. install * CVS checkout of the PTK:: cvs -d :pserver:anonymous@cvs.zope.org co ZopePTK * Symlink ZCallable, PTKBase, and PTKDemo into my Products directory:: cd ~/Zope2/lib/python/Products ln -s ~/ZopePTK/ZCallable . ln -s ~/ZopePTK/PTKBase . ln -s ~/ZopePTK/PTKDemo . * Symlink Wizard.zexp and Demo.zexp into my import directory: cd ~/Zope2/import ln -s ../lib/python/Products/PTKDemo/Wizard.zexp . ln -s ../lib/python/Products/PTKDemo/PTKDemo.zexp . * (Re)start Zope. Notice that ZCallable, PTKBase, and PTKDemo have initialized cleanly (no "broken product" icons). * In Control_Panel/Products, import the ZClass products, 'Wizard.zexp' and 'DemoPortal.zexp'. Again, note no broken objects (if the PortalWizard object in DemoPortal looks broken, restart Zope and log it as a bug in the PTK tracker). * Create a test portal, using the wizard. Note that the portal object has a real "door" icon. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From neeloy_saha@infy.com Wed Sep 27 14:46:25 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 27 Sep 2000 19:16:25 +0530 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search portal icon is not appearing Message-ID: <8EE756E49A17D21194860008C7F49AFE04529146@TWRMSG01> Hi all, The portal icon does not appear when I am using the ptk with apache + zserver + siteaccess2. I find it there for all things which I have imported by using .zexp. I have used the How-To on integrating zserver + Apache ...using the virtual host. # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPass /misc_ http://192.168.81.132:8081/misc_ ProxyPass /p_ http://192.168.81.132:8081/p_ How do I go abt solving the issue. -neeloy -----Original Message----- From: Tres Seaver [mailto:tseaver@digicool.com] Sent: Wednesday, September 27, 2000 7:08 PM To: neeloy_saha Cc: zope-ptk@zope.org Subject: RE: [Zope-PTK] Apache + Zserver + SiteAccess + Search results fro m the catalog On Wed, 27 Sep 2000, neeloy_saha wrote: > Hi tres, > > I used a very ugly approach to fix that.....well it works...... > > / > > I had many problems while installing PTK. I started one month back on zope. > frankly speaking the instructions for the installation that was there for > the PTK never seemed to work for me... I tried many versions and got this > configuration to work for me.At least I do not get an attribute error. I am > working on Win NT sp6 > > I am having another problem.... all the things that have been imported as > .zexp files... there icons are not visible.... and they point to > http://192.168.81.132/Control_Panel/Products/DemoPortal/Portal/ziconImage > > How do I go abt that??? First, please post such questions to the PTK list, rather than directly to me -- you'll get the benefit of everyone's knowledge that way. I can't reproduce the symptom you describe on my box: * Fresh Zope 2.2.2. install * CVS checkout of the PTK:: cvs -d :pserver:anonymous@cvs.zope.org co ZopePTK * Symlink ZCallable, PTKBase, and PTKDemo into my Products directory:: cd ~/Zope2/lib/python/Products ln -s ~/ZopePTK/ZCallable . ln -s ~/ZopePTK/PTKBase . ln -s ~/ZopePTK/PTKDemo . * Symlink Wizard.zexp and Demo.zexp into my import directory: cd ~/Zope2/import ln -s ../lib/python/Products/PTKDemo/Wizard.zexp . ln -s ../lib/python/Products/PTKDemo/PTKDemo.zexp . * (Re)start Zope. Notice that ZCallable, PTKBase, and PTKDemo have initialized cleanly (no "broken product" icons). * In Control_Panel/Products, import the ZClass products, 'Wizard.zexp' and 'DemoPortal.zexp'. Again, note no broken objects (if the PortalWizard object in DemoPortal looks broken, restart Zope and log it as a bug in the PTK tracker). * Create a test portal, using the wizard. Note that the portal object has a real "door" icon. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From sigve@tjora.no Wed Sep 27 17:35:21 2000 From: sigve@tjora.no (Sigve Tjora) Date: Wed, 27 Sep 2000 18:35:21 +0200 (CEST) Subject: [Zope-PTK] the PTK and i18n In-Reply-To: Message-ID: Hi! I would really like more support for translating the PTK. I did a translation into norwegian to show a customer how it can be done on a previus versjon of the PTK, but now I probably have to do it all over again when we are going to use the most current versjon. And it was quite a lot of work... At least it should be easy to make a sitewide translation by changing a "string-file" or something like that. Probably some want to have the possibility that the users can select the language they want, but I really don't need that for my project. Med vennlig hilsen Sigve Tjora www.tjora.no (norwegian only...) Du skrev: (norwegian > Hi, > > is there anybody working on a multilingual PTK version ? > > I just looked in the code of PTKBase, and found that many phrases like the > actions are hardwired into the code (python and dtml). > > So we have to do some thinking how to integrate i18n into the PTK. > > Should we open a wiki for it ? > > > 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 > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > From sevigny@ajlsm.com Wed Sep 27 17:57:15 2000 From: sevigny@ajlsm.com (Martin Sevigny) Date: Wed, 27 Sep 2000 18:57:15 +0200 Subject: [Zope-PTK] General advice for a Web directory Message-ID: Dear PTK specialists, I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. Here is what I want to do: - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site - Let users search for Web resources in the directory - Let different people manage different parts of the directory After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. For now, I have these questions: - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. Have a nice day, Martin Sévigny From rik.hoekstra@inghist.nl Thu Sep 28 09:19:37 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Thu, 28 Sep 2000 10:19:37 +0200 Subject: [Zope-PTK] General advice for a Web directory References: Message-ID: <009a01c02924$d8277580$fe5da182@michieltje> I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. Here is what I want to do: - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site - Let users search for Web resources in the directory - Let different people manage different parts of the directory After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. For now, I have these questions: - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. [rh]While the PTK is perhaps useful for your purposes, you may want to look at a product called YiHAW, which is meant just for Yahoo like directories. In its documentation it says: " Yihaw represents a different viewpoint on how to build a portal than the Zope PTK product. PTK uses the concept of a personal workspace, whereas Yihaw uses a shared workspace." http://www.zope.org/Members/Roug/Yihaw hth Rik From webmaven@lvcm.com Thu Sep 28 03:15:22 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Wed, 27 Sep 2000 19:15:22 -0700 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> <39D1178C.D535382E@libc.org> Message-ID: <39D2A9BA.236875D4@lvcm.com> Bill Anderson wrote: > > Michael Bernstein wrote: > > > > I swiped some code out of the ManageMembers method in Membership, and > > I'm trying to implement a functional member roster as the index_html of > > a 'members' folder. > > > > the code fragment in question is this: > > > > > > > > > > > > > > (&dtml-getUserName;) > > > > (&dtml-getUserName;) > > > > > > > > > > > > I want the to test for the existence of a folder (contained > > within /members) that has an identical id as the member. That way this > > will display a link only if they have a folder. > > how about (UNTESTED!!!): > > Here is the syntax that works: Bill's suggestion put me on the right track, and a search through the archives revealed the following posting from Chris McDonough: http://lists.zope.org/pipermail/zope/2000-April/024628.html Which gave me the last piece of the puzzle. Just goes to show you that all Zope Zen is contained within the archives ;-) This should be useful for anyone who wants to implement a portal where only *some* members have a home folder. The current all-or-nothing approach of both the PTK and membership seems limiting. Michael Bernstein. From mtaylor@goldridge.net Thu Sep 28 10:22:27 2000 From: mtaylor@goldridge.net (Monty Taylor) Date: Thu, 28 Sep 2000 11:22:27 +0200 Subject: [Zope-PTK] General advice for a Web directory References: Message-ID: <39D30DD3.60192572@goldridge.net> Martin, I'm working on a very similar thing. I'm trying to have the full functionality of the PTK with the ability to do Web Directories. I've been working on using ZTopics to build a categorization system similar to the one on Sourceforge. So that in addition to publishing a resource you can choose to categorize it as well. If you'd like to help out, I could sure use a hand. Monty Martin Sevigny wrote: > Dear PTK specialists, > > I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. > > Here is what I want to do: > > - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site > > - Let users search for Web resources in the directory > > - Let different people manage different parts of the directory > > After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. > > For now, I have these questions: > > - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... > > - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? > > - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? > > - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? > > Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. > > Have a nice day, > > Martin Sévigny > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From gfbdpf@mx10.australia.ms Thu Sep 28 02:56:13 2000 From: gfbdpf@mx10.australia.ms (gfbdpf@mx10.australia.ms) Date: Thu, 28 Sep 2000 01:56:13 Subject: [Zope-PTK] (no subject) Message-ID: <137.85823.199105@mail.mindspring.com> GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY! STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN GET ONE FOR ONLY $11.95 PER MONTH! DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A SIMPLE PHONE CALL TO OUR OFFICE. YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with no extra charge! UNLIMITED TRAFFIC -- no extra charge! FRONT PAGE EXTENSIONS are FULLY SUPPORTED. A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS. ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP CHARGE. FOR DETAILS CALL 1 888 248 0765 if you are outside the USA, please fax 240 337 8325 Webhosting International From bill@libc.org Fri Sep 29 04:27:49 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 28 Sep 2000 21:27:49 -0600 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> <39D1178C.D535382E@libc.org> <39D2A9BA.236875D4@lvcm.com> Message-ID: <39D40C35.D65801FE@noreboots.com> Michael Bernstein wrote: > > Bill Anderson wrote: > > > > Michael Bernstein wrote: > > > > > > I swiped some code out of the ManageMembers method in Membership, and > > > I'm trying to implement a functional member roster as the index_html of > > > a 'members' folder. > > > > > > the code fragment in question is this: > > > > > > > > > > > > > > > > > > > > > (&dtml-getUserName;) > > > > > > (&dtml-getUserName;) > > > > > > > > > > > > > > > > > > I want the to test for the existence of a folder (contained > > > within /members) that has an identical id as the member. That way this > > > will display a link only if they have a folder. > > > > how about (UNTESTED!!!): > > > > > > Here is the syntax that works: > > > > Bill's suggestion put me on the right track, and a search > through the archives revealed the following posting from > Chris McDonough: Cool. > http://lists.zope.org/pipermail/zope/2000-April/024628.html > > Which gave me the last piece of the puzzle. Just goes to > show you that all Zope Zen is contained within the archives > ;-) The first lesson of Zope Zen: "All Zen is within the archives." The Second Lesson of Zope Zen: "All Zen not bounded by the archives, is contained within the source." :-) > > This should be useful for anyone who wants to implement a > portal where only *some* members have a home folder. The > current all-or-nothing approach of both the PTK and > membership seems limiting. Remember, that's just the implementation design PortalMembership, which is aimed at portals, without member folders. The forthcoming CommunityMembership will provide for member folders, and will naturally not be an all-or-nothing proposal. -- E PLURIBUS LINUX From Daniel.Schweingruber@miracle.com Fri Sep 29 09:28:03 2000 From: Daniel.Schweingruber@miracle.com (Daniel.Schweingruber@miracle.com) Date: Fri, 29 Sep 2000 10:28:03 +0200 Subject: [Zope-PTK] Search returns all entries Message-ID: <3B5D9864A6E0D3118FC200508B7893737DC8DD@mbx.miracle.com> Hi Is there a known bug in the search of PTK? I always get the whole catalog back, even I'm looking for a word, which doesn't exist in the vocabulary. Thanks for help and the cool product. Daniel Schweingruber mailto:DanielS@miracle.com From mbernstein@profitscape.com Fri Sep 29 21:00:00 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 29 Sep 2000 15:00:00 -0500 Subject: [Zope-PTK] Further enhancements to membership roster for intranets Message-ID: <39D4F4C0.774C7804@profitscape.com> I decided to implement an Intranet directory/membership roster. I started with the ManageMembers dtml method in membership, but copied it out to a '/members' folder index_html method. I also created a new Python Method inside acl_users by copying getMembers and naming the copy getListedMembers. The original method had this body: -8<-------------------------------------------------- user_ids=self.UserSource.getPersistentItemIDs() users=[] for i in user_ids: users.append(self.getItem(i)) return users -8<-------------------------------------------------- Which I modified like so: -8<-------------------------------------------------- user_ids=self.UserSource.getPersistentItemIDs() users=[] for i in user_ids: if self.UserSource.getItem(i).listed: users.append(self.getItem(i)) return users -8<-------------------------------------------------- The index_html method in '/members' implements a policy of showing the entire list of members if you're logged in, but Anonymous viewrs only see members who have have the listed option set. I also made a few other changes: - The PortalMember ZClass has 'Firstname' 'Lastname' instead of 'GivenName' 'Surname' - The ZClass has an additional 'Extension' property, which is listed for each member. - Alternate rows have green backgrounds to increase legibility - If a folder in the '/members' folder exists whose id matches the User name, the user name is linked to it. Here's the index_html code, I hope it's useful: -8<--------------------------------------------------

BGCOLOR="#CCFFCC"> BGCOLOR="#CCFFCC">
NameUser IDExtensionEmail Address
 (&dtml-getUserName;)&dtml-Extension; &dtml-email;  (&dtml-getUserName;)&dtml-Extension; &dtml-email;
 (&dtml-getUserName;)&dtml-Extension; &dtml-email;  (&dtml-getUserName;)&dtml-Extension; &dtml-email;
Previous Members No previous Members | Next Members No more Members
-8<-------------------------------------------------- HTH, Michael Bernstein. From tseaver@zope.org Fri Sep 29 23:52:32 2000 From: tseaver@zope.org (Tres) Date: Fri, 29 Sep 2000 15:52:32 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - RegistrationTool.py:1.3 Message-ID: <200009292252.PAA02069@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv2060/PTKBase Modified Files: RegistrationTool.py Log Message: * Fix list of possible charaters (Tracker issue #75) From tseaver@zope.org Sat Sep 30 00:17:09 2000 From: tseaver@zope.org (Tres) Date: Fri, 29 Sep 2000 16:17:09 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - discussionEdit.dtml:1.2 discussionView.dtml:1.3 documentEdit.dtml:1.2 documentView.dtml:1.3 fileEdit.dtml:1.2 fileView.dtml:1.3 imageEdit.dtml:1.2 imageView.dtml:1.2 linkEdit.dtml:1.2 linkView.dtml:1.3 newsEdit.dtml:1.2 newsView.dtml:1.3 Message-ID: <200009292317.QAA02588@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo/dtml In directory zope.codeit.com:/tmp/cvs-serv2579 Modified Files: discussionEdit.dtml discussionView.dtml documentEdit.dtml documentView.dtml fileEdit.dtml fileView.dtml imageEdit.dtml imageView.dtml linkEdit.dtml linkView.dtml newsEdit.dtml newsView.dtml Log Message: * Stylize content type DTML From bill@noreboots.com Sat Sep 30 18:40:01 2000 From: bill@noreboots.com (Bill Anderson) Date: Sat, 30 Sep 2000 11:40:01 -0600 Subject: [Zope-PTK] Membership and PTK Message-ID: <39D62571.E839EEF4@noreboots.com> I am getting married Monday, and may be off lists for a week, so for anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to me now, so I can work on it over the weekend, and next week. I don't want to duplicate work already done. Bill -- E PLURIBUS LINUX From chrism@digicool.com Sat Sep 30 19:37:35 2000 From: chrism@digicool.com (Chris McDonough) Date: Sat, 30 Sep 2000 14:37:35 -0400 Subject: [Zope-PTK] Membership and PTK References: <39D62571.E839EEF4@noreboots.com> Message-ID: <005e01c02b0d$80956ee0$1f48a4d8@kurtz> This is hilarious. Way to prioritize, Bill! (and congratulations) :-) ----- Original Message ----- From: "Bill Anderson" To: ; Sent: Saturday, September 30, 2000 1:40 PM Subject: [Zope-PTK] Membership and PTK > > I am getting married Monday, and may be off lists for a week, so for > anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to > me now, so I can work on it over the weekend, and next week. > > I don't want to duplicate work already done. > > Bill > > -- > E PLURIBUS LINUX > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > From phil.harris@zope.co.uk Fri Sep 29 22:44:19 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 29 Sep 2000 22:44:19 +0100 Subject: [Zope-PTK] Re: [Zope-dev] Membership and PTK References: <39D62571.E839EEF4@noreboots.com> Message-ID: <004b01c02a5e$6d1aa8d0$df93bcd4@harrisf4scs8le> Don't do man. Quick everybody, let's start a rescue comittee! Congrats Bill Phil ----- Original Message ----- From: "Bill Anderson" To: ; Sent: Saturday, September 30, 2000 6:40 PM Subject: [Zope-dev] Membership and PTK > > I am getting married Monday, and may be off lists for a week, so for > anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to > me now, so I can work on it over the weekend, and next week. > > I don't want to duplicate work already done. > > Bill > > -- > E PLURIBUS LINUX > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) From phil.harris@zope.co.uk Fri Sep 1 00:25:36 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 1 Sep 2000 00:25:36 +0100 Subject: [Zope-PTK] Win32 Binary for zPatterns 0.4.2a1 available Message-ID: <00bd01c013a2$c549ed40$f899bcd4@harrisf4scs8le> This is a multi-part message in MIME format. ------=_NextPart_000_00BA_01C013AB.2602FFC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To whoever is interested: The win32 binary for DynPersist.pyd is now available from: http://yyy.zope.org/Members/philh hth Phil phil.harris@zope.co.uk ------=_NextPart_000_00BA_01C013AB.2602FFC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
To whoever is interested:
 
The win32 binary for DynPersist.pyd is = now=20 available from:
 
http://yyy.zope.org/Members/ph= ilh
 
hth
 
Phil
phil.harris@zope.co.uk<= /DIV>
 
------=_NextPart_000_00BA_01C013AB.2602FFC0-- From webmaven@lvcm.com Fri Sep 1 02:33:47 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Thu, 31 Aug 2000 18:33:47 -0700 Subject: [Zope-PTK] Integrating Portal ToolKit and NTUserfolder References: <8EE756E49A17D21194860008C7F49AFE0452909F@TWRMSG01> Message-ID: <39AF077B.ADD99CCB@lvcm.com> neeloy_saha wrote: > > Hi all, > > I am having problems installing NTUserFolder in the portal that I have > created. I want to validate against my NT domain name. > I have done the following steps :- > > well while installing NTUserFolder i have done the following steps :- > > [steps snipped] > > I found that u have given some steps for integrating login manager and samba > is given in tres's page but it did not help me much!! as I am a zope and > python newbie. Ok, the first question I have is what platform you are deploying your Zope server on? NTUserfolder and jcNTUserFolder are meant to be used on an NT platform, but the SMBUserFolder and the SMB/LoginManager Howto are meant to be used on a Unix platform to authenticate off of an NT PDC. Michael Bernstein. From luis.mateos@MatraNortel.com Fri Sep 1 09:37:59 2000 From: luis.mateos@MatraNortel.com (Mateos, Luis) Date: Fri, 1 Sep 2000 10:37:59 +0200 Subject: [Zope-PTK] Multiple Member Folders Message-ID: <200009010852.KAA03363@jupiter.matranortel.com> Hello all! Can the member create multiple folders inside his/her member folder to organize his/her stuff? Thanks, Luis From chrisw@nipltd.com Fri Sep 1 10:55:59 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 10:55:59 +0100 Subject: [Zope-PTK] No idea :( References: <20000829225954.9307.qmail@mail.cecosi.com.sv> <39AD3717.950D8AED@nipltd.com> <20000830170240.14672.qmail@mail.cecosi.com.sv> <39AE4506.30248CB8@nipltd.com> <20000831222611.28096.qmail@mail.cecosi.com.sv> Message-ID: <39AF7D2F.3742D005@nipltd.com> Francisco Monge wrote: > Zope Error > Zope has encountered an error while publishing this > resource. > > Error Type: AttributeError > Error Value: __call__ > > What could it be? Sorry, now I am totally lost ;-) Chris From tina@cegbiz.com Fri Sep 1 17:39:23 2000 From: tina@cegbiz.com (Tina Sawyer) Date: Fri, 1 Sep 2000 09:39:23 -0700 Subject: [Zope-PTK] RE: Undeliverable Mail In-Reply-To: <10009010909.AA02224@mail.cegbiz.com> Message-ID: Greetings, I am having a very hard time trying to get help on this issue. I am prepared to accept the flames but I don't know where to go ask this question. So if anyone can point me in the right direction it would be greatly appreciated. Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 I could not get zope to run as a pcgi. So.. I set up a Linux server using Redhat version 6.2, running apache and I still cannot get zope to run as a pcgi. Any thoughts on this? Sorry to bother you. Thanks for listening, Tina Brown From kayeva@hotmail.com Fri Sep 1 19:17:54 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 01 Sep 2000 18:17:54 GMT Subject: [Zope-PTK] RE: Undeliverable Mail Message-ID: Hi, Apparently, you did not know about ZDP, the Zope Documentation Portal. It allows you to get in a portal according to your level of expertise / domains of interest (this is called a Portal but it is a specific concept actually), and from there you can see information that has been cataloged from ZDP, or access usefull predefined searches. Check http://zdp.zope.org and http://zdp.zope.org/portals/administrators/installation Rgds Kamon >From: "Tina Sawyer" >To: >Subject: [Zope-PTK] RE: Undeliverable Mail >Date: Fri, 1 Sep 2000 09:39:23 -0700 > > > >Greetings, >I am having a very hard time trying to get help on this issue. >I am prepared to accept the flames but I don't know where to go ask this >question. So if anyone can point me in the right direction it would be >greatly appreciated. > >Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 >I could not get zope to run as a pcgi. So.. I set up a Linux server using >Redhat version 6.2, running apache and I still cannot get zope to run as a >pcgi. Any thoughts on this? > > >Sorry to bother you. > >Thanks for listening, >Tina Brown > > > > >_______________________________________________ >Zope-PTK maillist - Zope-PTK@zope.org >http://lists.zope.org/mailman/listinfo/zope-ptk > >See http://www.zope.org/Products/PTK/Tracker for bug reports and feature >requests > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From gryser@cgx.ch Sat Sep 2 16:41:46 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Sat, 2 Sep 2000 17:41:46 +0200 Subject: [Zope-PTK] Can't Create Portal Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_014D_01C01505.10CC5420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have exactly the same problem as found in an email from Brent A. Nielson Aug 20. But my problem is I can't find the file in which I should make the changes. It is mentioned the PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and have still a long way in front of me to master this biest. Thanks for help Gottfried Ryser ------=_NextPart_000_014D_01C01505.10CC5420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have = exactly the=20 same problem as found in an email from Brent A. Nielson Aug 20. But my = problem=20 is I can't find the file in which I should make the changes. It is = mentioned the=20 PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and = have=20 still a long way in front of me to master this = biest.
 
Thanks = for=20 help
Gottfried=20 Ryser
 

 

 
------=_NextPart_000_014D_01C01505.10CC5420-- From aboulang@ldeo.columbia.edu Sun Sep 3 01:44:31 2000 From: aboulang@ldeo.columbia.edu (albert boulanger) Date: Sat, 2 Sep 2000 20:44:31 -0400 (EDT) Subject: [Zope-PTK] Zope PKT and sessions Message-ID: <200009030044.UAA00505@ox.ldgo.columbia.edu> Does anyone have sessions working for session control after a user logs in with the PTK product? I am playing with SQLSessions and decided the best way to do this is to move the Members folder into a Sessions folder but I am not there yet as I am having some permissions/security issues right now that I have not figured out. I am using the latest Zope release and a PTK CVS co from last week. Has anyone done something like this? Regards, Albert Boulanger aboulanger@vpatch.com From andyd@nipltd.com Mon Sep 4 08:41:25 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Mon, 4 Sep 2000 08:41:25 +0100 Subject: [Zope-PTK] FW: [Zope-PTK] Can't Create Portal Message-ID: Gottfired The file you are looking for is in zope/lib/python/Products/PTKDemo/Portal.py and is the method called createPortalTools in the class DemoPortalBase. If you have the latest CVS checkout you do not need to make this change. Although I am not sure about version 0.8.2 You will also have to delete your zope/lib/python/Products/Wizard directory and your zope/lib/python/Products/DemoPortal directory. Restart Zope. Manually remove the DemoPortal and Wizard product from the Control_Panel/Products within Zope, if this hasn't automatically happened. Then copy the DemoPortal.zexp and the Wizard.zexp file from the zope/lib/python/Products/PTKDemo directory in to your zope/Import directory, and import them in to the Control_Panel/Products folder in Zope. Hope that helps. -Andy Dawkins -----Original Message----- From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf Of Gottfried Ryser Sent: 02 September 2000 16:42 To: Zope-PTK@zope.org Subject: [Zope-PTK] Can't Create Portal I have exactly the same problem as found in an email from Brent A. Nielson Aug 20. But my problem is I can't find the file in which I should make the changes. It is mentioned the PTKdemo.DemoPortalBase.createPortalTools method. I'm new with Zope and have still a long way in front of me to master this biest. Thanks for help Gottfried Ryser From andyd@nipltd.com Mon Sep 4 15:16:22 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Mon, 4 Sep 2000 15:16:22 +0100 Subject: [Zope-PTK] View Thread Error Message-ID: Has anyone seen this error before? I got it when attempting to 'View Thread' of a document in a members folder. I was logged on as the member at the time. The Document was 'index_html' created by the member there was one reply in the 'Correspondence' folder also created by the member. (Spec: server=WinNt4(sp5), client=Win98+WinNt4(sp5), Zope 2.2, Latest CVS PTK) Traceback (innermost last): File Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: discussion_thread_view) File Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: discussion_thread_view) File Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: discussion_thread_view) File Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: discussion_thread_view) File Zope\lib\python\TreeDisplay\TreeTag.py, line 155, in render (Object: a tree tag) File Zope\lib\python\TreeDisplay\TreeTag.py, line 261, in tpRender (Object: index_html) File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE (Object: index_html) Unauthorized: [0] Cheers -Andy From chrisw@nipltd.com Mon Sep 4 18:46:53 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 18:46:53 +0100 Subject: [Zope-PTK] Squishdot/Swishdot RFCs Message-ID: <39B3E00D.371D59A@nipltd.com> Hi, I've just posted a set of articles relating to the future of Squishdot and Swishdot on http://www.squishdot.org which I'd really like to get lots of feedback on. Could anyone interested please pop along and comment? cheers, Chris From gryser@cgx.ch Mon Sep 4 20:25:42 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Mon, 4 Sep 2000 21:25:42 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] Can't Create Portal In-Reply-To: Message-ID: Andy I had bad luck with my PTK. After taking the latest portal.py from CSV and taking the other steps I got now this errormsg. Traceback (innermost last): File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: DemoPortalBase) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: finish) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: finish) File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: finish) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: finish) File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: standard_html_header) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: standard_html_header) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: member="getPortal().getAuthenticatedMember()") File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) (Info: this) File , line 0, in ? File /usr/local/Zope2/lib/python/Products/PTKBase/Toolbox.py, line 141, in __call__ File /usr/local/Zope2/lib/python/App/special_dtml.py, line 121, in __call__ (Object: dtml/toolbox) (Info: /usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 445, in __call__ (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 383, in cook (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 376, in read (Object: dtml/toolbox) File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 538, in read_raw (Object: dtml/toolbox) IOError: [Errno 13] Permission denied: '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' Thank you for help Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: Andy Dawkins [mailto:andyd@nipltd.com] > Gesendet: Montag, 4. September 2000 09:36 > An: gryser@cgx.ch > Betreff: RE: [Zope-PTK] Can't Create Portal > > > Gottfired > > The file you are looking for is in > zope/lib/python/Products/PTKDemo/Portal.py and is the method called > createPortalTools in the class DemoPortalBase. > > If you have the latest CVS checkout you do not need to make this change. > Although I am not sure about version 0.8.2 > > You will also have to delete your zope/lib/python/Products/Wizard > directory > and your zope/lib/python/Products/DemoPortal directory. > > Restart Zope. Manually remove the DemoPortal and Wizard product from the > Control_Panel/Products within Zope, if this hasn't automatically happened. > > Then copy the DemoPortal.zexp and the Wizard.zexp file from the > zope/lib/python/Products/PTKDemo directory in to your zope/Import > directory, > and import them in to the Control_Panel/Products folder in Zope. > > Hope that helps. > -Andy Dawkins > From gryser@cgx.ch Mon Sep 4 21:29:45 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Mon, 4 Sep 2000 22:29:45 +0200 Subject: [Zope-PTK] AW: portal error In-Reply-To: Message-ID: David This helped - and PTK works Thank you! Gottfried > -----Ursprüngliche Nachricht----- > Von: David Spencer [mailto:dspencer@ensavant.com] > Gesendet: Montag, 4. September 2000 21:55 > An: gryser@cgx.ch > Betreff: portal error > > > HOwdy, > > I think you're having the same error I initially had. Try changing > ownership of toolbox.dtml to the same user that zope runs as. I > orignially > had ownership of the PTK folders under my login name, but it worked fine > when I switched it to nobody. > > Good luck. > > David > > From fmonge@cecosi.com.sv Tue Sep 5 00:41:14 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Mon, 04 Sep 2000 17:41:14 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? Message-ID: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Hi, I still having the same problem, but this time with Suse 6.4 and Apache (I couldn't fix it under Windows 2000). when I'm trying to access a members page, a window appears asking for a username and a password. If a click cancel, the images (logo and the go bouton in the search box) shows as broken, if I enter a username and a password, everthing is ok. Also, if the images shows up as broken and I click on View in the toolbox, everthing show up ok. please help me ... Francisco Monge ---------------------------------------------------------- Quoting Francisco Monge : > Quoting Chris Withers : > > > Francisco Monge wrote: > > > When I right-click "View Image", a new window > appears > > > asking for a username and a password. > > > > Now that sounds like a security issue. > > > > Weird. > > > > Does the dialog box not pop up on the page otherwise? > > Does it just go straight to a 'broken image'? > > > What I find is, if I try to change Security permisions > to a Image (and only to a Image), I got the message: > > Zope Error > Zope has encountered an error while publishing this > resource. > > Error Type: AttributeError > Error Value: __call__ > > What could it be? > > thank you very much > > Francisco > > From neeloy_saha@infy.com Tue Sep 5 04:39:31 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Tue, 5 Sep 2000 09:09:31 +0530 Subject: [Zope-PTK] Portal ToolKit with Login Manager support Message-ID: <8EE756E49A17D21194860008C7F49AFE045290AE@TWRMSG01> Hi all, I am getting the following error when i try to install the portal toolkit with the ' experimental login manager support'. I am using the zpatterns version : ZPatterns-0-4-1snap1 and demo portal : 0.8.2 and other products. If I create the portal with no initail member then i am able to have a portal with login manager user folder. But then after I have installed the portal I am unable to add a member. ?? Can i have a working snapshot of the portal toolkit with the login managersupport for a windows version or probably a direction as to how to go abt fixing the above problem of version mismatch?? -neeloy ============================================================================ ================================= Error Type: NameError Error Value: client File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) ============================================================================ ================================================= Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: apply_wizard(REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Program Files\WebSite\lib\python\Products\PTKDemo\Portal.py, line 261, in apply_wizard (Object: DemoPortalBase) File C:\Program Files\WebSite\lib\python\Products\Membership\PersistentUserSource.py, line 63, in setMemberProperties (Object: wqeqw) File C:\PROGRA~1\WebSite\lib\python\OFS\PropertySheets.py, line 607, in __getitem__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\PropertySheets.py, line 11, in __propsets__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) From andyd@nipltd.com Tue Sep 5 08:20:26 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 08:20:26 +0100 Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Message-ID: Franciso What you are experiencing is a known bug with PTK 0.8.2 The latest CVS version fixes this problem. You can either get the up-to-date version from CVS or wait for the next snap shot release. -Andy > -----Original Message----- > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf > Of Francisco Monge > Sent: 05 September 2000 00:41 > To: Lista de correo PTK > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > Hi, > > I still having the same problem, but this time with Suse 6.4 and > Apache (I > couldn't fix it under Windows 2000). > > when I'm trying to access a members page, a window appears asking for a > username and a password. If a click cancel, the images (logo and > the go bouton > in the search box) shows as broken, if I enter a username and a password, > everthing is ok. Also, if the images shows up as broken and I > click on View in > the toolbox, everthing show up ok. > > please help me ... > > Francisco Monge > ---------------------------------------------------------- > > > Quoting Francisco Monge : > > > Quoting Chris Withers : > > > > > Francisco Monge wrote: > > > > When I right-click "View Image", a new window > > appears > > > > asking for a username and a password. > > > > > > Now that sounds like a security issue. > > > > > > Weird. > > > > > > Does the dialog box not pop up on the page otherwise? > > > Does it just go straight to a 'broken image'? > > > > > What I find is, if I try to change Security permisions > > to a Image (and only to a Image), I got the message: > > > > Zope Error > > Zope has encountered an error while publishing this > > resource. > > > > Error Type: AttributeError > > Error Value: __call__ > > > > What could it be? > > > > thank you very much > > > > Francisco > > > > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From jwt@OnJapan.net Tue Sep 5 08:28:59 2000 From: jwt@OnJapan.net (Jim Tittsler) Date: Tue, 5 Sep 2000 16:28:59 +0900 Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: References: <968110874.39b4331ac7b64@mail.cecosi.com.sv> Message-ID: <20000905162859.A14953@server.onjapan.net> On Tue, Sep 05, 2000 at 08:20:26AM +0100, Andy Dawkins wrote: > You can either get the up-to-date version from CVS or wait for the next snap > shot release. And if you want to try the CVS version but have trouble with getting CVS past a firewall, unofficial snapshots in tarball form are still available from: http://starship.python.net/crew/jwt/zope/ZopePTK/ From neeloy_saha@infy.com Tue Sep 5 13:10:44 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Tue, 5 Sep 2000 17:40:44 +0530 Subject: [Zope-PTK] Using Portal Toolkit and login manager Message-ID: <8EE756E49A17D21194860008C7F49AFE045290B5@TWRMSG01> Hi all, I am unable to create a portal with the login manager ... It does not give me the right to create the members. So I am not able to create my first member. In case i do not give my first user name , i am able to create the portal...but all those features of 'join in' does not work and each time i get the following error. I am using Zpattern : version ZPatterns-0-4-1snap1 [ I have been using dynpersist.pyd from some other rev ] login manager : LoginManager-0-8-7a1 Demo Portal : 0.8.2 Membership : Membership 0.7.0 Membership : 0.6 Platform : winNT/win95 tested on both zope : 2.2.0 I am getting error in the following portion of the code : error type : Name error error value : client ============================================================================ =========== def _v_currentSheets(self,_v_dm_=_v_dm_): """PropertySheets tuple (analagous to __propsets__)""" l = [] for sp in self.__dict__[_v_dm_]._uniqueProviders(('sheets',)): l.extend(list(sp._PropertySheetsFor(client))) self._v_currentSheets = tuple(l) return self._v_currentSheets ============================================================================ =========== My only inference is this global ' client' is not being set somewhere. Did some code mining, found out that this variable client occurs in another python file called : lib/python/products/Zpattern//propertysheets.py CAN ANYBODY PLEASE HELP ME.... I am a zope newcomer and stuck by this bug.....??? Can somebody point out the direction in which i should look. all views are welcome.....anything !!! u can mail directly to my id also..... -neeloy From pje@telecommunity.com Tue Sep 5 15:48:52 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Tue, 05 Sep 2000 09:48:52 -0500 Subject: [Zope-PTK] Portal ToolKit with Login Manager support In-Reply-To: <8EE756E49A17D21194860008C7F49AFE045290AE@TWRMSG01> Message-ID: <3.0.5.32.20000905094852.01cd38a0@telecommunity.com> At 09:09 AM 9/5/00 +0530, neeloy_saha wrote: >Hi all, > >I am getting the following error when i try to install the portal toolkit >with the ' experimental login manager support'. >I am using the zpatterns version : ZPatterns-0-4-1snap1 and demo portal : >0.8.2 and other products. If I create the portal with no initail member then >i am able to have a portal with login manager user folder. But then after I >have >installed the portal I am unable to add a member. ?? > >Can i have a working snapshot of the portal toolkit with the login >managersupport >for a windows version or probably a direction as to how to go abt fixing >the above problem of version mismatch?? > The error you're getting is a ZPatterns problem with 0.4.1snap1. You may want to try 0.4.2a1. From andyd@nipltd.com Tue Sep 5 16:26:15 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 16:26:15 +0100 Subject: [Zope-PTK] Discussion Problems with PTK Message-ID: I am currently trying to evaluate the PTK discussable objects so that I can draw up a plan of action for developing Swishdot. Unfortunately I can't evaluate discussable because I am having problems with the discussion_thread_view and the tree tag. I posted this yesterday to zope-ptk@zope.org but have had no response. >Has anyone seen this error before? > >I got it when attempting to 'View Thread' of a document in a members folder. >I was logged on as the member at the time. >The Document was 'index_html' created by the member >there was one reply in the 'Correspondence' folder also created by the >member. > >(Spec: server=WinNt4(sp5), client=Win98+WinNt4(sp5), Zope 2.2, Latest CVS >PTK) > >Traceback (innermost last): > File Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module > File Zope\lib\python\ZPublisher\Publish.py, line 187, in publish > File Zope\lib\python\ZPublisher\Publish.py, line 171, in publish > File Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply > (Object: discussion_thread_view) > File Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object > (Object: discussion_thread_view) > File Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__ > (Object: discussion_thread_view) > File Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ > (Object: discussion_thread_view) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 155, in render > (Object: a tree tag) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 261, in tpRender > (Object: index_html) > File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE > (Object: index_html) >Unauthorized: [0] Is it just me or can nobody view the discussion thread for a item. Are there any patches or specific versions of software I should be using. I have upgraded my server to Zope 2.2.1 since the previous post but have not ironed out this error. I have my suspicions that it may have something to do with the treetag or the getReplies method of disscussions.py Would the latest CVS version of Zope help? Cheers -Andy Dawkins (New Information Paradigms Ltd) From chrisw@nipltd.com Tue Sep 5 16:23:31 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:23:31 +0100 Subject: [Zope-PTK] What is the PTK? References: <613145F79272D211914B0020AFF640198C3226@gandalf.digicool.com> Message-ID: <39B50FF3.BC43B8AF@nipltd.com> Paul Everitt wrote: > The PTK also needs a new name. I've spent a lot of time over the last > two weeks thinking about it. If someone comes up with a name, lemme > know. What happened to that funky dictionary you had in Paris? ;-) > 1) A _product_. Zope is a platform that isn't necessarily > out-of-the-box useful. The thing that we're interested in needs to be > on the order of Squishdot -- immediately grok-able and useful. Now this sounds like what is currently PTK Demo... > 2) Consulting-ware. I'll go ahead and contradict one immediately as > evidence of the tension. We want PTKNG to be flexible for consulting > projects. ...and this sounds like PTK Base. How's this for a possible future: The tools in PTK Base work their way into the Zope core over a period of time and either ship as standard or come in a couple of very-standard add on modules: - Zope Content Management Tools - Zope Community Management Tools Then, on top of this, there would be 'standard products' which, again, may or may not ship with Zope: - PTK (with its funky new name ;-) - Squishdot The idea for these would be to not include any tools that might be useful for another product. If that's the case, they should be factored out into on of the two ZCMTs sets. That said, these products might contain tools for a while, while they're 'growing', as seems to be happening with the PTK right now... (it strikes me the dependency checking mentioned in the Installation System proposal on dev.zope.org would be very helpful in this looks at the future...) > 3) Targeted at the CMS market. The next phase of Digital Creations is > to focus on the content management systems market, where products like > Vignette, Broadvision, Interwoven, and Spectra reside. These are all > generally balances between (1) and (2), combined with very high end > professional services. Surely if (1) was underpinned by a very good and flexble (2), it'd be a win-win situation? What does everyone else think? Chris PS: In Step 2 of 3 in the Add Portal Wizard there's a 'Design' dropdown. Is that an appropriate place for Swishdot to appear, or would that not really be flexible enough? From chrisw@nipltd.com Tue Sep 5 16:31:04 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:31:04 +0100 Subject: [Zope-PTK] Retro-GUI Widgets References: <977A39E65CFCD3119ABF00D0B741D8497336BF@innt-73> Message-ID: <39B511B8.74AC850F@nipltd.com> "Spicklemire, Jerry" wrote: > However, keep in mind that frames and layers can cause headaches with > bookmarks. In an "application" setting, that's less of a problem. The user > always has to come through the "front door" anyhow. ...as someone who often bookmarks things that you probably shouldn't, this makes me a little wary :S Chris PS: Not quite sure I've groked what this thread's about yet though ;-) From chrisw@nipltd.com Tue Sep 5 16:38:20 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:38:20 +0100 Subject: [Zope-PTK] PTK II has landed References: <39945FA4.75CEFB@digicool.com> Message-ID: <39B5136C.AB7BC08C@nipltd.com> Shane Hathaway wrote: > - The portal_discussion tool is very weak. It just mimics what the old > architecture did. I bet Chris Withers has some insight here! At last, myself and Andy Dawkins are getting into this... We're having lots of trouble 'getting' the PTK, and one or two bugs are confusing the hell out of us (I still can't actually create DemoPortals on my local copy of Zope...) but I'm sure we'll get there. Of course, any help si good help ;-) cheers, Chris PS: > - The generic interface is too blue. Designers wanted! But blue's my favourite colour! ;-) From chrisw@nipltd.com Tue Sep 5 16:43:17 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 16:43:17 +0100 Subject: [Zope-PTK] Small Wizard Complaint Message-ID: <39B51495.37F6FE80@nipltd.com> ...if you try and create a Portal with an id that already exists, you only find out after you've been through the whole set of forms and if you hit your browser's back button (as opposed to the one on the form) you start loosing lots of the information you typed. :-S cheers, Chris From kayeva@hotmail.com Tue Sep 5 16:54:48 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Tue, 05 Sep 2000 15:54:48 GMT Subject: [Zope-PTK] What is the PTK? Message-ID: Hi, I mostly agree with Chris, and think that there would be more than 2 products available on top of ZCMT and usable out-of-the-box. I am thinking about ZDP-Tools which will soon be available as a brand new solution. Also the ZCMT part could integrate some stuff from the ZDP-Tools architecture like: - the Model/View/Controler paradigm, - the "everything derive from one base class" idea, - and some ideas we are currently experimenting about "per meta_type templating" Just one thing, when Chris writes the following... >How's this for a possible future: >The tools in PTK Base work their way into the Zope core over a period of >time and either ship as standard or come in a couple of very-standard >add on modules: >- Zope Content Management Tools >- Zope Community Management Tools I think we should pay attention to not introduce new naming/concept related confusion in people's mind. What is exactly 'Community Management' versus 'Content Management' ? I think of Membership, but are you also thinking of Mail / Groupware related features ? -- Kamon Ecubateur _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From chrisw@nipltd.com Tue Sep 5 17:07:23 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:07:23 +0100 Subject: [Zope-PTK] Status shouldn't depend on Location References: <399824F8.17E31827@interfree.it> <399855C0.2526DF79@inorbit.com> <399856F3.EA17C444@digicool.com> <3999927A.B8629CA5@inorbit.com> <399A86CA.19AD692F@inorbit.com> <399A8776.EDB0BA37@inorbit.com> <399A9F91.7C2FB875@digicool.com> Message-ID: <39B51A3B.C422C58C@nipltd.com> Shane Hathaway wrote: > This is debatable, but I believe it would be more sensible to > physically move the object to a "published" area and leave its role to > permission mappings alone. I dunno if anyone has said this yet, and I know I'm late in replying but I disagree. Particularly for Swishdot, the content should stay where it is and it's status should change rather than it's status a result of it's location... If you look at how Squishdot sites present articles (which I'd kindof like to keep :S), they don't change their location depending on whether they're reviewed or not. I know munging the role to permission mappings sucks and I wish there was a better way. The location think is elegant but a bit limiting IMH(umble)O. cheers, Chris From andyd@nipltd.com Tue Sep 5 17:17:13 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Tue, 5 Sep 2000 17:17:13 +0100 Subject: [Zope-PTK] PTK install Gottcha Message-ID: Several People (including myself and ChrisW) have come across problems installing the latest CVS checkout of the PTK. There have been a number of different errors which seem to be fixed if you install the PTK in this following order. * Start Zope * Go to the Control_Panel/Products * Remove DemoPortal (If it exists) * Remove Wizard (If it exists) * Remove PTKBase (If it exists) * Remove PTKDemo (If it exists) * Remove ZCallable (If it exists) * Checkout the latest CVS version of PTKDemo, PTKBase and ZCallable * Copy PTKDemo, PTKBase and ZCallable to your zope/lib/python/Products/ directory * Copy DemoPortal.zexp and Wizard.zexp from zope/lib/python/Products/PTKDemo to /zope/import * Back in the Zope Control_Panel/Prodcuts import DemoPortal.zexp and Wizard.zexp * Restart Zope As well as telling everyone a method that seems to work for me, I am interested to know why it has to be done this way. This issue has tormented several people including Chris and myself. Can we have it fixed please? Cheers -Andy P.S. This method does not fix my Unauthorised issue with discussion_thread_view but I have been able to reproduce the error on several machines using this method to install the PTK. From chrisw@nipltd.com Tue Sep 5 17:37:28 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:37:28 +0100 Subject: [Zope-PTK] DOM Level 2 References: <613145F79272D211914B0020AFF64019713825@gandalf.digicool.com> Message-ID: <39B52148.CBC36AC8@nipltd.com> Paul Everitt wrote: > I just read the DOM spec during this two week vacation. It was eye > opening. They have deeply specified an architecture which is general to > many kinds of object systems. ...having heard about its length (hundreds of pages said Simon ;-) would it be okay if you guided this and pointed us to what needs to be done WRT DOM Level 2 compliance? It sounds like a good idea but I know that I'm never going to get around to reading the specs and will probably just muddle through as best I can unless someone turns around and goes "no! do it like this!" :-) I wonder if it's same for the rest of the 'TeamPTK' guys? cheers, Chris From fmonge@cecosi.com.sv Tue Sep 5 17:52:42 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Tue, 05 Sep 2000 10:52:42 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: References: Message-ID: <968172761.39b524da01a90@mail.cecosi.com.sv> Sorry bothering you with this problem, but I'm experiencing this bug with the lastest CVS. I also tried the lastest tarball avalaible at http://starship.python.net/crew/jwt/zope/ZopePTK and the same thing happens. What I just discovered is that only happens with Zope 2.2.1 and not with version 2.2.0. Thank you ... Francisco Monge Quoting Andy Dawkins : > Franciso > > What you are experiencing is a known bug with PTK 0.8.2 > > The latest CVS version fixes this problem. > > You can either get the up-to-date version from CVS or wait for the next > snap > shot release. > > -Andy > > > -----Original Message----- > > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On > Behalf > > Of Francisco Monge > > Sent: 05 September 2000 00:41 > > To: Lista de correo PTK > > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > > > > Hi, > > > > I still having the same problem, but this time with Suse 6.4 and > > Apache (I > > couldn't fix it under Windows 2000). > > > > when I'm trying to access a members page, a window appears asking for > a > > username and a password. If a click cancel, the images (logo and > > the go bouton > > in the search box) shows as broken, if I enter a username and a > password, > > everthing is ok. Also, if the images shows up as broken and I > > click on View in > > the toolbox, everthing show up ok. > > > > please help me ... > > > > Francisco Monge > > ---------------------------------------------------------- From chrisw@nipltd.com Tue Sep 5 17:53:25 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:53:25 +0100 Subject: [Zope-PTK] Hooks & Overridable References: <399C61C1.B283BCC2@inorbit.com> <399C95FA.BC5EC057@digicool.com> <399D216A.3E488C1E@inorbit.com> <399D256D.C262D1A3@digicool.com> Message-ID: <39B52505.E332D702@nipltd.com> Shane Hathaway wrote: > In my not very deep PTK experience, there was never a way to add hooks > without subclassing. Please correct me if I'm wrong. > > I just realized there are two more options: > > 4) Make these tools into ObjectManagers. Then you could hook anything > you want just by adding methods to the tools. I thought the overidable interface was supposed to help in this area too? ie: you make 'hookable' methods overridable so you can just and a DTML or Python Method into the portal object to override the specific method. Maybe having the tools as object managers would help here: You could still have the hookable bits overidable, but there overiding methods would be grouped together and ther ewouldn't be any namespace collisions. Am I missing anything or is that what's happening already? > 5) Make use of the observer pattern that was recently added. > Unfortunately, I don't know where it is. Can _anyone_ shed any light on where this has gone? ;-) cheers, Chris From chrisw@nipltd.com Tue Sep 5 17:54:49 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:54:49 +0100 Subject: [Zope-PTK] Hooks & Overidable again References: <399C61C1.B283BCC2@inorbit.com> <399C95FA.BC5EC057@digicool.com> <399D216A.3E488C1E@inorbit.com> <399D256D.C262D1A3@digicool.com> <399D294F.31E4B3BA@inorbit.com> <399D5F43.D557FE7F@inorbit.com> Message-ID: <39B52559.FF39AA0C@nipltd.com> Fabio Forno wrote: > > yeah, this was my idea: if you leave in the tool class an empty method > > which is an hook, when you add a method with the same name to its > > instance, you should override it, isn' it? This could be a good way to > > quickly add functionality to a portal object without having to worry a > > lot of the low level changes. > > I doesn't work, but there is a bypass. I thought the overidable interface was for exactly this situation? cheers, Chris PS: Just checking: overidable has been implemented, hasn't it?! ;-) From chrisw@nipltd.com Tue Sep 5 17:57:20 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:57:20 +0100 Subject: [Zope-PTK] PortalMembership ;-) References: <399F23C7.3DC7BD65@interfree.it> <39A1DF55.5088549A@libc.org> Message-ID: <39B525F0.1C25AA00@nipltd.com> Bill Anderson wrote: > While it was originally part of the PTK, it was taken out by tazzz, and now maintained by yours truly. There is > currently no support for using it in the PTK, as it is still in development. Further details can be found from the Wiki > for it at: > > http://www.zope.org/Members/Bill/MembershipProductWiki/FrontPage Dopey question time: If it ain't in the PTK anymore, what's doing the job that it used to?! Really dopey question@ just checking, what does it actually do? *grinz* Chris From chrisw@nipltd.com Tue Sep 5 17:59:27 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 17:59:27 +0100 Subject: [Zope-PTK] catalog.getobject the culprit? References: <4D2A6B06A4D031478F83DAF3A24B608DFC2F@ntbox.lan.exoweb.net> <39A12ADA.CEC580B2@digicool.com> Message-ID: <39B5266F.3D60876A@nipltd.com> Shane Hathaway wrote: > Howard Zhang wrote: > > hi, i'm howard . I found a problem in PTK. > > when I click link 'view thread ' of a document,It's report i have no > > authority to access ,but i have Manager role. > > It seems like wrong in Discussable.getReplies() .It's call > > catalog.getobject to get object,but object come from catalog.getobject > > is different from original. > > It's more like catalog's bug.I changed code so it's work in our site.I > > hope you can fix it in next release. > > Would you provide the modified source code? I didn't understand your > message very well. Shane, Did you ever get any code back for this? Andy and myself are bashing heads painfully against exactly this right now and could really use some help :-S cheers, Chris PS: We'd love to hear from anyone who actually has 'view thread' working for them, just so we knwo we're not going insane :-S From chrisw@nipltd.com Tue Sep 5 18:03:37 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 18:03:37 +0100 Subject: [Zope-PTK] portal_events & DOM Level 2 References: <613145F79272D211914B0020AFF64019713834@gandalf.digicool.com> Message-ID: <39B52769.AA033CCE@nipltd.com> Paul Everitt wrote: > > portal_events, as proposed, would let you subscribe to > > *all* portal events. Maybe instead of that approach > > we need to add event subscription capability to > > specific tools, such as: > > > > portal_workflow.addStatusChangeListener() > > > > and: > > > > portal_workflow.removeStatusChangeListener() > > This would also match the XML DOM Level 2 model: > > """ > The _EventListener_ interface is the primary method for handling events. > Users implement the EventListener interface and register their listener > on an _EventTarget_ using the _AddEventListener_ method. > """ Hmm, how does Tres' stuff (which I didn't fully understand but which sounded a little mroe easy to use in he long run) compare with this? cheers, Chris From fmonge@cecosi.com.sv Tue Sep 5 18:33:09 2000 From: fmonge@cecosi.com.sv (Francisco Monge) Date: Tue, 05 Sep 2000 11:33:09 -0600 (CST) Subject: [Zope-PTK] Maybe a security issue then? In-Reply-To: <968172761.39b524da01a90@mail.cecosi.com.sv> References: <968172761.39b524da01a90@mail.cecosi.com.sv> Message-ID: <968175189.39b52e55857ef@mail.cecosi.com.sv> Sorry, the security problem is fixed with zope 2.2.0 (changing security propeties to a image), but the broken images still there ... I'm the only one having this problem?? I dont know what else I can do ... thank you Francisco Quoting Francisco Monge : > Sorry bothering you with this problem, but I'm experiencing this bug > with the > lastest CVS. > > I also tried the lastest tarball avalaible at > http://starship.python.net/crew/jwt/zope/ZopePTK and the same thing > happens. > > What I just discovered is that only happens with Zope 2.2.1 and not with > > version 2.2.0. > > > Thank you ... > > Francisco Monge > > > > Quoting Andy Dawkins : > > > Franciso > > > > What you are experiencing is a known bug with PTK 0.8.2 > > > > The latest CVS version fixes this problem. > > > > You can either get the up-to-date version from CVS or wait for the > next > > snap > > shot release. > > > > -Andy > > > > > -----Original Message----- > > > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On > > Behalf > > > Of Francisco Monge > > > Sent: 05 September 2000 00:41 > > > To: Lista de correo PTK > > > Subject: Re: [Zope-PTK] Maybe a security issue then? > > > > > > > > > Hi, > > > > > > I still having the same problem, but this time with Suse 6.4 and > > > Apache (I > > > couldn't fix it under Windows 2000). > > > > > > when I'm trying to access a members page, a window appears asking > for > > a > > > username and a password. If a click cancel, the images (logo and > > > the go bouton > > > in the search box) shows as broken, if I enter a username and a > > password, > > > everthing is ok. Also, if the images shows up as broken and I > > > click on View in > > > the toolbox, everthing show up ok. > > > > > > please help me ... > > > > > > Francisco Monge > > > ---------------------------------------------------------- From fresh@bay-c.co.uk Tue Sep 5 19:24:48 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:24:48 +0100 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> Message-ID: <39B53A70.2C86AA4D@bay-c.co.uk> Hi, again, sorry for being so late into this discussion... It looks like there have been lots of great ideas exchanged :-) I don't really have a preference for any of them, but the thing which I'm really keen to make sure is heard is this: Whatever happens, can we please make sure the interfaces behind this whole password area are flexible enough that _any_ of the discussed method _can_ be implemented, preferably just by using the overidable interface or something similar to customize the appropriate portal tool. All the discussed method have either plusses and minusses, and it'd be a shame to restrict which options you can use, beyond the absolutely necessary... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:26:58 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:26:58 +0100 Subject: [Zope-PTK] Security and Content Location References: <613145F79272D211914B0020AFF6401971382F@gandalf.digicool.com> <39AA5D07.1A823470@digicool.com> Message-ID: <39B53AF2.E3EFBA70@bay-c.co.uk> Shane Hathaway wrote: > Another possible way to solve this would be with permission mappings. > It's too bad they're so difficult to use. Why is that? Where is their use documented or exampled? Can they be changed so they're easier to used? hopefully, Chris From fresh@bay-c.co.uk Tue Sep 5 19:29:32 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:29:32 +0100 Subject: [Zope-PTK] Re: Show by Permission References: <39AE6601.F27C47BB@digicool.com> <39AE6960.D4C753D3@nipltd.com> <39AE6A75.94FA55CA@digicool.com> Message-ID: <39B53B8C.3AF2905C@bay-c.co.uk> Shane Hathaway wrote: > Yes, it already does that. That was the point of the catalog comment. > :-) Having caught up on some other threads, I see that now :-) > That way, Squishdot will automatically filter the front page based on > fine-grained permissions. Cool, huh? Well, Swishdot could anyway ;-) Definitely cool... Now if the 'View Thread' thing would only work :-( cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:31:27 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:31:27 +0100 Subject: [Zope-PTK] Can't Create Portal: Filesystem security? References: Message-ID: <39B53BFF.87659D6B@bay-c.co.uk> Gottfried Ryser wrote: > IOError: [Errno 13] Permission denied: > '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' This suggests the Unix user you used to install the PTK Products was the wrong one... The Zope process didn't have permission to read the toolbox.dtml file, so I guess you need to sort out ownership of those files... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:32:30 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:32:30 +0100 Subject: [Zope-PTK] portal error: whoops... ;-) References: Message-ID: <39B53C3E.D4B2AC62@bay-c.co.uk> Gottfried Ryser wrote: > > I think you're having the same error I initially had. Try changing > > ownership of toolbox.dtml to the same user that zope runs as. I > > orignially > > had ownership of the PTK folders under my login name, but it worked fine > > when I switched it to nobody. Someone beat me to it with a better answer anyway... *grin* Chris From fresh@bay-c.co.uk Tue Sep 5 19:33:52 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:33:52 +0100 Subject: [Zope-PTK] Can't create portal: patch in CVS? References: <399F23CB.46D2A450@interfree.it> <39A12C13.4A3D4846@digicool.com> Message-ID: <39B53C90.DFAAD060@bay-c.co.uk> Shane Hathaway wrote: > Thanks for the patch. Has this worked its way into the CVS repository yet? Chris From fresh@bay-c.co.uk Tue Sep 5 19:43:07 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:43:07 +0100 Subject: [Zope-PTK] New tool proposal: portal_events References: <3.0.6.32.20000821201337.00f817f0@mail.gwi.net> Message-ID: <39B53EBB.FBD85030@bay-c.co.uk> Andrew Wilcox wrote: > * It is easy to classify and filter on event types, simply by having > subclasses of Event such as: ObjectAddedEvent, a subclass of > ObjectManagerEvent, a subclass of Event. Like that :-) > (Er, was that very > clear? Perhaps an example?) yes please :-S > * You will find in your client code that there are operations that you do > over and over again in reference to the event. With an Event class, you > can easily refactor your code to make the common operations methods of the > class, simplifying your client code. That sounds cool too... cheers, Chris From fresh@bay-c.co.uk Tue Sep 5 19:46:41 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Tue, 05 Sep 2000 19:46:41 +0100 Subject: [Zope-PTK] portal_events proposal implemented? References: Message-ID: <39B53F91.71A57262@bay-c.co.uk> Tres Seaver wrote: Just read the proposal and the related discussion. Looks great and looks like it could be amazingly useful for Swishdot :-) Has anything been done on implementing it yet? cheers, Chris From gryser@cgx.ch Tue Sep 5 20:08:01 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Tue, 5 Sep 2000 21:08:01 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] Can't Create Portal: Filesystem security? In-Reply-To: <39B53BFF.87659D6B@bay-c.co.uk> Message-ID: Chris Thank you. Yes this was the problem in general. I had a mix of different permissions. After changing all to nobody PTK works now. Regards Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]Im Auftrag > von Chris Withers > Gesendet: Dienstag, 5. September 2000 20:31 > An: gryser@cgx.ch > Cc: Zope-PTK@zope.org > Betreff: Re: [Zope-PTK] Can't Create Portal: Filesystem security? > > > Gottfried Ryser wrote: > > IOError: [Errno 13] Permission denied: > > '/usr/local/Zope2/lib/python/Products/PTKBase/dtml/toolbox.dtml' > > This suggests the Unix user you used to install the PTK Products was the > wrong one... > > The Zope process didn't have permission to read the toolbox.dtml file, > so I guess you need to sort out ownership of those files... > > cheers, > > Chris > > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From circle@gwi.net Tue Sep 5 20:44:20 2000 From: circle@gwi.net (Andrew Wilcox) Date: Tue, 05 Sep 2000 15:44:20 -0400 Subject: [Zope-PTK] New tool proposal: portal_events In-Reply-To: <39B53EBB.FBD85030@bay-c.co.uk> References: <3.0.6.32.20000821201337.00f817f0@mail.gwi.net> Message-ID: <3.0.6.32.20000905154420.01175100@mail.gwi.net> >> (Er, was that very >> clear? Perhaps an example?) > >yes please :-S Let's brainstorm a bunch of events we might have in a portal. Then when we investigate a proposed framework such as DOM Level 2, Java 1.1, etc., we can look at from the perspective of our examples. We might say, oh, that framework is overkill; or, wow, just the ticket; or, very nice but it's missing something *we* need. What kind of events might we have? What are the properties, attributes, meta-data associated with each event? Please make suggestions on my meager beginnings: Content is added date content was added type of content dublin core meta-data what else? Content is ready for review date of event what else? Content is deleted date of deletion what else? A user joins the portal date of joining information about the user: name, email, etc. what else? A user is promoted to a new role, such as "reviewer" date of promotion information about the user what else? A policy of the portal changes what kind of policies do we have? A workflow status changes date of status change ? A new comment is added to the discussions of an object date of addition dublin meta-data what else? Also, what kinds of meta-data will we typically want to filter on, independent of the primary type of the event? From tseaver@digicool.com Tue Sep 5 20:33:58 2000 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 5 Sep 2000 15:33:58 -0400 (EDT) Subject: [Zope-PTK] New tool proposal: portal_events In-Reply-To: <3.0.6.32.20000905154420.01175100@mail.gwi.net> Message-ID: On Tue, 5 Sep 2000, Andrew Wilcox wrote: > >> (Er, was that very > >> clear? Perhaps an example?) > > > >yes please :-S > > Let's brainstorm a bunch of events we might have in a portal. Then when we > investigate a proposed framework such as DOM Level 2, Java 1.1, etc., we > can look at from the perspective of our examples. We might say, oh, that > framework is overkill; or, wow, just the ticket; or, very nice but it's > missing something *we* need. > > What kind of events might we have? > > What are the properties, attributes, meta-data associated with each event? > > Please make suggestions on my meager beginnings: > > > Content is added > date content was added > type of content > dublin core meta-data > what else? In my scenario, the object being added would be the 'payload' of the event, while the container's physical path and the object's meta_type would be two of the likely "filtering" values (remember that the DublinCore metadata is "massaged" to make it useful for "discovery" by other systems; it is not always in the most useful form for internal consumption). > Content is ready for review > date of event > what else? This one is a particular case of your "workflow state change" below. > > Content is deleted > date of deletion > what else? Again, the container path, and in this case the id of the deleted object, plus it erstwhile meta_type. We could probably make the removed object payload again, as that would guarantee that it remained "alive" during the event processing, even if (as is most likely) its container held the only "normal" reference to it. > > A user joins the portal > date of joining > information about the user: name, email, etc. > what else? Just pass the user object as payload; I can't think of any filtering metadata that would be generally useful here (specific portal implementations could always pass additional data, if need be). Perhaps the roles assigned would be helpful, in case we need to take different action when a "privileged" user joins (I doubt any real portal would work like this, however; most would to the "promotion" separately, as you call out next). > > A user is promoted to a new role, such as "reviewer" > date of promotion > information about the user > what else? Hmm, the userid and the old/new roles lists. > A policy of the portal changes > what kind of policies do we have? I can't think of a use case for this one, actually. > A workflow status changes > date of status change Containment path to the object, former state(s), new state(s), triggering event name. > > A new comment is added to the discussions of an object > date of addition > dublin meta-data > what else? Containment path of the "Discussable" thing, ID of the new comment. > Also, what kinds of meta-data will we typically want to filter on, > independent of the primary type of the event? I wouldn't generally include the timestamp on the event on the "base" framework events, but would instead push that off to be generated by a "logging subscriber", if any. A similar adapter could likewise package up the payload and metadata into the kind of event-type hierarchy you proposed earlier. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From gryser@cgx.ch Tue Sep 5 21:06:50 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Tue, 5 Sep 2000 22:06:50 +0200 Subject: [Zope-PTK] How to add topics Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0264_01C01785.973CD750 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I feel a bit stupid, after installting the PTK (I'm a newbie) I checked around and tried to ad a document and news. I can add this items, can review them and set a status, but can't see them finally on my portal. What did I wrong? And is there a bit more documentation on PTK? I hope to contribute later with some stuff, I had worked with ColdFusion and have build several smaller cms solutions. Regards Gottfried Ryser ------=_NextPart_000_0264_01C01785.973CD750 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I feel = a bit stupid,=20 after installting the PTK (I'm a newbie) I checked around and tried to = ad a=20 document and news. I can add this items, can review them and set a = status, but=20 can't see them finally on my portal. What did I wrong? And is there a = bit more=20 documentation on PTK? I hope to contribute later with some stuff, I had = worked=20 with ColdFusion and have build several smaller cms=20 solutions.
 
Regards

Gottfried Ryser

 

 
------=_NextPart_000_0264_01C01785.973CD750-- From tseaver@palladion.com Wed Sep 6 04:19:53 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 05 Sep 2000 23:19:53 -0400 Subject: [Zope-PTK] Long overdue PTK Status, 2000/09/04 Message-ID: <39B5B7D9.9387B4FD@palladion.com> I just posted an update to the "State of the PTK": http://www.zope.org/Products/PTK/ZWiki/PeriodEnding4September2000 -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Sep 6 04:25:31 2000 From: tseaver@palladion.com (Tres Seaver) Date: Tue, 05 Sep 2000 23:25:31 -0400 Subject: [Zope-PTK] Status shouldn't depend on Location References: <399824F8.17E31827@interfree.it> <399855C0.2526DF79@inorbit.com> <399856F3.EA17C444@digicool.com> <3999927A.B8629CA5@inorbit.com> <399A86CA.19AD692F@inorbit.com> <399A8776.EDB0BA37@inorbit.com> <399A9F91.7C2FB875@digicool.com> <39B51A3B.C422C58C@nipltd.com> Message-ID: <39B5B92B.226E656E@palladion.com> Chris Withers wrote: > > Shane Hathaway wrote: > > This is debatable, but I believe it would be more sensible to > > physically move the object to a "published" area and leave its role to > > permission mappings alone. > > I dunno if anyone has said this yet, and I know I'm late in replying but > I disagree. > Particularly for Swishdot, the content should stay where it is and it's > status should change rather than it's status a result of it's > location... > > If you look at how Squishdot sites present articles (which I'd kindof > like to keep :S), they don't change their location depending on whether > they're reviewed or not. > > I know munging the role to permission mappings sucks and I wish there > was a better way. The location think is elegant but a bit limiting > IMH(umble)O. The 'portal_workflow' tool will be the locus for this policy: the "sample" implementation which ships under PTKDemo/DemoPortal will likely retain the current, "staionary" semantic; other implementations may not, especially for content which needs to change "ownership" when it becomes publicly viewable. Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@palladion.com Wed Sep 6 05:07:29 2000 From: tseaver@palladion.com (Tres Seaver) Date: Wed, 06 Sep 2000 00:07:29 -0400 Subject: [Zope-PTK] How to add topics References: Message-ID: <39B5C301.F9974F12@palladion.com> Gottfried Ryser wrote: > I feel a bit stupid, after installting the PTK (I'm a newbie) I checked > around and tried to ad a document and news. I can add this items, can review > them and set a status, but can't see them finally on my portal. First, you aren't being stupid; getting this far is a major achievement, given the current state of the package and docs. As a quick check, try typing a word you *know* is present in one of the documents or news items in the "search" box at the top of the portal; does your item appear in the search result? If so, then congratulations! Your content is "there" in the portal, you just need to "expose" it by editing the portal chrome, to make it more obvious. If the search doesn't return the expected result, then check the current "review status" of the document/news item (the "Status" under the icon and id). Does it say, "Published"? If it does, then check the content again for your search term. If it says "pending" or "private", then you need to use the "Set status" action (perhaps as a different member, one with the "Reviewer" role) to make it "published". > What did I > wrong? And is there a bit more documentation on PTK? I hope to contribute > later with some stuff, I had worked with ColdFusion and have build several > smaller cms solutions. Most of the current documentation is available from the PTK home page: http://www.zope.org/PTK In particular, the "PTK Users' Guide", http://www.zope.org/Products/PTK/PTK.html, while slightly older, is the best "conceptual" overview; the "wiki", http://www.zope.org/Products/PTK/ZWiki is where the "work-in-progress" is documented. Thanks for persevering! We look forward to your contributions! Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@libc.org Wed Sep 6 05:00:54 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 05 Sep 2000 22:00:54 -0600 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> Message-ID: <39B5C176.66931C76@libc.org> Chris Withers wrote: > > Hi, > > again, sorry for being so late into this discussion... > > It looks like there have been lots of great ideas exchanged :-) > > I don't really have a preference for any of them, but the thing which > I'm really keen to make sure is heard is this: > > Whatever happens, can we please make sure the interfaces behind this > whole password area are flexible enough that _any_ of the discussed > method _can_ be implemented, preferably just by using the overidable > interface or something similar to customize the appropriate portal tool. > > All the discussed method have either plusses and minusses, and it'd be a > shame to restrict which options you can use, beyond the absolutely > necessary... Well, as I have mentioned, I am working on a policy object fo ruser authentication schemes. And I am doing a lot of the code in ttw Python methods, so it shold be rather easy to modify to suit your needs. :) As the methods stabilize and standardize, the default ones may be merged into the Python sid eof it (Membership porpoer), and the alternative behaviours could be overrridden my ttw Python Methods. Needless to say, I am still working on the Security Policy Object. I _want_ to have 0.8 out in the next two weeks, and 0.9 out within 2 weeks from there, and a 1.0 release about a week or two after that. I want to have the 1.0 features in no later than 0.8.5. That means for those who have patches, I need them in the next two weeks if you want a chance atthem being integrated. Some have patches for simple user deletion, some have PTK integration work done. I am not too hip on reinventing it, so I am concentrating on other features and code, allowing their patches to round it out. The 0.9 should mainly be documentation and bugfixing/stabilization. I am envisioning the interface side to actually call the policy object, which will implement the appropriate methods. The default will be to store passwords in encrypted format, with forgetful users getting a new password. It is also likely this new password will have to be changed on login. I am also planning on limiting the new password requests to one per day. This sounds like a reasonable default. This Policy Plugin setup will allow custom policy arrangements, even on a per-portal basis within the same zope server. Whaddya think of that? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From bill@libc.org Wed Sep 6 05:07:12 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 05 Sep 2000 22:07:12 -0600 Subject: [Zope-PTK] What is the PTK? References: Message-ID: <39B5C2F0.8FB5D4A7@libc.org> kamon ayeva wrote: > > Hi, > > I mostly agree with Chris, and think that there would be more than 2 > products available on top of ZCMT and usable out-of-the-box. I am thinking > about ZDP-Tools which will soon be available as a brand new solution. Also > the ZCMT part could integrate some stuff from the ZDP-Tools architecture > like: > - the Model/View/Controler paradigm, > - the "everything derive from one base class" idea, Actually, IIRC, the original PTK stuff did this, adn we are currently moving away from it. > - and some ideas we are currently experimenting about "per meta_type > templating" Elaborate please. > Just one thing, when Chris writes the following... > >How's this for a possible future: > >The tools in PTK Base work their way into the Zope core over a period of > >time and either ship as standard or come in a couple of very-standard > >add on modules: > >- Zope Content Management Tools > >- Zope Community Management Tools > > I think we should pay attention to not introduce new naming/concept related > confusion in people's mind. What is exactly 'Community Management' versus > 'Content Management' ? I think of Membership, but are you also thinking of > Mail / Groupware related features ? I agree that the acronyms should be distinct. This relates to some earlier expositions I've had on 'Portals, Vortals, and Communities'. I am attempting to deal with at least some of it in Membership by seperating out the mechanics of users and their content. though-I-do-want-to-see-renderable-as-zope-core-ly y'rs Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From andyd@nipltd.com Wed Sep 6 09:11:09 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 09:11:09 +0100 Subject: [Zope-PTK] PTK install Gottcha In-Reply-To: <39B5BF98.FDC62443@palladion.com> Message-ID: Tres Seaver wrote: > Sigh. Some of this problem is inherent in the fact that the PTK (really, > the sample implementation) is an amphibious beast: it resides partly on > the filesystem, and partly as "through-the-web" content in the ZODB. I > *intended* that the DemoPortal and Wizard product directories (created > from the "Distribution" tab of the TTW products) would be "fetchable" > and "installable" from CVS in the same way as the "filesystem" products > (PTKBase, PTKDeom, ZCallable); at the moment, the distribution tab > products don't seem to work properly, at least not on all systems (I > tested before checking in on my RH 6.2 Linux box, where all was well; > on my NT box, a fresh checkout bombs out with a GPF!?) OK, I happy just to get a black and white explanation why, which you have provided, and to know that you are aware of this issue. Do you want me to put an entry in the tracker? > Having to import the DemoPortal and Wizard export files won't go away > until we get a handle on a better mechanism for distributing the > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > the directory-based products for them from CVS, and revert the > installation instructions to indicate that import is required. That would be a very good idea and would save people scanning the archives of this mailing list for the answer. (Speaking from experience) > > P.S. This method does not fix my Unauthorised issue with > > discussion_thread_view but I have been able to reproduce the error on > > several machines using this method to install the PTK. > > Please enter a Tracker issue on this -- I can repro it, but > I likely won't remember to in the morning. > This I have done. Cheers -Andy From chrisw@nipltd.com Wed Sep 6 11:02:33 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 11:02:33 +0100 Subject: [Zope-PTK] PortalMembership ;-) References: <399F23C7.3DC7BD65@interfree.it> <39A1DF55.5088549A@libc.org> <39B525F0.1C25AA00@nipltd.com> <39B5B756.8E1BB80C@palladion.com> Message-ID: <39B61639.19B6C90F@nipltd.com> Thanks for the info :-) Chris Tres Seaver wrote: > > Chris Withers wrote: > > > > Bill Anderson wrote: > > > While it was originally part of the PTK, it was taken out by tazzz, and now maintained by yours truly. There is > > > currently no support for using it in the PTK, as it is still in development. Further details can be found from the Wiki > > > for it at: > > > > > > http://www.zope.org/Members/Bill/MembershipProductWiki/FrontPage > > > > Dopey question time: If it ain't in the PTK anymore, what's doing the > > job that it used to?!> > > Really dopey question@ just checking, what does it actually do? > > > > *grinz* > > The PTK used to depend on ZPatterns/LoginManager, which turned out to be > difficult, as those products weren't stabilizing quickly enough to require > everyone to use them; Kevin and Bill are maintaining the LM/ZPatterns > related stuff "on the side", for eventual reintegration with the PTK. > The "shipping" PTK has two tools, 'portal_membership' and > 'portal_registration', whose interfaces cover mostly the same territory; > the sample implementations of them provided useful, "ZODB-based" > versions, with "fancier" stuff left to either the MembershipProduct > or to other, "custom" implementations. > > Tres. > -- > ========================================================= > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Wed Sep 6 13:58:55 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 13:58:55 +0100 Subject: [Zope-PTK] PTK Tracker Message-ID: <39B63F8F.D8A7D00B@nipltd.com> Is it maybe time to 'de-cruftify' the PTK Tracker? There's a lot of really old stuff in there and I'm not sure how much of it is relevent... cheers, Chris PS: If people trust me, I'll happily go through and Zap stuff, but I might be a bit over-eager ;-) From andyd@nipltd.com Wed Sep 6 14:20:06 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 14:20:06 +0100 Subject: [Zope-PTK] FW: [Zope-PTK] PTK install Gottcha Message-ID: Just realised this was sent to me and not the list. -Andy -----Original Message----- From: Tres Seaver [mailto:tseaver@palladion.com] Sent: 06 September 2000 04:53 To: Andy Dawkins Subject: Re: [Zope-PTK] PTK install Gottcha Andy Dawkins wrote: > > Several People (including myself and ChrisW) have come across problems > installing the latest CVS checkout of the PTK. > > There have been a number of different errors which seem to be fixed if you > install the PTK in this following order. > > * Start Zope > * Go to the Control_Panel/Products > * Remove DemoPortal (If it exists) > * Remove Wizard (If it exists) > * Remove PTKBase (If it exists) > * Remove PTKDemo (If it exists) > * Remove ZCallable (If it exists) > * Checkout the latest CVS version of PTKDemo, PTKBase and ZCallable > * Copy PTKDemo, PTKBase and ZCallable to your zope/lib/python/Products/ > directory > * Copy DemoPortal.zexp and Wizard.zexp from zope/lib/python/Products/PTKDemo > to /zope/import > * Back in the Zope Control_Panel/Prodcuts import DemoPortal.zexp and > Wizard.zexp > * Restart Zope > > As well as telling everyone a method that seems to work for me, I am > interested to know why it has to be done this way. > > This issue has tormented several people including Chris and myself. Can we > have it fixed please? Sigh. Some of this problem is inherent in the fact that the PTK (really, the sample implementation) is an amphibious beast: it resides partly on the filesystem, and partly as "through-the-web" content in the ZODB. I *intended* that the DemoPortal and Wizard product directories (created from the "Distribution" tab of the TTW products) would be "fetchable" and "installable" from CVS in the same way as the "filesystem" products (PTKBase, PTKDeom, ZCallable); at the moment, the distribution tab products don't seem to work properly, at least not on all systems (I tested before checking in on my RH 6.2 Linux box, where all was well; on my NT box, a fresh checkout bombs out with a GPF!?) Having to import the DemoPortal and Wizard export files won't go away until we get a handle on a better mechanism for distributing the "through-the-web" stuff; in the meanwhile, I guess I'd better remove the directory-based products for them from CVS, and revert the installation instructions to indicate that import is required. > > Cheers > -Andy > > P.S. This method does not fix my Unauthorised issue with > discussion_thread_view but I have been able to reproduce the error on > several machines using this method to install the PTK. Please enter a Tracker issue on this -- I can repro it, but I likely won't remember to in the morning. http://www.zope.org/Products/PTK/Tracker Tres. -- ========================================================= Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From chrisw@nipltd.com Wed Sep 6 14:22:41 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 14:22:41 +0100 Subject: [Zope-PTK] Distribution Tab TTW Products References: Message-ID: <39B64521.84ACD0A0@nipltd.com> Tres Seaver wrote: > the distribution tab > products don't seem to work properly, at least not on all systems (I > tested before checking in on my RH 6.2 Linux box, where all was well; > on my NT box, a fresh checkout bombs out with a GPF!?) I noticed this too but I thought it was fixed in Zope 2.2.0? cheers, Chris From chrisw@nipltd.com Wed Sep 6 14:25:14 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 14:25:14 +0100 Subject: [Zope-PTK] PTK install Gottcha & Discussion Thread View Problem References: Message-ID: <39B645BA.F06461D3@nipltd.com> Tres Seaver wrote: > Having to import the DemoPortal and Wizard export files won't go away > until we get a handle on a better mechanism for distributing the > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > the directory-based products for them from CVS, and revert the installation > instructions to indicate that import is required. Andy found the order of import mattered WRT to installing PTK and restarting Zope... Is this important and/or documented anywhere? > Please enter a Tracker issue on this -- I can repro it, but > I likely won't remember to in the morning. > > http://www.zope.org/Products/PTK/Tracker Was that about the installation thing or the thread_view thing? cheers, Chris From andyd@nipltd.com Wed Sep 6 14:32:17 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 14:32:17 +0100 Subject: [Zope-PTK] PTK install Gottcha & Discussion Thread View Problem Message-ID: ChrisW Wrote: > > Tres Seaver wrote: > > Having to import the DemoPortal and Wizard export files won't go away > > until we get a handle on a better mechanism for distributing the > > "through-the-web" stuff; in the meanwhile, I guess I'd better remove > > the directory-based products for them from CVS, and revert the > installation > > instructions to indicate that import is required. > > Andy found the order of import mattered WRT to installing PTK and > restarting Zope... > Is this important and/or documented anywhere? Tres Mentioned updating the Installation instructions to reflect this change. > > > Please enter a Tracker issue on this -- I can repro it, but > > I likely won't remember to in the morning. > > > > http://www.zope.org/Products/PTK/Tracker > > Was that about the installation thing or the thread_view thing? > Yes, that was about the thread_view thing. -Andy-Andy From andyd@nipltd.com Wed Sep 6 15:26:53 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Wed, 6 Sep 2000 15:26:53 +0100 Subject: [Zope-PTK] Discussion Problems with PTK In-Reply-To: Message-ID: ChrisW and Myself sat down and had a good look at this one. Using Shanes ZDebug program we managed to find that in the discussion_thread_view method it was line 14 that was throwing up the unauthorised error: 01: 02: 03:

&dtml-title;

04: 05: 06: Above in thread: 07: 5">... : 08: 09: &dtml-title; 10: : 11: 12: 13: 14: 15: 16: &dtml-title;, 17: by 18: on 19: 20: 21: Tracing this to the getReplies method in the PTKDemo.Discussions 01: def getReplies(self): 02: """ 03: Return a sequence of the DiscussionResponse objects which are 04: associated with this Discussable 05: """ 06: catalog = self.portal_catalog 07: results = self.getReplyResults() 08: rids = map(lambda x: x.data_record_id_, results) 09: objects = map(catalog.getobject, rids) 10: return objects After going a little over the top with debug print statements we discovered that there is nothing wrong with this method, Bit of a red herring :-( So we reluctantly opened the can of worms that we loving refer to as treetag.py Seeing this line on the traceback: File Zope\lib\python\TreeDisplay\TreeTag.py, line 337, in tpRenderTABLE we headed straight for line 337 to discover that the authorisation error has actually been raised by the treetag. 331: if unauth: 332: if have_arg('skip_unauthorized') and args['skip_unauthorized']: 333: items=list(items) 334: unauth.reverse() 335: for i in unauth: del items[i] 336: else: 337: raise ValidationError, unauth Changing the discussion_thread_view's line 14 to read: 14: Stopped the unauthorised error message but of course meant that we couldn't see anything. So we gave the discussion_thread_view method the proxy role of 'Manager' and that solved the issue permanantly. So we tried the other roles: Anonymous: Authentication Error Member: Authentication Error Owner: Success Reviewer: Success Manager: Success So it seems that the DTML_method doesn't have access to the DiscussionItems, why is this? My discussion_thread_view is indirectly owned by my Portal Manager (aka Me) Does setting the proxy role to 'Manager' raise any security issues? Now the problem has stopped I can get back to working on swishdot but it would be great to know the correct solution to this problem and most importantantly can we make it go away? Cheers -Andy From Jerry.Spicklemire@IFLYATA.COM Wed Sep 6 15:26:31 2000 From: Jerry.Spicklemire@IFLYATA.COM (Spicklemire, Jerry) Date: Wed, 6 Sep 2000 09:26:31 -0500 Subject: [Zope-PTK] Ownership, Alternates and Delegation Message-ID: <977A39E65CFCD3119ABF00D0B741D8497337BB@innt-73> Hi PTK Fans, There's a topic that may be addressed in the current state of the PTK, but I haven't noticed any discussion in any of the list postings, or on the Wikki. The workflow topic begs the question, "How does an Owner delegate, or assign an Alternate?" The classic example is the need to handle updates when the usal suspects are all out sick or on vacation. Any thoughts on the impact this little wrinkle might have on Membership, Roles, etc.? Thanks for the feedback, Jerry S. From hn75@gmx.de Wed Sep 6 12:12:34 2000 From: hn75@gmx.de (Hendrik Naumann) Date: Wed, 6 Sep 2000 13:12:34 +0200 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete Message-ID: <00090613123400.01412@femme> Hi I installed Zope-PTK from the file http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. I created some Members and realized that those (on a restarted Browser) are able to access the portal-configuration and even change settings there. If you need more infomations, please contact me. Hendrik Naumann From shane@digicool.com Wed Sep 6 16:10:51 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 06 Sep 2000 11:10:51 -0400 Subject: [Zope-PTK] Discussion Problems with PTK References: Message-ID: <39B65E7B.F6AECADB@digicool.com> Andy Dawkins wrote: > So it seems that the DTML_method doesn't have access to the DiscussionItems, > why is this? My discussion_thread_view is indirectly owned by my Portal > Manager (aka Me) I see the problem now. Try this patch: =================================================================== RCS file: /cvs-repository/ZopePTK/PTKDemo/Discussions.py,v retrieving revision 1.2 diff -u -r1.2 Discussions.py --- Discussions.py 2000/08/11 19:56:50 1.2 +++ Discussions.py 2000/09/06 15:10:32 @@ -38,6 +38,9 @@ if not hasattr(home, 'Correspondence'): home.manage_addPortalFolder('Correspondence') location = home.Correspondence + location.manage_permission('View', ['Anonymous'], 1) + location.manage_permission('Access contents information', + ['Anonymous'], 1) # Find an unused id in location id = int(DateTime().timeTime()) You see, each member folder has permissions set so that by default, no one can look at its contents. The "Correspondence" folders should have the opposite policy. BTW adding skip_unauthorized is probably the right thing to do. Shane From shane@zope.org Wed Sep 6 16:52:32 2000 From: shane@zope.org (Shane) Date: Wed, 6 Sep 2000 08:52:32 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - Discussions.py:1.3 Message-ID: <200009061552.IAA07285@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv7250 Modified Files: Discussions.py Log Message: Made discussion items visible by all users by default. From gryser@cgx.ch Wed Sep 6 18:59:49 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Wed, 6 Sep 2000 19:59:49 +0200 Subject: [Zope-PTK] AW: [Zope-PTK] How to add topics In-Reply-To: <39B5C301.F9974F12@palladion.com> Message-ID: Tres Thank you, I see the text inside the portal under "My stuff" on the Desktop, but seems not publish, even I set status "published" But other problems are around (PTK 0.8.2) like en error whan hitting reconfigure the portal and "Click here to replace... I see in the index page the code for the news items ", line 0, in ? NameError: (see above) Thanks for help Gottfried Ryser > -----Ursprüngliche Nachricht----- > Von: Tres Seaver [mailto:tseaver@palladion.com] > Gesendet: Mittwoch, 6. September 2000 06:07 > An: gryser@cgx.ch > Cc: org Zope-PTK@zope. > Betreff: Re: [Zope-PTK] How to add topics > > > Gottfried Ryser wrote: > > > I feel a bit stupid, after installting the PTK (I'm a newbie) I checked > > around and tried to ad a document and news. I can add this > items, can review > > them and set a status, but can't see them finally on my portal. > > First, you aren't being stupid; getting this far is a major achievement, > given the current state of the package and docs. As a quick check, try > typing a word you *know* is present in one of the documents or news items > in the "search" box at the top of the portal; does your item appear in > the search result? If so, then congratulations! Your content is "there" > in the portal, you just need to "expose" it by editing the portal chrome, > to make it more obvious. > > If the search doesn't return the expected result, then check the current > "review status" of the document/news item (the "Status" under the icon and > id). Does it say, "Published"? If it does, then check the content again > for your search term. If it says "pending" or "private", then you need to > use the "Set status" action (perhaps as a different member, one with the > "Reviewer" role) to make it "published". > > > What did I > > wrong? And is there a bit more documentation on PTK? I hope to > contribute > > later with some stuff, I had worked with ColdFusion and have > build several > > smaller cms solutions. > > Most of the current documentation is available from the PTK home page: > > http://www.zope.org/PTK > > In particular, the "PTK Users' Guide", > http://www.zope.org/Products/PTK/PTK.html, while slightly older, is > the best "conceptual" overview; the "wiki", > http://www.zope.org/Products/PTK/ZWiki is where the "work-in-progress" > is documented. > > Thanks for persevering! We look forward to your contributions! > > Tres. > -- > ========================================================= > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > From fresh@bay-c.co.uk Wed Sep 6 19:17:44 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:17:44 +0100 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> Message-ID: <39B68A48.77A92FE0@bay-c.co.uk> Shane Hathaway wrote: > > So it seems that the DTML_method doesn't have access to the DiscussionItems, > > why is this? My discussion_thread_view is indirectly owned by my Portal > > Manager (aka Me) > > I see the problem now. Try this patch: And, of course, now so do I. The question is, why was this _so_ hard to track down?! :-( > BTW adding skip_unauthorized is probably the right thing to do. Agreed... afterall, you may want to have private discussions. Would these permissions affect the cataloging too? I daw the fix for Discussions.py get checked in, but has the skip_unauthorized fix been checked in yet? cheers, Chris From fresh@bay-c.co.uk Wed Sep 6 19:21:54 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:21:54 +0100 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> Message-ID: <39B68B42.A33F3F6E@bay-c.co.uk> Bill Anderson wrote: > Whaddya think of that? *grinz* I'm enjoying playing the stoopid person today (yes, yes, I know ' I do it so well' ;-) Well, in that role, what would really help me was a description of the interfaces the policy object exposes and how they differ from the ones provided by the PTK equivalent object. Then everyone can compare and see which they think is right... Apologies If I've missed anything obvious :-S Chris From fresh@bay-c.co.uk Wed Sep 6 19:23:45 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:23:45 +0100 Subject: [Zope-PTK] Avoiding confusion with names is good :-) References: Message-ID: <39B68BB1.72E822FB@bay-c.co.uk> kamon ayeva wrote: > I think we should pay attention to not introduce new naming/concept related > confusion in people's mind. A very important point :-) Out of interest, has a new name for 'the PTK' been decided on yet? If so, will it apply to the PTKDemo bit or the PTKBase bit? (please no-one say 'both' :-S) cheers, Chris From fresh@bay-c.co.uk Wed Sep 6 19:27:08 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Wed, 06 Sep 2000 19:27:08 +0100 Subject: [Zope-PTK] What is the PTK? References: <39B5C2F0.8FB5D4A7@libc.org> Message-ID: <39B68C7C.CF5B50AC@bay-c.co.uk> Bill Anderson wrote: > > - the "everything derive from one base class" idea, > > Actually, IIRC, the original PTK stuff did this, adn we are currently moving away from it. Yeah, the 'tools' way of doing things seems to be a much better way to go. That said, why do 'tools' need to be instantiated inside a Portal object? Also, is it just me, or is ther currently still a need to subclass PortalContent? If so, why so, and is it a good idea? I'm just fumbling in he dark here still, so please tell me if I'm way out... > > - and some ideas we are currently experimenting about "per meta_type > > templating" > > Elaborate please. Yes, please do :-) > though-I-do-want-to-see-renderable-as-zope-core-ly y'rs Bill Here, here! :-) (some of ZPatterns could do with being there too IMVHO) cheers, Chris From shane@digicool.com Wed Sep 6 19:33:03 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 06 Sep 2000 14:33:03 -0400 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> Message-ID: <39B68DDF.A6363412@digicool.com> Chris Withers wrote: > I saw the fix for Discussions.py get checked in, but has the > skip_unauthorized fix been checked in yet? Nope, I wanted to get a reaction first. Shane From stefan.goerres@gsysteme.de Wed Sep 6 22:40:23 2000 From: stefan.goerres@gsysteme.de (Stefan Goerres) Date: Wed, 6 Sep 2000 23:40:23 +0200 Subject: [Zope-PTK] Login Manager broken? Message-ID: <004f01c0184b$11f64560$0100a8c0@nbmz1> Hi you gurus out there, Login Manager shows up broken... :((( So since I'm a purely newbie is there any advice on this? Traceback (innermost last): File "/usr/src/packages/BUILD/Zope-2.1.6-src/lib/python/OFS/Application.py" , line 387, in import_products File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py", line 7, in ? from Products.ZPatterns.PlugIns import PlugInGroup File "/usr/share/zope/lib/python/Products/ZPatterns/__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "/usr/share/zope/lib/python/Products/ZPatterns/Rack.py", line 1, in ? from DataManagers import DataManager File "/usr/share/zope/lib/python/Products/ZPatterns/DataManagers.py", line 7, in ? from AttributeProviders import AttributeProvider File "/usr/share/zope/lib/python/Products/ZPatterns/AttributeProviders.py", line 1, in ? from Proxy import ProxyManager File "/usr/share/zope/lib/python/Products/ZPatterns/Proxy.py", line 2, in ? from AccessControl import getSecurityManager ImportError: cannot import name getSecurityManager Thanks Steve From tseaver@digicool.com Thu Sep 7 00:14:46 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 06 Sep 2000 19:14:46 -0400 Subject: [Zope-PTK] AW: [Zope-PTK] How to add topics References: Message-ID: <39B6CFE6.289AE20E@digicool.com> Gottfried Ryser wrote: > Thank you, I see the text inside the portal under "My stuff" on the Desktop, > but seems not publish, even I set status "published" This sounds like a permission problem -- "normal" users can't publish their own content, but only submit it for review. Members with the "Reviewer" role can then publish or reject it; the "Contributor" role is for "trusted" users, who can publish without review. > But other problems are > around (PTK 0.8.2) like en error whan hitting reconfigure the portal and > "Click here to replace... > > I see in the index page the code for the news items " Do I need other modules like ZCallable? > the following error msg: > > Error Type: NameError > Error Value: Control_Panel Hmm, that looks like a bug in the PTK; normal through-the-web code doesn't traverse through the Control Panel like that. > > ---------------------------------------------------------------------------- > ---- > > Troubleshooting Suggestions > > This resource may be trying to reference a nonexistent object or variable > Control_Panel. > 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/Zope2/lib/python/ZPublisher/Publish.py, line 222, in > publish_module > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: DemoPortalBase) > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in > publish > File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply > (Object: select_interface) > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: select_interface) > File /usr/local/Zope2/lib/python/OFS/DTMLMethod.py, line 172, in __call__ > (Object: select_interface) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, > in __call__ > (Object: select_interface) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_In.py, line 633, in > renderwob > (Object: Control_Panel.Products.DemoPortal.Interfaces.objectIds()) > File /usr/local/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 337, in > eval > (Object: Control_Panel.Products.DemoPortal.Interfaces.objectIds()) > (Info: Control_Panel) > File , line 0, in ? > NameError: (see above) > > Thanks for help > > Gottfried Ryser -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Thu Sep 7 00:23:22 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 06 Sep 2000 19:23:22 -0400 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete References: <00090613123400.01412@femme> Message-ID: <39B6D1EA.8740F5E0@digicool.com> Hendrik Naumann wrote: > > Hi > > I installed Zope-PTK from the file > http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz > on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. > > I created some Members and realized that those (on a restarted > Browser) are able to access the portal-configuration and even change > settings there. > > If you need more infomations, please contact me. We have a tracker issue on this: http://www.zope.org/Products/PTK/Tracker/82 Is that the same behavior you notice? I haven't reproduced it. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@libc.org Thu Sep 7 07:46:52 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 07 Sep 2000 00:46:52 -0600 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> Message-ID: <39B739DC.96F8B4E@libc.org> Chris Withers wrote: > > Bill Anderson wrote: > > Whaddya think of that? > > *grinz* I'm enjoying playing the stoopid person today (yes, yes, I know > ' I do it so well' ;-) Typecasting. Blame it on the casting agent. ;^)= > > Well, in that role, what would really help me was a description of the > interfaces the policy object exposes and how they differ from the ones > provided by the PTK equivalent object. As soon as I have them all worked out ;) > > Then everyone can compare and see which they think is right... IMO, things dealing with authentication should _not_ be defined by the PTK. That is the realm of user management, which the PTK is not (AIUI) aimed at doing. It has the current default setup now mainly out of (AIUI) a need to have _something_ to do it. Basically, there are only a few variations on your basic portal. Authentication policies a few more. Add them together and .. dman that's alot of permutations. By leaving authentication policies to the user management tool, you keep the basic PTK simple, as it should be. The PTK itsself should basically, IMO, call things like 'authenticate_User', 'logout_User', perhaps even 'get_User'. Anything that deals with user authentication should no tbe implemented in the PTK. do this and you get conflict and confusion (witness the 'Desktop backgroun' control conflict when using Enlightenment and GNOME. Someone has to give). What should be done, is that the PTK calls a predefined User Management API. The default implementation of PTK Demo (remember, it is just that, a demo) should come with some sort of "Zope User Management API" that abides by the ZUMAPI. That's part of why I never liked the name of PTK; it didn't match the common uses of it as implemented. Let's face reality, PTKDemo is not a "Portal Site" as implemented, but rather a "Community Site". See my Wiki for further details. Soon I hope to have more details on those put on zope.org. Now, as to what that API should look like, that's an entirely different animal. I have some ideas though. Perhaps a Proposal could be written, as soon as I get the time. just some off the cuff ideas: authenticate_User Used for user log in. Returns Success or Failure logout_User Used to log the user out. Likely returns a redirect url. get_User Used when you need the user object (useful or not?), and returns the object itsself. (What about SQL-Authed Users?) get_UserPage Used ot get the user's URL if any. In Community sites that implement a Member Folder (such as PTKDemo), it would return the URL to the User's Folder. In sites that don't it can return the URL to their 'Profile Page' or whatever stands in place (maybe a redirect or something). Returns a URL. mail_UserPassword Here is the tricky one, but only for what it returns. The UMP would do the work, and should return a URL, or an actual page fo rth euser to see. Then, a User Management Product would implement the behind the scenes methods to return the required result. Ideas? Suggestions, other than checking into the local State Hospital (Looney Bin). Bill. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From andyd@nipltd.com Thu Sep 7 08:47:20 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 08:47:20 +0100 Subject: [Zope-PTK] Security Bug in version 0.8.2-complete In-Reply-To: <39B6D1EA.8740F5E0@digicool.com> Message-ID: I also noticed this bug in ZopePTK-0.8.2. Basically the 'Reconfigure Portal' menu option appears for standard members sometime in the toolbox. I also believe that at Euro Zope in Paris Paul admitted it was a bug. Although the bug seems to be fixed in the latest CVS checkout, as I haven't seen it since I upgraded. -Andy > -----Original Message----- > From: tseaver@zope.org [mailto:tseaver@zope.org]On Behalf Of Tres Seaver > Sent: 07 September 2000 00:23 > To: hn75@gmx.de > Cc: zope-ptk@zope.org > Subject: Re: [Zope-PTK] Security Bug in version 0.8.2-complete > > > Hendrik Naumann wrote: > > > > Hi > > > > I installed Zope-PTK from the file > > http://www.zope.org/Products/PTK/ZopePTK-0.8.2-complete.tar.gz > > on an Zope-2.2.0-linux2-x86 (SuSE 6.4) - System. > > > > I created some Members and realized that those (on a restarted > > Browser) are able to access the portal-configuration and even change > > settings there. > > > > If you need more infomations, please contact me. > > We have a tracker issue on this: > > http://www.zope.org/Products/PTK/Tracker/82 > > Is that the same behavior you notice? I haven't reproduced it. > > Tres. > -- > =============================================================== > Tres Seaver tseaver@digicool.com > Digital Creations "Zope Dealers" http://www.zope.org > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From chrisw@nipltd.com Thu Sep 7 09:19:50 2000 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 07 Sep 2000 09:19:50 +0100 Subject: [Zope-PTK] Discussion Problems with PTK References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> <39B68DDF.A6363412@digicool.com> Message-ID: <39B74FA6.B914CF0C@nipltd.com> Shane Hathaway wrote: > > Chris Withers wrote: > > I saw the fix for Discussions.py get checked in, but has the > > skip_unauthorized fix been checked in yet? > > Nope, I wanted to get a reaction first. Well, it sounds like a good idea to me ;-) Chris From neeloy_saha@infy.com Thu Sep 7 13:29:26 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Thu, 7 Sep 2000 17:59:26 +0530 Subject: [Zope-PTK] Portal Toolkit and NTUserFolder Message-ID: <8EE756E49A17D21194860008C7F49AFE045290C8@TWRMSG01> Hi all, Can anybody tell me how to integrate the NTUserFolder and the portal toolkit -neeloy From kayeva@hotmail.com Thu Sep 7 13:36:53 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Thu, 07 Sep 2000 12:36:53 GMT Subject: [Zope-PTK] Dynamic meta-type based templating ? (was : What is the PTK?) Message-ID: Hi, Bill and Chris asking me to elaborate on templating ideas we are currently testing with Maik Roeder and Tariq Krim: >From: Chris Withers >To: Bill Anderson > > > - and some ideas we are currently experimenting about "per meta_type > > > templating" > > > > Elaborate please. > >Yes, please do :-) OK, you asked for it, so here it is, but it is more of a Proof of concept attempt. ##### Goal : Allow easy creation and management of the Presentation Logic for sites that have sub-sites (that may also have sub-sites). Application domains Community Sites Vortals Application Service Providers Actors Zope Developer / Administrator Web Designer Content Manager Use cases Scenario 1: One template (or skin) per object type - Zope Developer develops a product for the site's Application Logic. - Zope Developer provides default Presentation Logic within the product. - Content Manager instanciates site objects with the product. - During object instanciation, Content Manager chooses to affect a specific skin to the object or not to. No specific skin means that the object acquires its presentation from its container. - After content object instanciation, Web Designer can access the instance skin method where applied and customize it Scenario 2: Multiple templates (or skins) per object type - Zope Developer develops a product for the site's Application Logic. - Zope Developer provides several Presentation Logic methods for each object of the product. - Web Developer provides several skins (i.e. good looking HTML and graphics) for each Presentation Logic. - Content Manager instanciates site objects with the product. - During object instanciation, Content Manager chooses a/ a skin for the object among the available skins, or b/ not to affect a specific skin to the object. No specific skin means that the object acquires its presentation from its container. - After content object instanciation, Web Designer can still access the instance skin method where applied and customize it. Solution attempt (so far) 1/ Create a method called [ZClass_Name]_Template in the ZClass along with its constructor methods. A patch to the ZClasses product could allow optional creation of this method at the ZClass creation. In the case of multiple skins, create a template method for each. As a convention, you could just use ..._Template1, ..._Template2, ... 2/ Add a code snippet in the ZClass 'add' method in order to copy the template method to the instance if 'Local Skin option' has been selected. Each copy gets the id 'standard_mptrois_template' (for example). In the case of multiple skins, the add method should present the available skins to the Content Manager for selection. 3/ In the base ZClass DocumentFolderClass, we have an index_html method which calls standard_mptrois_template. So this method is the one that is used for rendering all over the ZDP-Tools based site. 4/ The Web Designer can put the generic skin in the [ZClass_Name_Template method of the related class and, then when needed, can customize the standard_mptrois_template of the object instance. Go for your feddback. Regards, Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From nathalie@pilotsystems.net Thu Sep 7 14:42:23 2000 From: nathalie@pilotsystems.net (Nathalie) Date: Thu, 7 Sep 2000 15:42:23 +0200 Subject: [Zope-PTK] my e-mail Message-ID: <001701c018d1$749f43c0$cbdf84c3@fr.cybercable> This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C018E2.376F7220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ------=_NextPart_000_0014_01C018E2.376F7220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
------=_NextPart_000_0014_01C018E2.376F7220-- From pje@telecommunity.com Thu Sep 7 15:07:29 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 07 Sep 2000 09:07:29 -0500 Subject: [Zope-PTK] Login Manager broken? In-Reply-To: <004f01c0184b$11f64560$0100a8c0@nbmz1> Message-ID: <200009071408.HAA31018@zope.codeit.com> At 11:40 PM 9/6/00 +0200, Stefan Goerres wrote: >Hi you gurus out there, > >Login Manager shows up broken... :((( So since I'm a purely newbie is >there any advice on this? > > from AccessControl import getSecurityManager >ImportError: cannot import name getSecurityManager > This looks like you're using a Zope 2.1.x version, or else your Zope installation is broken somehow. From andyd@nipltd.com Thu Sep 7 15:43:30 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 15:43:30 +0100 Subject: [Zope-PTK] Old password reset bug is back Message-ID: Back in the days of Zope 2.1.6 there was an issue that if you went in to a user object to change the users role you had to change the password before you could save the changes. The patch for this, which has made its way in to 2.2.1, is if the password field contains the value 'password' and if the confirm field contains the value 'confirm' then the password would not be changed. This works...... ...except in the PTK In the PTK if the password field contains 'password' and the confirm field contain 'confirm' then the password is change to None, which is not desirable at all. Basically there is no warning of this until that user tries logging on and finds his/her password doesn't work any more. Any chance of a fix? Cheers. -Andy From shane@digicool.com Thu Sep 7 15:54:47 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 10:54:47 -0400 Subject: [Zope-PTK] Old password reset bug is back References: Message-ID: <39B7AC37.47A2093D@digicool.com> Andy Dawkins wrote: > > Back in the days of Zope 2.1.6 there was an issue that if you went in to a > user object to change the users role you had to change the password before > you could save the changes. > > The patch for this, which has made its way in to 2.2.1, is if the password > field contains the value 'password' and if the confirm field contains the > value 'confirm' then the password would not be changed. > > This works...... > ...except in the PTK > > In the PTK if the password field contains 'password' and the confirm field > contain 'confirm' then the password is change to None, which is not > desirable at all. > > Basically there is no warning of this until that user tries logging on and > finds his/her password doesn't work any more. What acl_users implementation are you using? Shane From andyd@nipltd.com Thu Sep 7 16:00:54 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 16:00:54 +0100 Subject: [Zope-PTK] Old password reset bug is back In-Reply-To: <39B7AC37.47A2093D@digicool.com> Message-ID: > What acl_users implementation are you using? > Currently Just the standard Zope provided acl_users. (Don't know its official name - users.py i guess) -Andy From shane@zope.org Thu Sep 7 16:06:34 2000 From: shane@zope.org (Shane) Date: Thu, 7 Sep 2000 08:06:34 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - ZODBMember.py:1.3 Message-ID: <200009071506.IAA32583@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv32566 Modified Files: ZODBMember.py Log Message: Correction for blank password bug. From shane@digicool.com Thu Sep 7 16:07:04 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 11:07:04 -0400 Subject: [Zope-PTK] Old password reset bug is back References: Message-ID: <39B7AF18.C3BF0374@digicool.com> Andy Dawkins wrote: > > > What acl_users implementation are you using? > > > > Currently Just the standard Zope provided acl_users. > (Don't know its official name - users.py i guess) Corrected in CVS. Thank you! Shane From andyd@nipltd.com Thu Sep 7 16:11:17 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Thu, 7 Sep 2000 16:11:17 +0100 Subject: [Zope-PTK] Old password reset bug is back In-Reply-To: <39B7AF18.C3BF0374@digicool.com> Message-ID: No thankyou. You're a star -Andy > -----Original Message----- > From: shane@zope.org [mailto:shane@zope.org]On Behalf Of Shane Hathaway > Sent: 07 September 2000 16:07 > To: Andy Dawkins > Cc: zope-ptk@zope.org > Subject: Re: [Zope-PTK] Old password reset bug is back > > > Andy Dawkins wrote: > > > > > What acl_users implementation are you using? > > > > > > > Currently Just the standard Zope provided acl_users. > > (Don't know its official name - users.py i guess) > > Corrected in CVS. Thank you! > > Shane > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From dan@sol.control.com Thu Sep 7 15:18:36 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 10:18:36 -0400 (EDT) Subject: [Zope-PTK] password policy change interface In-Reply-To: <39B739DC.96F8B4E@libc.org> References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> <39B739DC.96F8B4E@libc.org> Message-ID: <14775.41916.552068.58970@sol.control.com> Bill Anderson writes: > IMO, things dealing with authentication should _not_ be defined by the > PTK. That is the realm of user management, which the PTK is not (AIUI) > aimed at doing. It has the current default setup now mainly out of > (AIUI) a need to have _something_ to do it. I agree. > get_User > Used when you need the user object (useful or not?), and returns the > object itsself. (What about SQL-Authed Users?) get_User may not be needed. What is needed is something like get_PTK_user_property_page(ick!). Yeah, I'm drawing from ZPatterns here, but this is a place where the concept of different property sets for different users of a common service makes a lot of sense. From shane@digicool.com Thu Sep 7 16:16:07 2000 From: shane@digicool.com (Shane Hathaway) Date: Thu, 07 Sep 2000 11:16:07 -0400 Subject: [Zope-PTK] password policy change interface References: <20000823132640.26917.qmail@web9204.mail.yahoo.com> <39B53A70.2C86AA4D@bay-c.co.uk> <39B5C176.66931C76@libc.org> <39B68B42.A33F3F6E@bay-c.co.uk> <39B739DC.96F8B4E@libc.org> Message-ID: <39B7B137.193115AA@digicool.com> Bill Anderson wrote: > The PTK itsself should basically, IMO, call things like 'authenticate_User', 'logout_User', perhaps even 'get_User'. > Anything that deals with user authentication should no tbe implemented in the PTK. do this and you get conflict and > confusion (witness the 'Desktop backgroun' control conflict when using Enlightenment and GNOME. Someone has to give). > (snip) > Then, a User Management Product would implement the behind the scenes methods to return the required result. > > Ideas? Suggestions, other than checking into the local State Hospital (Looney Bin). My suggestion is that we simply modify the portal_membership and portal_registration API's to make all kinds of authentication possible. They are closer to what you're suggesting than you realize. Note that they do not constitute the complete policy; the final details are implemented in DTML (and will soon move to TTW Python Methods). Thus we don't have to implement all possible policies--we only have to make them possible. Please look at interfaces/portal_membership and interfaces/portal_registration. Shane From dan@sol.control.com Thu Sep 7 15:04:46 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 10:04:46 -0400 (EDT) Subject: [Zope-PTK] Discussion Problems with PTK In-Reply-To: <39B68DDF.A6363412@digicool.com> References: <39B65E7B.F6AECADB@digicool.com> <39B68A48.77A92FE0@bay-c.co.uk> <39B68DDF.A6363412@digicool.com> Message-ID: <14775.41086.235128.716912@sol.control.com> Shane Hathaway writes: > Chris Withers wrote: > > I saw the fix for Discussions.py get checked in, but has the > > skip_unauthorized fix been checked in yet? > > Nope, I wanted to get a reaction first. It's needed. You're right that some sites will want private discussions as well as public ones -- some may even want to mix public and private threads (even though the idea makes me shudder :-)). It's better to not show things the user can't see than to generate an error. The alternative would be to ensure that everything that looks as discussion threads checks for permissions first and displays a site specific error message. That might work if you don't allow mixed public/private discussions, but it would involve extra work and chance for error. It would also raise the quite justifiable user question: "Why the #%*&! are you showing me this if I can't look at it?". From chrisw@nipltd.com Fri Sep 8 10:52:48 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 08 Sep 2000 10:52:48 +0100 Subject: [Zope-PTK] Re: PTK - member can reconfigure portal References: <017330860.20000907230359@swipnet.se> Message-ID: <39B8B6F0.629EEAB0@nipltd.com> Anders Eriksson wrote: > I have joined the Portal and when I log in as this member and select > 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will > let this user/member change things that only the owner/super should be > able to do!(?) This could be one of two things, IIUC: 1. You might still be 'logged in' through HTTP Basic Authentication from when you created the portal. Try closing all your browsers, opening up a new one, joining the portal with that one and see if the problem is still there... 2. ...if it is, it's a bug, stick it in the PTK Tracker: http://www.zope.org/Products/PTK/Tracker cheers, Chris PS: This sort of thing is probably better suited to the zope-ptk@zope.org mailing list. From andyd@nipltd.com Fri Sep 8 11:11:35 2000 From: andyd@nipltd.com (Andy Dawkins) Date: Fri, 8 Sep 2000 11:11:35 +0100 Subject: [Zope-PTK] Re: PTK - member can reconfigure portal In-Reply-To: <39B8B6F0.629EEAB0@nipltd.com> Message-ID: As stated before on the zope-ptk@zope.org list. This is a know bug with the PTK 0.8.2 This has been fixed in the latest PTK CVS. There are two solutions to this bug. 1) Download the latest PTK CVS 2) Wait for the next snap shot to be released. -Andy (I have also been told there is a place you can go to download unofficial PTK CVS snapshots, sorry I can't remember the URL - It is on this list somewhere) > -----Original Message----- > From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf > Of Chris Withers > Sent: 08 September 2000 10:53 > To: Anders Eriksson > Cc: zope@zope.org; zope-ptk@zope.org > Subject: [Zope-PTK] Re: PTK - member can reconfigure portal > > > Anders Eriksson wrote: > > I have joined the Portal and when I log in as this member and select > > 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will > > let this user/member change things that only the owner/super should be > > able to do!(?) > > This could be one of two things, IIUC: > > 1. You might still be 'logged in' through HTTP Basic Authentication from > when you created the portal. Try closing all your browsers, opening up a > new one, joining the portal with that one and see if the problem is > still there... > > 2. ...if it is, it's a bug, stick it in the PTK Tracker: > > http://www.zope.org/Products/PTK/Tracker > > cheers, > > Chris > > PS: This sort of thing is probably better suited to the > zope-ptk@zope.org mailing list. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and > feature requests > From Didier Georgieff Sat Sep 9 10:01:36 2000 From: Didier Georgieff (Didier Georgieff) Date: Sat, 9 Sep 2000 10:01:36 +0100 Subject: [Zope-PTK] KeyError email on mail_password_form Message-ID: <39BA0A80.18858.5A97484@localhost> Hello, I just installed the latest PTK, and got this problem; when trying to send a forgotten password via mail_password_form. While trying to dig the problem, i found a (i guess an obvious typo) in an other part (mange_user_form instead of manage_user_form). What is the best way to submit this problem (and may be future other testings, as we are planning to use the future PTK at a huge level) ?. And again thanks ALL for such a great future tool. Error Type: KeyError Error Value: email Traceback (innermost last): File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zope\Zope221\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zope\Zope221\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: mail_password) File C:\Zope\Zope221\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: mail_password) File C:\Zope\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: mail_password) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: mail_password) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_Return.py, line 106, in render (Object: portal_registration.mailPassword(REQUEST['userid'], REQUEST)) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: portal_registration.mailPassword(REQUEST['userid'], REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Zope\Zope221\lib\python\Products\PTKDemo\DemoRegistrationT ool.py, line 140, in mailPassword (Object: portal_registration) File C:\Zope\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: mail_password_template) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: mail_password_template) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: portal_properties) File C:\Zope\Zope221\lib\python\Products\MailHost\SendMailTag.py, line 187, in render (Object: MailHost) File C:\Zope\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: ) KeyError: (see above) -- Divine Rites - Strasbourg, France ======================================================================= 10" Storming the Citadel available via mail order only ! Check it on http://www.divinerites.com/dr_drr.htm Radio Birdman, New Christs, Deniz Tek, Citadel Records & more ... http://www.divinerites.com From paul@digicool.com Sat Sep 9 14:31:48 2000 From: paul@digicool.com (Paul Everitt) Date: Sat, 09 Sep 2000 09:31:48 -0400 Subject: [Zope-PTK] Avoiding confusion with names is good :-) References: <39B68BB1.72E822FB@bay-c.co.uk> Message-ID: <39BA3BC4.B5ED1096@digicool.com> Chris Withers wrote: > Out of interest, has a new name for 'the PTK' been decided on yet? If > so, will it apply to the PTKDemo bit or the PTKBase bit? > > (please no-one say 'both' :-S) How about "each"? :^) Let me describe what we'd like to accomplish at DC for the PTK. We intend to take something that feels mostly like a "usable out of the box" product for the Zope platform, and take it into the content management market. At the same time, we need the components exposed with big shiny knobs for customization in our consulting business. To make it perfectly clear, our product is Open Source, and our goal is to make sure that other people/companies adopt it, add value to it, make money from it, etc. Thus I'd like to see the "son-of-PTK" to become a unifier for content management in Zope. With that in mind, I'm thinking about a name for the product, and then perhaps tack on "toolkit" or "framework" (or whatever) for the technology. Alternatively, we come up with no name for the second part; rather, we just name the important pieces (Membership, etc.). I've come up with a bunch of names, falling into a series of strategies, but I haven't gotten legal review on some of my assumptions. :^( --Paul From Didier Georgieff Sat Sep 9 19:45:40 2000 From: Didier Georgieff (Didier Georgieff) Date: Sat, 9 Sep 2000 19:45:40 +0100 Subject: [Zope-PTK] Re: KeyError email on mail_password_form Message-ID: <39BA9364.1351.7C04523@localhost> Well, I got the reason : my new test machine is behind a firewall and Zope MailHost is not working anymore. So i guess i have to sort it out on the zope list. Sorry for the false report. On 9 Sep 2000, at 10:01, Didier Georgieff (zope-ptk@zope.org) wrote: > I just installed the latest PTK, and got this problem; > when trying to send a forgotten password via mail_password_form. > Error Type: KeyError > Error Value: email From rik.hoekstra@inghist.nl Sun Sep 10 21:26:05 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Sun, 10 Sep 2000 22:26:05 +0200 Subject: [Zope-PTK] Dynamic meta-type based templating ? (was : What is the PTK?) References: Message-ID: <007a01c01b65$598c7d00$fe5da182@michieltje> This reminds me a lot of what I am trying to do with my ZECF product . Currently mostly in the making, tho there is a preprerelease at my personal pages http://www.zope.org/Members/Hoekstra/ZECF and some documentation in dubious formatting at http://www.zope.org/Members/Hoekstra/ZECF/info and http://www.zope.org/Members/Hoekstra/ZECF/UsingZECF All this reflects much of the discussion about roles at http://www.zope.org/Wikis/zope-edu/RolesUseCases As I read Kamon's mail, it's approach is a bit different while the problem is the same: sites with subsites, with even more subsites. Not only layout definition is dynamic, but so is the definition of properties in sites. Nested is basically confined to three levels: - Manager (in this case the manager of Educational sites) - Layout manager (for want of a better word) - Course manager Course managers may, in good Zope fashion hand down responsabilities further down the chain (for example to students) Rik P.S. there is a much improved version at my home development machine, but I can't seem to find time to finish it. I've stopped announcing new versions (sigh), though they're in the pipeline. The new version has something of a standard layout that uses the standard_html_header and adds some stuff to it. Furthermore, there is a set of layout items to override if you want to change it (basically a header, a footer and a stylesheet). Note also that a previous version was implemented in a live situation at a Dutch University (where I don't work anymore) and has been in use for a year now. From mtaylor@information-innovation.com Mon Sep 11 11:06:03 2000 From: mtaylor@information-innovation.com (Monty Taylor) Date: Mon, 11 Sep 2000 12:06:03 +0200 Subject: [Zope-PTK] Categorization, ZTopics and Portal Functionality Message-ID: <39BCAE8B.28394CC4@information-innovation.com> Hey all. I've been fairly vacant in my attention to this list recently (vactions and all) so forgive me if we've already covered this. I searched through the list and found some stuff, which I'm basing some of this on. One of the things that I need, and that it seems that lots of people want, is categorization. The ZTopics product goes a long way towards this, but we're still missing one thing - a Portal Manager should be able to manage categories without having to go into the management interface. Here's what I'm going to try to put together over the next few days (I have multiple projects, some with deadlines, that all want something like this) but I'm going to need a bit of help. Category product. User chooses to add a Category. User chooses where in the Category hierarchy he wants this Category to live. Adding the Category creates a ZTopic that lives in the selected container. (simple so far, right?) Modify current Portal Products. User should be able to 'Categorize' any given portal product. (If he can publish it, he should be able to categorize it as well.) Maybe modify Set status. (?) Multiple categories should be supported. The Category selection boxes can be generated from a simple Catalog search for meta_type="ZTopic" The thing I'm not certain of is the storing of the Category selection for each product. If we use Subject, (here's where I was reading earlier posts) we store a list of key words, right? So if we have : Categories- Cat1- Cat2- Cat3- We could have a select box filled with: 'Cat1','Cat1:Cat2','Cat3' -- this would allow for independance of sub-categories OR 'Cat1','Cat2','Cat3' -- in which each category or sub-categoy would have to be unique, but would allow for interesting cross-referencing possibilities. This doesn't imply category structure during categorization, though. OR have the select box list 'Cat1','Cat1:Cat2','Cat3' but store 'Cat1','Cat2','Cat3' I think I like the last one, but it could be confusing for maintainence. I also wonder about access control on categories, but that still may have to fall-back to using the management interface. Any thoughts, comments, ideas? I'm going to start working, but if anyone sees and landmines or is already working on something similar, please let me know. Monty From kayeva@hotmail.com Mon Sep 11 21:25:05 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Mon, 11 Sep 2000 20:25:05 GMT Subject: [Zope-PTK] PortalMembership problem - Help Please !!!!!!!!! Message-ID: Hi, I just tried to install PortalMembership on a development site, and I can no more access ZClass instances that were created with a previous version of Membership I had. The error message that keeps coming is: AttributeError, _setRack I hope someone can help if not nearly 2 weeks work are lost. Many thanks. Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From kamonayeva@yahoo.com Tue Sep 12 01:42:56 2000 From: kamonayeva@yahoo.com (Kamon Ayeva) Date: Mon, 11 Sep 2000 17:42:56 -0700 (PDT) Subject: [Zope-PTK] PortalMembership 0.7.5 problem Message-ID: <20000912004256.29473.qmail@web9502.mail.yahoo.com> Hi, Earlier I wrote: >I just tried to install PortalMembership on a >development site, and I can no >more access ZClass instances that were created with >a previous version of Membership I had. >The error message that keeps coming is: >AttributeError, _setRack > >I hope someone can help if not nearly 2 weeks work >are lost. > >Many thanks. >Kamon Here are more details: Zope 2.2.1 ZPatterns 0.4.1snap1 Login Manager 0.8.7a1 Python Methods 0.1.7 Membership and PortalMembership.zexp 0.7.5 I can regain access to the ZODB and create a User Folder with a Manager account, but then when I try to create a new Portal Membership system with the manager account, I get: Zope Error Zope has encountered an error while publishing this resource. Error Type: SystemError Error Value: Failed to import class _ZClass_for_MemberMixin from module Products.Membership My ZClass instances are still broken and I don't know how to recover them. Any help is much appreciated. -- Kamon __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From js@aixtraware.de Tue Sep 12 14:11:41 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 15:11:41 +0200 (CEST) Subject: [Zope-PTK] how to render a members document ? Message-ID: hi, how can I render a members published pure document-content without any properties like "created by" for an anonymous user visiting the site ? 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 bill@noreboots.com Tue Sep 12 17:22:18 2000 From: bill@noreboots.com (Bill Anderson) Date: Tue, 12 Sep 2000 10:22:18 -0600 Subject: [Zope-PTK] PortalMembership problem - Help Please !!!!!!!!! References: Message-ID: <39BE583A.B85BEB25@noreboots.com> kamon ayeva wrote: > > Hi, > > I just tried to install PortalMembership on a development site, and I can no > more access ZClass instances that were created with > a previous version of Membership I had. > The error message that keeps coming is: AttributeError, _setRack > > I hope someone can help if not nearly 2 weeks work are lost. Not necessarily. You should be able to undo the whole thing. I have before. As to the error .... Dunno, haven't seen it. How exactly did you perform the upgrade, what was running prior to the upgrade, etc.. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From js@aixtraware.de Tue Sep 12 18:51:30 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 19:51:30 +0200 (CEST) Subject: [Zope-PTK] how to coordinate development Message-ID: Hi, If I write some improvements,additions for the DemoPortal, how can we coordinate, that not two people do the same, and if the improvement is ready to use, how to share it with the community ? 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 js@aixtraware.de Tue Sep 12 19:13:57 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Tue, 12 Sep 2000 20:13:57 +0200 (CEST) Subject: [Zope-PTK] how to render a members document ? In-Reply-To: Message-ID: to answer my own question: I modified: ../Products/PTKDemo/dtml/documentView.dtml like so: <--- insert <--- insert On Tue, 12 Sep 2000, Joachim Schmitz wrote: > hi, > > how can I render a members published pure document-content without any > properties like "created by" for an anonymous user visiting the site ? > > 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 > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > > 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 Anders Eriksson Tue Sep 12 21:13:48 2000 From: Anders Eriksson (Anders Eriksson) Date: Tue, 12 Sep 2000 22:13:48 +0200 Subject: [Zope-PTK] Portal Membership System - Attribute error Message-ID: <10211729265.20000912221348@swipnet.se> Hello, I create a Portal and create a supervisor with the wizard. Then I close IE and login as this supervisor. When I now try to add the Portal Membership System I get this error: Error Type: AttributeError Error Value: __call__ and this traceback: Traceback (innermost last): File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 222, in publish_module File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\Program\SweScout\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\Program\SweScout\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File D:\Program\SweScout\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File D:\Program\SweScout\lib\python\App\Factory.py, line 178, in index_html (Object: RoleManager) AttributeError: (see above) Anyone who knows what's wrong and how I fix it? -- Best regards, Anders mailto:ame@swipnet.se The Romans didn't find algebra very challenging, because X was always 10. From bill@noreboots.com Tue Sep 12 23:55:39 2000 From: bill@noreboots.com (Bill Anderson) Date: Tue, 12 Sep 2000 16:55:39 -0600 Subject: [Zope-PTK] Portal Membership System - Attribute error References: <10211729265.20000912221348@swipnet.se> Message-ID: <39BEB46B.1B5E706B@noreboots.com> Anders Eriksson wrote: > > Hello, > > I create a Portal and create a supervisor with the wizard. > > Then I close IE and login as this supervisor. When I now try to add > the Portal Membership System I get this error: ... > Anyone who knows what's wrong and how I fix it? Not until you provide more details. Near as I can tell, you are using the PTK. Therin lies your problem, Membership is not supported in combination with the PTK. BTW, the docs on Membership detail this. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From neeloy_saha@infy.com Wed Sep 13 13:29:19 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 13 Sep 2000 17:59:19 +0530 Subject: [Zope-PTK] Integrating zope portal toolkit and ntuserfolder Message-ID: <8EE756E49A17D21194860008C7F49AFE045290E3@TWRMSG01> Hi guys, Can someone tell me how do i go abt integrating the zope portal toolkit with the login manager?? Basically i want the following features. 1. if i do a join member. Then i will get the form with username and password field. The guy will fill in the ntuser domain name and password. In case that is validated by the domain controller. a new member will be created and then in the "members folder of ptk" the folder of the user will be created 2. log in : The person will only be able to log in if the following condition all are true:- * he has joined in. i.e means a proper folder under the directory "members" exists. * the authentication is done against the username and the domain name from the domain controller. I am a zope newbie :-- and much conversant with the zope architecture. Therefore i am having problems abt the way to go abt it. But till now what i have done: * managed to stitch together a portal with the login manager support. * configured the NTUserFolder and then am able to create an instance in a particular portal folder and then assign local roles to the user from the NT domain name. where i am stuck?? * how do i integrate.....?? any pointers. I saw the "how to" by tseaver abt doing that for the login manager and the smbUserFolder.....?? any pointers would help -neeloy From tseaver@zope.org Wed Sep 13 15:30:44 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:30:44 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - folderAdd.dtml:1.3 Message-ID: <200009131430.HAA30663@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30654 Added Files: folderAdd.dtml Log Message: Readd From tseaver@zope.org Wed Sep 13 15:34:09 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:34:09 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - PortalFolder.py:1.20 Message-ID: <200009131434.HAA30992@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30967 Modified Files: PortalFolder.py Log Message: * Add ZPL. * Add constructor form. From tseaver@zope.org Wed Sep 13 15:35:54 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:35:54 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - PortalContent.py:1.50 PortalObject.py:1.76 register.py:1.7 utils.py:1.6 Message-ID: <200009131435.HAA31197@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv31183 Modified Files: PortalContent.py PortalObject.py register.py utils.py Log Message: * Add ZPL. From tseaver@zope.org Wed Sep 13 15:35:55 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:35:55 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - Discussions.py:1.4 DublinCore.py:1.3 IndexableContent.py:1.5 Membership.py:1.4 PortalContentRegisteration.py:1.2 PortalUI.py:1.3 ReviewableContent.py:1.5 Message-ID: <200009131435.HAA31201@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase/interfaces In directory zope.codeit.com:/tmp/cvs-serv31183/interfaces Modified Files: Discussions.py DublinCore.py IndexableContent.py Membership.py PortalContentRegisteration.py PortalUI.py ReviewableContent.py Log Message: * Add ZPL. From tseaver@zope.org Wed Sep 13 15:38:15 2000 From: tseaver@zope.org (Tres) Date: Wed, 13 Sep 2000 07:38:15 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - DiscussionItem.py:1.3 Discussions.py:1.4 Document.py:1.4 File.py:1.3 Image.py:1.3 Link.py:1.3 NewsItem.py:1.3 Portal.py:1.25 SQLMember.py:1.3 ZODBMember.py:1.4 Message-ID: <200009131438.HAA31510@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo In directory zope.codeit.com:/tmp/cvs-serv31501 Modified Files: DiscussionItem.py Discussions.py Document.py File.py Image.py Link.py NewsItem.py Portal.py SQLMember.py ZODBMember.py Log Message: * Add ZPL. From oliver@sufface.net Wed Sep 13 17:53:45 2000 From: oliver@sufface.net (Oliver Daly) Date: Thu, 14 Sep 2000 02:53:45 +1000 Subject: [Zope-PTK] Inability to add dtml documents Message-ID: <39BFB118.79E8DD12@sufface.net> Hi, The following was sent in April this year. I notice the same problem exists in the 2.2.0 version of Zope. Are there any plans to fix this? Thanks Oliver Here's the previous mail: OK, still seeing this bug in 0.7.1. Create a 'Portal Folder', in that 'Portal Folder' create a 'DTML Document', and you will get the following traceback when trying to view it: Traceback (innermost last): File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in publish File /local/home/Web/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in publish File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: foo) File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: foo) File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: foo) File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: foo) File /local/home/Web/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: standard_html_header) File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: standard_html_header) File /local/home/Web/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) (Info: this) File , line 0, in ? File /local/home/Web/lib/python/Products/PTKBase/Toolbox.py, line 24, in __call__ AttributeError: (see above) Change it to a 'DTML Method', and the error goes away. Any idea how/when this wil be fixed, or is it in CVS? -- Bill Anderson Linux/Unix Administrator, Security Analyst ESBU (ARC) bill_anderson@boi.hp.com My opinions are just that; _my_ opinions. From shane@digicool.com Wed Sep 13 18:05:15 2000 From: shane@digicool.com (Shane Hathaway) Date: Wed, 13 Sep 2000 13:05:15 -0400 Subject: [Zope-PTK] Inability to add dtml documents References: <39BFB118.79E8DD12@sufface.net> Message-ID: <39BFB3CB.32444BAC@digicool.com> oliver@sufface.net wrote: > > Hi, > > The following was sent in April this year. I notice the same problem > exists in the 2.2.0 version of Zope. Are there any plans to fix this? It should be fixed in the latest CVS PTK, which has a number of fixes. Shane > Here's the previous mail: > > OK, still seeing this bug in 0.7.1. > Create a 'Portal Folder', in that 'Portal Folder' create a 'DTML > Document', and you will get the following traceback when trying to view > it: > > Traceback (innermost last): > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 214, in > publish_module > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 179, in > publish > File /local/home/Web/lib/python/Zope/__init__.py, line 202, in > zpublisher_exception_hook > (Object: ElementWithAttributes) > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 165, in > publish > File /local/home/Web/lib/python/ZPublisher/mapply.py, line 160, in > mapply > (Object: foo) > File /local/home/Web/lib/python/ZPublisher/Publish.py, line 102, in > call_object > (Object: foo) > File /local/home/Web/lib/python/OFS/DTMLDocument.py, line 166, in > __call__ > (Object: foo) > File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line > 502, in __call__ > (Object: foo) > File /local/home/Web/lib/python/OFS/DTMLMethod.py, line 146, in > __call__ > (Object: standard_html_header) > File /local/home/Web/lib/python/DocumentTemplate/DT_String.py, line > 502, in __call__ > (Object: standard_html_header) > File /local/home/Web/lib/python/DocumentTemplate/DT_Util.py, line 335, > > in eval > (Object: getPortal().getToolbox(REQUEST)(this(),REQUEST)) > (Info: this) > File , line 0, in ? > File /local/home/Web/lib/python/Products/PTKBase/Toolbox.py, line 24, > in __call__ > AttributeError: (see above) > > Change it to a 'DTML Method', and the error goes away. > > Any idea how/when this wil be fixed, or is it in CVS? > > -- > Bill Anderson Linux/Unix Administrator, Security > Analyst > ESBU (ARC) bill_anderson@boi.hp.com > My opinions are just that; _my_ opinions. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From pje@telecommunity.com Thu Sep 14 15:37:18 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 09:37:18 -0500 Subject: [Zope-PTK] ZPatterns (sub-)transaction problems In-Reply-To: <39C0C77A.F5265A1B@cat-box.net> Message-ID: <200009141437.HAA08970@zope.codeit.com> At 01:41 PM 9/14/00 +0100, Steve Alexander wrote: > >I think there's something not quite right about the way ZPatterns is >handling subtransactions, even with this patch, and the other one >related to Transactions.py that I posted a while back. > >Is there any detailed documentation about how Zope transactions and >subtransactions are supposed to work? > Unfortunately, the problem is not with Zope but with ZPatterns. I was about to announce this today anyway, but I figured I might as well do it by replying to your post. The ZPatterns transaction machinery is seriously broken with respect to subtransactions. It is mostly functional with respect to "plain" transactions. It has been broken since its inception due to a design stupidity on my part. Under pressure to get a working 0.4.0 system, I started coding without a fully thought-out design for the transaction handling system, and changed it midway two or three times before I got something that (basically) works. I did not discover the flaws until yesterday, when Ty tried to use subtransactions in a to-be-production application. An hour or so of debugger-stepping and Zope-source-reading later, we were able to fix the code to allow a single subtransaction commit to succeed, but *only* if no work were done following the subtransaction commit. I will try to have a ZPatterns snapshot release made this week that will include those fixes (plus the fix for a problem with DynPersist that we also discovered yesterday). It should be noted, however, that the resulting release will still not be good for much with respect to subtransactions. I am in the process now of redesigning the entire transaction machinery to correct the problems. On the bright side, I have already seen how the redesign will simplify the code of several classes, while possibly improving both performance and memory usage. From steve@cat-box.net Thu Sep 14 15:56:06 2000 From: steve@cat-box.net (Steve Alexander) Date: Thu, 14 Sep 2000 15:56:06 +0100 Subject: [Zope-PTK] Re: ZPatterns (sub-)transaction problems References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <39C0E706.7C4F1DF2@cat-box.net> "Phillip J. Eby" wrote: > > I will try to have a ZPatterns snapshot release made this week that will > include those fixes (plus the fix for a problem with DynPersist that we > also discovered yesterday). Great. I'm looking forward to that. Can we lose DynPersist altogether for this release? Or are there still folks out there using ZPatterns with 2.1.6? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From pje@telecommunity.com Thu Sep 14 16:40:22 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 10:40:22 -0500 Subject: [Zope-PTK] Re: ZPatterns (sub-)transaction problems In-Reply-To: <39C0E706.7C4F1DF2@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <200009141540.IAA10455@zope.codeit.com> At 03:56 PM 9/14/00 +0100, Steve Alexander wrote: > >Can we lose DynPersist altogether for this release? Unfortunately, no. Zope's cPersistent class appears it may have a bug that is roughly similar to the one we're fixing in DynPersist. (i.e., not calling __of__ or other binding operations on an object returned from __getattr__) I've written Jim to ask whether my interpretation of that code is correct, but have not received a reply. It may take a new Zope release before DynPersist is able to go away. :( >Or are there still folks out there using ZPatterns with 2.1.6? Support for 2.1.x was officially dropped with ZPatterns 0.4.2a1, but in practice most of the support code is still there today. It's just that I've stopped testing on 2.1.x and no longer write code with 2.1.x compatibility in mind. The re-architecting of the transaction machinery will *require* 2.2.x's transaction ordering semantics. From pje@telecommunity.com Thu Sep 14 16:54:13 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 10:54:13 -0500 Subject: [Zope-PTK] ZPatterns 0.4.2a2 bug fix release In-Reply-To: <39C0E706.7C4F1DF2@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> Message-ID: <200009141554.IAA10649@zope.codeit.com> It's up now. In addition to the transaction fixes and DynPersist fix, this release also fixes the missing import of aq_base in PlugIns.py, and the SkinScript compiler fouling up certain expressions due to its removal of spaces between tokens. Last, but not least, you can now place Specialists inside other Specialists without getting an error. At 03:56 PM 9/14/00 +0100, Steve Alexander wrote: >"Phillip J. Eby" wrote: >> >> I will try to have a ZPatterns snapshot release made this week that will >> include those fixes (plus the fix for a problem with DynPersist that we >> also discovered yesterday). > >Great. I'm looking forward to that. From steve@cat-box.net Thu Sep 14 17:39:38 2000 From: steve@cat-box.net (Steve Alexander) Date: Thu, 14 Sep 2000 17:39:38 +0100 Subject: [Zope-PTK] Re: [Zope-dev] ZPatterns 0.4.2a2 bug fix release References: <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <39C0FF4A.5080100@cat-box.net> Phillip J. Eby wrote: > It's up now. In addition to the transaction fixes and DynPersist fix, this > release also fixes the missing import of aq_base in PlugIns.py, and the > SkinScript compiler fouling up certain expressions due to its removal of > spaces between tokens. Last, but not least, you can now place Specialists > inside other Specialists without getting an error. According to diff, there is no difference between DynPersist.c in the latest release, and DynPersist.c in 0-4-2a1. The dates on the files are both Apr 26 too. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From pje@telecommunity.com Thu Sep 14 18:56:04 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Thu, 14 Sep 2000 12:56:04 -0500 Subject: [Zope-PTK] Re: [Zope-dev] ZPatterns 0.4.2a2 bug fix release In-Reply-To: <39C0FF4A.5080100@cat-box.net> References: <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <200009141756.KAA12267@zope.codeit.com> At 05:39 PM 9/14/00 +0100, Steve Alexander wrote: >Phillip J. Eby wrote: > >> It's up now. In addition to the transaction fixes and DynPersist fix, this >> release also fixes the missing import of aq_base in PlugIns.py, and the >> SkinScript compiler fouling up certain expressions due to its removal of >> spaces between tokens. Last, but not least, you can now place Specialists >> inside other Specialists without getting an error. > >According to diff, there is no difference between DynPersist.c in the >latest release, and DynPersist.c in 0-4-2a1. > >The dates on the files are both Apr 26 too. > Oops! It's fixed now. Everyone please note that the correct file size for ZPatterns-0-4-2a2.tgz is 47,811 bytes, not 47,756. Sorry about the mix-up; Ty and I missed a few files in the tagging process prior to generating a release. :( From mbernstein@profitscape.com Thu Sep 14 19:07:11 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Thu, 14 Sep 2000 13:07:11 -0500 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integrating zope portal toolkit and ntuserfolder) zope portal toolkit and ntuserfolder) Message-ID: <39C113CF.EF2804CF@profitscape.com> > Can someone tell me how do i go about integrating the zope portal > toolkit with the login manager?? I have been working on something similar: Getting LoginManager and Membership to work with SMB authentication off of an NT PDC (Zope is running on a Solaris box). Basically I've been hacking on Bill Anderson's PortalMembership to integrate the SMB functionality. I have the following policies and functionality working: - users must be authenticated by the PDC to join. - users may only join if they are not already a member. - email addresses are derived from the username, and stored in the profile. - users can login and be authenticated from the PDC. - users may change their profile (including the email address) - passwords ARE NOT stored in the profile (it's set to blank) Functionality removed: - all password reminders, validators, and generators Missing functionality: - member removal - members need to be listed in the local roles list, so I can move the LM to the root Note: Because membership is not reintegrated with the PTK as of yet, joining does not create a member folder. I would appreciate any assistance anyone can offer to improve the user management of LoginManager and Membership so that a manager can remove a member from the User Source, and the members stored in PersistentUserSource are listed in the 'local roles' screens. Michael Bernstein. From js@aixtraware.de Fri Sep 15 08:32:02 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Fri, 15 Sep 2000 09:32:02 +0200 (CEST) Subject: [Zope-PTK] the PTK and i18n Message-ID: Hi, is there anybody working on a multilingual PTK version ? I just looked in the code of PTKBase, and found that many phrases like the actions are hardwired into the code (python and dtml). So we have to do some thinking how to integrate i18n into the PTK. Should we open a wiki for it ? 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 shane@zope.org Fri Sep 15 17:05:37 2000 From: shane@zope.org (Shane) Date: Fri, 15 Sep 2000 09:05:37 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - MembershipTool.py:1.4 Message-ID: <200009151605.JAA30308@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv30298 Modified Files: MembershipTool.py Log Message: Added support for a portal_preferences tool. From bill@noreboots.com Fri Sep 15 17:47:29 2000 From: bill@noreboots.com (Bill Anderson) Date: Fri, 15 Sep 2000 10:47:29 -0600 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> Message-ID: <39C252A1.87796010@noreboots.com> Michael Bernstein wrote: ... > Note: Because membership is not reintegrated with the PTK as of yet, > joining does not create a member folder. Note: PortalMembershipSystem will not do this anyway. That would be up to either the Upcoming CommunityMembershipSystem plugin for Memebrship. This is where I part ways with how some of the PTK is going. PTK should _not_ deal with user management at all. Now doing things based on a trigger is fine, but having a member folder for content is a function that the user management item should handle, as it is part of user management, Why, you ask? Simple. What if you want a Member to be able to change their name, and not have to rename all their content, etc.? This is something CommunityMembershipSystem, will address: Usernames that are not tied one-to-one with user ids. "But in DemoPortal..." The part that has become a problem, is that people are expecting DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember to seperate the Demo from the Product. Membership is being built so that it can be used independently from the PTK. Even once PTK support has been added, it must be able to stand on it's own away from the PTK. As such, user management functions will be implemented with that it mind. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From chrism@digicool.com Fri Sep 15 20:22:25 2000 From: chrism@digicool.com (Chris McDonough) Date: Fri, 15 Sep 2000 15:22:25 -0400 Subject: [Zope-PTK] PTK and sessioning requirements Message-ID: <02c201c01f4a$479f0a20$1f48a4d8@kurtz> All, If you're at all concerned about how Zope will handle sessioning in its core, please visit http://dev.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/FrontPage . This project wants to meet the requirements of the PTK as it relates to sessioning (keeping state between requests by relating namespaces to anonymous users). I think we've done a good job separating the layers out so that the PTK can make use of an instance of a Zope "Browser ID Manager" to come up with its own session keys, but I wouldn't mind more feedback. Thanks, C From mbernstein@profitscape.com Fri Sep 15 19:20:44 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 15 Sep 2000 13:20:44 -0500 Subject: [Zope-PTK] Membership and loacl roles Message-ID: <39C2687C.FE7C1BC1@profitscape.com> Hello all, I feel that a barrier to Loginmanager and Membership becoming more generally usable for site builders is it's current lack of support for local roles. Specifically, members do not show up in the local roles screen (manage_listLocalRoles) user list. Through the magic of grep and find, I think I've identified the relevant sections of code in Zope that need to be duplicated in Membership (or maybe in LoginManager). First I tracked down what seems to be the relevant section in /lib/AccessControl/Role.py, in the section labeled 'Local roles support': def get_valid_userids(self): item=self dict={} while 1: if hasattr(aq_base(item), 'acl_users') and \ hasattr(item.acl_users, 'user_names'): for name in item.acl_users.user_names(): dict[name]=1 if not hasattr(item, 'aq_parent'): break item=item.aq_parent keys=dict.keys() keys.sort() return keys Then I tracked down the user_names attribute to /lib/AccessControl/User.py, in the section labeled 'Private UserFolder object interface': def user_names(self): return self.getUserNames() Well, that wasn't very helpful. serching a bit more and I find: def getUserNames(self): """Return a list of usernames""" names=self.data.keys() names.sort() return names Experimenting a bit, I find that a normal user folder object responds to a /acl_users/user_names URL with an error, but does respond to a /acl_users/getUserNames URL with a list of user names. And now I'm stuck. I *think* that LoginManager needs a getUserNames method that goes through the available User Sources and grabs a list of names from each, concatenating them into one big list to return. However, IANAC (I Am Not A Coder), and I don't know how to do this. If anyone can offer a cut-and-paste set of instructions to add this into Loginmanager or Membership, it would be greatly appreciated. Thanks, Michael Bernstein. From mbernstein@profitscape.com Fri Sep 15 22:03:36 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 15 Sep 2000 16:03:36 -0500 Subject: [Zope-PTK] Re: Membership and local roles Message-ID: <39C28EA8.DDF752B0@profitscape.com> I just noticed that the paths to the files I mentioned is wrong. They should be: /lib/python/AccessControl/Role.py and /lib/python/AccessControl/User.py Sorry for any confusion this may have caused. Michael Bernstein. From ralf.herold@charite.de Sat Sep 16 21:46:32 2000 From: ralf.herold@charite.de (ralf.herold@charite.de) Date: Sat, 16 Sep 2000 22:46:32 +0200 Subject: [Zope-PTK] PTK CVS install 2.2.1: Permission map error Message-ID: <810F20AC3F77D311B4690090275514A7011F31@DC-POH-W> Dear PTK developers and users, trying to import DemoPortal.zexp or Wizard.zexp is not successfull, because the errors: "Attempt to map a permission to a permission: Add Portal" and "... Add Wizard", respectively, " This should never happen Waaaa." occurr. This happens under Zope 2.2.1 (from 2.2.0 distribution with the 2.2.0-to-2.2.1 update), under Linux, with a few products installed (such as LocalFS, PythonMethods, NFGav, PMPSurvey, SiteAccess, TinyTable*, XML*, ZMySQLDA, Zpdfdocument), and following the PTK install advice (remove all directories PTKDemo, PTKBase, Wizard, ZCallable, DemoPortal; restart Zope, untar PTK snapshot 2000/09/15, cp PTKDemo/*zexp into ./import, remove DemoPortal and Wizard again; restart). Do you have an idea where to start to get this installed properly? Thanks for any hints, Yours, Ralf mailto:ralf.herold@gmx.net, Berlin From jsacks@evantage.net Sun Sep 17 22:25:01 2000 From: jsacks@evantage.net (Jsacks) Date: Sun, 17 Sep 2000 17:25:01 -0400 Subject: [Zope-PTK] looking for developers on a project ! Message-ID: hi , our company is looking to customize the current zope software into a particular e-commerce solution. if you would like to participate in this project please let us know. you can respond to this email or call 412-401-9510 thanks! From darcyc@engin.umich.edu Mon Sep 18 05:50:20 2000 From: darcyc@engin.umich.edu (Darcy Clark) Date: Mon, 18 Sep 2000 00:50:20 -0400 Subject: [Zope-PTK] PTK/LoginManager/Membership - configuring User Sources Message-ID: <001001c0212b$f2f00360$093a6c40@piii> I am currently (one of many probably) inching along towards getting PTK/LoginManager/Membership working and wondered if somebody could point me in the right direction to get the pieces working together. I have installed the PTK, made a portal. I then replaced the acl_users in the portal directory with a loginmanager. Then I added a Portal Membership System, which seemed to replace a bunch of methods and added a bunch of new ones. Looking at my portal [http://entity.ummu.umich.edu:8080/portal] I now get the nice login dialog when I login but it doesn't work. I figure I most likely need to install a usersource. From this howto [http://www.zope.org/Members/jok/SQL_based_LoginManager] I stole some methods that seem to be the sort of thing I would need to link the login process to a database (in my case a MySQL user table). I put them, as listed below, into my persistant user source. But I am not sure how to link these new methods in my usersource back to my login form. Here is the list of contents from my usersource : MySQL_database_connection (Z MySQL Database Connection) SQL_change_password SQL_check_user SQL_get_password SQL_get_roles userAuthenticate userExists userRoles I have no idea whether these are the correct method names that the loginmanager is looking for to authenticate. Does anyone have any pointers on this ? Also I now have 2 login forms - one in the root of the portal folder and the other in the acl_users folder. Which is the one that I need to edit ? I say edit because I see this line in both of them :
Hello all,

I am relatively new in using Zope and the PTK.

Situation:

  1. I have created a portal ".../arc/europe".
  2. I have one member "..../europe/Members/robk"
I suppose I should be able to reach the member using URL "
http://....../europe/members/robk"

However, this does not work. I get the following error: "Resource not found" (Below the Trace back is given).

When I use the URL "http://....../europe/Members/robk/index_html/index_html"

Maybe relevant is that

  1. I have copied the portal to another place.
  2. I have changed the layout of the portal/
Thanks,
Rob

Traceback (innermost last):
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\PROGRA~1\Zope-2\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\Publish.py, line 173, in publish
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\HTTPResponse.py, line 308, in setBody
  File C:\PROGRA~1\Zope-2\lib\python\ZPublisher\HTTPResponse.py, line 529, in notFoundError
NotFound: (see above)
  --------------265C1841ABE767AEFD4DFDF6-- --------------AFC8F376445018F405414E13 Content-Type: text/x-vcard; charset=us-ascii; name="Rob.van.der.Krogt.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Rob van der Krogt Content-Disposition: attachment; filename="Rob.van.der.Krogt.vcf" begin:vcard n:van der Krogt;Rob tel;fax:+31(0)78-6413194 tel;work:+31(0)78-6441441 x-mozilla-html:TRUE org:Aggreko Europe adr:;;Ketelweg 77;Papendrecht;;3356 LD;Nederland version:2.1 email;internet:Rob.van.der.Krogt@aggreko.nl title:IT Development Manager x-mozilla-cpt:;-7776 fn:Rob van der Krogt end:vcard --------------AFC8F376445018F405414E13-- From bill@noreboots.com Mon Sep 18 17:37:42 2000 From: bill@noreboots.com (Bill Anderson) Date: Mon, 18 Sep 2000 10:37:42 -0600 Subject: [Zope-PTK] Resource name incorrectly reproduced References: <39C629D3.127E7425@aggreko.nl> Message-ID: <39C644D6.AAD94B5E@noreboots.com> Rob van der Krogt wrote: > > Hello all, > > I am relatively new in using Zope and the PTK. > > Situation: > > 1. I have created a portal ".../arc/europe". > 2. I have one member "..../europe/Members/robk" > > I suppose I should be able to reach the member using URL > "http://....../europe/members/robk" ^^^ Remember, URLs are case sensitive. That should be a capital 'M' at the start of Members -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From tseaver@digicool.com Mon Sep 18 22:13:29 2000 From: tseaver@digicool.com (Tres Seaver) Date: Mon, 18 Sep 2000 17:13:29 -0400 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <39C68579.75B83023@digicool.com> Bill Anderson wrote: > > Michael Bernstein wrote: > ... > > Note: Because membership is not reintegrated with the PTK as of yet, > > joining does not create a member folder. > > Note: > PortalMembershipSystem will not do this anyway. That would be up to > either the Upcoming CommunityMembershipSystem plugin for Memebrship. > > This is where I part ways with how some of the PTK is going. PTK should > _not_ deal with user management at all. Now doing things based on a > trigger is fine, but having a member folder for content is a function > that the user management item should handle, as it is part of user > management, Why, you ask? Simple. What if you want a Member to be able > to change their name, and not have to rename all their content, etc.? > This is something CommunityMembershipSystem, will address: Usernames > that are not tied one-to-one with user ids. The intent of the recent re-architecting was to make it possible to supply different policies for things like member-folder creation/lookup, simply by replacing the tool which implements that policy with another, behind the same interface. We are actively planning for several such changes for an ongoing consulting project: * Multiple portals on a site sharing a single authentication source; * Deferred creation of member folders; * Addition of roles via "incremental registration" (as you need the permissions for a new role, you supply the data which the portal wants in exchange for the role). All of these changes will be focused in the 'portal_membership' object (perhaps also the 'portal_registration' one); the key is to find the right separation points and interfaces, e.g., so that replacing the membership system for the portal has zero impact on the code for the content objects. > "But in DemoPortal..." > The part that has become a problem, is that people are expecting > DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember > to seperate the Demo from the Product. We see the "Demo" as performing several key functions (note that these are goals, not claims): * document the intent of the framework, by providing working implementations of its interfaces; * provide an "out-of-the-box" useful implementation; people should be able to do useful stuff with the PTK without having to implement dozens of interfaces; they can then replace piecemeal the bits which don't quite work as they like; * force the development to stay at least somewhat grounded (i.e., if we can't come up with a reasonable default implementation for and interface, then what good is it?) > Membership is being built so that it can be used independently from the > PTK. Even once PTK support has been added, it must be able to stand on > it's own away from the PTK. As such, user management functions will be > implemented with that it mind. Sounds great! Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From webmaven@lvcm.com Tue Sep 19 02:48:55 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Mon, 18 Sep 2000 18:48:55 -0700 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> Message-ID: <39C6C607.F9562338@lvcm.com> I figured out how to get this to work (finally). In the acl_users LM, add the following two Python methods: - getUserNames ------------------------------------- Parameter List: self Body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names ---------------------------------------------------- - user_names --------------------------------------- Parameter List: self Body: return self.getUserNames() ---------------------------------------------------- And whatever users or members you've got that are stored persistently within the User Source will appear in the local roles screen (manage_listLocalRole). Preliminary tests show that local roles defined for LoginManager/Membership users work just as expected. Thanks to Bill Anderson for pointing out the difference between returning a list of objects and a list of names, which was the critical bug in the getUserNames method. Michael Bernstein. From pje@telecommunity.com Tue Sep 19 17:30:29 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Tue, 19 Sep 2000 11:30:29 -0500 Subject: [Zope-PTK] ZPatterns 0.4.2a3 bug fix release In-Reply-To: <200009141756.KAA12267@zope.codeit.com> References: <39C0FF4A.5080100@cat-box.net> <20000914143407.EE5A4266EC@sushi.cat-box.net> <200009141554.IAA10649@zope.codeit.com> Message-ID: <3.0.5.32.20000919113029.016eb100@telecommunity.com> ZPatterns 0.4.2 alpha 3 is now available. It fixes all bugs that I know of at the present time (both reported on the lists and found during our own usage/testing), and adds one feature: a decent sized screen for editing SkinScript! This release does not yet have the overhaul of transaction handling that I'm planning for a future release (probably 0.4.3). So the use of subtransactions in the same transaction where DataSkins are being manipulated is still potentially problematic if more than one subtransaction commit occurs, or a (sub)transaction is aborted. From mbernstein@profitscape.com Tue Sep 19 18:45:37 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 19 Sep 2000 12:45:37 -0500 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> <39C6C607.F9562338@lvcm.com> Message-ID: <39C7A641.43D9BC2B@profitscape.com> Michael Bernstein wrote: > > I figured out how to get this to work (finally). > > In the acl_users LM, add the following two Python methods: Well, I discovered another problem: For some reason, when I create a PortalMembership member, add the two Python methods as I described earlier, and use the local roles screen to give them a role, they are subsequently authenticated regardless of whether their password is correct. Here's an example illustrating the bug: - Create a new folder /hello - Add a PortalMembership System - Add the user_names and getUsernames Python Methods - Use the joinForm to add a new member 'testuser' - Create a subfolder /hello/hello2 - Go to the hello2 local roles screen, and add a manager local role for testuser - Exit your browser, and restart it. - Go to /hello/hello2/manage - You are presented with the PortalMembership loginForm - login as testuser, but leave the password field blank - You will be authenticated anyway, and see the management interface Note that logging in using a non-existent username does not work, the only problem seems to be that it ignores the password. Any ideas? Michael Bernstein. From scott@launchpoint.net Tue Sep 19 22:27:46 2000 From: scott@launchpoint.net (Scott Burton) Date: Tue, 19 Sep 2000 14:27:46 -0700 Subject: [Zope-PTK] Date Question Message-ID: OK, I have searched everywhere for the answer to this. It is quite simple but I can't seem to figure it out. All I want to do is iterate over cataloged objects() and only show items who's bobobase_modification_date matches today's date. I just can't figure out how to set the fmt="%d" in an if tag. TIA Scott B. From matsuda-toshio@fujielectric.co.jp Wed Sep 20 09:53:25 2000 From: matsuda-toshio@fujielectric.co.jp (Toshio Matsuda) Date: Wed, 20 Sep 2000 17:53:25 +0900 (LMT) Subject: [Zope-PTK] Date Question In-Reply-To: References: Message-ID: <20000920175325N.matsuda-toshio@fujielectric.co.jp> Hi, >>>>> Date: Tue, 19 Sep 2000 14:27:46 -0700 >>>>> Subject: [Zope-PTK] Date Question >>>>> MsgId: >>>>> scott@launchpoint.net(Scott Burton) said: > > OK, I have searched everywhere for the answer to this. It is quite simple > but I can't seem to figure it out. All I want to do is iterate over > cataloged objects() and only > show items who's bobobase_modification_date matches today's date. > I just can't figure out how to set the fmt="%d" in an if tag. The following page is good for you. http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching I usually compare the date against today as follows: -- Toshio Matsuda From mtaylor@goldridge.net Wed Sep 20 14:42:05 2000 From: mtaylor@goldridge.net (Monty Taylor) Date: Wed, 20 Sep 2000 15:42:05 +0200 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <39C8BEAD.1D273A77@goldridge.net> Hey guys, To implement this, (Membership providing user folders), why don't we make a User object inherit from Folder as well and make a Member his own member folder? That makes for a simple , and would make for a simple system of separating Portal functionality from Membership. I think it should help the problem of having one user source and multiple portals. Conceivably, one would want one's content to follow them around? Or am I off my rocker? The one problem I could see with this is the implementation of a RDBMS backed data-source. Comments? Monty Bill Anderson wrote: > Michael Bernstein wrote: > ... > > Note: Because membership is not reintegrated with the PTK as of yet, > > joining does not create a member folder. > > Note: > PortalMembershipSystem will not do this anyway. That would be up to > either the Upcoming CommunityMembershipSystem plugin for Memebrship. > > This is where I part ways with how some of the PTK is going. PTK should > _not_ deal with user management at all. Now doing things based on a > trigger is fine, but having a member folder for content is a function > that the user management item should handle, as it is part of user > management, Why, you ask? Simple. What if you want a Member to be able > to change their name, and not have to rename all their content, etc.? > This is something CommunityMembershipSystem, will address: Usernames > that are not tied one-to-one with user ids. > > "But in DemoPortal..." > The part that has become a problem, is that people are expecting > DemoPortal to _be_ the PTK. It isn't, nor should it. We have to remember > to seperate the Demo from the Product. > > Membership is being built so that it can be used independently from the > PTK. Even once PTK support has been added, it must be able to stand on > it's own away from the PTK. As such, user management functions will be > implemented with that it mind. > > -- > Do not meddle in the affairs of sysadmins, for they are easy to annoy, > and have the root password. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From pje@telecommunity.com Wed Sep 20 14:52:21 2000 From: pje@telecommunity.com (Phillip J. Eby) Date: Wed, 20 Sep 2000 08:52:21 -0500 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) In-Reply-To: <39C8BEAD.1D273A77@goldridge.net> References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> Message-ID: <200009201352.GAA12299@zope.codeit.com> At 03:42 PM 9/20/00 +0200, Monty Taylor wrote: > >The one problem I could see with this is the implementation of a RDBMS backed >data-source. Actually, with the latest version of ZPatterns, you could handle even that. All you would need is to use a "Persistent External Attribute Provider" set to handle all attributes not handled by the RDBMS. The folder data would then be stored in the ZODB. However, on the subject of whether you *should* do this, I'm inclined to think that a "member folder" is a relationship object between a portal and the user object, and thus is per-portal per-user, not simply per-user. However, it is also reasonable IMHO, to have a Member (User derivative object) implement a "getMemberFolder" method, which you can override as you see fit in your situation. From chrisw@nipltd.com Wed Sep 20 16:13:29 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 20 Sep 2000 16:13:29 +0100 Subject: [Zope-PTK] Members as Folders References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> <39C8BEAD.1D273A77@goldridge.net> Message-ID: <39C8D419.1E1AAE09@nipltd.com> Monty Taylor wrote: > To implement this, (Membership providing user folders), why don't we make a User > object inherit from Folder as well and make a Member his own member folder? > Or am I off my rocker? You're off your rocker ;-) Okay, seriously, making user object inherit from folders 1. locks people into having a member folder for each user. That may not be the case... 2. forces all the member folders to exist in acl_users, maybe not a good thing This lack of flexibility, IMHO, is a Pretty Bad Thing (tm) cheers, Chris From bill@noreboots.com Wed Sep 20 17:36:11 2000 From: bill@noreboots.com (Bill Anderson) Date: Wed, 20 Sep 2000 10:36:11 -0600 Subject: [Zope-PTK] Integrating Membership with SMBUserFolder (was: [Zope-PTK] Integratingzope portal toolkit and ntuserfolder)zope portal toolkit and ntuserfolder) References: <39C113CF.EF2804CF@profitscape.com> <39C252A1.87796010@noreboots.com> <39C8BEAD.1D273A77@goldridge.net> Message-ID: <39C8E77B.B4356072@noreboots.com> Monty Taylor wrote: > > Hey guys, > > To implement this, (Membership providing user folders), why don't we make a User > object inherit from Folder as well and make a Member his own member folder? That > makes for a simple , and would make for a > simple system of separating Portal functionality from Membership. I think it should > help the problem of having one user source and multiple portals. Conceivably, one > would want one's content to follow them around? Or am I off my rocker? > The one problem I could see with this is the implementation of a RDBMS backed > data-source. > Comments? > Monty Monty, there are several problems with this idea. Here are three of them. One: User to Username mapping. If the username is the member's folder, handling username changes gets very difficult. You have to change the userfolder's id. Once you do this, all links that pointed to the old data are now broken. Two: Not all portals want members to have folders. See my wiki on this for details. Three: This would make the folder url into: http://your.portal.com/acl_users/Membername this is neither desirable, nor acceptable. Membership does not have any portal functionality, so there is no need to seperate it. Membership provides Member capability, and management. The Membership wiki has more details. -- E PLURIBUS LINUX From mbernstein@profitscape.com Wed Sep 20 18:55:57 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Wed, 20 Sep 2000 12:55:57 -0500 Subject: [Zope-PTK] Informal Poll Message-ID: <39C8FA2D.46D73C04@profitscape.com> Hello all, I've been struggling with some Loginmanager/Membership issues, and was wondering if my concerns were unique. I feel that it's important for LoginManager to interoperate with the rest of Zope's security machinery. Specifically, Members/Users in LoginManager User Sources need to be listed (or be capable of being listed) in the local roles interface. The reason I feel this is important, is to make it possible to easily delegate control of an area of the site to a member stored in a LoginManager. Currently, I've gotten to the point where members are listed in the local roles interface, and I can create local roles for members. I have run into what appears to be a security bug, described here: http://lists.zope.org/pipermail/zope-ptk/2000-September/001722.html Anyway, I figured I'd ask and see if this concerns anyone else. So please respond to the list or privately (but not both, please), and I'll summarize to the list. How important is it for you to be able to assign local roles to users stored in User Sources using the local roles interface? 5 - Critical/Immediate need 4 - Very Important 3 - Important 2 - Not Very Important 1 - Not Important At All 0 - You're Nuts! Thanks, Michael Bernstein. P.S. If I don't get enough responses, I'll probably repost this to zope-dev. From phil.harris@zope.co.uk Tue Sep 19 20:56:12 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Tue, 19 Sep 2000 20:56:12 +0100 Subject: [Zope-PTK] Informal Poll References: <39C8FA2D.46D73C04@profitscape.com> Message-ID: <005201c02273$bd1e0ae0$248fbcd4@harrisf4scs8le> 5 ----- Original Message ----- From: "Michael Bernstein" To: Sent: Wednesday, September 20, 2000 6:55 PM Subject: [Zope-PTK] Informal Poll > Hello all, > > I've been struggling with some Loginmanager/Membership issues, and was > wondering if my concerns were unique. > > I feel that it's important for LoginManager to interoperate with the > rest of Zope's security machinery. Specifically, Members/Users in > LoginManager User Sources need to be listed (or be capable of being > listed) in the local roles interface. > > The reason I feel this is important, is to make it possible to easily > delegate control of an area of the site to a member stored in a > LoginManager. > > Currently, I've gotten to the point where members are listed in the > local roles interface, and I can create local roles for members. > > I have run into what appears to be a security bug, described here: > http://lists.zope.org/pipermail/zope-ptk/2000-September/001722.html > > Anyway, I figured I'd ask and see if this concerns anyone else. So > please respond to the list or privately (but not both, please), and I'll > summarize to the list. > > How important is it for you to be able to assign local roles to users > stored in User Sources using the local roles interface? > > 5 - Critical/Immediate need > 4 - Very Important > 3 - Important > 2 - Not Very Important > 1 - Not Important At All > 0 - You're Nuts! > > Thanks, > > Michael Bernstein. > > P.S. If I don't get enough responses, I'll probably repost this to > zope-dev. > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From anderson@boi.hp.com Wed Sep 20 22:17:05 2000 From: anderson@boi.hp.com (Bill Anderson) Date: Wed, 20 Sep 2000 15:17:05 -0600 Subject: [Zope-PTK] Security Release: Membership 0.7.6 Message-ID: <39C92951.58376BE4@boi.hp.com> This is a security fix release. Membership 0.7.5 had an annoyingly nasty security bug. This bug has been fixed, and is the only change in this release. It is *strongly* recommended you NOT use anything prior to this release. To Upgrade from 0.7.5: o Untar the release file in your ZOPE_HOME. o Restart Zope The changes are in PersistentUserSource.py, and are minor, so the upgrade should go smoothly. This is in relation to 0.7.5. -- Bill Anderson (ARC) Unix/Linux System Administrator LTDS Team Tuesday, September 19, 2000 Random Quote: This tag is invisible to anyone with a higher IQ than me. From erickson@kaivo.com Thu Sep 21 02:45:50 2000 From: erickson@kaivo.com (Paul Erickson) Date: Wed, 20 Sep 2000 19:45:50 -0600 Subject: [Zope-PTK] Wizard ZClass and field Validation Message-ID: <39C9684E.A34BD9DF@kaivo.com> I've been playing with the Wizard Product that comes with the PTK. It's pretty handy, except that it looks like the final WizardPage in a Wizard does not get validated like the rest of the pages do. Is this by design (ie: the last page should always be "You're done, press the Finish button to create the object"), or was it an oversight? I think that if there was a 'wizard_finish', like 'wizard_next' and 'wizard_back', then it would be able to validate the final page before calling the wizard_action method. -Paul From tseaver@digicool.com Thu Sep 21 04:55:26 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 20 Sep 2000 23:55:26 -0400 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> Message-ID: <39C986AE.9B7EFEBE@digicool.com> Bill Anderson wrote: > > This is a security fix release. > > Membership 0.7.5 had an annoyingly nasty security bug. This bug has > been fixed, and is the only change in this release. It is *strongly* > recommended you NOT use anything prior to this release. > > To Upgrade from 0.7.5: > o Untar the release file in your ZOPE_HOME. > o Restart Zope > > The changes are in PersistentUserSource.py, and are minor, so the > upgrade should go smoothly. This is in relation to 0.7.5. Is this upgrade by any chance related to the problem Michael Bernstein reported with local roles? He wrote: > For some reason, when I create a PortalMembership member, add the two > Python methods as I described earlier, and use the local roles screen to > give them a role, they are subsequently authenticated regardless of > whether their password is correct. I don't know the Membership product well enough to figure out whether these two are related. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From bill@noreboots.com Thu Sep 21 06:07:02 2000 From: bill@noreboots.com (Bill Anderson) Date: Wed, 20 Sep 2000 23:07:02 -0600 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> <39C986AE.9B7EFEBE@digicool.com> Message-ID: <39C99776.B74CAED4@noreboots.com> Tres Seaver wrote: > > Bill Anderson wrote: > > > > This is a security fix release. > > > > Membership 0.7.5 had an annoyingly nasty security bug. This bug has > > been fixed, and is the only change in this release. It is *strongly* > > recommended you NOT use anything prior to this release. > > > > To Upgrade from 0.7.5: > > o Untar the release file in your ZOPE_HOME. > > o Restart Zope > > > > The changes are in PersistentUserSource.py, and are minor, so the > > upgrade should go smoothly. This is in relation to 0.7.5. > > Is this upgrade by any chance related to the problem Michael Bernstein > reported with local roles? Sort of. > He wrote: > > > For some reason, when I create a PortalMembership member, add the two > > Python methods as I described earlier, and use the local roles screen to > > give them a role, they are subsequently authenticated regardless of > > whether their password is correct. > > I don't know the Membership product well enough to figure out whether > these two are related. It is in part the authenticateUser mehtod in LoginManager. I know, because I duplicated it in Membership (copy->past) to test. Moreover, it manifests itself only on some OSes. For example, the code in LoginManager (UserSource.py ?) works fine on Linux. Passwords are stored encrypted, and are properly compared. On HPUX, it does not work, and apparently neither does it work on Solaris (which is what MB is running on). It seems to be related to the crypt functions functioning part-time, though beyond that I haven't found much more to go on. I do have workarounds for HPUX and Solaris, but they involve modifying the code to PersistenUserSource.py in Membership, to account for the lack of the encryption. Specifically, to ignore all attempts to encrypt anything. I'd rather be able to figure out _why_ it doesn't work as it should. -- E PLURIBUS LINUX From chrism@digicool.com Thu Sep 21 08:09:05 2000 From: chrism@digicool.com (Chris McDonough) Date: Thu, 21 Sep 2000 03:09:05 -0400 Subject: [Zope-PTK] RFC re: ApplicationObject proposal Message-ID: <39C9B411.636B1179@digicool.com> The proposal at http://dev.zope.org/Wikis/DevSite/Proposals/ApplicationObject may have much synergy with the intent of the PTK. It defines some requirements for implementing a generic "application" object, which if generally deployed should be mixed in to the PTK. Please comment if possible! Thanks, -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From nichols@tradingconnections.com Thu Sep 21 15:48:11 2000 From: nichols@tradingconnections.com (Dennis Nichols) Date: Thu, 21 Sep 2000 09:48:11 -0500 Subject: [Zope-PTK] Security Release: Membership 0.7.6 In-Reply-To: <39C92951.58376BE4@boi.hp.com> Message-ID: <4.3.2.7.2.20000921094153.00bbedb0@tradingconnections.com> At 9/20/00 03:17 PM, Bill Anderson wrote: >Membership 0.7.5 had an annoyingly nasty security bug. This bug has >been fixed, and is the only change in this release. It is *strongly* >recommended you NOT use anything prior to this release. Does this indicate a lessening of the warning that appears on the Membership product page? "This is Beta!! Important info: This is at an early stage at this point. You should not consider using it for anything production!" -- Dennis Nichols nichols@tradingconnections.com From mbernstein@profitscape.com Thu Sep 21 15:17:36 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Thu, 21 Sep 2000 09:17:36 -0500 Subject: [Zope-PTK] Security Release: Membership 0.7.6 References: <39C92951.58376BE4@boi.hp.com> <39C986AE.9B7EFEBE@digicool.com> <39C99776.B74CAED4@noreboots.com> <39C9A54F.F1E49650@lvcm.com> Message-ID: <39CA1880.8B76C979@profitscape.com> Michael Bernstein wrote: > > Bill Anderson wrote: > > > > I do have workarounds for HPUX and Solaris, but they involve modifying > > the code to PersistenUserSource.py in Membership, to account for the > > lack of the encryption. Specifically, to ignore all attempts to encrypt > > anything. > > Bill, > > while the fix for Solaris works for the generic > LM/Membership, it circumvents the userAuthenticate method of > the User Source, and compares the submitted password with > the stored password directly. That method is the one that > I'm overriding using a Python method to call the SMB > authentication code instead. > > I didn't notice at first because I was testing with a user > that had been added to the User Source early on, before I > stopped the register method fronm stuffing the password into > the user object. > > > I'd rather be able to figure out _why_ it doesn't work as it should. > > Me too. I think I've found why the original 0.7.6 membership was failing with my SMB authentication modifications: if hasattr(self, 'userAuthenticate'): ^^^^^^^ The userAuthenticate method that I'm adding is a Python method dropped into the User Source, and I suspect that the Python method is not being picked up as an attribute of the object because it's not defined in the PersistentUserSource.py file itself. old_au = setuid(self.REQUEST, _LoggingInUser) try: ok = self.userAuthenticate( self, request, user=user, password=password) finally: setuid(self.REQUEST, old_au) else: encpw = user.propertysheets.SystemProperties.password ok = self.comparePassword(password, encpw) So, I suspect that the only reason that this else clause is being called (and failing because of the platform dependency) is because of the userAuthenticate method's 'invisibility'. Does this seem resonable, or do I misunderstand the operation of 'hasattr'? Michael Bernstein. From zopist@matrixware.at Fri Sep 22 14:00:21 2000 From: zopist@matrixware.at (zopist@matrixware.at) Date: Fri, 22 Sep 2000 15:00:21 +0200 Subject: [Zope-PTK] Cannot import DemoPortal.zrxp Message-ID: <200009221300.PAA28833@localhost.localdomain> This is a multi-part message in MIME format. ----------969627621 Content-Type: text/plain Content-Transfer-Encoding: 7bit Dear zopists, i just upgraded my Server to 2.2.2 and the PTK to 0.8.2 everything went fine till the point when i wanted to import the Demoportal.zexp the first message was that the oid is in use ... so i deleted it from the Products Folder in the Control Pannel i then restarted Zope and got the following error while trying again to import Error Type: Could not load oid Í, pickled data in traceback info may contain clues Error Value: None i then switched back to the prior versions, both Zope & PTK but the problem persisted ... can it be possible that some information about the OID used might have persisted in the ODB? when i try to create a product named DemoPortal in the ControlPannel/Products it just works fine ...hmmm has anyone a clue? i would really appreciate some urgent help as a production machine is concerned. i thank you all in advance Francisco Webber _____________________________________________________________________________ Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 526, in manage_importObject (Object: Traversable) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 278, in _setObject (Object: Traversable) File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd (Object: Traversable) File /usr/local/zope/lib/python/ZClasses/ZClass.py, line 421, in manage_afterAdd (Object: Portal) File /usr/local/zope/lib/python/ZClasses/ZClass.py, line 374, in _register (Object: Portal) File /usr/local/zope/lib/python/ZODB/Connection.py, line 447, in setstate File /usr/local/zope/lib/python/ZODB/Connection.py, line 213, in _persistent_load (Info: Í) File /usr/local/zope/lib/python/ZODB/Connection.py, line 154, in __getitem__ (Info: ('\000\000\000\000\000\000\034\315', '(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\034\320q\022(NU\010\000\000\000\000\000\000\034\314q\023Qtq\024tq\025QU\012index_htmlq\026cZClasses.Method\012MW\012q\027NRq\030}q\031U$_ZClassMethodPermissionMapperMethod_q\032(U\010\000\000\000\000\000\000\034\321q\033(U\016OFS.DTMLMethodq\034cOFS.DTMLMethod\012DTMLMethod\012q\035tq\036tq\037QsbU\016manage_optionsq (}q!(U\005labelq"U\012Propertiesq#U\006actionq$U\025manage_propertiesFormq%u}q&am! p;(U\005labelq\'U\010Securityq(U\006actionq)U\015manage_accessq*u}q+(h\'U\004Viewq,h)U\012index_htmlq-utq.U\012ziconImageq/(U\010\000\000\000\000\000\000\034\322q0(U\011OFS.Imageq1cOFS.Image\012Image\012q2tq3tq4QU\022__ac_permissions__q5)U\011_p_serialq6U\010\0030\226a\274;\204\314q7U\012__module__q8U\031*73biqpAI2QDa2iKPitv57g==q9utq:t.N.')) Could not load oid Í, pickled data in traceback info may contain clues: (see above) --> ----------969627621-- From webmaven@lvcm.com Sat Sep 23 07:50:42 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Fri, 22 Sep 2000 23:50:42 -0700 Subject: [Zope-PTK] Poll results, and local roles fix Message-ID: <39CC52C2.21A6753D@lvcm.com> Hi all, Well the results from my 'local roles' poll were interesting. Only five people responded, but three gave it a '5 - Critical/Immediate Need' and two gave it a '4 - Very Important' rating. Apparently, no one who didn't care about the issue even bothered to respond. Meanwhile, The situation has been largely resolved. First, the User Source needs to support a getUserNames method. This can be done two ways: You can add a Python method to the LoginManager named getUserNames that takes a 'self' parameter, and has the following body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Or you can add the following code directly to the PersistentUserSource.py file, preferably right befor or after the getUsers method: def getUserNames(self): user_ids=self.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Next we need to provide a user_names method in the LoginManager. Currently I only have a Python method to drop in to the LM. it takes a 'self' parameter, and has the following body if it's calling another Python method: return self.getUserNames() Or if you're calling the method in PersistentUserSource.py, it has this body: return self.UserSource.getUserNames() Note that this user_names method has some disadvantages, and it needs to be generalized to deal with multiple User Sources that aren't all named UserSource, and that may not all implement the getUserNames interface, and that may have duplicate user names in them. Suggestions on how to do this would be welcome. Note that the current PortalMembership (0.7.6) has a platform dependent bug that breaks password authentication on Solaris and HPUX (possibly other Unices as well), but works perfectly fine under Linux. According to Bill Anderson, it has to do with the crypt module. I hope that this little set of instructions helps others who are trying to integrate LM with the existing security interface and local roles. Comments, testing, and improvements would be welcomed. HTH, Michael Bernstein. From webmaven@lvcm.com Sat Sep 23 16:33:09 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Sat, 23 Sep 2000 08:33:09 -0700 Subject: [Zope-PTK] Re: [Zope-dev] Membership and Local Roles References: <39C62471.1F77C38B@profitscape.com> <39C6528C.7050706@cat-box.net> <39C68AFB.A4E2E97C@profitscape.com> <39C691E9.C3D03C38@profitscape.com> <39C6C607.F9562338@lvcm.com> <39C7A641.43D9BC2B@profitscape.com> Message-ID: <39CCCD35.7C4BF2D8@lvcm.com> Michael Bernstein wrote: > > Michael Bernstein wrote: > > > > I figured out how to get this to work (finally). > > > > In the acl_users LM, add the following two Python methods: > > Well, I discovered another problem: > > For some reason, when I create a PortalMembership member, add the two > Python methods as I described earlier, and use the local roles screen to > give them a role, they are subsequently authenticated regardless of > whether their password is correct. > > Here's an example illustrating the bug: > > [snip example] This password problem is fixed with Bill Andersons new release of Membership 0.7.6, so the local roles fix now works generally. There is still a platform dependent password problem with Membership though. It affects Solaris and HPUX (possibly other unices) but not Linux, and has to do with the crypt module not being loaded correctly on those platforms, causing passwords to be encrypted omly part of the time. Here is the fix for local roles: First, the User Source needs to support a getUserNames method. This can be done two ways: You can add a Python method to the LoginManager named getUserNames that takes a 'self' parameter, and has the following body: user_ids=self.UserSource.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names Or you can add the following code directly to the PersistentUserSource.py file, preferably right befor or after the getUsers method: def getUserNames(self): user_ids=self.getPersistentItemIDs() names=[] for i in user_ids: names.append(i) return names (I hope this will get included in future versions of Membership) Next we need to provide a user_names method in the LoginManager. Currently I only have a Python method to drop in to the LM. it takes a 'self' parameter, and has the following body if it's calling another Python method: return self.getUserNames() Or if you're calling the method in PersistentUserSource.py, it has this body: return self.UserSource.getUserNames() Note that this user_names method has some disadvantages, and it needs to be generalized to deal with multiple User Sources that aren't all named UserSource, and that may not all implement the getUserNames interface, and that may have duplicate user names in them. Suggestions on how to do this would be welcome. I hope that this little set of instructions helps others who are trying to integrate LM with the existing security interface and local roles. Comments, testing, and improvements would be welcomed. HTH, Michael Bernstein. From chrisw@nipltd.com Tue Sep 26 09:08:55 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 26 Sep 2000 09:08:55 +0100 Subject: [Zope-PTK] Replaceable Properties (was Re: [Zope-dev] Testing Zope applications) References: <002401c0234a$45567560$ae03a8c0@fork> <20000920174953.B22496@ludwig.cnri.reston.va.us> <39C9349C.470F506D@digicool.com> <20000921082340.A23444@ludwig.cnri.reston.va.us> <4o0kssguc0uo9f0i8ev2uba5mjs7ppc1lt@4ax.com> <20000921142409.A19267@newcnri.cnri.reston.va.us> <029401c02401$5aa899e0$1f48a4d8@kurtz> <20000922195411.B8267@newcnri.cnri.reston.va.us> <39CF4D24.6B4769EE@digicool.com> <39CF8031.B87DBDDB@digicool.com> Message-ID: <39D05997.E8445F8C@nipltd.com> Jim Fulton wrote: > 2. There will be a new interface in Zope 2.3 that will allow > you to prevent a name from being used lower in a containement > hierarchy. This change is documented at: > http://dev.zope.org/Wikis/DevSite/Proposals/ReplaceableProperty. > The work has already been done and checked into CVS. I've asked Shane, > the author, to update the interfaces wiki to capture this change. Does the PTK use this interface? Will it? If so, what for? What CVS branch is it checked in under? cheers, Chris From mbernstein@profitscape.com Tue Sep 26 16:08:12 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 26 Sep 2000 10:08:12 -0500 Subject: [Zope-PTK] loginManager and Local Roles Message-ID: <39D0BBDC.635A1CB6@profitscape.com> Hi all, Has anyone tried my local roles fix? http://lists.zope.org/pipermail/zope-ptk/2000-September/001739.html I'd like to hear from anyone who's tried it, successfully or not. Michael Bernstein. From tseaver@digicool.com Tue Sep 26 18:06:10 2000 From: tseaver@digicool.com (Tres Seaver) Date: Tue, 26 Sep 2000 13:06:10 -0400 (EDT) Subject: [Zope-PTK] PTK Status, PE 2000/09/25 Message-ID: State of the PTK, 2000/09/21 In the weeks since our last report, the PTK community has been rather quiet: * The issue of integrating the PTK membership system with external authentication sources (especially NT/SMB authentication) is near and dear to many folks' hearts. - Bill Anderson announced a "security fix release", http://www.zope.org/Members/Bill/Products/Membership to the Membership product; Membership is an "ease-of-use" layer on top of the LoginManager/ZPatterns products, and has not yet been re-integrated with the PTK. - Michael Bernstein has worked out the details of using LoginManger and Membership to create a portal authenticated against SMB including "getting local roles to work", http://lists.zope.org/pipermail/zope-ptk/2000-September/001740.html - Phillip Eby released "version 0.4.2a3 of ZPatterns", http://lists.zope.org/pipermail/zope-ptk/2000-September/001721.html * Shane Hathaway added "support for a portal_preferences tool", http://lists.zope.org/pipermail/zope-ptk/2000-September/001709.html which will allow the portal to store data about a member separately from the user object provided by the authentication machinery. * Chris McDonough has created a "proposal", http://dev.zope.org/Wikis/DevSite/Proposals/ApplicationObject for "Application Objects" in Zope; he is asking the PTK community for feedback. * Tres Seaver "added back the constructor form", http://lists.zope.org/pipermail/zope-ptk/2000-September/001695.html for PortalFolders. * Shane Hathaway fixed a two bugs reported by Andy Dawkins: - one in which "Discussion replies were created private", http://lists.zope.org/pipermail/zope-ptk/2000-September/001610.html - another in which unchanged passwords were "mysteriously set to None", http://lists.zope.org/pipermail/zope-ptk/2000-September/001671.html * Several "open questions" were raised on the list: - Joachim Schmitz asked "is there anybody working on a multilingual PTK?", http://lists.zope.org/pipermail/zope-ptk/2000-September/001708.html - Jerry Spicklemire prompted, "How does an Owner delegate, or assign an Alternate?", http://lists.zope.org/pipermail/zope-ptk/2000-September/001651.html for workflow purposes. Our goal for the coming week is to release version 0.9 of the PTK. PTK Tracker Vitals, 2000/09/04 (since 2000/09/04) Here is is the current state of the tracker:: Type / Status New Closed Current Bug Reports 2 1 27 Feature/Doc Requests 0 0 14 -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From mbernstein@profitscape.com Tue Sep 26 20:20:22 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Tue, 26 Sep 2000 14:20:22 -0500 Subject: [Zope-PTK] Member Roster for Membership Message-ID: <39D0F6F6.DCC78345@profitscape.com> I swiped some code out of the ManageMembers method in Membership, and I'm trying to implement a functional member roster as the index_html of a 'members' folder. the code fragment in question is this: (&dtml-getUserName;) (&dtml-getUserName;) I want the to test for the existence of a folder (contained within /members) that has an identical id as the member. That way this will display a link only if they have a folder. Any help to do this would be appreciated. Thanks, Michael Bernstein. From bill@libc.org Tue Sep 26 22:39:24 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 26 Sep 2000 15:39:24 -0600 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> Message-ID: <39D1178C.D535382E@libc.org> Michael Bernstein wrote: > > I swiped some code out of the ManageMembers method in Membership, and > I'm trying to implement a functional member roster as the index_html of > a 'members' folder. > > the code fragment in question is this: > > > > > > > (&dtml-getUserName;) > > (&dtml-getUserName;) > > > > > > I want the to test for the existence of a folder (contained > within /members) that has an identical id as the member. That way this > will display a link only if they have a folder. hmmm .... how about (UNTESTED!!!): Like I said, untested, but something along those lines should work ... I think (ugh, I hate colds....). -- E PLURIBUS LINUX From neeloy_saha@infy.com Wed Sep 27 09:52:02 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 27 Sep 2000 14:22:02 +0530 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results from the catalog Message-ID: <8EE756E49A17D21194860008C7F49AFE04529140@TWRMSG01> Hi all, The href generated for my search results is not resulting in right Links as a result I am getting the 404 error. ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)" and implemented a complete virtual host:(second example) # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPass /misc_ http://192.168.81.132:8081/misc_ ProxyPass /p_ http://192.168.81.132:8081/p_ ** Installed a siteaccess root and in the base of the portal folder(WebRadar3.0) ,gave the base as base : http://192.168.81.132/webradar path : / ** everything seems to be working fine....BUT the results from the search has gone astray. http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I need this http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I am getting this [ WebRadar3.0 is the name of my portal ] ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I am getting the following result. xxx I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf Please help. Thx in advance. -neeloy From tseaver@digicool.com Wed Sep 27 13:43:46 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 27 Sep 2000 08:43:46 -0400 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results from the catalog Message-ID: <39D1EB82.42F3F1B6@digicool.com> neeloy_saha wrote: > > Hi all, > > The href generated for my search results is not resulting in right Links as > a result I am getting the 404 error. > > ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)" > and implemented a complete virtual host:(second example) > > > # ServerAdmin webmaster@host.some_domain.com > # DocumentRoot /www/docs/host.some_domain.com > # ServerName host.some_domain.com > # ErrorLog logs/host.some_domain.com-error_log > # CustomLog logs/host.some_domain.com-access_log common > ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 > ProxyPass /misc_ http://192.168.81.132:8081/misc_ > ProxyPass /p_ http://192.168.81.132:8081/p_ > > > ** Installed a siteaccess root and in the base of the portal > folder(WebRadar3.0) ,gave the base as > base : http://192.168.81.132/webradar > path : / > > ** everything seems to be working fine....BUT the results from the search > has gone astray. > http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I > need this > http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I > am getting this > [ WebRadar3.0 is the name of my portal ] > > ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I > am getting the following > result. > > > xxx > > > I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf > > Please help. You are using a *very* old version of the PTK (the 'SiteIndex' is a giveaway); try upgrading to the CVS version, or wait to the end of the week for us to release a new tarball. You will then be able to spell your link as:: If that doesn't help, something uglier is going to be needed. I believe we already have Collector issues on funny interactions between SiteRoot-style virtual hosting and the catalog; try a collector search to see what turns up: http://classic.zope.org:8080/Collector Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From tseaver@digicool.com Wed Sep 27 14:37:42 2000 From: tseaver@digicool.com (Tres Seaver) Date: Wed, 27 Sep 2000 09:37:42 -0400 (EDT) Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search results fro m the catalog In-Reply-To: <8EE756E49A17D21194860008C7F49AFE04529144@TWRMSG01> Message-ID: On Wed, 27 Sep 2000, neeloy_saha wrote: > Hi tres, > > I used a very ugly approach to fix that.....well it works...... > > / > > I had many problems while installing PTK. I started one month back on zope. > frankly speaking the instructions for the installation that was there for > the PTK never seemed to work for me... I tried many versions and got this > configuration to work for me.At least I do not get an attribute error. I am > working on Win NT sp6 > > I am having another problem.... all the things that have been imported as > .zexp files... there icons are not visible.... and they point to > http://192.168.81.132/Control_Panel/Products/DemoPortal/Portal/ziconImage > > How do I go abt that??? First, please post such questions to the PTK list, rather than directly to me -- you'll get the benefit of everyone's knowledge that way. I can't reproduce the symptom you describe on my box: * Fresh Zope 2.2.2. install * CVS checkout of the PTK:: cvs -d :pserver:anonymous@cvs.zope.org co ZopePTK * Symlink ZCallable, PTKBase, and PTKDemo into my Products directory:: cd ~/Zope2/lib/python/Products ln -s ~/ZopePTK/ZCallable . ln -s ~/ZopePTK/PTKBase . ln -s ~/ZopePTK/PTKDemo . * Symlink Wizard.zexp and Demo.zexp into my import directory: cd ~/Zope2/import ln -s ../lib/python/Products/PTKDemo/Wizard.zexp . ln -s ../lib/python/Products/PTKDemo/PTKDemo.zexp . * (Re)start Zope. Notice that ZCallable, PTKBase, and PTKDemo have initialized cleanly (no "broken product" icons). * In Control_Panel/Products, import the ZClass products, 'Wizard.zexp' and 'DemoPortal.zexp'. Again, note no broken objects (if the PortalWizard object in DemoPortal looks broken, restart Zope and log it as a bug in the PTK tracker). * Create a test portal, using the wizard. Note that the portal object has a real "door" icon. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From neeloy_saha@infy.com Wed Sep 27 14:46:25 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Wed, 27 Sep 2000 19:16:25 +0530 Subject: [Zope-PTK] Apache + Zserver + SiteAccess + Search portal icon is not appearing Message-ID: <8EE756E49A17D21194860008C7F49AFE04529146@TWRMSG01> Hi all, The portal icon does not appear when I am using the ptk with apache + zserver + siteaccess2. I find it there for all things which I have imported by using .zexp. I have used the How-To on integrating zserver + Apache ...using the virtual host. # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0 ProxyPass /misc_ http://192.168.81.132:8081/misc_ ProxyPass /p_ http://192.168.81.132:8081/p_ How do I go abt solving the issue. -neeloy -----Original Message----- From: Tres Seaver [mailto:tseaver@digicool.com] Sent: Wednesday, September 27, 2000 7:08 PM To: neeloy_saha Cc: zope-ptk@zope.org Subject: RE: [Zope-PTK] Apache + Zserver + SiteAccess + Search results fro m the catalog On Wed, 27 Sep 2000, neeloy_saha wrote: > Hi tres, > > I used a very ugly approach to fix that.....well it works...... > > / > > I had many problems while installing PTK. I started one month back on zope. > frankly speaking the instructions for the installation that was there for > the PTK never seemed to work for me... I tried many versions and got this > configuration to work for me.At least I do not get an attribute error. I am > working on Win NT sp6 > > I am having another problem.... all the things that have been imported as > .zexp files... there icons are not visible.... and they point to > http://192.168.81.132/Control_Panel/Products/DemoPortal/Portal/ziconImage > > How do I go abt that??? First, please post such questions to the PTK list, rather than directly to me -- you'll get the benefit of everyone's knowledge that way. I can't reproduce the symptom you describe on my box: * Fresh Zope 2.2.2. install * CVS checkout of the PTK:: cvs -d :pserver:anonymous@cvs.zope.org co ZopePTK * Symlink ZCallable, PTKBase, and PTKDemo into my Products directory:: cd ~/Zope2/lib/python/Products ln -s ~/ZopePTK/ZCallable . ln -s ~/ZopePTK/PTKBase . ln -s ~/ZopePTK/PTKDemo . * Symlink Wizard.zexp and Demo.zexp into my import directory: cd ~/Zope2/import ln -s ../lib/python/Products/PTKDemo/Wizard.zexp . ln -s ../lib/python/Products/PTKDemo/PTKDemo.zexp . * (Re)start Zope. Notice that ZCallable, PTKBase, and PTKDemo have initialized cleanly (no "broken product" icons). * In Control_Panel/Products, import the ZClass products, 'Wizard.zexp' and 'DemoPortal.zexp'. Again, note no broken objects (if the PortalWizard object in DemoPortal looks broken, restart Zope and log it as a bug in the PTK tracker). * Create a test portal, using the wizard. Note that the portal object has a real "door" icon. Tres. -- =============================================================== Tres Seaver tseaver@digicool.com Digital Creations "Zope Dealers" http://www.zope.org From sigve@tjora.no Wed Sep 27 17:35:21 2000 From: sigve@tjora.no (Sigve Tjora) Date: Wed, 27 Sep 2000 18:35:21 +0200 (CEST) Subject: [Zope-PTK] the PTK and i18n In-Reply-To: Message-ID: Hi! I would really like more support for translating the PTK. I did a translation into norwegian to show a customer how it can be done on a previus versjon of the PTK, but now I probably have to do it all over again when we are going to use the most current versjon. And it was quite a lot of work... At least it should be easy to make a sitewide translation by changing a "string-file" or something like that. Probably some want to have the possibility that the users can select the language they want, but I really don't need that for my project. Med vennlig hilsen Sigve Tjora www.tjora.no (norwegian only...) Du skrev: (norwegian > Hi, > > is there anybody working on a multilingual PTK version ? > > I just looked in the code of PTKBase, and found that many phrases like the > actions are hardwired into the code (python and dtml). > > So we have to do some thinking how to integrate i18n into the PTK. > > Should we open a wiki for it ? > > > 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 > > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > From sevigny@ajlsm.com Wed Sep 27 17:57:15 2000 From: sevigny@ajlsm.com (Martin Sevigny) Date: Wed, 27 Sep 2000 18:57:15 +0200 Subject: [Zope-PTK] General advice for a Web directory Message-ID: Dear PTK specialists, I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. Here is what I want to do: - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site - Let users search for Web resources in the directory - Let different people manage different parts of the directory After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. For now, I have these questions: - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. Have a nice day, Martin Sévigny From rik.hoekstra@inghist.nl Thu Sep 28 09:19:37 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Thu, 28 Sep 2000 10:19:37 +0200 Subject: [Zope-PTK] General advice for a Web directory References: Message-ID: <009a01c02924$d8277580$fe5da182@michieltje> I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. Here is what I want to do: - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site - Let users search for Web resources in the directory - Let different people manage different parts of the directory After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. For now, I have these questions: - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. [rh]While the PTK is perhaps useful for your purposes, you may want to look at a product called YiHAW, which is meant just for Yahoo like directories. In its documentation it says: " Yihaw represents a different viewpoint on how to build a portal than the Zope PTK product. PTK uses the concept of a personal workspace, whereas Yihaw uses a shared workspace." http://www.zope.org/Members/Roug/Yihaw hth Rik From webmaven@lvcm.com Thu Sep 28 03:15:22 2000 From: webmaven@lvcm.com (Michael Bernstein) Date: Wed, 27 Sep 2000 19:15:22 -0700 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> <39D1178C.D535382E@libc.org> Message-ID: <39D2A9BA.236875D4@lvcm.com> Bill Anderson wrote: > > Michael Bernstein wrote: > > > > I swiped some code out of the ManageMembers method in Membership, and > > I'm trying to implement a functional member roster as the index_html of > > a 'members' folder. > > > > the code fragment in question is this: > > > > > > > > > > > > > > (&dtml-getUserName;) > > > > (&dtml-getUserName;) > > > > > > > > > > > > I want the to test for the existence of a folder (contained > > within /members) that has an identical id as the member. That way this > > will display a link only if they have a folder. > > how about (UNTESTED!!!): > > Here is the syntax that works: Bill's suggestion put me on the right track, and a search through the archives revealed the following posting from Chris McDonough: http://lists.zope.org/pipermail/zope/2000-April/024628.html Which gave me the last piece of the puzzle. Just goes to show you that all Zope Zen is contained within the archives ;-) This should be useful for anyone who wants to implement a portal where only *some* members have a home folder. The current all-or-nothing approach of both the PTK and membership seems limiting. Michael Bernstein. From mtaylor@goldridge.net Thu Sep 28 10:22:27 2000 From: mtaylor@goldridge.net (Monty Taylor) Date: Thu, 28 Sep 2000 11:22:27 +0200 Subject: [Zope-PTK] General advice for a Web directory References: Message-ID: <39D30DD3.60192572@goldridge.net> Martin, I'm working on a very similar thing. I'm trying to have the full functionality of the PTK with the ability to do Web Directories. I've been working on using ZTopics to build a categorization system similar to the one on Sourceforge. So that in addition to publishing a resource you can choose to categorize it as well. If you'd like to help out, I could sure use a hand. Monty Martin Sevigny wrote: > Dear PTK specialists, > > I'm currently evaluating the feasibility of building a Web directory using Zope Portal Toolkit. I've installed it, tests a little bit, but I still have questions. > > Here is what I want to do: > > - Build a Yahoo-like directory of Web resources, each resource being identifier with it's URL, a title, a description, and a few other fields such as language used and type of site > > - Let users search for Web resources in the directory > > - Let different people manage different parts of the directory > > After a few hours playing with the toolkit, I've found that PTK could help me build this directory. It would take care of the user authentification, the submission of new Web sites, the search engine, and a few other things. > > For now, I have these questions: > > - For the topics and subtopics, I need to use ZTopic objects, right? Is there any way (without too much effort) to have support for "see also" topics inside a topic? I only managed to get strict hierarchies... > > - How do I place a PTK object, like a document or a link, within a ZTopic topic, using the regular PTK interface, for instance when a reviewer decides to publish the object? > > - May I define my own portal objects, or at least modify the existing ones? For example, may I add a "language" field to the link object? > > - What about internationalization? My directory would not be in English, do I have to translate all strings in the source code and DTML documents? What do I do when there are updates? > > Thank's for any advice. I like Zope, and I hope I will be able to use the PTK without too much effort for my project. > > Have a nice day, > > Martin Sévigny > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests From gfbdpf@mx10.australia.ms Thu Sep 28 02:56:13 2000 From: gfbdpf@mx10.australia.ms (gfbdpf@mx10.australia.ms) Date: Thu, 28 Sep 2000 01:56:13 Subject: [Zope-PTK] (no subject) Message-ID: <137.85823.199105@mail.mindspring.com> GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY! STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN GET ONE FOR ONLY $11.95 PER MONTH! DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A SIMPLE PHONE CALL TO OUR OFFICE. YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with no extra charge! UNLIMITED TRAFFIC -- no extra charge! FRONT PAGE EXTENSIONS are FULLY SUPPORTED. A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS. ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP CHARGE. FOR DETAILS CALL 1 888 248 0765 if you are outside the USA, please fax 240 337 8325 Webhosting International From bill@libc.org Fri Sep 29 04:27:49 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 28 Sep 2000 21:27:49 -0600 Subject: [Zope-PTK] Member Roster for Membership References: <39D0F6F6.DCC78345@profitscape.com> <39D1178C.D535382E@libc.org> <39D2A9BA.236875D4@lvcm.com> Message-ID: <39D40C35.D65801FE@noreboots.com> Michael Bernstein wrote: > > Bill Anderson wrote: > > > > Michael Bernstein wrote: > > > > > > I swiped some code out of the ManageMembers method in Membership, and > > > I'm trying to implement a functional member roster as the index_html of > > > a 'members' folder. > > > > > > the code fragment in question is this: > > > > > > > > > > > > > > > > > > > > > (&dtml-getUserName;) > > > > > > (&dtml-getUserName;) > > > > > > > > > > > > > > > > > > I want the to test for the existence of a folder (contained > > > within /members) that has an identical id as the member. That way this > > > will display a link only if they have a folder. > > > > how about (UNTESTED!!!): > > > > > > Here is the syntax that works: > > > > Bill's suggestion put me on the right track, and a search > through the archives revealed the following posting from > Chris McDonough: Cool. > http://lists.zope.org/pipermail/zope/2000-April/024628.html > > Which gave me the last piece of the puzzle. Just goes to > show you that all Zope Zen is contained within the archives > ;-) The first lesson of Zope Zen: "All Zen is within the archives." The Second Lesson of Zope Zen: "All Zen not bounded by the archives, is contained within the source." :-) > > This should be useful for anyone who wants to implement a > portal where only *some* members have a home folder. The > current all-or-nothing approach of both the PTK and > membership seems limiting. Remember, that's just the implementation design PortalMembership, which is aimed at portals, without member folders. The forthcoming CommunityMembership will provide for member folders, and will naturally not be an all-or-nothing proposal. -- E PLURIBUS LINUX From Daniel.Schweingruber@miracle.com Fri Sep 29 09:28:03 2000 From: Daniel.Schweingruber@miracle.com (Daniel.Schweingruber@miracle.com) Date: Fri, 29 Sep 2000 10:28:03 +0200 Subject: [Zope-PTK] Search returns all entries Message-ID: <3B5D9864A6E0D3118FC200508B7893737DC8DD@mbx.miracle.com> Hi Is there a known bug in the search of PTK? I always get the whole catalog back, even I'm looking for a word, which doesn't exist in the vocabulary. Thanks for help and the cool product. Daniel Schweingruber mailto:DanielS@miracle.com From mbernstein@profitscape.com Fri Sep 29 21:00:00 2000 From: mbernstein@profitscape.com (Michael Bernstein) Date: Fri, 29 Sep 2000 15:00:00 -0500 Subject: [Zope-PTK] Further enhancements to membership roster for intranets Message-ID: <39D4F4C0.774C7804@profitscape.com> I decided to implement an Intranet directory/membership roster. I started with the ManageMembers dtml method in membership, but copied it out to a '/members' folder index_html method. I also created a new Python Method inside acl_users by copying getMembers and naming the copy getListedMembers. The original method had this body: -8<-------------------------------------------------- user_ids=self.UserSource.getPersistentItemIDs() users=[] for i in user_ids: users.append(self.getItem(i)) return users -8<-------------------------------------------------- Which I modified like so: -8<-------------------------------------------------- user_ids=self.UserSource.getPersistentItemIDs() users=[] for i in user_ids: if self.UserSource.getItem(i).listed: users.append(self.getItem(i)) return users -8<-------------------------------------------------- The index_html method in '/members' implements a policy of showing the entire list of members if you're logged in, but Anonymous viewrs only see members who have have the listed option set. I also made a few other changes: - The PortalMember ZClass has 'Firstname' 'Lastname' instead of 'GivenName' 'Surname' - The ZClass has an additional 'Extension' property, which is listed for each member. - Alternate rows have green backgrounds to increase legibility - If a folder in the '/members' folder exists whose id matches the User name, the user name is linked to it. Here's the index_html code, I hope it's useful: -8<--------------------------------------------------

BGCOLOR="#CCFFCC"> BGCOLOR="#CCFFCC">
NameUser IDExtensionEmail Address
 (&dtml-getUserName;)&dtml-Extension; &dtml-email;  (&dtml-getUserName;)&dtml-Extension; &dtml-email;
 (&dtml-getUserName;)&dtml-Extension; &dtml-email;  (&dtml-getUserName;)&dtml-Extension; &dtml-email;
Previous Members No previous Members | Next Members No more Members
-8<-------------------------------------------------- HTH, Michael Bernstein. From tseaver@zope.org Fri Sep 29 23:52:32 2000 From: tseaver@zope.org (Tres) Date: Fri, 29 Sep 2000 15:52:32 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - RegistrationTool.py:1.3 Message-ID: <200009292252.PAA02069@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKBase In directory zope.codeit.com:/tmp/cvs-serv2060/PTKBase Modified Files: RegistrationTool.py Log Message: * Fix list of possible charaters (Tracker issue #75) From tseaver@zope.org Sat Sep 30 00:17:09 2000 From: tseaver@zope.org (Tres) Date: Fri, 29 Sep 2000 16:17:09 -0700 (PDT) Subject: [Zope-PTK] CVS: ZopePTK - discussionEdit.dtml:1.2 discussionView.dtml:1.3 documentEdit.dtml:1.2 documentView.dtml:1.3 fileEdit.dtml:1.2 fileView.dtml:1.3 imageEdit.dtml:1.2 imageView.dtml:1.2 linkEdit.dtml:1.2 linkView.dtml:1.3 newsEdit.dtml:1.2 newsView.dtml:1.3 Message-ID: <200009292317.QAA02588@zope.codeit.com> Update of /cvs-repository/ZopePTK/PTKDemo/dtml In directory zope.codeit.com:/tmp/cvs-serv2579 Modified Files: discussionEdit.dtml discussionView.dtml documentEdit.dtml documentView.dtml fileEdit.dtml fileView.dtml imageEdit.dtml imageView.dtml linkEdit.dtml linkView.dtml newsEdit.dtml newsView.dtml Log Message: * Stylize content type DTML From bill@noreboots.com Sat Sep 30 18:40:01 2000 From: bill@noreboots.com (Bill Anderson) Date: Sat, 30 Sep 2000 11:40:01 -0600 Subject: [Zope-PTK] Membership and PTK Message-ID: <39D62571.E839EEF4@noreboots.com> I am getting married Monday, and may be off lists for a week, so for anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to me now, so I can work on it over the weekend, and next week. I don't want to duplicate work already done. Bill -- E PLURIBUS LINUX From chrism@digicool.com Sat Sep 30 19:37:35 2000 From: chrism@digicool.com (Chris McDonough) Date: Sat, 30 Sep 2000 14:37:35 -0400 Subject: [Zope-PTK] Membership and PTK References: <39D62571.E839EEF4@noreboots.com> Message-ID: <005e01c02b0d$80956ee0$1f48a4d8@kurtz> This is hilarious. Way to prioritize, Bill! (and congratulations) :-) ----- Original Message ----- From: "Bill Anderson" To: ; Sent: Saturday, September 30, 2000 1:40 PM Subject: [Zope-PTK] Membership and PTK > > I am getting married Monday, and may be off lists for a week, so for > anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to > me now, so I can work on it over the weekend, and next week. > > I don't want to duplicate work already done. > > Bill > > -- > E PLURIBUS LINUX > > _______________________________________________ > Zope-PTK maillist - Zope-PTK@zope.org > http://lists.zope.org/mailman/listinfo/zope-ptk > > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests > > From phil.harris@zope.co.uk Fri Sep 29 22:44:19 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 29 Sep 2000 22:44:19 +0100 Subject: [Zope-PTK] Re: [Zope-dev] Membership and PTK References: <39D62571.E839EEF4@noreboots.com> Message-ID: <004b01c02a5e$6d1aa8d0$df93bcd4@harrisf4scs8le> Don't do man. Quick everybody, let's start a rescue comittee! Congrats Bill Phil ----- Original Message ----- From: "Bill Anderson" To: ; Sent: Saturday, September 30, 2000 6:40 PM Subject: [Zope-dev] Membership and PTK > > I am getting married Monday, and may be off lists for a week, so for > anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to > me now, so I can work on it over the weekend, and next week. > > I don't want to duplicate work already done. > > Bill > > -- > E PLURIBUS LINUX > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope )