[Zope-Annce] Zwiki 0.43 released

2005-07-01 Thread Simon Michael

A quickie:

Changes: Chinese and Spanish translation updates (thank you T.C. Chou
and Gaspar Quiles) and a fix for setupDtmlMethods in plone sites. A
couple of fixes from Stefan Rank are still pending.

I'm in Ireland until the end of july, and on dialup, so you won't see me
on #zwiki as much. But I may get in some hacking soon.

Hope you're having fun,
-Simon

___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-Checkins] CVS: Packages/BTrees - Interfaces.py:1.18.90.1

2005-07-01 Thread Tim Peters
Update of /cvs-repository/Packages/BTrees
In directory cvs.zope.org:/tmp/cvs-serv29503/BTrees

Modified Files:
  Tag: Zope-2_7-branch
Interfaces.py 
Log Message:
Collector 1829.

Clarified that the ``minKey()`` and ``maxKey()`` methods raise an exception
if no key exists satsifying the constraints.

Also improved the English in other interface docstrings.


=== Packages/BTrees/Interfaces.py 1.18 = 1.18.90.1 ===
--- Packages/BTrees/Interfaces.py:1.18  Tue Jun 25 18:46:42 2002
+++ Packages/BTrees/Interfaces.py   Fri Jul  1 15:55:07 2005
@@ -18,40 +18,43 @@
 class ICollection(Interface):
 
 def clear():
-Remove all of the items from the collection
+Remove all of the items from the collection.
 
 def __nonzero__():
 Check if the collection is non-empty.
 
 Return a true value if the collection is non-empty and a
-false otherwise.
+false value otherwise.
 
 
 
 class IReadSequence(Interface):
 
 def __getitem__(index):
-Return a value at the givem index
+Return the value at the given index.
 
 An IndexError is raised if the index cannot be found.
 
 
 def __getslice__(index1, index2):
-Return a subsequence from the original sequence
+Return a subsequence from the original sequence.
 
-Such that the subsequence includes the items from index1 up
-to, but not including, index2.
+The subsequence includes the items from index1 up to, but not
+including, index2.
 
 
 class IKeyed(ICollection):
 
 def has_key(key):
-Check whether the object has an item with the given key
+Check whether the object has an item with the given key.
+
+Return a true value if so, else a false value.
+
 
 def keys(min=None, max=None):
-Return an IReadSequence containing the keys in the collection
+Return an IReadSequence containing the keys in the collection.
 
-The type of the IReadSequence is not specified. It could be a
+The type of the IReadSequence is not specified.  It could be a
 list or a tuple or some other type.
 
 If a min is specified, then output is constrained to
@@ -66,15 +69,17 @@
 def maxKey(key=None):
 Return the maximum key
 
-If a key argument if provided, return the largest key that is
-less than or equal to the argument.
+If a key argument if provided and not None, return the largest key
+that is less than or equal to the argument.  Raise an exception if
+no such key exists.
 
 
 def minKey(key=None):
 Return the minimum key
 
-If a key argument if provided, return the smallest key that is
-greater than or equal to the argument.
+If a key argument if provided and not None, return the smallest key
+that is greater than or equal to the argument.  Raise an exception
+if no such key exists.
 
 
 class ISetMutable(IKeyed):
@@ -89,18 +94,18 @@
 Remove the key from the set.
 
 def update(seq):
-Add the items from the given sequence to the set
+Add the items from the given sequence to the set.
 
 class ISized(Interface):
 anything supporting __len
 
 def __len__():
-Return the number of items in the container
+Return the number of items in the container.
 
 class IKeySequence(IKeyed, ISized):
 
 def __getitem__(index):
-Return the key in the given index position
+Return the key in the given index position.
 
 This allows iteration with for loops and use in functions,
 like map and list, that read sequences.
@@ -115,43 +120,47 @@
 class IMinimalDictionary(ISized):
 
 def has_key(key):
-Check whether the object has an item with the given key
+Check whether the object has an item with the given key.
+
+Return a true value if so, else a false value.
+
 
 
 def get(key, default):
-Get the value for the given key
+Get the value associated with the given key.
 
-Return the default if the key is not in the  collection.
+Return the default if has_key(key) is false.
 
 
 def __setitem__(key, value):
-Set the value for the given key
+Set the value associated with the given key.
 
 def __delitem__(key):
-delete the value for the given key
+Delete the value associated with the given key.
 
-Raise a key error if the key if not in the collection.
+Raise a KeyError if has_key(key) is false.
+
 
 def values():
-Return a IReadSequence containing the values in the collection
+Return an IReadSequence containing the values in the collection.
 
-The type of the IReadSequence is not specified. It could be a
+The type of the IReadSequence is not specified.  It could be a
 list or a tuple or some other 

[Zope-Checkins] CVS: Packages/ZEO - __init__.py:1.19.4.26 version.txt:1.9.4.25

2005-07-01 Thread Tim Peters
Update of /cvs-repository/Packages/ZEO
In directory cvs.zope.org:/tmp/cvs-serv30311/ZEO

Modified Files:
  Tag: Zope-2_7-branch
__init__.py version.txt 
Log Message:
An internal 3.2.9b2 release.


=== Packages/ZEO/__init__.py 1.19.4.25 = 1.19.4.26 ===
--- Packages/ZEO/__init__.py:1.19.4.25  Mon Jun 27 13:10:26 2005
+++ Packages/ZEO/__init__.pyFri Jul  1 15:55:49 2005
@@ -21,4 +21,4 @@
 
 
 
-version = 2.2.9b1
+version = 2.2.9b2


=== Packages/ZEO/version.txt 1.9.4.24 = 1.9.4.25 ===
--- Packages/ZEO/version.txt:1.9.4.24   Mon Jun 27 13:10:27 2005
+++ Packages/ZEO/version.txtFri Jul  1 15:55:49 2005
@@ -1 +1 @@
-2.2.9b1
+2.2.9b2

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Coders] Zope 2.7.7b1 this weekend

2005-07-01 Thread Andreas Jung

Hi,

please keep in mind that I want to release 2.7.7b1 on Sunday. Please commit 
pending fixes *before* Sunday.


-aj 

pgpRRCkiCtCW5.pgp
Description: PGP signature
___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Jens Vagelpohl


On 1 Jul 2005, at 04:58, Fred Drake wrote:

Since using an additional configuration file is possible (and quite
easy in Zope 2, since the location of the instance is so easy to
discern, I'm not convinced it's actually important to support
embedding the configuration for 3rd-party components into zope.conf.
If you want something you can use now, using a product-specific
configuration file, with an appropriate schema, will do quite well.
It also doesn't require hacking (or monkey-patching) Zope or ZConfig,
so it would be easy to deploy in a variety of situations.


That just has the disadvantage that you're increasing the number of  
configuration files to maintain in an instance. If it's imported and  
used in zope.conf at leaast there's just one file to deal with...


jens

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Chris McDonough
FWIW, I don't know if it helps at all, but there's a concrete example of
allowing a 3rd-party product to add a section to zope.conf via %import
in the ClockServer product at
http://www.plope.com/software/ClockServer/ .  It sounds from your
description exactly like what you want to do, although it adds a section
rather than just a key, which might be fine for your case.

On Thu, 2005-06-30 at 23:12 -0300, Sidnei da Silva wrote:
 Hello,
 
 I've been hitting my head against the wall for a few hours already, so
 I thought it would be a good time to ask before the house falls apart
 *wink*.
 
 I'm looking back and forth between the Zope and ZConfig sources and
 documentation to see if I can figure out how to have a Product (or a
 python package) to extend Zope's ZConfig schema
 (a.k.a. Zope/Startup/zopeschema.xml) without having to reach into the
 guts of ZConfig.
 
 It looks like the right way to do this would be to extend Zope's
 schema and then specify a different 'schemafile' to ZopeOptions, but
 that's not currently possible as Zope doesn't support the '-S
 schemafile' switch that ZDCtlOptions does.
 
 If what I'm looking for seems just stupid please tell me *wink*.
 
 All I want to do is to add a simple config 'key' to zope.conf without
 having to patch the Zope source.
 
 Having no other choices, I would go with having my own schema and
 configfile, but that would be sub-optimal.
 
 Thank you for any help,
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] 2.9 goals

2005-07-01 Thread Chris McDonough
I'd like to propose/sponsor/promise-to-finish the following for
inclusion in 2.9.  If anyone has fears/doubts/problems with specific
things, please let me know.  I can also start a 2.9 project on the wiki
with this info; if other folks have features they want, maybe they can
post them here and we can put together a release plan.

Definitely:

- Chris Theune's blob support for ZODB (currently on the
  ctheune-blobsupport branch in ZODB's SVN repo)

- Speed up large PUTs: 
  http://mail.zope.org/pipermail/zope-dev/2005-April/024617.html

- Implement RESPONSE.isClientConnected() to be able to tell if
  the client that made the request is still connected (allow
  long-running app code the possibility to abort processing
  if it notices the client is not connected).

Maybe:

- Include ClockServer: http://plope.com/software/ClockServer

- ZODB connection policies, which will allow you to associate
  a thread pool with a particular set of ZServer servers.
  This will allow sites which are having resource exhaustion problems
  (e.g. running out of threads, running out of database connections) to
  continue to be accessible via servers running on special ports for
  debugging and maintenance purposes.  It should also allow site admins
  to associate a particular thread pool with connections from spiders
  and other cache-busters by associating particular user agents
  or other request parameters with a thread pool.
  Work towards this was done on the chrism-zserver-connection-policies-branch
  branch in CVS a while back.  See 
http://cvs.zope.org/Zope/lib/python/ZServer/?only_with_tag=chrism-zserver-connection-policies-branch

- C


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [Z3lab] Nuxeo supports Zope Corp announces

2005-07-01 Thread Chris McDonough
Note that this article is now available without a subscription at
http://lwn.net/Articles/139770/

On Fri, 2005-06-17 at 23:08 -0400, Chris McDonough wrote:
 On Fri, 2005-06-17 at 23:05 +0200, Philipp von Weitershausen wrote:
   From what I read from Rob in an interview in LWN, membership to the
   foundation will be funded by membership dues.
  
  Given that any actual facts and further discussions involving ZC have 
  been postponed to the IRC chat on tuesday (which I'm perfectly fine 
  with), I'm surprised to hear that I have to read LWN, some external and 
  not freely available source, for further details...
 
 I suspect this isn't Rob's fault, he probably didn't know that it would
 be a subscriber-only thing.   The interview will be available for free
 on the 23rd (at http://lwn.net/Articles/139955/) .  But of you're
 desperate, subscriptions at the starving hacker level are apparently
 something stupid low like $2.50US/month.
 
 - C
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [Z3lab] Nuxeo supports Zope Corp announces

2005-07-01 Thread Chris McDonough
Oops, wrong URL!  This is the right one: http://lwn.net/Articles/139955/

On Fri, 2005-06-17 at 23:08 -0400, Chris McDonough wrote:
 On Fri, 2005-06-17 at 23:05 +0200, Philipp von Weitershausen wrote:
   From what I read from Rob in an interview in LWN, membership to the
   foundation will be funded by membership dues.
  
  Given that any actual facts and further discussions involving ZC have 
  been postponed to the IRC chat on tuesday (which I'm perfectly fine 
  with), I'm surprised to hear that I have to read LWN, some external and 
  not freely available source, for further details...
 
 I suspect this isn't Rob's fault, he probably didn't know that it would
 be a subscriber-only thing.   The interview will be available for free
 on the 23rd (at http://lwn.net/Articles/139955/) .  But of you're
 desperate, subscriptions at the starving hacker level are apparently
 something stupid low like $2.50US/month.
 
 - C
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Fred Drake
On 7/1/05, Chris McDonough [EMAIL PROTECTED] wrote:
 FWIW, I don't know if it helps at all, but there's a concrete example of
 allowing a 3rd-party product to add a section to zope.conf via %import
 in the ClockServer product at
 http://www.plope.com/software/ClockServer/ .  It sounds from your
 description exactly like what you want to do, although it adds a section
 rather than just a key, which might be fine for your case.

I'll note what you didn't.  ;-)  This works for ClockServer because
you're adding a server type, and those are already allowed in the Zope
configuration.

This doesn't cover the case of a section that isn't an
implementation of an abstract section type already accepted by the
Zope configuration (log handlers, servers, databases, storages...
that's all I can remember off the top of my head).

The general case of being able to add a section (or anything else)
isn't covered by the current implementation.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Problems with Zope 2.8 on FreeBSD (was Re: Problems with PageTemplates on Zope 2.8)

2005-07-01 Thread Andrew Sawyers
Did you bump up the thread stack size for the python you're running Zope
with?  This sounds like that problem.  If you search zope.org for FreeBSD -
I have a note on how I fix it.


Andrew

--
Zope Managed Hosting
Software Engineer
Zope Corporation
(540) 361-1700 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Morten W. Petersen
 Sent: Thursday, June 30, 2005 7:37 PM
 To: Max M
 Cc: zope-dev@zope.org
 Subject: [Zope-dev] Problems with Zope 2.8 on FreeBSD (was Re: Problems
 with PageTemplates on Zope 2.8)
 
  I have an application called the Issue Dealer which I'm porting to Zope
  2.8.  However, whenever I try to access a PageTemplate which makes use
  of a page template macro it just hangs and consumes all available CPU.
 
  Any ideas what could be wrong here, or how I could debug it?
 
  Does the server or the client hang?
 
 It's the client that's hanging.  The first time I tested it, it was as a
 simple Zope instance.  http://instance/manage worked fine, but accessing
 an Issue Dealer instance (http://instance/stuff) didn't work.
 
 Now when I try setting up a ZEO server/client version 2.8 with python
 2.3.5 on FreeBSD 5.4, the server hangs even when I try to access
 http://instance/manage.  http://instance/manage_copyright works fine
 however.
 
 -Morten

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Chris McDonough
On Fri, 2005-07-01 at 10:54 -0300, Sidnei da Silva wrote:
 | The general case of being able to add a section (or anything else)
 | isn't covered by the current implementation.
 
 That is right. I've just learnt that the hard way *wink*.

Oh. ;-)

- C

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Sidnei da Silva
On Fri, Jul 01, 2005 at 08:27:02AM -0400, Fred Drake wrote:
| On 7/1/05, Chris McDonough [EMAIL PROTECTED] wrote:
|  FWIW, I don't know if it helps at all, but there's a concrete example of
|  allowing a 3rd-party product to add a section to zope.conf via %import
|  in the ClockServer product at
|  http://www.plope.com/software/ClockServer/ .  It sounds from your
|  description exactly like what you want to do, although it adds a section
|  rather than just a key, which might be fine for your case.
| 
| I'll note what you didn't.  ;-)  This works for ClockServer because
| you're adding a server type, and those are already allowed in the Zope
| configuration.
| 
| This doesn't cover the case of a section that isn't an
| implementation of an abstract section type already accepted by the
| Zope configuration (log handlers, servers, databases, storages...
| that's all I can remember off the top of my head).
| 
| The general case of being able to add a section (or anything else)
| isn't covered by the current implementation.

That is right. I've just learnt that the hard way *wink*.

-- 
Sidnei da Silva
Enfold Systems, LLC.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Sidnei da Silva
On Thu, Jun 30, 2005 at 11:58:08PM -0400, Fred Drake wrote:
| On 6/30/05, Sidnei da Silva [EMAIL PROTECTED] wrote:
|  Gosh, that looks too nice to be true. I will try that out tomorrow and
|  write out a how-to on zope.org if it works out.
| 
| It is too good to be true; sorry.
| 
| Well, it is true, but it's not what you're looking for.  You can't use
| it to extend the schema for Zope.  You can use it to add new concrete
| implementations for things that are allowed; the original use-case was
| to allow things like new kinds of storage for the database.

Yeah, I can see two things of doing it by *abusing* zope.conf, one is
abuse the 'server' abstract type and the other is to use the
'environment' directive, but then you can't specify the datatype. Oh,
well.

| I've spent a little time thinking about this issue, and have come up
| with at least one way to deal with it (and %import would be used, in
| part), but I've never been completely happy with the approaches.

I would like to suggest something like what's done for Zope 3 with
'package-includes'. Then 'package-name-schema.xml' would be included
from 'zopeschema.xml' and 'product-name-zope.conf' would be included
from 'zope.conf'.

Actually, maybe not even a special directory, but looking inside the
Products directories for those files. But then there would be a
chicken-and-egg problem because of the 'products' directive in
zope.conf. Maybe a special directory is the best in this case.

| Since using an additional configuration file is possible (and quite
| easy in Zope 2, since the location of the instance is so easy to
| discern, I'm not convinced it's actually important to support
| embedding the configuration for 3rd-party components into zope.conf. 
| If you want something you can use now, using a product-specific
| configuration file, with an appropriate schema, will do quite well. 
| It also doesn't require hacking (or monkey-patching) Zope or ZConfig,
| so it would be easy to deploy in a variety of situations.

Right, seems that's my only choice for the time being.

-- 
Sidnei da Silva
Enfold Systems, LLC.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-07-01 Thread Fred Drake
On 7/1/05, Jens Vagelpohl [EMAIL PROTECTED] wrote:
 That just has the disadvantage that you're increasing the number of
 configuration files to maintain in an instance. If it's imported and
 used in zope.conf at leaast there's just one file to deal with...

This is true.  Is that really important, though?

Adding this ability would be a new feature, so not available until
2.9.  I got the impression people want to do this now.  It makes a lot
more sense to pick something that can be used both now and into the
future than hack something together.

If someone wants to create a way to manage product-specific
configurations in a single file, it's not hard to create a Python
package to support that, and products that want to have their
configuration placed in that file could set themselves up to use
%import in that file.

I've no need of that myself, but others are certainly welcome to
create such a package; it may be a reasonable addition for 2.9, and
could be distributed separately for use with 2.7/2.8.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] 2.9 goals

2005-07-01 Thread Florent Guillaume
Chris McDonough  [EMAIL PROTECTED] wrote:
 I'd like to propose/sponsor/promise-to-finish the following for
 inclusion in 2.9.  If anyone has fears/doubts/problems with specific
 things, please let me know.  I can also start a 2.9 project on the wiki
 with this info; if other folks have features they want, maybe they can
 post them here and we can put together a release plan.
 
 Definitely:
 
 - Chris Theune's blob support for ZODB (currently on the
   ctheune-blobsupport branch in ZODB's SVN repo)

+1 !

 - Speed up large PUTs: 
   http://mail.zope.org/pipermail/zope-dev/2005-April/024617.html

+1

 - Implement RESPONSE.isClientConnected() to be able to tell if
   the client that made the request is still connected (allow
   long-running app code the possibility to abort processing
   if it notices the client is not connected).

Nice, I can see the use for that too.

 Maybe:
 
 - Include ClockServer: http://plope.com/software/ClockServer

+10 on it, something like that has really been needed for ages.

 - ZODB connection policies, which will allow you to associate
   a thread pool with a particular set of ZServer servers.
   This will allow sites which are having resource exhaustion problems
   (e.g. running out of threads, running out of database connections) to
   continue to be accessible via servers running on special ports for
   debugging and maintenance purposes.  It should also allow site admins
   to associate a particular thread pool with connections from spiders
   and other cache-busters by associating particular user agents
   or other request parameters with a thread pool.
   Work towards this was done on the chrism-zserver-connection-policies-branch
   branch in CVS a while back.  See
 http://cvs.zope.org/Zope/lib/python/ZServer/?only_with_tag=chrism-zserver-connection-policies-branch

Nice too.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] 2.9 goals

2005-07-01 Thread Florent Guillaume
Chris McDonough  [EMAIL PROTECTED] wrote:
 I'd like to propose/sponsor/promise-to-finish the following for
 inclusion in 2.9.

Here's something else that would be nice: PAS.

Although it hasn't been tested much, so we should include it as early as
possible in the 2.9 cycle (i.e., why not now ? :)

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Problems with Zope 2.8 on FreeBSD (was Re: Problems with PageTemplates on Zope 2.8)

2005-07-01 Thread Morten W. Petersen
I've heard of this earlier, but never experienced it until now.  :)

And yes, that was the issue!  :)

Thanks,

Morten

Andrew Sawyers wrote:
 Did you bump up the thread stack size for the python you're running Zope
 with?  This sounds like that problem.  If you search zope.org for FreeBSD -
 I have a note on how I fix it.
 
 
 Andrew
 
 --
 Zope Managed Hosting
 Software Engineer
 Zope Corporation
 (540) 361-1700 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Morten W. Petersen
Sent: Thursday, June 30, 2005 7:37 PM
To: Max M
Cc: zope-dev@zope.org
Subject: [Zope-dev] Problems with Zope 2.8 on FreeBSD (was Re: Problems
with PageTemplates on Zope 2.8)


I have an application called the Issue Dealer which I'm porting to Zope
2.8.  However, whenever I try to access a PageTemplate which makes use
of a page template macro it just hangs and consumes all available CPU.

Any ideas what could be wrong here, or how I could debug it?

Does the server or the client hang?

It's the client that's hanging.  The first time I tested it, it was as a
simple Zope instance.  http://instance/manage worked fine, but accessing
an Issue Dealer instance (http://instance/stuff) didn't work.

Now when I try setting up a ZEO server/client version 2.8 with python
2.3.5 on FreeBSD 5.4, the server hangs even when I try to access
http://instance/manage.  http://instance/manage_copyright works fine
however.

-Morten
 
 
 


-- 
Regards,

Morten

Tlf:  +47 45 44 00 69
Blog: http://www.blogologue.com
begin:vcard
fn:Morten Petersen
n:Petersen;Morten
org:Nidelven IT
adr:;;Postboks 923;Trondheim;;7409;Norway
email;internet:[EMAIL PROTECTED]
title:Project Manager
tel;work:+47 45 44 00 69
tel;cell:+47 45 44 00 69
x-mozilla-html:FALSE
url:http://www.nidelven-it.no
version:2.1
end:vcard

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] 2.9 goals

2005-07-01 Thread Jens Vagelpohl


On 1 Jul 2005, at 17:15, Florent Guillaume wrote:

Here's something else that would be nice: PAS.

Although it hasn't been tested much, so we should include it as  
early as

possible in the 2.9 cycle (i.e., why not now ? :)


Maybe not right at this moment... but I would like to see that, too.

jens

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Problem with ZSQLMethods/MySQL after update

2005-07-01 Thread Ragnar Beer
Thanks a lot for your help, Dieter, Greg, and Andy!

Dieter, you were absolutely right about the broken instances. All I had to
do was delete ZSQLMethods from my Products folder and restart Zope.
Everything was all right after that.

Andy and Greg, so far I did not have any problems using mysqlpython 1.2.0
with ZMySQLDA 2.0.8. But since Andy is the expert I now installed 2.0.9b3
and am happy with it.

:-) Cheers and thanks again,

Ragnar


On Tue, 28 Jun 2005 19:43:15 +0200
Dieter Maurer [EMAIL PROTECTED] wrote:

 Ragnar Beer wrote at 2005-6-27 18:50 +0200:
 After upgrading Zope from version 2.6.4 to 2.8.0 and mysqlpython from
 0.9.2 to 1.2.0 I cannot add or edit ZSQLMethods anymore, although there
 is an open(MySQL)db-Connection that works just fine with the same
 ZSQLMethods that cannot be edited or with external methods. The error
 I'm getting is: 
 
 There are no SQL database connections. You need to add a Zope SQL
 database connection before you can edit a Zope SQL Method.
 
 Almost surely, your ZMySQLDA instances are broken (and then
 do not behave as SQL database connection instances).
 
 Check your Zope logfile for messages of the form
 could not install product
 
 -- 
 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 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: TAL and Javascript

2005-07-01 Thread Rushabh Mehta
Rob,

I was recently working on a similar problem.
You will need to use the xmlhttprequest function in _javascript_ do
all the work. And its quite easy once you get the hang of it. Heres a
good tutorial to get started:
http://developer.apple.com/internet/webcontent/xmlhttpreq.html

For your problem, if your required server result is a simple list, let
a zope script generate a tab-delimited list and you can retrive it
using the request.responseText (see the xmlhttprequest) and skip
working with the XMLDOM, which can by quite annoying.

Rushabh


Message: 8
Date: Wed, 29 Jun 2005 12:20:17 -0700 (PDT)
From: Rob Boyd [EMAIL PROTECTED]
Subject: [Zope] TAL and _javascript_
To: zope@zope.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

Thanks to all the responders. It gave me some ideas, but alas no luck.

To clarify, I am not trying to do everything in one request. Request
one generates the page, a user event (selecting an option from a form)
fires another request via _javascript_.

like:
script tal:content=python:'function getFormats() {
  var widget = document.getElementById('orgs');
  var chosen_org = widget.options[widget.selectedIndex].value;
  var formats = %s;
  // build selection 2 options from formats
  ' % here.getDataFormats(chosen_org) /

And then a user event (onChange) calls getFormats.

Even with generating the script with a Python script or DTML, the
problem remains (for me at least) to get a value from the DOM passed as
an argument to a Python script that queries my database. If my Python
script didn't take an argument, I'd have no problem. I could do this
and use _javascript_ to build the select options from the appropriate
values. But I'd like to cut down on what the browser has to handle.
What the user chooses in the first selection can reduce what they get
to choose in selection two from 3000 choices to hundreds. I'd prefer to
have the backend reduce the result set rather than having the browser
do the work.

I thought about AJAX (no experience), but given time constraints, looks
like I'll have to load everything on the page and go from there.

Rob

___
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] python question

2005-07-01 Thread Jürgen Herrmann
hi all!

i think there should be no functional difference in the two code snippets
below, but is there any difference in performance?
(i know, the except AttributeError could possibly mask an AttributeError
in the called function...)

1.:
hook = getattr(o, '_before_transaction_commit', None)
if hook: hook()

2.:
try: o._before_transaction_commit()
except AttributeError: pass

regards, juergen herrmann
___

 XLhost.de - eXperts in Linux hosting 

Juergen Herrmann
Weiherweg 10, 93051 Regensburg, Germany
Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027

ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
WEB:  http://www.XLhost.de
___
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] python question

2005-07-01 Thread Andreas Jung



--On 1. Juli 2005 17:10:58 +0200 Jürgen Herrmann 
[EMAIL PROTECTED] wrote:



hi all!

i think there should be no functional difference in the two code snippets
below, but is there any difference in performance?


You could benchmark it :-)

-aj

pgphfg7D56dFp.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 )


Re: [Zope] python question

2005-07-01 Thread Fred Drake
On 7/1/05, Jürgen Herrmann [EMAIL PROTECTED] wrote:
 i think there should be no functional difference in the two code snippets
 below, but is there any difference in performance?

Don't know, and don't care; these are (at the Python level)
functionally different.

 (i know, the except AttributeError could possibly mask an AttributeError
 in the called function...)

Exactly.  Shouldn't be a real issue in a released version, but better
safe than sorry.

 1.:
 hook = getattr(o, '_before_transaction_commit', None)
 if hook: hook()

Better yet:

 hook = getattr(o, '_before_transaction_commit', None)
 if hook is not None: hook()


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Zope Corporation
___
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] strcoll_nocase gone after moving site?

2005-07-01 Thread Dieter Maurer
Daniel Dekany wrote at 2005-6-30 22:28 +0200:
I have to move a Plone site to another server (from some FreeBSD to a
new Trustix), while also switching from Zope 2.7.x5 to 2.7.6, and from
Python 2.3.x5 to Python 2.3.5.

Define locale in your Zope configuration file.

Then locale should be imported when Zope is initialized.

-- 
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] Import problem

2005-07-01 Thread Dieter Maurer
George Tesseris wrote at 2005-6-30 23:37 +0300:
When I try to import a specific .zexp the following error is raised:

*Error Type: AttributeError*
*Error Value: ('__new__', function __newobj__ at 0x00B8B0F0, 
(extension class Shared.DC.ZRDB.DA.SQL at 01AE2728,))

*Help please... It's crucial...

Unfortunately, it is as crucial that you include the traceback
in your problem reports...


-- 
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] Starting a search from the correct folder

2005-07-01 Thread Dieter Maurer
John Poltorak wrote at 2005-6-30 22:27 +0100:
 ...
If I want to generate a list 
of folders in say the 'groups' folder, how would I change the code above?

You are aware that you will not get a list (but a tree) when you
look down from some starting point?

When you are ready to look up (in the hierarchy), then

 obj.aq_inner.aq_parent

is the hierarchy parent of obj.

-- 
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] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf

Dieter Maurer wrote:


You are aware that you will not get a list (but a tree) when you
look down from some starting point?



I suspect he meant a list in the HTML - he is using ul and li tags 
there.


But Dieter, can you elaborate on what you mean?  Isn't the result from 
objectValues() a tuple [which would be a list in most languages].


Do you simply mean that the Folder objects may contain File, Document, 
Image or Folder objects, recursively?  If not I'm not sure I follow.


Thanks,
N

___
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] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf

Andreas Jung wrote:



--On 30. Juni 2005 22:27:37 +0100 John Poltorak [EMAIL PROTECTED] wrote:


I have some code which here:-

ul tal:condition=python: context.objectValues(['Folder'])
  li tal:repeat=item python: context.objectValues(['Folder'])
a href=ABSOLUTE_URL
   tal:attributes=href item/absolute_url
   tal:content=item/title_or_idSUB-OBJECT TITLE OR ID/a/li
/ul



What I'd like to do is skip the first list. If I want to generate a list
of folders in say the 'groups' folder, how would I change the code above?



What is your real problem? I've read the posting three time and I not 
still not getting to the point what you mean.


John, I'm not sure what you mean either -- but if my guess *is* right, 
try changing the two occurrances of context to context.groups


Nikko
___
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: [ZPT] Recursive structures

2005-07-01 Thread Nikko Wolf

Ian Bicking wrote:

I'm surprised this has never come up for me before, but now I want to 
render a recursive data structure and I'm at a loss how I might do 
that in ZPT.  Or, what the best workaround would be.  E.g.:


['a', 'b', ['c', ['d', 'e']]]

Becomes:

ul
 lia/li
 lib/li
 ul
  lic/li
  ul
   lid/li
   lie/li
  /ul
 /ul
/ul


I guess the template could call itself repeatedly.  Which means the 
list can't be embedded in any other markup.  Hrm... in Cheetah I'd do:


#def make_list(items)
ul
 #for item in items
  #if isinstance(item, list)
   $make_list(item)
  #else
   li$item/li
  #end if
 #end for
/ul
#end def
$make_list(items)

It's a code-heavy template, and maybe it should just be written in 
Python, but it's also reasonable to allow people to add classes to 
items, further logic, etc.


I think it should *definitely* be written in Python, although a Script 
(Python) should suffice.  Add a Script (Python) with an ID of 
make_list and a parameter list of items   The following is untested, 
but should work, I think. Beware of any special text in the strings 
(,,,etc).


##
text = ul\n
for item in items:
  if isinstance( item, ( list, tuple )):
  text += context.make_list( item )
  else:
 text += li + str(item) + /li\n
return text + /ul


___
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] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-07-01 Thread Jim Vine
Hello again,

So, following the recommendations from the board I
have settled on route 3 - developing a Python
Product, using Zope 3. I've been refering a lot to the
Zope 3 Book (particularly chapter 13 onwards) and have
progressed somewhat.

I've created a PropertyFolder class, which can hold
Property obects, and following the example in the book
I've been able to make it hold *only* Property
objects.

My Property class is proving a little more
difficult, however. When I've tried to make it along
the same lines as the message class in the book, I
run into difficulties - it seems to be some sort of
problem with inheriting from multiple classes /
interfaces. My workaround has been that I can include
my __setitem__.precondition within the main IProperty
interface, and make that subclass from IContainer
instead of Interface. This works for me, because I'm
not going to want Property objects to contain other
Property objects, but I really haven't been able to
track down why it should work for the message board,
but not for my classes / interfaces. The errors I was
getting before my work around seemed to be indicating
that it wasn't a container, although I was subclassing
BTreeContainer, and implementing three interfaces (one
and Interface, one and IContained, and one
IContainer).  Mostly this presented itself as Zope
complaining about using __len__ on the object. (As I
say, I have worked around this, and mention it mostly
in case it sheds any light on the issue below...)

My current problem, however, is proving harder to work
around. I want my Property objects to be able to
contain Images, and sets of attributes. (A typical set
of attributes would describe what is in the kitchen).
I have created interfaces IAttribSet(Interface),
IAttribSetContainer(IContainer) and
IAttribSetKitchen(IAttribSet); and classes AttribSet
(implements IAttribSet and IAttribSetContained) and
AttribSetKitchen (implements IAttribSetKitchen). I am
using IAttribSetContained to create a __parent__
ContainerTypesConstraint. I have wired up the kitchen
attrib set in .zcml files.

When I 'turn off' implementing IAttribSetContained, my
kitchen attrib set is working fine, in that I can add
it anywhere, and edit it. However, when I try to add a
condition saying where it can go (i.e. I only want it
to be within Property objects) it correctly only
appears as an Add-menu item within Property objects,
but on adding it, I get an error, saying
AttribSetKitchen instance has no attribute
'__parent__'. My Property and PropertyFolder objects
are implemented as BTreeContainers.

I'm really quite stumped by this, so I would
appreciate any guidance that could be provided on
tracking down the source of the errors.

Thanks,
Jim



--- Lennart Regebro [EMAIL PROTECTED] wrote:

 On 6/22/05, Jim Vine [EMAIL PROTECTED] wrote:
  I think I've convinced myself that the complexity
 of
  my app takes it beyond method 1, but I'm strugling
 to
  get my head around the implications of selecting
  method 2 or 3. Am I right in thinking that either
 of
  these will result in my building a Product? 
 
 Yes.
 
  If I
  want to add extra feature to my product on the
  development server and then port them to the live
  server (with all the data on the live server being
  left in tact), will selection of either of these
  particularly help or hinder me in this?
 
 I don't know, because when I tried 2., it turned out
 to be quite
 complicated, and I never understood how to do it. So
 I did 3. And
 afterwards I have realized that even if you do
 understand how to do 2,
 the fact that you do most of your stuff in the
 restricted python
 scripts and dtml or ZPT, means that you have tons of
 limitations to go
 around.
 
 In addition to that, you can't easily use any proper
 editors to edit
 the code, which is very annoying.
 
 Method 2 (aka ZClasses) simply seem to offer exactly
 zero benefits,
 and loads of drawbacks.
 
 Also, as mentioned earlier, unless you want to build
 your application
 on top of one of the Zope2 content management
 systems around (CPS,
 Plone, Silva, ...) you probably want too use Zope3
 for your
 application development anyway. And then only method
 3 (disk based
 development) is available.
 
 -- 
 Lennart Regebro, Nuxeo http://www.nuxeo.com/
 CPS Content Management
 http://www.cps-project.org/
 ___
 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 )
 




___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related 

[Zope] Re: [ZPT] Recursive structures

2005-07-01 Thread Tonico Strasser

Nikko Wolf schrieb:

Ian Bicking wrote:

I'm surprised this has never come up for me before, but now I want to 
render a recursive data structure and I'm at a loss how I might do 
that in ZPT.  Or, what the best workaround would be.  E.g.:


['a', 'b', ['c', ['d', 'e']]]

Becomes:

ul
 lia/li
 lib/li
 ul
  lic/li
  ul
   lid/li
   lie/li
  /ul
 /ul
/ul


The code above is not valid HTML[1]. This is one way how to do it:

ul tal:define=nodes python:['a', 'b', ['c', ['d', 'e']]]
  li metal:define-macro=item
  tal:repeat=node nodes
span tal:define=global is_list python:same_type([], node);
  content python:is_list and 'list:' or node
  tal:replace=content/
ul tal:condition=is_list
tal:define=nodes node
  li metal:use-macro=template/macros/item/
/ul
  /li
/ul

I guess the template could call itself repeatedly.  Which means the 
list can't be embedded in any other markup.


To embed it in another template simply call it:

ul tal:replace=structure here/list/

(Or define a macro and use that).

Even better if the logic is in a script that renders the template, I think.

Tonico

[1] ul can not have ul as parent
http://zvon.org/xxl/xhtmlReference/Output/Strict/el_ul.html

___
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] Re: [ZPT] Recursive structures

2005-07-01 Thread J Cameron Cooper

Nikko Wolf wrote:

Ian Bicking wrote:

I'm surprised this has never come up for me before, but now I want to 
render a recursive data structure and I'm at a loss how I might do 
that in ZPT.  Or, what the best workaround would be.  E.g.:


['a', 'b', ['c', ['d', 'e']]]

Becomes:

ul
 lia/li
 lib/li
 ul
  lic/li
  ul
   lid/li
   lie/li
  /ul
 /ul
/ul


I've made recursive macros before. It's not so different from other 
recursion techniques. Here's one to render a site tree::


 html
   head
 title tal:content=template/titleThe title/title
   /head
   body
 Site structure:

   tal:contain define=location nocall:here
div metal:use-macro=template/macros/list /
   /tal:contain

   /body
 /html

 tal:hidemacro replace=nothing
 metal:recurse define-macro=list
   ul
 li tal:repeat=elt location/objectValues
   span tal:content=elt/getIdobjectId/span
   metal:block tal:condition=elt/isPrincipiaFolderish
tal:define=location nocall:elt
   div metal:use-macro=template/macros/list /
   /metal:recurse
 /li
   /ul
 /metal:recurse
 /tal:hidemacro

It will go from 'context', of course, unless you were to change the 
definition of 'location' in the page.


You can imagine how this would work with a nested list: you just have to 
have ways of checking containership and getting contents.


--jcc

--
Building Websites with Plone
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
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-DB] Using psycopg directly in Zope Python script

2005-07-01 Thread Andreas Jung



--On 1. Juli 2005 23:28:51 +0200 Jørgen Frøjk Kjærsgaard 
[EMAIL PROTECTED] wrote:





Does Zope somehow create a restricted environment where opening a
database connection is impossible? Is there a way to bypass that
restriction?



That's a misuse of PythonScripts. They are not designed to handle such 
tasks. Use an external method or write a Zope product instead.


-aj

pgpo4O6vTMNR3.pgp
Description: PGP signature
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db