Re: [Zope] __bobo_traverse__ and a no-object
On 7/14/06, Garito <[EMAIL PROTECTED]> wrote: Garito escribió: > Dieter Maurer escribió: >> Garito wrote at 2006-7-14 07:04 +0200: >> >>> ... >>> def __bobo_traverse__(self, REQUEST, name): >>>obj = getattr(self, name, None) >>> ... >>> I wonder why I can do this on a Page Template: >>> >>> >>> >>> Where Texto is a adquired property, but not this: >>> >>> >>> >>> because zope raises an unauthorized error >>> >>> How can I solve this point? >>> >> >> You can wait for the next Zope release (2.10) where this is fixed. >> >> The reason: security for "__bobo_traverse__" is much stricter >> than for attribute lookup: >> >>In the latter case, the security machinery knows that the value >>was obtained by attribute lookup and can apply the security >>declarations of the accessed object. >> >>In the former case, the security machinery does not know >>which object was really accessed and therefore refuses >>to look at the accessed object. This often leads to >>an "Unauthorized". >> >> The hack in Zope 2.10 checks in this case whether the value >> could as well have been obtained by attribute lookup and >> then checks along this route. >> >> >> If waiting is not an option for you, you can also backport >> the fix to your Zope version. >> >> >> >> > Do you refer this Collector? > > http://www.zope.org/Collectors/Zope/2072 > I use Zope 2.9.2 Use 2.9.3 and watch your problem disappear (hopefully). Alec ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Announcing the release of Zope version 2.8.8
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zope 2.8.8 Released On behalf of Zope Corporation and the Zope community I am pleased to announce the release of Zope 2.8.8. You can download the sources from "http://www.zope.org/Products/Zope/2.8.8/";, http://www.zope.org/Products/Zope/2.8.8 This bugfix release corrects the information exposure vulnerability addressed in the "2007/07/05 Hotfix.", http://www.zope.org/Products/Zope/Hotfix-2006-07-05 You may remove that hotvix product from your instances after upgrading to this version of Zope. New features of Zope 2.8.x - ZODB 3.4 with MVCC (multi version concurrency control) support. MVCC solves nearly every problem with ZODB read-conflict errors which is very important for high-traffic Zope sites. - Extension Classes were rewritten as Python new-style classes making all features of Python new-style classes available in Zope objects. This includes support for cyclic garbage collection. - Integration of Zope 3 technologies through Five (see http://codespeak.net/z3/five/) More Information For more information on what is new in this release, see the CHANGES.txt files for the release: "http://www.zope.org/Products/Zope/2.8.8/CHANGES.txt";, http://www.zope.org/Products/Zope/2.8.8/CHANGES.txt See also: "http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView"; http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/OverView For more information on the available Zope releases, guidance for selecting the right distribution and installation instructions, please see: "http://www.plope.com/Books/2_7Edition/InstallingZope.stx";, http://www.plope.com/Books/2_7Edition/InstallingZope.stx Reporting Bugs Please report all the bugs you have found to the Zope bugtracker: "http://collector.zope.org/Zope";, http://collector.zope.org/Zope Supported Python versions At this time the only **supported** and **recommended** Python versions are 2.3.4 and 2.3.5. Using Python 2.4.X is **not supported** and **not recommended** at this time. Python 2.4.X will be supported when a security audit takes place. This means that you are using Python 2.4 + Zope 2.8 at **your own risk**. This warning also applies to binary packages that install Zope packages together with a system wide Python 2.4 installation (e.g. Fedora, SuSE...). Such installations are in general not supported. In addition there some third-party products and Python packages that don't work with Python 2.4 and can cause trouble when using Python 2.4. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEuB0F+gerLs4ltQ4RAqO8AJ9ge1c1RDyOaZl7zoLr5aZcMCLI/wCfSbD3 xGCnKstYw313BIOeJ/QMzDs= =5LeI -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 3 clues for getting started
That's great. Thanks. On Friday 2006 July 14 17:06, Martijn Pieters wrote: > On 7/14/06, Dale Strickland-Clark <[EMAIL PROTECTED]> wrote: > > 1. I assume the Zope 3 authentication engine is at least as capable as > > the Zope 2 one in that you can assign roles to users and require roles > > for a page to display? > > Yes > > > 2. Is it possible to keep the users' passwords in clear text so they can > > be emailed if the user requests it? > > Yes > > > 3. Where is the API documented that we call to check if a user/password > > combination is valid? > > Within Zope3 itself; you get a full-featured API browser built in. The > pluggable auth interfaces can be looked up there. > > > 4. Where is the rest of Zope 3 documented? I've found this > > http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPag > >e/Zope3Book but it doesn't seem complete. > > There are two books on Zope 3 for sale, one by Stephan RIchter and and > one by Philipp von Weitershausen. Both are somewhat behind the times > as Zope 3 has evolved rapidlly. -- Dale Strickland-Clark Riverhall Systems Ltd - www.riverhall.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Garito escribió: Dieter Maurer escribió: Garito wrote at 2006-7-14 07:04 +0200: ... def __bobo_traverse__(self, REQUEST, name): obj = getattr(self, name, None) ... I wonder why I can do this on a Page Template: Where Texto is a adquired property, but not this: because zope raises an unauthorized error How can I solve this point? You can wait for the next Zope release (2.10) where this is fixed. The reason: security for "__bobo_traverse__" is much stricter than for attribute lookup: In the latter case, the security machinery knows that the value was obtained by attribute lookup and can apply the security declarations of the accessed object. In the former case, the security machinery does not know which object was really accessed and therefore refuses to look at the accessed object. This often leads to an "Unauthorized". The hack in Zope 2.10 checks in this case whether the value could as well have been obtained by attribute lookup and then checks along this route. If waiting is not an option for you, you can also backport the fix to your Zope version. Do you refer this Collector? http://www.zope.org/Collectors/Zope/2072 I use Zope 2.9.2 -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Dieter Maurer escribió: Garito wrote at 2006-7-14 07:04 +0200: ... def __bobo_traverse__(self, REQUEST, name): obj = getattr(self, name, None) ... I wonder why I can do this on a Page Template: Where Texto is a adquired property, but not this: because zope raises an unauthorized error How can I solve this point? You can wait for the next Zope release (2.10) where this is fixed. The reason: security for "__bobo_traverse__" is much stricter than for attribute lookup: In the latter case, the security machinery knows that the value was obtained by attribute lookup and can apply the security declarations of the accessed object. In the former case, the security machinery does not know which object was really accessed and therefore refuses to look at the accessed object. This often leads to an "Unauthorized". The hack in Zope 2.10 checks in this case whether the value could as well have been obtained by attribute lookup and then checks along this route. If waiting is not an option for you, you can also backport the fix to your Zope version. Do you refer this Collector? http://www.zope.org/Collectors/Zope/2072 -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Dieter Maurer escribió: Garito wrote at 2006-7-14 07:04 +0200: ... def __bobo_traverse__(self, REQUEST, name): obj = getattr(self, name, None) ... I wonder why I can do this on a Page Template: Where Texto is a adquired property, but not this: because zope raises an unauthorized error How can I solve this point? You can wait for the next Zope release (2.10) where this is fixed. The reason: security for "__bobo_traverse__" is much stricter than for attribute lookup: In the latter case, the security machinery knows that the value was obtained by attribute lookup and can apply the security declarations of the accessed object. In the former case, the security machinery does not know which object was really accessed and therefore refuses to look at the accessed object. This often leads to an "Unauthorized". The hack in Zope 2.10 checks in this case whether the value could as well have been obtained by attribute lookup and then checks along this route. If waiting is not an option for you, you can also backport the fix to your Zope version. Hi Dieter! In fact all my work depends on this question (this is the reason behind my nervous. Sorry again Andreas and the rest of people) Do you know how can I find information to backport the fix? -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
On 7/14/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: Garito wrote at 2006-7-14 07:04 +0200: > ... >def __bobo_traverse__(self, REQUEST, name): >obj = getattr(self, name, None) > ... >I wonder why I can do this on a Page Template: > > > >Where Texto is a adquired property, but not this: > > > >because zope raises an unauthorized error > >How can I solve this point? You can wait for the next Zope release (2.10) where this is fixed. The reason: security for "__bobo_traverse__" is much stricter than for attribute lookup: In the latter case, the security machinery knows that the value was obtained by attribute lookup and can apply the security declarations of the accessed object. In the former case, the security machinery does not know which object was really accessed and therefore refuses to look at the accessed object. This often leads to an "Unauthorized". The hack in Zope 2.10 checks in this case whether the value could as well have been obtained by attribute lookup and then checks along this route. If waiting is not an option for you, you can also backport the fix to your Zope version. Hm, if this is the issue, the fix should already be in Zope 2.9.3 and 2.8.7 Alec ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Garito wrote at 2006-7-14 07:04 +0200: > ... >def __bobo_traverse__(self, REQUEST, name): >obj = getattr(self, name, None) > ... >I wonder why I can do this on a Page Template: > > > >Where Texto is a adquired property, but not this: > > > >because zope raises an unauthorized error > >How can I solve this point? You can wait for the next Zope release (2.10) where this is fixed. The reason: security for "__bobo_traverse__" is much stricter than for attribute lookup: In the latter case, the security machinery knows that the value was obtained by attribute lookup and can apply the security declarations of the accessed object. In the former case, the security machinery does not know which object was really accessed and therefore refuses to look at the accessed object. This often leads to an "Unauthorized". The hack in Zope 2.10 checks in this case whether the value could as well have been obtained by attribute lookup and then checks along this route. If waiting is not an option for you, you can also backport the fix to your Zope version. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope performance experiences
My experience is this: - Red Hat Enterprise Linux ES 2.1 - AMD Athlon 64 3200+ 2.0 GHz - 2 GB Ram / 36GB RAID 1 - Zope 2.7.8 / Plone 2.1.2 w/ boat load of products (8+) - Peak day: 42,112 pages, 193,566 hits, 1.10 GB of bandwidth and the server did just fine averaging 86.88% idle (sar command in unix) The server also has Apache, mail, ftp and some Java running on it. Jake ___ http://www.ZopeZone.com On Fri, July 14, 2006 11:24 am, Sinang, Danny said: > Dear All, > > Can anyone share their experiences on Zope's performance, what your > hardware / Zope configs are, and how you plan to scale ? > > Regards, > Danny > > > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 3 clues for getting started
On 7/14/06, Dale Strickland-Clark <[EMAIL PROTECTED]> wrote: 1. I assume the Zope 3 authentication engine is at least as capable as the Zope 2 one in that you can assign roles to users and require roles for a page to display? Yes 2. Is it possible to keep the users' passwords in clear text so they can be emailed if the user requests it? Yes 3. Where is the API documented that we call to check if a user/password combination is valid? Within Zope3 itself; you get a full-featured API browser built in. The pluggable auth interfaces can be looked up there. 4. Where is the rest of Zope 3 documented? I've found this http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book but it doesn't seem complete. There are two books on Zope 3 for sale, one by Stephan RIchter and and one by Philipp von Weitershausen. Both are somewhat behind the times as Zope 3 has evolved rapidlly. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope performance experiences
- Original Message - From: Sinang, Danny To: zope@zope.org Sent: Friday, July 14, 2006 11:24 AM Subject: [Zope] Zope performance experiences Can anyone share their experiences on Zope's performance, what your hardware / Zope configs are, and how you plan to scale ? I just did some load testing for a new app I am building, so i have some figures: Setup: Application Server - zope 2.9.2 - centOS 4.3 (linux) - AMD Athlon 64 3000+ (1.8 Ghz) - 1Mb RAM (PC3200 DDR 400Mhz) Database Server - zope 2.9.2 (but only using zeo server) - mysql 4.1 - centOS 4.3 (linux) - VIA Cyrix CPU (1Ghz) - 1Mb RAM (ECC 400Mhz) Load testing was done using http_load utility. Apache front-end web server was turned off (I didn't want Apache & its caching to impact the load testing). Load testing was done on an internal LAN. Test #1 - retrieval of static web page (application server gets web page from zeo server running on database server); results: 750 fetches, 50 max parallel 3382 mean bytes/connection 186.86 fetches/sec 631981 bytes/sec msecs/connect: mean 0.414 max 7.523 min 0.174 msecs/first-response: mean 258.394 max 277.709 min 114.296 Test #2 - retrieval of a dynamic page (data collected via an external method and displayed via dtml). Data collection required 5 separate ZCatalog searches and 1 SQL search (all searches performed by Database server); results: 750 fetches, 50 max parallel 8223.2 mean bytes/connection 12.84 fetches/sec 105593 bytes/sec msecs/connect: mean 1.616 max 46.725 min 0.17 msecs/first-response: mean 3768.18 max 4339.11 min 365.858 cpu monitoring during the load test indicated that the Application Server was running at 80-85% utilization and the Database Server cpu was running at 27-31% utilization. Test #3 - retrieval of a dynamic page (data collected/generated via an external method and displayed via dtml). Data collection consisted of 1 zodb object access (to obtain property fields), 2 SQL searches and the generation of a customized image (using PIL, the image was temporarily stored in a temporary_folder); results: 750 fetches, 50 max parallel 2287.93 mean bytes/connection 26.554 fetches/sec 60753 bytes/sec msecs/connect: mean 0.425 max 1.544 min 0.168 msecs/first-response: mean 1782.18 max 7685.95 min 78.514 Final system configuration will consist of a front-end load balancer (linux-based), several application servers and several database servers. There is some good info on scalable networks here: http://www.linuxvirtualserver.org/ hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Andreas Jung escribió: --On 14. Juli 2006 17:17:51 +0200 Garito <[EMAIL PROTECTED]> wrote: Garito escribió: Anyone can tell me what is happening here? The Zope mailing list is not a helpdesk with a guaranteed response time. No need to grouch! -aj Sorry I don't pretend to be rude! -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope performance experiences
--On 14. Juli 2006 23:24:11 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> wrote: Dear All, Can anyone share their experiences on Zope's performance, what your hardware / Zope configs are, and how you plan to scale ? This question is like "I wanna buy car. Which one should I buy". Everything depends on very much on your application and usecase. For scaling: use ZEO... -aj pgpcCHGA7pLrq.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope performance experiences
Dear All, Can anyone share their experiences on Zope's performance, what your hardware / Zope configs are, and how you plan to scale ? Regards, Danny ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
--On 14. Juli 2006 17:17:51 +0200 Garito <[EMAIL PROTECTED]> wrote: Garito escribió: Anyone can tell me what is happening here? The Zope mailing list is not a helpdesk with a guaranteed response time. No need to grouch! -aj pgpnF2JmaCweW.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope 3 clues for getting started
We're considering Zope 3 for some new sites and for re-factoring some existing projects. Initially, we want to use it as an authentication engine for the existing sites and then then it will control the new sites as they come online. This is early stages (I haven't managed to install Zope 3 yet) so we have some reading to do but I wonder if I could get some answers to a couple of simple questions: 1. I assume the Zope 3 authentication engine is at least as capable as the Zope 2 one in that you can assign roles to users and require roles for a page to display? 2. Is it possible to keep the users' passwords in clear text so they can be emailed if the user requests it? 3. Where is the API documented that we call to check if a user/password combination is valid? 4. Where is the rest of Zope 3 documented? I've found this http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book but it doesn't seem complete. Thanks for any help. -- Dale Strickland-Clark Riverhall Systems Ltd - www.riverhall.co.uk London UK ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] __bobo_traverse__ and a no-object
Garito escribió: Hi all! Please, look at this code: def __bobo_traverse__(self, REQUEST, name): obj = getattr(self, name, None) if obj is not None: return obj else: obj = self.Dame(name) if obj is not None: return obj else: if 'Parametros' in self.REQUEST: self.REQUEST['Parametros'] = self.REQUEST['Parametros'] + [name] else: self.REQUEST['Parametros'] = [name] return self self.Dame is a function that seeks for an object with the name "name" I wonder why I can do this on a Page Template: Where Texto is a adquired property, but not this: because zope raises an unauthorized error How can I solve this point? Thanks! Anyone can tell me what is happening here? -- Mis Cosas http://blogs.sistes.net/Garito ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Alternate Forms of Authentication
Hi Benjamin Just getting into Zope and loving it! I do have a question about the basic authentication that Zope uses... I have a login page (ZPT) and would love for Zope to display that page instead of the basic auth dialog when it determines it needs to authenticate. Is this possible? Is there a Product that does this? Yes, you can use the CookieCrumbler Product and customize its login forms. Regards Josef ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version
Howdy-- I just ran into this same problem. After much poking around, it turned out that the source of the problem was that the zlib module for Python had not been compiled because I didn't have the zlib development stuff (in zlib-devel on RH and similar, not sure about Suse) installed. Installing zlib-devel, then recompiling Python from source solved the problem. Best, Jeremy. [EMAIL PROTECTED] wrote: Date: Wed, 5 Jul 2006 20:51:28 +0200 From: [EMAIL PROTECTED] Subject: Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version To: [EMAIL PROTECTED] Cc: zope@zope.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii Ofer Weisglass wrote at 2006-7-5 01:38 +0300: ... I updated the python to the last version and this is what I get after the zope installation was over with no errors (already created instance, username and password) Traceback (most recent call last): ... setImplementation("C") File "/usr/software/zope/lib/python/AccessControl/Implementation.py", line 51, in setImplementation from AccessControl import ImplC as impl File "/usr/software/zope/lib/python/AccessControl/ImplC.py", line 30, in ? from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython This looks like a missing installation step (generation of the C-extensions did not happen). Recheck the installation instructions and try again. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Alternate Forms of Authentication
Hello all, Just getting into Zope and loving it! I do have a question about the basic authentication that Zope uses... I have a login page (ZPT) and would love for Zope to display that page instead of the basic auth dialog when it determines it needs to authenticate. Is this possible? Is there a Product that does this? I have looked at the PluggableAuth and related Products but they either don't seem to do what I want or I can't find enough text to determine what would fit my needs. Thanks! -- Ben Menking IT Security Consulting (864) 420-5603 (864) 751-1638 fax IT and Business Solutions ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating and displaying lists
There is a chapter in the Zope Book called 'Advanced Zope Scripting' which gives some good examples. You can also find useful python scripts at www.zopelabs.com Jonathan - Original Message - From: [EMAIL PROTECTED] To: Jonathan ; zope@zope.org Sent: Friday, July 14, 2006 9:30 AM Subject: Re: [Zope] Creating and displaying lists Hi Jonathon, I will adjust my code. I have written some Python code but very simple tasks and would like to do more. I don't program that often. I work for a school system in Connecticut. So if you have an example of what your are talking about I am willing to try it. Thanks again, Larry -- Original message from "Jonathan" <[EMAIL PROTECTED]>: -- - Original Message - From: [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, July 13, 2006 4:03 PM Subject: [Zope] Creating and displaying lists I need to collect a list of student id numbers from one table so I can take this list, find them in another table, and display their names so their teachers can give them a score. I still like to use DTML but I do not know if I have the sequence-number in the proper format. This is what I have been playing with: < BR>> > > > > , > > > I think there is some confusion here. You should break this into 2 sections (and it would be much easier in a python script), but if you want to use dtml... The first section should build the list you are trying to display in the SELECT statement. It looks like you are trying to create a list of 'tuples' where each tuple consists of (id, lastname, firstname). I don't know where your data is coming from, but you could do something like: # creates an empty list # add one tuple (record) to the list After you have built your list test it by displaying it: > studentList> to see if you have the right data in your list. You can then proceed to the next section where you are building your SELECT statements (warning: not tested and very ugly dtml) > > " > > , > "_['sequence-item'][2]"> > > > hth & Good Luck Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Creating and displaying lists
Hi Jonathon, I will adjust my code. I have written some Python code but very simple tasks and would like to do more. I don't program that often. I work for a school system in Connecticut. So if you have an example of what your are talking about I am willing to try it. Thanks again, Larry -- Original message from "Jonathan" <[EMAIL PROTECTED]>: -- > > - Original Message - > From: [EMAIL PROTECTED] > To: zope@zope.org > Sent: Thursday, July 13, 2006 4:03 PM > Subject: [Zope] Creating and displaying lists > > I need to collect a list of student id numbers from one table so I can take > this list, find them in another table, and display their names so their > teachers can give them a score. > > I still like to use DTML but I do not know if I have the sequence-number in > the proper format. This is what I have been playing with: > > > > > < BR>> > > > > > ">> , > > > > > > > > I think there is some confusion here. You should break this into 2 sections > (and it would be much easier in a python script), but if you want to use > dtml... > > The first section should build the list you are trying to display in the > SELECT statement. It looks like you are trying to create a list of 'tuples' > where each tuple consists of (id, lastname, firstname). I don't know where > your data is coming from, but you could do something like: > > # creates an empty list > > > # add one > tuple (record) to the list > > > After you have built your list test it by displaying it: > studentList> to see if you have the right data in your list. > > You can then proceed to the next section where you are building your SELECT > statements (warning: not tested and very ugly dtml) > > > > " > > , > "_['sequence-item'][2]"> > > > > > > hth & Good Luck > > > Jonathan > ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Importing a site with missing products
I decided to install mxODBC but there isn't one for my combination of Zope and Python versions so I'm now off on an unplanned upgrade trail...bum! Thanks for the help. On Thursday 13 July 2006 22:47, Dieter Maurer wrote: > Dale Strickland-Clark wrote at 2006-7-13 09:48 +0100: > >I need to duplicate (for testing) a site currently running on Windows on > > to Linux. > > > >This isn't a big deal. I've done the reverse direction without grief. > > > >However, on this occasion, I want to change the database connector from MS > > SQL Server to (mxodbc) to PostgreSQL (zpsycopgda) . > > > >Having exported the live site, I am unable to import it again in the test > >environment because of the following errors: > > You can only import a zexp when all modules and classes referenced in the > "zexp" are available in the importing instance. > > What you want to do is not possible. > > > Your options: > > * Install "ZmxODBC" in the destination instance (I can run under Linux, > too) > > * Install "ZPsycopgDA" in the source instance, change > your DA's to use "ZPsycopgDA". > > * Export and import > > * maybe, change your DAs back to the previous state. -- Dale Strickland-Clark Riverhall Systems Ltd - www.riverhall.co.uk London UK ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Inavlid Refernce Counts in Temporary Storage
Hi Dieter, Dieter Maurer wrote: > You may see a bug in the "pack" implementation for "TemporaryStorage". > Aha - well, my Zope version is 2.8.6 - I'll dig to see if this version is affected. > Few people will probably try to "pack" a TemporaryStorage... > Are you shure to need it? > No, not as such - I'm having problems with "Conflict Errors", when I try to store variables in the session. The system has not changed in any way that I can see is relevant, and is not under heavy load (<10 users accessing the pages in question), so I was trying to examine the behaviour of the temporary storage and satisfy myself that is was healthy. >From what you say, it may be that this error is entirely down to the pack bug, so I'm back to trying to figure out how to troubleshoot the conflict error. -- Regards, PhilK "Human language continually changes, innit." - Stephen Juan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )