[Zope] Inheriting CatalogAware?

2000-07-03 Thread Nils Jeppe


Hi,

I have one question.

I have a Class, say, BaseClass which is a subclass of CatalogAware and
ObjectManager (in that order). I have a second class which is a subclass
of BlaseClass. SecondClass should be fully CatalogAware, yes?

Just have to know because if it is, my error lies elsewhere. ;-)


Thanks in advance,
Nils


___
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] Bizarre crashes under Solaris: "nobody" vs. a real user (a fix?)

2000-07-03 Thread Walter A. Aprile

Hi,
in the past days I have been experiencing mysterious crashes,
under heavy load conditions with 

Zope version: Zope 2.1.6 (binary release, python 1.5.2, solaris-2.6-sparc) 
Python version: 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1] 
System Platform: sunos5 

Since that was the sensible choice, I was running Zope as
user "nobody". Completely by chance, I run it as a 'normal' user
(neither root, nor nobody). I was surprised to realize that it
would not crash any more, no matter how much I pounded it with
wget and similar tools.

I was running it from a terminal, where every now and
then interesting messages pop up:

--
2000-06-30T22:33:44 PROBLEM(100) ZServer warning: server accept() threw EWOULDBLOCK

--
2000-07-01T07:58:31 PROBLEM(100) ZServer Server accept() threw an exception

--
2000-07-03T03:59:43 ERROR(200) ZServer uncaptured python exception, closing channel 
 
(socket.er
ror:(9, 'Bad file number') 
[/usr/local/zope/ZServer/medusa/asynchat.py|initiate_send|211]
 [/usr/local/zope/ZServer/medusa/http_server.py|send|400] 
[/usr/local/zope/ZServer/medusa
/asyncore.py|send|237])
--
2000-07-03T14:50:34 ERROR(200) ZServer Bad HTTP request: GET /Zorba/logo-solo.gif 
>logo-s
olo.gif
--
2000-07-03T18:43:50 ERROR(200) ZServer uncaptured python exception, closing channel 
 
(socket.erro
r:(9, 'Bad file number') 
[/usr/local/zope/ZServer/medusa/asynchat.py|initiate_send|211] [
/usr/local/zope/ZServer/medusa/http_server.py|send|400] 
[/usr/local/zope/ZServer/medusa/a
syncore.py|send|237])

Could be that, when running as nobody, Zope could not do something
that it has do after an exception ? It could be something as simple as
writing to /tmp or logging things with syslogd ... anyway, it could be
something that Solaris prevents it from doing, which in turn causes the
crashes.

Now, I am still keeping my fingers crossed for tomorrow I have a demo.

So, apologies if all this is old hat, and thanks for the wonderful
list environment.

Walter

-- Vita brevis, ars longa, occasio celeris, experimentum periculosum,
judicium difficile. Attention: Un train peut en cacher un autre
-><- Eris aprueba este email ! -><- http://redescolar.ilce.edu.mx


___
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 do say wiki?

2000-07-03 Thread Brian Lloyd

> What would be an acceptible plural form of wiki,
> wikies
> wikis
> what?

wikii? :)

-Brian

___
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] Is there a better way to code this?

2000-07-03 Thread Luke Tymowski

Hello Dieter,

>What about
>
> standard_html_footer='')">
>... your code without "REQUEST" mangling ...
>
>
>This redefines "standard_html_header/footer" inside the "with".
>Should work for DTML methods/documents.

It didn't work.

If I removed all my request mangling from the header and footer code, and 
from the index.html looping code, Zope generates an error:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: AttributeError
Error Value: __call__


If I leave my request mangling in the header and footer code, but do what 
you suggest above, it works, except that the footer code is inserted after 
the very first record retrieved, and once again at the end of the document 
where it should appear.

I suppose if I don't want hacks, as Andrew suggested, I should do a proper 
job of separating formatting from data.

Luke


___
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: Confera problem

2000-07-03 Thread Jon Franz

this is due to confera using a old, now non-standard package called
ts_regex.

Goto http://www.zope.org/Members/Coventry/Confera_fix
for a fix.

>I just downloaded Confera-1.2.0-nonbin.tgz, installed it, and created a
>Confera topic instance.   I posted a mesage to the topic, and then
>posted a reply to this messge.  This is what i get:
>
>Traceback (innermost last):
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>214, in publish_module
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>179, in publish
>   File /home/tejay/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202,
>in zpublisher_exception_hook
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>165, in publish
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line
>160, in mapply
> (Object: addMessage)
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>102, in call_object
> (Object: addMessage)
>   File lib/python/Products/Confera/Confera.py, line 565, in addMessage
>   File /var/tmp/python-root/usr/lib/python1.5/regsub.py, line 38, in
>gsub
>AttributeError: (see above)
>
>Has any one had this problem?  I don't really have time to go hunting
>for the problem at the moment.
>
>I am running a Zope 2.1.6 from src on RH linux 6.2.
>
>terry


___
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] basic FSSession question

2000-07-03 Thread Pavlos Christoforou

On Mon, 3 Jul 2000, Leichtman, David J wrote:


> overwrites
> the other data, implying that it's the same SessionUID. I thought that
> calling  from a different machine, would then 
> create a
> new session with the SessionUID stored on that machine. How, then, do 
> I get
> multiple sessions?

Yes it will create a new Session. I have not received such a complain in
the past so please check your setup carefully. If the problem persists can
you send me a description of your setup so I can try to recreate it?

> There seems to be a severe lack of documentation for FSSession.
> 

Can you email me more specific suggestions as to where the docs need
improvement? 


Pavlos



___
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] Traversal of ZODB

2000-07-03 Thread R. David Murray

On Fri, 30 Jun 2000, David Trudgett wrote:
> I wonder if anyone has a sample Python script that traverses the ZODB to 
> query or perform arbitrary operations on the objects found in it? My 
> present requirement is to write a script that goes through and does some 
> automated updating of several dozen DTML documents.

I don't have any sample scripts, but one way to do it would be
to create a ZCatalog, catalog the relevant objects via some
unique field, and then just use Catalog(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] calling standard_html_header from external methods

2000-07-03 Thread Daryl Tester

Dieter Maurer wrote:

>> And what's the difference between passing in self or None?  What
>> does the client parameter actually do?

> When you pass 'None', the DTML method can only use the content
> of REQUEST. If you pass "self", it can additionally use the direct
> and acquired attributes of "self".

(Excuse me for being thick here)  So passing in self allows a DTML
Method to use (Zope equivlent) acquisition?


Regards,
  Daryl Tester

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




Re: [Zope] MySQL Select Statements

2000-07-03 Thread Andy Dustman

On Sat, 1 Jul 2000, Dieter Maurer wrote:

> I recently found out that Oracle returns column names
> converted into all uppercase. I needed about 2 hours
> to analyse this weird behaviour.

That's actually not too weird. Solid does the same thing. It is a standard
"feature" of SQL-89 that column names are case-insensitive and stored as
upper case. You can force it to use mixed-case and spaces by quoting the
column names with quotation marks. Of course, you have to do this when you
CREATE TABLE. i.e.

SELECT "weird but legal" FROM t

selects the column named "weird but legal" from table t.

MySQL, OTOH, is case-sensitive on column names.

-- 
andy dustman   | programmer/analyst |  comstar.net, inc.
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


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




Re: [Zope] MySQL transaction support (was: MySQL Select Statements)

2000-07-03 Thread Andy Dustman

On Tue, 4 Jul 2000, Hannu Krosing wrote:

> AFAIK the transaction support is enabled on table-by-table basis, so
> there 
> is no way to know for sure if transactions are 
> supported/partially-supported/unsupported for a particular set of
> queries

True enough. There are several problems here:

1) We must avoid using BEGIN/COMMIT/ROLLBACK on servers < 3.23.15 because
it will result in syntax errors.

2) We must raise exceptions whenever the DA attempts to use transacation
semantics and the database cannot fulfill this. Silently allowing the
transaction manager to believe ROLLBACK has succeeded when it is actually
doing nothing is a bad thing.

3) Even though the server may support transactions, the tables may not.
Calling ROLLBACK hopefully produces an error, which is a good thing.

4) Calling ROLLBACK in AUTOCOMMIT mode probably does not produce an error.
This is bad, but easily avoided by using BEGIN to force a transaction.
Does this cause MySQL to produce an error if the tables don't support it?
I don't know. Probably not.

IMHO, the only good way to avoid these problems is to effectively have two
DAs: A transactional one and a non-transactional one, perhaps determined
by a Zope property. The application designer will have to choose which DA
to use for a given application.

Note also: With non-transactional databases, you would expect to get
better performance by having several open connections which are not
shared. In the case of MySQL, each connection has it's own server thread,
and this can exploit CPUs, if available. However, connections should not
be shared on transactional databases, because transactions are tied to a
connection, and not a cursor. Even if there is a mutex to keep multiple
threads from executing queries simultaneously on the same connection, the
transactions are going to be whacky.

-- 
andy dustman   | programmer/analyst |  comstar.net, inc.
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


___
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] Proxy role bug (or feature)

2000-07-03 Thread R. David Murray

On Fri, 30 Jun 2000, Ng Pheng Siong wrote:
> 2. ngps adds a user in 'junk' called 'user2', with roles 'owner',
> 'manager' and 'proxy_for_agf'.
> 
> 3. Login as 'user2'; 'user2' is now able to assign the role 'proxy_for_agf'
> to the above-mentioned DTML method 'view_agf'.
> 
> 
> This proxy role handling seems unwieldy, in that 'ngps' cannot assign
> the proxy role but can create another user 'user2' that _can_ assign
> said proxy role.
> 
> Is this a bug or a feature?

I think it's half of each.

I suspect that user1 can assign itself a local role of proxy_for_agf
and achieve the same result, without having to create user2.  A
little less unweildy.  The bug half IMO is that since manager can assign
itself the role anyway, it might as well be allowed to assign the
proxy role even though it doesn't have it.

--RDM


___
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] basic FSSession question

2000-07-03 Thread Leichtman, David J

I'm probably missing something really key here, but I'm having 
difficulty
doing multiple sessions in FSSession.
I have a session and then, say, take some form data and push it to the
session. If I'm on a different machine (different cookie / different
SessionUID), and I get different form data and write it, it then 
overwrites
the other data, implying that it's the same SessionUID. I thought that
calling  from a different machine, would then 
create a
new session with the SessionUID stored on that machine. How, then, do 
I get
multiple sessions?
There seems to be a severe lack of documentation for FSSession.

~ Astrogeek

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




Re: [Zope] MySQL transaction support (was: MySQL Select Statements)

2000-07-03 Thread Hannu Krosing

Andy Dustman wrote:
> 
> There are two factors which determine whether or not transactions can be
> supported. Actually, there's only one, but it can't be directly tested
> for:
> 
> 1) If the server version (easily obtained upon establishing the
> connection) is < 3.23.15, transactions are definitely not supported.
> 
> 2) If the database in use employs BDB tables, transactions are definitely
> supported.

AFAIK the transaction support is enabled on table-by-table basis, so
there 
is no way to know for sure if transactions are 
supported/partially-supported/unsupported for a particular set of
queries

> The problem is: Support for the transaction manager is done with a MixIN
> class, so the decision on whether or not transactions should be supported
> in the DA comes before the connection object is created. 

But after the connection is established you could probably change the
mixin 
class, at least if it is really a proxy wrapper of some other class.

Python is _very_ dynamic language.


Hannu

___
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] New for download: Image.py that is border-aware

2000-07-03 Thread Jon Franz

The subject says it all... no more  type
schtuff...

http://www.zope.org/Members/Coventry/Border_aware_image

Note: this was created, and tested, on Zope 2.1.6 - newer installations, or
those with modifications to thier Image.py file in
/lib/python/OSF should Not use the new file - they should compare
the file and apply the changes by hand to thier Image.py to avoid version
troubles.

___
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] Is there a better way to code this?

2000-07-03 Thread Dieter Maurer

Luke Tymowski writes:
 > To have Zope ignore the footer code in one place but still display footer 
 > code on other pages, I've resorted to this:
 > 
 >
 >  
 >
 >
 >PermaLink
 > 
 >  
 >
 > 
 > 
What about


   ... your code without "REQUEST" mangling ...



This redefines "standard_html_header/footer" inside the "with".
Should work for DTML methods/documents.


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] ZCatalog pointing to wrong object.

2000-07-03 Thread Dieter Maurer

Bart Holthuijsen writes:
 > I have been having some problems with ZClasses and the Catalog.
 > I made a new Catalogaware External Product, based mostly on the Boring and 
 > Photo products. When I add an instance to a folder the Catalog is updated, 
 > but doesn't point to the right object.
ZCatalog has a set of bugs.

You may find interesting information in the Collector

URL:http://classic.zope.org:8080/Collector

or in the zope mailing list archives (May 2000).

Search for "lexicon".


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] calling standard_html_header from external methods

2000-07-03 Thread Dieter Maurer

Daryl Tester writes:
 > Dieter Maurer wrote:
 > 
 > > The __call__ function of DTML methods gets the following
 > > arguments: client=None, mapping=None, **kw.
 > > 
 > > You therefore may call it: "self.standard_html_header(self,REQUEST)"
 > > or "self.standard_html_header(None,REQUEST)".
 > 
 > And what's the difference between passing in self or None?  What
 > does the client parameter actually do?
When you pass 'None', the DTML method can only use the content
of REQUEST. If you pass "self", it can additionally use the direct
and acquired attributes of "self".



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] Uh, I think I goofed (running as root)

2000-07-03 Thread Shane Hathaway

Gary Shears wrote:
> > Also keep in mind that Zope does not run as "root", so if you are
> > running on a Unix-like system such as Linux, even if Zope were fully
> > compromised an intruder would still have to find a security hole in
> > something else before it's possible to write to arbitrary files.
> 
> I just checked the perms on zope, and it's owned by root. Started it, looked at
> the processes owned by root (ps -u root) and 'python' shows up, with the same
> PID as Z2.pid. Is there an easy way to fix this?
> Thanks in advance.

Run

ps -ef|grep python

or 

ps auxww|grep python

(depending on your system; the latter is preferred).  Zope usually runs
two processes: a process manager and the real server.  The process
manager runs as root and the real server, which actually handles the
connections and talks to the file system, has many threads.  So, if
configured correctly, you should see one python process running as root
and several others running as nobody (or whataver you configured the
user to be).  The process manager just restarts the real server
automatically when it dies.

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] Uh, I think I goofed (running as root)

2000-07-03 Thread Gary Shears


> 
> Also keep in mind that Zope does not run as "root", so if you are
> running on a Unix-like system such as Linux, even if Zope were fully
> compromised an intruder would still have to find a security hole in
> something else before it's possible to write to arbitrary files.

I just checked the perms on zope, and it's owned by root. Started it, looked at
the processes owned by root (ps -u root) and 'python' shows up, with the same
PID as Z2.pid. Is there an easy way to fix this? 
Thanks in advance.
--gary

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

2000-07-03 Thread Adam Karpierz

>Where does medusa look for html files by default? I have regular old html
>files that I'd like to make available without fiddling with Zope. Is that
>possible?


Yes , but through use Medusa as standalone server.
Look at http://www.nightmare.com/medusa/index.html
Download http://www.nightmare.com/medusa/medusa-src-2601.tar.gz
and look at and /docs directory,  INSTALL.txt and especially, start_medusa.py.

Adam Karpierz
[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] File referencing and LocalFS

2000-07-03 Thread Dan L. Pierson

Rogerio Atem de Carvalho writes:
 > 1)Folders names are directly related to string fields 
 > in a MySQL database which use spaces between words (eg 
 > New York), but folders names don't use spaces (eg 
 > NewYork). How can I skip spaces from database fields to 
 > make them refer to these folders (eg New York --> 
 > NewYork)?

Here's what I'm using to transform spaces to '_':

path = string.translate(path, string.maketrans(' ', '_'))

This is only invoked on file upload.  If you're doing it a lot, I'd
just create the translation table once and stash it in a member
variable.

If you're doing this from DTML, the following untested code should be
a clue:

  
...

  ...

...
  

Better check that maketrans and translate are in the version of the
string module available for DTML...

 > 2)Using LocalFS, can I do something like  var "localfsObject[''].[' par11>'], where par1 and par11 are folder names (after 
 > skiping spaces)?

It'd be more like:
  

I.E. inside the quotes you're in Python and par1 and par11 are
assumed to be variable names.  The quotes would mean you were looking
for folders named "", etc.  Note that you neither need
nor want a '.' between the subscripts.

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

2000-07-03 Thread Shane Hathaway

Gary Shears wrote:
> Slightly off topic, but related. Does this mean that the everything on local
> file system is protected natively in zope. Short of things like buffer
> overflows. What I mean is, can I somehow muck up security in Zope and
> compromise my local system, or will only zope objects be affected?
>  I'm an absolute newbie to zope, and still trying to get a handle on the
> architecture.

As long as you don't use products that read and write arbitrary files
(such as LocalFS), Zope doesn't provide any way to write to any
directory but the "var" subdirectory (or if it does, it shouldn't and
will be fixed.)  So yes, Zope's architecture does provide decent
isolation from the file system.

Also keep in mind that Zope does not run as "root", so if you are
running on a Unix-like system such as Linux, even if Zope were fully
compromised an intruder would still have to find a security hole in
something else before it's possible to write to arbitrary files.

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] Local user groups (Virginia)

2000-07-03 Thread Shane Hathaway

"J. Michael Mc Kay" wrote:
> 
> Does anyone here know of a local (Virginia, Richmond, Fredericksburg area)
> ZOpe/Python users group?

You do know where Digital Creations is located, don't you?  You ought to
pay us a visit.  :^)

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] Deinstalling Products?!

2000-07-03 Thread Jonathan

>Are you sure you deleted it from the right place? Also, did you delete
>it from the Products Management screen of the control panel?

Erhm, stupid me. No, I didn't try that, just removed the folder.

Thnx
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] Fun with Trees

2000-07-03 Thread Dieter Maurer

Charlie Wilkinson writes:
 > On Mon, Jul 03, 2000 at 09:35:06AM +0200, Rik Hoekstra waxed eloquent:
 > > 
 > > Charlie Wilkinson writes:
 > [...] 
 > > I'm trying to use dtml-tree to create a selective menu of objects based
 > > on whether or not the object has an "add_to_menu" property.
 > [...]
 > > [rh]
 > > Try (yes, this is tested):
 > > 
 > >  
 > >  
 > > 
 > >  
 > >  
 > > 
 > > 
 > The bigger problem seems to be the namespace issue that Dieter was
 > speaking of.

I found a solution that is much easier than hacking the
TreeDisplay code:

  You do not plan to use REQUEST for information about the
  request but only as a container for a temporary list.
  This can be achieved without REQUEST


  

   

  
  




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] File referencing and LocalFS

2000-07-03 Thread Rogerio Atem de Carvalho

I am using LocalFS to refer to a directory structure 
like this:

folder1
  |
  folder11
   
There are image (.jpg) files in both folders. I have 
two questions about this:

1)Folders names are directly related to string fields 
in a MySQL database which use spaces between words (eg 
New York), but folders names don't use spaces (eg 
NewYork). How can I skip spaces from database fields to 
make them refer to these folders (eg New York --> 
NewYork)?

2)Using LocalFS, can I do something like '].[''], where par1 and par11 are folder names (after 
skiping spaces)?


Regards,

Rogerio Atem


---
E-mail enviado pelo servidor do CEFETCampos

___
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] Fun with Trees

2000-07-03 Thread Dieter Maurer

Charlie Wilkinson writes:
 > On Mon, Jul 03, 2000 at 09:35:06AM +0200, Rik Hoekstra waxed eloquent:
 > > 
 > > Charlie Wilkinson writes:
 > [...] 
 > > I'm trying to use dtml-tree to create a selective menu of objects based
 > > on whether or not the object has an "add_to_menu" property.
 > [...]
 > > [rh]
 > > - if you append sequence-item it will include your whole method, which
 > > presumably is not what you want in your tree. Use id.
 > 
 > Not sure.  Supposedly objectValues() returns "actual objects", and
 > I assumed that using sequence-item would be something closer to that.
 >   The finer points of python are still lost on me, but I'm working
 > on it.
You are both right.

In principle, you can use "sequence-item" and get the object.
Later, when you use it, you can select whatever you need.

However, you used:
 

The "_[...]" calls "...", if this is callable.
Thus, "_['sequence-item']" first returns the object and then
calls it, if this is possible. In case of a DTML method, the
result would be the rendered body of the method.

You can use "_.getitem('sequence-item')" to get the object itself
and not the result of calling it.



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] medusa question

2000-07-03 Thread Gary Shears

> > have regular old html
> > files that I'd like to make available without fiddling with Zope. Is that
> > possible?
> 
> Not out of the box. ZServer, which is based on Medusa, doesn't support serving
> of HTML files from the local file system, it noly serves content out of Zope
> itself.
> 
Slightly off topic, but related. Does this mean that the everything on local
file system is protected natively in zope. Short of things like buffer
overflows. What I mean is, can I somehow muck up security in Zope and
compromise my local system, or will only zope objects be affected?
 I'm an absolute newbie to zope, and still trying to get a handle on the
architecture.

Thanks,

gary

___
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] Rewrite rules

2000-07-03 Thread Tino Wildenhain

Hi

System Administrator wrote:
> 
> Hi
> 
> can any one help me with the rewrite rules ? i'm stuck.
> 
> the ones on the zope documentation don't seem to be working for me .

You mean for apache? These are regular expressions as in perl or
module re in python. 
The rewrite module of Apache is documented here: 
http://www.apache.org/docs/mod/mod_rewrite.html

We need more information of what you want to help you more.

HTH
Tino Wildenhain

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

2000-07-03 Thread Martijn Pieters

On Mon, Jul 03, 2000 at 03:27:04PM -0400, Frank McGeough wrote:
> Where does medusa look for html files by default? I have regular old html
> files that I'd like to make available without fiddling with Zope. Is that
> possible?

Not out of the box. ZServer, which is based on Medusa, doesn't support serving
of HTML files from the local file system, it noly serves content out of Zope
itself.

There is a product on Zope.org called LocalFS that allows you to integrate
filesystem based content into Zope though.

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

___
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] Local user groups (Virginia)

2000-07-03 Thread J. Michael Mc Kay

Does anyone here know of a local (Virginia, Richmond, Fredericksburg area)
ZOpe/Python users group?

..checking for plain text setting.  Yepsend.

Thanks,

J. Michael Mc Kay

http://www.virginiaweb.com (under recon)


___
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 do say wiki?

2000-07-03 Thread J. Michael Mc Kay

What would be an acceptible plural form of wiki,
wikies
wikis
what?

Thanks


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




[Zope] medusa question

2000-07-03 Thread Frank McGeough

Where does medusa look for html files by default? I have regular old html
files that I'd like to make available without fiddling with Zope. Is that
possible?


___
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] 2.2b3 and absolute_url wrong?

2000-07-03 Thread Ron Bickers

I have a folder "RSSChannels" with a few RSSChannel instances in it, one of
which is called 'zopenews'.  There is also a DTML Method called 'view_all"
that displays the channel contents.

In Zope 2.1.4, both of the following code snippets resulted in
http://localhost/RSSChannels/zopenews/view_all, but Zope 2.2b3 returns
http://localhost/RSSChannels/view_all.

Is 2.2b3 broken, or was 2.1.4?



or


 
   
 


___

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] error in 2.2.0b3?

2000-07-03 Thread Martijn Pieters

On Mon, Jul 03, 2000 at 06:41:45PM +0200, Stefan Franke wrote:
> When rendering a DTML document with the following content
> 
>   
> 
>   
> 
>   
> 1/0 failed
>   
> 
>   
> 
> Zope reports
> 
>   Error Type: TypeError
>   Error Value: unexpected keyword argument: error_type
> 
> with the traceback below. Am I doing something wrong?
> If it is a bug and has been reported already, sorry for the
> noise (I'm currently not subscribed to the list).

This is a bug in 2.2.0b3, and is fixed in the upcoming 2.2.0b4 release.

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

___
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] error in 2.2.0b3?

2000-07-03 Thread Stefan Franke

When rendering a DTML document with the following content

  

  

  
1/0 failed
  

  

Zope reports

  Error Type: TypeError
  Error Value: unexpected keyword argument: error_type

with the traceback below. Am I doing something wrong?
If it is a bug and has been reported already, sorry for the
noise (I'm currently not subscribed to the list).

Stefan



Traceback (innermost last):
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\ZPublisher\Publish.py, line
222, in publish_module
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\ZPublisher\Publish.py, line
187, in publish
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\Zope\__init__.py, line 221,
in zpublisher_exception_hook
(Object: FTF)
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\ZPublisher\Publish.py, line
171, in publish
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\ZPublisher\mapply.py, line
160, in mapply
(Object: mytest)
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\ZPublisher\Publish.py, line
112, in call_object
(Object: mytest)
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\OFS\DTMLDocument.py, line
168, in __call__
(Object: mytest)
  File
D:\Programme\Zope2.2.0b3\FTF\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: mytest)
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\DocumentTemplate\DT_Try.py,
line 212, in render
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\DocumentTemplate\DT_Try.py,
line 244, in render_try_except
  File D:\Programme\Zope2.2.0b3\FTF\lib\python\DocumentTemplate\DT_Util.py,
line 262, in namespace
TypeError: (see above)




___
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] Cannot create ZPygresql connection

2000-07-03 Thread Oleg Broytmann

Hello!

   Zope 2.1.4 and 2.20b3 on the same machine, same Postgres server; 2.1.4
can connect, 2.20b3 cannot: upon creation of ZPygresql Connection Zope
throws BadRequest error.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Deinstalling Products?!

2000-07-03 Thread Chris McDonough

Are you sure you deleted it from the right place? Also, did you delete
it from the Products Management screen of the control panel?

Jonathan wrote:
> 
> Hi all,
> 
> Removed a product from the Products folder, but Zope still seems to
> import it from a folder that is not there anymore. Does Zope cache it
> somewhere or what?
> 
> Any ideas?
> 
> 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 )

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




RE: [Zope] MySQL transaction support (was: MySQL Select Statements)

2000-07-03 Thread Andy Dustman

On Mon, 3 Jul 2000, Monty Taylor wrote:

> Why not have one ZmySQLDA that attempts to determine whether it is 
> transactional or not when the connect method is executed. That way you 
> could have a DA connect to your 3.22 database, upgrade your database to 
> >3.23.15 and not see any problems. A combination of try-except:ing an 
> attempted "begin rollback" block and a test for database type should do 
> the trick, no? If it's 3.22 or earlier, the begin-rollback should throw 
> the synax error Andy mentioned. If that's ok, a test for database type 
> (not sure about this one) to see if it's BDB? If all of this is wrapped 
> in the connect method, we should be able to make it 'do the right thing' 

There are two factors which determine whether or not transactions can be
supported. Actually, there's only one, but it can't be directly tested
for:

1) If the server version (easily obtained upon establishing the
connection) is < 3.23.15, transactions are definitely not supported.

2) If the database in use employs BDB tables, transactions are definitely
supported.

The problem is: Support for the transaction manager is done with a MixIN
class, so the decision on whether or not transactions should be supported
in the DA comes before the connection object is created. Which raises an
interesting possibility: On the connection object's Properties tab, add a
checkbox which indicates that transactional semantics are required. The
status of this checkbox determines which class is used for the database
connection. This might be workable, not really sure.

-- 
andy dustman   | programmer/analyst |  comstar.net, inc.
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


___
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] Rewrite rules

2000-07-03 Thread System Administrator

Hi

can any one help me with the rewrite rules ? i'm stuck.

the ones on the zope documentation don't seem to be working for me .

regards,

Parag Mehta<[EMAIL PROTECTED]>
System Administrator.
Puretech Internet Pvt. Ltd.http://puretech.co.in/ 
77 Atlanta. Nariman Point.
Mumbai - 400021. India.Tel: +91-22-2833158  

Support is now available thru our Web Based Support System.
http://support.puretech.co.in





___
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] Is there a better way to code this?

2000-07-03 Thread Andrew Kenneth Milton

+[ Luke Tymowski ]-
| Hello Andrew,
| 
| >You should set flags to say when it's safe to render the header/footer,
| >or you should remove the header/footer calls from documents you want to
| >embed.
| 
| Can't do the latter.
| I'm building a weblog. I need to have the user enter entries for each day. 
| I need for each day to display properly on its own - which means each needs 
| header and footer code.

No it doesn't. You need to seperate content, and structure.

Each day can simply be




Where day_content is what you have now sans header and footer.

I don't know your structure, but, this is how I would do it knowing that...

| And I need the front page to be created on the fly, 
| consisting of the three latest entries, but, of course, without the header 
| and footer code appearing in the body of the document.

Yep you can get the content...

| It now works as it should, but I want to know if there is a more elegant 
| way of doing what I want to do. No point pointing fellow newbies at 
| something and then have one of the gurus suggest I could have done it much 
| more simply and elegantly.

Yes there is, and then you don't need all that hackery in the header/footer.

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

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




Re: [Zope] Is there a better way to code this?

2000-07-03 Thread Luke Tymowski

Hello Andrew,

>You should set flags to say when it's safe to render the header/footer,
>or you should remove the header/footer calls from documents you want to
>embed.

Can't do the latter.
I'm building a weblog. I need to have the user enter entries for each day. 
I need for each day to display properly on its own - which means each needs 
header and footer code. And I need the front page to be created on the fly, 
consisting of the three latest entries, but, of course, without the header 
and footer code appearing in the body of the document.

It now works as it should, but I want to know if there is a more elegant 
way of doing what I want to do. No point pointing fellow newbies at 
something and then have one of the gurus suggest I could have done it much 
more simply and elegantly.

Luke


___
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] mod_pcgi2 version 1.1.2

2000-07-03 Thread Oleg Broytmann

Hello!

   http://www.zope.org/Members/phd/mod_pcgi2

   Another bunch of fixes for handling root location and SCRIPT_NAME. Also
a fix for recently discovered bug with %20 in ZClasses management screens.

Oleg.
 
 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Oracle 8.1.6 setup file for DCOracle

2000-07-03 Thread Kiran Jonnalagadda

I've just put together a setup file for Oracle 8.1.6. I started with
including all the libraries in Oracle's library directory and then
removed the ones that gave me errors.

It works fine except for when I present an SQL query with a syntax
error. That makes Zope crash. Anybody know why?

-- 

Kiran Jonnalagadda
http://lunateks.com

baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/';
sync; sync; sleep 15; done

*shared*

# Setup file for Oracle 8.1.6 (Tested for Linux on Intel).
#
# Unfortunately, the libraries needed to link Oracle change from revision
# to revision.  
#
# Oracle provides a make file for building "demo" programs in
# $ORACLE_HOME/rdbms/demo/demo_rdbms.mk.  I have been unable to 
# use this make file to build Python extensions. Adapting it is
# not adequate, because it may change for new Oracle revs.
# My approach is to use demo_rdbms.mk to build one of the
# demo programs, look at the libraries linked, and start from there. :-(
#

ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public
-I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/plsql/public

ORACLE_L=-lJNLSLib3 -lgslsg8 -lnsslb8 -lserver8 -lJNLSTool -lgslssb8 -lntcp8 \
-lsgsl_s8 -lagent8 -lgslssf8 -lntcps8 -lskgxp8 -lgx8 -lntns8 \
-lskgxpd -lnus8 -lslax8 -lclient8 -lldapclnt8 -lnzjs8 \
-lslpm -lclntsh -lmm -locijdbc8 -lsql8 -lcommon8 -ln8 -locijdbc8_g \
-lsqlplus -lcore8 -lnbeq8 -lordim8 -lsvrmgrl -lnent8 -lordim8 \
-ltrace8 -lctx8 -lnhost8 -lordsdo8 -ltracefe8 -lctxc8 -lnjni8 -lordts8 \
-ltracept8 -lctxs8 -lordvirt8 -ldbicx8 -lnl8 -lowm2 \
-lvppdc -lgeneric8 -lnldap8 -lplc8 -lvsn8 -lgslavl8 -lnls8 -lplp8 \
-lwtc8 -lgslber_s8 -lnoname8 -lpls8 -lzx8 -lgsldb8 -lnro8 -lpsa8 -lgslr8 \
-lnsgr8 -lqsmashr

ORACLE_LIBS=$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib  
$(ORACLE_HOME)/rdbms/lib/defopt.o
$(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o
$(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORACLE_L)

oci_ oci_.c -I$(ORACLE_INCLUDES) -L$(ORACLE_LIBS) -DDCORACLE8

Buffer Buffer.c



Re: [Zope] Is there a better way to code this?

2000-07-03 Thread Andrew Kenneth Milton

+[ Luke Tymowski ]-
| Hello,
| 
| I'm still having trouble trying to get Zope to use/ignore header and footer 
| code in the appropriate places.

...snip...


| So. Is there a better way to do this? Or is the above meet and right and 
| not worthy of shame? I want to write a How-To so other newbies don't have 
| to go through what I did.

You should set flags to say when it's safe to render the header/footer,
or you should remove the header/footer calls from documents you want to
embed.

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

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




[Zope] Is there a better way to code this?

2000-07-03 Thread Luke Tymowski

Hello,

I'm still having trouble trying to get Zope to use/ignore header and footer 
code in the appropriate places.

To have Zope ignore the footer code in one place but still display footer 
code on other pages, I've resorted to this:

   
 
   
   
   PermaLink
    
 
   



My problem was that on the first sequence item returned, Zope would insert 
the footer code. On items 2 and 3, Zope would not display the footer code, 
and, again, at the end of the page, when I did want the footer code to 
appear, it wouldn't.

I had no trouble with the header code.
I assume it had no trouble with the header code because by calling it to 
display that document itself, Zope inserted the code and set the 
renderedheader to 1, causing it to be ignored elsewhere in the document, as 
it should.

So. Is there a better way to do this? Or is the above meet and right and 
not worthy of shame? I want to write a How-To so other newbies don't have 
to go through what I did.

thank you,

Luke


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




Re: [Zope] Re: ZClass in ZClass problem

2000-07-03 Thread Oleg Broytmann

On Mon, 3 Jul 2000, Oleg Broytmann wrote:
>Reinstalling from sources didn't help. I recompiled and reran 2.2.0b3,
> imported FlexFAQ2 (which surely worked with 2.1.4) and got the same
> problem.

   Oops! I am very, very sorry :( I connected directly to ZServer - and all
things worked as designed!
   Something broken between Apache and ZServer. Probably mod_pcgi2. Will
look into it...

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] Re: ZClass in ZClass problem

2000-07-03 Thread Oleg Broytmann

On Mon, 3 Jul 2000, Oleg Broytmann wrote:
> The first thing to try will be to
> reinstall Zope from the very beginning and not install any additional
> Products, right?

   Reinstalling from sources didn't help. I recompiled and reran 2.2.0b3,
imported FlexFAQ2 (which surely worked with 2.1.4) and got the same
problem. Traceback:

  Zope Error
  Zope has encountered an error while publishing this resource.
  
  
  
  Error Type: AttributeError
  Error Value: Edit%20 
  
 
  
 
  Troubleshooting Suggestions

  
The URL may be incorrect.
  The parameters passed to this resource may be incorrect.
  A resource that this resource relies on may be encountering an
error.
  

  For more detailed information about the error, please
  refer to the HTML source for this page.
  

  If the error persists please contact the site maintainer.
  Thank you for your patience.
  




http://www.zope.org/Credits" target="_top">http://phd.russ.ru/pcgi2/p_/ZopeButton" width="115" height="50"
border="0" alt="Powered by Zope">


Traceback (innermost last):
  File ./lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File ./lib/python/ZPublisher/Publish.py, line 187, in publish
  File ./lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File ./lib/python/ZPublisher/Publish.py, line 162, in publish
  File ./lib/python/ZPublisher/BaseRequest.py, line 325, in traverse
  File ./lib/python/ZClasses/Method.py, line 235, in __bobo_traverse__
(Object: Traversable)
AttributeError: (see above)

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] ZClass beginners question

2000-07-03 Thread Ivan Raikov


Hello, Dierk,

There are several ways to use a relational database from within
Zope. A good start for you would be the Zope SQL methods. Read the 
documentation about them at
. 

Then experiment. When you get stuck, ask questions on this forum.

Regards,
Ivan Raikov

"Dierk Hoeppner" <[EMAIL PROTECTED]> writes:

> Hi,
> 
> I want to connect our own proprietary database to zope. I know 
> which features I want because I did an ordinary CGI-application 
> already. I would like to use a ZClass. My question: For connecting to 
> my database do I have to use external functions? The goal is to 
> construct a product like thing that we could easily give away.
> 
> Thanks,
> 
> Dierk Hoeppner

___
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] Tree Tag question: from zope 1.x to zope 2.x

2000-07-03 Thread Gilles Lavaux

Hello,

I want to display the content of a site starting from a folder called 'Site'
with a tree tag.
I want also to render immediately inside the tree the documents with an
ID=='PUBLIC_Doc'.
In Zope 1.x I have a working dtml method like this:



  
  
##

  

  

##
  



Unfortunatly for me , with zope 2.1.6 i get an error when I try to render
the 'PUBLIC_Doc' document:
.
PUBLIC_Doc !#
Error type:AttributeError
Error Message:
Error Message:__call__
Error TB:Traceback (innermost last): File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in
render_try_except result = render_blocks(self.section, md) File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in
eval return eval(code,globals,d) File "", line 0, in ? File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in
careful_getitem v=mapping[key] File
"/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__
r=apply(HTML.__call__, (self, client, REQUEST), kw) File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502,
in __call__ try: return render_blocks(self._v_blocks, md) AttributeError:
__call__

has someone a solution ??

Thanks,

Gilles


___
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] Fun with Trees

2000-07-03 Thread Rik Hoekstra


> Not sure.  Supposedly objectValues() returns "actual objects", and
> I assumed that using sequence-item would be something closer to that.
>   The finer points of python are still lost on me, but I'm working
> on it.

Hm, you're right of course.

> 
> The bigger problem seems to be the namespace issue that Dieter was
> speaking of.  When I tried your code, I got Attribute errors on
> __getitem__.  It appears that Tree does not inherit the usual DMTL
> namespace.  I've been looking at Tree trying to figure out how to add
> it back in or somehow sneak my namespace into it, wondering what I'll
> break in the process.  (But that's what makes Zope so interesting! 8-)

Yeah tree does some things. What does your tree-code like? 

Rik

___
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] Why can't I subclass a ZSQLMethod?

2000-07-03 Thread Ivan Raikov


What do you mean, you cannot get a view to it? I can change in the
management area. I believe ZSQL methods are not supposed to provide
the user interface; you use them the way you would use an external
method. That means you have to create the form that sends the query
parameters to the SQL method, and you have to write the DTML code that
obtains the result set, and displays it accordingly.

At least that's way I do it; there might be a better way, I don't
know. 

Best,
Ivan

"Cary O'Brien" <[EMAIL PROTECTED]> writes:

> I tried that.  You can't add a ZSQLMethod unless there is a connection
> for it to connect to.  There isn't a connection in the products area.
> 
> Actually
> 
> If I put a dummy gadfly connection in the Product folder, I can
> indeed add a zsql method to my ZClass.  However I can't get a
> view to it.  I can configure it as a view, but it doesn't show
> up in the management tabs.
> 
> I guess it may be possible to leave it invisible and use
> other methods to set the query, arguments, and database
> connection.  More digging through the .py files!
> 
> -- cary
> 

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




Re: [Zope] Re: ZClass in ZClass problem

2000-07-03 Thread Oleg Broytmann

On Mon, 3 Jul 2000, Shane Hathaway wrote:
> They are a special feature of ZClass development.  The spaces let you
> write implementations of methods that would otherwise conflict with
> existing methods.  That's why you can, for example, write your own
> "manage_main", which would normally conflict with the implementation of
> manage_main in the Folder class.  Instances of ZClasses remove the
> trailing space, making the method fully available.

   Understand.

> Now, it sounds like Zope may have some problems with property sheets and
> URL conversions.  Let's try to solve that.

   Which way?

   Few weeks ago I installed 2.2.0b2 and did experiments with SiteSummary
and FlexFAQ (ZClassess I've downloaded from www.zope.org). I didn't have
any problem.

   Later I installed 2.2.0b3 and without testing SiteSummary I went to
creaty my own ZClassess. This didn't work. Then I found SiteSummary has the
problem, too. Seems I broke someting. The first thing to try will be to
reinstall Zope from the very beginning and not install any additional
Products, right?

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Fun with Trees

2000-07-03 Thread Charlie Wilkinson

On Mon, Jul 03, 2000 at 09:35:06AM +0200, Rik Hoekstra waxed eloquent:
> 
> Charlie Wilkinson writes:
[...] 
> I'm trying to use dtml-tree to create a selective menu of objects based
> on whether or not the object has an "add_to_menu" property.
[...]
> [rh]
> Try (yes, this is tested):
> 
>  
>  
> 
>  
>  
> 
> 
> Two notes:
> - the string approach is an unnecessary hack. I changed it to standard
> Python list idiom

It sure looks a lot cleaner, thanks Rik.

> - if you append sequence-item it will include your whole method, which
> presumably is not what you want in your tree. Use id.

Not sure.  Supposedly objectValues() returns "actual objects", and
I assumed that using sequence-item would be something closer to that.
  The finer points of python are still lost on me, but I'm working
on it.

The bigger problem seems to be the namespace issue that Dieter was
speaking of.  When I tried your code, I got Attribute errors on
__getitem__.  It appears that Tree does not inherit the usual DMTL
namespace.  I've been looking at Tree trying to figure out how to add
it back in or somehow sneak my namespace into it, wondering what I'll
break in the process.  (But that's what makes Zope so interesting! 8-)

-cw-

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
Failure is not an option. It's bundled with your software.

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




Re: [Zope] Re: ZClass in ZClass problem

2000-07-03 Thread Shane Hathaway

Oleg Broytmann wrote:
>It seems you are taking me as an idiot :( I know what is %20 means in
> URLs. I want to know where I got these from, and how to get rid of it...

They are a special feature of ZClass development.  The spaces let you
write implementations of methods that would otherwise conflict with
existing methods.  That's why you can, for example, write your own
"manage_main", which would normally conflict with the implementation of
manage_main in the Folder class.  Instances of ZClasses remove the
trailing space, making the method fully available.

Now, it sounds like Zope may have some problems with property sheets and
URL conversions.  Let's try to solve that.

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] problem with ZopeFind and objectValues

2000-07-03 Thread Jerome Alet

Hi,

please could someone explain me why when accessing the same zope site
anonymously:


   - 


works as expected and displays a list of id and titles of the current
folder's subfolders, but


   - 


gives me the following error:

"""Unauthorized

You are not authorized to access id."""

If I set a proxy role of manager to this dtml-method that doesn't change
anything, it still doesn't work.

If I log in as superuser both work the same (Zope 2.1.6).

In fact I want to do a ZopeFind with search_sub set to 1 to recurse all
subfolders from the current one. Is there any other method to do it, or
should I set a particular parameter to a particular value (not found how
to really use ZopeFind in ZQR, the sample is far too short IMHO).

How can I restrict a search in Zcatalog to the current folder and its
subfolders ?

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
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 )




[Zope] Comments on 2.2 Help System

2000-07-03 Thread Chris Withers

Apart from the 'Wow! Zope has Help!' comment:

The API documentation is very useful. 
How do we feedback about it? (eg: why is there PropertySheet and
PropertySheets?)
When will it be complete?
How do we submit docs to appear in it? What is the moderation process
like?

Sadly, the rest of the 'Zope Help' section needs a lot more structure to
be useful. At the moment, the names don't even fit in their browser pane
:(
Perhaps something along the lines of the portal structure on
zdp.zope.org would be useful for categorising these documents?

If these are the 'help screens' you get when you click the help button,
maybe they shouldn't be listed here at all?
I have to say, I think the M$ help system on Windows might be a better
model:

1. A Contents Page - kindof like the zdp portal listing, or a contents
section of a book.

2. An index page - A list of all the documents in the help system, which
seems to be largely what the 'contents' tab is now.

3. Search - which needs to be explained better than it is. Can boolean
searching be used? Do I need to quote things? How do I search for
dtml-in?
(Maybe a help screen would be useful ;-)

Maybe there should be links to the Contents Page as well as help on your
current location from in the management interface?

Finally, you should make it clear elsewhere that /HelpSys on your site
will go to the Zope help system. Maybe this needs to be blockable, after
all, why should www.mysite.com/HelpSys give the Zope help system, when I
might want it to be my company's help system for their products?

Which suggests that maybe the help system should be a separate product
from Zope, running on its own server. For example, take a company which
has LOTS of zope servers. The sysadmin would prefer to maintain one
up-to-date copy of the Zope docs on a 'documentation server' which has
documentation for all the Zope versions in use, rather than wastefully
running the same number of documentation servers as there are Zope
instances...

...heaven forbid, DC could actually run a master one of these at
doc.zope.org which would be the most complete and up to date...

Views?

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] User Management Styles

2000-07-03 Thread Chris Withers

Hi,

I've noticed two styles for managing users in Zope.

1. Have one User Folder in the root of your Zope instance and then
manage what users can do through Local Roles (PTK and Zope.org spring to
mind)

2. Have user folders at each level of your content tree. This is as
recommended in the ZCMG and otehr older docs.

The question is, which method is better?

My comments would be:
1 is better if the site is 'managed' by a system such as PTK or uses
components such as LoginManager that are non-trivial to setup.
2 is better if you REALLY want to delegate authority for subfolders. The
obvious one is Zope ISP's with more than one client per instance of
Zope.

Please not the 2 currently has serious problems (see the 'Every user
should have the Anonymous role everywhere' thread) and I'm sure I
remember readign about bugs with Local Roles (btu I expect they've all
been fixed by now...)#

Comments?

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

2000-07-03 Thread J. Atwood

Confera is pretty old I would try ZDiscussions, ZUBB or Squishdot.

J

At 12:30 PM +1000 7/3/2000, Terry Kerr wrote:
>Hi,
>
>I just downloaded Confera-1.2.0-nonbin.tgz, installed it, and created a
>Confera topic instance.   I posted a mesage to the topic, and then
>posted a reply to this messge.  This is what i get:
>
>Traceback (innermost last):
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>214, in publish_module
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>179, in publish
>   File /home/tejay/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202,
>in zpublisher_exception_hook
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>165, in publish
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line
>160, in mapply
> (Object: addMessage)
>   File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
>102, in call_object
> (Object: addMessage)
>   File lib/python/Products/Confera/Confera.py, line 565, in addMessage
>   File /var/tmp/python-root/usr/lib/python1.5/regsub.py, line 38, in
>gsub
>AttributeError: (see above)
>
>Has any one had this problem?  I don't really have time to go hunting
>for the problem at the moment.
>
>I am running a Zope 2.1.6 from src on RH linux 6.2.
>
>terry
>
>
>--
>Terry Kerr ([EMAIL PROTECTED])
>Adroit Internet Solutions Pty Ltd (www.adroit.net)
>Phone:   +613 9563 4461
>Fax: +613 9563 3856
>Mobile:  +61 414 938 124
>
>
>
>
>___
>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] Generating PDF: Use ZpdfDocument or Reportlab?

2000-07-03 Thread Jonathan

>Yes we have written a faily extensively billing system that uses
>reportlab to generate the equipment orders in pdf format. We have made a
>few tweaks here and there to reportlab but in general it works quite
>well.

 From within Zope? How do you call ReportLab from within Zope?

Thnx
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] MySQL transaction support (was: MySQL Select Statements)

2000-07-03 Thread Monty Taylor

Why not have one ZmySQLDA that attempts to determine whether it is 
transactional or not when the connect method is executed. That way you 
could have a DA connect to your 3.22 database, upgrade your database to 
>3.23.15 and not see any problems. A combination of try-except:ing an 
attempted "begin rollback" block and a test for database type should do 
the trick, no? If it's 3.22 or earlier, the begin-rollback should throw 
the synax error Andy mentioned. If that's ok, a test for database type 
(not sure about this one) to see if it's BDB? If all of this is wrapped 
in the connect method, we should be able to make it 'do the right thing' 

Thoughts?

Monty


> > with BDB tables. But it may be possible to break things down as having a
> > DA for 3.22 and one for 3.23. Which is, in practice, may not be any
> > different than having one that is not transactional (3.22 never is) and
> > one that is transactional (3.23 sometimes is).

> What I want to avoid is having to create two different "MySQL database
> connections" where I have to choose the "correct" one based on whether or
> not my SQL method is using transactions or not.  I'll most likely only be
> using one version of MySQL at a time, but if I'm using transactions at 
all,
> there's a good chance not all of my tables will support them.

> I guess we'll just have to do some testing.
> ___

> Ron Bickers
> Logic Etc, Inc.
> [EMAIL PROTECTED]


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

___
Zope 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] Deinstalling Products?!

2000-07-03 Thread Jonathan

Hi all,

Removed a product from the Products folder, but Zope still seems to 
import it from a folder that is not there anymore. Does Zope cache it 
somewhere or what?

Any ideas?

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 )




[Zope] The story with 900 files/Zope hanging..

2000-07-03 Thread Jonathan Desp

That's weird, maybe it's a bug, or maybe zope is not powerful enough,
but when I'm copying and pasted 

http://zope.atomasoft.com/resumebank/addPostingForm/manage_workspace

then change the url in netscape for -->

http://www.atomasoft.com/resumebank/addPostingForm

then be able to see my page I'm working on,

then a problem appear, I mean zope stop, I cannot browse inside zope and
I can't browse inside www.atomasoft.com/etc..

No one here know a patch for that problem ? no one here is smart enough
in zope(because I'm not) for solving that problem ? Here you can read
what David said, maybe it's a clue:


David Elkins wrote:
> 
> > what I can do against a hung process ? because it was ok, but now it's
> > still not working.
> 
> You might want to insert all those 900 files into a version of Zope
> running on one of your local machines. Make sure it all works, then upload
> the Data.fs.
> 
> I have _no_ idea why Zope keeps hanging and becomes unavailable. It might
> be that there are _tons_ of files all in one directory, which makes access
> time very slow.
> 
> David

-- 
Very truly yours,

<><><><><><><><><><><><><><>
Jonathan Desp
Atoma
Matter will become Software
http://www.atoma.f2s.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] ZCatalog pointing to wrong object.

2000-07-03 Thread Bart Holthuijsen

Hi all!

I have been having some problems with ZClasses and the Catalog.
I made a new Catalogaware External Product, based mostly on the Boring and 
Photo products. When I add an instance to a folder the Catalog is updated, 
but doesn't point to the right object.

The product inherits from Catalogaware and Objectmanager (and some others).

Example:
In the folder "test" I add an XML Folder (the product) with name: "fold" and 
title: "no1".
The Catalog shows a new object with name "test" and title: "no1".
If I then add an XML Folder to test with name "fold2" and title "no2" the 
Catalog still only contains one object: test/no2.

If I want to delete the objects I get some weird behavior. The first one 
goes without a problem, it removes the entry from the Catalog. The second 
gives an error message:
"Error Type: ValueError
Error Value: Uncatalog of absent id 'Test' " This can probably be explained 
by the fact that there was only one entry pointing to the Test Folder.

Below I'll paste a bit of the XMLFolder.py file:

from Products.ZCatalog import ZCatalog
from Products.ZCatalog.CatalogAwareness import CatalogAware

import OFS.ObjectManager
import Acquisition
import AccessControl.Role

from Globals import HTMLFile  # fakes a method from a DTML file
from Globals import MessageDialog # provid
from Globals import Persistent# makes an object stick in the ZODB

manage_addXMLFolderForm = HTMLFile('XMLFolderAdd', globals())

def manage_addXMLFolder(self, id, title='', REQUEST=None):
"""Add an XMLFolder to a folder."""
self._setObject(id, XMLFolder(id, title))
if REQUEST is not None:
return self.manage_main(self, REQUEST)

class XMLFolder(
 CatalogAware, # Self indexing.
 OFS.ObjectManager.ObjectManager,   # A Folderish object.
Persistent,# Make us persistent. Yaah!
Acquisition.Implicit,  # Uh, whatever.
AccessControl.Role.RoleManager # Security manager.
):
"""XMLFolder object.
"""

meta_type = 'XML Folder' # what do people think they're adding?

manage_options = ( # what management options are there?
{'label': 'Contents',   'action': 'manage_main'},
{'label': 'View',   'action': ''}, # defaults to index_html
{'label': 'Security',   'action': 'manage_access'},
)

__ac_permissions__=( # what permissions make sense for us?
('View management screens', ('manage_tabs','manage_main')),
('Change permissions',  ('manage_access',)   ),
('Change XML Folders' , ('manage_edit',) ),
('View XML Folders',('',)),
)

def __init__(self, id, title=''):
"""initialise a new instance of XMLFolder"""
self.id = id
self.title = title
self.manage_addFolder('test','',0,0)

Does anyone know what the problem might be, how I can get the Catalog point 
to the right object? I'm using Zope 2.1.4 on Windows NT.

Thanks in advance,
Bart Holthuijsen.

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


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




Re: [Zope] Accesing a new context from a manipulated string

2000-07-03 Thread Chris Withers

Dieter Maurer wrote:
>  > Here's my problem:
>  >
>  > given a method itemURL(), that typically returns a site
>  > relative URL such as '/about/', I need to change to the
>  > appropriate directories context using .
>  >
>  > In short I need to do the equivalent of .
> You may try
>   

This whole area is a lot nicer in 2.2 thanks to the Traversal interface.

Dieter's DTML becomes:



See the following for more details:
http://www.zope.org/Members/michel/Projects/Interfaces/ObjectManagerItem

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] Re: Every user should have the Anonymous role everywhere (was :Re: [Zope] Authentication, Anonymous and Public)

2000-07-03 Thread Chris Withers

Dieter Maurer wrote:
>  > > In Zope, each user has a set of roles.
>  > > Any user has the "Anonymous" role. Log-in users may have
>  > > additional roles.
>  >
>  > I'm not convinced this is true...

> The Content Manager Guide (Security, Authorization) states it
> this way:
> 
>   The "Anonymous" role, which all users have implicitly, 

...and check out the last time the Content Manager's Guide was updated
;-)

Seriously, though, I think this SHOULD be true, although I'm pretty sure
it isn't.

> This is natural, too.
> Why should a registered user have
> less authorization than an anonymous one.

Or, to put it another way, just because an acl_users folder doesn't know
anything about a user, why should that user not have the anonymous role?

> Thus, two reasons to change the Zope authorization, such
> that each user has implicitely the "Anonymous" role,
> if this is not the case now.

I totally agree :-)

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

2000-07-03 Thread Chris Withers

Terry Kerr wrote:
> Has any one had this problem?  I don't really have time to go hunting
> for the problem at the moment.

Try the Squishdot 0.4.1 a select 'plain'. You should get the same
(better ;-) functionality and if that doesn't work, I'll fix it ;-)

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] SiteAccess breaks Copy/Paste (was: Adding Products BreakingZope)

2000-07-03 Thread Oleg Broytmann

On Mon, 3 Jul 2000, Harald Scheirich wrote:
> The copy/paste/delete functionality has stopped working when 
> SiteAccess is enabled (i.e. I put the base of the apache server in) i 
> am using SiteAcces 1.0.1
> and zope 2.1.6 i can post errormessages if they are of any help

   Yesterday I posted a bug-report about SiteAccess2 and Zope 2.2 -
copy/paste stopped working. Perhaps, we should cooperate on nailing the bug
down. Evan?

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] ZClass beginners question

2000-07-03 Thread Dierk Hoeppner

Hi,

I want to connect our own proprietary database to zope. I know 
which features I want because I did an ordinary CGI-application 
already. I would like to use a ZClass. My question: For connecting to 
my database do I have to use external functions? The goal is to 
construct a product like thing that we could easily give away.

Thanks,

Dierk Hoeppner
Dierk Hoeppner
Braunschweig University Library
Pockelsstr. 13
D-38106 Braunschweig
Germany
Tel: +49-531-391-5066 Fax: -5836
E-Mail: [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] Adding Products Breaking Zope

2000-07-03 Thread Harald Scheirich

I have been trying to get a working combination of Apache and Zope 
the proxypass and Siteserver method as in howto 
http://www.zope.org/Members/anser/apache_zserver it is working now 
but ...

The copy/paste/delete functionality has stopped working when 
SiteAccess is enabled (i.e. I put the base of the apache server in) i 
am using SiteAcces 1.0.1
and zope 2.1.6 i can post errormessages if they are of any help

Harald Scheirich

>Hi!
>
>On Wed, 28 Jun 2000, Evan Simpson wrote:
>>  SiteAccess 1.0.1 is meant to work with Zope 2.1.6 (and does, for me).  I'd
>>  like to get it working for you folks, as well.  Does a fresh, empty install
>  > of Zope w/SiteAccess on your respective platforms have this problem?
>
-- 
---
DI Harald Scheirich  | Voice:+(431) 585 66 30-621
01 EDV consulting & development GmbH | Fax:  +(431) 585 66 30-643
Linke Wienzeile 4/2/2| [EMAIL PROTECTED]
A-1060 Vienna, Austria   | http://www.nulleins.at/
---

___
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] Howto engineer a scientific paper system

2000-07-03 Thread [EMAIL PROTECTED]

Thanks again, I like lyx now. Using latex with lyx on top is very
comfortable. 

I found a pyhton based bibliographic database handler named
pybliographer (http://www.gnome.org/pybliographer). It has a
GUI and inserts citation directly into lyx.  (The Latex2HTML
converter - on a first try - seems to ignore the inserted BibTex
reference, though.)

Christian


Working with Lyx is actually really nice, I appreciate how to get 

(Referring to Pavlos Christoforou on Don, 29 Jun 2000)
> On Thu, 29 Jun 2000, [EMAIL PROTECTED] wrote:
> 
> > Thank you for the comments and links for latex and docbook.
> > 
> > Going the latex path seems to me worthwhile - but on another day 
> > ;-) ,  I have already done some setup in zope that I would like to
> > build on.  What I did not find about LaTeX was a screenshot (isn't it
> 
> Having used latex for a long time I would like to point out that if you
> are planing to to write many papers for conferences/publications Latex has
> some very helpful tools. For one many scientific journals provide Latex
> style files so you don't need to worry about formating. Also (and IMO the
> most important) are the pain in the ... bib contents. There are very nice
> bib databases for Latex and latex (or bibtex) can produce bibliography
> contents in the formats required by most journals. Check also Lynx which
> is a minimal (last i checked) wysiwig environment for Latex.
> 
> Pavlos 
> 
> 
> ___
> 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] Re: ZClass in ZClass problem

2000-07-03 Thread Oleg Broytmann

On Sun, 2 Jul 2000, Tino Wildenhain wrote:
> > On Sat, 1 Jul 2000, Oleg Broytmann wrote:
> > >Then the problems begin. All management URLs for inner ZClass contain
> > > %20, so URLs look like
> > > "propertysheets/methods/RandomZItem%20/manage_workspace" and
> > > "propertysheets/methods/RandomZItem_add%20/manage_workspace".
> > 
> >I found that not only my ZClassess do this way. I imported SiteSummary -
> > and got the problem. Something broken in my installation?
> %20 is the urlencoded representation of an extraneous space at the end
> of your methods ids.

   It seems you are taking me as an idiot :( I know what is %20 means in
URLs. I want to know where I got these from, and how to get rid of it...

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] Re: Copy/Paste problem

2000-07-03 Thread Oleg Broytmann

Hi!

On Mon, 3 Jul 2000, Curtis Maloney wrote:
> > On Sat, 1 Jul 2000, Oleg Broytmann wrote:
> > >I (and some my friends) have problem with Copy/Paste. Sometimes it's
> > > wotking, but often Paste button does not appeared after Copy/Cut.
> >
> >After investigating I found that the problem is mostly related to
> > SiteAccess. I can copy FROM a folder with SiteRoot object, but cannot paste
> > INTO such folder. After removing SiteRoot object copy/paste worked. After
> > reinstalling SiteRoot copy/paste stopped working again.
> 
> Ah, SiteAccess.  You can save yourself the repeated addition/removal of 
> SiteAccess objects by learning how to type __no_before_traverse__ quickly in 
> your URLs. (o8
> 
> http://my.site.com/path/to/zope/__no_before_traverse__/manage 
> 
> It tells SiteAccess to not do it's thing, and you should be able to direct 
> access the Zope site there.

   I knew this, and probably this is worth to recheck...

   Ususally I use different approach. I have an URL that points to the real
site, for example http://sun.med.ru/zope.net.ru/, and pass SiteRootPATH
using mod_pcgi2. And I have different management URL, e.g.
http://sun.med.ru/pcgi/zope.net.ru/manage, where I do not pass the env var.
Without SiteRootPATH SiteRoot shouldn't interrupt traversing, no?

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] zope and caching

2000-07-03 Thread Bak @ kedai

On Mon, 03 Jul 2000, Toby Dickenson wrote:
> 
> There are several messages in the mailing list archives explaining how
> to set these headers. Im still planning to write that HowTo one
> day

i've followed the thread with interest, and test some of the solutions.  but,
ie doesn't really honor the headers, me think.  or maybe i'm too dense!

what i did:




in the very top of my standard_html_header

netscape rendered great, while ie will give me intermittent result.  most of
the time, it spits out old pages, which is a nono since this is a news site!

> 
> These products that cache stuff internal to Zope are great if you need
> zope to process the cached data (from your desciption, you dont)
i'm not following you here.  (i'm  a newbie.   sometimes, it's a great excuse
;))

i thought of it as a cache to all dynamic calls, so i got a static page, with
no need for processing dynamic objects (e.g date time, getting objects from
other objects, etc)  correct me if  i'm wrong

maybe [EMAIL PROTECTED](cachepool author) can chime in here.

> 
> If you need to cache whole requests, then the best approach is to
> understand and use the http cache headers. If processor load is your
> main problem, an external http cache is a big advantage too (I use
> squid, see http://www.squid-cache.org)
> 
i'll try and look into this again.  will also look into squid.

> Toby Dickenson
> [EMAIL PROTECTED]
-- 
thanks

--
http://www.kedai.com.my/kk
Am I Evil?


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




Re: [Zope] zope and caching

2000-07-03 Thread Bak @ kedai


> to build some HTML-page-level caching into Zope soon.  More specifics I
> can't give, it's jammed into the (already very crowded) "nebulous things
> we should be working on".  Sounds sort of like fun though.

i do hope this materialize, since it will only boost Zope.  
> 
> I haven't used CachePool... gad, it's hard to keep up.
> 
i did a crude test with ab, and came out with the following.  
this is a moderately dynamic page (with dtml-method invoking date time, look
for stuff in ZClass objects, etc).  in summary, about 3 times increase of
transfer rate.

w/o CachePool
 
 /tmp]# /usr/sbin/ab -n 100 -c 20 http://203.106.2.206:8080/emedia_html
This is ApacheBench, Version 1.3c <$Revision: 1.38 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/
 
Server Software:Zope/Zope
Server Hostname:203.106.2.206
Server Port:8080
 
Document Path:  /emedia_html
Document Length:14063 bytes
 
Concurrency Level:  20
Time taken for tests:   43.212 seconds
Complete requests:  100
Failed requests:97
   (Connect: 0, Length: 97, Exceptions: 0)
Total transferred:  1422643 bytes
HTML transferred:   1402543 bytes
Requests per second:2.31
Transfer rate:  32.92 kb/s received
 
Connnection Times (ms)
  min   avg   max
Connect:111   375
Processing:   805  7817  8569
Total:806  7828  8944  
   
 with CachePool
 /tmp]# /usr/sbin/ab -n 100 -c 20 http://203.106.2.206:8080/t_p
This is ApacheBench, Version 1.3c <$Revision: 1.38 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/
 
Server Software:Zope/Zope
Server Hostname:203.106.2.206
Server Port:8080
 
Document Path:  /t_p
Document Length:14066 bytes
 
Concurrency Level:  20
Time taken for tests:   14.671 seconds
Complete requests:  100
Failed requests:66
   (Connect: 0, Length: 66, Exceptions: 0)
Total transferred:  1423367 bytes
HTML transferred:   1403267 bytes
Requests per second:6.82
Transfer rate:  97.02 kb/s received
 
Connnection Times (ms)
  min   avg   max
Connect:1   573  3008
Processing:   106  2072  6070
Total:107  2645  9078
   


> In addition to caching, have you considered trying to use ZEO over a few
> machines?  
> 

yes.  but not until zeo is stable enough, and i'm comfortable with 2.2.0 (what
with all the new security stuff and new behaviour)

but i am going to test it.  fer sure.

thanks
p/s - anybody know why i got failed request when i do ab?

___
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] Fun with Trees

2000-07-03 Thread Rik Hoekstra




Charlie Wilkinson writes:

After RTFMing and flailing at DTML all night, I'm about stumped.
No pun intended.

I'm trying to use dtml-tree to create a selective menu of objects based
on whether or not the object has an "add_to_menu" property.  I've pretty
much figured out that I need a wrapper around objectValues that will
filter out the objects that don't have the "add_to_menu" property.
This wrapper would be called with dtml-tree's "branches" attribute.
I'm trying to do this wrapper in a DTML method and I've gotten all the
way to where I have to return a list of "actual objects", so says the
DTML Quick Reference.

Is there someone who could 'splain to me how to build a list of objects
in DTMLese?

Here's what I have so far (obviously not working):




  





[rh]
Try (yes, this is tested):

 
 

 
 


Two notes:
- the string approach is an unnecessary hack. I changed it to standard
Python list idiom
- if you append sequence-item it will include your whole method, which
presumably is not what you want in your tree. Use id.


HTH

Rik

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




Re: [Zope] Zope : CGI

2000-07-03 Thread Curtis Maloney

On Mon, 03 Jul 2000, Vincent Maton wrote:
> Hello everyone,
>
> There is someone who can help me ???
>
> I need a CGI  to transfert the values of the 'Inputs" of a "Form" to a
> "e-mail" !!!
>
 Well, here in the Zope world, I'm sure using a  tag in 
an object is the most common way. As for a CGI, that's really out of the 
scope of this mailing list.

A simple example:


Subject: some e-mail
From: <[EMAIL PROTECTED]>
To: <>

Hello, .




> Thank's all of you, the specialists...
>
> Vincent.
>
>
Have a better one,
Curtis Maloney



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




[Zope] Zope : CGI

2000-07-03 Thread Vincent Maton

Hello everyone,

There is someone who can help me ???

I need a CGI  to transfert the values of the 'Inputs" of a "Form" to a
"e-mail" !!!

Thank's all of you, the specialists...

Vincent.


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




Re: [Zope] zope and caching

2000-07-03 Thread Toby Dickenson

On Mon, 3 Jul 2000 10:49:28 +0800, "Bak @ kedai" <[EMAIL PROTECTED]>
wrote:

>hi good people
>i've been using zope for quite some time now.  everything has been great; zope,
>the mailinglist, products are great!  
>
>
>i want to serve a dynamic site and zope fits the bill.  now, i think i want to have 
>some of the dynamic methods cached, so as to reduce the cpu cycles on my server. 
>
>y'see, the site has slowly bogged down as the number of users increase(dwhich is
>good, the users increase :)) and cpu cycles processing user requests have
>increased.  i'm not too sure (being a newbie) whether all my methods contribute
>to the consumption of cpu cycles.

FWIW, I think your approach is the right one. Treat caching as an
optimisation. Wait until it's a measurable problem, then tackle the
hot spots.

>caching.  yes, i've tried putting cache headers on my docs, but it  seems that
>ie do not honor the headers, or maybe i put it wrongly.  ie(4.x and 5.x) kept
>showing the cached version of my pages, even after clearing the local cache.  
>only deleting the temp files solved the problem.  i had no bad behaviour from
>netscape.

There are several messages in the mailing list archives explaining how
to set these headers. Im still planning to write that HowTo one
day

>also tried ZCache, but according to the product author, better wait for the
>next version.  so, i'm waiting.
>
>meanwhile, i've tried Cache Pool, and it looks good.  i have yet to test the
>effectiveness of Cache Pool, but it looks as if the page loads faster now.

These products that cache stuff internal to Zope are great if you need
zope to process the cached data (from your desciption, you dont)

If you need to cache whole requests, then the best approach is to
understand and use the http cache headers. If processor load is your
main problem, an external http cache is a big advantage too (I use
squid, see http://www.squid-cache.org)

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] zope and caching

2000-07-03 Thread Chris McDonough

Here at DC we recently had a "jam session" discussion on caching.  I
don't think anything "hard" came out of it, we just tossed around some
ideas.

DC has several current contract customers who are going to need high
speed pretty badly.  Of course, they're also going to be using ZEO,
which negates some of the need for speed by distributing the load over
several boxes.  But if that doesn't do the trick, in addition to the
already existing caching stuff in DTML, I'd imagine DC is going to need
to build some HTML-page-level caching into Zope soon.  More specifics I
can't give, it's jammed into the (already very crowded) "nebulous things
we should be working on".  Sounds sort of like fun though.

I haven't used CachePool... gad, it's hard to keep up.

In addition to caching, have you considered trying to use ZEO over a few
machines?  

"Bak @ kedai" wrote:
> 
> hi good people
> i've been using zope for quite some time now.  everything has been great; zope,
> the mailinglist, products are great!
> 
> 
> i want to serve a dynamic site and zope fits the bill.  now, i think i want to have
> some of the dynamic methods cached, so as to reduce the cpu cycles on my server.
> 
> y'see, the site has slowly bogged down as the number of users increase(dwhich is
> good, the users increase :)) and cpu cycles processing user requests have
> increased.  i'm not too sure (being a newbie) whether all my methods contribute
> to the consumption of cpu cycles.
> 
> caching.  yes, i've tried putting cache headers on my docs, but it  seems that
> ie do not honor the headers, or maybe i put it wrongly.  ie(4.x and 5.x) kept
> showing the cached version of my pages, even after clearing the local cache.
> only deleting the temp files solved the problem.  i had no bad behaviour from
> netscape.
> 
> also tried ZCache, but according to the product author, better wait for the
> next version.  so, i'm waiting.
> 
> meanwhile, i've tried Cache Pool, and it looks good.  i have yet to test the
> effectiveness of Cache Pool, but it looks as if the page loads faster now.
> 
> 
> the point is this:
> will zope ever have a method cacheing modules/object in the future?  for i think 
>zope can be faster if he/she/it have this built in.
> 
> just a thought.  what say you guys?  how do you guys tackle this?
> 
> thanks
> 
> --
> --
> http://www.kedai.com.my/kk
> Am I Evil?
> 
> ___
> 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 )