Re: [Zope-dev] Zope 2.1.6: ZCatalog's Reindex unintuitive?

2000-06-04 Thread Dieter Maurer

Kevin Dangoor writes:
   I know, of cause, that a DMTL method could do this job.
   However, a general method "manage_catalogRefind" might be
   generally useful. It would remember the parameters for
   the last find operation and reapply the find.
  
  I like the other solutions that exist/are coming into existence/are
  proposed. They are:
  
  1) CatalogAwareness for ZClasses 
  
  2) ZPatterns 0.4 (http://www.zope.org/Members/pje/Wikis/ZPatterns/HomePage):
  
  
  3) ObserverAndNotification Interface
  (http://www.zope.org/Members/michel/Projects/Interfaces/ObserverAndNotificat
  ion): 
  
  I like all of these solutions, because they are automatic. Having a
  catalogRefind implies that someone needs to actively do something to make
  the catalog get updated...

I am especially interested in a solution for standard Zope objects
(which make most of our Zope site that should be made searchable).

I hope, I can automate "catalogRefind", too.
At least under Unix, the CRON demon can start programs at
fixed times. Such a program would execute the "catalogRefind"
either with a ZClient or directly with Python's HTTPlib.

Dieter

___
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] ZHealth?

2000-06-04 Thread Graham Chiu

In article [EMAIL PROTECTED], Alexander Chelnokov
[EMAIL PROTECTED] writes
Hello All,

Similarly to E-Commerce there is also E-Health (or E-He@lth) trend
now. While there is ZCommerce here what is about ZHealth? An
OpenSource project FreeMed (www.freemed.org) exists in PHP+MySQL -
does anybody know about the activity (or any other attempts to build
medical web applications)in Zope's part of the world?
THX in advance.

I looked at www.freemed.org a while back, and the online demo is still
broken for several functions.  Looks very pretty though.

I can't see why such a beast could not be done in Zope given the time.
I've thought about doing this myself but not sure that I'm willing to
give up the incremental searches that my current desktop application
gives me.

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

___
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] zcatalog keyerror 30

2000-06-04 Thread kdie


-Original Message-
From: Chris Withers [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, May 29, 2000 12:19 AM
Subject: Re: [Zope] zcatalog  keyerror 30


Try the patching described in the following message:
http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/C15EB30D0FAF1057

hi,
i've applied the patch as instructed, but still get the key error after 4-5
days.  any of you guys out there suceeded in getting rid of the keyerror?

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 )


___
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] a patch for the calendar tag 0.9.10

2000-06-04 Thread Jerome ALET

Hi there,

here's a patch for the Calendar 0.9.10 product.

This version allows people to define their own
day or month names instead of the default 
english names.

This is very useful if you want to setup a 
web calendar in another language than English.

In French, some month names contain accented letters,
represented in HTML by character entities like eacute;
for example.

The Calendar product doesn't cut the month names
correctly in regard to these entities, especially
in week mode when a week was between two months.

Here's a patch to correct the problem.

hope this helps.

bye,
Jerome Alet


--- CalendarTag.py.orig Sun Jun  4 11:09:54 2000
+++ CalendarTag.py  Sun Jun  4 11:08:43 2000
@@ -114,6 +114,22 @@
 self.week_sday = int(weekdays[0])
 self.week_ndays = int(weekdays[1])
 
+def __cutmonthname(self, name, length) :
+"""Cuts the month name at length characters, counting
+character entities for only one character"""
+entityfound = 0
+for i in range(len(name)) :
+if name[i] == '' :
+entityfound = 1
+elif name[i] == ';' : 
+entityfound = 0
+
+if not entityfound :
+length = length - 1
+if not length :
+break
+return name[:i + 1]
+
 def render(self, md):
 ##time_start = time()
 
@@ -233,8 +249,8 @@
 elif self.mode == 'week':
 sdow = date - date.dow()
 edow = sdow + 6
-smonthname = v['monthnames'][sdow.month() - 1][:3]
-emonthname = v['monthnames'][edow.month() - 1][:3]
+smonthname = self.__cutmonthname(v['monthnames'][sdow.month() - 1], 3)
+emonthname = self.__cutmonthname(v['monthnames'][edow.month() - 1], 3)
 
 left = '%s %d' % (emonthname, edow.year())
 if sdow.aMonth() != edow.aMonth():



Re: [Zope] a patch for the calendar tag 0.9.10

2000-06-04 Thread Jerome ALET

Sorry, I've created a new patch, because in my previous one I've
forgotten to correct the day mode too.

The problem happens in day mode as well as in week mode, even
if the week wasn't between two months.

Sorry for the incoveninence, you'll find the new patch attached 
to this message.

bye,
Jerome Alet

On Sun, Jun 04, 2000 at 11:20:34AM +0200, Jerome ALET wrote:
 here's a patch for the Calendar 0.9.10 product.
 ...
 The Calendar product doesn't cut the month names
 correctly in regard to these entities, especially
 in week mode when a week was between two months.


--- CalendarTag.py.orig Sun Jun  4 11:09:54 2000
+++ CalendarTag.py  Sun Jun  4 13:18:40 2000
@@ -114,6 +114,22 @@
 self.week_sday = int(weekdays[0])
 self.week_ndays = int(weekdays[1])
 
+def __cutmonthname(self, name, length) :
+"""Cuts the month name at length characters, counting
+character entities for only one character"""
+entityfound = 0
+for i in range(len(name)) :
+if name[i] == '' :
+entityfound = 1
+elif name[i] == ';' : 
+entityfound = 0
+
+if not entityfound :
+length = length - 1
+if not length :
+break
+return name[:i + 1]
+
 def render(self, md):
 ##time_start = time()
 
@@ -226,15 +242,15 @@
 v['next_url_'] = self.linkDate_(d, mode)
 else:
 if self.mode == 'day':
-monthname = v['monthnames'][date.month() - 1][:3]
+monthname = self.__cutmonthname(v['monthnames'][date.month() - 1], 3)
 left = '%s %d, %d' % (monthname, date.day(), date.year())
 v['day_img_'] = 'sday'
 v['daynames'] = None
 elif self.mode == 'week':
 sdow = date - date.dow()
 edow = sdow + 6
-smonthname = v['monthnames'][sdow.month() - 1][:3]
-emonthname = v['monthnames'][edow.month() - 1][:3]
+smonthname = self.__cutmonthname(v['monthnames'][sdow.month() - 1], 3)
+emonthname = self.__cutmonthname(v['monthnames'][edow.month() - 1], 3)
 
 left = '%s %d' % (emonthname, edow.year())
 if sdow.aMonth() != edow.aMonth():



Re:[Zope] Mailing lists available on a news server

2000-06-04 Thread truename

I notice that Mozilla has its mailing lists available for reading from a
news server on mozilla.org. I'm not sure whether you can post to it too
-- I assume so, and that there is a two-way gateway between the news and
the mail.

Any chance of zope.org having a similar arrangement?

Guess this won't be hard? 8)
I remember roughtly mailman (which holds up the [EMAIL PROTECTED] ?)
can do this.

Best regards,
zhaoway


___
21CN(www.21cn.com)ÓëÍøÒ×(www.163.com)¹²Í¬Ö§³ÖCNNICµ÷²é£¬
Çëµ½CNNICͶ21CNһƱ£¬ÇëͶÍøÒ×һƱ£¡
http://fsurvey.cnnic.net.cn/survey/index.html


___
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] Update from Beehive ZClass manual ?

2000-06-04 Thread FR Chalaoux

Hi Mark,

In your last message about ZClass (
http://lists.zope.org/pipermail/zope/2000-June/026685.html ) your wrote
:

 thanks! the cool thing about our tutorials is that
 all our customers get free updates for one year ---
 giving us bees a chance to correct any errors as well as
 document any (in this case ZClass) new features/changes.

So, when will come the next update of ZClass manual ?

Will you add a part for non beginner, and if yes what one could expect ?

FR


___
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] permissions for the folder at /

2000-06-04 Thread Paolo Pumilia

Hi all zopers, 
I've been playing around with zope 2.1.6 (debian
distrib) for
a few days. Today accessing zope main page was weird:
no password 
is required any more to access the root folder
management page. 
Permissions are however restricted, so no dtml methods
and no new 
directories can be created in the main folder.
Can anybody try to explain what ha s happened?
How to change permissions for the folder at root?

thank you for your help 

Pol


__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it

___
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] is WebDAV a security hole?

2000-06-04 Thread Jacob Lundqvist

Been playing around with WebDAV from IE5 connecting to a RedHat 6.1
+Zope 2.1.6

And it seems that quite a bit of the stuff that propably shouldn't be
visible can be seen,
for example acl_users

Without being logged in I can start a download of it, eventually IE5
fails, but I get this uncomfortable feeling that this is more due to IE5
not handling this document type than anything else...

If I used some other WebDAV client, could I then download acl_users, and
if so, would this expose usernames/passwords?

I haven't fiddled with the Security Tab for acl_users, so it should be
default permissions. Are they bad and what should they be changed to?

--- 
Mail: [EMAIL PROTECTED]
Phone: +46-708-555 456
Am I there? http://maja.luba.se/jacob/jacob.jpg

___
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] PoPy module

2000-06-04 Thread jani

Alexander N Gould wrote:
 
 I'm trying to install the PoPy Python module on my Yellowdog Linux system
 (a redhat clone for PowerPC hardware).  I'm sure it's a simple task, but I
 don't know how to do it.  Any suggestions or tips?  Thanks in advance.
 
 Building highways to reduce traffic is like loosening your belt to reduce
 obesity

First make sure that pyton-devel is installed on your system. 
It's available at www.python.org I think.

Untar PoPy-1.1.tar.gz and ZPoPyDA-0.3.tar.gz .
First you have to build PoPy. 
On my system I had to modify the lib and include path in Setup and
in PoPymodule.c

Setup:
*shared*
PoPy PoPymodule.c -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpr

PoPymodule.c:
...
#include libpq-fe.h
#include libpq/libpq-fs.h
...

Go on with:
make -f Makefile.pre.in boot
make

You should now have the shared library PoPymodule.so .
Copy this file to python1.5/site-packages on your system.

Now you have to install zope-popyda-0.3
"make install" will place the Zope product to
/usr/lib/zope/lib/python/Products/ZPoPyDA

Just move it to the Product folder of your Zope installation.
Restart Zope and it should work ;-)

Take a look at the README. It describes the format of the connection
string.
It's different from that of PyGreSQLDA!
Also make sure that you hav set proper permissions on
PGDATA/pg_hba.conf

BTW after i recognized some problems using PoPy I switched back to
PyGreSQLDA.
1. When I try to connect to postgres 6.4 using PoPy the connect fails
   postgres.log: ERROR: parser: parse error at or near "transaction"

2. Whether Auto-commit mode is on or off on ZPoPyDA  the new postgres
7.0 syntax 
 "select * from foo limit 20 offset 10" returns all records of foo and
not only 20 !
  With PyGreSQLDA it works :-)

-- 
_
Andreas Heckel[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] Re: Update from Beehive ZClass manual ?

2000-06-04 Thread Mark Pratt

hi FR,

 thanks! the cool thing about our tutorials is that
 all our customers get free updates for one year ---
 giving us bees a chance to correct any errors as well as
 document any (in this case ZClass) new features/changes.

FR wrote:

 So, when will come the next update of ZClass manual ?

its very difficult for us to say a date like:
august xx, 2xxx -- we are somewhat dependant on factors 
that we have no control over  such as when major revisions 
of the software code for ZClasses get updated. 

we're also trying to incorporate as many customer suggestions
as possible -- in order to do this right it takes time.

 Will you add a part for non beginner, and if yes what one 
 could expect ?

i'm not sure i understand what you mean. the ZClass Tutorial
is not just for beginners. it's designed to give an overview
through practical examples of what ZClasses are and how they
work. this is also relevant to experienced programmers 
who need a quick, well documented, introduction to ZClasses.

if after you finish reading the tutorial have suggestions
on how we can improve it -- we'll review your comments 
carefully. please send these to: [EMAIL PROTECTED] 
a lot of improvements in our documentation wouldn't be 
possible without the excellent feedback we receive on
an almost weekly basis from our customers.

thanks and regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299


___
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] Using FTP to connect to Zope server from (g)VIM

2000-06-04 Thread David Trudgett

At 2000-06-02 15:51 +0100, Phil Harris wrote:

Hi all,

My intellect was piqued recently by a discussion on the list about editors
for Zope etc.

I remember some people saynig that VIM was good, to which my response was,
'Yeah but there's no FTP built in'.

Someone then responded with a few scripts to do it.

Well I thought they were a bit cumbersome, so I wrote my own.

That's great, Phil! I think I'll find those scripts very handy. Thanks.

David Trudgett


___
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] security issues

2000-06-04 Thread Ragnar Beer

   I will soon have a Zope-site ready to go online. How can I make shure
   that I did everything (concerning Zope) to stop intruders? Where can
   I find information about protecting a Zope-site? Has anyone had
   security problems so far?

Easiest (most brutal?) fix I've found - hide Zope behind an Apache,
and prohibit access to any URLs of the form .*/manage.*

This is what I'm doing at the moment (more or less) but your question 
made me think. Actually this is an example of "allow anything that 
isn't explicitly denied" which is not a very good policy if you want 
security. I remember (but - darn - can't remember where I have it) a 
posting that said that anyone can easily see the names of all objects 
in a folder which is nice intelligence gathering.
I guess it would be much better (and even more brutal;) to deny 
everything that isn't allowed explicitly. I'll try that later. I 
think I'll have to allow .*_html and .*_img for the http protocol 
plus all the .*/manage.* stuff for https and perhaps also make some 
(not so secure) restrictions based on ip adresses.

--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] How to ZCatalog DTML documents and/or HTML files automatically?

2000-06-04 Thread Loren Stafford

ZScheduler is sort of functional on Win98, but not at all on Unix. It seems
to cause Zope to restart when the product is loaded and it doesn't trigger
events. I haven't had the time to track down the symptoms, let alone the
real causes. I'd gladly accept help from others.

-- Loren


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: June 03, 2000 03:12 AM
Subject: [Zope] How to ZCatalog DTML documents and/or HTML files
automatically?


 Hello,

 this is probably a stupid question, But I'm damned if I can find
 a solution :-(

 We have an internal site to store technical documents (in HTML
 or as DTML documents).
 We are using ZCatalog to provide an index for it.

 Now, we want to have some mechanism that updates the index every
 night (including pages added during the day).

 On this list, I have read that the obvious solution, ZScheduler,
 "does not work". I take it "does not work reliably for all
 conceivable uses".
 Does this mean it is likely to work for what I have in mind? Are
 there any other ways to achieve it? I am running this on Unix
 (Solaris 7, in fact).

 Confused,
 Jan

 ___
 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] HappySession 0.1.0 released!

2000-06-04 Thread Hung Jung Lu

Hi,

I have been using RAM-based session management for a while, but never wrote 
a product for it. Since Graham Chiu has mentioned it again about making a 
real product, I have taken the time to make one, and called it HappySession. 
:) Well, in short, it uses cookie for session id, you specify a maximum 
session expiration time, and expired session data are automatically deleted. 
It's Zope-transaction-aware.

I got a lot of help from Pavlos Christoforou (author of FSSession, a 
file-system-based session management product.) Thanks a lot, Pavlos!

Give it a try. Let me know whether there is any problem. It's easy to use, 
or at least that's what I have intended. :) It's my very first product, so 
if there are any bad things that I have done, please let me know.

Here is the URL:

http://www.zope.org/Members/hungjunglu/Products

regards,

Hung Jung


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 )




[Zope] Product Downloads

2000-06-04 Thread Andrew Kenneth Milton

Just a small suggestion:-

Can you put a list of "Page Numbers" along with the next/prev 20 to make it 
easier to navigate into the middle of the pack ? Or a 'show all' link
perhaps? At least you can binary search when you're looking for something
rather than sequential search (and you don't know how many products you've
got).

Actually even Letter Ranges, Date Ranges and Author Ranges would be good
instead of just Pages (there's even an example of doing that in the
ZDTML guide so we know you know how to do it d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )