[Zope-Checkins] SVN: zdaemon/tags/zdaemon-1.1/ create a zdaemon tag that can be used with svn:externals

2005-06-09 Thread Fred L. Drake, Jr.
Log message for revision 30709:
  create a zdaemon tag that can be used with svn:externals

Changed:
  A   zdaemon/tags/zdaemon-1.1/

-=-
Copied: zdaemon/tags/zdaemon-1.1 (from rev 30708, zdaemon/trunk)

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


[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Move to ZODB 3.4 and zdaemon 1.1.

2005-06-09 Thread Tim Peters
Log message for revision 30721:
  Move to ZODB 3.4 and zdaemon 1.1.
  

Changed:
  _U  Zope/branches/Zope-2_8-branch/lib/python/
  _U  Zope/branches/Zope-2_8-branch/utilities/

-=-

Property changes on: Zope/branches/Zope-2_8-branch/lib/python
___
Name: svn:externals
   - zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope
ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/ZopeUndo
zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-Zope-2-8-0

   + zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope
ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/ZopeUndo
zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-1.1



Property changes on: Zope/branches/Zope-2_8-branch/utilities
___
Name: svn:externals
   - ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c2/src/scripts

   + ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0/src/scripts


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


[Zope-Coders] Zope 2.8 coming this weekend

2005-06-09 Thread Andreas Jung
Heads up for the 2.8.0 final release. My plans are to make the final 
release on Saturday morning. So any further changes should be done by 
tomorrow at the latest.


Cheers,
-aj


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


Re: ZClass problem in 2.8 (Was: Re: [Zope-dev] Upcoming Zope 2.8 release)

2005-06-09 Thread John Barratt

Dieter Maurer wrote:

Looks like an acquisition bug:

  obj.aq_inContextOf(context, 1) is recursively defined by:

  True, if obj.aq_base == context.aq_base
  or container(obj) is not None
  and container(obj).aq_inContextOf(context, 1)

  where container(obj) is aq_parent(aq_inner(obj))
  which is the container containing obj.

which is equivalent to (resolving the recursing):

  obj.aq_inContextOf(context, 1)
  iff for some (hierarchie) ancestor a of obj,
  a.aq_base == context.aq_base.

Given this definition, you can check which implementation
is wrong and file a bug report.


Looking at the relevant *Acquisition.c files, both implementations of 
aq_inContextOf(2.7.6  2.8.0b2) are identical.  The implementation of 
macros used in this method (isWrapper, WRAPPER, and OBJECT) are also 
identitcal, there being nothing else immediately  obvious that looks 
like it could have been implemented differently there.


I would hence suspect the wrapping, and/or behaviour of the object 
and/or context to be somehow different?


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

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


[Zope-dev] Logging after ConflictError Retries

2005-06-09 Thread Malcolm Cleaton
After a ConflictError causes a request to be retried, a few things go a
bit wrong with error handling and logging in the Zope server.

1. If the request is abandoned after repeated ConflictErrors, no error at
all appears in the error log.

The following change to Zope/App/startup.py appears to fix this, although
I'm not sufficiently experienced in the depths of Zope to be sure there
are no downsides:

162,163c162
 if REQUEST.supports_retry():
 raise ZPublisher.Retry(t, v, traceback)
---
 raise ZPublisher.Retry(t, v, traceback)

If a Retry error is raised again here even though we don't support any
more retries, the ZServer calls the exception hook again with the Retry
error, we throw it again and the error logging is missed. Simply not
raising the Retry error again once we don't support any more retries means
we fall through to the rest of the exception handling hook, and the
ConflictError itself is logged, which I think is right.


2. If there is at least one ConflictError and then the request finishes
with an error (either more ConflictErrors or something else), the Z2 log
shows the request as having been answered with status 200, although
actually a status 500 error response has been served.

I've managed to work out what's causing this, but fixing may be more
fiddly. What happens is, once the request is abandoned because of the
error, when control comes back to publish_module_standard in Publish.py,
response.exception() is called on the original response, not on the latest
retry. Then, when HTTPResponse _finish() is called, it traces down to the
latest retry to find the status code for the logging, which is now the
wrong one.

I can think of a few things which might fix this, but they all feel like
they might also break many other subtle things, and I've got The Fear; can
somebody more experienced in the core comment on the Right Way?

I've submitted this to the Collector:
http://www.zope.org/Collectors/Zope/1805

Thanks,
Malcolm.

-- 

[] j a m k i t
  web solutions for charities

 malcolm cleaton
T:  020 7549 0520
F:  020 7490 1152
M:  07986 563852
W: www.jamkit.com


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


[Zope-dev] Re: Logging after ConflictError Retries

2005-06-09 Thread Malcolm Cleaton
On Thu, 09 Jun 2005 10:13:05 +0100, Malcolm Cleaton wrote:
 162,163c162
  if REQUEST.supports_retry():
  raise ZPublisher.Retry(t, v, traceback)
 ---
  raise ZPublisher.Retry(t, v, traceback)

I just noticed I've generated this patch backwards, ie. the above is how
to remove the change! I wonder if my subconscious is trying to say
something there about staying out of the publishing code... :)

Thanks,
Malcolm.


-- 

[] j a m k i t
  web solutions for charities

 malcolm cleaton
T:  020 7549 0520
F:  020 7490 1152
M:  07986 563852
W: www.jamkit.com


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


[Zope-dev] spider cache blowout [was RE: [ZODB-Dev] Generational Caching]

2005-06-09 Thread Dylan Jay
 -Original Message-

 From: Chris McDonough [mailto:[EMAIL PROTECTED]

 Sent: Wednesday, 8 June 2005 11:56 AM

 To: Dylan Jay

 Cc: zodb-dev@zope.org

 Subject: Re: [ZODB-Dev] Generational Caching



 One way to potentially soften the impact of cache busting by spiders

 might be to allow Zope to choose a particular ZODB connection based on

 request parameters (like sessionid or requesting ip address, or most

 likely user agent in the case of legitimate spiders). This is a

 modification to Zope that would be largely independent of ZODB,

 however, so might be more appropriate to discuss on zope-dev.

I think this sounds like a very smart idea. I'll forward this to the 
zope-dev list.


 On Wed, 2005-06-08 at 10:20 +1000, Dylan Jay wrote:

  I've been thinking about the problems of memory use. One use case

  that

 seems

  hard is web crawlers. That will wake up a lot of objects for just a

 single

  read possibly getting rid of many often used objects from the zodb

 cache.

  Has anyone investigated the idea of a generational cache?

 

  Another idea I had was asymetric cache sizes. I believe that zope

  uses a single thread if all requests are serial and just uses the

  other

 connections

  when similtanious requests are handled. Since some threads will be

  less

 used

  than others perhaps there could be cache settings so memory can be

  minimised.

 








-- 
Dylan Jay
---
http://www.meetmemap.com - makes giving directions easy
http://www.pretaweb.com - Update-it-yourself, low cost websites
http://www.eatmanifesto.com - against all dumbing down of food
Y!:dylan_jay ICQ:520341 MSN:[EMAIL PROTECTED] Ph:+61423198306 



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


[Zope-dev] Zope 2.8 coming this weekend

2005-06-09 Thread Andreas Jung
Heads up for the 2.8.0 final release. My plans are to make the final 
release on Saturday morning. So any further changes should be done by 
tomorrow at the latest.


Cheers,
-aj


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


Re: [Zope-dev] Logging after ConflictError Retries

2005-06-09 Thread Dieter Maurer
Malcolm Cleaton wrote at 2005-6-9 10:13 +0100:
After a ConflictError causes a request to be retried, a few things go a
bit wrong with error handling and logging in the Zope server.

1. If the request is abandoned after repeated ConflictErrors, no error at
all appears in the error log.

Right: please file a bug report.

The fix is (almost surely) to replace in .../Zope/App/startup.py:

   if t is ZPublisher.Retry: v.reraise()

by

   if t is ZPublisher.Retry: t, v, traceback = v._args

 ...
2. If there is at least one ConflictError and then the request finishes
with an error (either more ConflictErrors or something else), the Z2 log
shows the request as having been answered with status 200, although
actually a status 500 error response has been served.

I've managed to work out what's causing this, but fixing may be more
fiddly. What happens is, once the request is abandoned because of the
error, when control comes back to publish_module_standard in Publish.py,
response.exception() is called on the original response, not on the latest
retry. Then, when HTTPResponse _finish() is called, it traces down to the
latest retry to find the status code for the logging, which is now the
wrong one.

This should only happen when publish itself raises an exception.
Usually, publish should *NOT* raise an exception, when
the request fails (although exceeding the maximal number
of retries may cause this).


Nevertheless, the mixed use of response and request.response
in publish_module_standard
looks wrong. Almost surely, request.response should
get the value of response when publish succeeds and
both are different.
Thus I expect, we should have:

 response = publish(...)
 request.response = response
  except ...


Please file two bug reports for the problems you discovered...

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


Re: ZClass problem in 2.8 (Was: Re: [Zope-dev] Upcoming Zope 2.8 release)

2005-06-09 Thread Dieter Maurer
John Barratt wrote at 2005-6-9 16:54 +1000:
 ...
I would hence suspect the wrapping, and/or behaviour of the object 
and/or context to be somehow different?

A long time ago, Shane posted a very useful function
to analyse acquisition wrappers: showaq.

Maybe, the mailing list archive is still able to locate his post...

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


Re: [Zope] how to authenticate myself and how to not

2005-06-09 Thread Lennart Regebro
On 6/9/05, Wim Bekker [EMAIL PROTECTED] wrote:
 Hi,
 
 If I want to edit a page, I have to be authenticated and zope ask me to
 with a login dialog.
 
 How can I call this dialog from dtml or python? (i want to switch from
 user to another user).

You can't. The idea with authentication is that *you* should identify
yourself. Not the computer. Instead of changing users, the users who
should edit the page, should have the permission to do so.

 And how can I logoff?

If you run internet explorer, you can't. With Firefox, there is a
ZMI-page menu entry logout. You can use that.

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Product architecture question (long)

2005-06-09 Thread Nikko Wolf




Dieter Maurer wrote:

  Nikko Wolf wrote at 2005-6-7 14:25 -0600:

  
- I do not want ANY access by unauthorized users. Obviously they
  must be able to reach a login page, and get instructions on how
  to request an account, password reset, etc.

  
  
Put all content in a subfolder of your site and
remove "View" and "Access contents information" from
"Anonymous".


See previous post. Is there a current, good tutorial for securing
Plone from unauthorized use (SSL notwithstanding)?



  
- Here's the complication -- each file will have potentially
  multiple versions in process at once.  Each version of a file
  may have a different state, and I'd like to have a history of
  all changes to each version as they go through the workflow.

  
  
Indeed, a bit more complex.

I would model a "file" as a folder like structure containing
the various versions and give it the "right" behaviour.


Currently, I've implemented scripts to do part of this -- although
I would not say I've "modeled" anything as much as simply "implemented"
scripts  ZPT to allow access in the manner needed.

The issue is that there is no separation of workflow and content
view/actions, and there should be, since the workflow may change and
I'd like to use the workflow interface to handle those changes (if
possible).


  
- Once a file/version is submitted for review, any of the reviewers
  may work on it, it is not necessary that one role preceded the other,
  but it is required that a user in each role approve the file.

  
  
What does that mean?

   Do you have "technical reviewer", "style revierwer", "aestetic reviewer",
   ... and require that at least one from each role approves?


Something like that: someone from each role must approve the
version before it can be submitted for final editor approval (not
exactly footnotes to a bibliography added by different roles / experts
in a field, but that's similar). Hence, they will actually make minor
changes/additions before they approve.


  
- We need to have good automated backup solution for the content
  (as in mirroring the content on another host).

  
There is a commercial Zope.com solution.

We use mirrored disks and a high availablity cluster.


Ah, the drawback of an opaque (and custom) data store. 

Instead I've got a cron script that will shutdown zope and backup the
entire directory tree. Soon I'll add a second script to pull these
files back from the DMZ for archival/storage.

However my question is this -- is it necessary for me to shutdown zope
to snapshot the directory? Given the times of access, I'm *almost*
guaranteed that it's been idle for 1+ hours when I do this (famous last
words, though those may be).

Knowing that zope is event-driven (and no sleeper thread):
 -- is there any consistency issues of backing up (Data.fs)
 without stopping?
 -- is there another feature of "zopectl" that would tell 
 it to "sync" the DB to the file system? "help" gives:
  EOF fg kill quit run start test
   adduser foreground logreopen reload shell status wait
  debug help logtail restart show stop

After some testing, I'll probably share the script  crontab
entries.


  4) How does one secure a Zope+Plone site?
One uses HTTPS and standard authentication.

One tells the users that good passwords are essential.

One does not store clear text password.


The content isn't important enough that I worry about anything that
even simple passwords and SSL can't prevent.

I've looked but found no Zope SSL capabilities, so does this
requires placing Zope behind Apache, right? 
Ref: http://www.zope.org/Members/simonb/howtos/Set%20Up%20SSL

Thanks in advance,
Nikko





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


Re: [Zope] Product architecture question (long)

2005-06-09 Thread Paul Winkler
On Thu, Jun 09, 2005 at 11:34:31AM -0600, Nikko Wolf wrote:
 However my question is this -- is it necessary for me to shutdown zope 
 to snapshot the directory?  Given the times of access, I'm *almost* 
 guaranteed that it's been idle for 1+ hours when I do this (famous last 
 words, though those may be).
 
 Knowing that zope is event-driven (and no sleeper thread):
  -- is there any consistency issues of backing up (Data.fs)
 without stopping?

This should be interesting:
http://www.plope.com/Members/chrism/repozo

  -- is there another feature of zopectl that would tell
 it to sync the DB to the file system?

I don't know what you mean by sync.  Are you trying to
extract data from zope and put it in some human-useful form
on the filesystem?

If so, I'd probably just use a script that calls wget
or some other standard http client to extract the data
I want.

Or possibly look into using Ape, but I've never done that.
http://hathawaymix.org/Software/Ape

 I've looked but found no Zope SSL capabilities, so does this requires 
 placing Zope behind Apache, right? 
 Ref: http://www.zope.org/Members/simonb/howtos/Set%20Up%20SSL

Pound would do the job too.
 
-- 

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


[Zope] Py-Toc and zope products

2005-06-09 Thread Ed Colmar

Greetings.

I have been messing around with the py-TOC code, and am looking forward 
to implementing it into my zope/MySQL site.


I think I am missing something about how to connect it to my zope folder 
class


My goal with this is to tie in the AIM messages in with the folder class 
I am using in zope to affect database queries.  However, I've only been 
able to successfully get it running using the bot and bm classes as 
global variables (not self.bot and self.bm) so they are now outside the 
class where I need them... 

This was my best attempt at getting them inside the zope folder class, 
but zope does not like it...  Is there a better way?


class SystemofControlSite(Folder):
   def __init__(self, id, title, content):
   self.bot = MyBot(syscontrolbot23,pass)
   self.bot._info = www.systemofcontrol.com notification bot.
   self.bm = BotManager()
   self.bm.addBot(self.bot,myBot) # start it up
   time.sleep(1)

on init, I get this error:

*UnpickleableError*

Sorry, a site error occurred.

Traceback (innermost last):

   * Module ZPublisher.Publish, line 150, in publish_module
   * Module Products.PlacelessTranslationService.PatchStringIO, line
 51, in new_publish
   * Module ZPublisher.Publish, line 114, in publish
   * Module Zope, line 171, in zpublisher_exception_hook
   * Module ZPublisher.Publish, line 102, in publish
   * Module Zope, line 188, in commit
   * Module ZODB.Transaction, line 222, in commit
   * Module ZODB.Transaction, line 195, in commit
   * Module ZODB.Transaction, line 256, in _commit_objects
   * Module ZODB.Connection, line 387, in commit
 __traceback_info__:
 (('Products.SystemofControlSite.SystemofControlSite',
 'SystemofControlSite'), '\x00\x00\x00\x00\x00\x00\xdd1', '')

UnpickleableError: Cannot pickle type 'file' objects (Also, an error 
occurred while attempting to render the standard error message.)


I'm assuming this is because zope is attempting to make the bot 
connection persistant...



so then I did:

bot = MyBot(syscontrolbot23,pass)
bm = BotManager()
bm.addBot(bot,myBot) # start it up


and use global variables to control it. 
   def initbot(self):

create the bot  
   global bot
   global bm
   bm.addBot(bot,myBot) # start it up
   time.sleep(1)
   return 1

This sucks though becasue I cannot pass a message from AIM back into my 
zope product to do something with the database...


Any ideas?  Suggestions?

Cheers!

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

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


Re: Voodoo with ModuleSecurityInfo, was Re: [Zope] importing encode_base64

2005-06-09 Thread Dieter Maurer
Paul Winkler wrote at 2005-6-8 20:48 -0400:
 ...
from Products.FooProduct import Utils
return Utils.foo(context)


And in Products/FooProduct/__init__.py, I had this:

ModuleSecurityInfo('Products.FooProduct').declarePublic(
'blah', 'foo')

This allows something like:

 from Products.FooProduct import foo

But, in fact, you use

 from Products.FooProduct import Utils
 ... Utils.foo ...

Strange, that it worked at all...

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


Re: [Zope] Zope Permissions

2005-06-09 Thread Dieter Maurer
Nikko Wolf wrote at 2005-6-8 17:22 -0600:
 ...
I did as you suggested but (in hindsight stupidly!) did not ensure that 
anyone else had permissions to View and Access contents information 
-- so even logged in as a Manager I could not access the /Home folder 
-- including the Security tab where I would go to fix the problem.  
Which seems like a design flaw, but

Fortunately, http://www.zope.org/Documentation/Misc/SECURITY.txt/view 
explains about using the emergency user via zpasswd.py script, so I 
fixed things but not until after a good bit of elevated blood pressure 
and a lot of profanity.

Thus, you now learned that any security breakage can be fixed
with a single concept: the Emergency user...

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


Re: [Zope] Pre-indexing filter and accented letters

2005-06-09 Thread Dieter Maurer
Please stay on the list -- readded...

Yuri wrote at 2005-6-9 13:18 +0200:
Please read carefully the ZCatalog chapter of the Zope Book,
when you do not understand why using a new name can help you
with this...
  

http://www.plope.com/Books/2_7Edition/SearchingZCatalog.stx

 there's no mention of Indexes as NormalizedSearchableText. There's 
SearchableText, but It is not related to the topic...

Of course, NormalizedSearchableText is *not* mentioned.
It is no predefined index. Instead, you should create it.

Please reread the chapter again. You are looking for the
(general) description how the catalog interacts with the object to
determine for which values it should index the object.

Once you have understood that, you will understand
my proposal to solve your problem...

 ...
 I mean, I know that chapter, I know Zcatalog. What I want is prefilter 
an existing, named, index.

You cannot prefilter an existing index (I told you already!).
You must create a new one, define a script with the name of
the new index and there do your normalization.
You can trust me (in this regard) ...


If you use a ZCTextIndex, then you can keep the SearchableText
name for the (new!) index. In this case, you must use the name of
your normalizing script as Indexed attributes in the
definition of your ZCTextIndex.


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


[Zope] undo many things

2005-06-09 Thread Rakotomandimby (R12y) Mihamina
Hi,

If I want to undo a very early action, I have to also undo all the actions
done after the one I want to undo.

The problem is that the action to undo is 4 pages earlier, so that I want
to one time check all the actions of the 4 last pages.

How to manage it? 

Thank you :-)

-- 
Miroir de logiciels libres   http://www.etud-orleans.fr
Développement de logiciels libres http://aspo.rktmb.org/activites/developpement
Infogerance de serveur dédié  http://aspo.rktmb.org/activites/infogerance
(En louant les services de l'ASPO vous luttez contre la fracture numerique)


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


[Zope] Re: WebDav or Calendar.

2005-06-09 Thread Derrick Hudson
On Wed, Jun 01, 2005 at 10:15:18PM -0300, Fernando Lujan wrote:
| Hi,
| 
| I need a Calendar or WebDav product wich runs with Zope, allow me to
| share my calendar with others users using mozilla Calendar, Sunbird.
| evolution, outlook and so on...Something like OpenGroupware. Do
| someone have a good suggestion? :)

Schoolbell:  http://www.schooltool.org/schoolbell/

-D

-- 
640K ought to be enough for anybody -Bill Gates, 1981
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


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


[Zope] Pierugo Massolo/IT/ITC/ALSTOM is out of the office.

2005-06-09 Thread pierugo . massolo
I will be out of the office starting  09/06/2005 and will not return until
13/06/2005.

I will respond to your message when I return.

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


Re: [Zope-DB] Re: [Zope] DCOracle2 compile problem

2005-06-09 Thread Piotr Kral

Dieter Maurer wrote:

Michele Marcionelli wrote at 2005-1-20 08:09 +0100:


...
dco2.c: In function `Cursor_bind':
dco2.c:3393: `dword' undeclared (first use in this function)



If you are unlucky, then Oracle dropped the ancient
type definitions such as dword (double word).

In this case, dco2.c would need a severe facelift to
use more modern type names...



Today I was trying all day to compile DCOracle2 on RHES 3 witch Oracle 9
or 10 client and nothing. But in the evening (I've finished 10 minutes
ago) on my laptop with FC3 and oracle 10 client everything went fine.
The solution is to change 3 words in dco2.c You just need to change
dword to dvoid (all 3 times) and it's fine. I don't know why I
couldn't compile it on my development server. Idon't think it's os'es
problem, it's rather something with oracle client or environment
variables. I'll see it tomorow at work.


___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db