RE: [Zope] PoPy Installation. Where's the BEEF?

2001-01-10 Thread Eric Walstad

AAKK!  I just noticed something...
-8<-- Start Snip --8<-
ZPoPyDA Import Traceback
Traceback (innermost last):
  File "/usr/local/Zope/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/__init__.py", line 32,
in ?
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/DA.py", line 35, in ?
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/PoPy_db.py", line 35, in
?
The PoPy module is not installed
-8<-- End Snip --8<-
Notice the paths in the traceback.

I have one copy of Zope (no PostgreSQl support) in:
/usr/local/Zope

And another copy that will need to connect to PostgreSQL is in:
/usr/local/EcoZope

and ZPoPyDA is in:
/usr/local/EcoZope/lib/python/Products/ZPoPyDA/

The traceback is displaying wrong paths.  I searched the ZPoPyDA python
source for hard coded paths but didn't find any.  Is there an environment
variable that sets this?

Thanks for any help...
Eric.


Eric Walstad
[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] log file.

2001-01-10 Thread Jason C. Leach

hi,

Is the Zope log file in Common Log File Format?

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] PoPy Installation. Where's the BEEF?

2001-01-10 Thread Magnus Heino (Rivermen)


> The PoPy module is not installed
> 
> So, it looks like I need to install PoPy.  I went to 

>Can anyone give me a pointer?

http://freshmeat.net/search/?q=popy

___
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] PoPy Installation. Where's the BEEF?

2001-01-10 Thread Eric Walstad

Hello all,
After installing the ZPoPyDA product, restarting Zope and browsing to the
Products interface, I see:

ZPoPyDA Import Traceback
Traceback (innermost last):
  File "/usr/local/Zope/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/__init__.py", line 32,
in ?
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/DA.py", line 35, in ?
  File "/usr/local/zope/lib/python/Products/ZPoPyDA/PoPy_db.py", line 35, in
?
The PoPy module is not installed

So, it looks like I need to install PoPy.  I went to www.mixadlive.com (PoPy
PeOpLe :) and couldn't find
it there (I don't speak Italian, so it may be right under my nose).  I've
searched the
Zope archives and didn't see any leads there.

Can anyone give me a pointer?

Thanks,
Eric.


___
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] does xml-rpc work with zope and pcgi/apache?

2001-01-10 Thread Roman Milner

I'm having problem getting xml-rpc calls to work with zope running on
apache/pcgi.  I'm using the python xml-rpc module to send an xml-rpc
request that looks like this (when captured at the socket level):

POST /asdf/1/ HTTP/1.0
User-Agent: xmlrpclib.py/0.9.5
Host: localhost:
Content-Type: text/xml
Content-Length: 107



listServices






What I get back from a zope running zserver only is:


HTTP/1.0 200 OK
Server: Zope/Zope 2.3.0a2 (source release, python 1.5.2, linux2) ZServer/1.1b1
Date: Thu, 11 Jan 2001 04:44:21 GMT
Connection: close
Content-Type: text/xml
Content-Length: 229






troubleTickets
openTicket






When I send the exact same request through the same zope server
running with apache/pcgi the response I get is a 404 (not found)
error. I have an apache rewrite rule set up that works fine - I can
go to /manage and so forth, and it works.

The 404 makes a little sense, as the above posts to /asdf/1 which
doesn't have an index_html in it, so in apache land this would be a
bit like posting to a directory, but I thought that zope would have
taken care of this some how.

I have included the full error message sent back from the zope/apache
below.  We are working on a flash application that we were planning on
having talk to zope via xml-rpc, but if xml-rpc won't work through
apache, I guess we'll have to come up with some other way of talking
to zope.

Any help is greatly appreciated.

^Roman



HTTP/1.1 404 Not Found
Date: Thu, 11 Jan 2001 04:46:45 GMT
Server: Apache/1.3.14 (Unix) mod_snake/0.4.1
Bobo-Exception-File: /home/Zope2/lib/python/ZPublisher/HTTPResponse.py
Bobo-Exception-Line: 528
Bobo-Exception-Type: NotFound
Bobo-Exception-Value: asdfZope Error      Zope Error 
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
Content-Length: 1591
Connection: close
Content-Type: text/html

asdf

 
Zope Error






 

blah blah blah...



___
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] SiteAccess and 2.3.0a2

2001-01-10 Thread Evan Simpson

From: "Timothy Wilson" <[EMAIL PROTECTED]>
> I have Evan's excellent SiteAccess product installed on my 2.3.0a1 Zope

Thank you.

> Now that SiteAccess is part of the Zope core, how should I handle
> the upgrade. Can I simply recompile?

It's the same Product, with only cosmetic changes.  If you're getting Zope
from CVS, you should probably delete your current SiteAccess directory
before cvs up.  If you're using the tarball, simply don't bother installing
SiteAccess in the new installation.

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 )




[Zope] SiteAccess and 2.3.0a2

2001-01-10 Thread Timothy Wilson

Hi everyone,

I have Evan's excellent SiteAccess product installed on my 2.3.0a1 Zope as
an add-on. Now that SiteAccess is part of the Zope core, how should I handle
the upgrade. Can I simply recompile?

-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] || 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] dtml-tree and a filtered objectValues

2001-01-10 Thread Jim Hebert

On Wed, 10 Jan 2001, Dieter Maurer wrote:

> I tried to reproduce this in Zope 2.3 CVS.

Sorry, shoulda mentioned, this error came from 2.2.4, and apologies for
not testing against at least 2.2.5 first, I managed to miss its release
entirely... (I still haven't gotten around to installing it so I can't say
if it's mysteriously fixed in 2.2.5 or what.)

On that note, if I have a (different) 2.1.6 site I'm about to take down
and migrate to a current release, should I go with 2.2.5 or try to track
2.3 CVS? I was planning on going with 2.2.x, but if the version in cvs is
_more_ mature than the previous release...

Thanks,

jim




___
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] Design/DTML question

2001-01-10 Thread Dennis Nichols

At 1/10/01 01:22 PM, Timothy Wilson wrote:
>On Wed, 10 Jan 2001, Dennis Nichols wrote:
> > Or, if you insist that dates flow down the columns like I do, you could 
> use
> > this untested revision of Max's solution
>   
>
>This doesn't seem to work. The if statement only evaluates to true the first
>time through the loop.

Because the objects in the loop had no 'id' attribute? In any case, here's 
a complete tested example:





   
 
   
 

 
 
   
 
   




--
Dennis Nichols
[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] MySQLDA and MySQL-python - patch needed?

2001-01-10 Thread Ron Bickers

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, January 10, 2001 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] MySQLDA and MySQL-python - patch needed?
>
>
> My Zope-MySQL connection is still not quite working. It appears that the
> request from Zope is reaching MySQL and it if is an UPDATE or INSERT query
> it executes properly on the MySQL side. However, SELECT queries
> and similar
> are not getting their information back to Zope from MySQL. Is there some
> patch I am missing here? Anybody know how to fix this?
>
> FYI:
> I installed from these rpms
>
> ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm
> ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm
>
> This did not install into my Zope installation directory, so I used a
> symbolic link in my Zope Products directory that points to the
> directory of
> MySQLDA install. Could this be the cause? Perhaps information that should
> be returned from MySQL is getting lost on the return trip. If so,
> how would
> I fix it? Any ideas?

The RPMS install the DA where the Zope RPMS install Products.  I actually
put my products in the same place (RPMS or not) and use symbolic links for
the different instances of Zope I have running, so I know symbolic links
will work.  If DA product is showing not broken in the Control Panel, then
it was installed properly.

Are you getting any error messages?  How do you know the information is not
getting back to Zope?  When you test the queries on the connection
management screen, do you get results?

___

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] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer

Chris Withers writes:
 > [EMAIL PROTECTED] wrote:
 > > 
 > > Supposedly proximity searches are possible... like "FIDELITY within 8 words
 > > of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
 > > here...
 > 
 > Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.
 > 
 > I think Dieter Maurer <[EMAIL PROTECTED]> wrote the code, so he's
 > probably a good person to speak to :-)
No, I just looked for bugs in it and found several.

It is almost as you described:

  the proximity operator is "..."

  you can not control the distance

  "..." is effectively an "and" with a high score when the
terms are near together and a lower score for higher
distances

  term in "..." are effectively combined with "...",
thus: '"bear wine champagner"' is equivalent to
'bear ... wine ... champagner'


ZCatalog would interpret "FIDELITY ... MUTUAL FUNDS"
as "(FIDELITY ... MUTUAL) or FUNDS"
The nearest result what "sean" asked for, would
probably be 'FIDELITY ... "MUTUAL FUNDS"',
which is equivalent to 'FIDELITY ... (MUTUAL ... FUNDS)'.

I have not too much confidence in ZCatalog (yet ; this
may change now that Chris P is responsible for it).
I doubt, it will implement "A ... B ... C"
sensefully.
It is a big question, all together, whether a binary
operator is the correct choice for proximity.



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] broken products not indicated after Zope 2.2.5 install

2001-01-10 Thread Fred Yankowski

I activated Zope logging as you suggested and restarted Zope, but the
logfile does not report any exceptions.  It only contains routine
startup messages such as "ZServer HTTP server started ...".

And the Products list still makes it look like they're all OK, when
many are in fact broken by virtue of being completely missing in the
lib/python/Products directory.

On Wed, Jan 10, 2001 at 07:53:02PM +0100, Dieter Maurer wrote:
> Fred Yankowski writes:
>  > I just installed a full copy of Zope 2.2.5 onto my NT 4.0 SP 6 machine
>  > and then copied over my data.fs* files from Zope 2.2.3.  Zope 2.2.5
>  > comes up OK after that, but none of the Products in the Control Panel
>  > / Products folder is shown as broken, even though I have yet to copy
>  > over the dozen or so products that I had added onto Zope 2.2.3.  Of
>  > course, other objects that depend on those products fail and some of
>  > those do display a "broken" icon and state.  But why don't the
>  > incomplete products themselves get flagged as broken?
> This may be part of a (small) Zope misfeature.
> 
> If exceptions occur during some part of product registration,
> then Zope appears not to update the product state.
> 
> I suggest, you activate Zope's logging mechanism
> (either through an environment variable
> "STUPID_LOG_FILE=file" or with an equivalent command line
> argument to "start"). Then restart Zope and look at the log
> file.
> If you see exceptions there, file a bug report into the Collector.

-- 
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] permissions problem upgrading to 2.3.0a1 from 2.1.6

2001-01-10 Thread Jerome Alet

On Wed, Jan 10, 2001 at 09:49:53PM +0100, Dieter Maurer wrote:
> Jerome Alet writes:
>  > ... permission problem upgrading ZClasses from 2.1.6 to 2.3a1 ...
> Are your ZClasses pure Zope ZClasses or do they contain
> Python based products?

They contain some PythonMethods (not Scripts !), external methods,
but the method which poses a problem is pure DTML.

> There was a big shift in security policy during
> Zope 2.1.x to Zope 2.2.x.
> Many Python based products need to be changed in order
> to be compatible with the new security policy.
> This is excellently explained in a paper from Brian:
> "... Upgrading to Zope 2.2 ..."

I thought I've already read it IIRC, but I'll reread it more carefully ASAP.

Thanks for your help.

Jerome Alet

___
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] Memory problems

2001-01-10 Thread Dimitris Andrakakis

Dieter wrote:
> "ps" is still a bit stupid and does not visualize that
> they are threads rather than normal (full blown) processes.

ps -axf ?

Dimitris
http://atlas.central.ntua.gr:8000


___
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] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > Supposedly proximity searches are possible... like "FIDELITY within 8 words
 > of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
 > here...
Zope supports some proximity searches, but it provides far less
control than you ask for.

The proximity operator is "...".
It is essentially an "and" with a score depending on the distance.
You will not get more control.


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 )




[Zope] Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Dieter Maurer

Morten W. Petersen writes:
 > It seems I misunderstood the term fuzzy logic myself.  Fuzzy logic means
 > if I search for a word, for example 'programmer', it will return matches
 > to the words 'program', 'programming','programmable' etc.
This, usually, is called "stemming".
Though, your examples indicate quite a strong form of it.

If you have some tool, maybe LinguistX, that map from a word
to its stem and then from the stem to all words with this as
stem (or directly give the stem equivalence class of a word),
then it is quite easy to incorporate that in Zope's catalog.

However, to do that cleanly, you will need good algorithms
and/or large dictionaries. This, usually, is not free of
charge.



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] REPOST: dtml-with doesn't work

2001-01-10 Thread Dieter Maurer

Usually, I complain that problem reports are too terse.
But, your's was very big, such that I did not read it
carefully. It is very difficult to get it right for everyone.

Just a remark:

  SQL methods do *NOT* look at the DTML namespace *AT ALL*,
  just at REQUEST (or the expliciitly passed keyword arguments).

  Thus, "dtml-with", "dtml-let" and friends are all ineffective
  with respect to ZSQL methods.

May be, that explains your problem.
May be not, as I am not sure, that you need the values indeed
inside a ZSQL method.

I can assure you: "dtml-with" does work.


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] inserting half a dtml tag into a zclass

2001-01-10 Thread Dieter Maurer

Tim Hicks writes:
 > >  II. I think (this implies, I am not sure), that ZPublisher
 > >  translates exceptions into HTTP response codes.
 > >  This would mean, you could try:
 > >
 > >In your "privacy" method:
 > >   
 > >   
 > >   
 > >   
 > >
 > >in your other objects:
 > >
 > >   
 > >   ...header...
 > >   
 > >   ...footer...
 > >
 > 
 > You've lost me a bit there.  Where am I actually checking to see if the user
 > has access rights?
When I use "", this means something
you have provided or will fill in with application specific code.

Thus, in your privacy method:

     
  
  
  


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] dtml-tree and a filtered objectValues

2001-01-10 Thread Dieter Maurer

Jim Hebert writes:
 > 
 > DMTL method "y":
 > OK, this works:
 > 
 > My DTML Method, "y":
 > 
 > ...
 > used as:
 > 
 >  ...
 > causes:
 >   Error Type: AttributeError
 >   Error Value: __getitem__

I tried to reproduce this in Zope 2.3 CVS.

I had to replace "_" by "_vars", as "_" gave me
a "NameError: _" (do not know why), but otherwise,
it worked.

I got your error, too, when I tried 'branches_expr="y"',
but that is expected, because in this case, the
expression evaluates to a DTML method and does not
have a "__getitem__" as required by "tree".


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] SQL Method, dtml-with and namespace weirdness

2001-01-10 Thread Dieter Maurer

Mayers, Philip J writes:
 > I'm wondering if it's a bug in the postgres DA, since I can't reproduce it
 > with a quick gadfly test. I'm just going to try it out now.
That would be very astonishing, as a database adapter
does not have anything to do with namespaces.


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] get property of type 'list'

2001-01-10 Thread Dieter Maurer

Andrei Belitski writes:
 > I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
 > 3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
 > instead of '1' '2' '3'
Are you sure, it was '[1,' '2,' '3]' and not ['1', '2', '3', '4']?

If it were, it would be really strange, unbelievable.

['1', '2', '3', '4'] would be normal, when you use
a list (it definitely is one!) in e.g.:

  

as a list (of cause) can not be part of a generated HTML page.
It must be converted into a string. And the above
it the string representation of a list.

To get the representation, you seem to favour (though
I do not understand why), you could use:

  

This make the string conversion explicitly ("_.str")
and then keeps the slice "[1:-1]" which means
everything beside the first and last character,
i.e. you chop the '[]'.


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] Adding many users

2001-01-10 Thread Shane Hathaway

Ragnar Beer wrote:
> 
> Howdy Zopistas and happy new year!
> 
> I need to add about 150 users to an acl_users folder and I wouldn't
> like to do it manually since the data already exists in a python
> list. What would be an elegant way to add them all with a python
> script?

A script to put in lib/python, supplying your own user_role_name and
user_list:

user_list = ??
user_role_name = ??

import Zope
app = Zope.app()
folder = app.acl_users
for u in user_list:
  folder._doAddUser(u.name, u.password, (user_role_name,), ())
get_transaction().commit()

See how that works?  Those first two lines give you the actual
database--not just a special view of it but a live connection.  From
there, you don't use some funny mechanism to get acl_users--it's
actually a simple attribute of the root object.  Then you modify
acl_users however you want and commit the transaction.  If any error
occurs, the transaction will be aborted and changes made to the database
will be forgotten.

Beautiful, isn't it?

Shane

___
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] Deleting a Role Doesn't Appear to Remove Permissions

2001-01-10 Thread Jason Grigsby

Today I ran into an issue in Zope where even after you delete a role that
the permissions associated with that role exist. If a user has that role
assigned to them, whatever permissions where last assigned to that role will
be available.

To test this, I created a test file with the following code:


foo


I chose Set Access Rule as a permission that is not normally associated with
a regular user. Testing this page produced no foo because the user does not
have access to the "Set Access Rule" permission on the content object (you
could pick any Zope Object to test on).

Then I created a test role. I assigned that test role to a user. I again
tested the output and got nothing.

I then gave the test role the permission to "Set Access Rule". Now when the
page is reloaded, foo appears.

Here is where it gets interesting. After deleting the test role, foo still
appears. This means that the role, while supposedly deleted, still exists
and is still assigning permissions.

Finally, I create a new role with the same name as the test role I created
earlier. This new role had the "Set Access Rule" button already
selected--indicating in my mind that the role was never really deleted.

If I am correct about this, this means that if we create a role and then
delete it, we will need to make sure that the role does not exist for any
users or they will continue to have the access that they had before.

Has anyone else run into this or seen a reported bug similar? (I searched
the Zope Bug Collector to no avail).

-Jason


___
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 alpha 2 released

2001-01-10 Thread Brian Lloyd

Hello all, 

  Zope 2.3.0 alpha 2 is now available. You can download it 
  from Zope.org:

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

  This release contains a number of new features, including:

- SiteAccess is now a part of the Zope core

- Shane Hathaway's CacheManager support and two cache manager 
  implementations have been added

- SQLMethods can now be edited using FTP and DAV aware tools

- Catalogs have been improved to work much better in virtual 
  host environments

- Changes to the Web management interface designed to improve 
  productivity, consistency and aesthetics


  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.0a2/CHANGES.txt
- http://www.zope.org/Products/Zope/2.3.0a2/HISTORY.txt

  **Please note** that we do not build binary distributions for 
  alpha releases - the alpha is available as a source release only. 
  When we move into the beta period for 2.3, we will build and 
  distribute binary releases.


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] permissions problem upgrading to 2.3.0a1 from 2.1.6

2001-01-10 Thread Dieter Maurer

Jerome Alet writes:
 > ... permission problem upgrading ZClasses from 2.1.6 to 2.3a1 ...
Are your ZClasses pure Zope ZClasses or do they contain
Python based products?

There was a big shift in security policy during
Zope 2.1.x to Zope 2.2.x.
Many Python based products need to be changed in order
to be compatible with the new security policy.
This is excellently explained in a paper from Brian:
"... Upgrading to Zope 2.2 ..."

I do not expect, that the behavious will be different,
if you upgrade to 2.2.4.



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] Trouble with dates in an External Method

2001-01-10 Thread Dieter Maurer

Steven Grimes writes:
 > This is a multi-part message in MIME format.
 > 
 > --=_NextPart_000_0009_01C07A9E.4B9BD860
 > Content-Type: text/plain;
 >  charset="iso-8859-1"
 > Content-Transfer-Encoding: quoted-printable
Please do not post MIME messages to this list!

 > ... external method does not import DateTime ...
And what error do you get?

I tried:

  from DateTime import DateTime

  def f():
return DateTime('2001/01/09')

and there was no problem.



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] broken products not indicated after Zope 2.2.5 install

2001-01-10 Thread Dieter Maurer

Fred Yankowski writes:
 > I just installed a full copy of Zope 2.2.5 onto my NT 4.0 SP 6 machine
 > and then copied over my data.fs* files from Zope 2.2.3.  Zope 2.2.5
 > comes up OK after that, but none of the Products in the Control Panel
 > / Products folder is shown as broken, even though I have yet to copy
 > over the dozen or so products that I had added onto Zope 2.2.3.  Of
 > course, other objects that depend on those products fail and some of
 > those do display a "broken" icon and state.  But why don't the
 > incomplete products themselves get flagged as broken?
This may be part of a (small) Zope misfeature.

If exceptions occur during some part of product registration,
then Zope appears not to update the product state.

I suggest, you activate Zope's logging mechanism
(either through an environment variable
"STUPID_LOG_FILE=file" or with an equivalent command line
argument to "start"). Then restart Zope and look at the log
file.
If you see exceptions there, file a bug report into the Collector.


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

2001-01-10 Thread Dieter Maurer

Andreas Tille writes:
 > Hello,
 > 
 > I tried to create my first class following a tutorial.  I exported
 > the rudimentary class via export function.  Now I wanted to import
 > it on my laptop to continue working on it but importing failed with
 > the message:
 > 
 >The object  does not support this operation
 > 
 > What could be wrong here?
ZClasses can only be imported into products.



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] Holiday Calendar anyone? (cont.)

2001-01-10 Thread Dieter Maurer

peter bengtson writes:
 > ... Holiday Calendar ...
There is the "Calendar" product to display calendars.

Of cause, it does not know, when there are holidays all over
the world.
The data displayed can be anywhere, for example in a database.
If you have a small database with your holidays
or other relevant events, then such a calendar should
be easy to realize.


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] Memory problems

2001-01-10 Thread Dieter Maurer

Tom Deprez writes:
 > ... potential memory leak ...
You can use the program "top" to analyse memory usage.
This will show you, which process[es] consume memory.

If Zope does it, then you can use "Control Panel->Debugging"
to get some hints where the leak may be.

 > ... many Zope processes shown by "ps" (Linux) ...
Linux implements threads by processes that share memory
and other resources.
"ps" is still a bit stupid and does not visualize that
they are threads rather than normal (full blown) processes.


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] slow DocumentTemplate (dtml) import speed

2001-01-10 Thread Dieter Maurer

Federico Grau writes:
 > ... import of "DocumentTemplate" in CGI script takes too much time ...
Check whether your Web Server supports FCGI.

If the Web Server is Apache, then there are several Apache
modules to integrate Python inside Apache.
I think Guido van Rossum uses "mod_snake".
Search "comp.lang.python" via "www.python.org" or "dejanews".

All these approaches would save you the new process spawn
and the build up of its infrastructure all together.

If you cannot use any of these options, then the
Python "freeze" facility may help you.


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] Design/DTML question

2001-01-10 Thread Max M

From: Timothy Wilson

> Or, if you insist that dates flow down the columns like I do, you could
use
> this untested revision of Max's solution:

Oh typical spine reaction I didn't read the dates, just assumed that it was
left/right as usual.

This untested code might work then: (The no-break tag  is really
underestimated. It can save loads of table tags.)


   
  
 

 
  
   
   
  
  (_['batch-size']/2)">

 
  
   



Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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] Storing and Using Object references

2001-01-10 Thread Shane Hathaway

Tom Jenkins wrote:
> 
> Hello all,
> i have a question and I hope someone can point me in the right direction
> to solve it.  I need one zope object to hold a reference to another zope
> object so the first object can call methods of the second object.  oh,
> these are python classes.
> 
> Example: object 1 is :  /container1/container1a/item1  object 2 is :
> /container2/container2a/item1  object1 needs to hold a reference to
> object2.  I'm really stuck on how to store and access object2 from
> object1.
> 
> any pointers?

I think what you're looking for is getPhysicalPath() and
unrestrictedTraverse().  Store object2.getPhysicalPath(), which returns
a tuple, in object1.  To find object2 again, call
object1.unrestrictedTraverse(stored_physical_path).

Note that this only works in Zope 2.2.x+.

Shane

___
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] ZWikiWebs Product

2001-01-10 Thread Simon Michael

Off the top of my head -

you don't mention whether they have Add ZWiki Webs permission -
presumably they do

are you using the zwikiwebs.zexp shipped with zwiki ? The separate
zwikiwebs product is due to be retired and not recommended.

-Simon

___
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] reindex when a zclass is edited

2001-01-10 Thread Ivan Cornell

Tim Hicks wrote:

>  I can't for the
> life of me figure out or find anywhere that can tell me how to make the
> instance get reindexed when it is edited.  I'm assuming that it is similar
> to the process for reindexing when the properties are changed, but I'm just
> not sure of the details. If it's not too much trouble, could someone give me
> detailed instructions (or a link) on how to do this. I'd really appreciate
> it.
>

In your method which is called by your edit form, insert a  after updating the properties.

Eg, in my manage_edit method I have





Regards, Ivan



___
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] Trouble with dates in an External Method

2001-01-10 Thread Andy McKay

try this kind of whacky line:

from DateTime.DateTime import DateTime

you can then do

date1= DateTime(str1)
date2= DateTime(str2)
if date1==date2:
...

--
  Andy McKay.


- Original Message -
From: "Steven Grimes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 09, 2001 10:43 PM
Subject: [Zope] Trouble with dates in an External Method


I'm having trouble using dates in an external method. I can't get it to
import the python DateTime module. I need to compare two dates which are in
string form in the external method. I know that this isn't a good
description of what I'm trying to do but I'm new to Zope development. If
this should go to a different mailing list please let me know.

Thanks in advance for any help,
Steven



___
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] Design/DTML question

2001-01-10 Thread Timothy Wilson

On Wed, 10 Jan 2001, Dennis Nichols wrote:

> Or, if you insist that dates flow down the columns like I do, you could use 
> this untested revision of Max's solution:
> 
> 
>
>  
>
>  _.int(_['sequence-index'])*2==_.int(_['count-id'])+1">
> 
>  
>  
>
>  
>
> 

This doesn't seem to work. The if statement only evaluates to true the first
time through the loop. I agree that the dates must flow down, so don't I
need to have some way to do the following:




 
 




It's the [some later index] part that would seem to be the
bugger. Doable? Perhaps this would be a perfect application for a
PythonScript?

-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] || 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 )




[Zope] reindex when a zclass is edited

2001-01-10 Thread Tim Hicks

I know this has been asked numerous times before (once by me!), and I'm
sorry to cover the same ground again, but I've spent all afternoon searching
through the list archives to no avail. I have a zclass that is catalogaware
(selected first and all that).  When I add an instance, it gets cataloged
and all is fine.  I followed the how to
(http://www.zope.org/Members/AlexR/CatalogAware) and successfully made my
instance get reindexed when the properties are changed, but I can't for the
life of me figure out or find anywhere that can tell me how to make the
instance get reindexed when it is edited.  I'm assuming that it is similar
to the process for reindexing when the properties are changed, but I'm just
not sure of the details. If it's not too much trouble, could someone give me
detailed instructions (or a link) on how to do this. I'd really appreciate
it.

cheers

tim


___
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] inserting half a dtml tag into a zclass

2001-01-10 Thread Tim Hicks


- Original Message -
From: Dieter Maurer <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 29, 2000 9:38 AM
Subject: Re: [Zope] inserting half a dtml tag into a zclass


> Tim Hicks writes:
>  > This is a multi-part message in MIME format.
>  >
>  > --=_NextPart_000_0009_01C07071.533E96C0
>  > Content-Type: text/plain;
>  > charset="iso-8859-1"
>  > Content-Transfer-Encoding: quoted-printable
> You are here long enough: you should know, we do not like MIME
> messages.

My apologies. You're right, I do know better... my mistake.  Also, apologies
for the delayed reply, I've been away.

>
>  > ... isolating privacy checks ...
>  > 
>  > 
>  > 
>  > 
>
> I know about 2 possible approaches:
>
>  I. let your "privacy" method return a value (using "dtml-return")
> and check it above:
>
> 
>   ...header...
>   ...
>   ...footer...
> 
>

I've gone for a 'method' based on this first idea of yours.  Here is what
appears in each zclass instance.










And here is the privacy method.




















It's not perfect (that would be when there is nothing for the user to break
in each instance), but it's better than it was and also allows me to edit
only one privacy method to change the access rights.


>  II. I think (this implies, I am not sure), that ZPublisher
>  translates exceptions into HTTP response codes.
>  This would mean, you could try:
>
>In your "privacy" method:
>   
>   
>   
>   
>
>in your other objects:
>
>   
>   ...header...
>   
>   ...footer...
>

You've lost me a bit there.  Where am I actually checking to see if the user
has access rights?

Cheers

tim


___
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] ZGDChart

2001-01-10 Thread Olaf Zanger

hi there,

a great product,

just i want to have a form to enter some parameters for the SQL Method
call.

since zgdchart-product calls the SQL Method i don't know how to pass the
parameters.

does anybody has an idea?

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] ZWikiWebs Product

2001-01-10 Thread Marty Stitt



I have a 2.2.5 based system with the Yihaw and ZWikiWeb products installed.

When I try to add a ZWikiWeb within a Yihaw folder, I experienced a
permissions problem that sounds like what you describe.  But, I did find that
I could install a wiki object within a standard Folder object without this
problem.  So, when you say that users can't install them in "their own
folders", what type of folder is that?  Instead of trying to debug why a
wikiweb object couldn't be put into a Yihaw Folder, I just reworked my design
to let me put my wiki objects into a standard folder, and then created a
linkage so that the users involved could get at the wiki.

Within the Security tab of the management page for the wiki object, there are
two permissions you want to assign to some role your users have:  "Add ZWiki
Pages", and "Change ZWiki Pages".





Matthew Monacelli wrote:
> 
> Has anyone else had trouble using the ZWikiWeb product?  As Manager, there
> are no problems, but users I have added cannot add ZWikiWebs in their own
> folders.  While already logged in, a login box comes up, meaning they do not
> have the necessary permissions.  When I cancel the box, I get the Zope error
> message stating that the user is not authorized to access Control_Panel.  I
> have given the user role (that I created) access to view contents, view, use
> factories, change zwiki pages, and serveral others.  Is there something I am
> missing?
> 
> Thanks,
> Matt
> 
> ___
> 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 )

-- 
Martin Stitt
Chief Software Engineer
Esker, Inc.
email: [EMAIL PROTECTED]
phone: (608) 273-6000 x331
fax:   (608) 273-8227
web:   http://www.esker.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] Design/DTML question

2001-01-10 Thread Dennis Nichols

At 1/10/01 04:44 PM, Max Møller Rasmussen wrote:
>From: Timothy Wilson [mailto:[EMAIL PROTECTED]]
>
> >Right now, I've got the dates stored in a TinyTable. I can iterate through
> >that list and generate the links, but I can't figure out how to display the
> >table in two columns.
>
>   

Or, if you insist that dates flow down the columns like I do, you could use 
this untested revision of Max's solution:


   
 
   
 

 
 
   
 
   


Gosh, wouldn't it be nice to have a sequence-midpoint ? But then somebody 
would surely want a sequence-first-quartile and so on :-)


--
Dennis Nichols
[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] raw search on a ZClass

2001-01-10 Thread aZaZel

Hi!

I have some ZClass istances that are catalog-aware.
Someone knows how to do raw (full text) searches over all the property 
values of the istances? I have tried the "raw" index trick used for 
other object types but without success. Or maybe another way to do the 
thing .

Thanks in advance
Alberto


___
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] Storing and Using Object references

2001-01-10 Thread Andy McKay

In python its even easier, and depends what you are doing.
Basically you want to get a handle to another object so you can do something
along the lines of

obj = self.container1.containter1a.item1
result = obj.mymethod()

there are many funky variations on that of course. There's also interfaces
such as REQUEST.resolve_url, _getOb, getItem that you may want to look into.

--
  Andy McKay.


- Original Message -
From: "Tom Jenkins" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 10:54 PM
Subject: Re: [Zope] Storing and Using Object references


> Hi Andy,
> Thanks for the feedback.  Yes I see that I can call the methods using
> the url (which will give me the object) but I thought that was only in
> dtml.  I need to access the object in my python code.  that's the
> struggle I'm having.  or did I miss something in your response?
>
> Tom
>
> "Andy McKay" wrote:
>
> >  Subject: Re: [Zope] Storing and Using Object references
> >  Date: Wed, 10 Jan 2001 08:56:25 -0800
> >  From: "Andy McKay" <[EMAIL PROTECTED]>
> >  To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> >
> >
> >  If you call /container1/container1a/container2/container2a/item1, you
> can
> >  call methods on anything in the path...
> >  You could access it through dtml from 1->2 as  >  "container1.container1a.item1">
> >  You could get object2 in using getItem...
> >
> >  --
> >Andy McKay.
> >
> >
> >  - Original Message -
> >  From: "Tom Jenkins" <[EMAIL PROTECTED]>
> >  To: <[EMAIL PROTECTED]>
> >  Sent: Wednesday, January 10, 2001 8:48 PM
> >  Subject: [Zope] Storing and Using Object references
> >
> >
> >  > Hello all,
> >  > i have a question and I hope someone can point me in the right
> direction
> >  > to solve it.  I need one zope object to hold a reference to another
> zope
> >  > object so the first object can call methods of the second object.
> oh,
> >  > these are python classes.
> >  >
> >  > Example: object 1 is :  /container1/container1a/item1  object 2 is
> :
> >  > /container2/container2a/item1  object1 needs to hold a reference
> to
> >  > object2.  I'm really stuck on how to store and access object2 from
> >  > object1.
> >  >
> >  > any pointers?
> >  >
>
> Tom Jenkins
> devis - Development InfoStructure
> http://www.devis.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 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 UNLOCK????

2001-01-10 Thread Farrell, Troy

Did you try deleting the cookie on the browser?  Please don't yell.

Troy

-Original Message-
From: Rommel Novaes Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 10:28 AM
To: '[EMAIL PROTECTED]'
Subject: [Zope] HOW TO UNLOCK


WE NEED TO UNLOCK A VERSION THAT DOES NOT EXIST ANY MORE!! HOW CAN WE DO
IT?!
A USER DELETED A VERSION THAT SOMEONE ELSE WAS USING, AND WE CAN NOT QUIT
THIS VERSION!! 
AND WE CANNOT UNDO!!!
HELP US!!

___
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] Storing and Using Object references

2001-01-10 Thread Tom Jenkins

Hi Andy,
Thanks for the feedback.  Yes I see that I can call the methods using
the url (which will give me the object) but I thought that was only in
dtml.  I need to access the object in my python code.  that's the
struggle I'm having.  or did I miss something in your response?

Tom

"Andy McKay" wrote:

>  Subject: Re: [Zope] Storing and Using Object references
>  Date: Wed, 10 Jan 2001 08:56:25 -0800
>  From: "Andy McKay" <[EMAIL PROTECTED]>
>  To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>  
>  
>  If you call /container1/container1a/container2/container2a/item1, you
can
>  call methods on anything in the path...
>  You could access it through dtml from 1->2 as   "container1.container1a.item1">
>  You could get object2 in using getItem...
>  
>  --
>Andy McKay.
>  
>  
>  - Original Message -
>  From: "Tom Jenkins" <[EMAIL PROTECTED]>
>  To: <[EMAIL PROTECTED]>
>  Sent: Wednesday, January 10, 2001 8:48 PM
>  Subject: [Zope] Storing and Using Object references
>  
>  
>  > Hello all,
>  > i have a question and I hope someone can point me in the right
direction
>  > to solve it.  I need one zope object to hold a reference to another
zope
>  > object so the first object can call methods of the second object. 
oh,
>  > these are python classes.
>  >
>  > Example: object 1 is :  /container1/container1a/item1  object 2 is
:
>  > /container2/container2a/item1  object1 needs to hold a reference
to
>  > object2.  I'm really stuck on how to store and access object2 from
>  > object1.
>  >
>  > any pointers?
>  >

Tom Jenkins
devis - Development InfoStructure
http://www.devis.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] Proximity searches w/ ZCatalog

2001-01-10 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> 
> Supposedly proximity searches are possible... like "FIDELITY within 8 words
> of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
> here...

Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.

I think Dieter Maurer <[EMAIL PROTECTED]> wrote the code, so he's
probably a good person to speak to :-)

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] Fw: [Zope] HOW TO UNLOCK????

2001-01-10 Thread Andy McKay


- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Rommel Novaes Carvalho" <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 9:11 AM
Subject: Re: [Zope] HOW TO UNLOCK


> Please dont post in CAPS, you are more likely not to get a response.
>
> Heres one idea, the versioning comes from cookies. What error do you get
on
> the Undo? Have you tried to Undo everything after the deletion of the
> version?
>
> Make yourself a cookie for your browser matching the offending version.
Its
> simply of the format:
>
> NameZope-Version
> ValueUrl to version object, eg: /testing, /foo/testing.
>
> You are then in the version, and should be able to Undo.
> --
>   Andy McKay.
>
>
> - Original Message -
> From: "Rommel Novaes Carvalho" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 8:27 AM
> Subject: [Zope] HOW TO UNLOCK
>
>
> > WE NEED TO UNLOCK A VERSION THAT DOES NOT EXIST ANY MORE!! HOW CAN WE DO
> > IT?!
> > A USER DELETED A VERSION THAT SOMEONE ELSE WAS USING, AND WE CAN NOT
QUIT
> > THIS VERSION!!
> > AND WE CANNOT UNDO!!!
> > HELP US!!
> >
> > ___
> > 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] Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Casey Duncan

--- "Morten W. Petersen" <[EMAIL PROTECTED]> wrote:
[snip]
> 
> It seems I misunderstood the term fuzzy logic
> myself.  Fuzzy logic means
> if I search for a word, for example 'programmer', it
> will return matches
> to the words 'program', 'programming','programmable'
> etc.
> 
> I.e., it will somewhat intelligently return words
> that are similar in
> what they mean, using grammar rules (chopping off
> endings of words and
> making them match others).
> 
> Hmm.
> 
> Cheers,
> 
> Morten
> 

ZCatalog TextIndexes support this type of "wildcard"
searching. I posted a message a couple of weeks ago
that describes the query syntax. Search the mailing
list archives for it.


=
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`->

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] Proximity searches w/ ZCatalog

2001-01-10 Thread Andy McKay

Really using ZCatalog? I've never heard of that. There some globbing
searches *? etc, but nothing like that is readily apparent from the API.
Sounds like an interesting (ie complicated) idea...
--
  Andy McKay.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 8:41 AM
Subject: [Zope] Proximity searches w/ ZCatalog


> Supposedly proximity searches are possible... like "FIDELITY within 8
words
> of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
> here...
>
> Thanks,
> Sean
>
> =
> Sean Upton
> Senior Programmer/Analyst
> SignOnSanDiego.com
> The San Diego Union-Tribune
> 619.718.5241
> [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 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] Proximity searches w/ ZCatalog

2001-01-10 Thread sean . upton

Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
here...

Thanks,
Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[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] xmldocument

2001-01-10 Thread sean . upton

Do you have an example of the XML you are trying to use? File size, in
bytes?  Just curious, as I have had no problems with XMLDocument (in Zope
2.1.x and 2.2.x) working with newspaper stories from AP online in NITF
XML...

Sean

-Original Message-
From: Bak@kedai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 1:34 AM
To: Phil Harris; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] xmldocument


On Wednesday 10 January 2001 16:56, Phil Harris wrote:
> Bak,
>
> I can't help you fix it but I can tell you what the problem is, the file
is
> too big for Zope to cope with in one transaction so it starts a
> sub-transaction and there is a bug in the sub-transactioning engine.
>
> The same thing happens with a normal 'File' type as well.
>
> You should probably check the collector to see if this has been fixed or
> even reported.
>
> Phil

to say the file is big is an understatement.  
how can adding a news file be too big for zope to cope?  unless the default 
XML Document is huge. i'll peek at the collector.  thanks phil


-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


___
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] HOW TO UNLOCK????

2001-01-10 Thread Rommel Novaes Carvalho

WE NEED TO UNLOCK A VERSION THAT DOES NOT EXIST ANY MORE!! HOW CAN WE DO
IT?!
A USER DELETED A VERSION THAT SOMEONE ELSE WAS USING, AND WE CAN NOT QUIT
THIS VERSION!! 
AND WE CANNOT UNDO!!!
HELP US!!

___
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] Storing and Using Object references

2001-01-10 Thread Andy McKay

If you call /container1/container1a/container2/container2a/item1, you can
call methods on anything in the path...
You could access it through dtml from 1->2 as 
You could get object2 in using getItem...

--
  Andy McKay.


- Original Message -
From: "Tom Jenkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 8:48 PM
Subject: [Zope] Storing and Using Object references


> Hello all,
> i have a question and I hope someone can point me in the right direction
> to solve it.  I need one zope object to hold a reference to another zope
> object so the first object can call methods of the second object.  oh,
> these are python classes.
>
> Example: object 1 is :  /container1/container1a/item1  object 2 is :
> /container2/container2a/item1  object1 needs to hold a reference to
> object2.  I'm really stuck on how to store and access object2 from
> object1.
>
> any pointers?
>
> Tom Jenkins
> devis - Development InfoStructure
> http://www.devis.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 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] Design/DTML question

2001-01-10 Thread Max Møller Rasmussen

From: Timothy Wilson [mailto:[EMAIL PROTECTED]]

>Right now, I've got the dates stored in a TinyTable. I can iterate through
>that list and generate the links, but I can't figure out how to display the
>table in two columns.












 








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 )




[Zope] Design/DTML question

2001-01-10 Thread Timothy Wilson

Hi everyone,

I'm working on a Web page for our local school board. I'd like to create a
table that would display links to past board meeting minutes. The table
would look like this: (Note: dates are bogus)

+---+
| Meeting Minutes   |
|   |
| Monday, Jan. 10  Monday, Mar. 7   |
| Tuesday, Jan. 24 Monday, Mar. 20  |
| Monday, Feb. 7   Monday, Apr. 5   |
| Monday, Feb. 27  Tues., Apr. 19   |
|   |
|1999 | 2000 | 2001 |
+---+

By default, dates for the current year would be displayed, but clicking on
the years at the bottom of the table would display those dates.

Right now, I've got the dates stored in a TinyTable. I can iterate through
that list and generate the links, but I can't figure out how to display the
table in two columns.


 


will print the dates in a single column, but how can I iterate through and
refer to two different dates in one  pass? (Does that make sense?)

The second thing I'm tring to figure out is how to make the year links at
the bottom generate the new table of dates from a different TinyTable. Maybe
I should use the same TinyTable for all of the meeting dates and pull out
whichever year I need when the table is rendered.

I'm also wondering if I should implement these meeting minutes and agendas
in a ZClass. At first it seemed like this would be too simple to bother
with, but now I'm wondering if a ZClass would be a better approach. I'd
appreciate any comments.

-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] || 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 )




[Zope] Storing and Using Object references

2001-01-10 Thread Tom Jenkins

Hello all,
i have a question and I hope someone can point me in the right direction
to solve it.  I need one zope object to hold a reference to another zope
object so the first object can call methods of the second object.  oh,
these are python classes.  

Example: object 1 is :  /container1/container1a/item1  object 2 is :
/container2/container2a/item1  object1 needs to hold a reference to
object2.  I'm really stuck on how to store and access object2 from
object1.  

any pointers?

Tom Jenkins
devis - Development InfoStructure
http://www.devis.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] ZWikiWebs Product

2001-01-10 Thread Matthew Monacelli

Has anyone else had trouble using the ZWikiWeb product?  As Manager, there
are no problems, but users I have added cannot add ZWikiWebs in their own
folders.  While already logged in, a login box comes up, meaning they do not
have the necessary permissions.  When I cancel the box, I get the Zope error
message stating that the user is not authorized to access Control_Panel.  I
have given the user role (that I created) access to view contents, view, use
factories, change zwiki pages, and serveral others.  Is there something I am
missing?

Thanks,
Matt

___
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] get property of type 'list'

2001-01-10 Thread Max Møller Rasmussen

From: Andrei Belitski [mailto:[EMAIL PROTECTED]]

>I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
>3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
>instead of '1' '2' '3'

>How can I get Zope to interpret my property like a list not a string or
>whatever else?

Actually it IS treating it as a list:

 Should return '1'

This should list each item:






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 )




[Zope] MySQLDA and MySQL-python - patch needed?

2001-01-10 Thread paul_s_johnson

My Zope-MySQL connection is still not quite working. It appears that the
request from Zope is reaching MySQL and it if is an UPDATE or INSERT query
it executes properly on the MySQL side. However, SELECT queries and similar
are not getting their information back to Zope from MySQL. Is there some
patch I am missing here? Anybody know how to fix this?

FYI:
I installed from these rpms

ftp://ftp.logicetc.com/pub/Zope/RPMS/MySQL-python-0.2.1-1.i386.rpm
ftp://ftp.logicetc.com/pub/Zope/RPMS/Zope-ZMySQLDA-1.2.0-1.i386.rpm

This did not install into my Zope installation directory, so I used a
symbolic link in my Zope Products directory that points to the directory of
MySQLDA install. Could this be the cause? Perhaps information that should
be returned from MySQL is getting lost on the return trip. If so, how would
I fix it? Any ideas?

P. Johnson



___
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: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Ken Manheimer

On Wed, 10 Jan 2001, Morten W. Petersen wrote:

> > I do not think that "fuzzy logic" is strongly related to "regexp-like".
> > Anyway.
> > 
> > Fuzzy searching often means "finding matches with characters omitted,
> > replaced or inserted".
> 
> It seems I misunderstood the term fuzzy logic myself.  Fuzzy logic means
> if I search for a word, for example 'programmer', it will return matches
> to the words 'program', 'programming','programmable' etc.

I think your talking about something else.  Last i checked, "fuzzy logic"
was a logical algebra based on the existence of intermediate truth states,
between "true" and "false".  It has little or nothing to do with
aproximate searching, though i guess you could use it to make assertions
about the aproximations.  I think what you all are talking about is "fuzzy
matching".

> I.e., it will somewhat intelligently return words that are similar in
> what they mean, using grammar rules (chopping off endings of words and
> making them match others).

There are also matching mechanisms like soundex, that account for
misspelling by translating words to phonetic-equivalent normalized codes,
and comparing on that basis.

Ken
[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] SQL Method, dtml-with and namespace weirdness

2001-01-10 Thread Mayers, Philip J

Ok, using Postgresql 7.0.2-2, PoPo 2.0.1, ZPoPyDA 1.1-pre2, Zope 2.2.5,
here's a reproducible scenario:

Create the following tables in your database:

create table bugtest1 (
name text,
domain text,
);

create table bugtest2 (
name text,
domain text,
refer text,
foreign key(refer) references bugtest1(name)
);

insert into bugtest1 values ('a','aa');
insert into bugtest1 values ('b','bb');
insert into bugtest1 values ('c','cc');
insert into bugtest2 values ('w','ww','a');
insert into bugtest2 values ('x','xx','a');
insert into bugtest2 values ('y','yy','a');
insert into bugtest2 values ('z','zz','a');
insert into bugtest2 values ('g','gg','b');
insert into bugtest2 values ('h','hh','b');
insert into bugtest2 values ('i','hh','b');

Create the following folder structure:

/root
  dbconn (ZPoPyDA connection to whatever database you just put the tables
in)
  index_html
  get_host (Z SQL method)
  get_alias (Z SQL method)
  /alias
show
  /host
show

/root/get_host

select * from bugtest1

/root/get_alias

select * from bugtest2

  


/root/alias/show

&dtml-name;&dtml-domain;

/root/host/host

&dtml-name;&dtml-domain;

/root/index_html:

  1: 
  2: 
  3: 
  4:   
  5:   
  6: 
  8: 
  9:   POINT
A&dtml-name;&dtml-domain;
 10:   POINT
B&dtml-name2;&dtml-domain2;
 11:   
 12: 
 13: POINT C&dtml-name;&dtml-domain;
 14: POINT
D&dtml-name2;&dtml-domain2;
 15: 
 16:   
 17: 
 18: 
 19: 


The output of all that is (a bit hard to read):

a aa 

POINT A a aa 
POINT B w ww 
 a aa 
POINT C w ww 
POINT D w ww 

POINT A a aa 
POINT B x xx 
 a aa 
POINT C x xx 
POINT D x xx 

POINT A a aa 
POINT B y yy 
 a aa 
POINT C y yy 
POINT D y yy 

POINT A a aa 
POINT B z zz 
 a aa 
POINT C z zz 
POINT D z zz 




So: at point A, the "name" and "domain" variables have been overwritten with
the "name" and "domain" variables as they were on line 6/7, *BUT* name2 and
domain2 haven't been overwritten (point B). BUT, outside the dtml-with tab
(point C) "name" and "domain" are at their correct values.

So - given that the dtml-with tag "must" work, I'm clearly not understanding
*how* it works.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

___
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 Method, dtml-with and namespace weirdness

2001-01-10 Thread Chris Withers

"Mayers, Philip J" wrote:
> 
> Sorry - I'm being unclear: the result is exactly the same either way i.e.
> the variables "name" and "domain" seem to be reset to the values from
> outside the dtml-in block when entering the dtml-with block.

> > > Change your show method in root to be as follows:
> > >
> > > 
> > >  
> > >  
> > >   
> > >  
> > > 
> > >
> > > And add another DTML method in root as follows:
> > >
> > > show_row:
> > > 
> > >   
> > >   &dtml-name;
> > >   &dtml-domain;
> > > 

Now I could grep the above to be sure, but I'm prety certain there
aren't any dtml-with's in there...
Perhaps the above might be worth trying out? ;-)

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] get property of type 'list'

2001-01-10 Thread Andrei Belitski

Hi!
I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
instead of '1' '2' '3'
How can I get Zope to interpret my property like a list not a string or
whatever else?
Thank you in advance!

___
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 Method, dtml-with and namespace weirdness

2001-01-10 Thread Mayers, Philip J

Sorry - I'm being unclear: the result is exactly the same either way i.e.
the variables "name" and "domain" seem to be reset to the values from
outside the dtml-in block when entering the dtml-with block.

I'm wondering if it's a bug in the postgres DA, since I can't reproduce it
with a quick gadfly test. I'm just going to try it out now.

I'm using Zope 2.2.5, PoPy 2.0.1 from SourceForce, and ZPoPyDA-1.1-pre2 - I
couldn't get any (potentially more stable) combination of PoPy or ZPoPyDA to
work.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2001 13:30
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] SQL Method, dtml-with and namespace weirdness


"Mayers, Philip J" wrote:
> 
> > Change your show method in root to be as follows:
> > 
> > 
> >  
> >  
> >   
> >  
> > 
> > 
> > And add another DTML method in root as follows:
> > 
> > show_row:
> > 
> >   
> >   &dtml-name;
> >   &dtml-domain;
> > 
> > 
> > so you have:
> >  /root
> >get_machine_hosts (SQL method)
> >get_host_aliases (SQL method)
> >show (dtml method)
> >show_row (dtml method)
 
> That was how I had the code originally. Didn't help. 

What happens when you try that? Errors? Unexpected values?

> I've already read the
> Zope 'book' 

Yes, it is frustrating how long it's taking for that to get printed, I
wonder what's holding it up?

> (if I were using 2.3 (which I can't, because LoginManager
> doesn't work OOTB),

I remember seeing the posts relating to that, did you ever find out why
it wasn't working? 

> I'd be using Python methods to do most of this instead.
> I'm not, I'm using 2.2.5)

Wise choice, but you mean python scripts in 2.3 ;-)
You can actually download Python _Methods_ right now and use them in
2.2.5:
http://www.zope.org/Members/4am/PythonMethod

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] SQL Method, dtml-with and namespace weirdness

2001-01-10 Thread Chris Withers

"Mayers, Philip J" wrote:
> 
> > Change your show method in root to be as follows:
> > 
> > 
> >  
> >  
> >   
> >  
> > 
> > 
> > And add another DTML method in root as follows:
> > 
> > show_row:
> > 
> >   
> >   &dtml-name;
> >   &dtml-domain;
> > 
> > 
> > so you have:
> >  /root
> >get_machine_hosts (SQL method)
> >get_host_aliases (SQL method)
> >show (dtml method)
> >show_row (dtml method)
 
> That was how I had the code originally. Didn't help. 

What happens when you try that? Errors? Unexpected values?

> I've already read the
> Zope 'book' 

Yes, it is frustrating how long it's taking for that to get printed, I
wonder what's holding it up?

> (if I were using 2.3 (which I can't, because LoginManager
> doesn't work OOTB),

I remember seeing the posts relating to that, did you ever find out why
it wasn't working? 

> I'd be using Python methods to do most of this instead.
> I'm not, I'm using 2.2.5)

Wise choice, but you mean python scripts in 2.3 ;-)
You can actually download Python _Methods_ right now and use them in
2.2.5:
http://www.zope.org/Members/4am/PythonMethod

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] Special-name of variables called 'name' or 'domain'

2001-01-10 Thread Mayers, Philip J

That was how I had the code originally. Didn't help. I've already read the
Zope 'book' (if I were using 2.3 (which I can't, because LoginManager
doesn't work OOTB), I'd be using Python methods to do most of this instead.
I'm not, I'm using 2.2.5)

Thanks anyway.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2001 13:09
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] Special-name of variables called 'name' or 'domain'


"Mayers, Philip J" wrote:

Try this:

Change your show method in root to be as follows:


 
 
  
 


And add another DTML method in root as follows:

show_row:

  
  &dtml-name;
  &dtml-domain;
 

so you have:
 /root
   get_machine_hosts (SQL method)
   get_host_aliases (SQL method)
   show (dtml method)
   show_row (dtml method)

Does that solve your problem?
(I know it doesn't sovle any concerns you have about dtml-with and SQL
method, but your posting wasn't exactly to reproduce, and so even if
submitted to the collector, isn't likely to get followed up)

> While I'm at it, is 
> really the best way to call a DTML method of a folder?

Mostly, yes...

BTW, checkout http://www.zope.org/Members/michel/ZB/ and have a good
read :-)

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] Special-name of variables called 'name' or 'domain'

2001-01-10 Thread Chris Withers

"Mayers, Philip J" wrote:

Try this:

Change your show method in root to be as follows:


 
 
  
 


And add another DTML method in root as follows:

show_row:

  
  &dtml-name;
  &dtml-domain;
 

so you have:
 /root
   get_machine_hosts (SQL method)
   get_host_aliases (SQL method)
   show (dtml method)
   show_row (dtml method)

Does that solve your problem?
(I know it doesn't sovle any concerns you have about dtml-with and SQL
method, but your posting wasn't exactly to reproduce, and so even if
submitted to the collector, isn't likely to get followed up)

> While I'm at it, is 
> really the best way to call a DTML method of a folder?

Mostly, yes...

BTW, checkout http://www.zope.org/Members/michel/ZB/ and have a good
read :-)

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] Memory problems

2001-01-10 Thread Tom Deprez

Hi,

Since a few days I'm experiencing some response problems on my zope site. At
some moments calling a page goes very fast a few seconds later, recalling
this page takes very long! At the end, every page takes long time, if they
ever appear

If I use a simple memory checker program, then I see that memory leaks
away (memory goes from 48Mfree to 41M in 15min!! and eventially it ends
at a few thousands K)  However, I've no idea if it is comming from Zope
2.2.5 or from my database adapter in zope, or from somewhere else
Is there a good way to check memory leaks and to pinpoint them?

If I ask to show me the processes on my Linux box, I see the following
related ones :

/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (root)

/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)
/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)
/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)
/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)
/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)
/usr/local/zope/bin/python /usr/local/zope/z2.py -Z
/home/httpd/zope/var/zProcess.pid (nobody)

gds_inet_server # Interbase Database Remote Server (root)
gds_inet_server # Interbase Database Remote Server (root)

Is it normal that zope opens so much processes?

Thanks in advance,

Tom.


___
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] REPOST: dtml-with doesn't work

2001-01-10 Thread Mayers, Philip J

Hopefully that will get someone's attention. I have an SQL method that
returns

(name,domain,otherstuff)

I have a DTML method (/root/host/show) that looks like this:



'name' and 'domain' are set to the primary hostname
and domain at this point by whatever calls this
DTML method

POINT A



  POINT B
  

  POINT C
  
POINT D

  

  


The folder structure is:

/root
  /alias
show
  /host
show

At the points marked B and D,  and  work
fine, but at point B, name and domain have been reset to what they were at
point A. Why? This is totally broken - I'm *this* far from downloading the
servlet engine and giving up completely. Zope appears to be completely
non-intuitive in many respects, and combined with the generally lamentable
documentation, is taking up more of my time than I'm willing to spend on a
theoretically simple task.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

___
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] Caching/http-acceleration and proxying Zope-served con tent

2001-01-10 Thread Toby Dickenson

On Mon, 08 Jan 2001 14:34:20 -0800, [EMAIL PROTECTED] wrote:

>If it supports the ability to direct traffic
>based upon the virtual host address, then squid works

Yes, squid can do this using a redirector; an external program to
rewrite urls.

Toby Dickenson
[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] Holiday Calendar anyone? (cont.)

2001-01-10 Thread Magnus Heino (Rivermen)


> By end of January/early February we'll have a groupware 
> thingy ready that 
> will do things like holiday planning etc. (and much more ...)

Where can we look at a preview? :)

/Magnus

___
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] Holiday Calendar anyone? (cont.)

2001-01-10 Thread peter bengtson

[ sorry for the broken up email. I accidently pushed Ctrl+Return]

...
Doesn't have to be a Zope product. Not even Python for that matter. Just as
long as it is possible to _integrate_ with a zope site.

Thanks, Peter


___
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] List of New products

2001-01-10 Thread Joachim Werner

On Wednesday 10 January 2001 10:04, Francois-regis Chalaoux wrote:
> It was a great idea to get the list of product sort on date in download
> zone. Today appears only categories and product annonced in news.
>
> So, is it a maintenance period or a stable presentation of products ?

There is a link on the left ("All Products") that gives you back the full 
list. But I had to search for it, too ...

Cheers,

Joachim


___
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] Holiday Calendar anyone? (cont.)

2001-01-10 Thread Joachim Werner

> Doesn't have to be a Zope product. Not even Python for that matter. Just as
> long as it is possible to _integrate_ with a zope site.

Depends on WHEN you need it ...

By end of January/early February we'll have a groupware thingy ready that 
will do things like holiday planning etc. (and much more ...)

Joachim

___
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] Holiday Calendar anyone?

2001-01-10 Thread peter bengtson

I've been asked to put up a Holiday Calendar on our Intranet by my HR. We're
currently using Squishdot and EventFolder for the Intranet frontpage. Does
anybody have or know of anything that might save me some time? Doesn'


___
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] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

On Wednesday 10 January 2001 17:55, Chris McDonough wrote:
> I've never seen that failure mode.. It'd be nice to get a reproducible bug
> out of it.
>

this is wierd.  with new install of zope2.16, zope2.20, zope2.2.5 - 
XMLDocunebt add works great.  no error.

but with zope2.2.5 (with all other products used[1] added), i got the 
original error.
i use a lot of SQL stuff, but not where i tried to add XML document

steps taken-
-create new folder
-add XML Document
-the addForm appeared.  insert id
-when i clicked add/add and edit, i got the commit error.

if i were to follow your advice, where should i put the dummy commit_sub?
[1] product list follows
-8<
AddressBookNavigator   Refresh   
XMLDocument  ZPyGreSQLDA
BTreeFolder Feedback.tar.gz   NewsHostRenderable
XMLWidgets   ZRTChat
BookmarkFolder  GUM   NewsSyndicate   SQLSession
ZCalendarZSQLMethods
Boring  HiperDom  Notes   SimpleGb  
ZCallableZWiki
CVS Hotfix_2000-10-02 OFSPSquishdot 
ZCatalog ZnolkSQLWizard
CachePool   LocalFS   POPMailBase TinyTable 
ZCounter ZopeTutorial
CalendarLoginManager  PTKBase TodoFolder
ZDBase   __init__.py
CalendarFolder  MIMETools PTKDemo Transform.tar.gz  
ZDConfera__init__.pyc
DemoPortal  MailHost  PersonalFolder  TutorialPoll  
ZFormulator  _pgmodule.so
EventFolder MembershipPollTutorialPollExamples  
ZGadflyDAmkproduct
ExternalMethod  Minimal   PythonMethodUserDb
ZGb  mkproduct-data
FSDump  MountedClientStorage  RFC822Message   Wizard
ZMirror
FeedbackMountedFileStorageRSSChannel  Workspace 
ZPoPyDA
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

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

2001-01-10 Thread Andreas Tille

Hello,

I tried to create my first class following a tutorial.  I exported
the rudimentary class via export function.  Now I wanted to import
it on my laptop to continue working on it but importing failed with
the message:

   The object  does not support this operation

What could be wrong here?
Which information do you possibly need?
Is there a document to read first before trying such stuff?

Kind regards and sorry for this simple question

  Andreas.


___
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 problem upgrading to 2.3.0a1 from 2.1.6

2001-01-10 Thread Jerome Alet

Hi,

I've been using 2.1.6 for a long time without any problem, using a home
compiled python 1.5.2

Yesterday I've tried to upgrade to 2.3.0a1 the following way:

export each and every home made sites and products (ZClasses) from 2.1.6
stop 2.1.6
install 2.3.0a1 and start it
import each and every exported sites and products

(I've not tried using the same Data.fs as 2.1.6)

In all instances of a ZClass I've made, I used to (in 2.1.6) call a DTML
method from my browser which was protected in a way to display the
authentication box, allowing me to enter my username and password.

The username and password should give me a role created in the ZClass
instance constructor, this role is allowed to create and modify some
subobjects (another ZClass)

Since I've installed 2.3.0a1 then when I tell my browser to "call" the
DTML method the authentication box appears but I'm not able to
authenticate myself: it always give me an unauthorized exception.

Looking at zope log it gives me a 401 error on the DTML method.

If I modify this method to do nothing but return plain text the problem
persists. 

I've checked several times the username and password and I'm sure I've
typed them correctly.

In one instance of my ZClass I've tried to give all permissions to the
created role, but with no luck.

I've finally stopped 2.3.0a1 and relaunched the 2.1.6.
 
Does someone have any idea of where the problem may come from ?
Should I try to use the same Data.fs of 2.1.6 ?
Should I try to use 2.2.5 instead of 2.3.0a1 (I'd like to be able to use
PythonScripts) ?

Thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


___
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] Tux & Zope?

2001-01-10 Thread Jonathan \(Listserv Account\)

> This is precisely what Zope's new cache management architecture is
> designed to do.  Just create the site then install a cache manager
> object such as an "Accelerated HTTP Cache Manager", available in the
> StandardCacheManagers product.  Visit the "Associate" tab of the cache
> manager to locate all images that should be served by Tux rather than
> Zope.  Turn on the checkboxes.  Voila!

Impressive. The cache management architecture is part of 2.3 right?
Gotta try it sometime this week...

> Accelerated HTTP cache managers set some HTTP headers on the
> response.
> The headers are recognized by downstream caches and the response is
> cached for a determined period.  Simple, reliable, and flexible.

Simple indeed. Good work :)

Cya
Jonathan


___
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] xmldocument

2001-01-10 Thread Chris McDonough

I've never seen that failure mode.. It'd be nice to get a reproducible bug
out of it.

- Original Message -
From: "Phil Harris" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 4:09 AM
Subject: Re: [Zope] xmldocument


> Chris,
>
> This occurs using the bog-standard ZODB as well, nothing to do with any
> other storage facility.
>
> Phil
> - Original Message -
> From: "Chris McDonough" <[EMAIL PROTECTED]>
> To: "Phil Harris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 9:27 AM
> Subject: Re: [Zope] xmldocument
>
>
> > Relational database adapters (like ZOracleDA, etc.) are currently not
> > compatible with subtransactions.  I worked around this for a customer by
> > adding dummy commit_sub and abort_sub methods to the database adapter's
DB
> > class, e.g.
> >
> > def commit_sub(*arg, **kw): pass
> > def abort_sub(*arg, **kw): pass
> >
> >
> > - Original Message -
> > From: "Phil Harris" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 10, 2001 3:56 AM
> > Subject: Re: [Zope] xmldocument
> >
> >
> > > Bak,
> > >
> > > I can't help you fix it but I can tell you what the problem is, the
file
> > is
> > > too big for Zope to cope with in one transaction so it starts a
> > > sub-transaction and there is a bug in the sub-transactioning engine.
> > >
> > > The same thing happens with a normal 'File' type as well.
> > >
> > > You should probably check the collector to see if this has been fixed
or
> > > even reported.
> > >
> > > Phil
> > >
> > > - Original Message -
> > > From: "Bak@kedai" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 10, 2001 4:40 AM
> > > Subject: [Zope] xmldocument
> > >
> > >
> > > > happy new year all
> > > > i can't get xmldocument to work with zope2.2x  i can install the
> product
> > > ok,
> > > > but can;t add XML Document.
> > > >
> > > > i got attribute error.  any insight into the error is appreciated.
> > > >
> > > > can anybody suggest ways of rendering xml documents in zope?
> > > >
> > > > thanks
> > > >
> > > > --8<
> > > > AttributeError
> > > >
> > > >   Sorry, a Zope error occurred.
> > > > 
> > > >
> > > > --
> > > >
> > > > http://www.kedai.com.my/kk
> > > > http://www.kedai.com.my/eZine
> > > >
> > > > We don't need no, no, no, no, no parental guidance here!
> > > >
> > > >
> > > > ___
> > > > 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 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] Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Morten W. Petersen

> I do not think that "fuzzy logic" is strongly related to "regexp-like".
> Anyway.
> 
> Fuzzy searching often means "finding matches with characters omitted,
> replaced or inserted".

It seems I misunderstood the term fuzzy logic myself.  Fuzzy logic means
if I search for a word, for example 'programmer', it will return matches
to the words 'program', 'programming','programmable' etc.

I.e., it will somewhat intelligently return words that are similar in
what they mean, using grammar rules (chopping off endings of words and
making them match others).

Hmm.

Cheers,

Morten


___
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] xmldocument

2001-01-10 Thread [EMAIL PROTECTED]

On Wednesday 10 January 2001 16:56, Phil Harris wrote:
> Bak,
>
> I can't help you fix it but I can tell you what the problem is, the file is
> too big for Zope to cope with in one transaction so it starts a
> sub-transaction and there is a bug in the sub-transactioning engine.
>
> The same thing happens with a normal 'File' type as well.
>
> You should probably check the collector to see if this has been fixed or
> even reported.
>
> Phil

to say the file is big is an understatement.  
how can adding a news file be too big for zope to cope?  unless the default 
XML Document is huge. i'll peek at the collector.  thanks phil


-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


___
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] List of New products

2001-01-10 Thread Francois-regis Chalaoux

It was a great idea to get the list of product sort on date in download zone.
Today appears only categories and product annonced in news.

So, is it a maintenance period or a stable presentation of products ?

FRC.

___
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] xmldocument

2001-01-10 Thread Phil Harris

Bak,

I can't help you fix it but I can tell you what the problem is, the file is
too big for Zope to cope with in one transaction so it starts a
sub-transaction and there is a bug in the sub-transactioning engine.

The same thing happens with a normal 'File' type as well.

You should probably check the collector to see if this has been fixed or
even reported.

Phil

- Original Message -
From: "Bak@kedai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 4:40 AM
Subject: [Zope] xmldocument


> happy new year all
> i can't get xmldocument to work with zope2.2x  i can install the product
ok,
> but can;t add XML Document.
>
> i got attribute error.  any insight into the error is appreciated.
>
> can anybody suggest ways of rendering xml documents in zope?
>
> thanks
>
> --8<
> AttributeError
>
>   Sorry, a Zope error occurred.
> 
>
> --
>
> http://www.kedai.com.my/kk
> http://www.kedai.com.my/eZine
>
> We don't need no, no, no, no, no parental guidance here!
>
>
> ___
> 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] xmldocument

2001-01-10 Thread Phil Harris

Chris,

This occurs using the bog-standard ZODB as well, nothing to do with any
other storage facility.

Phil
- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 9:27 AM
Subject: Re: [Zope] xmldocument


> Relational database adapters (like ZOracleDA, etc.) are currently not
> compatible with subtransactions.  I worked around this for a customer by
> adding dummy commit_sub and abort_sub methods to the database adapter's DB
> class, e.g.
>
> def commit_sub(*arg, **kw): pass
> def abort_sub(*arg, **kw): pass
>
>
> - Original Message -
> From: "Phil Harris" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 3:56 AM
> Subject: Re: [Zope] xmldocument
>
>
> > Bak,
> >
> > I can't help you fix it but I can tell you what the problem is, the file
> is
> > too big for Zope to cope with in one transaction so it starts a
> > sub-transaction and there is a bug in the sub-transactioning engine.
> >
> > The same thing happens with a normal 'File' type as well.
> >
> > You should probably check the collector to see if this has been fixed or
> > even reported.
> >
> > Phil
> >
> > - Original Message -
> > From: "Bak@kedai" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 10, 2001 4:40 AM
> > Subject: [Zope] xmldocument
> >
> >
> > > happy new year all
> > > i can't get xmldocument to work with zope2.2x  i can install the
product
> > ok,
> > > but can;t add XML Document.
> > >
> > > i got attribute error.  any insight into the error is appreciated.
> > >
> > > can anybody suggest ways of rendering xml documents in zope?
> > >
> > > thanks
> > >
> > > --8<
> > > AttributeError
> > >
> > >   Sorry, a Zope error occurred.
> > > 
> > >
> > > --
> > >
> > > http://www.kedai.com.my/kk
> > > http://www.kedai.com.my/eZine
> > >
> > > We don't need no, no, no, no, no parental guidance here!
> > >
> > >
> > > ___
> > > 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 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] xmldocument

2001-01-10 Thread Chris McDonough

Relational database adapters (like ZOracleDA, etc.) are currently not
compatible with subtransactions.  I worked around this for a customer by
adding dummy commit_sub and abort_sub methods to the database adapter's DB
class, e.g.

def commit_sub(*arg, **kw): pass
def abort_sub(*arg, **kw): pass


- Original Message -
From: "Phil Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 3:56 AM
Subject: Re: [Zope] xmldocument


> Bak,
>
> I can't help you fix it but I can tell you what the problem is, the file
is
> too big for Zope to cope with in one transaction so it starts a
> sub-transaction and there is a bug in the sub-transactioning engine.
>
> The same thing happens with a normal 'File' type as well.
>
> You should probably check the collector to see if this has been fixed or
> even reported.
>
> Phil
>
> - Original Message -
> From: "Bak@kedai" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 10, 2001 4:40 AM
> Subject: [Zope] xmldocument
>
>
> > happy new year all
> > i can't get xmldocument to work with zope2.2x  i can install the product
> ok,
> > but can;t add XML Document.
> >
> > i got attribute error.  any insight into the error is appreciated.
> >
> > can anybody suggest ways of rendering xml documents in zope?
> >
> > thanks
> >
> > --8<
> > AttributeError
> >
> >   Sorry, a Zope error occurred.
> > 
> >
> > --
> >
> > http://www.kedai.com.my/kk
> > http://www.kedai.com.my/eZine
> >
> > We don't need no, no, no, no, no parental guidance here!
> >
> >
> > ___
> > 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 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 )