[Zope-dev] Error Message

2001-01-26 Thread Andre Schubert

Hi all

The last time i get some times the following error:

2001-01-26T08:45:55 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\260\256'
Traceback (innermost last):
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Connection.py,
line 442, in setstate
AttributeError: 'None' object has no attribute 'load'

My questions are what does that mean and how can a find out from which
Object the error comes from ?
Could anyone help??

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] AttributeError when adding ZClass product (PortalMembership)

2001-01-26 Thread Morten W. Petersen

Hi guys,

I have a problem with a product.  This product, let's call it product
SuperSecret, adds a number of folderish objects to the new instance
when it is created.  Now, if we name the SuperSecret product instance for
a, and the class instance that raises the AttributeError b, I
will show you what happens:

I am at the root folder of the Zope instace, and select the SuperSecret
entry from the Products list.  There I enter the relevant information,
and submit the form.  But then, the SuperProduct raises an exception
when the manage_add_some_class function tries to add the new b instance
to the a instance.  (No exception is raised when the offending line
which tries to access the Control_Panel via the b instance  acquisition
is commented out).

The manage method, which looks like this:

def manage_add_b(self, id, description, REQUEST=None):
"Add an instance of the b class."

self._setObject(id, b(id, description))
#get_transaction().commit()
Shared.utils.install_authentication_folder(self[id])

which calls an external function, which looks like this:

def install_authentication_folder(container):


container.Control_Panel.Products.PortalMembership.doInstall(folder=container, 
REQUEST={})

which raises an AttributeError that looks like this:

   Zope Error

   Zope has encountered an error while publishing this resource. 

   Error Type: AttributeError
   Error Value: Control_Panel

   [...]

  File /home/morten/Zope/lib/python/Products/rs/rs.py, line 56, in manage_add_a
  File /home/morten/Zope/lib/python/Products/SuperSecret/a.py, line 168, in 
__init__
(Object: CatalogAware)
  File /home/morten/Zope/lib/python/Products/SuperSecret/b.py, line 61, in 
manage_add_b
(Object: CatalogAware)
  File /home/morten/Zope/lib/python/Products/SuperSecret/Shared/utils.py, line 
211, in install_authentication_folder
(Object: CatalogAware)
  AttributeError: (see above)

Now, I guess this could be because the new instance isn't aware of it's
surroundings, but I've tried to manually commit the transaction (which
could help?), but obviously didn't...  =)

I guess it could be a solution to call a number of methods after the
product instance is added, but that's a bit too hackish for me.

Any ideas?

Thanks in advance,

Morten

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Chris Withers

Hi,

FieldIndex's don't work quite right in 2.3.

Try this:
- create a Catalog with a FieldIndex called 'test'
- create a DTML document with a property 'test', value 'fish'
- catalog the document
- now change the value of the property to 'finger' and re-catalog.

If you now search for test='finger' it'll return the document.
However, if you search for test='fish', it will also return the document, which
is wrong.

cheers,

Chris

PS: Tabular reporting ZSearch Interfaces generated from Catalogs have quite
badly b0rKen results forms, in that, for some reason, the search form ends up in
a column of the results table, very confusing...

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Brian Lloyd

 PS: Tabular reporting ZSearch Interfaces generated from Catalogs 
 have quite
 badly b0rKen results forms, in that, for some reason, the search 
 form ends up in
 a column of the results table, very confusing...

Huh? I cannot reproduce this at all (or even see how it could 
happen, looking at the tabular report dtml, which is pretty 
straightforward). You are seeing this on b3 with a totally 
freshly generated ZSearch interface that you have not altered 
(and looking at the generated dtml directly, not through a 
site-specific page that includes it)?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] Key error using manage_changeProperties

2001-01-26 Thread Espen Sorbye Frederiksen

I am pssing the category argument to the method below. The category
variable is representing a propety of the Log object.
My code below works ok when I get the property (1), but fails when I try
to
update that property (2) with a new value. I have tried to use
_[category] but it
disallowes the use of expression, understandably, as a keyword.
Any ideas how I can get around this problem?

Cheers,

Espen

dtml-let
(1)value="_.getattr(userFolder,username).Log.getProperty(category)"
newvalue="value+..."

(2)dtml-call
"_.getattr(userFolder,username).Log.manage_changeProperties(category=newvalue)"

/dtml-let


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Chris Withers

Brian Lloyd wrote:
 
  PS: Tabular reporting ZSearch Interfaces generated from Catalogs
  have quite
  badly b0rKen results forms, in that, for some reason, the search
  form ends up in
  a column of the results table, very confusing...
 
 Huh? I cannot reproduce this at all (or even see how it could
 happen, looking at the tabular report dtml, which is pretty
 straightforward).

Okay, tracked down what's happening, can't understand why :-(

Right, one of the metadata columns has the same name as the DTML method which
shows the search form 'TestCase' in this situation.
For some reason, the DTML method is being rendered instead of the meta data.

I have no idea why, but I'll take a look...

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Chris McDonough

This is fixed in CVS.  ChrisP works fast.  :-)

- Original Message - 
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 11:23 AM
Subject: Re: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3


 Chris McDonough wrote:
  
  I've put the fieldindex bug in the collector.
 
 Thanks... wasn't sure whether it was collector material or not :-)
 
 Chris
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Chris Withers

Chris Withers wrote:
 
 Okay, tracked down what's happening, can't understand why :-(

Some data points before I rush off...

- ZDebug doesn't like 2.3 very much :-S
- Python Scripts rock ;-)

However, from what ZDebug did show, it seems that the object the catalog has
found ends up on the top of the namespace stack. Because this is a DTML method,
I'm guessing the DTML method TestCase is acquired from it, before the namespace
is searched for the meta_data, which is a little screwy :-(

As to why the object is on the top of the namespace, I dunno whether it's
dtml-in or ZCatalog that's responsible...

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] Server seems to stop responding.

2001-01-26 Thread Andy McKay

I think I've traced to a hack of ZCache, I nuked with much better results. I
guess I'll wait for zope 2.3

Cheers.
--
  Andy McKay.


- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 3:40 PM
Subject: Re: [Zope-dev] Server seems to stop responding.


 Andy, look at the documentation in z2.py for the "-M" switch that writes
out
 a debug log of method accesses.

 Then visit http://www.zope.org/Members/mcdonc/HowTos/DEBUG-LOG

 It tells you how to track down hangs via stuff in your debug log.

 - Original Message -
 From: "Andy McKay" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 5:08 PM
 Subject: [Zope-dev] Server seems to stop responding.


  OS: Win2K
  Zope: 2.2.4b1, using ZServer direct
  Site, large catalog roughly 20,000 items, database size 839 MB.
 
  Problem:
 
  Zope's running quite happily, and then all of a sudden will stop
 responding
  to incoming requests. A restart and its fine. There is no memory leak
  (memory usage is very low), no other resources consuming space. All log
  files say nothing. There seems to be no obvious trigger or thing to
cause
  it, only time (or use).
 
  Im at wits end to figure out:
  a) where to start debugging (apart from log files, Control Panel debug
 etc)
  and
  b) solution...
 
  Any help will get my undying gratitude...
 
  --
Andy McKay.
 
 
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  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 )
 
 


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] ZCatalog FieldIndex bug in Zope 2.3.0b3

2001-01-26 Thread Christopher Petrilli

On 1/26/01 11:41 AM, "Chris McDonough" [EMAIL PROTECTED] wrote:

 I've put the fieldindex bug in the collector.

This is now fixed... It was a bizarre logic problem, but I could reproduce
it easily :-)  Thanks for finding this.

Chris
-- 
| Christopher Petrilli
| [EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] Passing arguments to DTML Methods

2001-01-26 Thread Jon Franz

This is an undocumented (afaik) feature of DTML methods/documents - due to
the way python
argument mapping works, you can pass any value into a 'local' variable in a
DTML method like thus:

dtml-var "myDTMLmethod(foo=5,greg=Sally)"

this the above case, Sally could be a legal variable value that will be put
into the new local greg
in your DTML method, and one named foo with the value of 5.  AFAIK this is
pass-by-value, so modifying greg in your called method will not change
sally, but I could be wrong...
I use this sort of thing quite often in one of my ongoing projects where I
need to reformat
dates strings from their mysql format to how the client wants to view
them... I have a method named
undb_dateout that uses a variable called 'dbdate' and does some string
splitting and formatting to output it.
Originally, I would do things like this with the method:

dtml-call "REQUEST.set('dbdate', currentdatevar)"
dtml-var undb_dateout

Then, on a whim I changed this to:
dtml-var "undb_dateout(dbdate=currentdatevar)"

And it worked...
Someone should add this to the DTML documentation, or at least make it stand
out more - it is VERY
useful... If no one else does I'll write-up a how-to on it.


Message: 7
Date: Thu, 25 Jan 2001 19:13:59 + (GMT)
From: Espen Sorbye Frederiksen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Message: 7
Date: Thu, 25 Jan 2001 19:13:59 + (GMT)
From: Espen Sorbye Frederiksen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope-dev] Passing arguments to DTML Methods

Sorry this, possibly, very trivial question:

How do you pass on variables to a DTML Method.
If I would use a python method I would use dtml-call "pythonmethod(var1,
var2)". This does not work with DTML Methods. First of all why? Secondly
how is it possible to get around the problem?

Hope someone kindly could answer my question,

Espen





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] ANNOUNCE: Zope 2.3.0 final released

2001-01-26 Thread Brian Lloyd

Hello all,

  Zope 2.3.0 final has been released - you can download it from
  Zope.org:

  http://www.zope.org/Products/Zope/2.3.0/

  Zope 2.3 is focused on improving productivity, ease of use and 
  performance. New features in the 2.3 release supporting these 
  goals include:

- Scripts to allow safe web management of logic, dramatically 
  improving the ability to separate logic and presentation in 
  site design

- Cache Managers to provide a powerful caching infrastructure 
  for dramatically improving site responsiveness while retaining 
  dynamicism

- Built-in infrastructure for complex virtual hosting of multiple 
  sites on one server

- Significantly improved Zope Management Interface for web-based 
  authoring and administration

- Other important changes, such as improvements in WebDAV support,
  customizable object creation, running an optional server for 
  browsing source documents, significant improvements in cataloging 
  and indexing, and a new quick start document with references to 
  the most important documentation for new users

  Zope 2.3 also marks the first feature release where a significant 
  amount of the work was done "in the fishbowl" using our open 
  development process on dev.zope.org. This release owes a lot to 
  the hard work of many in the Zope community in addition to folks 
  here at DC. The MVPs for Zope 2.3 include:

- Evan Simpson (Python scripting and SiteAccess)

- Shane Hathaway (CacheManager and many other things)

- Adam Davis (improvements to the Zope interface)

- Chris Petrilli (ZCatalog)

- Toby Dickenson (improved Python 2 support)

- Chris McDonough (improved UserFolders)

- John Odom (StructuredText NG)

- Michel Pelletier (Interfaces and new Quickstart)

- Casey Duncan (ZCatalog patches)

- Tres Seaver (FTP and DAV support in ZClasses)

- John Heintz (patch for ExtensionClass)

- Chris Withers (patches and bug hunting)

- Tom Vijlbrief (FTP rename support)

- Dieter Maurer (patches and bug hunting)

  My apologies to anyone I've missed - thanks also to the many 
  who participated the alpha and beta cycles and provided 
  feedback.

  For more information on what is new in this release, see the 
  CHANGES.txt and HISTORY.txt files for the release:

- http://www.zope.org/Products/Zope/2.3.0/CHANGES.txt

- http://www.zope.org/Products/Zope/2.3.0/HISTORY.txt


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope-dev] ANNOUNCE: Zope 2.3.0 final released

2001-01-26 Thread Andy McKay

Congrats!
--
  Andy McKay.


- Original Message - 
From: "Brian Lloyd" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 1:06 PM
Subject: [Zope-dev] ANNOUNCE: Zope 2.3.0 final released


 Hello all,
 
   Zope 2.3.0 final has been released - you can download it from
   Zope.org:
 
   http://www.zope.org/Products/Zope/2.3.0/
 
   Zope 2.3 is focused on improving productivity, ease of use and 
   performance. New features in the 2.3 release supporting these 
   goals include:
 
 - Scripts to allow safe web management of logic, dramatically 
   improving the ability to separate logic and presentation in 
   site design
 
 - Cache Managers to provide a powerful caching infrastructure 
   for dramatically improving site responsiveness while retaining 
   dynamicism
 
 - Built-in infrastructure for complex virtual hosting of multiple 
   sites on one server
 
 - Significantly improved Zope Management Interface for web-based 
   authoring and administration
 
 - Other important changes, such as improvements in WebDAV support,
   customizable object creation, running an optional server for 
   browsing source documents, significant improvements in cataloging 
   and indexing, and a new quick start document with references to 
   the most important documentation for new users
 
   Zope 2.3 also marks the first feature release where a significant 
   amount of the work was done "in the fishbowl" using our open 
   development process on dev.zope.org. This release owes a lot to 
   the hard work of many in the Zope community in addition to folks 
   here at DC. The MVPs for Zope 2.3 include:
 
 - Evan Simpson (Python scripting and SiteAccess)
 
 - Shane Hathaway (CacheManager and many other things)
 
 - Adam Davis (improvements to the Zope interface)
 
 - Chris Petrilli (ZCatalog)
 
 - Toby Dickenson (improved Python 2 support)
 
 - Chris McDonough (improved UserFolders)
 
 - John Odom (StructuredText NG)
 
 - Michel Pelletier (Interfaces and new Quickstart)
 
 - Casey Duncan (ZCatalog patches)
 
 - Tres Seaver (FTP and DAV support in ZClasses)
 
 - John Heintz (patch for ExtensionClass)
 
 - Chris Withers (patches and bug hunting)
 
 - Tom Vijlbrief (FTP rename support)
 
 - Dieter Maurer (patches and bug hunting)
 
   My apologies to anyone I've missed - thanks also to the many 
   who participated the alpha and beta cycles and provided 
   feedback.
 
   For more information on what is new in this release, see the 
   CHANGES.txt and HISTORY.txt files for the release:
 
 - http://www.zope.org/Products/Zope/2.3.0/CHANGES.txt
 
 - http://www.zope.org/Products/Zope/2.3.0/HISTORY.txt
 
 
 Brian Lloyd[EMAIL PROTECTED]
 Software Engineer  540.371.6909  
 Digital Creations  http://www.digicool.com
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 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 )
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope-dev] Looks like 2.3.0 final didn't fix bug with copying ZCatalogs ...

2001-01-26 Thread Bill Anderson

...but the error message looks better ;^)=

Installed fresh 2.3.0, and Membership, so I could finish the testing,
and preop a 2.3.0 compatible release (mmm Python Scripts yummy), but
upon the install trying to copy the MemberCatalog I get the following
traceback. Perhaps it is an issue with PythonMethods, but it looks like
it is ZCatalog to me. 

The object MemberCatalog does not support this operation 

Traceback (innermost last):
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: RoleManager)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: doInstall)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: doInstall)
  File
/local/ZopeSites/anderson-2.3/lib/python/Products/PythonMethod/PythonMethod.py,
line 168, in __call__
(Object: doInstall)
(Info: ((Factory instance at 897f0c8, 'on', None, None, 0,
'webadmin', 
 (snip raw html data from form)
  File string, line 47, in doInstall
(Object: RoleManager)
  File
/local/ZopeSites/anderson-2.3/lib/python/Products/PythonMethod/PythonMethod.py,
line 168, in __call__
(Object: copyInterface)
(Info: ((Factory instance at 897f0c8, LoginManager instance at
89c4a28, []), {}, (None,)))
  File string, line 5, in copyInterface
(Object: RoleManager)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
333, in manage_clone
(Object: ProviderContainer)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
421, in _verifyObjectPaste
(Object: ProviderContainer)
Copy Error: (see above)

==
 yup, just tried to copy the MemberCatalog, same result:
Traceback (innermost last):
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: manage_pasteObjects)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: manage_pasteObjects)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
215, in manage_pasteObjects
(Object: ApplicationDefaultPermissions)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
421, in _verifyObjectPaste
(Object: ApplicationDefaultPermissions)
Copy Error: (see above)

-- 
Bill Anderson   Linux Specialist
Modular Network Storage RD   
Random Quote:
Portable: survives system reboot.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




[Zope] http protocol

2001-01-26 Thread Oliver Vecernik

Hi all,

I'd like to write an http client for an embedded system to get
information from Zope. For debugging I want to see the traffic between
the client and Zope (http protocol). How can this be achieved?

Oliver

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] 2.3 and Products

2001-01-26 Thread Max Møller Rasmussen

From: Chris McDonough [mailto:[EMAIL PROTECTED]]

This is not true.  The behavior is the same as before... the plans to make
restart optional were waylaid by complications.  ;-(

Another thing with products. Whenever I do a referesh with the refresh tab,
another instance of the product shows up in my "add" dropdown selector. So
If I have a "maxms goodstuf" product that i am editing I get a select box
like:

Dtml Document
Dtml Method
Folder
maxms goodstuf
maxms goodstuf
maxms goodstuf
maxms goodstuf
maxms goodstuf
maxms goodstuf
maxms goodstuf
Catalog

After a little while.

Is there a solution to this?

Regards Max M

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope gets stuck

2001-01-26 Thread Gilles Lavaux

Hello,

Yes, I have encountered this pb. Do you use the sendmail tag somewhere in
your system?

Gilles
-Original Message-
From: Shai Berger [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, January 25, 2001 2:27 PM
Subject: [Zope] Zope gets stuck


Hi guys,

We've repeatedly encountered a weird situation where Zope gets
stuck. Then, when we kill one of the Zope processes, it is released
and answers requests.

Has anybody encountered anything like this? I know this is a little
short on information, but we are still trying to figure more ourselves.

The stats:

Zope version: Zope 2.2.5 (binary release, python 1.5.2, linux2-x86)
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
System Platform: linux2

We're using Oracle and ZOracleDA too, but this time they seem not
to be the culprits...

Thanks,
 Shai.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Ian Sealy

Dear all,

Does anyone fancy earning a bit of pocket money? I've got a Zope problem
that I can't solve because my Python isn't good enough and my
understanding of the ZODB is pretty much still zero.

We've got a simple Zope application that allows users to upload files
without going near the Zope management screens. For more information on
this and what the problem is, see:

http://www.egroups.com/message/zope/48084

The basic thrust is that when a large file is uploaded and
subtransactions are needed, something goes wrong.

Dieter Maurer sent a reply helpful reply (thanks Dieter) that's archived
at:

http://www.egroups.com/message/zope/48116

In it, he said:

 On the other hand, the bug is triggered by
 something. I would expect, it is an
 exception in "ZODB.Transaction:261",
 AttributeError "commit_sub".
 You can verify this, if you put an
 "import traceback; traceback.print_exc()"
 below line 270.
 Problably some non-subtransaction object
 managed to enter in "subjars".

Sure enough, Dieter was right. I get:

Traceback (innermost last):
  File "/usr/local/zope/lib/python/ZODB/Transaction.py", line 261, in commit
j.commit_sub(self)
AttributeError: commit_sub

Dieter told me to file a bug report (and he's told a couple of other
people the same thing since) but I haven't yet because I'm having
trouble replicating the problem. I can't replicate it by just copying
the two salient methods to a fresh Zope installation of Zope 2.2.5.
Other messages (e.g.  http://www.egroups.com/message/zope/48492 ) made
me suspect that it was a problem with a Product, but installing the
Products I'm using (SiteAccess, ZOracleDA, ZPyGreSQLDA and
smbUserFolder) to this fresh installation didn't replicate the bug. I
only see it if I copy over the Data.fs from the original installation.

Other people seem to have come across the same problem in different
contexts. Have a look at:

http://groups.yahoo.com/group/zope/messagesearch?query=commit_sub

We need to get this fixed ASAP so my boss has told me to send this
message to the list and offer 400 pounds (sterling) to anyone who can
fix this bug. Any takers?

Cheers,
Ian


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Chris Withers

Ian Sealy wrote:
 
 We need to get this fixed ASAP so my boss has told me to send this
 message to the list and offer 400 pounds (sterling) to anyone who can
 fix this bug. Any takers?

What version of Zope are you using?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread Ragnar Beer

What's speedbar mode?

XEmacs (speedbar mode)

  Any ideas?

I had to, love makes you do strange things.

Oh, yes indeed ;)

Ragnar



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Ian Sealy

Dear Chris,

  We need to get this fixed ASAP so my boss has told me to send this
  message to the list and offer 400 pounds (sterling) to anyone who can
  fix this bug. Any takers?
 
 What version of Zope are you using?

2.2.5 on Red Hat 6.2.

Zope version: Zope 2.2.5 (source release, python 1.5.2, linux2) 
Python version: 1.5.2 (#1, Nov 18 2000, 20:03:24) [GCC egcs-2.91.66 19990314/Linux 
(egcs- 
System Platform: linux2 

Cheers,
Ian


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] http protocol

2001-01-26 Thread Jan Muenther

Hi,

 I'd like to write an http client for an embedded system to get
 information from Zope. For debugging I want to see the traffic between
 the client and Zope (http protocol). How can this be achieved?

how about using a sniffer which can follow a tcp stream (e.g.
ethereal)??
-- 
Radio HUNDERT,6 Medien GmbH Berlin
- EDV -
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread Geoffrey L. Wright

Michel Pelletier [EMAIL PROTECTED] writes:

 On Thu, 25 Jan 2001, Chris Withers wrote:

[...]
  - FTP or WebDAV editing built in as standard (or alternative solution, like
  cadaver making it work ;-)
 
 XEmacs

Is there a WebDAV mode for XEmacs?  Or perhaps a well understood way
of tying it to cadaver?  A bit of searching on both topic led to no
immediate clueful solutions.

I'm (hopefully) just about to run into a situation where I'm going to
start off-site development on another Zope project, but I need a more
secure way of editing than XEmacs/efs...

If there were a friendly way of tying XEmacs to cadaver that might
just be the ticket


//glw


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem : ZCatalog (plain-text email this time)

2001-01-26 Thread Fabien Germain

[ Sorry for those who have ever seen this email in html format, it was a
mistake... ]


Hello,

I've got a problem with a search form.

I have a ZCatalog with lots of entries. I added the index "absolute_url" in
order to search by the files url.

Why ?
'cause I have files in organized folders like that :
/language_name/country_name/city_name/element

I'd like to do a search on "#language_name and #country_name and #city_name"
in my catalog, so I use the absolute_url.
But the problem is that the search only looks the end of the absolute_url
string, that's to say "element" in my exemple.

How could I search in all the string ?

Sorry for my bad english.

Fabien.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Can't reproduce :-(

2001-01-26 Thread Chris Withers

Ian Sealy wrote:
 
 Dear Chris,
 
   We need to get this fixed ASAP so my boss has told me to send this
   message to the list and offer 400 pounds (sterling) to anyone who can
   fix this bug. Any takers?
 
  What version of Zope are you using?
 
 2.2.5 on Red Hat 6.2.
 
 Zope version: Zope 2.2.5 (source release, python 1.5.2, linux2)
 Python version: 1.5.2 (#1, Nov 18 2000, 20:03:24) [GCC egcs-2.91.66 19990314/Linux 
(egcs-
 System Platform: linux2

Well, sorry to say, on Zope 2.2.4 and 2.2.5 under Linux and WinNT using files
between 1kb and 110Mb (Boy, did Netscape like that ;-), I can't reproduce this
:-(

If anyone comes up with a fail safe way of reproducing the bug, I'd love to nail
it, 'cos it sounds like fun :-)

good luck for now,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] TinyTable : filter query pb

2001-01-26 Thread Thierry Pasquier

usagers is a TinyTable

this, is ok :
dtml-call "REQUEST.set('usager','bruno')"
dtml-in "usagers(ident=usager)"
...

but, not this : why ?
dtml-call "REQUEST.set('usager',AUTHENTICATED_USER)"
dtml-in "usagers(ident=usager)"
... 
 
-- 
Thierry Pasquier
centre de culture scientifique, technique et industrielle en Poitou-Charentes
Espace Mends France, Poitiers, tel 0549503300 - fax 0549413856
http://www.pictascience.org
 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZServer or Zope.cgi

2001-01-26 Thread Marcus Mendes

Hello,

I have a newbie question

I'm using Zope on Linux and I have a file Zope.cgi (in my installation zope directory 
with this contents:

#!/home/Zope-2.2.1-linux2-x86/pcgi/pcgi-wrapper
PCGI_NAME=Zope
PCGI_MODULE_PATH=/home/Zope-2.2.1-linux2-x86/lib/python/Zope
PCGI_PUBLISHER=/home/Zope-2.2.1-linux2-x86/pcgi/pcgi_publisher.py
PCGI_EXE=/home/Zope-2.2.1-linux2-x86/bin/python
PCGI_SOCKET_FILE=/home/Zope-2.2.1-linux2-x86/var/pcgi.soc
PCGI_PID_FILE=/home/Zope-2.2.1-linux2-x86/var/pcgi.pid
PCGI_ERROR_LOG=/home/Zope-2.2.1-linux2-x86/var/pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM=/home/Zope-2.2.1-linux2-x86/Zope.cgi
BOBO_DEBUG_MODE=1
INSTANCE_HOME=/home/Zope-2.2.1-linux2-x86


I don't kown if I'm using Zope.cgi or ZSever.
How can I know it? 

Thanks in advance

Marcus Mendes


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] MySQL

2001-01-26 Thread Piotr Kozbial

I have upgraded to MySQL 3.23.28 and both ZMySQLDA and ZMySQLTDA were
broken.Thus I have installed latest
ZMySQLDA-2.0.4 and MySQLdb 0.3.1.

Ufter upgrade it does not work.

I am able to search pages, ie.:
http://arete.ibb.waw.pl/html/leksykon/cd_rom_report_en?nazwa_angielska=b
but I am unable to display single records, ie.:
http://arete.ibb.waw.pl/html/leksykon/single_record_report_hasla2?nazwa_ident_hasla2=933

  Traceback (innermost last):
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /opt/www/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /opt/www/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: NowehaslaReplyForm)
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: NowehaslaReplyForm)
  File /opt/www/zope/lib/python/OFS/DTMLDocument.py, line 189, in
__call__
(Object: NowehaslaReplyForm)
  File /opt/www/zope/lib/python/DocumentTemplate/DT_String.py, line 538,
in __call__
(Object: NowehaslaReplyForm)
  File /opt/www/zope/lib/python/DocumentTemplate/DT_In.py, line 711, in
renderwob
(Object: single_id_hasla2)
  KeyError: (see above)

I am unable to use TIMESTAMP from database
ie.:
Traceback (innermost last):
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /opt/www/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /opt/www/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: search_report_pl)
  File /opt/www/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: search_report_pl)
  File /opt/www/zope/lib/python/OFS/DTMLMethod.py, line 189, in __call__
(Object: search_report_pl)
  File /opt/www/zope/lib/python/DocumentTemplate/DT_String.py, line 538,
in __call__
(Object: search_report_pl)
  File /opt/www/zope/lib/python/DocumentTemplate/DT_In.py, line 480, in
renderwb
(Object: simple_search_pl)
  File /opt/www/zope/lib/python/Shared/DC/ZRDB/DA.py, line 488, in
__call__
(Object: simple_search_pl)
  File /opt/www/zope/lib/python/Shared/DC/ZRDB/DA.py, line 435, in
_cached_result
(Object: simple_search_pl)
  File /opt/www/zope/lib/python/Products/ZMySQLDA/db.py, line 231, in
query
  File /opt/www/zope/lib/python/Products/ZMySQLDA/db.py, line 104, in
_mysql_timestamp_converter
ValueError: (see above)


What is wrong. Is is MySQL or ZOPE or ZMySQLDA problem?

Regards,
Piotr
-- 
_
Piotr Kozbial http://arete.ibb.waw.pl

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] SiteRoot 2 errors

2001-01-26 Thread Stephan Goeldi

Hallo

I want to add a SiteRoot to my domain subfolder.
I installed a fresh Zope 2.2.5 and in the lib/python/Products folder I 
extracted SiteAccess-2.0.0b4-nonbin.tgz. After this I restarted Zope.
When I click to Add SiteRoot, I get the following error message:

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
  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: www/SiteRootAdd)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: www/SiteRootAdd)
  File /usr/local/zope/lib/python/App/special_dtml.py, line 120, in __call__
(Object: www/SiteRootAdd)
(Info: 
/usr/local/zope/lib/python/Products/SiteAccess/www/SiteRootAdd.dtml)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 471, 
in __call__
(Object: www/SiteRootAdd)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 408, 
in cook
(Object: www/SiteRootAdd)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 400, 
in read
(Object: www/SiteRootAdd)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 566, 
in read_raw
(Object: www/SiteRootAdd)
IOError: (see above)



Thank you for any help
-goe-








_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread A.J. Rossini

 "GLW" == Geoffrey L Wright [EMAIL PROTECTED] writes:


GLW I'm (hopefully) just about to run into a situation where I'm
GLW going to start off-site development on another Zope project,
GLW but I need a more secure way of editing than XEmacs/efs...

One possible approach (unfortunately no code) -- (X)Emacs can speak
SSL (uses it, at least, for imap communication :-), so if Zope's ftp
server could be SSL wrapped...?

A related question -- is there any way to get Zope to listen to scp
(ssh's copy)?

(I'm interested in exactly the same thing, sigh...).

best,
-tony

-- 
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
UW Biostat/Center for AIDS Research [EMAIL PROTECTED]
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]
 (friday is unknown) 
FHCRC: M--W : 206-667-7025 (fax=4812)|Voicemail is pretty sketchy
CFAR:  ??   : 206-731-3647 (fax=3694)|Email is far better than phone
UW:Th   : 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions (was Can't reproduce)

2001-01-26 Thread Chris McDonough

Subtransactions aren't compatible with most database adapters.

I'm not sure what to do about this one.

- Original Message -
From: "Ian Sealy" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 7:55 AM
Subject: Re: [Zope] Can't reproduce :-(


 Dear all,

 We need to get this fixed ASAP so my boss has told me to send this
 message to the list and offer 400 pounds (sterling) to anyone who
can
 fix this bug. Any takers?
   
What version of Zope are you using?
  
   2.2.5 on Red Hat 6.2.
  
   Zope version: Zope 2.2.5 (source release, python 1.5.2, linux2)
   Python version: 1.5.2 (#1, Nov 18 2000, 20:03:24) [GCC egcs-2.91.66
19990314/Linux (egcs-
   System Platform: linux2
 
  Well, sorry to say, on Zope 2.2.4 and 2.2.5 under Linux and WinNT using
files
  between 1kb and 110Mb (Boy, did Netscape like that ;-), I can't
reproduce this
  :-(
 
  If anyone comes up with a fail safe way of reproducing the bug, I'd love
to nail
  it, 'cos it sounds like fun :-)

 I've finally managed to replicate the bug consistently, so I've just
 submitted it to the Collector:

 http://classic.zope.org:8080/Collector/1895/view

 I now know what causes it so I'm able to work around it, which means
 that I'm afraid the offer of 400 quid to fix the bug is now
 withdrawn. Sorry.

 The bug only occurs if the DTML Method that adds the large file tries to
 call a Z SQL Method that uses the ZPyGreSQLDA. Here's the description I
 just submitted to the Collector:

 Occurs on Zope 2.2.5 with ZPyGreSQLDA-0-0-3 installed. If you have a
 form like this:

 form action="addfile" method="POST" enctype="multipart/form-data"
 input type="file" name="file"br
 Filename: input type="text" name="filename"br
 input type="submit" value="Upload"
 /form

 and a DTML Method called addfile:

 dtml-in expr="sql()"/dtml-in
 dtml-call expr="manage_addFile(filename, file=file)"
 OK

 where sql is a Z SQL Method that uses a PyGreSQL database connection.
 Trying to upload a file larger than about 128 kb gives:

 Error Type: AttributeError
 Error Value: abort_sub

 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 175, in
publish
   File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit
   File /usr/local/zope/lib/python/ZODB/Transaction.py, line 290, in commit
 AttributeError: (see above)

 Cheers,
 Ian


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Chris Withers

Chris McDonough wrote:
 
 Subtransactions aren't compatible with most database adapters.

How come?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread Phil Harris

You could use STunnel to wrap Zope in SSL, www.stunnel.org.

Works fine for me.

Phil

- Original Message -
From: "A.J. Rossini" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 2:53 PM
Subject: Re: [Zope] Editors [OT]


  "GLW" == Geoffrey L Wright [EMAIL PROTECTED] writes:


 GLW I'm (hopefully) just about to run into a situation where I'm
 GLW going to start off-site development on another Zope project,
 GLW but I need a more secure way of editing than XEmacs/efs...

 One possible approach (unfortunately no code) -- (X)Emacs can speak
 SSL (uses it, at least, for imap communication :-), so if Zope's ftp
 server could be SSL wrapped...?

 A related question -- is there any way to get Zope to listen to scp
 (ssh's copy)?

 (I'm interested in exactly the same thing, sigh...).

 best,
 -tony

 --
 A.J. Rossini Rsrch. Asst. Prof. of Biostatistics
 UW Biostat/Center for AIDS Research [EMAIL PROTECTED]
 FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]
  (friday is unknown) 
 FHCRC: M--W : 206-667-7025 (fax=4812)|Voicemail is pretty sketchy
 CFAR:  ??   : 206-731-3647 (fax=3694)|Email is far better than phone
 UW:Th   : 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] TinyTable : filter query pb

2001-01-26 Thread Aleksander Salwa

On Fri, 26 Jan 2001, Thierry Pasquier wrote:

 usagers is a TinyTable
 
 this, is ok :
 dtml-call "REQUEST.set('usager','bruno')"
 dtml-in "usagers(ident=usager)"
 ...
 
 but, not this : why ?
 dtml-call "REQUEST.set('usager',AUTHENTICATED_USER)"
 dtml-in "usagers(ident=usager)"

Because 'bruno' is a string, while AUTHENTICATED_USER is an instance of
some class (when used in dtml-var AUTHENTICATED_USER it is automatically
converted to string - user's id in that case).
Try AUTHENTICATED_USER.getId().

[EMAIL PROTECTED], [EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] HiperDom available outside of Zope?

2001-01-26 Thread Hamish Lawson

Are the XML templating facilities of HiperDom available outside of 
Zope as a Python module, or are there intentions in that direction?

Hamish Lawson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Re: Lost in name Space...

2001-01-26 Thread James Sintz

You can also do the following:

dtml-var "RandomGretting.Greet(_.None, _)"

Jamey

 -Original Message-
 From: Prateep Siamwalla [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, January 26, 2001 6:20 AM
 To:   [EMAIL PROTECTED]
 Subject:  [Zope] Re: Lost in name Space...
 
 Ok, found the answer:
 
 dtml-with RandomGreeting
 dtml-var Greet
 /dtml-with
 
 
 - Original Message - 
 From: Prateep Siamwalla [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, January 26, 2001 5:55 PM
 Subject: Lost in name Space...
 
 
  Sorry if you happen to see this for the third time, I have been trying
  to post this on egroups, but have failed on several occasions.
  
  Hi,
  Zope newbie here, a bit lost on namespaces...
  
  I have created a folder in the zope root called "RandomGreeting".  
  Inside this folder, there is one DTML METHOD called "Greet".  "Greet" 
  contains the following line:
  
  pdtml-var expr="_.whrandom.choice(sayHellos)"/p
  
  "sayHellos" is a property of the "RandomGreeting" folder, and 
  contains 4 lines which are various ways to say 
  hello : "Ola","Hi","Bonjour","Sawasdi".  The purpose of this method
  is to print out a random greeting.
  
  Everytime i click "View" for this DTML Method, i get a random hello.  
  Fine, that is exactly what I want.
  
  The problem is that I am trying to use this "method" from its parent 
  folder (the root folder as a matter of fact).  I have inserted the 
  following bit into the top level "index_html" DTML Method of my Zope 
  root near the begining, so that it produces a random hello on the 
  front page everytime someone accesses it.
  
  I have tried :
  dtml-var RandomGreeting.Greet
  dtml-var RandomGreeting.Greet()
  dtml-var "RandomGreeting.Greet()"
  dtml-var /RandomGreeting/Greet
  
  all of these, to know avail.  I am getting either a NameError or 
  KeyError.  I am pretty sure I'm missing a simple concept here. It is 
  possible to call functions from child objects is it not? 
  
  Please help with some enlightenment.  Many thanks in advance.
  
  teep
  
  
  
  
  
  
  
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Chris McDonough

Because most databases don't have the notion of a subtransaction.

- Original Message - 
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 10:10 AM
Subject: Re: [Zope] subtransactions


 Chris McDonough wrote:
  
  Subtransactions aren't compatible with most database adapters.
 
 How come?
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] WYSIWYG editor

2001-01-26 Thread Lars Heber

Hi folks,

I have been looking for a _free_ WYSIWYG HTML editor for a while now,
but I didn't find anything suitable.

It should accept DTML tags - not only include them within htmlbody
and /body/html but replace those HTML tags by the DTML tags.

It has to be WYSIWYG, not only plain HTML editor, for most stupid
considered users (DAUs :-) ).
Something similar like NS Composer, AOL press, ...

I tried several different free software, without success in my special
case.

Perhaps one of you uses something like that...

TIA

Lars


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope soon at http://serverwatch.internet.com

2001-01-26 Thread tommy b

Just thought you all might want to see this...

From: "Newman, Amy" [EMAIL PROTECTED]
To: "tommy b" [EMAIL PROTECTED]
Subject: RE: please add zope
Date: Thu, 25 Jan 2001 12:30:48 -0500

Tommy,

One of our reviewers recently reviewed Zope. Look for the review to be on
ServerWatch in the next week or so.

Regards,
Amy

Amy Newman
Managing Editor
ServerWatch: http://serverwatch.internet.com
Web Server Compare: http://webcompare.internet.com

internet.com Corp.
203 662 2817
[EMAIL PROTECTED]


--== Sent via Deja.com ==--
http://www.deja.com/



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Chris McDonough

Currently, yes.  This is arguably wrong.

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 10:35 AM
Subject: Re: [Zope] subtransactions


 Chris McDonough wrote:
 
  Because most databases don't have the notion of a subtransaction.

 Hang on... how come, if a file upload needs to commit a subtransaction,
that
 means that an SQL method you call while processing the same request also
needs
 to support sub-transactions?

 confusedly,

 Chris



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Chris Withers

Chris McDonough wrote:
 
 Because most databases don't have the notion of a subtransaction.

Hang on... how come, if a file upload needs to commit a subtransaction, that
means that an SQL method you call while processing the same request also needs
to support sub-transactions?

confusedly,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Uptime.

2001-01-26 Thread Jason C. Leach

hi,

I was reading in Linux Journal about the Netcraft survey.  They mention
some stats on Zope.  I think a few of the hosts with really good up-times
were using FreeBSD and Zope, if not that it was Linux and Zope.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteRoot 2 errors

2001-01-26 Thread Evan Simpson

From: Stephan Goeldi [EMAIL PROTECTED]
 I want to add a SiteRoot to my domain subfolder.
 I installed a fresh Zope 2.2.5 and in the lib/python/Products folder I
 extracted SiteAccess-2.0.0b4-nonbin.tgz. After this I restarted Zope.
 When I click to Add SiteRoot, I get the following error message:
[snip]
   File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 566,
 in read_raw
 (Object: www/SiteRootAdd)
 IOError: (see above)

Check the file ownership/permissions on the SiteAccess directory and its
subdirectories.

Cheers,

Evan @ digicool  4-am


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] TinyTable : filter query pb

2001-01-26 Thread Bak @ kedai


-Original Message-
From: Thierry Pasquier [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, January 26, 2001 8:21 PM
Subject: [Zope] TinyTable : filter query pb


usagers is a TinyTable

this, is ok :
dtml-call "REQUEST.set('usager','bruno')"
dtml-in "usagers(ident=usager)"
...

but, not this : why ?
dtml-call "REQUEST.set('usager',AUTHENTICATED_USER)"
dtml-in "usagers(ident=usager)"
...

i think you want
untested
dtml-call "REQUEST.set('usager',AUTHENTICATED_USER.getUserName())"

/untested


--
Thierry Pasquier
centre de culture scientifique, technique et industrielle en
Poitou-Charentes
Espace Mends France, Poitiers, tel 0549503300 - fax 0549413856
http://www.pictascience.org


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Phil Harris

Now that's a good question ;)
- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 3:35 PM
Subject: Re: [Zope] subtransactions


 Chris McDonough wrote:
 
  Because most databases don't have the notion of a subtransaction.

 Hang on... how come, if a file upload needs to commit a subtransaction,
that
 means that an SQL method you call while processing the same request also
needs
 to support sub-transactions?

 confusedly,

 Chris

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] 2.3 and Products

2001-01-26 Thread Steve Spicklemire


Take a look.. 

http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/C0FFC7204901563A

-steve

 "MM" == =?iso-8859-1?Q?Max M=F8ller Rasmussen?= iso-8859-1 writes:

MM From: Chris McDonough [mailto:[EMAIL PROTECTED]]

 This is not true.  The behavior is the same as before... the
 plans to make restart optional were waylaid by complications.
 ;-(

MM Another thing with products. Whenever I do a referesh with the
MM refresh tab, another instance of the product shows up in my
MM "add" dropdown selector. So If I have a "maxms goodstuf"
MM product that i am editing I get a select box like:

MM Dtml Document Dtml Method Folder maxms goodstuf maxms goodstuf
MM maxms goodstuf maxms goodstuf maxms goodstuf maxms goodstuf
MM maxms goodstuf Catalog

MM After a little while.

MM Is there a solution to this?

MM Regards Max M

MM ___ Zope maillist
MM - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **
MM No cross posts or HTML encoding!  ** (Related lists -
MM http://lists.zope.org/mailman/listinfo/zope-announce
MM http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Evan Simpson

From: Fred Yankowski [EMAIL PROTECTED]
 for the very last case, "a.b.c.x".  I just can't follow why the
 equivalent expression isn't

 x.__of__(a).__of__(c.__of__(b.__of__(a)))

 rather than the more complex answer given:

 x.__of__(a).__of__(b.__of__(a)).__of__(c.__of__(b.__of__(a)))

You can expand any access path into an acquisition expression using the
following 3-1/2 rules:

1. Given an unwrapped object 'x', x.child = (child o x)
2. Given a wrapper (self o parent),
  a. (self o parent).child = self.child o (self o parent) if 'child' is
found in 'self'.
  a. (self o parent).child = parent.child o (self o parent) if 'child' is
found in 'parent'.
3. Reduce ((a o b) o (b o c)) to (a o (b o c)) as soon as it appears.

So, a.b = (b o a).  a.b.c = (b o a).c = (b.c o (b o a)) = (c o (b o a)).
Finally, a.b.c.x = (c o (b o a)).x = ((b o a).x o (c o (b o a))) =
   ((a.x o (b o a)) o (c o (b o a))) = (((x o a) o (b o a)) o (c o (b o a)))

 When I run the test cases given in the document I see that the latter
 does match the behavior, but I find that baffling.  In particular, why
 is the effective search order x-a-b-c rather than x-a-c-b?  It almost
 looks like the effective search order could be described as "up
 through the containment heirarchy, then down through the remaining
 acquired path", but I'm not at all sure if that's a valid
 generalization.

Almost.  It's "up through the containment hierarchy, then the rest of it
somehow".  Trying to control or predict the exact search order for any but
the simplest acquisition trees is a dangerous game.  You can read it off
directly from the algebra form, as in (((x o a) o (b o a)) o (c o (b o a)))
= x, a, b, c (ignoring duplicates), but it's unlikely to be useful, as you
saw.

Cheers,

Evan @ digicool  4-am


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread Timothy Wilson

On Fri, 26 Jan 2001, Phil Harris wrote:

 You could use STunnel to wrap Zope in SSL, www.stunnel.org.

Phil,

Could you expand on this a bit? I would be very interested in wrapping all
access to "manage" in SSL. Is that possible?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] HiperDom available outside of Zope?

2001-01-26 Thread Martijn Pieters

On Fri, Jan 26, 2001 at 03:23:02PM +, Hamish Lawson wrote:
 Are the XML templating facilities of HiperDom available outside of 
 Zope as a Python module, or are there intentions in that direction?

HiperDom isn't available outside of Zope, yet. 

There are tentative plans where HiperDom or a decendant of HiperDom can be
used outside of Zope as an XML templating system, tough. I can't give you
anything more definite than that though, certainly no dates.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] WYSIWYG editor

2001-01-26 Thread Martijn Pieters

On Fri, Jan 26, 2001 at 04:35:42PM +0100, Lars Heber wrote:
 Hi folks,
 
 I have been looking for a _free_ WYSIWYG HTML editor for a while now,
 but I didn't find anything suitable.
 
 It should accept DTML tags - not only include them within htmlbody
 and /body/html but replace those HTML tags by the DTML tags.
 
 It has to be WYSIWYG, not only plain HTML editor, for most stupid
 considered users (DAUs :-) ).
 Something similar like NS Composer, AOL press, ...
 
 I tried several different free software, without success in my special
 case.
 
 Perhaps one of you uses something like that...

Have you tried W3C's Amaya? I haven't tired it myself, but it should work
if you supply your own DTD that allows the DTML tags within a HTML page.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Ron Bickers

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Andy Dustman
 Sent: Friday, January 26, 2001 12:42 AM
 To: Randall F. Kern
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] ZMySQLDA problems after upgrade

 be returned to it by the query method, mysql_store_result is the way to
 go. And since Zope passes max_rows as a separate parameter, it makes sense
 (to me) to make use of it.

How about excluding the automatic LIMIT clause if max_rows is set to 0?
Would that confuse people?

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] LoginManager, can't get past login form

2001-01-26 Thread Fred Yankowski

Nick,

Thank you!  Installing the latest ZPatterns did the trick, exactly as
you said.  EXcellent.

But I still wish I had some way to test the pieces of the application,
or to at least trace their operation.  ZPatterns is a bit too opaque
for my taste, particularly given its complexity, unfamiliarity and
immaturity (in the sense of being new and not fully developed).

On Fri, Jan 26, 2001 at 06:12:52PM +1300, Nick McDowell wrote:
 I encountered the same problem.  I soon realized that the ZPatterns that is
 packaged with LoginManger is a version different to the one Dan Pierson
 mentions in his article.

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] EMail with uploaded attachments, Part II

2001-01-26 Thread Klaus Herrmann

Hi *!

I figured out how it all works with dtml-mime etc, but i still have problems:
How do I determinate the filename and mime-type of the uploaded file?

i have 
input type=file size=18 maxlength=300 name=attached_file
and can get my data with attached_file.read(), but how do i do it when i want
to have filename and mime-type correctly filled in in
dtml-boundary type=??? encode=base64 filename=??? name=???
?

any suggestions?

thanks in advance!

Klaus

-- 
Klaus Herrmann [EMAIL PROTECTED]
Goelz  Schwarz GmbH, Munich
www.goelz.com
phone:+49 - (0)89 - 544 67 0 22
fax: +49 - (0)89 - 544 67 0 10




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] PythonScripts documentation

2001-01-26 Thread Gerald Gutierrez


Where is the latest documentation for PythonScripts located? The closest I 
found is

http://www.zope.org/Members/4am/PythonMethod

but it is dated and contains minimal information.

I'm specifically interested in what I can do with them and what I cannot do 
with them.

Thanks.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] sending variables/parameters via hyperlink

2001-01-26 Thread Horatio B. Bogbindero


hello people, i am extremely new to zope. from the time i have sent 
this email i would have been 4 hours old as a zope newbie. i would 
just like to congratulate the people responsible for zope. like i said
before, it is a content managers dream come true.

anyway, i seem to have a thing i cannot do.

we can pass variables/parameters via post in a webform. however, i would
like to pass as variable/parameter via a hyperlink. in regular html i
would be something like 

a href="newpage.htm?variablename=value"Sent value to newpage.htm/a

i get this error:

error start-o
Error response

Error code 400. 

Message: Bad Request. 
---error endo
 
is this expected behavior? if so what should i do so emulate something
like this method of paramter/variable passing using anchors? 

thanks.

--
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email  :  [EMAIL PROTECTED]
web:  http://cersa.admu.edu.ph/
phone  :  63(2)4266001-5925/5904
 
Democracy means simply the bludgeoning of the people by the people for
the people.
-- Oscar Wilde
 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Ron Bickers

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron
 Bickers
 Sent: Friday, January 26, 2001 11:28 AM
 To: Andy Dustman; Randall F. Kern
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Zope] ZMySQLDA problems after upgrade

 How about excluding the automatic LIMIT clause if max_rows is set to 0?
 Would that confuse people?

Oh!  It already does that.  So if you want to make your own LIMIT clause,
just set max_rows to 0.  Correct me, Andy, if this is a bad thing.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] SQL-based LoginManager and subtransactions

2001-01-26 Thread Fred Yankowski

I haven't been following this discussion, but it sounds like there's
the potential for SQL operations performed by LoginManager to
interfere with other SQL operations such as logging uploaded files, in
the case where the database system does not support nested (sub-)
transactions.  Correct?  If so, would it help to create a separate
database access object, and therefore separate connection (I think),
just for the use of LoginManager?  Or could this cause some deadlock
between the LoginManager and other connections?  I'm quite interested
in potential problems here as I plan to use PostgreSQL with
LoginManager on my sites.

On Fri, Jan 26, 2001 at 06:23:57PM +0100, Oliver Bleutgen wrote:
 As we use Loginmanager with postgres, I have know idea how to not
 invoke Z SQL methods when upload.  Has anybody an idea if and under
 what circumstances the above snipped could do harm?

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Andy Dustman

On Fri, 26 Jan 2001, Ron Bickers wrote:

  How about excluding the automatic LIMIT clause if max_rows is set to 0?
  Would that confuse people?
 
 Oh!  It already does that.  So if you want to make your own LIMIT clause,
 just set max_rows to 0.  Correct me, Andy, if this is a bad thing.

That sounds very much like a good thing. I will have to add that to the
tip I have (really, re-write it). I actually forgot that it did
that. Randy, does setting max_rows to zero fix things for you?

-- 
Andy Dustman PGP: 0xC72F3F1D
@   .net http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
-- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Randall F. Kern

You will get 0 rows if you use max_rows=0.

-Randy

-Original Message-
From: Ron Bickers [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 10:05 AM
To: Ron Bickers; Andy Dustman; Randall F. Kern
Cc: [EMAIL PROTECTED]
Subject: RE: [Zope] ZMySQLDA problems after upgrade


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron
 Bickers
 Sent: Friday, January 26, 2001 11:28 AM
 To: Andy Dustman; Randall F. Kern
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Zope] ZMySQLDA problems after upgrade

 How about excluding the automatic LIMIT clause if max_rows is set to
0?
 Would that confuse people?

Oh!  It already does that.  So if you want to make your own LIMIT
clause,
just set max_rows to 0.  Correct me, Andy, if this is a bad thing.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Andy Dustman

On Fri, 26 Jan 2001, Randall F. Kern wrote:

 You will get 0 rows if you use max_rows=0.

OK, I agree that this is a legit bug, and I am in the process of working
up a new patch. I'll send it off-list when it's ready.

-- 
Andy Dustman PGP: 0xC72F3F1D
@   .net http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
-- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] ZMySQLDA problems after upgrade

2001-01-26 Thread Ron Bickers

Yeah... I just realized that's what broke my 'select LAST_INSERT_ID() as
newid' query where a LIMIT clause causes a MySQL error.  I had max_rows set
to 0 and all of a sudden I was getting Zope errors.

This worked in earlier DAs.

Thanks for the upcoming fix, Andy.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]

 -Original Message-
 From: Randall F. Kern [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 26, 2001 1:22 PM
 To: Ron Bickers; Andy Dustman
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Zope] ZMySQLDA problems after upgrade


 You will get 0 rows if you use max_rows=0.

 -Randy


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Fred Yankowski

Thank you for describing the transformation rules in detail.  With those
I can mechanically create the same acquisition expression that you get. 
Working some further examples with this knowledge [and how can I use
this knowledge to make mo' money?], I find that given a containment tree
like this:

  a -- b -- c
   \-- x -- y

the access path a.b.c.x.y results in a search order of (y, x, a, b, c)

Evan Simpson wrote:
 Trying to control or predict the exact search order for any but
 the simplest acquisition trees is a dangerous game.  You can read it off
 directly from the algebra form, as in (((x o a) o (b o a)) o (c o (b o a)))
 = x, a, b, c (ignoring duplicates), but it's unlikely to be useful, as you
 saw.

Now, does that bother anyone besides me?  Since acquisition is intrinsic
and ubiquitous in Zope, shouldn't we be concerned that it is hard to
control or predict?

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] TinyTable : filter query pb

2001-01-26 Thread Mike Renfro

On Fri, Jan 26, 2001 at 11:39:51PM +0800, Bak @ kedai wrote:

 i think you want
 untested
 dtml-call "REQUEST.set('usager',AUTHENTICATED_USER.getUserName())"
 
 /untested

Any way we can get this included in the Zope book? There's a section
where they show using getUserName(), but this whole
"AUTHENTICATED_USER is an object, not a string" business comes up
pretty frequently.

-- 
Mike Renfro  / RD Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Evan Simpson

From: Fred Yankowski [EMAIL PROTECTED]
 Now, does that bother anyone besides me?  Since acquisition is intrinsic
 and ubiquitous in Zope, shouldn't we be concerned that it is hard to
 control or predict?

Keep in mind that it is only the *order after containment* that has this
problem. For instance, schemes to "skin" a subfolder by changing access
paths should ensure that there is always exactly one "skin" implementation
in the acquisition path.  It is tempting to provide a "default skin" in the
containment path, but then you can't override it.

Cheers,

Evan @ digicool  4-am


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts documentation

2001-01-26 Thread corey

And upon Friday of January 26, the illustrious Gerald Gutierrez spake thusly...
 
 Where is the latest documentation for PythonScripts located? The closest I 
 found is
 
 http://www.zope.org/Members/4am/PythonMethod
 
 but it is dated and contains minimal information.
 
 I'm specifically interested in what I can do with them and what I cannot do 
 with them.
 


  Yes - excellent question; in fact I'm seeking the same information
  concerning PerlScripts as well. Mainly - I'd like to know what I can
  and can't do with them. The documentation is quite minimal in that 
  regard - for both Perl *and* Python scripts it seems.

  Is there any where else I could go to seek out more information than
  that provided in the Zope Book and at 
  http://www.zope.org/Members/andym/wiki/FrontPage  ?


Beers,

Corey


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts documentation

2001-01-26 Thread Chris McDonough

Corey,

For Perl Scripts may want to take a look at:

http://www.usenix.org/publications/library/proceedings/als2000/full_papers/a
as/aas_html/index.html


It's not very technical, but it gives a good overview.

More docs for Perl Scripts should be coming RSN (they'll be in the help
system).

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 3:05 PM
Subject: Re: [Zope] PythonScripts documentation


 And upon Friday of January 26, the illustrious Gerald Gutierrez spake
thusly...
 
  Where is the latest documentation for PythonScripts located? The closest
I
  found is
 
  http://www.zope.org/Members/4am/PythonMethod
 
  but it is dated and contains minimal information.
 
  I'm specifically interested in what I can do with them and what I cannot
do
  with them.
 


   Yes - excellent question; in fact I'm seeking the same information
   concerning PerlScripts as well. Mainly - I'd like to know what I can
   and can't do with them. The documentation is quite minimal in that
   regard - for both Perl *and* Python scripts it seems.

   Is there any where else I could go to seek out more information than
   that provided in the Zope Book and at
   http://www.zope.org/Members/andym/wiki/FrontPage  ?


 Beers,

 Corey


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts documentation

2001-01-26 Thread Jim Washington

The new online help in 2.3 may have some answers to your questions.  Do
you have that?
It's in Zope Help-API Reference-PythonScript

-- Jim Washington

Gerald Gutierrez wrote:
 
 Where is the latest documentation for PythonScripts located? The closest I
 found is
 
 http://www.zope.org/Members/4am/PythonMethod
 
 but it is dated and contains minimal information.
 
 I'm specifically interested in what I can do with them and what I cannot do
 with them.
 
 Thanks.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts documentation

2001-01-26 Thread Andy McKay

At the moment there isn't a lot. There's also a pod in zoperl, I'll stick
that up shortly...
--
  Andy McKay.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 12:05 PM
Subject: Re: [Zope] PythonScripts documentation


 And upon Friday of January 26, the illustrious Gerald Gutierrez spake
thusly...
 
  Where is the latest documentation for PythonScripts located? The closest
I
  found is
 
  http://www.zope.org/Members/4am/PythonMethod
 
  but it is dated and contains minimal information.
 
  I'm specifically interested in what I can do with them and what I cannot
do
  with them.
 


   Yes - excellent question; in fact I'm seeking the same information
   concerning PerlScripts as well. Mainly - I'd like to know what I can
   and can't do with them. The documentation is quite minimal in that
   regard - for both Perl *and* Python scripts it seems.

   Is there any where else I could go to seek out more information than
   that provided in the Zope Book and at
   http://www.zope.org/Members/andym/wiki/FrontPage  ?


 Beers,

 Corey


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ANNOUNCE: Zope 2.3.0 final released

2001-01-26 Thread Brian Lloyd

Hello all,

  Zope 2.3.0 final has been released - you can download it from
  Zope.org:

  http://www.zope.org/Products/Zope/2.3.0/

  Zope 2.3 is focused on improving productivity, ease of use and 
  performance. New features in the 2.3 release supporting these 
  goals include:

- Scripts to allow safe web management of logic, dramatically 
  improving the ability to separate logic and presentation in 
  site design

- Cache Managers to provide a powerful caching infrastructure 
  for dramatically improving site responsiveness while retaining 
  dynamicism

- Built-in infrastructure for complex virtual hosting of multiple 
  sites on one server

- Significantly improved Zope Management Interface for web-based 
  authoring and administration

- Other important changes, such as improvements in WebDAV support,
  customizable object creation, running an optional server for 
  browsing source documents, significant improvements in cataloging 
  and indexing, and a new quick start document with references to 
  the most important documentation for new users

  Zope 2.3 also marks the first feature release where a significant 
  amount of the work was done "in the fishbowl" using our open 
  development process on dev.zope.org. This release owes a lot to 
  the hard work of many in the Zope community in addition to folks 
  here at DC. The MVPs for Zope 2.3 include:

- Evan Simpson (Python scripting and SiteAccess)

- Shane Hathaway (CacheManager and many other things)

- Adam Davis (improvements to the Zope interface)

- Chris Petrilli (ZCatalog)

- Toby Dickenson (improved Python 2 support)

- Chris McDonough (improved UserFolders)

- John Odom (StructuredText NG)

- Michel Pelletier (Interfaces and new Quickstart)

- Casey Duncan (ZCatalog patches)

- Tres Seaver (FTP and DAV support in ZClasses)

- John Heintz (patch for ExtensionClass)

- Chris Withers (patches and bug hunting)

- Tom Vijlbrief (FTP rename support)

- Dieter Maurer (patches and bug hunting)

  My apologies to anyone I've missed - thanks also to the many 
  who participated the alpha and beta cycles and provided 
  feedback.

  For more information on what is new in this release, see the 
  CHANGES.txt and HISTORY.txt files for the release:

- http://www.zope.org/Products/Zope/2.3.0/CHANGES.txt

- http://www.zope.org/Products/Zope/2.3.0/HISTORY.txt


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SQL-based LoginManager and subtransactions

2001-01-26 Thread Oliver Bleutgen

 I haven't been following this discussion, but it sounds like there's
 the potential for SQL operations performed by LoginManager to
 interfere with other SQL operations such as logging uploaded files, in
 the case where the database system does not support nested (sub-)
 transactions.  Correct? 

No, but I'm really not familiar enough with the ZODB machinery and 
zope internals to tell do much more than wild guesses.
The problem seems to be that the ZODB and things like Zcatalog know
about subtransactions (you can disable them with the latter one),
but some (the most) zope db-adapters don't.
Now zope seems to use subtransactions internally and to expect the DAs 
to provide them also (commit_sub), but for now it seems to not completly
clear when and why - see the thread "subtransactions".
For file-uploads the threshold may be ~ 120kb, that is which 
bites people with loginmanager/postgres.
The workaround from I cited should at least solve the zope-error,
but I have no idea if it can hurt.
The best thing would be to properly implement the missing methods in the
DAs, I guess, unfortunately this is above my head for now.

PS: the sybase DA seems to know about commit_sub


cheers,
oliver

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Meaning of error?

2001-01-26 Thread Dieter Maurer

Steven Grimes writes:
  I'm trying to write a report for a system and When I try to view my document
  by clicking on the view tab at the top of the management screen I receive
  the following error:
  
  !
  Temporarily Unavailable
  The resource you requested is temporarily unavailable - please try again
  later.
  (107) bad stdout strlen (0)
This message was probably generated by a proxy or intermediate
Web server.
Apparently, it got an empty response.

Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] http protocol

2001-01-26 Thread Dieter Maurer

Oliver Vecernik writes:
  I'd like to write an http client for an embedded system to get
  information from Zope. For debugging I want to see the traffic between
  the client and Zope (http protocol). How can this be achieved?
Shane's TCPWatch


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Instatiate object instances :-)

2001-01-26 Thread Dieter Maurer

Tom Jenkins writes:
  Right, the getPhysicalPath method definately works... although I've only
  used the unrestrictedTraverse in python classes.  I haven't delved too
  deeply in how to use the tuple returned by getPhysicalPath in DTML.
"unrestrictedTraverse" is not available in DTML, only
its restricted variant.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Can't reproduce :-(

2001-01-26 Thread Dieter Maurer

Ian Sealy writes:
  I've finally managed to replicate the bug consistently, so I've just
  submitted it to the Collector:
  
   http://classic.zope.org:8080/Collector/1895/view
Very good!

In fact, this problem was known but not recognized in the new
context!

The incompatibility between "subtransaction" and "Z SQL methods"
is a well known problem documented with ZCatalog.

Apparently, someone at DC decided that subtransaction are
good, too, to upload images. Maybe, this was not so good an
idea. While for ZCatalog, subtransactions can be disabled,
this apparently is not the case for image uploads.



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Dieter Maurer

Chris McDonough writes:
  Currently, yes.  This is arguably wrong.
Can you tell us, what the semantics of subtransactions is?

It has been my impression that subtransactions are a kludge,
essentially implemented for ZCatalog, to reduce the amount
of main memory for large transactions.
Rather than keep all modified objects in memory,
they are flushed onto a file to be copied from there
when the transaction is finally commited.

If this is the case, then objects that do not need
such hackery, simply provide empty "commit_sub" and
"abort_sub" and do all their work in "commit".

Dieter
  
  - Original Message -
  From: "Chris Withers" [EMAIL PROTECTED]
  To: "Chris McDonough" [EMAIL PROTECTED]
  Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, January 26, 2001 10:35 AM
  Subject: Re: [Zope] subtransactions
  
  
   Chris McDonough wrote:
   
Because most databases don't have the notion of a subtransaction.
  
   Hang on... how come, if a file upload needs to commit a subtransaction,
  that
   means that an SQL method you call while processing the same request also
  needs
   to support sub-transactions?
  
   confusedly,
  
   Chris
  
  
  

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] EMail with uploaded attachments, Part II

2001-01-26 Thread Dieter Maurer

Klaus Herrmann writes:
  ...
  How do I determinate the filename and mime-type of the uploaded file?
  
  i have 
  input type=file size=18 maxlength=300 name=attached_file
  and can get my data with attached_file.read(), but how do i do it when i want
  to have filename and mime-type correctly filled in in
  dtml-boundary type=??? encode=base64 filename=??? name=???
Maybe, you should look at the source documentions
for "ZPublisher.HTTPRequest.FileUpload".

You will see there, that "FileUpload" objects have attributes
'filename' and 'headers'.
In headers, you will find the "Content-Type", provided that
your browser has send this information (as it should).

Then, you need to know, that "dtml-boundary" has
"*_expr" argument variants that allow to provide expressions
as values rather than fixed constants.

That's all you should need.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts documentation

2001-01-26 Thread Michel Pelletier



On Fri, 26 Jan 2001, Gerald Gutierrez wrote:


 Where is the latest documentation for PythonScripts located? The closest I
 found is

 http://www.zope.org/Members/4am/PythonMethod

 but it is dated and contains minimal information.

 I'm specifically interested in what I can do with them and what I cannot do
 with them.

What you can do with them from a practical standpoint is documented quite
a bit in the Zope Book:

http://www.zope.org/Members/michel/ZB/ScriptingZope.html

I'll be uploading a new version of the book with many corrections RSN.

What you cannot do with them from a dryer perspective can be found in the
online help system under API Documentation.  Please email
[EMAIL PROTECTED] if you feel there are any holes in either resource.

-Michel


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 final released

2001-01-26 Thread Robin Becker

Very nice. Thanks. 

Does this use Python 2.0 or 1.5.2? Bits of win32pipe extension under
2.2.2 don't work too well so this isn't a trivial question. 

Can we convert existing databases to use the newer ZClass bases?
-- 
Robin Becker

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] subtransactions

2001-01-26 Thread Chris McDonough

This is about right.

- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Chris Withers" [EMAIL PROTECTED]; "Ian Sealy"
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 3:04 PM
Subject: Re: [Zope] subtransactions


 Chris McDonough writes:
   Currently, yes.  This is arguably wrong.
 Can you tell us, what the semantics of subtransactions is?

 It has been my impression that subtransactions are a kludge,
 essentially implemented for ZCatalog, to reduce the amount
 of main memory for large transactions.
 Rather than keep all modified objects in memory,
 they are flushed onto a file to be copied from there
 when the transaction is finally commited.

 If this is the case, then objects that do not need
 such hackery, simply provide empty "commit_sub" and
 "abort_sub" and do all their work in "commit".

 Dieter
  
   - Original Message -
   From: "Chris Withers" [EMAIL PROTECTED]
   To: "Chris McDonough" [EMAIL PROTECTED]
   Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Sent: Friday, January 26, 2001 10:35 AM
   Subject: Re: [Zope] subtransactions
  
  
Chris McDonough wrote:

 Because most databases don't have the notion of a subtransaction.
   
Hang on... how come, if a file upload needs to commit a
subtransaction,
   that
means that an SQL method you call while processing the same request
also
   needs
to support sub-transactions?
   
confusedly,
   
Chris
   
  
  

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] What happened to random?

2001-01-26 Thread Bill Anderson



OK, got a problem with 2.3.0 and Python Script; one that breaks Membership :(

In Python Methods, I can do this

choose=random.choice


And it works.

However, in a Python Script in 2.3.0, it barfs, complaining about random 
not being a variable. I've tried self.rhandom, context.rhandom,  and 
_.rhandom, and none work. Any help would be very much appreciated.

Bill Anderson


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] DTML namespace puzzle

2001-01-26 Thread Ron Bickers

Just when I thought I was catching on to everything, I ran into this.

I'm using Zope 2.3.0 (final).  I don't know if this worked the same with 2.2
because I didn't try this until today.  SQLSession is handling the SESSION
stuff, and I haven't had any problems with it.

I have a Python Script (sendOrder) that calls a DTML method (orderMessage)
as follows:

  container.orderMessage(num=num, SESSION=SESSION)

orderMessage contains the following:

  dtml-with "SESSION['info']" mapping
  Order Number: dtml-var num
  Blah blah other session variables that work fine.
  /dtml-with

I get a KeyError on num.  If I modify orderMessage to contain the following,
it works:

  dtml-let num=num
  dtml-with "SESSION['info']" mapping
  Order Number: dtml-var num
  Blah blah other session variables that work fine.
  /dtml-with
  /dtml-let

This seems strange to me.  What am I missing?

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] What happened to random?

2001-01-26 Thread Ron Bickers

I believe Python Methods did a lot of auto importing of modules.  In Python
Scripts, you need to import what you want.

Try 'import random' or 'from random import choice'

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
 Anderson
 Sent: Friday, January 26, 2001 7:36 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] What happened to random?

 OK, got a problem with 2.3.0 and Python Script; one that breaks
 Membership :(

 In Python Methods, I can do this

 choose=random.choice


 And it works.

 However, in a Python Script in 2.3.0, it barfs, complaining about random
 not being a variable. I've tried self.rhandom, context.rhandom,  and
 _.rhandom, and none work. Any help would be very much appreciated.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] MySQL

2001-01-26 Thread Andy Dustman

On Fri, 26 Jan 2001, Piotr Kozbial wrote:

 I have upgraded to MySQL 3.23.28 and both ZMySQLDA and ZMySQLTDA were
 broken.Thus I have installed latest
 ZMySQLDA-2.0.4 and MySQLdb 0.3.1.

MySQL-3.23.32 would be a good idea. It has at least one security fix, and
a lot of bug fixes. 
 
 Ufter upgrade it does not work.
   File /opt/www/zope/lib/python/DocumentTemplate/DT_In.py, line 711, in
 renderwob
 (Object: single_id_hasla2)
   KeyError: (see above)

I have no idea for that one.
 
 I am unable to use TIMESTAMP from database
 ie.:
   File /opt/www/zope/lib/python/Products/ZMySQLDA/db.py, line 104, in
 _mysql_timestamp_converter
 ValueError: (see above)

Can you find out what the value is that it doesn't like?
 
 What is wrong. Is is MySQL or ZOPE or ZMySQLDA problem?

Possibly ZMySQLDA. I would need to see specifically what the error message
is that comes with the ValueError exception. 

-- 
Andy Dustman PGP: 0xC72F3F1D
@   .net http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
-- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope PTK Wizard

2001-01-26 Thread Tres Seaver

"Priya Ramkumar" [EMAIL PROTECTED] wrote:

 I am trying to create a wizard in my portal to enable users to store
 information. In addition to the features of the already existing Document
 Wizard, I would like my Wizard to have more features like information about
 the category of the document, etc. I created a file called "Userdocument.py"
 with a method "addUserdocument" which will be called to add a new document.
 I have also added the new entry to the PTKBases  PTKDemos __init__.py. But
 as soon as Zope starts, it gives this error
 
 
 2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo
 Traceback (innermost last):
   File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line
 397,
 in import_products
 (Object: string)
   File
 "/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py
 ", line 159
  PTKBase.Userdocument = Userdocument
 ^
 SyntaxError: invalid token
 
 Could anyone please tell me how to create custom wizards and to register
 them?

Priya,

First, the PTK has its own mailing list, [EMAIL PROTECTED];  you
are much likelier to get useful and timely advice there about
PTK-specific issues.

Second, I don't think the region of code in which you have injected
that line needs it;  it exists solely to provide backward-compatibility
with portals created before version 0.8 of the PTK.

Third, I can't see anything about your code which woudl trigger a
syntax error;  typically, in this case, the real error would be
a line or two ahead (opening but not closing a parenthesis, omitting
a comma, etc.

Fourth, you would typically add a new content class in a separate
product, either on the filesystem or in a "through-the-web"
ZClass product;  mixing your stuff with PTKBase/PTKDemo means
you will be forced to deal with lots of merge conflicts (and these
days, I mean *LOTS*).

I would recommend creating a new CVS sandbox, as described in my
"State of the PTK" message today:

  http://lists.zope.org/pipermail/zope-ptk/2001-January/002258.html

Then, move your 'Userdocument' module into a new Product, a "sibling"
of PTKBase and PTKDemo.  Register it just as 'PTKDemo.Document' is
registered, and create a Wizard for it by cloning the Document wizard
and "filing off the serial numbers".

Hope that helps,

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-26 Thread Tres Seaver

In the neverending "perfect Zope editor" jihad, "Phil Harris"
[EMAIL PROTECTED] wrote on the side of the angels
of light:

 I just did a search on google and came up with some
 interesting  Win32 versions of Vim 5.7.11:
 
 See http://vim.sourceforge.net/bin_download/00index.txt
 
 Since the Python and TCL interpreters are built in it should
 be possible to add seamless FTP/WebDAV clients into Vim,
 cool!

Even more insidious, consider:

 :py import Zope; app=Zope.app()

ZEO + VIM is a r00ling IDE :)

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Re: Lost in name Space...

2001-01-26 Thread Prateep Siamwalla

James,
Thanks for the help.  Unfortunately your suggestion did not work, i got
a NameError on "sayHellos" (which is a property of the RandomGreeting
folder.)

I managed to get it to work by two other ways.

dtml-with RandomGreeting
dtml-var Greet
/dtml-with

and

dtml-var "RandomGreeting.Greet(RandomGreeting)"

I'm just beginning to understand the first way, however, I'm still
scratching
my head about how the second way works...

thanks again for the help,

teep

- Original Message -
From: James Sintz [EMAIL PROTECTED]
To: 'Prateep Siamwalla' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 26, 2001 10:27 PM
Subject: RE: [Zope] Re: Lost in name Space...


 You can also do the following:

 dtml-var "RandomGreeting.Greet(_.None, _)"

 Jamey

  -Original Message-
  From: Prateep Siamwalla [SMTP:[EMAIL PROTECTED]]
  Sent: Friday, January 26, 2001 6:20 AM
  To: [EMAIL PROTECTED]
  Subject: [Zope] Re: Lost in name Space...
 
  Ok, found the answer:
 
  dtml-with RandomGreeting
  dtml-var Greet
  /dtml-with
 
 
  - Original Message -
  From: Prateep Siamwalla [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, January 26, 2001 5:55 PM
  Subject: Lost in name Space...
 
 
   Sorry if you happen to see this for the third time, I have been
trying
   to post this on egroups, but have failed on several occasions.
  
   Hi,
   Zope newbie here, a bit lost on namespaces...
  
   I have created a folder in the zope root called "RandomGreeting".
   Inside this folder, there is one DTML METHOD called "Greet".  "Greet"
   contains the following line:
  
   pdtml-var expr="_.whrandom.choice(sayHellos)"/p
  
   "sayHellos" is a property of the "RandomGreeting" folder, and
   contains 4 lines which are various ways to say
   hello : "Ola","Hi","Bonjour","Sawasdi".  The purpose of this method
   is to print out a random greeting.
  
   Everytime i click "View" for this DTML Method, i get a random hello.
   Fine, that is exactly what I want.
  
   The problem is that I am trying to use this "method" from its parent
   folder (the root folder as a matter of fact).  I have inserted the
   following bit into the top level "index_html" DTML Method of my Zope
   root near the begining, so that it produces a random hello on the
   front page everytime someone accesses it.
  
   I have tried :
   dtml-var RandomGreeting.Greet
   dtml-var RandomGreeting.Greet()
   dtml-var "RandomGreeting.Greet()"
   dtml-var /RandomGreeting/Greet
  
   all of these, to know avail.  I am getting either a NameError or
   KeyError.  I am pretty sure I'm missing a simple concept here. It is
   possible to call functions from child objects is it not?
  
   Please help with some enlightenment.  Many thanks in advance.
  
   teep



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Problem : ZCatalog

2001-01-26 Thread sean . upton

Right, use a python method, with a regular expression, like:

import regsub
def stringchange(self):
"""
Accepts a string passed as self, modifies it 
using a regex substitution, and returns modified
 This example strips multiple spaces, puts in a single one
"""
result=regsub.gsub('[ \t][ \t]+', ' ', self)
return result

You could use regsub.sub to replace the first instance of a pattern in a
string, or regsub.gsub to do all.  Look in /lib/python1.5/regsub.py to see
all the regular expression substitution functions avalable.  The regex
syntax is pretty vanilla; (i.e. chapter 1 of the book _Mastering Regular
Expressions_ has enough detail to use regular expressions well enough in
python).  There is also a split function in regsub.py that might be of use
here, using the '/' as the delimiter pattern; I think you would use it like
this:

mylist = regsub.split(self, '/')

You could then write your function to get a particular item, like city,
language, etc by obtaining the slices from mylist.

Good luck,
Sean

-Original Message-
From: Ivan Cornell [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 2:40 AM
To: Fabien Germain
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Problem : ZCatalog


Fabien Germain wrote:

 Hello,

 I've got a problem with a search form.

 I have a ZCatalog with lots of entries. I added the index
 "absolute_url" in
 order to search by the files url.

 Why ?
 'cause I have files in organized folders like that :
 /language_name/country_name/city_name/element

 I'd like to do a search on "#language_name and #country_name and
 #city_name"
 in my catalog, so I use the absolute_url.
 But the problem is that the search only looks the end of the
 absolute_url
 string, that's to say "element" in my exemple.

 How could I search in all the string ?

Well, my solution would be to create a python method that splits your
url up into indexable words and then index this method in ZCatalog. One
of cool features of the ZCatalog is that it can index objects methods.

Hope this helps

Ivan

PS Please send text only mail to the list -you'll probably get more
replies if you do!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )